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) NSString *ID
Discussion

Unique identifier of message (sequential number)

Declared In

QBChatMessage.h

attachments

@property (nonatomic, retain) NSArray *attachments
Discussion

Array of attachments. Array of QBChatAttachment instances.

Declared In

QBChatMessage.h

createdAt

@property (nonatomic, retain) NSDate *createdAt
Discussion

Created date

Declared In

QBChatMessage.h

customParameters

@property (nonatomic, retain) NSMutableDictionary *customParameters
Discussion

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

Declared In

QBChatMessage.h

dateSent

@property (nonatomic, retain) NSDate *dateSent
Discussion

Message date sent

Declared In

QBChatMessage.h

delayed

@property (nonatomic, assign) BOOL delayed
Discussion

Is this message delayed

Declared In

QBChatMessage.h

deliveredIDs

@property (nonatomic, retain) NSArray *deliveredIDs
Discussion

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

Declared In

QBChatMessage.h

dialogID

@property (nonatomic, copy) NSString *dialogID
Discussion

Unique identifier of chat dialog

Declared In

QBChatMessage.h

markable

@property (nonatomic, assign) BOOL markable
Discussion

Mark message as markable

Declared In

QBChatMessage.h

read

@property (nonatomic, getter=isRead) BOOL read
Discussion

‘Read’ status of a message

Declared In

QBChatMessage.h

readIDs

@property (nonatomic, retain) NSArray *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

senderNick

@property (nonatomic, copy) NSString *senderNick
Discussion

Message sender nick, use only for group Chat

Declared In

QBChatMessage.h

text

@property (nonatomic, copy) NSString *text
Discussion

Message text

Declared In

QBChatMessage.h

updatedAt

@property (nonatomic, retain) NSDate *updatedAt
Discussion

Updated date

Declared In

QBChatMessage.h

Class Methods

markableMessage

+ (instancetype)markableMessage
Discussion

Create new markabe message

Return Value

New instance of QBChatMessage

Declared In

QBChatMessage.h

message

+ (instancetype)message
Discussion

Create new message

Return Value

New instance of QBChatMessage

Declared In

QBChatMessage.h