Inherits from NSObject
Declared in Bit6Conversation.h

Overview

Bit6Conversation represents a conversation (or a chat) - a set of messages between two participants.

Properties

address

The Bit6Address object associated with the sender.

@property (nonnull, nonatomic, readonly) Bit6Address *address

Declared In

Bit6Conversation.h

badge

Gets the number of unread messages for the sender.

@property (nonnull, nonatomic, readonly) NSNumber *badge

Declared In

Bit6Conversation.h

group

The Bit6Group object associated with the sender.

@property (nullable, nonatomic, readonly) Bit6Group *group

Declared In

Bit6Conversation.h

lastMessage

Last message received or sent in the conversation.

@property (nonnull, nonatomic, strong, readonly) Bit6Message *lastMessage

Declared In

Bit6Conversation.h

messages

The Bit6Message objects in the sender as a NSArray.

@property (nonnull, nonatomic, readonly) NSArray<Bit6Message*> *messages

Declared In

Bit6Conversation.h

typingAddress

Gets the current typing user as a Bit6Address object, if available.

@property (nullable, nonatomic, strong) Bit6Address *typingAddress

Declared In

Bit6Conversation.h

Class 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 *)address

Parameters

address

Bit6Address object for the conversation.

Return Value

a Bit6Conversation object for the Bit6Address indicated.

Declared In

Bit6Conversation.h

Instance 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 *)conversation

Parameters

conversation

The conversation to compare to the conversation timestamp’s value. This value must not be nil.

Declared In

Bit6Conversation.h