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
-
ID
Unique identifier of message (sequential number)
property -
text
Message text
property -
recipientID
Message receiver ID
property -
senderID
Message sender ID, use only for 1-1 Chat
property -
dateSent
Message date sent
property -
customParameters
Message custom parameters. Don’t use ‘body’ & ‘delay’ as keys for parameters.
property -
attachments
Array of attachments. Array of QBChatAttachment instances.
property -
senderNick
Message sender nick, use only for group Chat
property -
delayed
Is this message delayed
property -
markable
Mark message as markable
property -
dialogID
Unique identifier of chat dialog
property -
createdAt
Created date
property -
updatedAt
Updated date
property -
read
‘Read’ status of a message
property -
readIDs
property -
deliveredIDs
The array of user’s ids who received this message.
property -
+ message
Create new message
-
+ markableMessage
Create new markabe message
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
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
Class Methods
markableMessage 
+ (instancetype)markableMessage
Discussion
Create new markabe message
Return Value
New instance of QBChatMessage
Declared In
QBChatMessage.h