1 module vksdk.objects.audio.Audio;
2 
3 import vibe.data.json;
4 
5 /**
6  * Audio object
7  */
8 class Audio {
9     /**
10      * Audio ID
11      */
12     @name("id")
13     private int id;
14 
15     /**
16      * Audio owner's ID
17      */
18     @name("owner_id")
19     private int ownerId;
20 
21     /**
22      * Artist name
23      */
24     @name("artist")
25     private string artist;
26 
27     /**
28      * Title
29      */
30     @name("title")
31     private string title;
32 
33     /**
34      * URL of mp3 file
35      */
36     @name("url")
37     private string url;
38 
39     /**
40      * Access key for the audio
41      */
42     @name("access_key")
43     private string accessKey;
44 
45     int getId() {
46         return id;
47     }
48 
49     int getOwnerId() {
50         return ownerId;
51     }
52 
53     string getArtist() {
54         return artist;
55     }
56 
57     string getTitle() {
58         return title;
59     }
60 
61     string getUrl() {
62         return url;
63     }
64 
65     string getAccessKey() {
66         return accessKey;
67     }
68 }