44 lines
810 B
Java
44 lines
810 B
Java
|
package com.cm.socket.pojo;
|
|||
|
|
|||
|
/**
|
|||
|
* When you feel like quitting. Think about why you started
|
|||
|
* 当你想要放弃的时候,想想当初你为何开始
|
|||
|
*
|
|||
|
* @ClassName: Message
|
|||
|
* @Description: 消息
|
|||
|
* @Author: WangGeng
|
|||
|
* @Date: 2020/7/4 15:56
|
|||
|
* @Version: 1.0
|
|||
|
**/
|
|||
|
public class Message {
|
|||
|
|
|||
|
private byte start;
|
|||
|
private byte type;
|
|||
|
private String content;
|
|||
|
|
|||
|
public byte getStart() {
|
|||
|
return start;
|
|||
|
}
|
|||
|
|
|||
|
public void setStart(byte start) {
|
|||
|
this.start = start;
|
|||
|
}
|
|||
|
|
|||
|
public byte getType() {
|
|||
|
return type;
|
|||
|
}
|
|||
|
|
|||
|
public void setType(byte type) {
|
|||
|
this.type = type;
|
|||
|
}
|
|||
|
|
|||
|
public String getContent() {
|
|||
|
return content == null ? "" : content.trim();
|
|||
|
}
|
|||
|
|
|||
|
public void setContent(String content) {
|
|||
|
this.content = content;
|
|||
|
}
|
|||
|
|
|||
|
}
|