一个仿qq的程序源码 一个用纯java开发的

源代码在线查看: message.java

软件大小: 2092 K
上传用户: zbcs1025
关键词: java 程序源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				package qianqian.p2pchat.message;
				
				import qianqian.p2pchat.control.Peer;
				
				public abstract class Message implements java.io.Serializable {
					private static final long serialVersionUID = 1L;
					private String msg = null;
					private Peer from = null;
					
					public Message(){
						msg = null;
						from = null;
					}
				
					public Message(String iMsg, Peer iFrom) {
						msg = iMsg;
						from = iFrom;
					}
				
					public Peer getSender() {
						return from;
					}
				
					public String getMsgContent() {
						return msg;
					}
				
					public void setMsg(String msg) {
						this.msg = msg;
					}
				
					public void setSender(Peer from) {
						this.from = from;
					}
				}
							

相关资源