Bit6Conversation Class Reference
Bit6Conversation represents a conversation (or a chat) - a set of messages between two participants.
The Bit6Address object associated with the sender.
@property (nonatomic, readonly) Bit6Address *address
Gets the number of unread messages for the sender.
@property (nonatomic, readonly) NSNumber *badge
Returns the timestamp matching the last message in this conversation with status Bit6MessageStatus_Delivered.
@property (nonatomic, readonly) double deliveredUntil
The Bit6Group object associated with the sender.
@property (nullable, nonatomic, readonly) Bit6Group *group
Last message received or sent in the conversation.
@property (nullable, nonatomic, strong, readonly) Bit6Message *lastMessage
The Bit6Message objects in the sender as a NSArray.
@property (nonatomic, copy, readonly) NSArray<Bit6Message*> *messages
Returns the timestamp matching the last message in this conversation with status Bit6MessageStatus_Read.
@property (nonatomic, readonly) double readUntil
Gets the current typing user as a Bit6Address object, if available.
@property (nullable, nonatomic, strong) Bit6Address *typingAddress
Returns a Bit6Conversation object based on the Bit6Address indicated. If the conversation didn’t exists a new one will be created.
+ (Bit6Conversation *)conversationWithAddress:(Bit6Address *)address
Bit6Address object for the conversation.
a Bit6Conversation object for the Bit6Address indicated.
Returns an NSComparisonResult value that indicates whether the conversation timestamp value is greater than, equal to, or less than a given conversation timestamp.
- (NSComparisonResult)compare:(Bit6Conversation *)conversation
The conversation to compare to the conversation timestamp’s value. This value must not be nil.