pro.shuangxi.pojo.Message Maven / Gradle / Ivy
package pro.shuangxi.pojo;
import java.io.Serializable;
import java.util.ArrayList;
/**
* @author :mengshx
* datetime :Created in 2022/3/29 14:40
* 发送的消息实体
*/
public class Message implements Serializable {
private int recall=-1;
ArrayList contents = new ArrayList<>();
public ArrayList getContents() {
return contents;
}
public Message addLine(MessageLine line) {
contents.add(line);
return this;
}
public static Message getInstance(){
return new Message();
}
public void setRecall(int recall) {
this.recall = recall;
}
public int getRecall() {
return recall;
}
}