EMFileMessageBody class
文件类消息的基类。
- Inheritance
-
- Object
- EMMessageBody
- EMFileMessageBody
- Implementers
Constructors
- EMFileMessageBody({required String localPath, String? displayName, int? fileSize, MessageType type = MessageType.FILE})
- 创建一条带文件附件的消息。
- EMFileMessageBody.fromJson({required Map map, MessageType type = MessageType.FILE})
Properties
- displayName ↔ String?
-
附件的名称。
read / write
- fileSize ↔ int?
-
附件的大小,以字节为单位。
read / write
- fileStatus ↔ DownloadStatus
-
附件的下载状态。
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- localPath ↔ String
-
附件的本地路径。
latefinal
- remotePath ↔ String?
-
附件的服务器路径。
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- secret ↔ String?
-
获取附件的密钥。
read / write
- 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
Static Methods
-
downloadStatusFromInt(
int? status) → DownloadStatus