NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatMessageRefer.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.model;
2
3import java.io.Serializable;
4
5/**
6 * 消息引用结构
7 */
8public class QChatMessageRefer implements Serializable {
9
10 /**
11 * 消息发送者
12 */
13 private String fromAccount;
14 /**
15 * 消息发送时间
16 */
17 private long time;
18 /**
19 * 服务端消息id
20 */
21 private long msgIdServer;
22 /**
23 * 消息的uuid
24 */
25 private String uuid;
26
27 public QChatMessageRefer(String fromAccount, long time, long msgIdServer, String uuid) {
28 this.fromAccount = fromAccount;
29 this.time = time;
30 this.msgIdServer = msgIdServer;
31 this.uuid = uuid;
32 }
33
34 /**
35 * 获取消息发送者accid
36 * @return
37 */
38 public String getFromAccount() {
39 return fromAccount;
40 }
41
42 /**
43 * 设置消息发送者accid
44 * @param fromAccount
45 */
46 public void setFromAccount(String fromAccount) {
47 this.fromAccount = fromAccount;
48 }
49
50 /**
51 * 获取消息发送时间
52 * @return
53 */
54 public long getTime() {
55 return time;
56 }
57
58 /**
59 * 设置消息发送时间
60 * @param time
61 */
62 public void setTime(long time) {
63 this.time = time;
64 }
65
66 /**
67 * 获取服务端消息id
68 * @return
69 */
70 public long getMsgIdServer() {
71 return msgIdServer;
72 }
73
74 /**
75 * 设置服务端消息id
76 * @param msgIdServer
77 */
78 public void setMsgIdServer(long msgIdServer) {
79 this.msgIdServer = msgIdServer;
80 }
81
82 /**
83 * 获取消息uuid
84 * @return
85 */
86 public String getUuid() {
87 return uuid;
88 }
89
90 /**
91 * 设置消息uuid
92 * @param uuid
93 */
94 public void setUuid(String uuid) {
95 this.uuid = uuid;
96 }
97
98 @Override
99 public String toString() {
100 return "QChatMessageRefer{" +
101 "fromAccount='" + fromAccount + '\'' +
102 ", time=" + time +
103 ", msgIdServer=" + msgIdServer +
104 ", uuid=" + uuid +
105 '}';
106 }
107}
QChatMessageRefer(String fromAccount, long time, long msgIdServer, String uuid)
void setTime(long time)
设置消息发送时间
void setFromAccount(String fromAccount)
设置消息发送者accid
void setMsgIdServer(long msgIdServer)
设置服务端消息id