001package cn.itbaizhan.common.bean;
002/**
003 * @author :
004 * @date 创建时间:2017年4月14日 上午10:09:41
005 * @version 1.0
006 * @parameter
007 * @return
008 */
009public class Message {
010     
011    private long id;
012    private long userAId;
013    private long userBId;
014    private String messageDate;
015    private String message;
016    private int state;  //0已发送未读,1已读
017     
018    private User userA;
019    private User userB;
020 
021    public Message() {
022    }
023 
024    public Message(long id, long userAId, long userBId, String messageDate, String message, int state, User userA,
025            User userB) {
026        this.id = id;
027        this.userAId = userAId;
028        this.userBId = userBId;
029        this.messageDate = messageDate;
030        this.message = message;
031        this.state = state;
032        this.userA = userA;
033        this.userB = userB;
034    }
035 
036    public Message(long userAId, long userBId, String messageDate, String message, int state, User userA, User userB) {
037        this.userAId = userAId;
038        this.userBId = userBId;
039        this.messageDate = messageDate;
040        this.message = message;
041        this.state = state;
042        this.userA = userA;
043        this.userB = userB;
044    }
045 
046    public long getId() {
047        return id;
048    }
049 
050    public void setId(long id) {
051        this.id = id;
052    }
053 
054    public long getUserAId() {
055        return userAId;
056    }
057 
058    public void setUserAId(long userAId) {
059        this.userAId = userAId;
060    }
061 
062    public long getUserBId() {
063        return userBId;
064    }
065 
066    public void setUserBId(long userBId) {
067        this.userBId = userBId;
068    }
069 
070    public String getMessageDate() {
071        return messageDate;
072    }
073 
074    public void setMessageDate(String messageDate) {
075        this.messageDate = messageDate;
076    }
077 
078    public String getMessage() {
079        return message;
080    }
081 
082    public void setMessage(String message) {
083        this.message = message;
084    }
085 
086    public int getState() {
087        return state;
088    }
089 
090    public void setState(int state) {
091        this.state = state;
092    }
093 
094    public User getUserA() {
095        return userA;
096    }
097 
098    public void setUserA(User userA) {
099        this.userA = userA;
100    }
101 
102    public User getUserB() {
103        return userB;
104    }
105 
106    public void setUserB(User userB) {
107        this.userB = userB;
108    }
109 
110    @Override
111    public String toString() {
112        return "Message [id=" + id + ", userAId=" + userAId + ", userBId=" + userBId + ", messageDate=" + messageDate
113                + ", message=" + message + ", state=" + state + ", userA=" + userA + ", userB=" + userB + "]";
114    }
115     
116}
最近下载更多
zhunianlin  LV3 6月10日
李朝磊  LV18 2024年6月17日
543539666  LV7 2023年6月19日
95959595959  LV13 2023年2月7日
wanglinddad  LV55 2021年12月24日
ggqooi  LV5 2021年7月14日
0312wangchen  LV26 2021年5月29日
建建  LV4 2021年5月23日
lljp285248450  LV2 2021年5月1日
gjrtsjrjrsh  LV3 2021年4月28日
最近浏览更多
zhunianlin  LV3 6月10日
李朝磊  LV18 2024年6月17日
sunlea  LV20 2024年5月4日
WBelong  LV8 2023年12月27日
ccccccc1  LV1 2023年12月26日
k666k6  LV1 2023年11月24日
旧事故里 2023年11月24日
暂无贡献等级
2130095619 2023年11月24日
暂无贡献等级
xiongwei11231  LV9 2023年10月13日
limin123  LV6 2023年10月12日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友