NIMVideoAttachment class Null safety

Audio attachment

Inheritance
Annotations
  • @JsonSerializable()

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?
File display name
@JsonKey(name: 'name'), final, inherited
duration int?
Audio duration in milliseconds
@JsonKey(name: 'dur'), final
expire int?
Expiration date
@JsonKey(name: 'expire'), final, inherited
extension String?
File extension
@JsonKey(name: 'ext'), final, inherited
forceUpload bool
Specify whether to upload forcibly if the same file already exists on the server. The default value is false.
@JsonKey(name: 'force_upload'), read / write, inherited
hashCode int
The hash code for this object.
read-only, inherited
height int?
Video height
@JsonKey(name: 'h'), final
md5 String?
MD5 value of the file content
@JsonKey(name: 'md5', includeIfNull: false), final, inherited
nosScene NIMNosScene
NOS token used for uploading files. The default value is NIMNosScenes.defaultIm.
@JsonKey(name: 'sen', defaultValue: NIMNosScenes.defaultIm), final, inherited
path String?
File path
@JsonKey(name: 'path', includeIfNull: false), final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int?
File size
@JsonKey(name: 'size'), final, inherited
thumbPath String?
Local file path of a thumbnail
final
thumbUrl String?
Thumbnail URL
final
url String?
File download URL
@JsonKey(name: 'url', includeIfNull: false), final, inherited
width int?
Video width
@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