profile_service_thrift_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/profile_constants.rb +15 -0
- data/lib/profile_types.rb +338 -0
- data/lib/remote_backend_profile_service.rb +482 -0
- data/lib/remote_nickname_service.rb +352 -0
- data/lib/remote_profile_modify_service.rb +784 -0
- data/lib/remote_user_info_query_service.rb +356 -0
- data/lib/remote_user_track_service.rb +360 -0
- metadata +49 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 876aa75c79e0b13158ab8a0eb707ba100673765a
|
4
|
+
data.tar.gz: fa5eb0fa4a9164bca5ae9ecf73971158b7fb9cb2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7e2bb3a38fec8ba21180d4d200e6f73ec604704624babc5f7bcf539a21e236a4de55ae7f49fd4abc357b14fafc708408c580b9103e1193f10c4ba5b9f1c01628
|
7
|
+
data.tar.gz: dd2615d396bcb7678ecf87bec3cf473e5a693468d9a974315f4f9a6447fa905b6c4872a11598feaeab8827ca9286cf5da5c80800c7d8bd070530085f18232cce
|
@@ -0,0 +1,338 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.1)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module Service
|
10
|
+
module Profile
|
11
|
+
module Thrift
|
12
|
+
class ClientInfo
|
13
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
14
|
+
CLIENTTYPE = 1
|
15
|
+
USERAGENT = 2
|
16
|
+
IP = 3
|
17
|
+
CHANNEL = 4
|
18
|
+
LONGITUDE = 5
|
19
|
+
LATITUDE = 6
|
20
|
+
DEVICEID = 7
|
21
|
+
MAC = 8
|
22
|
+
|
23
|
+
FIELDS = {
|
24
|
+
CLIENTTYPE => {:type => ::Thrift::Types::I16, :name => 'clientType'},
|
25
|
+
USERAGENT => {:type => ::Thrift::Types::STRING, :name => 'userAgent', :optional => true},
|
26
|
+
IP => {:type => ::Thrift::Types::STRING, :name => 'ip', :optional => true},
|
27
|
+
CHANNEL => {:type => ::Thrift::Types::STRING, :name => 'channel', :optional => true},
|
28
|
+
LONGITUDE => {:type => ::Thrift::Types::STRING, :name => 'longitude', :optional => true},
|
29
|
+
LATITUDE => {:type => ::Thrift::Types::STRING, :name => 'latitude', :optional => true},
|
30
|
+
DEVICEID => {:type => ::Thrift::Types::STRING, :name => 'deviceId', :optional => true},
|
31
|
+
MAC => {:type => ::Thrift::Types::STRING, :name => 'mac', :optional => true}
|
32
|
+
}
|
33
|
+
|
34
|
+
def struct_fields; FIELDS; end
|
35
|
+
|
36
|
+
def validate
|
37
|
+
end
|
38
|
+
|
39
|
+
::Thrift::Struct.generate_accessors self
|
40
|
+
end
|
41
|
+
|
42
|
+
class RegisteredUserInfo
|
43
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
44
|
+
UID = 1
|
45
|
+
TYPE = 2
|
46
|
+
THIRDPARTYID = 3
|
47
|
+
ACCOUNT = 4
|
48
|
+
IP = 5
|
49
|
+
CHANNEL = 6
|
50
|
+
GUIDESTEP = 7
|
51
|
+
CLIENTTYPE = 8
|
52
|
+
CATEGORYIDS = 9
|
53
|
+
SUCCESS = 10
|
54
|
+
|
55
|
+
FIELDS = {
|
56
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
57
|
+
TYPE => {:type => ::Thrift::Types::I16, :name => 'type'},
|
58
|
+
THIRDPARTYID => {:type => ::Thrift::Types::I64, :name => 'thirdpartyId'},
|
59
|
+
ACCOUNT => {:type => ::Thrift::Types::STRING, :name => 'account', :optional => true},
|
60
|
+
IP => {:type => ::Thrift::Types::STRING, :name => 'ip', :optional => true},
|
61
|
+
CHANNEL => {:type => ::Thrift::Types::STRING, :name => 'channel', :optional => true},
|
62
|
+
GUIDESTEP => {:type => ::Thrift::Types::I16, :name => 'guideStep'},
|
63
|
+
CLIENTTYPE => {:type => ::Thrift::Types::I16, :name => 'clientType'},
|
64
|
+
CATEGORYIDS => {:type => ::Thrift::Types::STRING, :name => 'categoryIds', :optional => true},
|
65
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
66
|
+
}
|
67
|
+
|
68
|
+
def struct_fields; FIELDS; end
|
69
|
+
|
70
|
+
def validate
|
71
|
+
end
|
72
|
+
|
73
|
+
::Thrift::Struct.generate_accessors self
|
74
|
+
end
|
75
|
+
|
76
|
+
class RegisterationProfile
|
77
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
78
|
+
UID = 1
|
79
|
+
MOBILE = 2
|
80
|
+
EMAIL = 3
|
81
|
+
NICKNAME = 4
|
82
|
+
COUNTRY = 5
|
83
|
+
PROVINCE = 6
|
84
|
+
CITY = 7
|
85
|
+
GENDER = 8
|
86
|
+
THIRDPARTYID = 9
|
87
|
+
THIRDPARTYUSERID = 10
|
88
|
+
LOGOPIC = 11
|
89
|
+
PERSONALSIGNATURE = 12
|
90
|
+
ISROBOT = 13
|
91
|
+
BIRTHYEAR = 14
|
92
|
+
BIRTHMONTH = 15
|
93
|
+
BIRTHDAY = 16
|
94
|
+
CLIENTINFO = 17
|
95
|
+
|
96
|
+
FIELDS = {
|
97
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
98
|
+
MOBILE => {:type => ::Thrift::Types::STRING, :name => 'mobile', :optional => true},
|
99
|
+
EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email', :optional => true},
|
100
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname', :optional => true},
|
101
|
+
COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country', :optional => true},
|
102
|
+
PROVINCE => {:type => ::Thrift::Types::STRING, :name => 'province', :optional => true},
|
103
|
+
CITY => {:type => ::Thrift::Types::STRING, :name => 'city', :optional => true},
|
104
|
+
GENDER => {:type => ::Thrift::Types::STRING, :name => 'gender', :optional => true},
|
105
|
+
THIRDPARTYID => {:type => ::Thrift::Types::I64, :name => 'thirdpartyId'},
|
106
|
+
THIRDPARTYUSERID => {:type => ::Thrift::Types::STRING, :name => 'thirdpartyUserId', :optional => true},
|
107
|
+
LOGOPIC => {:type => ::Thrift::Types::STRING, :name => 'logoPic', :optional => true},
|
108
|
+
PERSONALSIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'personalSignature', :optional => true},
|
109
|
+
ISROBOT => {:type => ::Thrift::Types::BOOL, :name => 'isRobot'},
|
110
|
+
BIRTHYEAR => {:type => ::Thrift::Types::I32, :name => 'birthYear'},
|
111
|
+
BIRTHMONTH => {:type => ::Thrift::Types::I32, :name => 'birthMonth'},
|
112
|
+
BIRTHDAY => {:type => ::Thrift::Types::I32, :name => 'birthDay'},
|
113
|
+
CLIENTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'clientInfo', :class => ::Service::Profile::Thrift::ClientInfo, :optional => true}
|
114
|
+
}
|
115
|
+
|
116
|
+
def struct_fields; FIELDS; end
|
117
|
+
|
118
|
+
def validate
|
119
|
+
end
|
120
|
+
|
121
|
+
::Thrift::Struct.generate_accessors self
|
122
|
+
end
|
123
|
+
|
124
|
+
class UpdatingProfile
|
125
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
126
|
+
UID = 1
|
127
|
+
NICKNAME = 2
|
128
|
+
GENDER = 3
|
129
|
+
PERSONALSIGNATURE = 4
|
130
|
+
REALNAME = 5
|
131
|
+
CONSTELLATION = 6
|
132
|
+
COUNTRY = 7
|
133
|
+
PROVINCE = 8
|
134
|
+
CITY = 9
|
135
|
+
BIRTHYEAR = 10
|
136
|
+
BIRTHMONTH = 11
|
137
|
+
BIRTHDAY = 12
|
138
|
+
CLIENTINFO = 13
|
139
|
+
OLDNICKNAME = 14
|
140
|
+
|
141
|
+
FIELDS = {
|
142
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
143
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname', :optional => true},
|
144
|
+
GENDER => {:type => ::Thrift::Types::I16, :name => 'gender'},
|
145
|
+
PERSONALSIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'personalSignature', :optional => true},
|
146
|
+
REALNAME => {:type => ::Thrift::Types::STRING, :name => 'realName', :optional => true},
|
147
|
+
CONSTELLATION => {:type => ::Thrift::Types::STRING, :name => 'constellation', :optional => true},
|
148
|
+
COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country', :optional => true},
|
149
|
+
PROVINCE => {:type => ::Thrift::Types::STRING, :name => 'province', :optional => true},
|
150
|
+
CITY => {:type => ::Thrift::Types::STRING, :name => 'city', :optional => true},
|
151
|
+
BIRTHYEAR => {:type => ::Thrift::Types::I32, :name => 'birthYear'},
|
152
|
+
BIRTHMONTH => {:type => ::Thrift::Types::I32, :name => 'birthMonth'},
|
153
|
+
BIRTHDAY => {:type => ::Thrift::Types::I32, :name => 'birthDay'},
|
154
|
+
CLIENTINFO => {:type => ::Thrift::Types::STRUCT, :name => 'clientInfo', :class => ::Service::Profile::Thrift::ClientInfo, :optional => true},
|
155
|
+
OLDNICKNAME => {:type => ::Thrift::Types::STRING, :name => 'oldNickname', :optional => true}
|
156
|
+
}
|
157
|
+
|
158
|
+
def struct_fields; FIELDS; end
|
159
|
+
|
160
|
+
def validate
|
161
|
+
end
|
162
|
+
|
163
|
+
::Thrift::Struct.generate_accessors self
|
164
|
+
end
|
165
|
+
|
166
|
+
class BasicUserInfo
|
167
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
168
|
+
UID = 1
|
169
|
+
NICKNAME = 2
|
170
|
+
LOGOPIC = 3
|
171
|
+
ISLOGINBAN = 4
|
172
|
+
ISVERIFIED = 5
|
173
|
+
PTITLE = 6
|
174
|
+
PERSONDESCRIBE = 7
|
175
|
+
COUNTRY = 8
|
176
|
+
PROVINCE = 9
|
177
|
+
CITY = 10
|
178
|
+
VCATEGORYID = 11
|
179
|
+
PERSONALSIGNATURE = 12
|
180
|
+
ERRORMSG = 13
|
181
|
+
ERRORCODE = 14
|
182
|
+
SUCCESS = 15
|
183
|
+
|
184
|
+
FIELDS = {
|
185
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
186
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname', :optional => true},
|
187
|
+
LOGOPIC => {:type => ::Thrift::Types::STRING, :name => 'logoPic', :optional => true},
|
188
|
+
ISLOGINBAN => {:type => ::Thrift::Types::BOOL, :name => 'isLoginBan'},
|
189
|
+
ISVERIFIED => {:type => ::Thrift::Types::BOOL, :name => 'isVerified'},
|
190
|
+
PTITLE => {:type => ::Thrift::Types::STRING, :name => 'ptitle', :optional => true},
|
191
|
+
PERSONDESCRIBE => {:type => ::Thrift::Types::STRING, :name => 'personDescribe', :optional => true},
|
192
|
+
COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country', :optional => true},
|
193
|
+
PROVINCE => {:type => ::Thrift::Types::STRING, :name => 'province', :optional => true},
|
194
|
+
CITY => {:type => ::Thrift::Types::STRING, :name => 'city', :optional => true},
|
195
|
+
VCATEGORYID => {:type => ::Thrift::Types::I32, :name => 'vCategoryId'},
|
196
|
+
PERSONALSIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'personalSignature', :optional => true},
|
197
|
+
ERRORMSG => {:type => ::Thrift::Types::STRING, :name => 'errorMsg', :optional => true},
|
198
|
+
ERRORCODE => {:type => ::Thrift::Types::STRING, :name => 'errorCode', :optional => true},
|
199
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
200
|
+
}
|
201
|
+
|
202
|
+
def struct_fields; FIELDS; end
|
203
|
+
|
204
|
+
def validate
|
205
|
+
end
|
206
|
+
|
207
|
+
::Thrift::Struct.generate_accessors self
|
208
|
+
end
|
209
|
+
|
210
|
+
class DetailUserInfo
|
211
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
212
|
+
UID = 1
|
213
|
+
NICKNAME = 2
|
214
|
+
LOGOPIC = 3
|
215
|
+
ISLOGINBAN = 4
|
216
|
+
ISVERIFIED = 5
|
217
|
+
PTITLE = 6
|
218
|
+
PERSONDESCRIBE = 7
|
219
|
+
COUNTRY = 8
|
220
|
+
PROVINCE = 9
|
221
|
+
CITY = 10
|
222
|
+
EMAIL = 11
|
223
|
+
MOBILE = 12
|
224
|
+
ISVEMAIL = 13
|
225
|
+
REALNAME = 14
|
226
|
+
BIRTHYEAR = 15
|
227
|
+
BIRTHMONTH = 16
|
228
|
+
BIRTHDAY = 17
|
229
|
+
CONSTELLATION = 18
|
230
|
+
GENDER = 19
|
231
|
+
VCATEGORYID = 20
|
232
|
+
MOBILEBACKGROUNDPIC = 21
|
233
|
+
WEBBACKGROUNDPIC = 22
|
234
|
+
WEBBACKGROUNDPICPOSITIONX = 23
|
235
|
+
WEBBACKGROUNDPICPOSITIONY = 24
|
236
|
+
PERSONALSIGNATURE = 25
|
237
|
+
CREATEDAT = 26
|
238
|
+
UPDATEDAT = 27
|
239
|
+
ERRORMSG = 28
|
240
|
+
ERRORCODE = 29
|
241
|
+
SUCCESS = 30
|
242
|
+
|
243
|
+
FIELDS = {
|
244
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
245
|
+
NICKNAME => {:type => ::Thrift::Types::STRING, :name => 'nickname', :optional => true},
|
246
|
+
LOGOPIC => {:type => ::Thrift::Types::STRING, :name => 'logoPic', :optional => true},
|
247
|
+
ISLOGINBAN => {:type => ::Thrift::Types::BOOL, :name => 'isLoginBan'},
|
248
|
+
ISVERIFIED => {:type => ::Thrift::Types::BOOL, :name => 'isVerified'},
|
249
|
+
PTITLE => {:type => ::Thrift::Types::STRING, :name => 'ptitle', :optional => true},
|
250
|
+
PERSONDESCRIBE => {:type => ::Thrift::Types::STRING, :name => 'personDescribe', :optional => true},
|
251
|
+
COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country', :optional => true},
|
252
|
+
PROVINCE => {:type => ::Thrift::Types::STRING, :name => 'province', :optional => true},
|
253
|
+
CITY => {:type => ::Thrift::Types::STRING, :name => 'city', :optional => true},
|
254
|
+
EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email', :optional => true},
|
255
|
+
MOBILE => {:type => ::Thrift::Types::STRING, :name => 'mobile', :optional => true},
|
256
|
+
ISVEMAIL => {:type => ::Thrift::Types::BOOL, :name => 'isVEmail'},
|
257
|
+
REALNAME => {:type => ::Thrift::Types::STRING, :name => 'realName', :optional => true},
|
258
|
+
BIRTHYEAR => {:type => ::Thrift::Types::I32, :name => 'birthYear'},
|
259
|
+
BIRTHMONTH => {:type => ::Thrift::Types::I16, :name => 'birthMonth'},
|
260
|
+
BIRTHDAY => {:type => ::Thrift::Types::I16, :name => 'birthDay'},
|
261
|
+
CONSTELLATION => {:type => ::Thrift::Types::STRING, :name => 'constellation', :optional => true},
|
262
|
+
GENDER => {:type => ::Thrift::Types::I16, :name => 'gender'},
|
263
|
+
VCATEGORYID => {:type => ::Thrift::Types::I32, :name => 'vCategoryId'},
|
264
|
+
MOBILEBACKGROUNDPIC => {:type => ::Thrift::Types::STRING, :name => 'mobileBackgroundPic', :optional => true},
|
265
|
+
WEBBACKGROUNDPIC => {:type => ::Thrift::Types::STRING, :name => 'webBackgroundPic', :optional => true},
|
266
|
+
WEBBACKGROUNDPICPOSITIONX => {:type => ::Thrift::Types::I32, :name => 'webBackgroundPicPositionX'},
|
267
|
+
WEBBACKGROUNDPICPOSITIONY => {:type => ::Thrift::Types::I32, :name => 'webBackgroundPicPositionY'},
|
268
|
+
PERSONALSIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'personalSignature', :optional => true},
|
269
|
+
CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt'},
|
270
|
+
UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt'},
|
271
|
+
ERRORMSG => {:type => ::Thrift::Types::STRING, :name => 'errorMsg', :optional => true},
|
272
|
+
ERRORCODE => {:type => ::Thrift::Types::STRING, :name => 'errorCode', :optional => true},
|
273
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
274
|
+
}
|
275
|
+
|
276
|
+
def struct_fields; FIELDS; end
|
277
|
+
|
278
|
+
def validate
|
279
|
+
end
|
280
|
+
|
281
|
+
::Thrift::Struct.generate_accessors self
|
282
|
+
end
|
283
|
+
|
284
|
+
class UserTrackInfo
|
285
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
286
|
+
UID = 1
|
287
|
+
TRACKID = 2
|
288
|
+
TRACKTITLE = 3
|
289
|
+
TRACKDURATION = 4
|
290
|
+
TRACKCREATEDAT = 5
|
291
|
+
TRACKUPDATEDAT = 6
|
292
|
+
ERRORMSG = 7
|
293
|
+
ERRORCODE = 8
|
294
|
+
SUCCESS = 9
|
295
|
+
|
296
|
+
FIELDS = {
|
297
|
+
UID => {:type => ::Thrift::Types::I64, :name => 'uid'},
|
298
|
+
TRACKID => {:type => ::Thrift::Types::I64, :name => 'trackId'},
|
299
|
+
TRACKTITLE => {:type => ::Thrift::Types::STRING, :name => 'trackTitle', :optional => true},
|
300
|
+
TRACKDURATION => {:type => ::Thrift::Types::DOUBLE, :name => 'trackDuration'},
|
301
|
+
TRACKCREATEDAT => {:type => ::Thrift::Types::I64, :name => 'trackCreatedAt'},
|
302
|
+
TRACKUPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'trackUpdatedAt'},
|
303
|
+
ERRORMSG => {:type => ::Thrift::Types::STRING, :name => 'errorMsg', :optional => true},
|
304
|
+
ERRORCODE => {:type => ::Thrift::Types::STRING, :name => 'errorCode', :optional => true},
|
305
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
306
|
+
}
|
307
|
+
|
308
|
+
def struct_fields; FIELDS; end
|
309
|
+
|
310
|
+
def validate
|
311
|
+
end
|
312
|
+
|
313
|
+
::Thrift::Struct.generate_accessors self
|
314
|
+
end
|
315
|
+
|
316
|
+
class VoidResponse
|
317
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
318
|
+
ERRORMSG = 1
|
319
|
+
ERRORCODE = 2
|
320
|
+
SUCCESS = 3
|
321
|
+
|
322
|
+
FIELDS = {
|
323
|
+
ERRORMSG => {:type => ::Thrift::Types::STRING, :name => 'errorMsg', :optional => true},
|
324
|
+
ERRORCODE => {:type => ::Thrift::Types::STRING, :name => 'errorCode', :optional => true},
|
325
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
326
|
+
}
|
327
|
+
|
328
|
+
def struct_fields; FIELDS; end
|
329
|
+
|
330
|
+
def validate
|
331
|
+
end
|
332
|
+
|
333
|
+
::Thrift::Struct.generate_accessors self
|
334
|
+
end
|
335
|
+
|
336
|
+
end
|
337
|
+
end
|
338
|
+
end
|