RCMessageModel Class Reference

Inherits from NSObject
Declared in RCMessageModel.h

Overview

消息Cell的数据模型类

  isDisplayMessageTime

是否显示时间

@property (nonatomic, assign) BOOL isDisplayMessageTime

Discussion

是否显示时间

Declared In

RCMessageModel.h

  isDisplayNickname

是否显示用户名

@property (nonatomic, assign) BOOL isDisplayNickname

Discussion

是否显示用户名

Declared In

RCMessageModel.h

  userInfo

用户信息

@property (nonatomic, strong) RCUserInfo *userInfo

Discussion

用户信息

Declared In

RCMessageModel.h

  conversationType

会话类型

@property (nonatomic, assign) RCConversationType conversationType

Discussion

会话类型

Declared In

RCMessageModel.h

  targetId

目标会话ID

@property (nonatomic, copy) NSString *targetId

Discussion

目标会话ID

Declared In

RCMessageModel.h

  messageId

消息ID

@property (nonatomic, assign) long messageId

Discussion

消息ID

Declared In

RCMessageModel.h

  messageDirection

消息方向

@property (nonatomic, assign) RCMessageDirection messageDirection

Discussion

消息方向

Declared In

RCMessageModel.h

  senderUserId

发送者的用户ID

@property (nonatomic, copy) NSString *senderUserId

Discussion

发送者的用户ID

Declared In

RCMessageModel.h

  receivedStatus

消息的接收状态

@property (nonatomic, assign) RCReceivedStatus receivedStatus

Discussion

消息的接收状态

Declared In

RCMessageModel.h

  sentStatus

消息的发送状态

@property (nonatomic, assign) RCSentStatus sentStatus

Discussion

消息的发送状态

Declared In

RCMessageModel.h

  receivedTime

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

@property (nonatomic, assign) long long receivedTime

Discussion

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

Declared In

RCMessageModel.h

  sentTime

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

@property (nonatomic, assign) long long sentTime

Discussion

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

Declared In

RCMessageModel.h

  objectName

消息的类型名

@property (nonatomic, copy) NSString *objectName

Discussion

消息的类型名

Declared In

RCMessageModel.h

  content

消息的内容

@property (nonatomic, strong) RCMessageContent *content

Discussion

消息的内容

Declared In

RCMessageModel.h

  readReceiptInfo

阅读回执状态

@property (nonatomic, strong) RCReadReceiptInfo *readReceiptInfo

Discussion

阅读回执状态

Declared In

RCMessageModel.h

  extra

消息的附加字段

@property (nonatomic, copy) NSString *extra

Discussion

消息的附加字段

Declared In

RCMessageModel.h

  cellSize

消息展示时的Cell高度

@property (nonatomic) CGSize cellSize

Discussion

消息展示时的Cell高度

用于大量消息的显示优化

Declared In

RCMessageModel.h

  messageUId

全局唯一ID

@property (nonatomic, copy) NSString *messageUId

Discussion

全局唯一ID

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

Declared In

RCMessageModel.h

  isCanSendReadReceipt

消息是否可以发送请求回执

@property (nonatomic, assign) BOOL isCanSendReadReceipt

Discussion

消息是否可以发送请求回执

Declared In

RCMessageModel.h

  readReceiptCount

已读人数

@property (nonatomic, assign) NSInteger readReceiptCount

Discussion

已读人数

Declared In

RCMessageModel.h

  canIncludeExpansion

消息是否可以包含扩展信息

@property (nonatomic, assign) BOOL canIncludeExpansion

Discussion

消息是否可以包含扩展信息

该属性在消息发送时确定,发送之后不能再做修改

扩展信息只支持单聊和群组,其它会话类型不能设置扩展信息

Declared In

RCMessageModel.h

  expansionDic

消息扩展信息列表

@property (nonatomic, strong) NSDictionary<NSString*NSString*> *expansionDic

Discussion

消息扩展信息列表

扩展信息只支持单聊和群组,其它会话类型不能设置扩展信息

Declared In

RCMessageModel.h

+ modelWithMessage:

初始化消息Cell的数据模型

+ (instancetype)modelWithMessage:(RCMessage *)rcMessage

Parameters

rcMessage

消息实体

Return Value

消息Cell的数据模型对象

Discussion

初始化消息Cell的数据模型

Declared In

RCMessageModel.h

– initWithMessage:

初始化消息Cell的数据模型

- (instancetype)initWithMessage:(RCMessage *)rcMessage

Parameters

rcMessage

消息实体

Return Value

消息Cell的数据模型对象

Discussion

初始化消息Cell的数据模型

Declared In

RCMessageModel.h