HyphenateSDK  3.3.0
Instance Methods | Properties | List of all members
EMMessage Class Reference

#import <EMMessage.h>

Inheritance diagram for EMMessage:

Instance Methods

(id) - initWithConversationID:from:to:body:ext:
 

Properties

NSString * messageId
 
NSString * conversationId
 
EMMessageDirection direction
 
NSString * from
 
NSString * to
 
long long timestamp
 
long long localTime
 
EMChatType chatType
 
EMMessageStatus status
 
BOOL isReadAcked
 
BOOL isDeliverAcked
 
BOOL isRead
 
EMMessageBodybody
 
NSDictionary * ext
 

Detailed Description

Chat message

Method Documentation

- (id) initWithConversationID: (NSString *)  aConversationId
from: (NSString *)  aFrom
to: (NSString *)  aTo
body: (EMMessageBody *)  aBody
ext: (NSDictionary *)  aExt 

Initialize a message instance

Parameters
aConversationIdConversation id
aFromThe sender
aToThe receiver
aBodyMessage body
aExtMessage extention
Returns
Message instance

Property Documentation

- (EMMessageBody*) body
readwritenonatomicstrong

Message body

- (EMChatType) chatType
readwritenonatomicassign

Chat type

- (NSString*) conversationId
readwritenonatomiccopy

Unique identifier of message's conversation

- (EMMessageDirection) direction
readwritenonatomicassign

Message direction

- (NSDictionary*) ext
readwritenonatomiccopy

Message extention

Key type must be NSString, Value type must be NSString, int, unsigned in, long long, or double. Please use NSNumber ( or ) instead of BOOL.

- (NSString*) from
readwritenonatomiccopy

Message sender

- (BOOL) isDeliverAcked
readwritenonatomicassign

Whether delivery acknowledgement has been sent or received, 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

- (BOOL) isRead
readwritenonatomicassign

Whether the message has been read

- (BOOL) isReadAcked
readwritenonatomicassign

Whether read acknowledgement has been sent or received, it indicates whether the sender has received a message read acknowledgement, or whether the recipient has sent a message read acknowledgement

- (long long) localTime
readwritenonatomicassign

The time of client send/receive the message

- (NSString*) messageId
readwritenonatomiccopy

Unique identifier of message

- (EMMessageStatus) status
readwritenonatomicassign

Message status

- (long long) timestamp
readwritenonatomicassign

Timestamp, the time of server received this message

- (NSString*) to
readwritenonatomiccopy

Message receiver


The documentation for this class was generated from the following file: