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 (nonatomic, readonly) Bit6Address *address

Declared In

Bit6Conversation.h

badge

Gets the number of unread messages for the sender.

@property (nonatomic, readonly) NSNumber *badge

Declared In

Bit6Conversation.h

deliveredUntil

Returns the timestamp matching the last message in this conversation with status Bit6MessageStatus_Delivered.

@property (nonatomic, readonly) double deliveredUntil

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 (nullable, nonatomic, strong, readonly) Bit6Message *lastMessage

Declared In

Bit6Conversation.h

messages

The Bit6Message objects in the sender as a NSArray.

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

Declared In

Bit6Conversation.h

readUntil

Returns the timestamp matching the last message in this conversation with status Bit6MessageStatus_Read.

@property (nonatomic, readonly) double readUntil

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.

+ (Bit6Conversation *)conversationWithAddress:(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:(Bit6Conversation *)conversation

Parameters

conversation

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

Declared In

Bit6Conversation.h

init

Unavailable init

- (instancetype)init

Return Value

a new instance of the class.

Declared In

Bit6Conversation.h