NIMSDK-AOS
10.6.0
basesdk
src
com
netease
nimlib
sdk
msg
attachment
NotificationAttachmentWithExtension.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.msg.attachment;
2
3
import
com
.
netease
.
nimlib
.session.MsgHelper;
4
import
com
.
netease
.
nimlib
.util.JSONHelper;
5
6
import
org.json.JSONObject;
7
8
import
java.util.Map;
9
10
public
abstract
class
NotificationAttachmentWithExtension
extends
NotificationAttachment
{
11
public
static
final
String
TAG_ATTACH
=
"attach"
;
12
16
protected
Map<String, Object>
extension
;
17
18
public
Map<String, Object>
getExtension
() {
19
return
extension
;
20
}
21
22
@Override
23
public
void
parse
(JSONObject json) {
24
if
(json.has(TAG_ATTACH)) {
25
extension = MsgHelper.getMapFromJsonString(JSONHelper.getString(json, TAG_ATTACH));
26
}
27
}
28
}
com.netease
com
com.netease.nimlib.sdk.msg.attachment.NotificationAttachmentWithExtension.getExtension
Map< String, Object > getExtension()
Definition:
NotificationAttachmentWithExtension.java:18
com.netease.nimlib.sdk.msg.attachment.NotificationAttachmentWithExtension
Definition:
NotificationAttachmentWithExtension.java:10
com.netease.nimlib.sdk.msg.attachment.NotificationAttachmentWithExtension.extension
Map< String, Object > extension
扩展字段
Definition:
NotificationAttachmentWithExtension.java:16
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment
通知消息附件实体。
Definition:
NotificationAttachment.java:10
com.netease.nimlib.sdk.msg.attachment.NotificationAttachmentWithExtension.TAG_ATTACH
static final String TAG_ATTACH
Definition:
NotificationAttachmentWithExtension.java:11
com.netease.nimlib.sdk.msg.attachment.NotificationAttachmentWithExtension.parse
void parse(JSONObject json)
Definition:
NotificationAttachmentWithExtension.java:23
com.netease.nimlib
生成于 2024年 十一月 19日 星期二 20:07:49 , 为 NIMSDK-AOS使用
1.8.13