NIMAudioAttachment class Null safety
Audio attachment
- Inheritance
-
- Object
- NIMMessageAttachment
- NIMFileAttachment
- NIMAudioAttachment
- Annotations
-
- @JsonSerializable()
Constructors
- NIMAudioAttachment({int? duration, bool? autoTransform, String? text, String? path, required int? size, String? md5, String? url, String? displayName, String? extension, int? expire, NIMNosScene nosScene = NIMNosScenes.defaultIm, bool forceUpload = false})
-
NIMAudioAttachment.fromMap(Map<
String, dynamic> map) -
factory
Properties
- autoTransform → bool?
-
Specify whether to automatically convert audio to text.
final
- 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
- 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
- text → String?
-
Text
final
- url → String?
-
File download URL
@JsonKey(name: 'url', includeIfNull: false), final, inherited
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