NIMVideoAttachment class Null safety

音频消息附件

Inheritance
Annotations

Constructors

NIMVideoAttachment({int? duration, int? width, int? height, String? thumbPath, String? thumbUrl, String? path, required int? size, String? md5, String? url, String? displayName, String? extension, int? expire, NIMNosScene nosScene = NIMNosScenes.defaultIm, bool forceUpload = false})
NIMVideoAttachment.fromMap(Map<String, dynamic> map)
factory

Properties

displayName String?
文件显示名
@JsonKey(name: 'name'), final, inherited
duration int?
语音时长,毫秒为单位
@JsonKey(name: 'dur'), final
expire int?
过期时间
@JsonKey(name: 'expire'), final, inherited
extension String?
文件后缀名
@JsonKey(name: 'ext'), final, inherited
forceUpload bool
如果服务器存在相同的附件文件,是否强制重新上传 , 默认false
@JsonKey(name: 'force_upload'), read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
height int?
视频高度
@JsonKey(name: 'h'), final
md5 String?
文件内容的MD5
@JsonKey(name: 'md5', includeIfNull: false), final, inherited
nosScene NIMNosScene
上传文件时用的对token对应的场景,默认 NIMNosScenes.defaultIm
@JsonKey(name: 'sen', defaultValue: NIMNosScenes.defaultIm), final, inherited
path String?
文件路径
@JsonKey(name: 'path', includeIfNull: false), final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int?
文件大小
@JsonKey(name: 'size'), final, inherited
thumbPath String?
缩略本地路径
final
thumbUrl String?
缩略远程路径
final
url String?
文件下载地址
@JsonKey(name: 'url', includeIfNull: false), final, inherited
width int?
视频宽度
@JsonKey(name: 'w'), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

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