#import <EMMessage.h>
◆ initWithConversationID:from:to:body:ext:
- (id) initWithConversationID: |
|
(NSString *) |
aConversationId |
from: |
|
(NSString *) |
aFrom |
to: |
|
(NSString *) |
aTo |
body: |
|
(EMMessageBody *) |
aBody |
ext: |
|
(NSDictionary *) |
aExt |
|
|
| |
Initialize a message instance
- Parameters
-
aConversationId | Conversation id |
aFrom | Sender |
aTo | Receiver |
aBody | Message body |
aExt | Message extention |
- Returns
- Message instance
◆ body
◆ chatType
◆ conversationId
- (NSString*) conversationId |
|
readwritenonatomiccopy |
Unique identifier of conversation, the message's container object
◆ direction
- (EMMessageDirection) direction |
|
readwritenonatomicassign |
Message delivery direction
◆ ext
Message extension
Key type must be NSString. Value type must be NSString, or NSNumber object (including int, unsigned in, long long, double, use NSNumber (@YES/@NO) instead of BOOL).
◆ from
◆ groupAckCount
Number of group confirmation messages
◆ isDeliverAcked
Acknowledge if the message is delivered. It indicates whether the sender has received a message deliver acknowledgement; or whether the recipient has sent a message deliver acknowledgement. SDK will automatically send delivery acknowledgement if EMOptions is set to enableDeliveryAck
◆ isListened
Whether the message has been listen
◆ isNeedGroupAck
Whether need group confirmation
◆ isRead
Whether the message has been read
◆ isReadAcked
Acknowledge if the message is read by the receipient. It indicates whether the sender has received a message read acknowledgement; or whether the recipient has sent a message read acknowledgement
◆ localTime
The time of client sends/receives the message
◆ messageId
Unique identifier of the message
◆ status
- (EMMessageStatus) status |
|
readwritenonatomicassign |
Message delivery status type
◆ timestamp
Timestamp, the time of server received the message
◆ to
The documentation for this class was generated from the following file: