NIMSDK-AOS  10.5.0
QChatMessageRefer.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.model;
2 
3 import java.io.Serializable;
4 
8 public class QChatMessageRefer implements Serializable {
9 
13  private String fromAccount;
17  private long time;
21  private long msgIdServer;
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 
38  public String getFromAccount() {
39  return fromAccount;
40  }
41 
46  public void setFromAccount(String fromAccount) {
47  this.fromAccount = fromAccount;
48  }
49 
54  public long getTime() {
55  return time;
56  }
57 
62  public void setTime(long time) {
63  this.time = time;
64  }
65 
70  public long getMsgIdServer() {
71  return msgIdServer;
72  }
73 
78  public void setMsgIdServer(long msgIdServer) {
79  this.msgIdServer = msgIdServer;
80  }
81 
86  public String getUuid() {
87  return uuid;
88  }
89 
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 }
String getFromAccount()
获取消息发送者accid
void setMsgIdServer(long msgIdServer)
设置服务端消息id
QChatMessageRefer(String fromAccount, long time, long msgIdServer, String uuid)
void setTime(long time)
设置消息发送时间
void setFromAccount(String fromAccount)
设置消息发送者accid