1 module vksdk.objects.audio.AudioFull; 2 3 import vksdk.objects.audio.Audio; 4 import vksdk.objects.base.BoolInt; 5 6 import vibe.data.json; 7 8 /** 9 * AudioFull object 10 */ 11 class AudioFull : Audio { 12 /** 13 * Duration in seconds 14 */ 15 @name("duration") 16 private int duration; 17 18 /** 19 * Date when uploaded 20 */ 21 @name("date") 22 private int date; 23 24 /** 25 * Album ID 26 */ 27 @name("album_id") 28 private int albumId; 29 30 /** 31 * Lyrics ID 32 */ 33 @name("lyrics_id") 34 private int lyricsId; 35 36 /** 37 * Genre ID 38 */ 39 @name("genre_id") 40 private int genreId; 41 42 /** 43 * Information whether the audio is hidden from search 44 */ 45 @name("no_search") 46 private BoolInt noSearch; 47 48 int getDuration() { 49 return duration; 50 } 51 52 int getDate() { 53 return date; 54 } 55 56 int getAlbumId() { 57 return albumId; 58 } 59 60 int getLyricsId() { 61 return lyricsId; 62 } 63 64 int getGenreId() { 65 return genreId; 66 } 67 68 bool isNoSearch() { 69 return noSearch == BoolInt.YES; 70 } 71 }