RCMessage Class Reference

Inherits from NSObject
Conforms to NSCoding
NSCopying
Declared in RCMessage.h

Overview

消息实体类

消息实体类,包含消息的所有属性。


会话类型

  conversationType

会话类型

@property (nonatomic, assign) RCConversationType conversationType

Discussion

会话类型

Declared In

RCMessage.h


目标会话ID

  targetId

目标会话ID

@property (nonatomic, strong) NSString *targetId

Discussion

目标会话ID

Declared In

RCMessage.h


消息的ID

  messageId

消息的ID

@property (nonatomic, assign) long messageId

Discussion

消息的ID

本地存储的消息的唯一值(数据库索引唯一值)

Declared In

RCMessage.h


消息的方向

  messageDirection

消息的方向

@property (nonatomic, assign) RCMessageDirection messageDirection

Discussion

消息的方向

Declared In

RCMessage.h


消息的发送者ID

  senderUserId

消息的发送者ID

@property (nonatomic, strong) NSString *senderUserId

Discussion

消息的发送者ID

Declared In

RCMessage.h


消息的接收状态

  receivedStatus

消息的接收状态

@property (nonatomic, assign) RCReceivedStatus receivedStatus

Discussion

消息的接收状态

Declared In

RCMessage.h


消息的发送状态

  sentStatus

消息的发送状态

@property (nonatomic, assign) RCSentStatus sentStatus

Discussion

消息的发送状态

Declared In

RCMessage.h


消息的接收时间(Unix时间戳、毫秒)

  receivedTime

消息的接收时间(Unix时间戳、毫秒)

@property (nonatomic, assign) long long receivedTime

Discussion

消息的接收时间(Unix时间戳、毫秒)

Declared In

RCMessage.h


消息的发送时间(Unix时间戳、毫秒)

  sentTime

消息的发送时间(Unix时间戳、毫秒)

@property (nonatomic, assign) long long sentTime

Discussion

消息的发送时间(Unix时间戳、毫秒)

Declared In

RCMessage.h


消息的类型名

  objectName

消息的类型名

@property (nonatomic, strong) NSString *objectName

Discussion

消息的类型名

Declared In

RCMessage.h


消息的内容

  content

消息的内容

@property (nonatomic, strong) RCMessageContent *content

Discussion

消息的内容

Declared In

RCMessage.h


消息的附加字段

  extra

消息的附加字段

@property (nonatomic, strong) NSString *extra

Discussion

消息的附加字段

Declared In

RCMessage.h


全局唯一ID

  messageUId

全局唯一ID

@property (nonatomic, strong) NSString *messageUId

Discussion

全局唯一ID

服务器消息唯一ID(在同一个Appkey下全局唯一)

Declared In

RCMessage.h


阅读回执状态

  readReceiptInfo

阅读回执状态

@property (nonatomic, strong) RCReadReceiptInfo *readReceiptInfo

Discussion

阅读回执状态

Declared In

RCMessage.h


RCMessage初始化方法

– initWithType:targetId:direction:messageId:content:

RCMessage初始化方法

- (instancetype)initWithType:(RCConversationType)conversationType targetId:(NSString *)targetId direction:(RCMessageDirection)messageDirection messageId:(long)messageId content:(RCMessageContent *)content

Parameters

conversationType

会话类型

targetId

目标会话ID

messageDirection

消息的方向

messageId

消息的ID

content

消息的内容

Discussion

RCMessage初始化方法

Declared In

RCMessage.h


RCMessage初始化方法(已废弃,请勿使用)

+ messageWithJSON:

RCMessage初始化方法(已废弃,请勿使用)

+ (instancetype)messageWithJSON:(NSDictionary *)jsonData

Parameters

jsonData

消息的JSON Dictionary

Return Value

消息实体对象

Discussion

RCMessage初始化方法(已废弃,请勿使用)

Warning: 已废弃,请勿使用。

Declared In

RCMessage.h