NIMSDK-AOS
9.19.0
plugins
chatroom
src
com
netease
nimlib
sdk
chatroom
model
ChatRoomRecallAttachment.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.chatroom.model;
2
3
import
com
.
netease
.
nimlib
.util.JSONHelper;
4
5
import
org.json.JSONObject;
6
7
/**
8
* @author jintao02
9
* @date 2021/8/9 16:59
10
*/
11
public
class
ChatRoomRecallAttachment
extends
ChatRoomNotificationAttachment
12
{
13
private
static
final
String TAG_MSG_TIME =
"msgTime"
;
14
private
static
final
String TAG_MSG_ID =
"msgId"
;
15
16
private
long
msgTime;
17
private
String msgUuId;
18
19
/**
20
* 获取被撤回消息的时间
21
* @return
22
*/
23
public
long
getMsgTime
() {
24
return
msgTime;
25
}
26
27
/**
28
* 获取被撤回消息的uuid,可根据此id找到需要撤回的消息
29
* @return
30
*/
31
public
String
getMsgUuid
() {
32
return
msgUuId;
33
}
34
35
@Override
36
public
void
parse
(JSONObject json) {
37
super.parse(json);
38
39
if
(json.has(TAG_MSG_TIME)) {
40
msgTime = JSONHelper.getLong(json, TAG_MSG_TIME);
41
}
42
43
if
(json.has(TAG_MSG_ID)) {
44
msgUuId = JSONHelper.getString(json, TAG_MSG_ID);
45
}
46
47
}
48
}
com.netease
com.netease.nimlib.sdk.chatroom.model.ChatRoomRecallAttachment
Definition:
ChatRoomRecallAttachment.java:11
com
com.netease.nimlib.sdk.chatroom.model.ChatRoomRecallAttachment.getMsgUuid
String getMsgUuid()
获取被撤回消息的uuid,可根据此id找到需要撤回的消息
Definition:
ChatRoomRecallAttachment.java:31
com.netease.nimlib.sdk.chatroom.model.ChatRoomRecallAttachment.parse
void parse(JSONObject json)
Definition:
ChatRoomRecallAttachment.java:36
com.netease.nimlib.sdk.chatroom.model.ChatRoomNotificationAttachment
聊天室通知消息附件实体。
Definition:
ChatRoomNotificationAttachment.java:19
com.netease.nimlib.sdk.chatroom.model.ChatRoomRecallAttachment.getMsgTime
long getMsgTime()
获取被撤回消息的时间
Definition:
ChatRoomRecallAttachment.java:23
com.netease.nimlib
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13