NIMSDK-AOS  9.15.0
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.msg.attachment.MsgAttachment接口 参考

消息附件基础接口 更多...

类 com.netease.nimlib.sdk.msg.attachment.MsgAttachment 继承关系图:
com.netease.nimlib.sdk.avchat.model.AVChatAttachment com.netease.nimlib.sdk.msg.attachment.FileAttachment com.netease.nimlib.sdk.msg.attachment.LocationAttachment com.netease.nimlib.sdk.msg.attachment.NetCallAttachment com.netease.nimlib.sdk.msg.attachment.NotificationAttachment com.netease.nimlib.sdk.robot.model.RobotAttachment com.netease.nimlib.sdk.msg.attachment.AudioAttachment com.netease.nimlib.sdk.msg.attachment.ImageAttachment com.netease.nimlib.sdk.msg.attachment.VideoAttachment 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 成员函数

String toJson (boolean send)
 将消息附件序列化为字符串,存储到消息数据库或发送到服务器。
更多...
 

详细描述

消息附件基础接口

在文件 MsgAttachment.java8 行定义.

成员函数说明

◆ toJson()

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

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

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

com.netease.nimlib.sdk.msg.attachment.FileAttachment, com.netease.nimlib.sdk.msg.attachment.LocationAttachment, com.netease.nimlib.sdk.robot.model.RobotAttachment, com.netease.nimlib.sdk.msg.attachment.NetCallAttachment , 以及 com.netease.nimlib.sdk.msg.attachment.NotificationAttachment 内被实现.


该接口的文档由以下文件生成: