HyphenateSDK  3.1.4
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 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 or NSNumber of BOOL, int, unsigned in, long long, double.

- (NSString*) from
readwritenonatomiccopy

The sender

- (BOOL) isDeliverAcked
readwritenonatomicassign

Whether delivery ack has been sent or received, it indicates whether has received delivery ack for send, and whether has send delivery ack for receiver, SDK will automatically send delivery ack if EMOptions has set enableDeliveryAck

- (BOOL) isRead
readwritenonatomicassign

Whether the message has been read

- (BOOL) isReadAcked
readwritenonatomicassign

Whether read ack has been sent or received, it indicates whether has received read ack for sender, and whether has send read ack for receiver

- (long long) localTime
readwritenonatomicassign

The time of client send/received this 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

The receiver


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