NIMSDK-AOS
9.19.0
basesdk
src
com
netease
nimlib
sdk
msg
attachment
NotificationAttachment.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.msg.attachment;
2
3
import
com
.
netease
.
nimlib
.
sdk
.
msg
.
constant
.
NotificationType
;
4
5
import
org.json.JSONObject;
6
7
/**
8
* 通知消息附件实体。
9
*/
10
public
abstract
class
NotificationAttachment
implements
MsgAttachment
{
11
12
private
NotificationType
type;
13
14
/**
15
* 获取通知类型
16
*/
17
public
NotificationType
getType
() {
18
return
type;
19
}
20
21
/**
22
* 设置通知类型
23
* @param type
24
*/
25
public
void
setType
(
NotificationType
type) {
26
this.type = type;
27
}
28
29
@Override
30
public
String
toJson
(
boolean
send) {
31
return
null;
32
}
33
34
final
public
void
fromJson
(String json) {
35
36
}
37
38
public
abstract
void
parse
(JSONObject json);
39
}
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.getType
NotificationType getType()
获取通知类型
Definition:
NotificationAttachment.java:17
com.netease.nimlib.sdk
Definition:
RequestCallback.java:1
com.netease
com
com.netease.nimlib.sdk.msg.constant
Definition:
SessionTypeEnum.java:1
com.netease.nimlib.sdk.msg
Definition:
MessageBuilder.java:1
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.fromJson
final void fromJson(String json)
Definition:
NotificationAttachment.java:34
com.netease.nimlib.sdk.msg.constant.NotificationType
通知消息类型
Definition:
NotificationType.java:6
com.netease.nimlib.sdk.msg.attachment.MsgAttachment
消息附件基础接口
Definition:
MsgAttachment.java:8
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.toJson
String toJson(boolean send)
将消息附件序列化为字符串,存储到消息数据库或发送到服务器。
Definition:
NotificationAttachment.java:30
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment
通知消息附件实体。
Definition:
NotificationAttachment.java:10
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.setType
void setType(NotificationType type)
设置通知类型
Definition:
NotificationAttachment.java:25
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.parse
abstract void parse(JSONObject json)
com.netease.nimlib
生成于 2024年 十月 16日 星期三 10:25:05 , 为 NIMSDK-AOS使用
1.8.13