NIMSDK-AOS  9.16.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.msg.attachment.NotificationAttachment类 参考abstract

通知消息附件实体。 更多...

类 com.netease.nimlib.sdk.msg.attachment.NotificationAttachment 继承关系图:
com.netease.nimlib.sdk.msg.attachment.MsgAttachment com.netease.nimlib.sdk.chatroom.model.ChatRoomNotificationAttachment com.netease.nimlib.sdk.msg.attachment.NotificationAttachmentWithExtension com.netease.nimlib.sdk.chatroom.model.ChatRoomPartClearAttachment com.netease.nimlib.sdk.chatroom.model.ChatRoomQueueBatchAddAttachment com.netease.nimlib.sdk.chatroom.model.ChatRoomQueueChangeAttachment com.netease.nimlib.sdk.chatroom.model.ChatRoomRecallAttachment com.netease.nimlib.sdk.chatroom.model.ChatRoomRoomMemberInAttachment com.netease.nimlib.sdk.chatroom.model.ChatRoomTempMuteAddAttachment com.netease.nimlib.sdk.chatroom.model.ChatRoomTempMuteRemoveAttachment com.netease.nimlib.sdk.team.model.DismissAttachment com.netease.nimlib.sdk.team.model.LeaveTeamAttachment com.netease.nimlib.sdk.team.model.MemberChangeAttachment com.netease.nimlib.sdk.team.model.UpdateTeamAttachment

Public 成员函数

NotificationType getType ()
 获取通知类型 更多...
 
void setType (NotificationType type)
 设置通知类型 更多...
 
String toJson (boolean send)
 将消息附件序列化为字符串,存储到消息数据库或发送到服务器。
更多...
 
final void fromJson (String json)
 
abstract void parse (JSONObject json)
 

详细描述

通知消息附件实体。

在文件 NotificationAttachment.java10 行定义.

成员函数说明

◆ fromJson()

final void com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.fromJson ( String  json)

在文件 NotificationAttachment.java34 行定义.

◆ getType()

NotificationType com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.getType ( )

获取通知类型

在文件 NotificationAttachment.java17 行定义.

◆ parse()

abstract void com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.parse ( JSONObject  json)
abstract

◆ setType()

void com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.setType ( NotificationType  type)

设置通知类型

参数
type

在文件 NotificationAttachment.java25 行定义.

◆ toJson()

String com.netease.nimlib.sdk.msg.attachment.NotificationAttachment.toJson ( boolean  send)

将消息附件序列化为字符串,存储到消息数据库或发送到服务器。

参数
send如果你的附件在本地需要存储额外数据,而这些数据不需要发送到服务器,可依据该参数值区别对待。
返回

实现了 com.netease.nimlib.sdk.msg.attachment.MsgAttachment.

在文件 NotificationAttachment.java30 行定义.


该类的文档由以下文件生成: