NIMSDK-AOS
9.19.0
basesdk
src
com
netease
nimlib
sdk
msg
model
MessageReceipt.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.msg.model;
2
3
/**
4
* 消息已读回执
5
*/
6
public
class
MessageReceipt
{
7
private
String sessionId;
8
private
long
time;
9
10
public
MessageReceipt
(String sessionId,
long
time) {
11
this.sessionId = sessionId;
12
this.time = time;
13
}
14
15
/**
16
* 会话ID(聊天对方账号)
17
*
18
* @return P2P聊天对方的account
19
*/
20
public
String
getSessionId
() {
21
return
sessionId;
22
}
23
24
/**
25
* 该会话最后一条已读消息的时间,比该时间早的消息都视为已读
26
*
27
* @return 消息的时间
28
*/
29
public
long
getTime
() {
30
return
time;
31
}
32
}
com.netease.nimlib.sdk.msg.model.MessageReceipt.MessageReceipt
MessageReceipt(String sessionId, long time)
Definition:
MessageReceipt.java:10
com.netease.nimlib.sdk.msg.model.MessageReceipt.getTime
long getTime()
该会话最后一条已读消息的时间,比该时间早的消息都视为已读
Definition:
MessageReceipt.java:29
com.netease.nimlib.sdk.msg.model.MessageReceipt.getSessionId
String getSessionId()
会话ID(聊天对方账号)
Definition:
MessageReceipt.java:20
com.netease.nimlib.sdk.msg.model.MessageReceipt
消息已读回执
Definition:
MessageReceipt.java:6
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13