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