⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatmessage.java

📁 基于java的图ou形化的聊天器
💻 JAVA
字号:
import java.io.Serializable;
import java.net.InetAddress;

/**
 * 对象序列化类
 * 封装网络之间传递的信息属性
 * @author ij
 *
 */
public class ChatMessage implements Serializable{
	private String current;
	private String cliname;
	private InetAddress netadds;
	private String content;
	

	public void ChatMessage(){
		
	}
	
	public void ChatMessage(String current,String cliname,InetAddress netadds,String content){
		this.current = current;
		this.cliname = cliname;
		this.netadds = netadds;
		this.content = content;
	}
	
	
	
	public String getCliname() {
		return cliname;
	}

	public void setCliname(String cliname) {
		this.cliname = cliname;
	}

	public String getCurrent() {
		return current;
	}

	public void setCurrent(String sign) {
		this.current = sign;
	}

	public InetAddress getNetadds() {
		return netadds;
	}

	public void setNetadds(InetAddress netadds) {
		this.netadds = netadds;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -