Inherits from NSObject
Conforms to NSCoding
NSCopying
Declared in QBChatMessage.h

Overview

QBChatMessage structure. Represents message object for peer-to-peer chat. Please set only text, recipientID & senderID values since ID is setted automatically by QBChat

Tasks

Properties

ID

@property (nonatomic, copy, nullable) NSString *ID
Discussion

Unique identifier of message (sequential number).

Declared In

QBChatMessage.h

attachments

@property (nonatomic, strong, nullable) NSArray<QBChatAttachment*> *attachments
Discussion

Array of attachments. Array of QBChatAttachment instances.

Declared In

QBChatMessage.h

carbon

@property (nonatomic, assign, readonly) BOOL carbon
Discussion

Is message carbon

Declared In

QBChatMessage.h

createdAt

@property (nonatomic, strong, nullable) NSDate *createdAt
Discussion

Created date.

Declared In

QBChatMessage.h

customParameters

@property (nonatomic, strong, null_resettable) NSMutableDictionary<NSString*NSString*> *customParameters
Discussion

Message custom parameters. Don’t use ‘body’ & ‘delay’ as keys for parameters.

Declared In

QBChatMessage.h

dateSent

@property (nonatomic, strong, nullable) NSDate *dateSent
Discussion

Message date sent.

Declared In

QBChatMessage.h

delayed

@property (nonatomic, assign) BOOL delayed
Discussion

Determines whether message was delayed.

Declared In

QBChatMessage.h

deliveredIDs

@property (nonatomic, copy, nullable) NSArray<NSNumber*> *deliveredIDs
Discussion

The array of user’s ids who received this message.

Declared In

QBChatMessage.h

dialogID

@property (nonatomic, copy, nullable) NSString *dialogID
Discussion

Unique identifier of chat dialog.

Declared In

QBChatMessage.h

markable

@property (nonatomic, assign) BOOL markable
Discussion

Determines whether message is markable.

Declared In

QBChatMessage.h

readIDs

@property (nonatomic, copy, nullable) NSArray<NSNumber*> *readIDs
Discussion

The array of user’s ids who read this message.

Declared In

QBChatMessage.h

recipientID

@property (nonatomic, assign) NSUInteger recipientID
Discussion

Message receiver ID

Declared In

QBChatMessage.h

senderID

@property (nonatomic, assign) NSUInteger senderID
Discussion

Message sender ID.

Use only for 1-1 Chat.

Declared In

QBChatMessage.h

senderResource

@property (nonatomic, copy, nullable) NSString *senderResource
Discussion

Sender resource

Declared In

QBChatMessage.h

text

@property (nonatomic, copy, nullable) NSString *text
Discussion

Message text.

Declared In

QBChatMessage.h

updatedAt

@property (nonatomic, strong, nullable) NSDate *updatedAt
Discussion

Updated date.

Declared In

QBChatMessage.h

Class Methods

markableMessage

+ (instancetype)markableMessage
Discussion

Create new markable message.

Return Value

new markable QBChatMessage instance

Declared In

QBChatMessage.h

message

+ (instancetype)message
Discussion

Create new message.

Return Value

new QBChatMessage instance

Declared In

QBChatMessage.h