一个仿qq的程序源码
一个用纯java开发的
源代码在线查看: message.java
package qianqian.cschat;
public class Message implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private String from, to, content;
private char code;
public Message(char iCode, String iFrom, String iTo, String iCon) {
code = iCode;
from = iFrom;
to = iTo;
content = iCon;
}
public char getCode() {
return code;
}
public String getTo() {
return to;
}
public String getFrom() {
return from;
}
public String getContent() {
return content;
}
}