EMTextMessageBody class
文本消息类。
- Inheritance
-
- Object
- EMMessageBody
- EMTextMessageBody
Constructors
-
EMTextMessageBody({required String content, List<
String> ? targetLanguages}) - 创建一条文本消息。
- EMTextMessageBody.fromJson({required Map map})
Properties
- content ↔ String
-
文本消息内容。
latefinal
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- lastModifyOperatorId → String?
-
获取最后一次消息修改的操作者的用户 ID。
read-only
- lastModifyTime → int?
-
获取最后一次消息修改的时间戳,单位为毫秒。
read-only
- modifyCount → int?
-
获取消息修改次数。
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
-
targetLanguages
↔ List<
String> ? -
翻译的目标语言。
read / write
-
translations
↔ Map<
String, String> ? -
译文。
read / write
- type ↔ MessageType
-
获取消息类型。
read / writeinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited