RCConversationModel Class Reference
Inherits from | NSObject |
---|---|
Declared in | RCConversationModel.h |
会话Cell数据模型的显示类型
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
目标会话ID
targetId
目标会话ID
@property (nonatomic, strong) 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
置顶Cell的背景颜色
topCellBackgroundColor
置顶Cell的背景颜色
@property (nonatomic, strong) UIColor *topCellBackgroundColor
Discussion
置顶Cell的背景颜色
Declared In
RCConversationModel.h
非置顶的Cell的背景颜色
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
会话中最后一条消息的接收时间(Unix时间戳、毫秒)
receivedTime
会话中最后一条消息的接收时间(Unix时间戳、毫秒)
@property (nonatomic, assign) long long receivedTime
Discussion
会话中最后一条消息的接收时间(Unix时间戳、毫秒)
Declared In
RCConversationModel.h
会话中最后一条消息的发送时间(Unix时间戳、毫秒)
sentTime
会话中最后一条消息的发送时间(Unix时间戳、毫秒)
@property (nonatomic, assign) long long sentTime
Discussion
会话中最后一条消息的发送时间(Unix时间戳、毫秒)
Declared In
RCConversationModel.h
会话中存在的草稿
draft
会话中存在的草稿
@property (nonatomic, strong) NSString *draft
Discussion
会话中存在的草稿
Declared In
RCConversationModel.h
会话中最后一条消息的类型名
objectName
会话中最后一条消息的类型名
@property (nonatomic, strong) NSString *objectName
Discussion
会话中最后一条消息的类型名
Declared In
RCConversationModel.h
会话中最后一条消息的发送者用户ID
senderUserId
会话中最后一条消息的发送者用户ID
@property (nonatomic, strong) NSString *senderUserId
Discussion
会话中最后一条消息的发送者用户ID
Declared In
RCConversationModel.h
会话中最后一条消息的发送者的用户名(已废弃,请勿使用)
senderUserName
会话中最后一条消息的发送者的用户名(已废弃,请勿使用)
@property (nonatomic, strong) __deprecated_msg ( "已废弃,请勿使用。" ) NSString *senderUserName
Discussion
会话中最后一条消息的发送者的用户名(已废弃,请勿使用)
Warning: 已废弃,请勿使用。
Declared In
RCConversationModel.h
会话中最后一条消息的消息ID
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
会话中最后一条消息的json Dictionary
jsonDict
会话中最后一条消息的json Dictionary
@property (nonatomic, strong) NSDictionary *jsonDict
Discussion
会话中最后一条消息的json Dictionary
Declared In
RCConversationModel.h
会话中有被提及的消息(有@你的消息)
hasUnreadMentioned
会话中有被提及的消息(有@你的消息)
@property (nonatomic, assign) BOOL hasUnreadMentioned
Discussion
会话中有被提及的消息(有@你的消息)
Declared In
RCConversationModel.h
初始化会话Cell的数据模型(已废弃,请勿使用)
– init:exntend:
初始化会话Cell的数据模型(已废弃,请勿使用)
- (instancetype)init:(RCConversationModelType)conversationModelType exntend:(id)extend
Parameters
conversationModelType |
会话Cell数据模型的显示类型 |
---|---|
extend |
用户自定义的扩展数据 |
Return Value
会话Cell的数据模型对象
Discussion
初始化会话Cell的数据模型(已废弃,请勿使用)
Warning: 已废弃,请勿使用。
Declared In
RCConversationModel.h
初始化会话显示数据模型
– init:conversation:extend:
初始化会话显示数据模型
- (instancetype)init:(RCConversationModelType)conversationModelType conversation:(RCConversation *)conversation extend:(id)extend
Parameters
conversationModelType |
会话Cell数据模型的显示类型 |
---|---|
conversation |
会话 |
extend |
用户自定义的扩展数据 |
Return Value
会话Cell的数据模型对象
Discussion
初始化会话显示数据模型
Warning: 已废弃,请勿使用。
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