NIMQChatMessage Class Reference

Inherits from NSObject
Declared in NIMQChatMessage.h

Overview

消息结构

  messageType

消息类型

@property (nonatomic, assign, readonly) NIMMessageType messageType

Discussion

消息类型

Declared In

NIMQChatMessage.h

  session

消息所属会话

@property (nullable, nonatomic, copy, readonly) NIMSession *session

Discussion

消息所属会话

Declared In

NIMQChatMessage.h

  messageId

消息ID,唯一标识

@property (nonatomic, copy, readonly) NSString *messageId

Discussion

消息ID,唯一标识

Declared In

NIMQChatMessage.h

  serverID

消息服务端ID

@property (nonatomic, copy, readonly) NSString *serverID

Discussion

消息服务端ID

Declared In

NIMQChatMessage.h

  text

消息文本

@property (nullable, nonatomic, copy) NSString *text

Discussion

消息文本

所有消息类型都支持

Declared In

NIMQChatMessage.h

  messageObject

消息附件内容

@property (nullable, nonatomic, strong) id<NIMMessageObject> messageObject

Discussion

消息附件内容

Declared In

NIMQChatMessage.h

  setting

消息设置

@property (nullable, nonatomic, strong) NIMMessageSetting *setting

Discussion

消息设置

可以通过这个字段制定当前消息的各种设置

Declared In

NIMQChatMessage.h

  apnsContent

消息推送文案,长度限制500字,撤回消息时该字段无效

@property (nullable, nonatomic, copy) NSString *apnsContent

Discussion

消息推送文案,长度限制500字,撤回消息时该字段无效

Declared In

NIMQChatMessage.h

  apnsPayload

消息推送Payload

@property (nullable, nonatomic, copy) NSDictionary *apnsPayload

Discussion

消息推送Payload

可以通过这个字段定义消息推送 Payload ,支持字段参考苹果技术文档,长度限制 2K,撤回消息时该字段无效

Declared In

NIMQChatMessage.h

  remoteExt

服务器扩展

@property (nullable, nonatomic, copy) NSDictionary *remoteExt

Discussion

服务器扩展

客户端可以设置这个字段,这个字段将在本地存储且发送至对端,上层需要保证 NSDictionary 可以转换为 JSON,长度限制 1K

Declared In

NIMQChatMessage.h

  localExt

客户端本地扩展

@property (nullable, nonatomic, copy) NSDictionary *localExt

Discussion

客户端本地扩展

客户端可以设置这个字段,这个字段只在本地存储,不会发送至对端,上层需要保证 NSDictionary 可以转换为 JSON

Declared In

NIMQChatMessage.h

  timestamp

消息发送时间

@property (nonatomic, assign) NSTimeInterval timestamp

Discussion

消息发送时间

发送成功后将被服务器自动修正

Declared In

NIMQChatMessage.h

  deliveryState

消息投递状态 仅针对发送的消息

@property (nonatomic, assign, readonly) NIMMessageDeliveryState deliveryState

Discussion

消息投递状态 仅针对发送的消息

Declared In

NIMQChatMessage.h

  attachmentDownloadState

消息附件下载状态 仅针对收到的消息

@property (nonatomic, assign, readonly) NIMMessageAttachmentDownloadState attachmentDownloadState

Discussion

消息附件下载状态 仅针对收到的消息

Declared In

NIMQChatMessage.h

  isReceivedMsg

是否是收到的消息 @discussion

@property (nonatomic, assign, readonly) BOOL isReceivedMsg

Discussion

是否是收到的消息 @discussion

Declared In

NIMQChatMessage.h

  isOutgoingMsg

是否是往外发的消息 @discussion

@property (nonatomic, assign, readonly) BOOL isOutgoingMsg

Discussion

是否是往外发的消息 @discussion

Declared In

NIMQChatMessage.h

  isDeleted

消息是否标记为已删除 @discussion

@property (nonatomic, assign, readonly) BOOL isDeleted

Discussion

消息是否标记为已删除 @discussion

Declared In

NIMQChatMessage.h

  isRevoked

消息是否标记为已撤回 @discussion

@property (nonatomic, assign, readonly) BOOL isRevoked

Discussion

