1 module vksdk.objects.users.User;
2 
3 import vksdk.objects.base.BoolInt;
4 import vksdk.objects.base.Sex;
5 import vksdk.objects.users.UserMin;
6 
7 import vibe.data.json;
8 
9 /**
10  * User object
11  */
12 class User : UserMin {
13 
14     /**
15      * User sex
16      */
17     @name("sex")
18     private Sex sex;
19 
20     /**
21      * Domain name of the user's page
22      */
23     @name("screen_name")
24     private string screenName;
25 
26     /**
27      * URL of square photo of the user with 50 pixels in width
28      */
29     @name("photo_50")
30     private string photo50;
31 
32     /**
33      * URL of square photo of the user with 100 pixels in width
34      */
35     @name("photo_100")
36     private string photo100;
37 
38     /**
39      * Information whether the user is online
40      */
41     @name("online")
42     private BoolInt online;
43 
44     /**
45      * Information whether the user is online in mobile site or application
46      */
47     @name("online_mobile")
48     private BoolInt onlineMobile;
49 
50     /**
51      * Application ID
52      */
53     @name("online_app")
54     private int onlineApp;
55 
56     Sex getSex() {
57         return sex;
58     }
59 
60     string getScreenName() {
61         return screenName;
62     }
63 
64     string getPhoto50() {
65         return photo50;
66     }
67 
68     string getPhoto100() {
69         return photo100;
70     }
71 
72     bool isOnline() {
73         return online == BoolInt.YES;
74     }
75 
76     bool isOnlineMobile() {
77         return online == BoolInt.YES;
78     }
79 
80     int getOnlineApp() {
81         return onlineApp;
82     }
83 }