WebChatSample

源代码在线查看: message.java

软件大小: 43 K
上传用户: luyibo54618
关键词: WebChatSample
下载地址: 免注册下载 普通下载 VIP

相关代码

				package com.signorinolong.test.chat.model;
				
				public abstract class Message {
				
					private long id;
				
					private String time;
				
					private String userFrom;
					
					private String userTo;
				
					private String text;
					
					public Message(String userFrom,String text,String userTo){
						this.id = System.nanoTime();
						this.time = String.valueOf(System.currentTimeMillis());
						this.userFrom = userFrom;
						this.userTo = userTo;
						this.text = text;
					}
				
					public long getId() {
						return id;
					}
				
					public void setId(long id) {
						this.id = id;
					}
				
					public String getText() {
						return text;
					}
				
					public void setText(String text) {
						this.text = text;
					}
				
					public String getTime() {
						return time;
					}
				
					public void setTime(String time) {
						this.time = time;
					}
				
					public String getUserFrom() {
						return userFrom;
					}
				
					public void setUserFrom(String userFrom) {
						this.userFrom = userFrom;
					}
				
					public String getUserTo() {
						return userTo;
					}
				
					public void setUserTo(String userTo) {
						this.userTo = userTo;
					}
				
				}
							

相关资源