消息是否标记为已撤回 @discussion

Declared In

NIMQChatMessage.h

  status

消息处理状态

@property (nonatomic, assign) NIMQChatMessageStatus status

Discussion

消息处理状态

Declared In

NIMQChatMessage.h

  from

消息来源

@property (nullable, nonatomic, copy) NSString *from

Discussion

消息来源

Declared In

NIMQChatMessage.h

  senderName

消息发送者名字 @discussion

@property (nullable, nonatomic, copy, readonly) NSString *senderName

Discussion

消息发送者名字 @discussion

Declared In

NIMQChatMessage.h

  senderClientType

发送者客户端类型

@property (nonatomic, assign, readonly) NIMLoginClientType senderClientType

Discussion

发送者客户端类型

Declared In

NIMQChatMessage.h

  qchatChannelId

圈组频道ID

@property (nonatomic, readonly) unsigned long long qchatChannelId

Discussion

圈组频道ID

Declared In

NIMQChatMessage.h

  qchatServerId

圈组服务器ID

@property (nonatomic, readonly) unsigned long long qchatServerId

Discussion

圈组服务器ID

Declared In

NIMQChatMessage.h

  mentionedAll

是否艾特所有人 @discussion

@property (nonatomic, assign) BOOL mentionedAll

Discussion

是否艾特所有人 @discussion

Declared In

NIMQChatMessage.h

  mentionedAccids

被艾特的人的accid列表 @discussion

@property (nonatomic, copy) NSArray<NSString*> *mentionedAccids

Discussion

被艾特的人的accid列表 @discussion

Declared In

NIMQChatMessage.h

  updateTimestamp

消息更新时间 @discussion

@property (nonatomic, assign) NSTimeInterval updateTimestamp

Discussion

消息更新时间 @discussion

Declared In

NIMQChatMessage.h

  env

环境变量

@property (nullable, nonatomic, copy) NSString *env

Discussion

环境变量

环境变量,用于指向不同的抄送、第三方回调等配置

Declared In

NIMQChatMessage.h

  replyRefer

回复消息引用 @discussion

@property (nullable, nonatomic, copy, readonly) NIMQChatMessageRefer *replyRefer

Discussion

回复消息引用 @discussion

Declared In

NIMQChatMessage.h

  threadRefer

thread消息引用 @discussion

@property (nullable, nonatomic, copy, readonly) NIMQChatMessageRefer *threadRefer

Discussion

thread消息引用 @discussion

Declared In

NIMQChatMessage.h

  fromCache

是否来自缓存 @discussion

@property (nonatomic, assign, readonly) BOOL fromCache

Discussion

是否来自缓存 @discussion

Declared In

NIMQChatMessage.h

  yidunAntiSpamSetting

易盾反垃圾设置

@property (nullable, nonatomic, copy) NIMQChatMessageAntispamSetting *yidunAntiSpamSetting

Discussion

易盾反垃圾设置

Declared In

NIMQChatMessage.h

  yidunAntiSpamResult

易盾反垃圾返回的结果字段

@property (nullable, nonatomic, copy) NIMQChatMessageAntispamResult *yidunAntiSpamResult

Discussion

易盾反垃圾返回的结果字段

Declared In

NIMQChatMessage.h

  callbackExt

第三方回调回来的自定义扩展字段

@property (nonatomic, copy, readonly) NSString *callbackExt

Discussion

第三方回调回来的自定义扩展字段

Declared In

NIMQChatMessage.h

  updateContent

消息更新内容

@property (nullable, nonatomic, strong) NIMQChatMessageUpdateContent *updateContent

Discussion

消息更新内容

如果是更新的消息,里面有具体更新内容

Declared In

NIMQChatMessage.h

  updateOperatorInfo

消息更新操作信息

@property (nullable, nonatomic, strong) NIMQChatMessageUpdateOperatorInfo *updateOperatorInfo

Discussion

消息更新操作信息

如果是更新的消息,里面有具体操作信息

Declared In

NIMQChatMessage.h

  subType

消息子类型, 大于0的int NSNumber包装值

@property (nonatomic, strong) NSNumber *subType

Discussion

消息子类型, 大于0的int NSNumber包装值

Declared In

NIMQChatMessage.h