1
import 'package:vkdart/vkontakte.dart';
5
/// See https://dev.vk.com/ru/reference/objects/audio
6
class AudioAttachmentModel extends CustomAttachmentModel {
7
// ignore: public_member_api_docs
8
AudioAttachmentModel(super.payload) : super(attachType: 'audio');
11
String? get artist => payload['artist'];
13
/// Title of the composition.
14
String? get title => payload['title'];
16
/// Duration of the audio recording in seconds.
17
int? get duration => payload['duration'];
20
String? get url => payload['url'];
22
/// Audio text ID (if available).
23
int? get lyricsId => payload['lyrics_id'];
25
/// Identifier of the album in which the audio recording is located (if assigned).
26
int? get albumId => payload['album_id'];
28
/// Genre identifier from the list of
29
/// [audio genres](https://dev.vk.com/ru/reference/objects/audio-genres).
30
int? get genreId => payload['genre_id'];
33
int? get createdAt => payload['date'];
35
/// `true` if the “Do not display during search” option is enabled.
36
/// If the option is disabled, the field is not returned.
37
bool? get isNoSearch => checkBoolInProperty('no_search');
39
/// `true` if the audio is high quality.
40
bool? get isHq => checkBoolInProperty('is_hq');