NIMSDK-AOS  10.9.60
V2NIMPostscript.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.v2.common;
2 
3 /**
4  * 附言类
5  */
6 public class V2NIMPostscript {
7 
8  /**
9  * 附言的发送者
10  */
11  private final String fromAccount;
12 
13  /**
14  * 附言产生的时间
15  */
16  private final long time;
17  /**
18  * 附言的内容
19  */
20  private final String content;
21 
22  /**
23  *
24  * @param fromAccount 附言的发送者
25  * @param time 附言产生的时间
26  * @param content 附言的内容
27  */
28  public V2NIMPostscript(String fromAccount, long time, String content) {
29  this.fromAccount = fromAccount;
30  this.time = time;
31  this.content = content;
32  }
33 
34  /**
35  * 获取附言的发送者
36  * @return 附言的发送者
37  */
38  public String getFromAccount() {
39  return fromAccount;
40  }
41 
42  /**
43  * 获取附言产生的时间
44  * @return 附言产生的时间
45  */
46  public long getTime() {
47  return time;
48  }
49 
50  /**
51  * 获取附言的内容
52  * @return 附言的内容
53  */
54  public String getContent() {
55  return content;
56  }
57 
58  @Override
59  public String toString() {
60  return "V2NIMPostscript [fromAccount=" + fromAccount + ", time=" + time + ", content=" + content + "]";
61  }
62 }
long getTime()
获取附言产生的时间
V2NIMPostscript(String fromAccount, long time, String content)
String getFromAccount()
获取附言的发送者