RCConversationModel Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | RCConversationModel.h |
conversationModelType
会话Cell数据模型的显示类型
@property (nonatomic, assign) RCConversationModelType conversationModelTypeDiscussion
会话Cell数据模型的显示类型
Declared In
RCConversationModel.h
extend
用户自定义的扩展数据
@property (nonatomic, strong) id extendDiscussion
用户自定义的扩展数据
Declared In
RCConversationModel.h
conversationType
会话类型
@property (nonatomic, assign) RCConversationType conversationTypeDiscussion
会话类型
Declared In
RCConversationModel.h
targetId
目标会话ID
@property (nonatomic, copy) NSString *targetIdDiscussion
目标会话ID
Declared In
RCConversationModel.h
conversationTitle
会话的标题
@property (nonatomic, copy) NSString *conversationTitleDiscussion
会话的标题
Declared In
RCConversationModel.h
unreadMessageCount
会话中的未读消息数
@property (nonatomic, assign) NSInteger unreadMessageCountDiscussion
会话中的未读消息数
Declared In
RCConversationModel.h
isTop
当前会话是否置顶
@property (nonatomic, assign) BOOL isTopDiscussion
当前会话是否置顶
Declared In
RCConversationModel.h
blockStatus
当前会话是否是免打扰状态
@property (nonatomic, assign) RCConversationNotificationStatus blockStatusDiscussion
当前会话是否是免打扰状态
Declared In
RCConversationModel.h
topCellBackgroundColor
置顶Cell的背景颜色
@property (nonatomic, strong) UIColor *topCellBackgroundColorDiscussion
置顶Cell的背景颜色
Declared In
RCConversationModel.h
cellBackgroundColor
非置顶的Cell的背景颜色
@property (nonatomic, strong) UIColor *cellBackgroundColorDiscussion
非置顶的Cell的背景颜色
Declared In
RCConversationModel.h
receivedStatus
会话中最后一条消息的接收状态
@property (nonatomic, assign) RCReceivedStatus receivedStatusDiscussion
会话中最后一条消息的接收状态
Declared In
RCConversationModel.h
sentStatus
会话中最后一条消息的发送状态
@property (nonatomic, assign) RCSentStatus sentStatusDiscussion
会话中最后一条消息的发送状态
Declared In
RCConversationModel.h
receivedTime
会话中最后一条消息的接收时间(Unix时间戳、毫秒)
@property (nonatomic, assign) long long receivedTimeDiscussion
会话中最后一条消息的接收时间(Unix时间戳、毫秒)
Declared In
RCConversationModel.h
sentTime
会话中最后一条消息的发送时间(Unix时间戳、毫秒)
@property (nonatomic, assign) long long sentTimeDiscussion
会话中最后一条消息的发送时间(Unix时间戳、毫秒)
Declared In
RCConversationModel.h
draft
会话中存在的草稿
@property (nonatomic, copy) NSString *draftDiscussion
会话中存在的草稿
Declared In
RCConversationModel.h
objectName
会话中最后一条消息的类型名
@property (nonatomic, copy) NSString *objectNameDiscussion
会话中最后一条消息的类型名
Declared In
RCConversationModel.h
senderUserId
会话中最后一条消息的发送者用户ID
@property (nonatomic, copy) NSString *senderUserIdDiscussion
会话中最后一条消息的发送者用户ID
Declared In
RCConversationModel.h
lastestMessageId
会话中最后一条消息的消息ID
@property (nonatomic, assign) long lastestMessageIdDiscussion
会话中最后一条消息的消息ID
Declared In
RCConversationModel.h
lastestMessage
会话中最后一条消息的内容
@property (nonatomic, strong) RCMessageContent *lastestMessageDiscussion
会话中最后一条消息的内容
Declared In
RCConversationModel.h
lastestMessageDirection
会话中最后一条消息的方向
@property (nonatomic, assign) RCMessageDirection lastestMessageDirectionDiscussion
会话中最后一条消息的方向
Declared In
RCConversationModel.h
jsonDict
会话中最后一条消息的json Dictionary
@property (nonatomic, strong) NSDictionary *jsonDictDiscussion
会话中最后一条消息的json Dictionary
Declared In
RCConversationModel.h
hasUnreadMentioned
会话中有被提及的消息(有@你的消息)
@property (nonatomic, assign, readonly) BOOL hasUnreadMentionedDiscussion
会话中有被提及的消息(有@你的消息)
Declared In
RCConversationModel.h
mentionedCount
会话中有被@的消息数量
@property (nonatomic, assign) int mentionedCountDiscussion
会话中有被@的消息数量
Declared In
RCConversationModel.h
– initWithConversation:extend:
初始化会话显示数据模型
- (instancetype)initWithConversation:(RCConversation *)conversation extend:(id)extendParameters
conversation |
会话 |
|---|---|
extend |
用户自定义的扩展数据 |
Return Value
会话Cell的数据模型对象
Discussion
初始化会话显示数据模型
Declared In
RCConversationModel.h
– updateWithMessage:
更新数据模型中的消息
- (void)updateWithMessage:(RCMessage *)messageParameters
message |
此会话中最新的消息 |
|---|
Discussion
更新数据模型中的消息
Declared In
RCConversationModel.h
– isMatching:targetId:
会话和数据模型是否匹配
- (BOOL)isMatching:(RCConversationType)conversationType targetId:(NSString *)targetIdParameters
conversationType |
会话类型 |
|---|---|
targetId |
目标会话ID |
Return Value
会话和数据模型是否匹配
Discussion
会话和数据模型是否匹配
Declared In
RCConversationModel.h