commit | author | age
|
3eceb5
|
1 |
// |
W |
2 |
// VKUser.h |
|
3 |
// |
|
4 |
// Copyright (c) 2014 VK.com |
|
5 |
// |
|
6 |
// Permission is hereby granted, free of charge, to any person obtaining a copy of |
|
7 |
// this software and associated documentation files (the "Software"), to deal in |
|
8 |
// the Software without restriction, including without limitation the rights to |
|
9 |
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of |
|
10 |
// the Software, and to permit persons to whom the Software is furnished to do so, |
|
11 |
// subject to the following conditions: |
|
12 |
// |
|
13 |
// The above copyright notice and this permission notice shall be included in all |
|
14 |
// copies or substantial portions of the Software. |
|
15 |
// |
|
16 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
17 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
18 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
19 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
20 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
21 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
22 |
|
|
23 |
#import <Foundation/Foundation.h> |
|
24 |
#import "VKApiObject.h" |
|
25 |
#import "VKApiObjectArray.h" |
|
26 |
#import "VKAudio.h" |
|
27 |
#import "VKCounters.h" |
|
28 |
#import "VKPhoto.h" |
|
29 |
#import "VKSchool.h" |
|
30 |
#import "VKUniversity.h" |
|
31 |
#import "VKRelative.h" |
|
32 |
|
|
33 |
@interface VKGeoObject : VKApiObject |
|
34 |
@property(nonatomic, strong) NSNumber *id; |
|
35 |
@property(nonatomic, strong) NSString *title; |
|
36 |
@end |
|
37 |
|
|
38 |
@interface VKCity : VKGeoObject |
|
39 |
@end |
|
40 |
|
|
41 |
@interface VKCountry : VKGeoObject |
|
42 |
@end |
|
43 |
|
|
44 |
/** |
|
45 |
* User personal information (field 'personal') |
|
46 |
*/ |
|
47 |
@interface VKPersonal : VKObject |
|
48 |
@property(nonatomic, strong) NSArray *langs; |
|
49 |
@property(nonatomic, strong) NSNumber *political; |
|
50 |
@property(nonatomic, strong) NSString *religion; |
|
51 |
@property(nonatomic, strong) NSNumber *life_main; |
|
52 |
@property(nonatomic, strong) NSNumber *people_main; |
|
53 |
@property(nonatomic, strong) NSString *inspired_by; |
|
54 |
@property(nonatomic, strong) NSNumber *smoking; |
|
55 |
@property(nonatomic, strong) NSNumber *alcohol; |
|
56 |
@end |
|
57 |
|
|
58 |
/** |
|
59 |
* User last seen information (field 'last_seen') |
|
60 |
*/ |
|
61 |
@interface VKLastSeen : VKApiObject |
|
62 |
@property(nonatomic, strong) NSNumber *time; |
|
63 |
@property(nonatomic, strong) NSNumber *platform; |
|
64 |
@end |
|
65 |
|
|
66 |
/** |
|
67 |
* Information about connected services by user (field 'exports') |
|
68 |
*/ |
|
69 |
@interface VKExports : VKApiObject |
|
70 |
@property(nonatomic, strong) NSNumber *twitter; |
|
71 |
@property(nonatomic, strong) NSNumber *facebook; |
|
72 |
@property(nonatomic, strong) NSNumber *livejournal; |
|
73 |
@property(nonatomic, strong) NSNumber *instagram; |
|
74 |
@end |
|
75 |
|
|
76 |
/** |
|
77 |
User type of VK API. See descriptions here https://vk.com/dev/fields |
|
78 |
*/ |
|
79 |
@interface VKUser : VKApiObject |
|
80 |
@property(nonatomic, strong) NSNumber *id; |
|
81 |
@property(nonatomic, strong) NSString *first_name; |
|
82 |
@property(nonatomic, strong) NSString *last_name; |
|
83 |
@property(nonatomic, strong) NSString *first_name_acc; |
|
84 |
@property(nonatomic, strong) NSString *last_name_acc; |
|
85 |
@property(nonatomic, strong) NSString *first_name_gen; |
|
86 |
@property(nonatomic, strong) NSString *last_name_gen; |
|
87 |
@property(nonatomic, strong) NSString *first_name_dat; |
|
88 |
@property(nonatomic, strong) NSString *last_name_dat; |
|
89 |
@property(nonatomic, strong) NSString *first_name_ins; |
|
90 |
@property(nonatomic, strong) NSString *last_name_ins; |
|
91 |
@property(nonatomic, strong) NSString *domain; |
|
92 |
@property(nonatomic, strong) VKPersonal *personal; |
|
93 |
@property(nonatomic, strong) NSNumber *sex; |
|
94 |
@property(nonatomic, strong) NSNumber *invited_by; |
|
95 |
@property(nonatomic, strong) NSNumber *online; |
|
96 |
@property(nonatomic, strong) NSString *bdate; |
|
97 |
@property(nonatomic, strong) VKCity *city; |
|
98 |
@property(nonatomic, strong) VKCountry *country; |
|
99 |
@property(nonatomic, strong) NSMutableArray *lists; |
|
100 |
@property(nonatomic, strong) NSString *screen_name; |
|
101 |
@property(nonatomic, strong) NSNumber *has_mobile; |
|
102 |
@property(nonatomic, strong) NSNumber *rate; |
|
103 |
@property(nonatomic, strong) NSString *mobile_phone; |
|
104 |
@property(nonatomic, strong) NSString *home_phone; |
|
105 |
@property(nonatomic, assign) BOOL can_post; |
|
106 |
@property(nonatomic, assign) BOOL can_see_all_posts; |
|
107 |
@property(nonatomic, strong) NSString *status; |
|
108 |
@property(nonatomic, strong) VKAudio *status_audio; |
|
109 |
@property(nonatomic, assign) bool status_loaded; |
|
110 |
@property(nonatomic, strong) VKLastSeen *last_seen; |
|
111 |
@property(nonatomic, strong) NSNumber *relation; |
|
112 |
@property(nonatomic, strong) VKUser *relation_partner; |
|
113 |
@property(nonatomic, strong) VKCounters *counters; |
|
114 |
@property(nonatomic, strong) NSString *nickname; |
|
115 |
@property(nonatomic, strong) VKExports *exports; |
|
116 |
@property(nonatomic, strong) NSNumber *wall_comments; |
|
117 |
@property(nonatomic, assign) BOOL can_write_private_message; |
|
118 |
@property(nonatomic, assign) BOOL can_see_audio; |
|
119 |
@property(nonatomic, strong) NSString *phone; |
|
120 |
@property(nonatomic, strong) NSNumber *online_mobile; |
|
121 |
@property(nonatomic, strong) NSNumber *faculty; |
|
122 |
@property(nonatomic, strong) NSNumber *university; |
|
123 |
@property(nonatomic, strong) VKUniversities *universities; |
|
124 |
@property(nonatomic, strong) VKSchools *schools; |
|
125 |
@property(nonatomic, strong) NSNumber *graduation; |
|
126 |
@property(nonatomic, strong) NSNumber *friendState; |
|
127 |
@property(nonatomic, strong) NSNumber *common_count; |
|
128 |
@property(nonatomic, strong) NSString *faculty_name; |
|
129 |
@property(nonatomic, strong) NSString *university_name; |
|
130 |
@property(nonatomic, strong) NSString *books; |
|
131 |
@property(nonatomic, strong) NSString *games; |
|
132 |
@property(nonatomic, strong) NSString *interests; |
|
133 |
@property(nonatomic, strong) NSString *movies; |
|
134 |
@property(nonatomic, strong) NSString *tv; |
|
135 |
@property(nonatomic, strong) NSString *about; |
|
136 |
@property(nonatomic, strong) NSString *music; |
|
137 |
@property(nonatomic, strong) NSString *quoutes; |
|
138 |
@property(nonatomic, strong) NSString *activities; |
|
139 |
@property(nonatomic, strong) NSString *photo_max; |
|
140 |
@property(nonatomic, strong) NSString *photo_50; |
|
141 |
@property(nonatomic, strong) NSString *photo_100; |
|
142 |
@property(nonatomic, strong) NSString *photo_200; |
|
143 |
@property(nonatomic, strong) NSString *photo_200_orig; |
|
144 |
@property(nonatomic, strong) NSString *photo_400_orig; |
|
145 |
@property(nonatomic, strong) NSString *photo_max_orig; |
|
146 |
@property(nonatomic, strong) VKPhotoArray *photos; |
|
147 |
@property(nonatomic, strong) NSNumber *photos_count; |
|
148 |
@property(nonatomic, strong) VKRelativities *relatives; |
|
149 |
@property(nonatomic, assign) NSTimeInterval bdateIntervalSort; |
|
150 |
@property(nonatomic, strong) NSNumber *verified; |
|
151 |
@property(nonatomic, strong) NSString *deactivated; |
|
152 |
@property(nonatomic, strong) NSString *site; |
|
153 |
@property(nonatomic, strong) NSString *home_town; |
|
154 |
@property(nonatomic, strong) NSNumber *blacklisted; |
|
155 |
@property(nonatomic, strong) NSNumber *blacklisted_by_me; |
|
156 |
@property(nonatomic, strong) NSString *twitter; |
|
157 |
@property(nonatomic, strong) NSString *skype; |
|
158 |
@property(nonatomic, strong) NSString *facebook; |
|
159 |
@property(nonatomic, strong) NSString *instagram; |
|
160 |
@property(nonatomic, strong) NSString *livejournal; |
|
161 |
@property(nonatomic, strong) NSString *wall_default; |
|
162 |
|
|
163 |
@property(nonatomic, strong) NSNumber *followers_count; |
|
164 |
@end |
|
165 |
|
|
166 |
/** |
|
167 |
Array of API users |
|
168 |
*/ |
|
169 |
@interface VKUsersArray : VKApiObjectArray<VKUser*> |
|
170 |
@end |