EMVoiceMessageBody class
语音消息体类。
- Inheritance
-
- Object
- EMMessageBody
- EMFileMessageBody
- EMVoiceMessageBody
Constructors
- EMVoiceMessageBody({dynamic localPath, int duration = 0, String? displayName, int? fileSize})
- 创建一条语音消息。
- EMVoiceMessageBody.fromJson({required Map map})
Properties
- displayName ↔ String?
-
附件的名称。
read / writeinherited
- duration ↔ int
-
语音时长,单位是秒。
latefinal
- fileSize ↔ int?
-
附件的大小,以字节为单位。
read / writeinherited
- fileStatus ↔ DownloadStatus
-
附件的下载状态。
read / writeinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- localPath ↔ String
-
附件的本地路径。
latefinalinherited
- remotePath ↔ String?
-
附件的服务器路径。
read / writeinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- secret ↔ String?
-
获取附件的密钥。
read / writeinherited
- type ↔ MessageType
-
获取消息类型。
read / writeinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited