EMMessage class

EMMessage - various types of message

Constructors

EMMessage({bool acked, EMMessageBody body, ChatType chatType, bool delivered, Direction direction, String from, bool listened, String localTime, String msgId, String msgTime, Status status, String to, EMMessageType type, bool unread, bool deliverAcked })
EMMessage.createReceiveMessage(EMMessageType type)
用于创建各种消息的构造函数 - 接收方。
EMMessage.createSendMessage(EMMessageType type)
用于创建各种消息的构造函数 - 发送方。
EMMessage.createTxtSendMessage(String content, String userName)
创建文本类型消息 - 发送方
EMMessage.from(Map data)

Properties

acked ↔ bool
read / write
body EMMessageBody
read / write
chatType ChatType
read / write
conversationId → String
read-only
deliverAcked ↔ bool
read / write
delivered ↔ bool
read / write
direction Direction
read / write
from ↔ String
read / write
isDeliverAcked bool
write-only
listened ↔ bool
read / write
localTime ↔ String
read / write
msgId ↔ String
read / write
msgTime ↔ String
read / write
status Status
read / write
to ↔ String
read / write
type EMMessageType
read / write
unread ↔ bool
read / write
userName → String
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

ext() → Map
TODO: setMessageStatusCallback (EMCallBack callback)
getAttribute(String attr) → dynamic
setAttribute(String attr, dynamic value) → void
toDataMap() → Map
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited