Bit6Conversation Class Reference
| Inherits from | NSObject |
| Declared in | Bit6Conversation.h |
Overview
Bit6Conversation represents a conversation (or a chat) - a set of messages between two participants.
Tasks
-
+ conversationWithAddress: -
messagesproperty -
addressproperty -
groupproperty -
badgeproperty -
lastMessageproperty -
typingAddressproperty -
– compare:
Properties
address
The Bit6Address object associated with the sender.
@property (nonnull, nonatomic, readonly) Bit6Address *addressDeclared In
Bit6Conversation.hbadge
Gets the number of unread messages for the sender.
@property (nonnull, nonatomic, readonly) NSNumber *badgeSee Also
Declared In
Bit6Conversation.hgroup
The Bit6Group object associated with the sender.
@property (nullable, nonatomic, readonly) Bit6Group *groupDeclared In
Bit6Conversation.hlastMessage
Last message received or sent in the conversation.
@property (nonnull, nonatomic, strong, readonly) Bit6Message *lastMessageDeclared In
Bit6Conversation.hmessages
The Bit6Message objects in the sender as a NSArray.
@property (nonnull, nonatomic, readonly) NSArray<Bit6Message*> *messagesDeclared In
Bit6Conversation.htypingAddress
Gets the current typing user as a Bit6Address object, if available.
@property (nullable, nonatomic, strong) Bit6Address *typingAddressDeclared In
Bit6Conversation.hClass Methods
conversationWithAddress:
Returns a Bit6Conversation object based on the Bit6Address indicated. If the conversation didn’t exists a new one will be created.
+ (nonnull Bit6Conversation *)conversationWithAddress:(nonnull Bit6Address *)addressParameters
- address
Bit6Address object for the conversation.
Return Value
a Bit6Conversation object for the Bit6Address indicated.
Declared In
Bit6Conversation.hInstance Methods
compare:
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:(nonnull Bit6Conversation *)conversationParameters
- conversation
The conversation to compare to the conversation timestamp’s value. This value must not be nil.
Declared In
Bit6Conversation.h