今天開始寫後端,先確定引數
package com.example.helppeople.entity; public class ChatBean { public static final int SEND=1;//傳送訊息 public static final int RECEIVE=2;//接收訊息 private int state;//訊息的狀態(是接收還是傳送) private String message;//訊息的內容 public int getState() { return state; } public void setState(int state) { this.state = state; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }