Subversion Repositories SmartDukaan

Rev

Rev 513 | Rev 567 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 513 Rev 559
Line 17... Line 17...
17
 
17
 
18
class Iface:
18
class Iface:
19
  """
19
  """
20
  service
20
  service
21
  """
21
  """
22
  def createContext(self, context, updateExisting):
22
  def createAnonymousUser(self, jsessionId):
23
    """
23
    """
24
    Parameters:
24
    Parameters:
25
     - context
-
 
26
     - updateExisting
25
     - jsessionId
27
    """
26
    """
28
    pass
27
    pass
29
 
28
 
30
  def getContextFromId(self, userId, isSessionId):
29
  def getUserById(self, userId):
31
    """
30
    """
32
    Parameters:
31
    Parameters:
33
     - userId
32
     - userId
34
     - isSessionId
-
 
35
    """
33
    """
36
    pass
34
    pass
37
 
35
 
38
  def getContextFromEmailOrHandle(self, emailorhandle, isEmail):
36
  def createUser(self, user):
39
    """
37
    """
40
    Parameters:
38
    Parameters:
41
     - emailorhandle
-
 
42
     - isEmail
39
     - user
43
    """
40
    """
44
    pass
41
    pass
45
 
42
 
46
  def getState(self, userId, isSessionId):
43
  def updateUser(self, user):
47
    """
44
    """
48
    Parameters:
45
    Parameters:
49
     - userId
46
     - user
50
     - isSessionId
-
 
51
    """
47
    """
52
    pass
48
    pass
53
 
49
 
54
  def getPrimaryInfo(self, userId, isSessionId):
50
  def deleteUser(self, userId):
55
    """
51
    """
56
    Parameters:
52
    Parameters:
57
     - userId
53
     - userId
58
     - isSessionId
-
 
59
    """
54
    """
60
    pass
55
    pass
61
 
56
 
62
  def getInternalInfo(self, userId, isSessionId):
57
  def getUserState(self, userId):
63
    """
58
    """
64
    Parameters:
59
    Parameters:
65
     - userId
60
     - userId
66
     - isSessionId
-
 
67
    """
61
    """
68
    pass
62
    pass
69
 
63
 
70
  def getContext(self, email, password):
64
  def authenticateUser(self, email, password):
71
    """
65
    """
72
    Parameters:
66
    Parameters:
73
     - email
67
     - email
74
     - password
68
     - password
75
    """
69
    """
76
    pass
70
    pass
77
 
71
 
78
  def authenticateUser(self, handle, password, isEmail):
-
 
79
    """
-
 
80
    Parameters:
-
 
81
     - handle
-
 
82
     - password
-
 
83
     - isEmail
-
 
84
    """
-
 
85
    pass
-
 
86
 
-
 
87
  def userExists(self, email):
72
  def userExists(self, email):
88
    """
73
    """
89
    Parameters:
74
    Parameters:
90
     - email
75
     - email
91
    """
76
    """
92
    pass
77
    pass
93
 
78
 
94
  def addIpAdressForUser(self, ip, timestamp, userId):
79
  def addAddressForUser(self, userId, address, timestamp, setDefault):
95
    """
80
    """
96
    Parameters:
81
    Parameters:
97
     - ip
-
 
98
     - timestamp
-
 
99
     - userId
82
     - userId
100
    """
-
 
101
    pass
-
 
102
 
-
 
103
  def addAddressForUser(self, address, userid, timestamp, setDefault):
-
 
104
    """
-
 
105
    Parameters:
-
 
106
     - address
83
     - address
107
     - userid
-
 
108
     - timestamp
84
     - timestamp
109
     - setDefault
85
     - setDefault
110
    """
86
    """
111
    pass
87
    pass
112
 
88
 
Line 148... Line 124...
148
     - userid
124
     - userid
149
     - password
125
     - password
150
    """
126
    """
151
    pass
127
    pass
152
 
128
 
153
  def deleteUser(self, userid, isSessionId):
129
  def createCart(self, userId):
154
    """
130
    """
155
    Parameters:
131
    Parameters:
156
     - userid
132
     - userId
157
     - isSessionId
-
 
158
    """
133
    """
159
    pass
134
    pass
160
 
135
 
161
  def sendEmailVerification(self, userid):
136
  def getCurrentCart(self, userId):
162
    """
137
    """
163
    Parameters:
138
    Parameters:
164
     - userid
139
     - userId
165
    """
140
    """
166
    pass
141
    pass
167
 
142
 
168
  def sendSMSVerification(self, userid):
143
  def getCart(self, cartId):
169
    """
144
    """
170
    Parameters:
145
    Parameters:
171
     - userid
146
     - cartId
172
    """
147
    """
173
    pass
148
    pass
174
 
149
 
175
  def confirmEmailVerification(self, userid):
150
  def getCartsForUser(self, userId, status):
176
    """
151
    """
177
    Parameters:
152
    Parameters:
178
     - userid
153
     - userId
-
 
154
     - status
179
    """
155
    """
180
    pass
156
    pass
181
 
157
 
182
  def confirmSMSVerification(self, userid):
158
  def getCartsByStatus(self, status):
183
    """
159
    """
184
    Parameters:
160
    Parameters:
185
     - userid
161
     - status
186
    """
162
    """
187
    pass
163
    pass
188
 
164
 
189
  def addSocialhandle(self, userid, socialService, handle):
165
  def getCartsByTime(self, from_time, to_time, status):
190
    """
166
    """
191
    Parameters:
167
    Parameters:
192
     - userid
168
     - from_time
193
     - socialService
169
     - to_time
194
     - handle
170
     - status
195
    """
171
    """
196
    pass
172
    pass
197
 
173
 
198
  def sendNewPasswordById(self, userid):
174
  def changeCartStatus(self, cartId, status):
199
    """
175
    """
200
    Parameters:
176
    Parameters:
-
 
177
     - cartId
-
 
178
     - status
-
 
179
    """
-
 
180
    pass
-
 
181
 
-
 
182
  def addItemToCart(self, cartId, itemId, quantity):
-
 
183
    """
-
 
184
    Parameters:
-
 
185
     - cartId
-
 
186
     - itemId
-
 
187
     - quantity
-
 
188
    """
-
 
189
    pass
-
 
190
 
-
 
191
  def deleteItemFromCart(self, cartId, itemId):
-
 
192
    """
-
 
193
    Parameters:
-
 
194
     - cartId
-
 
195
     - itemId
-
 
196
    """
-
 
197
    pass
-
 
198
 
-
 
199
  def changeQuantity(self, cartId, itemId, quantity):
-
 
200
    """
-
 
201
    Parameters:
-
 
202
     - cartId
-
 
203
     - itemId
-
 
204
     - quantity
-
 
205
    """
-
 
206
    pass
-
 
207
 
-
 
208
  def changeItemStatus(self, cartId, itemId, status):
-
 
209
    """
-
 
210
    Parameters:
-
 
211
     - cartId
201
     - userid
212
     - itemId
-
 
213
     - status
-
 
214
    """
-
 
215
    pass
-
 
216
 
-
 
217
  def addAddressToCart(self, cartId, addressId):
-
 
218
    """
-
 
219
    Parameters:
-
 
220
     - cartId
-
 
221
     - addressId
-
 
222
    """
-
 
223
    pass
-
 
224
 
-
 
225
  def commitCart(self, cartId):
-
 
226
    """
-
 
227
    Parameters:
-
 
228
     - cartId
-
 
229
    """
-
 
230
    pass
-
 
231
 
-
 
232
  def validateCart(self, cartId):
-
 
233
    """
-
 
234
    Parameters:
-
 
235
     - cartId
202
    """
236
    """
203
    pass
237
    pass
204
 
238
 
205
  def sendNewPasswordByHandle(self, emailOrHandle, isEmail):
239
  def mergeCart(self, fromCartId, toCartId):
206
    """
240
    """
207
    Parameters:
241
    Parameters:
-
 
242
     - fromCartId
-
 
243
     - toCartId
-
 
244
    """
-
 
245
    pass
-
 
246
 
-
 
247
  def addWidget(self, widget):
-
 
248
    """
-
 
249
    Parameters:
-
 
250
     - widget
-
 
251
    """
-
 
252
    pass
-
 
253
 
-
 
254
  def addItemToWidget(self, widget_id, items):
-
 
255
    """
-
 
256
    Parameters:
-
 
257
     - widget_id
-
 
258
     - items
-
 
259
    """
-
 
260
    pass
-
 
261
 
-
 
262
  def deleteItemFromWidget(self, widget_id, item_id):
-
 
263
    """
-
 
264
    Parameters:
-
 
265
     - widget_id
-
 
266
     - item_id
-
 
267
    """
-
 
268
    pass
-
 
269
 
-
 
270
  def updateWidget(self, widgetId, enable):
-
 
271
    """
-
 
272
    Parameters:
-
 
273
     - widgetId
-
 
274
     - enable
-
 
275
    """
-
 
276
    pass
-
 
277
 
-
 
278
  def updateWidgetItem(self, widgetId, enable):
-
 
279
    """
-
 
280
    Parameters:
-
 
281
     - widgetId
-
 
282
     - enable
-
 
283
    """
-
 
284
    pass
-
 
285
 
-
 
286
  def getWidget(self, type, userId, onlyEnabled):
-
 
287
    """
-
 
288
    Parameters:
-
 
289
     - type
-
 
290
     - userId
208
     - emailOrHandle
291
     - onlyEnabled
-
 
292
    """
-
 
293
    pass
-
 
294
 
-
 
295
  def getMyResearch(self, user_id):
-
 
296
    """
-
 
297
    Parameters:
-
 
298
     - user_id
-
 
299
    """
-
 
300
    pass
-
 
301
 
-
 
302
  def updateMyResearch(self, user_id, item_id):
-
 
303
    """
-
 
304
    Parameters:
-
 
305
     - user_id
-
 
306
     - item_id
-
 
307
    """
-
 
308
    pass
-
 
309
 
-
 
310
  def deleteItemFromMyResearch(self, user_id, item_id):
-
 
311
    """
-
 
312
    Parameters:
-
 
313
     - user_id
-
 
314
     - item_id
-
 
315
    """
-
 
316
    pass
-
 
317
 
-
 
318
  def updateRatings(self, item_id, type, rating, user_id):
-
 
319
    """
-
 
320
    Parameters:
-
 
321
     - item_id
-
 
322
     - type
-
 
323
     - rating
-
 
324
     - user_id
-
 
325
    """
-
 
326
    pass
-
 
327
 
-
 
328
  def getRatings(self, item_id, user_id):
-
 
329
    """
-
 
330
    Parameters:
-
 
331
     - item_id
-
 
332
     - user_id
-
 
333
    """
-
 
334
    pass
-
 
335
 
-
 
336
  def updateBrowseHistory(self, user_id, item_id, isSessionId):
-
 
337
    """
-
 
338
    Parameters:
-
 
339
     - user_id
209
     - isEmail
340
     - item_id
-
 
341
     - isSessionId
-
 
342
    """
-
 
343
    pass
-
 
344
 
-
 
345
  def getBrowseHistory(self, userId, isSessionId):
-
 
346
    """
-
 
347
    Parameters:
-
 
348
     - userId
-
 
349
     - isSessionId
210
    """
350
    """
211
    pass
351
    pass
212
 
352
 
213
 
353
 
214
class Client(Iface):
354
class Client(Iface):
Line 219... Line 359...
219
    self._iprot = self._oprot = iprot
359
    self._iprot = self._oprot = iprot
220
    if oprot != None:
360
    if oprot != None:
221
      self._oprot = oprot
361
      self._oprot = oprot
222
    self._seqid = 0
362
    self._seqid = 0
223
 
363
 
224
  def createContext(self, context, updateExisting):
364
  def createAnonymousUser(self, jsessionId):
225
    """
365
    """
226
    Parameters:
366
    Parameters:
227
     - context
-
 
228
     - updateExisting
367
     - jsessionId
229
    """
368
    """
230
    self.send_createContext(context, updateExisting)
369
    self.send_createAnonymousUser(jsessionId)
231
    return self.recv_createContext()
370
    return self.recv_createAnonymousUser()
232
 
371
 
233
  def send_createContext(self, context, updateExisting):
372
  def send_createAnonymousUser(self, jsessionId):
234
    self._oprot.writeMessageBegin('createContext', TMessageType.CALL, self._seqid)
373
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
235
    args = createContext_args()
374
    args = createAnonymousUser_args()
236
    args.context = context
-
 
237
    args.updateExisting = updateExisting
375
    args.jsessionId = jsessionId
238
    args.write(self._oprot)
376
    args.write(self._oprot)
239
    self._oprot.writeMessageEnd()
377
    self._oprot.writeMessageEnd()
240
    self._oprot.trans.flush()
378
    self._oprot.trans.flush()
241
 
379
 
242
  def recv_createContext(self, ):
380
  def recv_createAnonymousUser(self, ):
243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
244
    if mtype == TMessageType.EXCEPTION:
382
    if mtype == TMessageType.EXCEPTION:
245
      x = TApplicationException()
383
      x = TApplicationException()
246
      x.read(self._iprot)
384
      x.read(self._iprot)
247
      self._iprot.readMessageEnd()
385
      self._iprot.readMessageEnd()
248
      raise x
386
      raise x
249
    result = createContext_result()
387
    result = createAnonymousUser_result()
250
    result.read(self._iprot)
388
    result.read(self._iprot)
251
    self._iprot.readMessageEnd()
389
    self._iprot.readMessageEnd()
252
    if result.success != None:
390
    if result.success != None:
253
      return result.success
391
      return result.success
254
    if result.cex != None:
392
    if result.ucex != None:
255
      raise result.cex
393
      raise result.ucex
256
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createContext failed: unknown result");
394
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
257
 
395
 
258
  def getContextFromId(self, userId, isSessionId):
396
  def getUserById(self, userId):
259
    """
397
    """
260
    Parameters:
398
    Parameters:
261
     - userId
399
     - userId
262
     - isSessionId
-
 
263
    """
400
    """
264
    self.send_getContextFromId(userId, isSessionId)
401
    self.send_getUserById(userId)
265
    return self.recv_getContextFromId()
402
    return self.recv_getUserById()
266
 
403
 
267
  def send_getContextFromId(self, userId, isSessionId):
404
  def send_getUserById(self, userId):
268
    self._oprot.writeMessageBegin('getContextFromId', TMessageType.CALL, self._seqid)
405
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
269
    args = getContextFromId_args()
406
    args = getUserById_args()
270
    args.userId = userId
407
    args.userId = userId
271
    args.isSessionId = isSessionId
-
 
272
    args.write(self._oprot)
408
    args.write(self._oprot)
273
    self._oprot.writeMessageEnd()
409
    self._oprot.writeMessageEnd()
274
    self._oprot.trans.flush()
410
    self._oprot.trans.flush()
275
 
411
 
276
  def recv_getContextFromId(self, ):
412
  def recv_getUserById(self, ):
277
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
278
    if mtype == TMessageType.EXCEPTION:
414
    if mtype == TMessageType.EXCEPTION:
279
      x = TApplicationException()
415
      x = TApplicationException()
280
      x.read(self._iprot)
416
      x.read(self._iprot)
281
      self._iprot.readMessageEnd()
417
      self._iprot.readMessageEnd()
282
      raise x
418
      raise x
283
    result = getContextFromId_result()
419
    result = getUserById_result()
284
    result.read(self._iprot)
420
    result.read(self._iprot)
285
    self._iprot.readMessageEnd()
421
    self._iprot.readMessageEnd()
286
    if result.success != None:
422
    if result.success != None:
287
      return result.success
423
      return result.success
288
    if result.ucx != None:
424
    if result.ucex != None:
289
      raise result.ucx
425
      raise result.ucex
290
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromId failed: unknown result");
426
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
291
 
427
 
292
  def getContextFromEmailOrHandle(self, emailorhandle, isEmail):
428
  def createUser(self, user):
293
    """
429
    """
294
    Parameters:
430
    Parameters:
295
     - emailorhandle
-
 
296
     - isEmail
431
     - user
297
    """
432
    """
298
    self.send_getContextFromEmailOrHandle(emailorhandle, isEmail)
433
    self.send_createUser(user)
299
    return self.recv_getContextFromEmailOrHandle()
434
    return self.recv_createUser()
300
 
435
 
301
  def send_getContextFromEmailOrHandle(self, emailorhandle, isEmail):
436
  def send_createUser(self, user):
302
    self._oprot.writeMessageBegin('getContextFromEmailOrHandle', TMessageType.CALL, self._seqid)
437
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
303
    args = getContextFromEmailOrHandle_args()
438
    args = createUser_args()
304
    args.emailorhandle = emailorhandle
-
 
305
    args.isEmail = isEmail
439
    args.user = user
306
    args.write(self._oprot)
440
    args.write(self._oprot)
307
    self._oprot.writeMessageEnd()
441
    self._oprot.writeMessageEnd()
308
    self._oprot.trans.flush()
442
    self._oprot.trans.flush()
309
 
443
 
310
  def recv_getContextFromEmailOrHandle(self, ):
444
  def recv_createUser(self, ):
311
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
312
    if mtype == TMessageType.EXCEPTION:
446
    if mtype == TMessageType.EXCEPTION:
313
      x = TApplicationException()
447
      x = TApplicationException()
314
      x.read(self._iprot)
448
      x.read(self._iprot)
315
      self._iprot.readMessageEnd()
449
      self._iprot.readMessageEnd()
316
      raise x
450
      raise x
317
    result = getContextFromEmailOrHandle_result()
451
    result = createUser_result()
318
    result.read(self._iprot)
452
    result.read(self._iprot)
319
    self._iprot.readMessageEnd()
453
    self._iprot.readMessageEnd()
320
    if result.success != None:
454
    if result.success != None:
321
      return result.success
455
      return result.success
322
    if result.ucx != None:
456
    if result.ucex != None:
323
      raise result.ucx
457
      raise result.ucex
324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContextFromEmailOrHandle failed: unknown result");
458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
325
 
459
 
326
  def getState(self, userId, isSessionId):
460
  def updateUser(self, user):
327
    """
461
    """
328
    Parameters:
462
    Parameters:
329
     - userId
463
     - user
330
     - isSessionId
-
 
331
    """
464
    """
332
    self.send_getState(userId, isSessionId)
465
    self.send_updateUser(user)
333
    return self.recv_getState()
466
    return self.recv_updateUser()
334
 
467
 
335
  def send_getState(self, userId, isSessionId):
468
  def send_updateUser(self, user):
336
    self._oprot.writeMessageBegin('getState', TMessageType.CALL, self._seqid)
469
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
337
    args = getState_args()
470
    args = updateUser_args()
338
    args.userId = userId
471
    args.user = user
339
    args.isSessionId = isSessionId
-
 
340
    args.write(self._oprot)
472
    args.write(self._oprot)
341
    self._oprot.writeMessageEnd()
473
    self._oprot.writeMessageEnd()
342
    self._oprot.trans.flush()
474
    self._oprot.trans.flush()
343
 
475
 
344
  def recv_getState(self, ):
476
  def recv_updateUser(self, ):
345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
477
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
346
    if mtype == TMessageType.EXCEPTION:
478
    if mtype == TMessageType.EXCEPTION:
347
      x = TApplicationException()
479
      x = TApplicationException()
348
      x.read(self._iprot)
480
      x.read(self._iprot)
349
      self._iprot.readMessageEnd()
481
      self._iprot.readMessageEnd()
350
      raise x
482
      raise x
351
    result = getState_result()
483
    result = updateUser_result()
352
    result.read(self._iprot)
484
    result.read(self._iprot)
353
    self._iprot.readMessageEnd()
485
    self._iprot.readMessageEnd()
354
    if result.success != None:
486
    if result.success != None:
355
      return result.success
487
      return result.success
356
    if result.ucx != None:
488
    if result.ucex != None:
357
      raise result.ucx
489
      raise result.ucex
358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getState failed: unknown result");
490
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
359
 
491
 
360
  def getPrimaryInfo(self, userId, isSessionId):
492
  def deleteUser(self, userId):
361
    """
493
    """
362
    Parameters:
494
    Parameters:
363
     - userId
495
     - userId
364
     - isSessionId
-
 
365
    """
496
    """
366
    self.send_getPrimaryInfo(userId, isSessionId)
497
    self.send_deleteUser(userId)
367
    return self.recv_getPrimaryInfo()
498
    return self.recv_deleteUser()
368
 
499
 
369
  def send_getPrimaryInfo(self, userId, isSessionId):
500
  def send_deleteUser(self, userId):
370
    self._oprot.writeMessageBegin('getPrimaryInfo', TMessageType.CALL, self._seqid)
501
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
371
    args = getPrimaryInfo_args()
502
    args = deleteUser_args()
372
    args.userId = userId
503
    args.userId = userId
373
    args.isSessionId = isSessionId
-
 
374
    args.write(self._oprot)
504
    args.write(self._oprot)
375
    self._oprot.writeMessageEnd()
505
    self._oprot.writeMessageEnd()
376
    self._oprot.trans.flush()
506
    self._oprot.trans.flush()
377
 
507
 
378
  def recv_getPrimaryInfo(self, ):
508
  def recv_deleteUser(self, ):
379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
509
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
380
    if mtype == TMessageType.EXCEPTION:
510
    if mtype == TMessageType.EXCEPTION:
381
      x = TApplicationException()
511
      x = TApplicationException()
382
      x.read(self._iprot)
512
      x.read(self._iprot)
383
      self._iprot.readMessageEnd()
513
      self._iprot.readMessageEnd()
384
      raise x
514
      raise x
385
    result = getPrimaryInfo_result()
515
    result = deleteUser_result()
386
    result.read(self._iprot)
516
    result.read(self._iprot)
387
    self._iprot.readMessageEnd()
517
    self._iprot.readMessageEnd()
388
    if result.success != None:
518
    if result.success != None:
389
      return result.success
519
      return result.success
390
    if result.ucx != None:
520
    if result.ucex != None:
391
      raise result.ucx
521
      raise result.ucex
392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrimaryInfo failed: unknown result");
522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
393
 
523
 
394
  def getInternalInfo(self, userId, isSessionId):
524
  def getUserState(self, userId):
395
    """
525
    """
396
    Parameters:
526
    Parameters:
397
     - userId
527
     - userId
398
     - isSessionId
-
 
399
    """
528
    """
400
    self.send_getInternalInfo(userId, isSessionId)
529
    self.send_getUserState(userId)
401
    return self.recv_getInternalInfo()
530
    return self.recv_getUserState()
402
 
531
 
403
  def send_getInternalInfo(self, userId, isSessionId):
532
  def send_getUserState(self, userId):
404
    self._oprot.writeMessageBegin('getInternalInfo', TMessageType.CALL, self._seqid)
533
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
405
    args = getInternalInfo_args()
534
    args = getUserState_args()
406
    args.userId = userId
535
    args.userId = userId
407
    args.isSessionId = isSessionId
-
 
408
    args.write(self._oprot)
536
    args.write(self._oprot)
409
    self._oprot.writeMessageEnd()
537
    self._oprot.writeMessageEnd()
410
    self._oprot.trans.flush()
538
    self._oprot.trans.flush()
411
 
539
 
412
  def recv_getInternalInfo(self, ):
540
  def recv_getUserState(self, ):
413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
541
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
414
    if mtype == TMessageType.EXCEPTION:
542
    if mtype == TMessageType.EXCEPTION:
415
      x = TApplicationException()
543
      x = TApplicationException()
416
      x.read(self._iprot)
544
      x.read(self._iprot)
417
      self._iprot.readMessageEnd()
545
      self._iprot.readMessageEnd()
418
      raise x
546
      raise x
419
    result = getInternalInfo_result()
547
    result = getUserState_result()
420
    result.read(self._iprot)
548
    result.read(self._iprot)
421
    self._iprot.readMessageEnd()
549
    self._iprot.readMessageEnd()
422
    if result.success != None:
550
    if result.success != None:
423
      return result.success
551
      return result.success
424
    if result.ucx != None:
552
    if result.ucex != None:
425
      raise result.ucx
553
      raise result.ucex
426
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInternalInfo failed: unknown result");
554
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
427
 
555
 
428
  def getContext(self, email, password):
556
  def authenticateUser(self, email, password):
429
    """
557
    """
430
    Parameters:
558
    Parameters:
431
     - email
559
     - email
432
     - password
560
     - password
433
    """
561
    """
434
    self.send_getContext(email, password)
-
 
435
    return self.recv_getContext()
-
 
436
 
-
 
437
  def send_getContext(self, email, password):
-
 
438
    self._oprot.writeMessageBegin('getContext', TMessageType.CALL, self._seqid)
-
 
439
    args = getContext_args()
-
 
440
    args.email = email
-
 
441
    args.password = password
-
 
442
    args.write(self._oprot)
-
 
443
    self._oprot.writeMessageEnd()
-
 
444
    self._oprot.trans.flush()
-
 
445
 
-
 
446
  def recv_getContext(self, ):
-
 
447
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
448
    if mtype == TMessageType.EXCEPTION:
-
 
449
      x = TApplicationException()
-
 
450
      x.read(self._iprot)
-
 
451
      self._iprot.readMessageEnd()
-
 
452
      raise x
-
 
453
    result = getContext_result()
-
 
454
    result.read(self._iprot)
-
 
455
    self._iprot.readMessageEnd()
-
 
456
    if result.success != None:
-
 
457
      return result.success
-
 
458
    if result.ax != None:
-
 
459
      raise result.ax
-
 
460
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getContext failed: unknown result");
-
 
461
 
-
 
462
  def authenticateUser(self, handle, password, isEmail):
-
 
463
    """
-
 
464
    Parameters:
-
 
465
     - handle
-
 
466
     - password
-
 
467
     - isEmail
-
 
468
    """
-
 
469
    self.send_authenticateUser(handle, password, isEmail)
562
    self.send_authenticateUser(email, password)
470
    return self.recv_authenticateUser()
563
    return self.recv_authenticateUser()
471
 
564
 
472
  def send_authenticateUser(self, handle, password, isEmail):
565
  def send_authenticateUser(self, email, password):
473
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
566
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
474
    args = authenticateUser_args()
567
    args = authenticateUser_args()
475
    args.handle = handle
568
    args.email = email
476
    args.password = password
569
    args.password = password
477
    args.isEmail = isEmail
-
 
478
    args.write(self._oprot)
570
    args.write(self._oprot)
479
    self._oprot.writeMessageEnd()
571
    self._oprot.writeMessageEnd()
480
    self._oprot.trans.flush()
572
    self._oprot.trans.flush()
481
 
573
 
482
  def recv_authenticateUser(self, ):
574
  def recv_authenticateUser(self, ):
Line 489... Line 581...
489
    result = authenticateUser_result()
581
    result = authenticateUser_result()
490
    result.read(self._iprot)
582
    result.read(self._iprot)
491
    self._iprot.readMessageEnd()
583
    self._iprot.readMessageEnd()
492
    if result.success != None:
584
    if result.success != None:
493
      return result.success
585
      return result.success
494
    if result.ax != None:
586
    if result.auex != None:
495
      raise result.ax
587
      raise result.auex
496
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
497
 
589
 
498
  def userExists(self, email):
590
  def userExists(self, email):
499
    """
591
    """
500
    Parameters:
592
    Parameters:
Line 525... Line 617...
525
      return result.success
617
      return result.success
526
    if result.ucx != None:
618
    if result.ucx != None:
527
      raise result.ucx
619
      raise result.ucx
528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
529
 
621
 
530
  def addIpAdressForUser(self, ip, timestamp, userId):
622
  def addAddressForUser(self, userId, address, timestamp, setDefault):
531
    """
623
    """
532
    Parameters:
624
    Parameters:
533
     - ip
-
 
534
     - timestamp
-
 
535
     - userId
625
     - userId
536
    """
-
 
537
    self.send_addIpAdressForUser(ip, timestamp, userId)
-
 
538
    return self.recv_addIpAdressForUser()
-
 
539
 
-
 
540
  def send_addIpAdressForUser(self, ip, timestamp, userId):
-
 
541
    self._oprot.writeMessageBegin('addIpAdressForUser', TMessageType.CALL, self._seqid)
-
 
542
    args = addIpAdressForUser_args()
-
 
543
    args.ip = ip
-
 
544
    args.timestamp = timestamp
-
 
545
    args.userId = userId
-
 
546
    args.write(self._oprot)
-
 
547
    self._oprot.writeMessageEnd()
-
 
548
    self._oprot.trans.flush()
-
 
549
 
-
 
550
  def recv_addIpAdressForUser(self, ):
-
 
551
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
552
    if mtype == TMessageType.EXCEPTION:
-
 
553
      x = TApplicationException()
-
 
554
      x.read(self._iprot)
-
 
555
      self._iprot.readMessageEnd()
-
 
556
      raise x
-
 
557
    result = addIpAdressForUser_result()
-
 
558
    result.read(self._iprot)
-
 
559
    self._iprot.readMessageEnd()
-
 
560
    if result.success != None:
-
 
561
      return result.success
-
 
562
    if result.ucx != None:
-
 
563
      raise result.ucx
-
 
564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addIpAdressForUser failed: unknown result");
-
 
565
 
-
 
566
  def addAddressForUser(self, address, userid, timestamp, setDefault):
-
 
567
    """
-
 
568
    Parameters:
-
 
569
     - address
626
     - address
570
     - userid
-
 
571
     - timestamp
627
     - timestamp
572
     - setDefault
628
     - setDefault
573
    """
629
    """
574
    self.send_addAddressForUser(address, userid, timestamp, setDefault)
630
    self.send_addAddressForUser(userId, address, timestamp, setDefault)
575
    return self.recv_addAddressForUser()
631
    return self.recv_addAddressForUser()
576
 
632
 
577
  def send_addAddressForUser(self, address, userid, timestamp, setDefault):
633
  def send_addAddressForUser(self, userId, address, timestamp, setDefault):
578
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
634
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
579
    args = addAddressForUser_args()
635
    args = addAddressForUser_args()
-
 
636
    args.userId = userId
580
    args.address = address
637
    args.address = address
581
    args.userid = userid
-
 
582
    args.timestamp = timestamp
638
    args.timestamp = timestamp
583
    args.setDefault = setDefault
639
    args.setDefault = setDefault
584
    args.write(self._oprot)
640
    args.write(self._oprot)
585
    self._oprot.writeMessageEnd()
641
    self._oprot.writeMessageEnd()
586
    self._oprot.trans.flush()
642
    self._oprot.trans.flush()
Line 769... Line 825...
769
      return result.success
825
      return result.success
770
    if result.ucx != None:
826
    if result.ucx != None:
771
      raise result.ucx
827
      raise result.ucx
772
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
828
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
773
 
829
 
774
  def deleteUser(self, userid, isSessionId):
830
  def createCart(self, userId):
775
    """
831
    """
776
    Parameters:
832
    Parameters:
777
     - userid
833
     - userId
778
     - isSessionId
-
 
779
    """
834
    """
780
    self.send_deleteUser(userid, isSessionId)
835
    self.send_createCart(userId)
781
    return self.recv_deleteUser()
836
    return self.recv_createCart()
782
 
837
 
783
  def send_deleteUser(self, userid, isSessionId):
838
  def send_createCart(self, userId):
784
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
839
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
785
    args = deleteUser_args()
840
    args = createCart_args()
786
    args.userid = userid
841
    args.userId = userId
787
    args.isSessionId = isSessionId
-
 
788
    args.write(self._oprot)
842
    args.write(self._oprot)
789
    self._oprot.writeMessageEnd()
843
    self._oprot.writeMessageEnd()
790
    self._oprot.trans.flush()
844
    self._oprot.trans.flush()
791
 
845
 
792
  def recv_deleteUser(self, ):
846
  def recv_createCart(self, ):
793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
847
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
794
    if mtype == TMessageType.EXCEPTION:
848
    if mtype == TMessageType.EXCEPTION:
795
      x = TApplicationException()
849
      x = TApplicationException()
796
      x.read(self._iprot)
850
      x.read(self._iprot)
797
      self._iprot.readMessageEnd()
851
      self._iprot.readMessageEnd()
798
      raise x
852
      raise x
799
    result = deleteUser_result()
853
    result = createCart_result()
800
    result.read(self._iprot)
854
    result.read(self._iprot)
801
    self._iprot.readMessageEnd()
855
    self._iprot.readMessageEnd()
802
    if result.success != None:
856
    if result.success != None:
803
      return result.success
857
      return result.success
804
    if result.ucx != None:
858
    if result.scx != None:
805
      raise result.ucx
859
      raise result.scx
806
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
807
 
861
 
808
  def sendEmailVerification(self, userid):
862
  def getCurrentCart(self, userId):
809
    """
863
    """
810
    Parameters:
864
    Parameters:
811
     - userid
865
     - userId
812
    """
866
    """
813
    self.send_sendEmailVerification(userid)
867
    self.send_getCurrentCart(userId)
814
    return self.recv_sendEmailVerification()
868
    return self.recv_getCurrentCart()
815
 
869
 
816
  def send_sendEmailVerification(self, userid):
870
  def send_getCurrentCart(self, userId):
817
    self._oprot.writeMessageBegin('sendEmailVerification', TMessageType.CALL, self._seqid)
871
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
818
    args = sendEmailVerification_args()
872
    args = getCurrentCart_args()
819
    args.userid = userid
873
    args.userId = userId
820
    args.write(self._oprot)
874
    args.write(self._oprot)
821
    self._oprot.writeMessageEnd()
875
    self._oprot.writeMessageEnd()
822
    self._oprot.trans.flush()
876
    self._oprot.trans.flush()
823
 
877
 
824
  def recv_sendEmailVerification(self, ):
878
  def recv_getCurrentCart(self, ):
825
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
826
    if mtype == TMessageType.EXCEPTION:
880
    if mtype == TMessageType.EXCEPTION:
827
      x = TApplicationException()
881
      x = TApplicationException()
828
      x.read(self._iprot)
882
      x.read(self._iprot)
829
      self._iprot.readMessageEnd()
883
      self._iprot.readMessageEnd()
830
      raise x
884
      raise x
831
    result = sendEmailVerification_result()
885
    result = getCurrentCart_result()
832
    result.read(self._iprot)
886
    result.read(self._iprot)
833
    self._iprot.readMessageEnd()
887
    self._iprot.readMessageEnd()
834
    if result.success != None:
888
    if result.success != None:
835
      return result.success
889
      return result.success
836
    if result.ucx != None:
890
    if result.scx != None:
837
      raise result.ucx
891
      raise result.scx
838
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendEmailVerification failed: unknown result");
892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
839
 
893
 
840
  def sendSMSVerification(self, userid):
894
  def getCart(self, cartId):
841
    """
895
    """
842
    Parameters:
896
    Parameters:
843
     - userid
897
     - cartId
844
    """
898
    """
845
    self.send_sendSMSVerification(userid)
899
    self.send_getCart(cartId)
846
    return self.recv_sendSMSVerification()
900
    return self.recv_getCart()
847
 
901
 
848
  def send_sendSMSVerification(self, userid):
902
  def send_getCart(self, cartId):
849
    self._oprot.writeMessageBegin('sendSMSVerification', TMessageType.CALL, self._seqid)
903
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
850
    args = sendSMSVerification_args()
904
    args = getCart_args()
851
    args.userid = userid
905
    args.cartId = cartId
852
    args.write(self._oprot)
906
    args.write(self._oprot)
853
    self._oprot.writeMessageEnd()
907
    self._oprot.writeMessageEnd()
854
    self._oprot.trans.flush()
908
    self._oprot.trans.flush()
855
 
909
 
856
  def recv_sendSMSVerification(self, ):
910
  def recv_getCart(self, ):
857
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
858
    if mtype == TMessageType.EXCEPTION:
912
    if mtype == TMessageType.EXCEPTION:
859
      x = TApplicationException()
913
      x = TApplicationException()
860
      x.read(self._iprot)
914
      x.read(self._iprot)
861
      self._iprot.readMessageEnd()
915
      self._iprot.readMessageEnd()
862
      raise x
916
      raise x
863
    result = sendSMSVerification_result()
917
    result = getCart_result()
864
    result.read(self._iprot)
918
    result.read(self._iprot)
865
    self._iprot.readMessageEnd()
919
    self._iprot.readMessageEnd()
866
    if result.success != None:
920
    if result.success != None:
867
      return result.success
921
      return result.success
868
    if result.ucx != None:
922
    if result.scx != None:
869
      raise result.ucx
923
      raise result.scx
870
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendSMSVerification failed: unknown result");
924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
871
 
925
 
872
  def confirmEmailVerification(self, userid):
926
  def getCartsForUser(self, userId, status):
873
    """
927
    """
874
    Parameters:
928
    Parameters:
875
     - userid
929
     - userId
-
 
930
     - status
876
    """
931
    """
877
    self.send_confirmEmailVerification(userid)
932
    self.send_getCartsForUser(userId, status)
878
    return self.recv_confirmEmailVerification()
933
    return self.recv_getCartsForUser()
879
 
934
 
880
  def send_confirmEmailVerification(self, userid):
935
  def send_getCartsForUser(self, userId, status):
881
    self._oprot.writeMessageBegin('confirmEmailVerification', TMessageType.CALL, self._seqid)
936
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
882
    args = confirmEmailVerification_args()
937
    args = getCartsForUser_args()
883
    args.userid = userid
938
    args.userId = userId
-
 
939
    args.status = status
884
    args.write(self._oprot)
940
    args.write(self._oprot)
885
    self._oprot.writeMessageEnd()
941
    self._oprot.writeMessageEnd()
886
    self._oprot.trans.flush()
942
    self._oprot.trans.flush()
887
 
943
 
888
  def recv_confirmEmailVerification(self, ):
944
  def recv_getCartsForUser(self, ):
889
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
945
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
890
    if mtype == TMessageType.EXCEPTION:
946
    if mtype == TMessageType.EXCEPTION:
891
      x = TApplicationException()
947
      x = TApplicationException()
892
      x.read(self._iprot)
948
      x.read(self._iprot)
893
      self._iprot.readMessageEnd()
949
      self._iprot.readMessageEnd()
894
      raise x
950
      raise x
895
    result = confirmEmailVerification_result()
951
    result = getCartsForUser_result()
896
    result.read(self._iprot)
952
    result.read(self._iprot)
897
    self._iprot.readMessageEnd()
953
    self._iprot.readMessageEnd()
898
    if result.success != None:
954
    if result.success != None:
899
      return result.success
955
      return result.success
900
    if result.ucx != None:
956
    if result.scx != None:
901
      raise result.ucx
957
      raise result.scx
902
    raise TApplicationException(TApplicationException.MISSING_RESULT, "confirmEmailVerification failed: unknown result");
958
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
903
 
959
 
904
  def confirmSMSVerification(self, userid):
960
  def getCartsByStatus(self, status):
905
    """
961
    """
906
    Parameters:
962
    Parameters:
907
     - userid
963
     - status
908
    """
964
    """
909
    self.send_confirmSMSVerification(userid)
965
    self.send_getCartsByStatus(status)
910
    return self.recv_confirmSMSVerification()
966
    return self.recv_getCartsByStatus()
911
 
967
 
912
  def send_confirmSMSVerification(self, userid):
968
  def send_getCartsByStatus(self, status):
913
    self._oprot.writeMessageBegin('confirmSMSVerification', TMessageType.CALL, self._seqid)
969
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
914
    args = confirmSMSVerification_args()
970
    args = getCartsByStatus_args()
915
    args.userid = userid
971
    args.status = status
916
    args.write(self._oprot)
972
    args.write(self._oprot)
917
    self._oprot.writeMessageEnd()
973
    self._oprot.writeMessageEnd()
918
    self._oprot.trans.flush()
974
    self._oprot.trans.flush()
919
 
975
 
920
  def recv_confirmSMSVerification(self, ):
976
  def recv_getCartsByStatus(self, ):
921
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
922
    if mtype == TMessageType.EXCEPTION:
978
    if mtype == TMessageType.EXCEPTION:
923
      x = TApplicationException()
979
      x = TApplicationException()
924
      x.read(self._iprot)
980
      x.read(self._iprot)
925
      self._iprot.readMessageEnd()
981
      self._iprot.readMessageEnd()
926
      raise x
982
      raise x
927
    result = confirmSMSVerification_result()
983
    result = getCartsByStatus_result()
928
    result.read(self._iprot)
984
    result.read(self._iprot)
929
    self._iprot.readMessageEnd()
985
    self._iprot.readMessageEnd()
930
    if result.success != None:
986
    if result.success != None:
931
      return result.success
987
      return result.success
932
    if result.ucx != None:
988
    if result.scx != None:
933
      raise result.ucx
989
      raise result.scx
934
    raise TApplicationException(TApplicationException.MISSING_RESULT, "confirmSMSVerification failed: unknown result");
990
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
-
 
991
 
-
 
992
  def getCartsByTime(self, from_time, to_time, status):
-
 
993
    """
-
 
994
    Parameters:
-
 
995
     - from_time
-
 
996
     - to_time
-
 
997
     - status
-
 
998
    """
-
 
999
    self.send_getCartsByTime(from_time, to_time, status)
-
 
1000
    return self.recv_getCartsByTime()
-
 
1001
 
-
 
1002
  def send_getCartsByTime(self, from_time, to_time, status):
-
 
1003
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
-
 
1004
    args = getCartsByTime_args()
-
 
1005
    args.from_time = from_time
-
 
1006
    args.to_time = to_time
-
 
1007
    args.status = status
-
 
1008
    args.write(self._oprot)
-
 
1009
    self._oprot.writeMessageEnd()
-
 
1010
    self._oprot.trans.flush()
-
 
1011
 
-
 
1012
  def recv_getCartsByTime(self, ):
-
 
1013
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1014
    if mtype == TMessageType.EXCEPTION:
-
 
1015
      x = TApplicationException()
-
 
1016
      x.read(self._iprot)
-
 
1017
      self._iprot.readMessageEnd()
-
 
1018
      raise x
-
 
1019
    result = getCartsByTime_result()
-
 
1020
    result.read(self._iprot)
-
 
1021
    self._iprot.readMessageEnd()
-
 
1022
    if result.success != None:
-
 
1023
      return result.success
-
 
1024
    if result.scx != None:
-
 
1025
      raise result.scx
-
 
1026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
935
 
1027
 
936
  def addSocialhandle(self, userid, socialService, handle):
1028
  def changeCartStatus(self, cartId, status):
937
    """
1029
    """
938
    Parameters:
1030
    Parameters:
939
     - userid
1031
     - cartId
940
     - socialService
-
 
941
     - handle
1032
     - status
942
    """
1033
    """
943
    self.send_addSocialhandle(userid, socialService, handle)
1034
    self.send_changeCartStatus(cartId, status)
944
    return self.recv_addSocialhandle()
1035
    self.recv_changeCartStatus()
945
 
1036
 
-
 
1037
  def send_changeCartStatus(self, cartId, status):
-
 
1038
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
-
 
1039
    args = changeCartStatus_args()
-
 
1040
    args.cartId = cartId
-
 
1041
    args.status = status
-
 
1042
    args.write(self._oprot)
-
 
1043
    self._oprot.writeMessageEnd()
-
 
1044
    self._oprot.trans.flush()
-
 
1045
 
-
 
1046
  def recv_changeCartStatus(self, ):
-
 
1047
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1048
    if mtype == TMessageType.EXCEPTION:
-
 
1049
      x = TApplicationException()
-
 
1050
      x.read(self._iprot)
-
 
1051
      self._iprot.readMessageEnd()
-
 
1052
      raise x
-
 
1053
    result = changeCartStatus_result()
-
 
1054
    result.read(self._iprot)
-
 
1055
    self._iprot.readMessageEnd()
-
 
1056
    if result.scx != None:
-
 
1057
      raise result.scx
-
 
1058
    return
-
 
1059
 
-
 
1060
  def addItemToCart(self, cartId, itemId, quantity):
-
 
1061
    """
-
 
1062
    Parameters:
-
 
1063
     - cartId
-
 
1064
     - itemId
-
 
1065
     - quantity
-
 
1066
    """
-
 
1067
    self.send_addItemToCart(cartId, itemId, quantity)
-
 
1068
    self.recv_addItemToCart()
-
 
1069
 
946
  def send_addSocialhandle(self, userid, socialService, handle):
1070
  def send_addItemToCart(self, cartId, itemId, quantity):
947
    self._oprot.writeMessageBegin('addSocialhandle', TMessageType.CALL, self._seqid)
1071
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
948
    args = addSocialhandle_args()
1072
    args = addItemToCart_args()
949
    args.userid = userid
1073
    args.cartId = cartId
950
    args.socialService = socialService
1074
    args.itemId = itemId
951
    args.handle = handle
1075
    args.quantity = quantity
952
    args.write(self._oprot)
1076
    args.write(self._oprot)
953
    self._oprot.writeMessageEnd()
1077
    self._oprot.writeMessageEnd()
954
    self._oprot.trans.flush()
1078
    self._oprot.trans.flush()
955
 
1079
 
956
  def recv_addSocialhandle(self, ):
1080
  def recv_addItemToCart(self, ):
957
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1081
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
958
    if mtype == TMessageType.EXCEPTION:
1082
    if mtype == TMessageType.EXCEPTION:
959
      x = TApplicationException()
1083
      x = TApplicationException()
960
      x.read(self._iprot)
1084
      x.read(self._iprot)
961
      self._iprot.readMessageEnd()
1085
      self._iprot.readMessageEnd()
962
      raise x
1086
      raise x
963
    result = addSocialhandle_result()
1087
    result = addItemToCart_result()
-
 
1088
    result.read(self._iprot)
-
 
1089
    self._iprot.readMessageEnd()
-
 
1090
    if result.scx != None:
-
 
1091
      raise result.scx
-
 
1092
    return
-
 
1093
 
-
 
1094
  def deleteItemFromCart(self, cartId, itemId):
-
 
1095
    """
-
 
1096
    Parameters:
-
 
1097
     - cartId
-
 
1098
     - itemId
-
 
1099
    """
-
 
1100
    self.send_deleteItemFromCart(cartId, itemId)
-
 
1101
    self.recv_deleteItemFromCart()
-
 
1102
 
-
 
1103
  def send_deleteItemFromCart(self, cartId, itemId):
-
 
1104
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
-
 
1105
    args = deleteItemFromCart_args()
-
 
1106
    args.cartId = cartId
-
 
1107
    args.itemId = itemId
-
 
1108
    args.write(self._oprot)
-
 
1109
    self._oprot.writeMessageEnd()
-
 
1110
    self._oprot.trans.flush()
-
 
1111
 
-
 
1112
  def recv_deleteItemFromCart(self, ):
-
 
1113
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1114
    if mtype == TMessageType.EXCEPTION:
-
 
1115
      x = TApplicationException()
-
 
1116
      x.read(self._iprot)
-
 
1117
      self._iprot.readMessageEnd()
-
 
1118
      raise x
-
 
1119
    result = deleteItemFromCart_result()
-
 
1120
    result.read(self._iprot)
-
 
1121
    self._iprot.readMessageEnd()
-
 
1122
    if result.scx != None:
-
 
1123
      raise result.scx
-
 
1124
    return
-
 
1125
 
-
 
1126
  def changeQuantity(self, cartId, itemId, quantity):
-
 
1127
    """
-
 
1128
    Parameters:
-
 
1129
     - cartId
-
 
1130
     - itemId
-
 
1131
     - quantity
-
 
1132
    """
-
 
1133
    self.send_changeQuantity(cartId, itemId, quantity)
-
 
1134
    self.recv_changeQuantity()
-
 
1135
 
-
 
1136
  def send_changeQuantity(self, cartId, itemId, quantity):
-
 
1137
    self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
-
 
1138
    args = changeQuantity_args()
-
 
1139
    args.cartId = cartId
-
 
1140
    args.itemId = itemId
-
 
1141
    args.quantity = quantity
-
 
1142
    args.write(self._oprot)
-
 
1143
    self._oprot.writeMessageEnd()
-
 
1144
    self._oprot.trans.flush()
-
 
1145
 
-
 
1146
  def recv_changeQuantity(self, ):
-
 
1147
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1148
    if mtype == TMessageType.EXCEPTION:
-
 
1149
      x = TApplicationException()
-
 
1150
      x.read(self._iprot)
-
 
1151
      self._iprot.readMessageEnd()
-
 
1152
      raise x
-
 
1153
    result = changeQuantity_result()
-
 
1154
    result.read(self._iprot)
-
 
1155
    self._iprot.readMessageEnd()
-
 
1156
    if result.scx != None:
-
 
1157
      raise result.scx
-
 
1158
    return
-
 
1159
 
-
 
1160
  def changeItemStatus(self, cartId, itemId, status):
-
 
1161
    """
-
 
1162
    Parameters:
-
 
1163
     - cartId
-
 
1164
     - itemId
-
 
1165
     - status
-
 
1166
    """
-
 
1167
    self.send_changeItemStatus(cartId, itemId, status)
-
 
1168
    self.recv_changeItemStatus()
-
 
1169
 
-
 
1170
  def send_changeItemStatus(self, cartId, itemId, status):
-
 
1171
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
-
 
1172
    args = changeItemStatus_args()
-
 
1173
    args.cartId = cartId
-
 
1174
    args.itemId = itemId
-
 
1175
    args.status = status
-
 
1176
    args.write(self._oprot)
-
 
1177
    self._oprot.writeMessageEnd()
-
 
1178
    self._oprot.trans.flush()
-
 
1179
 
-
 
1180
  def recv_changeItemStatus(self, ):
-
 
1181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1182
    if mtype == TMessageType.EXCEPTION:
-
 
1183
      x = TApplicationException()
-
 
1184
      x.read(self._iprot)
-
 
1185
      self._iprot.readMessageEnd()
-
 
1186
      raise x
-
 
1187
    result = changeItemStatus_result()
-
 
1188
    result.read(self._iprot)
-
 
1189
    self._iprot.readMessageEnd()
-
 
1190
    if result.scx != None:
-
 
1191
      raise result.scx
-
 
1192
    return
-
 
1193
 
-
 
1194
  def addAddressToCart(self, cartId, addressId):
-
 
1195
    """
-
 
1196
    Parameters:
-
 
1197
     - cartId
-
 
1198
     - addressId
-
 
1199
    """
-
 
1200
    self.send_addAddressToCart(cartId, addressId)
-
 
1201
    self.recv_addAddressToCart()
-
 
1202
 
-
 
1203
  def send_addAddressToCart(self, cartId, addressId):
-
 
1204
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
-
 
1205
    args = addAddressToCart_args()
-
 
1206
    args.cartId = cartId
-
 
1207
    args.addressId = addressId
-
 
1208
    args.write(self._oprot)
-
 
1209
    self._oprot.writeMessageEnd()
-
 
1210
    self._oprot.trans.flush()
-
 
1211
 
-
 
1212
  def recv_addAddressToCart(self, ):
-
 
1213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1214
    if mtype == TMessageType.EXCEPTION:
-
 
1215
      x = TApplicationException()
-
 
1216
      x.read(self._iprot)
-
 
1217
      self._iprot.readMessageEnd()
-
 
1218
      raise x
-
 
1219
    result = addAddressToCart_result()
-
 
1220
    result.read(self._iprot)
-
 
1221
    self._iprot.readMessageEnd()
-
 
1222
    return
-
 
1223
 
-
 
1224
  def commitCart(self, cartId):
-
 
1225
    """
-
 
1226
    Parameters:
-
 
1227
     - cartId
-
 
1228
    """
-
 
1229
    self.send_commitCart(cartId)
-
 
1230
    return self.recv_commitCart()
-
 
1231
 
-
 
1232
  def send_commitCart(self, cartId):
-
 
1233
    self._oprot.writeMessageBegin('commitCart', TMessageType.CALL, self._seqid)
-
 
1234
    args = commitCart_args()
-
 
1235
    args.cartId = cartId
-
 
1236
    args.write(self._oprot)
-
 
1237
    self._oprot.writeMessageEnd()
-
 
1238
    self._oprot.trans.flush()
-
 
1239
 
-
 
1240
  def recv_commitCart(self, ):
-
 
1241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1242
    if mtype == TMessageType.EXCEPTION:
-
 
1243
      x = TApplicationException()
-
 
1244
      x.read(self._iprot)
-
 
1245
      self._iprot.readMessageEnd()
-
 
1246
      raise x
-
 
1247
    result = commitCart_result()
964
    result.read(self._iprot)
1248
    result.read(self._iprot)
965
    self._iprot.readMessageEnd()
1249
    self._iprot.readMessageEnd()
966
    if result.success != None:
1250
    if result.success != None:
967
      return result.success
1251
      return result.success
968
    if result.ucx != None:
1252
    if result.scx != None:
969
      raise result.ucx
1253
      raise result.scx
970
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSocialhandle failed: unknown result");
1254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "commitCart failed: unknown result");
971
 
1255
 
972
  def sendNewPasswordById(self, userid):
1256
  def validateCart(self, cartId):
973
    """
1257
    """
974
    Parameters:
1258
    Parameters:
975
     - userid
1259
     - cartId
976
    """
1260
    """
977
    self.send_sendNewPasswordById(userid)
1261
    self.send_validateCart(cartId)
978
    return self.recv_sendNewPasswordById()
1262
    return self.recv_validateCart()
979
 
1263
 
980
  def send_sendNewPasswordById(self, userid):
1264
  def send_validateCart(self, cartId):
981
    self._oprot.writeMessageBegin('sendNewPasswordById', TMessageType.CALL, self._seqid)
1265
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
982
    args = sendNewPasswordById_args()
1266
    args = validateCart_args()
983
    args.userid = userid
1267
    args.cartId = cartId
984
    args.write(self._oprot)
1268
    args.write(self._oprot)
985
    self._oprot.writeMessageEnd()
1269
    self._oprot.writeMessageEnd()
986
    self._oprot.trans.flush()
1270
    self._oprot.trans.flush()
987
 
1271
 
988
  def recv_sendNewPasswordById(self, ):
1272
  def recv_validateCart(self, ):
989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
990
    if mtype == TMessageType.EXCEPTION:
1274
    if mtype == TMessageType.EXCEPTION:
991
      x = TApplicationException()
1275
      x = TApplicationException()
992
      x.read(self._iprot)
1276
      x.read(self._iprot)
993
      self._iprot.readMessageEnd()
1277
      self._iprot.readMessageEnd()
994
      raise x
1278
      raise x
995
    result = sendNewPasswordById_result()
1279
    result = validateCart_result()
996
    result.read(self._iprot)
1280
    result.read(self._iprot)
997
    self._iprot.readMessageEnd()
1281
    self._iprot.readMessageEnd()
998
    if result.success != None:
1282
    if result.success != None:
999
      return result.success
1283
      return result.success
-
 
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
-
 
1285
 
-
 
1286
  def mergeCart(self, fromCartId, toCartId):
-
 
1287
    """
-
 
1288
    Parameters:
-
 
1289
     - fromCartId
-
 
1290
     - toCartId
-
 
1291
    """
-
 
1292
    self.send_mergeCart(fromCartId, toCartId)
-
 
1293
    self.recv_mergeCart()
-
 
1294
 
-
 
1295
  def send_mergeCart(self, fromCartId, toCartId):
-
 
1296
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
-
 
1297
    args = mergeCart_args()
-
 
1298
    args.fromCartId = fromCartId
-
 
1299
    args.toCartId = toCartId
-
 
1300
    args.write(self._oprot)
-
 
1301
    self._oprot.writeMessageEnd()
-
 
1302
    self._oprot.trans.flush()
-
 
1303
 
-
 
1304
  def recv_mergeCart(self, ):
-
 
1305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1306
    if mtype == TMessageType.EXCEPTION:
-
 
1307
      x = TApplicationException()
-
 
1308
      x.read(self._iprot)
-
 
1309
      self._iprot.readMessageEnd()
-
 
1310
      raise x
-
 
1311
    result = mergeCart_result()
-
 
1312
    result.read(self._iprot)
-
 
1313
    self._iprot.readMessageEnd()
-
 
1314
    return
-
 
1315
 
-
 
1316
  def addWidget(self, widget):
-
 
1317
    """
-
 
1318
    Parameters:
-
 
1319
     - widget
-
 
1320
    """
-
 
1321
    self.send_addWidget(widget)
-
 
1322
    self.recv_addWidget()
-
 
1323
 
-
 
1324
  def send_addWidget(self, widget):
-
 
1325
    self._oprot.writeMessageBegin('addWidget', TMessageType.CALL, self._seqid)
-
 
1326
    args = addWidget_args()
-
 
1327
    args.widget = widget
-
 
1328
    args.write(self._oprot)
-
 
1329
    self._oprot.writeMessageEnd()
-
 
1330
    self._oprot.trans.flush()
-
 
1331
 
-
 
1332
  def recv_addWidget(self, ):
-
 
1333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1334
    if mtype == TMessageType.EXCEPTION:
-
 
1335
      x = TApplicationException()
-
 
1336
      x.read(self._iprot)
-
 
1337
      self._iprot.readMessageEnd()
-
 
1338
      raise x
-
 
1339
    result = addWidget_result()
-
 
1340
    result.read(self._iprot)
-
 
1341
    self._iprot.readMessageEnd()
1000
    if result.ucx != None:
1342
    if result.scx != None:
1001
      raise result.ucx
1343
      raise result.scx
-
 
1344
    return
-
 
1345
 
-
 
1346
  def addItemToWidget(self, widget_id, items):
-
 
1347
    """
-
 
1348
    Parameters:
-
 
1349
     - widget_id
-
 
1350
     - items
-
 
1351
    """
-
 
1352
    self.send_addItemToWidget(widget_id, items)
-
 
1353
    self.recv_addItemToWidget()
-
 
1354
 
-
 
1355
  def send_addItemToWidget(self, widget_id, items):
1002
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendNewPasswordById failed: unknown result");
1356
    self._oprot.writeMessageBegin('addItemToWidget', TMessageType.CALL, self._seqid)
-
 
1357
    args = addItemToWidget_args()
-
 
1358
    args.widget_id = widget_id
-
 
1359
    args.items = items
-
 
1360
    args.write(self._oprot)
-
 
1361
    self._oprot.writeMessageEnd()
-
 
1362
    self._oprot.trans.flush()
-
 
1363
 
-
 
1364
  def recv_addItemToWidget(self, ):
-
 
1365
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1366
    if mtype == TMessageType.EXCEPTION:
-
 
1367
      x = TApplicationException()
-
 
1368
      x.read(self._iprot)
-
 
1369
      self._iprot.readMessageEnd()
-
 
1370
      raise x
-
 
1371
    result = addItemToWidget_result()
-
 
1372
    result.read(self._iprot)
-
 
1373
    self._iprot.readMessageEnd()
-
 
1374
    if result.scx != None:
-
 
1375
      raise result.scx
-
 
1376
    return
1003
 
1377
 
1004
  def sendNewPasswordByHandle(self, emailOrHandle, isEmail):
1378
  def deleteItemFromWidget(self, widget_id, item_id):
1005
    """
1379
    """
1006
    Parameters:
1380
    Parameters:
1007
     - emailOrHandle
1381
     - widget_id
1008
     - isEmail
1382
     - item_id
1009
    """
1383
    """
1010
    self.send_sendNewPasswordByHandle(emailOrHandle, isEmail)
1384
    self.send_deleteItemFromWidget(widget_id, item_id)
1011
    return self.recv_sendNewPasswordByHandle()
1385
    self.recv_deleteItemFromWidget()
1012
 
1386
 
1013
  def send_sendNewPasswordByHandle(self, emailOrHandle, isEmail):
1387
  def send_deleteItemFromWidget(self, widget_id, item_id):
1014
    self._oprot.writeMessageBegin('sendNewPasswordByHandle', TMessageType.CALL, self._seqid)
1388
    self._oprot.writeMessageBegin('deleteItemFromWidget', TMessageType.CALL, self._seqid)
1015
    args = sendNewPasswordByHandle_args()
1389
    args = deleteItemFromWidget_args()
1016
    args.emailOrHandle = emailOrHandle
1390
    args.widget_id = widget_id
1017
    args.isEmail = isEmail
1391
    args.item_id = item_id
1018
    args.write(self._oprot)
1392
    args.write(self._oprot)
1019
    self._oprot.writeMessageEnd()
1393
    self._oprot.writeMessageEnd()
1020
    self._oprot.trans.flush()
1394
    self._oprot.trans.flush()
1021
 
1395
 
1022
  def recv_sendNewPasswordByHandle(self, ):
1396
  def recv_deleteItemFromWidget(self, ):
1023
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1397
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1024
    if mtype == TMessageType.EXCEPTION:
1398
    if mtype == TMessageType.EXCEPTION:
1025
      x = TApplicationException()
1399
      x = TApplicationException()
1026
      x.read(self._iprot)
1400
      x.read(self._iprot)
1027
      self._iprot.readMessageEnd()
1401
      self._iprot.readMessageEnd()
1028
      raise x
1402
      raise x
1029
    result = sendNewPasswordByHandle_result()
1403
    result = deleteItemFromWidget_result()
-
 
1404
    result.read(self._iprot)
-
 
1405
    self._iprot.readMessageEnd()
-
 
1406
    if result.scx != None:
-
 
1407
      raise result.scx
-
 
1408
    return
-
 
1409
 
-
 
1410
  def updateWidget(self, widgetId, enable):
-
 
1411
    """
-
 
1412
    Parameters:
-
 
1413
     - widgetId
-
 
1414
     - enable
-
 
1415
    """
-
 
1416
    self.send_updateWidget(widgetId, enable)
-
 
1417
    self.recv_updateWidget()
-
 
1418
 
-
 
1419
  def send_updateWidget(self, widgetId, enable):
-
 
1420
    self._oprot.writeMessageBegin('updateWidget', TMessageType.CALL, self._seqid)
-
 
1421
    args = updateWidget_args()
-
 
1422
    args.widgetId = widgetId
-
 
1423
    args.enable = enable
-
 
1424
    args.write(self._oprot)
-
 
1425
    self._oprot.writeMessageEnd()
-
 
1426
    self._oprot.trans.flush()
-
 
1427
 
-
 
1428
  def recv_updateWidget(self, ):
-
 
1429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1430
    if mtype == TMessageType.EXCEPTION:
-
 
1431
      x = TApplicationException()
-
 
1432
      x.read(self._iprot)
-
 
1433
      self._iprot.readMessageEnd()
-
 
1434
      raise x
-
 
1435
    result = updateWidget_result()
-
 
1436
    result.read(self._iprot)
-
 
1437
    self._iprot.readMessageEnd()
-
 
1438
    if result.scx != None:
-
 
1439
      raise result.scx
-
 
1440
    return
-
 
1441
 
-
 
1442
  def updateWidgetItem(self, widgetId, enable):
-
 
1443
    """
-
 
1444
    Parameters:
-
 
1445
     - widgetId
-
 
1446
     - enable
-
 
1447
    """
-
 
1448
    self.send_updateWidgetItem(widgetId, enable)
-
 
1449
    self.recv_updateWidgetItem()
-
 
1450
 
-
 
1451
  def send_updateWidgetItem(self, widgetId, enable):
-
 
1452
    self._oprot.writeMessageBegin('updateWidgetItem', TMessageType.CALL, self._seqid)
-
 
1453
    args = updateWidgetItem_args()
-
 
1454
    args.widgetId = widgetId
-
 
1455
    args.enable = enable
-
 
1456
    args.write(self._oprot)
-
 
1457
    self._oprot.writeMessageEnd()
-
 
1458
    self._oprot.trans.flush()
-
 
1459
 
-
 
1460
  def recv_updateWidgetItem(self, ):
-
 
1461
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1462
    if mtype == TMessageType.EXCEPTION:
-
 
1463
      x = TApplicationException()
-
 
1464
      x.read(self._iprot)
-
 
1465
      self._iprot.readMessageEnd()
-
 
1466
      raise x
-
 
1467
    result = updateWidgetItem_result()
-
 
1468
    result.read(self._iprot)
-
 
1469
    self._iprot.readMessageEnd()
-
 
1470
    if result.scx != None:
-
 
1471
      raise result.scx
-
 
1472
    return
-
 
1473
 
-
 
1474
  def getWidget(self, type, userId, onlyEnabled):
-
 
1475
    """
-
 
1476
    Parameters:
-
 
1477
     - type
-
 
1478
     - userId
-
 
1479
     - onlyEnabled
-
 
1480
    """
-
 
1481
    self.send_getWidget(type, userId, onlyEnabled)
-
 
1482
    return self.recv_getWidget()
-
 
1483
 
-
 
1484
  def send_getWidget(self, type, userId, onlyEnabled):
-
 
1485
    self._oprot.writeMessageBegin('getWidget', TMessageType.CALL, self._seqid)
-
 
1486
    args = getWidget_args()
-
 
1487
    args.type = type
-
 
1488
    args.userId = userId
-
 
1489
    args.onlyEnabled = onlyEnabled
-
 
1490
    args.write(self._oprot)
-
 
1491
    self._oprot.writeMessageEnd()
-
 
1492
    self._oprot.trans.flush()
-
 
1493
 
-
 
1494
  def recv_getWidget(self, ):
-
 
1495
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1496
    if mtype == TMessageType.EXCEPTION:
-
 
1497
      x = TApplicationException()
-
 
1498
      x.read(self._iprot)
-
 
1499
      self._iprot.readMessageEnd()
-
 
1500
      raise x
-
 
1501
    result = getWidget_result()
1030
    result.read(self._iprot)
1502
    result.read(self._iprot)
1031
    self._iprot.readMessageEnd()
1503
    self._iprot.readMessageEnd()
1032
    if result.success != None:
1504
    if result.success != None:
1033
      return result.success
1505
      return result.success
-
 
1506
    if result.scx != None:
-
 
1507
      raise result.scx
-
 
1508
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWidget failed: unknown result");
-
 
1509
 
-
 
1510
  def getMyResearch(self, user_id):
-
 
1511
    """
-
 
1512
    Parameters:
-
 
1513
     - user_id
-
 
1514
    """
-
 
1515
    self.send_getMyResearch(user_id)
-
 
1516
    return self.recv_getMyResearch()
-
 
1517
 
-
 
1518
  def send_getMyResearch(self, user_id):
-
 
1519
    self._oprot.writeMessageBegin('getMyResearch', TMessageType.CALL, self._seqid)
-
 
1520
    args = getMyResearch_args()
-
 
1521
    args.user_id = user_id
-
 
1522
    args.write(self._oprot)
-
 
1523
    self._oprot.writeMessageEnd()
-
 
1524
    self._oprot.trans.flush()
-
 
1525
 
-
 
1526
  def recv_getMyResearch(self, ):
-
 
1527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1528
    if mtype == TMessageType.EXCEPTION:
-
 
1529
      x = TApplicationException()
-
 
1530
      x.read(self._iprot)
-
 
1531
      self._iprot.readMessageEnd()
-
 
1532
      raise x
-
 
1533
    result = getMyResearch_result()
-
 
1534
    result.read(self._iprot)
-
 
1535
    self._iprot.readMessageEnd()
-
 
1536
    if result.success != None:
-
 
1537
      return result.success
-
 
1538
    if result.scx != None:
-
 
1539
      raise result.scx
-
 
1540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
-
 
1541
 
-
 
1542
  def updateMyResearch(self, user_id, item_id):
-
 
1543
    """
-
 
1544
    Parameters:
-
 
1545
     - user_id
-
 
1546
     - item_id
-
 
1547
    """
-
 
1548
    self.send_updateMyResearch(user_id, item_id)
-
 
1549
    return self.recv_updateMyResearch()
-
 
1550
 
-
 
1551
  def send_updateMyResearch(self, user_id, item_id):
-
 
1552
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
-
 
1553
    args = updateMyResearch_args()
-
 
1554
    args.user_id = user_id
-
 
1555
    args.item_id = item_id
-
 
1556
    args.write(self._oprot)
-
 
1557
    self._oprot.writeMessageEnd()
-
 
1558
    self._oprot.trans.flush()
-
 
1559
 
-
 
1560
  def recv_updateMyResearch(self, ):
-
 
1561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1562
    if mtype == TMessageType.EXCEPTION:
-
 
1563
      x = TApplicationException()
-
 
1564
      x.read(self._iprot)
-
 
1565
      self._iprot.readMessageEnd()
-
 
1566
      raise x
-
 
1567
    result = updateMyResearch_result()
-
 
1568
    result.read(self._iprot)
-
 
1569
    self._iprot.readMessageEnd()
-
 
1570
    if result.success != None:
-
 
1571
      return result.success
-
 
1572
    if result.scx != None:
-
 
1573
      raise result.scx
-
 
1574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
-
 
1575
 
-
 
1576
  def deleteItemFromMyResearch(self, user_id, item_id):
-
 
1577
    """
-
 
1578
    Parameters:
-
 
1579
     - user_id
-
 
1580
     - item_id
-
 
1581
    """
-
 
1582
    self.send_deleteItemFromMyResearch(user_id, item_id)
-
 
1583
    self.recv_deleteItemFromMyResearch()
-
 
1584
 
-
 
1585
  def send_deleteItemFromMyResearch(self, user_id, item_id):
-
 
1586
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
-
 
1587
    args = deleteItemFromMyResearch_args()
-
 
1588
    args.user_id = user_id
-
 
1589
    args.item_id = item_id
-
 
1590
    args.write(self._oprot)
-
 
1591
    self._oprot.writeMessageEnd()
-
 
1592
    self._oprot.trans.flush()
-
 
1593
 
-
 
1594
  def recv_deleteItemFromMyResearch(self, ):
-
 
1595
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1596
    if mtype == TMessageType.EXCEPTION:
-
 
1597
      x = TApplicationException()
-
 
1598
      x.read(self._iprot)
-
 
1599
      self._iprot.readMessageEnd()
-
 
1600
      raise x
-
 
1601
    result = deleteItemFromMyResearch_result()
-
 
1602
    result.read(self._iprot)
-
 
1603
    self._iprot.readMessageEnd()
1034
    if result.ucx != None:
1604
    if result.scx != None:
1035
      raise result.ucx
1605
      raise result.scx
-
 
1606
    return
-
 
1607
 
-
 
1608
  def updateRatings(self, item_id, type, rating, user_id):
-
 
1609
    """
-
 
1610
    Parameters:
-
 
1611
     - item_id
-
 
1612
     - type
-
 
1613
     - rating
-
 
1614
     - user_id
-
 
1615
    """
-
 
1616
    self.send_updateRatings(item_id, type, rating, user_id)
-
 
1617
    self.recv_updateRatings()
-
 
1618
 
-
 
1619
  def send_updateRatings(self, item_id, type, rating, user_id):
-
 
1620
    self._oprot.writeMessageBegin('updateRatings', TMessageType.CALL, self._seqid)
-
 
1621
    args = updateRatings_args()
-
 
1622
    args.item_id = item_id
-
 
1623
    args.type = type
-
 
1624
    args.rating = rating
-
 
1625
    args.user_id = user_id
-
 
1626
    args.write(self._oprot)
-
 
1627
    self._oprot.writeMessageEnd()
-
 
1628
    self._oprot.trans.flush()
-
 
1629
 
-
 
1630
  def recv_updateRatings(self, ):
-
 
1631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1632
    if mtype == TMessageType.EXCEPTION:
-
 
1633
      x = TApplicationException()
-
 
1634
      x.read(self._iprot)
-
 
1635
      self._iprot.readMessageEnd()
-
 
1636
      raise x
-
 
1637
    result = updateRatings_result()
-
 
1638
    result.read(self._iprot)
-
 
1639
    self._iprot.readMessageEnd()
-
 
1640
    return
-
 
1641
 
-
 
1642
  def getRatings(self, item_id, user_id):
-
 
1643
    """
-
 
1644
    Parameters:
-
 
1645
     - item_id
-
 
1646
     - user_id
-
 
1647
    """
-
 
1648
    self.send_getRatings(item_id, user_id)
-
 
1649
    return self.recv_getRatings()
-
 
1650
 
-
 
1651
  def send_getRatings(self, item_id, user_id):
-
 
1652
    self._oprot.writeMessageBegin('getRatings', TMessageType.CALL, self._seqid)
-
 
1653
    args = getRatings_args()
-
 
1654
    args.item_id = item_id
-
 
1655
    args.user_id = user_id
-
 
1656
    args.write(self._oprot)
-
 
1657
    self._oprot.writeMessageEnd()
-
 
1658
    self._oprot.trans.flush()
-
 
1659
 
-
 
1660
  def recv_getRatings(self, ):
-
 
1661
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1662
    if mtype == TMessageType.EXCEPTION:
-
 
1663
      x = TApplicationException()
-
 
1664
      x.read(self._iprot)
-
 
1665
      self._iprot.readMessageEnd()
-
 
1666
      raise x
-
 
1667
    result = getRatings_result()
-
 
1668
    result.read(self._iprot)
-
 
1669
    self._iprot.readMessageEnd()
-
 
1670
    if result.success != None:
-
 
1671
      return result.success
-
 
1672
    if result.scx != None:
-
 
1673
      raise result.scx
-
 
1674
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRatings failed: unknown result");
-
 
1675
 
-
 
1676
  def updateBrowseHistory(self, user_id, item_id, isSessionId):
-
 
1677
    """
-
 
1678
    Parameters:
-
 
1679
     - user_id
-
 
1680
     - item_id
-
 
1681
     - isSessionId
-
 
1682
    """
-
 
1683
    self.send_updateBrowseHistory(user_id, item_id, isSessionId)
-
 
1684
    self.recv_updateBrowseHistory()
-
 
1685
 
-
 
1686
  def send_updateBrowseHistory(self, user_id, item_id, isSessionId):
-
 
1687
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
-
 
1688
    args = updateBrowseHistory_args()
-
 
1689
    args.user_id = user_id
-
 
1690
    args.item_id = item_id
-
 
1691
    args.isSessionId = isSessionId
-
 
1692
    args.write(self._oprot)
-
 
1693
    self._oprot.writeMessageEnd()
-
 
1694
    self._oprot.trans.flush()
-
 
1695
 
-
 
1696
  def recv_updateBrowseHistory(self, ):
-
 
1697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1698
    if mtype == TMessageType.EXCEPTION:
-
 
1699
      x = TApplicationException()
-
 
1700
      x.read(self._iprot)
-
 
1701
      self._iprot.readMessageEnd()
-
 
1702
      raise x
-
 
1703
    result = updateBrowseHistory_result()
-
 
1704
    result.read(self._iprot)
-
 
1705
    self._iprot.readMessageEnd()
-
 
1706
    return
-
 
1707
 
-
 
1708
  def getBrowseHistory(self, userId, isSessionId):
-
 
1709
    """
-
 
1710
    Parameters:
-
 
1711
     - userId
-
 
1712
     - isSessionId
-
 
1713
    """
-
 
1714
    self.send_getBrowseHistory(userId, isSessionId)
-
 
1715
    return self.recv_getBrowseHistory()
-
 
1716
 
-
 
1717
  def send_getBrowseHistory(self, userId, isSessionId):
-
 
1718
    self._oprot.writeMessageBegin('getBrowseHistory', TMessageType.CALL, self._seqid)
-
 
1719
    args = getBrowseHistory_args()
-
 
1720
    args.userId = userId
-
 
1721
    args.isSessionId = isSessionId
-
 
1722
    args.write(self._oprot)
-
 
1723
    self._oprot.writeMessageEnd()
-
 
1724
    self._oprot.trans.flush()
-
 
1725
 
-
 
1726
  def recv_getBrowseHistory(self, ):
-
 
1727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1728
    if mtype == TMessageType.EXCEPTION:
-
 
1729
      x = TApplicationException()
-
 
1730
      x.read(self._iprot)
-
 
1731
      self._iprot.readMessageEnd()
-
 
1732
      raise x
-
 
1733
    result = getBrowseHistory_result()
-
 
1734
    result.read(self._iprot)
-
 
1735
    self._iprot.readMessageEnd()
-
 
1736
    if result.success != None:
-
 
1737
      return result.success
-
 
1738
    if result.scx != None:
-
 
1739
      raise result.scx
1036
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendNewPasswordByHandle failed: unknown result");
1740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
1037
 
1741
 
1038
 
1742
 
1039
class Processor(Iface, TProcessor):
1743
class Processor(Iface, TProcessor):
1040
  def __init__(self, handler):
1744
  def __init__(self, handler):
1041
    self._handler = handler
1745
    self._handler = handler
1042
    self._processMap = {}
1746
    self._processMap = {}
1043
    self._processMap["createContext"] = Processor.process_createContext
1747
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
1044
    self._processMap["getContextFromId"] = Processor.process_getContextFromId
1748
    self._processMap["getUserById"] = Processor.process_getUserById
1045
    self._processMap["getContextFromEmailOrHandle"] = Processor.process_getContextFromEmailOrHandle
-
 
1046
    self._processMap["getState"] = Processor.process_getState
1749
    self._processMap["createUser"] = Processor.process_createUser
1047
    self._processMap["getPrimaryInfo"] = Processor.process_getPrimaryInfo
1750
    self._processMap["updateUser"] = Processor.process_updateUser
1048
    self._processMap["getInternalInfo"] = Processor.process_getInternalInfo
1751
    self._processMap["deleteUser"] = Processor.process_deleteUser
1049
    self._processMap["getContext"] = Processor.process_getContext
1752
    self._processMap["getUserState"] = Processor.process_getUserState
1050
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
1753
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
1051
    self._processMap["userExists"] = Processor.process_userExists
1754
    self._processMap["userExists"] = Processor.process_userExists
1052
    self._processMap["addIpAdressForUser"] = Processor.process_addIpAdressForUser
-
 
1053
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
1755
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
1054
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
1756
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
1055
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
1757
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
1056
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
1758
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
1057
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
1759
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
1058
    self._processMap["updatePassword"] = Processor.process_updatePassword
1760
    self._processMap["updatePassword"] = Processor.process_updatePassword
1059
    self._processMap["deleteUser"] = Processor.process_deleteUser
1761
    self._processMap["createCart"] = Processor.process_createCart
-
 
1762
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
-
 
1763
    self._processMap["getCart"] = Processor.process_getCart
-
 
1764
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
1060
    self._processMap["sendEmailVerification"] = Processor.process_sendEmailVerification
1765
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
1061
    self._processMap["sendSMSVerification"] = Processor.process_sendSMSVerification
1766
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
1062
    self._processMap["confirmEmailVerification"] = Processor.process_confirmEmailVerification
1767
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
-
 
1768
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
-
 
1769
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
-
 
1770
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
1063
    self._processMap["confirmSMSVerification"] = Processor.process_confirmSMSVerification
1771
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
-
 
1772
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
-
 
1773
    self._processMap["commitCart"] = Processor.process_commitCart
-
 
1774
    self._processMap["validateCart"] = Processor.process_validateCart
-
 
1775
    self._processMap["mergeCart"] = Processor.process_mergeCart
1064
    self._processMap["addSocialhandle"] = Processor.process_addSocialhandle
1776
    self._processMap["addWidget"] = Processor.process_addWidget
-
 
1777
    self._processMap["addItemToWidget"] = Processor.process_addItemToWidget
-
 
1778
    self._processMap["deleteItemFromWidget"] = Processor.process_deleteItemFromWidget
-
 
1779
    self._processMap["updateWidget"] = Processor.process_updateWidget
-
 
1780
    self._processMap["updateWidgetItem"] = Processor.process_updateWidgetItem
-
 
1781
    self._processMap["getWidget"] = Processor.process_getWidget
-
 
1782
    self._processMap["getMyResearch"] = Processor.process_getMyResearch
1065
    self._processMap["sendNewPasswordById"] = Processor.process_sendNewPasswordById
1783
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
-
 
1784
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
-
 
1785
    self._processMap["updateRatings"] = Processor.process_updateRatings
-
 
1786
    self._processMap["getRatings"] = Processor.process_getRatings
-
 
1787
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
1066
    self._processMap["sendNewPasswordByHandle"] = Processor.process_sendNewPasswordByHandle
1788
    self._processMap["getBrowseHistory"] = Processor.process_getBrowseHistory
1067
 
1789
 
1068
  def process(self, iprot, oprot):
1790
  def process(self, iprot, oprot):
1069
    (name, type, seqid) = iprot.readMessageBegin()
1791
    (name, type, seqid) = iprot.readMessageBegin()
1070
    if name not in self._processMap:
1792
    if name not in self._processMap:
1071
      iprot.skip(TType.STRUCT)
1793
      iprot.skip(TType.STRUCT)
Line 1078... Line 1800...
1078
      return
1800
      return
1079
    else:
1801
    else:
1080
      self._processMap[name](self, seqid, iprot, oprot)
1802
      self._processMap[name](self, seqid, iprot, oprot)
1081
    return True
1803
    return True
1082
 
1804
 
1083
  def process_createContext(self, seqid, iprot, oprot):
1805
  def process_createAnonymousUser(self, seqid, iprot, oprot):
1084
    args = createContext_args()
1806
    args = createAnonymousUser_args()
1085
    args.read(iprot)
1807
    args.read(iprot)
1086
    iprot.readMessageEnd()
1808
    iprot.readMessageEnd()
1087
    result = createContext_result()
1809
    result = createAnonymousUser_result()
1088
    try:
1810
    try:
1089
      result.success = self._handler.createContext(args.context, args.updateExisting)
1811
      result.success = self._handler.createAnonymousUser(args.jsessionId)
1090
    except UserContextException, cex:
1812
    except UserContextException, ucex:
1091
      result.cex = cex
1813
      result.ucex = ucex
1092
    oprot.writeMessageBegin("createContext", TMessageType.REPLY, seqid)
1814
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
1093
    result.write(oprot)
1815
    result.write(oprot)
1094
    oprot.writeMessageEnd()
1816
    oprot.writeMessageEnd()
1095
    oprot.trans.flush()
1817
    oprot.trans.flush()
1096
 
1818
 
1097
  def process_getContextFromId(self, seqid, iprot, oprot):
1819
  def process_getUserById(self, seqid, iprot, oprot):
1098
    args = getContextFromId_args()
1820
    args = getUserById_args()
1099
    args.read(iprot)
1821
    args.read(iprot)
1100
    iprot.readMessageEnd()
1822
    iprot.readMessageEnd()
1101
    result = getContextFromId_result()
1823
    result = getUserById_result()
1102
    try:
1824
    try:
1103
      result.success = self._handler.getContextFromId(args.userId, args.isSessionId)
1825
      result.success = self._handler.getUserById(args.userId)
1104
    except UserContextException, ucx:
1826
    except UserContextException, ucex:
1105
      result.ucx = ucx
1827
      result.ucex = ucex
1106
    oprot.writeMessageBegin("getContextFromId", TMessageType.REPLY, seqid)
1828
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
1107
    result.write(oprot)
1829
    result.write(oprot)
1108
    oprot.writeMessageEnd()
1830
    oprot.writeMessageEnd()
1109
    oprot.trans.flush()
1831
    oprot.trans.flush()
1110
 
1832
 
1111
  def process_getContextFromEmailOrHandle(self, seqid, iprot, oprot):
1833
  def process_createUser(self, seqid, iprot, oprot):
1112
    args = getContextFromEmailOrHandle_args()
1834
    args = createUser_args()
1113
    args.read(iprot)
1835
    args.read(iprot)
1114
    iprot.readMessageEnd()
1836
    iprot.readMessageEnd()
1115
    result = getContextFromEmailOrHandle_result()
1837
    result = createUser_result()
1116
    try:
1838
    try:
1117
      result.success = self._handler.getContextFromEmailOrHandle(args.emailorhandle, args.isEmail)
1839
      result.success = self._handler.createUser(args.user)
1118
    except UserContextException, ucx:
1840
    except UserContextException, ucex:
1119
      result.ucx = ucx
1841
      result.ucex = ucex
1120
    oprot.writeMessageBegin("getContextFromEmailOrHandle", TMessageType.REPLY, seqid)
1842
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
1121
    result.write(oprot)
1843
    result.write(oprot)
1122
    oprot.writeMessageEnd()
1844
    oprot.writeMessageEnd()
1123
    oprot.trans.flush()
1845
    oprot.trans.flush()
1124
 
1846
 
1125
  def process_getState(self, seqid, iprot, oprot):
1847
  def process_updateUser(self, seqid, iprot, oprot):
1126
    args = getState_args()
1848
    args = updateUser_args()
1127
    args.read(iprot)
1849
    args.read(iprot)
1128
    iprot.readMessageEnd()
1850
    iprot.readMessageEnd()
1129
    result = getState_result()
1851
    result = updateUser_result()
1130
    try:
1852
    try:
1131
      result.success = self._handler.getState(args.userId, args.isSessionId)
1853
      result.success = self._handler.updateUser(args.user)
1132
    except UserContextException, ucx:
1854
    except UserContextException, ucex:
1133
      result.ucx = ucx
1855
      result.ucex = ucex
1134
    oprot.writeMessageBegin("getState", TMessageType.REPLY, seqid)
1856
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
1135
    result.write(oprot)
1857
    result.write(oprot)
1136
    oprot.writeMessageEnd()
1858
    oprot.writeMessageEnd()
1137
    oprot.trans.flush()
1859
    oprot.trans.flush()
1138
 
1860
 
1139
  def process_getPrimaryInfo(self, seqid, iprot, oprot):
-
 
1140
    args = getPrimaryInfo_args()
-
 
1141
    args.read(iprot)
-
 
1142
    iprot.readMessageEnd()
-
 
1143
    result = getPrimaryInfo_result()
-
 
1144
    try:
-
 
1145
      result.success = self._handler.getPrimaryInfo(args.userId, args.isSessionId)
-
 
1146
    except UserContextException, ucx:
-
 
1147
      result.ucx = ucx
-
 
1148
    oprot.writeMessageBegin("getPrimaryInfo", TMessageType.REPLY, seqid)
-
 
1149
    result.write(oprot)
-
 
1150
    oprot.writeMessageEnd()
-
 
1151
    oprot.trans.flush()
-
 
1152
 
-
 
1153
  def process_getInternalInfo(self, seqid, iprot, oprot):
1861
  def process_deleteUser(self, seqid, iprot, oprot):
1154
    args = getInternalInfo_args()
1862
    args = deleteUser_args()
1155
    args.read(iprot)
1863
    args.read(iprot)
1156
    iprot.readMessageEnd()
1864
    iprot.readMessageEnd()
1157
    result = getInternalInfo_result()
1865
    result = deleteUser_result()
1158
    try:
1866
    try:
1159
      result.success = self._handler.getInternalInfo(args.userId, args.isSessionId)
1867
      result.success = self._handler.deleteUser(args.userId)
1160
    except UserContextException, ucx:
1868
    except UserContextException, ucex:
1161
      result.ucx = ucx
1869
      result.ucex = ucex
1162
    oprot.writeMessageBegin("getInternalInfo", TMessageType.REPLY, seqid)
1870
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
1163
    result.write(oprot)
1871
    result.write(oprot)
1164
    oprot.writeMessageEnd()
1872
    oprot.writeMessageEnd()
1165
    oprot.trans.flush()
1873
    oprot.trans.flush()
1166
 
1874
 
1167
  def process_getContext(self, seqid, iprot, oprot):
1875
  def process_getUserState(self, seqid, iprot, oprot):
1168
    args = getContext_args()
1876
    args = getUserState_args()
1169
    args.read(iprot)
1877
    args.read(iprot)
1170
    iprot.readMessageEnd()
1878
    iprot.readMessageEnd()
1171
    result = getContext_result()
1879
    result = getUserState_result()
1172
    try:
1880
    try:
1173
      result.success = self._handler.getContext(args.email, args.password)
1881
      result.success = self._handler.getUserState(args.userId)
1174
    except AuthenticationException, ax:
1882
    except UserContextException, ucex:
1175
      result.ax = ax
1883
      result.ucex = ucex
1176
    oprot.writeMessageBegin("getContext", TMessageType.REPLY, seqid)
1884
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
1177
    result.write(oprot)
1885
    result.write(oprot)
1178
    oprot.writeMessageEnd()
1886
    oprot.writeMessageEnd()
1179
    oprot.trans.flush()
1887
    oprot.trans.flush()
1180
 
1888
 
1181
  def process_authenticateUser(self, seqid, iprot, oprot):
1889
  def process_authenticateUser(self, seqid, iprot, oprot):
1182
    args = authenticateUser_args()
1890
    args = authenticateUser_args()
1183
    args.read(iprot)
1891
    args.read(iprot)
1184
    iprot.readMessageEnd()
1892
    iprot.readMessageEnd()
1185
    result = authenticateUser_result()
1893
    result = authenticateUser_result()
1186
    try:
1894
    try:
1187
      result.success = self._handler.authenticateUser(args.handle, args.password, args.isEmail)
1895
      result.success = self._handler.authenticateUser(args.email, args.password)
1188
    except AuthenticationException, ax:
1896
    except AuthenticationException, auex:
1189
      result.ax = ax
1897
      result.auex = auex
1190
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
1898
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
1191
    result.write(oprot)
1899
    result.write(oprot)
1192
    oprot.writeMessageEnd()
1900
    oprot.writeMessageEnd()
1193
    oprot.trans.flush()
1901
    oprot.trans.flush()
1194
 
1902
 
Line 1204... Line 1912...
1204
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
1912
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
1205
    result.write(oprot)
1913
    result.write(oprot)
1206
    oprot.writeMessageEnd()
1914
    oprot.writeMessageEnd()
1207
    oprot.trans.flush()
1915
    oprot.trans.flush()
1208
 
1916
 
1209
  def process_addIpAdressForUser(self, seqid, iprot, oprot):
-
 
1210
    args = addIpAdressForUser_args()
-
 
1211
    args.read(iprot)
-
 
1212
    iprot.readMessageEnd()
-
 
1213
    result = addIpAdressForUser_result()
-
 
1214
    try:
-
 
1215
      result.success = self._handler.addIpAdressForUser(args.ip, args.timestamp, args.userId)
-
 
1216
    except UserContextException, ucx:
-
 
1217
      result.ucx = ucx
-
 
1218
    oprot.writeMessageBegin("addIpAdressForUser", TMessageType.REPLY, seqid)
-
 
1219
    result.write(oprot)
-
 
1220
    oprot.writeMessageEnd()
-
 
1221
    oprot.trans.flush()
-
 
1222
 
-
 
1223
  def process_addAddressForUser(self, seqid, iprot, oprot):
1917
  def process_addAddressForUser(self, seqid, iprot, oprot):
1224
    args = addAddressForUser_args()
1918
    args = addAddressForUser_args()
1225
    args.read(iprot)
1919
    args.read(iprot)
1226
    iprot.readMessageEnd()
1920
    iprot.readMessageEnd()
1227
    result = addAddressForUser_result()
1921
    result = addAddressForUser_result()
1228
    try:
1922
    try:
1229
      result.success = self._handler.addAddressForUser(args.address, args.userid, args.timestamp, args.setDefault)
1923
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.timestamp, args.setDefault)
1230
    except UserContextException, ucx:
1924
    except UserContextException, ucx:
1231
      result.ucx = ucx
1925
      result.ucx = ucx
1232
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
1926
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
1233
    result.write(oprot)
1927
    result.write(oprot)
1234
    oprot.writeMessageEnd()
1928
    oprot.writeMessageEnd()
Line 1302... Line 1996...
1302
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
1996
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
1303
    result.write(oprot)
1997
    result.write(oprot)
1304
    oprot.writeMessageEnd()
1998
    oprot.writeMessageEnd()
1305
    oprot.trans.flush()
1999
    oprot.trans.flush()
1306
 
2000
 
1307
  def process_deleteUser(self, seqid, iprot, oprot):
2001
  def process_createCart(self, seqid, iprot, oprot):
1308
    args = deleteUser_args()
2002
    args = createCart_args()
1309
    args.read(iprot)
2003
    args.read(iprot)
1310
    iprot.readMessageEnd()
2004
    iprot.readMessageEnd()
1311
    result = deleteUser_result()
2005
    result = createCart_result()
1312
    try:
2006
    try:
1313
      result.success = self._handler.deleteUser(args.userid, args.isSessionId)
2007
      result.success = self._handler.createCart(args.userId)
1314
    except UserContextException, ucx:
2008
    except ShoppingCartException, scx:
1315
      result.ucx = ucx
2009
      result.scx = scx
1316
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
2010
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
1317
    result.write(oprot)
2011
    result.write(oprot)
1318
    oprot.writeMessageEnd()
2012
    oprot.writeMessageEnd()
1319
    oprot.trans.flush()
2013
    oprot.trans.flush()
1320
 
2014
 
1321
  def process_sendEmailVerification(self, seqid, iprot, oprot):
2015
  def process_getCurrentCart(self, seqid, iprot, oprot):
1322
    args = sendEmailVerification_args()
2016
    args = getCurrentCart_args()
1323
    args.read(iprot)
2017
    args.read(iprot)
1324
    iprot.readMessageEnd()
2018
    iprot.readMessageEnd()
1325
    result = sendEmailVerification_result()
2019
    result = getCurrentCart_result()
1326
    try:
2020
    try:
1327
      result.success = self._handler.sendEmailVerification(args.userid)
2021
      result.success = self._handler.getCurrentCart(args.userId)
1328
    except UserContextException, ucx:
2022
    except ShoppingCartException, scx:
1329
      result.ucx = ucx
2023
      result.scx = scx
1330
    oprot.writeMessageBegin("sendEmailVerification", TMessageType.REPLY, seqid)
2024
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
1331
    result.write(oprot)
2025
    result.write(oprot)
1332
    oprot.writeMessageEnd()
2026
    oprot.writeMessageEnd()
1333
    oprot.trans.flush()
2027
    oprot.trans.flush()
1334
 
2028
 
1335
  def process_sendSMSVerification(self, seqid, iprot, oprot):
2029
  def process_getCart(self, seqid, iprot, oprot):
1336
    args = sendSMSVerification_args()
2030
    args = getCart_args()
1337
    args.read(iprot)
2031
    args.read(iprot)
1338
    iprot.readMessageEnd()
2032
    iprot.readMessageEnd()
1339
    result = sendSMSVerification_result()
2033
    result = getCart_result()
1340
    try:
2034
    try:
1341
      result.success = self._handler.sendSMSVerification(args.userid)
2035
      result.success = self._handler.getCart(args.cartId)
1342
    except UserContextException, ucx:
2036
    except ShoppingCartException, scx:
1343
      result.ucx = ucx
2037
      result.scx = scx
1344
    oprot.writeMessageBegin("sendSMSVerification", TMessageType.REPLY, seqid)
2038
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
1345
    result.write(oprot)
2039
    result.write(oprot)
1346
    oprot.writeMessageEnd()
2040
    oprot.writeMessageEnd()
1347
    oprot.trans.flush()
2041
    oprot.trans.flush()
1348
 
2042
 
1349
  def process_confirmEmailVerification(self, seqid, iprot, oprot):
2043
  def process_getCartsForUser(self, seqid, iprot, oprot):
1350
    args = confirmEmailVerification_args()
2044
    args = getCartsForUser_args()
1351
    args.read(iprot)
2045
    args.read(iprot)
1352
    iprot.readMessageEnd()
2046
    iprot.readMessageEnd()
1353
    result = confirmEmailVerification_result()
2047
    result = getCartsForUser_result()
1354
    try:
2048
    try:
1355
      result.success = self._handler.confirmEmailVerification(args.userid)
2049
      result.success = self._handler.getCartsForUser(args.userId, args.status)
1356
    except UserContextException, ucx:
2050
    except ShoppingCartException, scx:
1357
      result.ucx = ucx
2051
      result.scx = scx
1358
    oprot.writeMessageBegin("confirmEmailVerification", TMessageType.REPLY, seqid)
2052
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
1359
    result.write(oprot)
2053
    result.write(oprot)
1360
    oprot.writeMessageEnd()
2054
    oprot.writeMessageEnd()
1361
    oprot.trans.flush()
2055
    oprot.trans.flush()
1362
 
2056
 
1363
  def process_confirmSMSVerification(self, seqid, iprot, oprot):
2057
  def process_getCartsByStatus(self, seqid, iprot, oprot):
1364
    args = confirmSMSVerification_args()
2058
    args = getCartsByStatus_args()
1365
    args.read(iprot)
2059
    args.read(iprot)
1366
    iprot.readMessageEnd()
2060
    iprot.readMessageEnd()
1367
    result = confirmSMSVerification_result()
2061
    result = getCartsByStatus_result()
1368
    try:
2062
    try:
1369
      result.success = self._handler.confirmSMSVerification(args.userid)
2063
      result.success = self._handler.getCartsByStatus(args.status)
1370
    except UserContextException, ucx:
2064
    except ShoppingCartException, scx:
1371
      result.ucx = ucx
2065
      result.scx = scx
1372
    oprot.writeMessageBegin("confirmSMSVerification", TMessageType.REPLY, seqid)
2066
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
1373
    result.write(oprot)
2067
    result.write(oprot)
1374
    oprot.writeMessageEnd()
2068
    oprot.writeMessageEnd()
1375
    oprot.trans.flush()
2069
    oprot.trans.flush()
1376
 
2070
 
1377
  def process_addSocialhandle(self, seqid, iprot, oprot):
2071
  def process_getCartsByTime(self, seqid, iprot, oprot):
1378
    args = addSocialhandle_args()
2072
    args = getCartsByTime_args()
1379
    args.read(iprot)
2073
    args.read(iprot)
1380
    iprot.readMessageEnd()
2074
    iprot.readMessageEnd()
1381
    result = addSocialhandle_result()
2075
    result = getCartsByTime_result()
1382
    try:
2076
    try:
1383
      result.success = self._handler.addSocialhandle(args.userid, args.socialService, args.handle)
2077
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
1384
    except UserContextException, ucx:
2078
    except ShoppingCartException, scx:
1385
      result.ucx = ucx
2079
      result.scx = scx
1386
    oprot.writeMessageBegin("addSocialhandle", TMessageType.REPLY, seqid)
2080
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
1387
    result.write(oprot)
2081
    result.write(oprot)
1388
    oprot.writeMessageEnd()
2082
    oprot.writeMessageEnd()
1389
    oprot.trans.flush()
2083
    oprot.trans.flush()
1390
 
2084
 
1391
  def process_sendNewPasswordById(self, seqid, iprot, oprot):
2085
  def process_changeCartStatus(self, seqid, iprot, oprot):
1392
    args = sendNewPasswordById_args()
2086
    args = changeCartStatus_args()
1393
    args.read(iprot)
2087
    args.read(iprot)
1394
    iprot.readMessageEnd()
2088
    iprot.readMessageEnd()
1395
    result = sendNewPasswordById_result()
2089
    result = changeCartStatus_result()
1396
    try:
2090
    try:
1397
      result.success = self._handler.sendNewPasswordById(args.userid)
2091
      self._handler.changeCartStatus(args.cartId, args.status)
1398
    except UserContextException, ucx:
2092
    except ShoppingCartException, scx:
1399
      result.ucx = ucx
2093
      result.scx = scx
1400
    oprot.writeMessageBegin("sendNewPasswordById", TMessageType.REPLY, seqid)
2094
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
1401
    result.write(oprot)
2095
    result.write(oprot)
1402
    oprot.writeMessageEnd()
2096
    oprot.writeMessageEnd()
1403
    oprot.trans.flush()
2097
    oprot.trans.flush()
1404
 
2098
 
1405
  def process_sendNewPasswordByHandle(self, seqid, iprot, oprot):
2099
  def process_addItemToCart(self, seqid, iprot, oprot):
1406
    args = sendNewPasswordByHandle_args()
2100
    args = addItemToCart_args()
1407
    args.read(iprot)
2101
    args.read(iprot)
1408
    iprot.readMessageEnd()
2102
    iprot.readMessageEnd()
1409
    result = sendNewPasswordByHandle_result()
2103
    result = addItemToCart_result()
1410
    try:
2104
    try:
-
 
2105
      self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)
-
 
2106
    except ShoppingCartException, scx:
-
 
2107
      result.scx = scx
-
 
2108
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
-
 
2109
    result.write(oprot)
-
 
2110
    oprot.writeMessageEnd()
-
 
2111
    oprot.trans.flush()
-
 
2112
 
-
 
2113
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
-
 
2114
    args = deleteItemFromCart_args()
-
 
2115
    args.read(iprot)
-
 
2116
    iprot.readMessageEnd()
-
 
2117
    result = deleteItemFromCart_result()
-
 
2118
    try:
-
 
2119
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
-
 
2120
    except ShoppingCartException, scx:
-
 
2121
      result.scx = scx
-
 
2122
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
-
 
2123
    result.write(oprot)
-
 
2124
    oprot.writeMessageEnd()
-
 
2125
    oprot.trans.flush()
-
 
2126
 
-
 
2127
  def process_changeQuantity(self, seqid, iprot, oprot):
-
 
2128
    args = changeQuantity_args()
-
 
2129
    args.read(iprot)
-
 
2130
    iprot.readMessageEnd()
-
 
2131
    result = changeQuantity_result()
-
 
2132
    try:
-
 
2133
      self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
-
 
2134
    except ShoppingCartException, scx:
-
 
2135
      result.scx = scx
-
 
2136
    oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
-
 
2137
    result.write(oprot)
-
 
2138
    oprot.writeMessageEnd()
-
 
2139
    oprot.trans.flush()
-
 
2140
 
-
 
2141
  def process_changeItemStatus(self, seqid, iprot, oprot):
-
 
2142
    args = changeItemStatus_args()
-
 
2143
    args.read(iprot)
-
 
2144
    iprot.readMessageEnd()
-
 
2145
    result = changeItemStatus_result()
-
 
2146
    try:
-
 
2147
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
-
 
2148
    except ShoppingCartException, scx:
-
 
2149
      result.scx = scx
-
 
2150
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
-
 
2151
    result.write(oprot)
-
 
2152
    oprot.writeMessageEnd()
-
 
2153
    oprot.trans.flush()
-
 
2154
 
-
 
2155
  def process_addAddressToCart(self, seqid, iprot, oprot):
-
 
2156
    args = addAddressToCart_args()
-
 
2157
    args.read(iprot)
-
 
2158
    iprot.readMessageEnd()
-
 
2159
    result = addAddressToCart_result()
-
 
2160
    self._handler.addAddressToCart(args.cartId, args.addressId)
-
 
2161
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
-
 
2162
    result.write(oprot)
-
 
2163
    oprot.writeMessageEnd()
-
 
2164
    oprot.trans.flush()
-
 
2165
 
-
 
2166
  def process_commitCart(self, seqid, iprot, oprot):
-
 
2167
    args = commitCart_args()
-
 
2168
    args.read(iprot)
-
 
2169
    iprot.readMessageEnd()
-
 
2170
    result = commitCart_result()
-
 
2171
    try:
-
 
2172
      result.success = self._handler.commitCart(args.cartId)
-
 
2173
    except ShoppingCartException, scx:
-
 
2174
      result.scx = scx
-
 
2175
    oprot.writeMessageBegin("commitCart", TMessageType.REPLY, seqid)
-
 
2176
    result.write(oprot)
-
 
2177
    oprot.writeMessageEnd()
-
 
2178
    oprot.trans.flush()
-
 
2179
 
-
 
2180
  def process_validateCart(self, seqid, iprot, oprot):
-
 
2181
    args = validateCart_args()
-
 
2182
    args.read(iprot)
-
 
2183
    iprot.readMessageEnd()
-
 
2184
    result = validateCart_result()
-
 
2185
    result.success = self._handler.validateCart(args.cartId)
-
 
2186
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
-
 
2187
    result.write(oprot)
-
 
2188
    oprot.writeMessageEnd()
-
 
2189
    oprot.trans.flush()
-
 
2190
 
-
 
2191
  def process_mergeCart(self, seqid, iprot, oprot):
-
 
2192
    args = mergeCart_args()
-
 
2193
    args.read(iprot)
-
 
2194
    iprot.readMessageEnd()
-
 
2195
    result = mergeCart_result()
-
 
2196
    self._handler.mergeCart(args.fromCartId, args.toCartId)
-
 
2197
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
-
 
2198
    result.write(oprot)
-
 
2199
    oprot.writeMessageEnd()
-
 
2200
    oprot.trans.flush()
-
 
2201
 
-
 
2202
  def process_addWidget(self, seqid, iprot, oprot):
-
 
2203
    args = addWidget_args()
-
 
2204
    args.read(iprot)
-
 
2205
    iprot.readMessageEnd()
-
 
2206
    result = addWidget_result()
-
 
2207
    try:
-
 
2208
      self._handler.addWidget(args.widget)
-
 
2209
    except WidgetException, scx:
-
 
2210
      result.scx = scx
-
 
2211
    oprot.writeMessageBegin("addWidget", TMessageType.REPLY, seqid)
-
 
2212
    result.write(oprot)
-
 
2213
    oprot.writeMessageEnd()
-
 
2214
    oprot.trans.flush()
-
 
2215
 
-
 
2216
  def process_addItemToWidget(self, seqid, iprot, oprot):
-
 
2217
    args = addItemToWidget_args()
-
 
2218
    args.read(iprot)
-
 
2219
    iprot.readMessageEnd()
-
 
2220
    result = addItemToWidget_result()
-
 
2221
    try:
-
 
2222
      self._handler.addItemToWidget(args.widget_id, args.items)
-
 
2223
    except WidgetException, scx:
-
 
2224
      result.scx = scx
-
 
2225
    oprot.writeMessageBegin("addItemToWidget", TMessageType.REPLY, seqid)
-
 
2226
    result.write(oprot)
-
 
2227
    oprot.writeMessageEnd()
-
 
2228
    oprot.trans.flush()
-
 
2229
 
-
 
2230
  def process_deleteItemFromWidget(self, seqid, iprot, oprot):
-
 
2231
    args = deleteItemFromWidget_args()
-
 
2232
    args.read(iprot)
-
 
2233
    iprot.readMessageEnd()
-
 
2234
    result = deleteItemFromWidget_result()
-
 
2235
    try:
-
 
2236
      self._handler.deleteItemFromWidget(args.widget_id, args.item_id)
-
 
2237
    except WidgetException, scx:
-
 
2238
      result.scx = scx
-
 
2239
    oprot.writeMessageBegin("deleteItemFromWidget", TMessageType.REPLY, seqid)
-
 
2240
    result.write(oprot)
-
 
2241
    oprot.writeMessageEnd()
-
 
2242
    oprot.trans.flush()
-
 
2243
 
-
 
2244
  def process_updateWidget(self, seqid, iprot, oprot):
-
 
2245
    args = updateWidget_args()
-
 
2246
    args.read(iprot)
-
 
2247
    iprot.readMessageEnd()
-
 
2248
    result = updateWidget_result()
-
 
2249
    try:
-
 
2250
      self._handler.updateWidget(args.widgetId, args.enable)
-
 
2251
    except WidgetException, scx:
-
 
2252
      result.scx = scx
-
 
2253
    oprot.writeMessageBegin("updateWidget", TMessageType.REPLY, seqid)
-
 
2254
    result.write(oprot)
-
 
2255
    oprot.writeMessageEnd()
-
 
2256
    oprot.trans.flush()
-
 
2257
 
-
 
2258
  def process_updateWidgetItem(self, seqid, iprot, oprot):
-
 
2259
    args = updateWidgetItem_args()
-
 
2260
    args.read(iprot)
-
 
2261
    iprot.readMessageEnd()
-
 
2262
    result = updateWidgetItem_result()
-
 
2263
    try:
-
 
2264
      self._handler.updateWidgetItem(args.widgetId, args.enable)
-
 
2265
    except WidgetException, scx:
-
 
2266
      result.scx = scx
-
 
2267
    oprot.writeMessageBegin("updateWidgetItem", TMessageType.REPLY, seqid)
-
 
2268
    result.write(oprot)
-
 
2269
    oprot.writeMessageEnd()
-
 
2270
    oprot.trans.flush()
-
 
2271
 
-
 
2272
  def process_getWidget(self, seqid, iprot, oprot):
-
 
2273
    args = getWidget_args()
-
 
2274
    args.read(iprot)
-
 
2275
    iprot.readMessageEnd()
-
 
2276
    result = getWidget_result()
-
 
2277
    try:
-
 
2278
      result.success = self._handler.getWidget(args.type, args.userId, args.onlyEnabled)
-
 
2279
    except WidgetException, scx:
-
 
2280
      result.scx = scx
-
 
2281
    oprot.writeMessageBegin("getWidget", TMessageType.REPLY, seqid)
-
 
2282
    result.write(oprot)
-
 
2283
    oprot.writeMessageEnd()
-
 
2284
    oprot.trans.flush()
-
 
2285
 
-
 
2286
  def process_getMyResearch(self, seqid, iprot, oprot):
-
 
2287
    args = getMyResearch_args()
-
 
2288
    args.read(iprot)
-
 
2289
    iprot.readMessageEnd()
-
 
2290
    result = getMyResearch_result()
-
 
2291
    try:
-
 
2292
      result.success = self._handler.getMyResearch(args.user_id)
-
 
2293
    except WidgetException, scx:
-
 
2294
      result.scx = scx
-
 
2295
    oprot.writeMessageBegin("getMyResearch", TMessageType.REPLY, seqid)
-
 
2296
    result.write(oprot)
-
 
2297
    oprot.writeMessageEnd()
-
 
2298
    oprot.trans.flush()
-
 
2299
 
-
 
2300
  def process_updateMyResearch(self, seqid, iprot, oprot):
-
 
2301
    args = updateMyResearch_args()
-
 
2302
    args.read(iprot)
-
 
2303
    iprot.readMessageEnd()
-
 
2304
    result = updateMyResearch_result()
-
 
2305
    try:
1411
      result.success = self._handler.sendNewPasswordByHandle(args.emailOrHandle, args.isEmail)
2306
      result.success = self._handler.updateMyResearch(args.user_id, args.item_id)
-
 
2307
    except WidgetException, scx:
-
 
2308
      result.scx = scx
-
 
2309
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
-
 
2310
    result.write(oprot)
-
 
2311
    oprot.writeMessageEnd()
-
 
2312
    oprot.trans.flush()
-
 
2313
 
-
 
2314
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
-
 
2315
    args = deleteItemFromMyResearch_args()
-
 
2316
    args.read(iprot)
-
 
2317
    iprot.readMessageEnd()
-
 
2318
    result = deleteItemFromMyResearch_result()
-
 
2319
    try:
-
 
2320
      self._handler.deleteItemFromMyResearch(args.user_id, args.item_id)
-
 
2321
    except WidgetException, scx:
-
 
2322
      result.scx = scx
-
 
2323
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
-
 
2324
    result.write(oprot)
-
 
2325
    oprot.writeMessageEnd()
-
 
2326
    oprot.trans.flush()
-
 
2327
 
-
 
2328
  def process_updateRatings(self, seqid, iprot, oprot):
-
 
2329
    args = updateRatings_args()
-
 
2330
    args.read(iprot)
-
 
2331
    iprot.readMessageEnd()
-
 
2332
    result = updateRatings_result()
-
 
2333
    self._handler.updateRatings(args.item_id, args.type, args.rating, args.user_id)
-
 
2334
    oprot.writeMessageBegin("updateRatings", TMessageType.REPLY, seqid)
-
 
2335
    result.write(oprot)
-
 
2336
    oprot.writeMessageEnd()
-
 
2337
    oprot.trans.flush()
-
 
2338
 
-
 
2339
  def process_getRatings(self, seqid, iprot, oprot):
-
 
2340
    args = getRatings_args()
-
 
2341
    args.read(iprot)
-
 
2342
    iprot.readMessageEnd()
-
 
2343
    result = getRatings_result()
-
 
2344
    try:
-
 
2345
      result.success = self._handler.getRatings(args.item_id, args.user_id)
-
 
2346
    except WidgetException, scx:
-
 
2347
      result.scx = scx
-
 
2348
    oprot.writeMessageBegin("getRatings", TMessageType.REPLY, seqid)
-
 
2349
    result.write(oprot)
-
 
2350
    oprot.writeMessageEnd()
-
 
2351
    oprot.trans.flush()
-
 
2352
 
-
 
2353
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
-
 
2354
    args = updateBrowseHistory_args()
-
 
2355
    args.read(iprot)
-
 
2356
    iprot.readMessageEnd()
-
 
2357
    result = updateBrowseHistory_result()
-
 
2358
    self._handler.updateBrowseHistory(args.user_id, args.item_id, args.isSessionId)
-
 
2359
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
-
 
2360
    result.write(oprot)
-
 
2361
    oprot.writeMessageEnd()
-
 
2362
    oprot.trans.flush()
-
 
2363
 
-
 
2364
  def process_getBrowseHistory(self, seqid, iprot, oprot):
-
 
2365
    args = getBrowseHistory_args()
-
 
2366
    args.read(iprot)
-
 
2367
    iprot.readMessageEnd()
-
 
2368
    result = getBrowseHistory_result()
-
 
2369
    try:
-
 
2370
      result.success = self._handler.getBrowseHistory(args.userId, args.isSessionId)
1412
    except UserContextException, ucx:
2371
    except WidgetException, scx:
1413
      result.ucx = ucx
2372
      result.scx = scx
1414
    oprot.writeMessageBegin("sendNewPasswordByHandle", TMessageType.REPLY, seqid)
2373
    oprot.writeMessageBegin("getBrowseHistory", TMessageType.REPLY, seqid)
1415
    result.write(oprot)
2374
    result.write(oprot)
1416
    oprot.writeMessageEnd()
2375
    oprot.writeMessageEnd()
1417
    oprot.trans.flush()
2376
    oprot.trans.flush()
1418
 
2377
 
1419
 
2378
 
1420
# HELPER FUNCTIONS AND STRUCTURES
2379
# HELPER FUNCTIONS AND STRUCTURES
1421
 
2380
 
1422
class createContext_args:
2381
class createAnonymousUser_args:
1423
  """
2382
  """
1424
  Attributes:
2383
  Attributes:
1425
   - context
-
 
1426
   - updateExisting
2384
   - jsessionId
1427
  """
2385
  """
1428
 
2386
 
1429
  thrift_spec = (
2387
  thrift_spec = (
1430
    None, # 0
2388
    None, # 0
1431
    (1, TType.STRUCT, 'context', (UserContext, UserContext.thrift_spec), None, ), # 1
-
 
1432
    (2, TType.BOOL, 'updateExisting', None, None, ), # 2
2389
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
1433
  )
2390
  )
1434
 
2391
 
1435
  def __init__(self, context=None, updateExisting=None,):
2392
  def __init__(self, jsessionId=None,):
1436
    self.context = context
-
 
1437
    self.updateExisting = updateExisting
2393
    self.jsessionId = jsessionId
1438
 
2394
 
1439
  def read(self, iprot):
2395
  def read(self, iprot):
1440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1442
      return
2398
      return
Line 1444... Line 2400...
1444
    while True:
2400
    while True:
1445
      (fname, ftype, fid) = iprot.readFieldBegin()
2401
      (fname, ftype, fid) = iprot.readFieldBegin()
1446
      if ftype == TType.STOP:
2402
      if ftype == TType.STOP:
1447
        break
2403
        break
1448
      if fid == 1:
2404
      if fid == 1:
1449
        if ftype == TType.STRUCT:
2405
        if ftype == TType.STRING:
1450
          self.context = UserContext()
-
 
1451
          self.context.read(iprot)
-
 
1452
        else:
-
 
1453
          iprot.skip(ftype)
-
 
1454
      elif fid == 2:
-
 
1455
        if ftype == TType.BOOL:
-
 
1456
          self.updateExisting = iprot.readBool();
2406
          self.jsessionId = iprot.readString();
1457
        else:
2407
        else:
1458
          iprot.skip(ftype)
2408
          iprot.skip(ftype)
1459
      else:
2409
      else:
1460
        iprot.skip(ftype)
2410
        iprot.skip(ftype)
1461
      iprot.readFieldEnd()
2411
      iprot.readFieldEnd()
Line 1463... Line 2413...
1463
 
2413
 
1464
  def write(self, oprot):
2414
  def write(self, oprot):
1465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1467
      return
2417
      return
1468
    oprot.writeStructBegin('createContext_args')
2418
    oprot.writeStructBegin('createAnonymousUser_args')
1469
    if self.context != None:
2419
    if self.jsessionId != None:
1470
      oprot.writeFieldBegin('context', TType.STRUCT, 1)
2420
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
1471
      self.context.write(oprot)
-
 
1472
      oprot.writeFieldEnd()
-
 
1473
    if self.updateExisting != None:
-
 
1474
      oprot.writeFieldBegin('updateExisting', TType.BOOL, 2)
-
 
1475
      oprot.writeBool(self.updateExisting)
2421
      oprot.writeString(self.jsessionId)
1476
      oprot.writeFieldEnd()
2422
      oprot.writeFieldEnd()
1477
    oprot.writeFieldStop()
2423
    oprot.writeFieldStop()
1478
    oprot.writeStructEnd()
2424
    oprot.writeStructEnd()
1479
 
2425
 
1480
  def __repr__(self):
2426
  def __repr__(self):
Line 1486... Line 2432...
1486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1487
 
2433
 
1488
  def __ne__(self, other):
2434
  def __ne__(self, other):
1489
    return not (self == other)
2435
    return not (self == other)
1490
 
2436
 
1491
class createContext_result:
2437
class createAnonymousUser_result:
1492
  """
2438
  """
1493
  Attributes:
2439
  Attributes:
1494
   - success
2440
   - success
1495
   - cex
2441
   - ucex
1496
  """
2442
  """
1497
 
2443
 
1498
  thrift_spec = (
2444
  thrift_spec = (
1499
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
2445
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
1500
    (1, TType.STRUCT, 'cex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2446
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1501
  )
2447
  )
1502
 
2448
 
1503
  def __init__(self, success=None, cex=None,):
2449
  def __init__(self, success=None, ucex=None,):
1504
    self.success = success
2450
    self.success = success
1505
    self.cex = cex
2451
    self.ucex = ucex
1506
 
2452
 
1507
  def read(self, iprot):
2453
  def read(self, iprot):
1508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1510
      return
2456
      return
Line 1513... Line 2459...
1513
      (fname, ftype, fid) = iprot.readFieldBegin()
2459
      (fname, ftype, fid) = iprot.readFieldBegin()
1514
      if ftype == TType.STOP:
2460
      if ftype == TType.STOP:
1515
        break
2461
        break
1516
      if fid == 0:
2462
      if fid == 0:
1517
        if ftype == TType.STRUCT:
2463
        if ftype == TType.STRUCT:
1518
          self.success = UserContext()
2464
          self.success = User()
1519
          self.success.read(iprot)
2465
          self.success.read(iprot)
1520
        else:
2466
        else:
1521
          iprot.skip(ftype)
2467
          iprot.skip(ftype)
1522
      elif fid == 1:
2468
      elif fid == 1:
1523
        if ftype == TType.STRUCT:
2469
        if ftype == TType.STRUCT:
1524
          self.cex = UserContextException()
2470
          self.ucex = UserContextException()
1525
          self.cex.read(iprot)
2471
          self.ucex.read(iprot)
1526
        else:
2472
        else:
1527
          iprot.skip(ftype)
2473
          iprot.skip(ftype)
1528
      else:
2474
      else:
1529
        iprot.skip(ftype)
2475
        iprot.skip(ftype)
1530
      iprot.readFieldEnd()
2476
      iprot.readFieldEnd()
Line 1532... Line 2478...
1532
 
2478
 
1533
  def write(self, oprot):
2479
  def write(self, oprot):
1534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1536
      return
2482
      return
1537
    oprot.writeStructBegin('createContext_result')
2483
    oprot.writeStructBegin('createAnonymousUser_result')
1538
    if self.success != None:
2484
    if self.success != None:
1539
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2485
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1540
      self.success.write(oprot)
2486
      self.success.write(oprot)
1541
      oprot.writeFieldEnd()
2487
      oprot.writeFieldEnd()
1542
    if self.cex != None:
2488
    if self.ucex != None:
1543
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
2489
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
1544
      self.cex.write(oprot)
2490
      self.ucex.write(oprot)
1545
      oprot.writeFieldEnd()
2491
      oprot.writeFieldEnd()
1546
    oprot.writeFieldStop()
2492
    oprot.writeFieldStop()
1547
    oprot.writeStructEnd()
2493
    oprot.writeStructEnd()
1548
 
2494
 
1549
  def __repr__(self):
2495
  def __repr__(self):
Line 1555... Line 2501...
1555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1556
 
2502
 
1557
  def __ne__(self, other):
2503
  def __ne__(self, other):
1558
    return not (self == other)
2504
    return not (self == other)
1559
 
2505
 
1560
class getContextFromId_args:
2506
class getUserById_args:
1561
  """
2507
  """
1562
  Attributes:
2508
  Attributes:
1563
   - userId
2509
   - userId
1564
   - isSessionId
-
 
1565
  """
2510
  """
1566
 
2511
 
1567
  thrift_spec = (
2512
  thrift_spec = (
1568
    None, # 0
2513
    None, # 0
1569
    (1, TType.I64, 'userId', None, None, ), # 1
2514
    (1, TType.I64, 'userId', None, None, ), # 1
1570
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
-
 
1571
  )
2515
  )
1572
 
2516
 
1573
  def __init__(self, userId=None, isSessionId=None,):
2517
  def __init__(self, userId=None,):
1574
    self.userId = userId
2518
    self.userId = userId
1575
    self.isSessionId = isSessionId
-
 
1576
 
2519
 
1577
  def read(self, iprot):
2520
  def read(self, iprot):
1578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1580
      return
2523
      return
Line 1586... Line 2529...
1586
      if fid == 1:
2529
      if fid == 1:
1587
        if ftype == TType.I64:
2530
        if ftype == TType.I64:
1588
          self.userId = iprot.readI64();
2531
          self.userId = iprot.readI64();
1589
        else:
2532
        else:
1590
          iprot.skip(ftype)
2533
          iprot.skip(ftype)
1591
      elif fid == 2:
-
 
1592
        if ftype == TType.BOOL:
-
 
1593
          self.isSessionId = iprot.readBool();
-
 
1594
        else:
-
 
1595
          iprot.skip(ftype)
-
 
1596
      else:
2534
      else:
1597
        iprot.skip(ftype)
2535
        iprot.skip(ftype)
1598
      iprot.readFieldEnd()
2536
      iprot.readFieldEnd()
1599
    iprot.readStructEnd()
2537
    iprot.readStructEnd()
1600
 
2538
 
1601
  def write(self, oprot):
2539
  def write(self, oprot):
1602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1604
      return
2542
      return
1605
    oprot.writeStructBegin('getContextFromId_args')
2543
    oprot.writeStructBegin('getUserById_args')
1606
    if self.userId != None:
2544
    if self.userId != None:
1607
      oprot.writeFieldBegin('userId', TType.I64, 1)
2545
      oprot.writeFieldBegin('userId', TType.I64, 1)
1608
      oprot.writeI64(self.userId)
2546
      oprot.writeI64(self.userId)
1609
      oprot.writeFieldEnd()
2547
      oprot.writeFieldEnd()
1610
    if self.isSessionId != None:
-
 
1611
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
1612
      oprot.writeBool(self.isSessionId)
-
 
1613
      oprot.writeFieldEnd()
-
 
1614
    oprot.writeFieldStop()
2548
    oprot.writeFieldStop()
1615
    oprot.writeStructEnd()
2549
    oprot.writeStructEnd()
1616
 
2550
 
1617
  def __repr__(self):
2551
  def __repr__(self):
1618
    L = ['%s=%r' % (key, value)
2552
    L = ['%s=%r' % (key, value)
Line 1623... Line 2557...
1623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1624
 
2558
 
1625
  def __ne__(self, other):
2559
  def __ne__(self, other):
1626
    return not (self == other)
2560
    return not (self == other)
1627
 
2561
 
1628
class getContextFromId_result:
2562
class getUserById_result:
1629
  """
2563
  """
1630
  Attributes:
2564
  Attributes:
1631
   - success
2565
   - success
1632
   - ucx
2566
   - ucex
1633
  """
2567
  """
1634
 
2568
 
1635
  thrift_spec = (
2569
  thrift_spec = (
1636
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
2570
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
1637
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2571
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1638
  )
2572
  )
1639
 
2573
 
1640
  def __init__(self, success=None, ucx=None,):
2574
  def __init__(self, success=None, ucex=None,):
1641
    self.success = success
2575
    self.success = success
1642
    self.ucx = ucx
2576
    self.ucex = ucex
1643
 
2577
 
1644
  def read(self, iprot):
2578
  def read(self, iprot):
1645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1647
      return
2581
      return
Line 1650... Line 2584...
1650
      (fname, ftype, fid) = iprot.readFieldBegin()
2584
      (fname, ftype, fid) = iprot.readFieldBegin()
1651
      if ftype == TType.STOP:
2585
      if ftype == TType.STOP:
1652
        break
2586
        break
1653
      if fid == 0:
2587
      if fid == 0:
1654
        if ftype == TType.STRUCT:
2588
        if ftype == TType.STRUCT:
1655
          self.success = UserContext()
2589
          self.success = User()
1656
          self.success.read(iprot)
2590
          self.success.read(iprot)
1657
        else:
2591
        else:
1658
          iprot.skip(ftype)
2592
          iprot.skip(ftype)
1659
      elif fid == 1:
2593
      elif fid == 1:
1660
        if ftype == TType.STRUCT:
2594
        if ftype == TType.STRUCT:
1661
          self.ucx = UserContextException()
2595
          self.ucex = UserContextException()
1662
          self.ucx.read(iprot)
2596
          self.ucex.read(iprot)
1663
        else:
2597
        else:
1664
          iprot.skip(ftype)
2598
          iprot.skip(ftype)
1665
      else:
2599
      else:
1666
        iprot.skip(ftype)
2600
        iprot.skip(ftype)
1667
      iprot.readFieldEnd()
2601
      iprot.readFieldEnd()
Line 1669... Line 2603...
1669
 
2603
 
1670
  def write(self, oprot):
2604
  def write(self, oprot):
1671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1673
      return
2607
      return
1674
    oprot.writeStructBegin('getContextFromId_result')
2608
    oprot.writeStructBegin('getUserById_result')
1675
    if self.success != None:
2609
    if self.success != None:
1676
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2610
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1677
      self.success.write(oprot)
2611
      self.success.write(oprot)
1678
      oprot.writeFieldEnd()
2612
      oprot.writeFieldEnd()
1679
    if self.ucx != None:
2613
    if self.ucex != None:
1680
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2614
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
1681
      self.ucx.write(oprot)
2615
      self.ucex.write(oprot)
1682
      oprot.writeFieldEnd()
2616
      oprot.writeFieldEnd()
1683
    oprot.writeFieldStop()
2617
    oprot.writeFieldStop()
1684
    oprot.writeStructEnd()
2618
    oprot.writeStructEnd()
1685
 
2619
 
1686
  def __repr__(self):
2620
  def __repr__(self):
Line 1692... Line 2626...
1692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1693
 
2627
 
1694
  def __ne__(self, other):
2628
  def __ne__(self, other):
1695
    return not (self == other)
2629
    return not (self == other)
1696
 
2630
 
1697
class getContextFromEmailOrHandle_args:
2631
class createUser_args:
1698
  """
2632
  """
1699
  Attributes:
2633
  Attributes:
1700
   - emailorhandle
-
 
1701
   - isEmail
2634
   - user
1702
  """
2635
  """
1703
 
2636
 
1704
  thrift_spec = (
2637
  thrift_spec = (
1705
    None, # 0
2638
    None, # 0
1706
    (1, TType.STRING, 'emailorhandle', None, None, ), # 1
2639
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
1707
    (2, TType.BOOL, 'isEmail', None, None, ), # 2
-
 
1708
  )
2640
  )
1709
 
2641
 
1710
  def __init__(self, emailorhandle=None, isEmail=None,):
2642
  def __init__(self, user=None,):
1711
    self.emailorhandle = emailorhandle
-
 
1712
    self.isEmail = isEmail
2643
    self.user = user
1713
 
2644
 
1714
  def read(self, iprot):
2645
  def read(self, iprot):
1715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1717
      return
2648
      return
Line 1719... Line 2650...
1719
    while True:
2650
    while True:
1720
      (fname, ftype, fid) = iprot.readFieldBegin()
2651
      (fname, ftype, fid) = iprot.readFieldBegin()
1721
      if ftype == TType.STOP:
2652
      if ftype == TType.STOP:
1722
        break
2653
        break
1723
      if fid == 1:
2654
      if fid == 1:
1724
        if ftype == TType.STRING:
2655
        if ftype == TType.STRUCT:
1725
          self.emailorhandle = iprot.readString();
-
 
1726
        else:
-
 
1727
          iprot.skip(ftype)
2656
          self.user = User()
1728
      elif fid == 2:
-
 
1729
        if ftype == TType.BOOL:
-
 
1730
          self.isEmail = iprot.readBool();
2657
          self.user.read(iprot)
1731
        else:
2658
        else:
1732
          iprot.skip(ftype)
2659
          iprot.skip(ftype)
1733
      else:
2660
      else:
1734
        iprot.skip(ftype)
2661
        iprot.skip(ftype)
1735
      iprot.readFieldEnd()
2662
      iprot.readFieldEnd()
Line 1737... Line 2664...
1737
 
2664
 
1738
  def write(self, oprot):
2665
  def write(self, oprot):
1739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1741
      return
2668
      return
1742
    oprot.writeStructBegin('getContextFromEmailOrHandle_args')
2669
    oprot.writeStructBegin('createUser_args')
1743
    if self.emailorhandle != None:
-
 
1744
      oprot.writeFieldBegin('emailorhandle', TType.STRING, 1)
-
 
1745
      oprot.writeString(self.emailorhandle)
-
 
1746
      oprot.writeFieldEnd()
-
 
1747
    if self.isEmail != None:
2670
    if self.user != None:
1748
      oprot.writeFieldBegin('isEmail', TType.BOOL, 2)
2671
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
1749
      oprot.writeBool(self.isEmail)
2672
      self.user.write(oprot)
1750
      oprot.writeFieldEnd()
2673
      oprot.writeFieldEnd()
1751
    oprot.writeFieldStop()
2674
    oprot.writeFieldStop()
1752
    oprot.writeStructEnd()
2675
    oprot.writeStructEnd()
1753
 
2676
 
1754
  def __repr__(self):
2677
  def __repr__(self):
Line 1760... Line 2683...
1760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1761
 
2684
 
1762
  def __ne__(self, other):
2685
  def __ne__(self, other):
1763
    return not (self == other)
2686
    return not (self == other)
1764
 
2687
 
1765
class getContextFromEmailOrHandle_result:
2688
class createUser_result:
1766
  """
2689
  """
1767
  Attributes:
2690
  Attributes:
1768
   - success
2691
   - success
1769
   - ucx
2692
   - ucex
1770
  """
2693
  """
1771
 
2694
 
1772
  thrift_spec = (
2695
  thrift_spec = (
1773
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
2696
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
1774
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2697
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1775
  )
2698
  )
1776
 
2699
 
1777
  def __init__(self, success=None, ucx=None,):
2700
  def __init__(self, success=None, ucex=None,):
1778
    self.success = success
2701
    self.success = success
1779
    self.ucx = ucx
2702
    self.ucex = ucex
1780
 
2703
 
1781
  def read(self, iprot):
2704
  def read(self, iprot):
1782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1784
      return
2707
      return
Line 1787... Line 2710...
1787
      (fname, ftype, fid) = iprot.readFieldBegin()
2710
      (fname, ftype, fid) = iprot.readFieldBegin()
1788
      if ftype == TType.STOP:
2711
      if ftype == TType.STOP:
1789
        break
2712
        break
1790
      if fid == 0:
2713
      if fid == 0:
1791
        if ftype == TType.STRUCT:
2714
        if ftype == TType.STRUCT:
1792
          self.success = UserContext()
2715
          self.success = User()
1793
          self.success.read(iprot)
2716
          self.success.read(iprot)
1794
        else:
2717
        else:
1795
          iprot.skip(ftype)
2718
          iprot.skip(ftype)
1796
      elif fid == 1:
2719
      elif fid == 1:
1797
        if ftype == TType.STRUCT:
2720
        if ftype == TType.STRUCT:
1798
          self.ucx = UserContextException()
2721
          self.ucex = UserContextException()
1799
          self.ucx.read(iprot)
2722
          self.ucex.read(iprot)
1800
        else:
2723
        else:
1801
          iprot.skip(ftype)
2724
          iprot.skip(ftype)
1802
      else:
2725
      else:
1803
        iprot.skip(ftype)
2726
        iprot.skip(ftype)
1804
      iprot.readFieldEnd()
2727
      iprot.readFieldEnd()
Line 1806... Line 2729...
1806
 
2729
 
1807
  def write(self, oprot):
2730
  def write(self, oprot):
1808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1810
      return
2733
      return
1811
    oprot.writeStructBegin('getContextFromEmailOrHandle_result')
2734
    oprot.writeStructBegin('createUser_result')
1812
    if self.success != None:
2735
    if self.success != None:
1813
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2736
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1814
      self.success.write(oprot)
2737
      self.success.write(oprot)
1815
      oprot.writeFieldEnd()
2738
      oprot.writeFieldEnd()
1816
    if self.ucx != None:
2739
    if self.ucex != None:
1817
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2740
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
1818
      self.ucx.write(oprot)
2741
      self.ucex.write(oprot)
1819
      oprot.writeFieldEnd()
2742
      oprot.writeFieldEnd()
1820
    oprot.writeFieldStop()
2743
    oprot.writeFieldStop()
1821
    oprot.writeStructEnd()
2744
    oprot.writeStructEnd()
1822
 
2745
 
1823
  def __repr__(self):
2746
  def __repr__(self):
Line 1829... Line 2752...
1829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1830
 
2753
 
1831
  def __ne__(self, other):
2754
  def __ne__(self, other):
1832
    return not (self == other)
2755
    return not (self == other)
1833
 
2756
 
1834
class getState_args:
2757
class updateUser_args:
1835
  """
2758
  """
1836
  Attributes:
2759
  Attributes:
1837
   - userId
2760
   - user
1838
   - isSessionId
-
 
1839
  """
2761
  """
1840
 
2762
 
1841
  thrift_spec = (
2763
  thrift_spec = (
1842
    None, # 0
2764
    None, # 0
1843
    (1, TType.I64, 'userId', None, None, ), # 1
2765
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
1844
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
-
 
1845
  )
2766
  )
1846
 
2767
 
1847
  def __init__(self, userId=None, isSessionId=None,):
2768
  def __init__(self, user=None,):
1848
    self.userId = userId
2769
    self.user = user
1849
    self.isSessionId = isSessionId
-
 
1850
 
2770
 
1851
  def read(self, iprot):
2771
  def read(self, iprot):
1852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1854
      return
2774
      return
Line 1856... Line 2776...
1856
    while True:
2776
    while True:
1857
      (fname, ftype, fid) = iprot.readFieldBegin()
2777
      (fname, ftype, fid) = iprot.readFieldBegin()
1858
      if ftype == TType.STOP:
2778
      if ftype == TType.STOP:
1859
        break
2779
        break
1860
      if fid == 1:
2780
      if fid == 1:
1861
        if ftype == TType.I64:
2781
        if ftype == TType.STRUCT:
1862
          self.userId = iprot.readI64();
2782
          self.user = User()
1863
        else:
-
 
1864
          iprot.skip(ftype)
-
 
1865
      elif fid == 2:
-
 
1866
        if ftype == TType.BOOL:
-
 
1867
          self.isSessionId = iprot.readBool();
2783
          self.user.read(iprot)
1868
        else:
2784
        else:
1869
          iprot.skip(ftype)
2785
          iprot.skip(ftype)
1870
      else:
2786
      else:
1871
        iprot.skip(ftype)
2787
        iprot.skip(ftype)
1872
      iprot.readFieldEnd()
2788
      iprot.readFieldEnd()
Line 1874... Line 2790...
1874
 
2790
 
1875
  def write(self, oprot):
2791
  def write(self, oprot):
1876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1878
      return
2794
      return
1879
    oprot.writeStructBegin('getState_args')
2795
    oprot.writeStructBegin('updateUser_args')
1880
    if self.userId != None:
2796
    if self.user != None:
1881
      oprot.writeFieldBegin('userId', TType.I64, 1)
2797
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
1882
      oprot.writeI64(self.userId)
-
 
1883
      oprot.writeFieldEnd()
-
 
1884
    if self.isSessionId != None:
2798
      self.user.write(oprot)
1885
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
1886
      oprot.writeBool(self.isSessionId)
-
 
1887
      oprot.writeFieldEnd()
2799
      oprot.writeFieldEnd()
1888
    oprot.writeFieldStop()
2800
    oprot.writeFieldStop()
1889
    oprot.writeStructEnd()
2801
    oprot.writeStructEnd()
1890
 
2802
 
1891
  def __repr__(self):
2803
  def __repr__(self):
Line 1897... Line 2809...
1897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1898
 
2810
 
1899
  def __ne__(self, other):
2811
  def __ne__(self, other):
1900
    return not (self == other)
2812
    return not (self == other)
1901
 
2813
 
1902
class getState_result:
2814
class updateUser_result:
1903
  """
2815
  """
1904
  Attributes:
2816
  Attributes:
1905
   - success
2817
   - success
1906
   - ucx
2818
   - ucex
1907
  """
2819
  """
1908
 
2820
 
1909
  thrift_spec = (
2821
  thrift_spec = (
1910
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
2822
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
1911
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2823
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
1912
  )
2824
  )
1913
 
2825
 
1914
  def __init__(self, success=None, ucx=None,):
2826
  def __init__(self, success=None, ucex=None,):
1915
    self.success = success
2827
    self.success = success
1916
    self.ucx = ucx
2828
    self.ucex = ucex
1917
 
2829
 
1918
  def read(self, iprot):
2830
  def read(self, iprot):
1919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1921
      return
2833
      return
Line 1924... Line 2836...
1924
      (fname, ftype, fid) = iprot.readFieldBegin()
2836
      (fname, ftype, fid) = iprot.readFieldBegin()
1925
      if ftype == TType.STOP:
2837
      if ftype == TType.STOP:
1926
        break
2838
        break
1927
      if fid == 0:
2839
      if fid == 0:
1928
        if ftype == TType.STRUCT:
2840
        if ftype == TType.STRUCT:
1929
          self.success = UserState()
2841
          self.success = User()
1930
          self.success.read(iprot)
2842
          self.success.read(iprot)
1931
        else:
2843
        else:
1932
          iprot.skip(ftype)
2844
          iprot.skip(ftype)
1933
      elif fid == 1:
2845
      elif fid == 1:
1934
        if ftype == TType.STRUCT:
2846
        if ftype == TType.STRUCT:
1935
          self.ucx = UserContextException()
2847
          self.ucex = UserContextException()
1936
          self.ucx.read(iprot)
2848
          self.ucex.read(iprot)
1937
        else:
2849
        else:
1938
          iprot.skip(ftype)
2850
          iprot.skip(ftype)
1939
      else:
2851
      else:
1940
        iprot.skip(ftype)
2852
        iprot.skip(ftype)
1941
      iprot.readFieldEnd()
2853
      iprot.readFieldEnd()
Line 1943... Line 2855...
1943
 
2855
 
1944
  def write(self, oprot):
2856
  def write(self, oprot):
1945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1947
      return
2859
      return
1948
    oprot.writeStructBegin('getState_result')
2860
    oprot.writeStructBegin('updateUser_result')
1949
    if self.success != None:
2861
    if self.success != None:
1950
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2862
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1951
      self.success.write(oprot)
2863
      self.success.write(oprot)
1952
      oprot.writeFieldEnd()
2864
      oprot.writeFieldEnd()
1953
    if self.ucx != None:
2865
    if self.ucex != None:
1954
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2866
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
1955
      self.ucx.write(oprot)
2867
      self.ucex.write(oprot)
1956
      oprot.writeFieldEnd()
2868
      oprot.writeFieldEnd()
1957
    oprot.writeFieldStop()
2869
    oprot.writeFieldStop()
1958
    oprot.writeStructEnd()
2870
    oprot.writeStructEnd()
1959
 
2871
 
1960
  def __repr__(self):
2872
  def __repr__(self):
Line 1966... Line 2878...
1966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1967
 
2879
 
1968
  def __ne__(self, other):
2880
  def __ne__(self, other):
1969
    return not (self == other)
2881
    return not (self == other)
1970
 
2882
 
1971
class getPrimaryInfo_args:
2883
class deleteUser_args:
1972
  """
2884
  """
1973
  Attributes:
2885
  Attributes:
1974
   - userId
2886
   - userId
1975
   - isSessionId
-
 
1976
  """
2887
  """
1977
 
2888
 
1978
  thrift_spec = (
2889
  thrift_spec = (
1979
    None, # 0
2890
    None, # 0
1980
    (1, TType.I64, 'userId', None, None, ), # 1
2891
    (1, TType.I64, 'userId', None, None, ), # 1
1981
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
-
 
1982
  )
2892
  )
1983
 
2893
 
1984
  def __init__(self, userId=None, isSessionId=None,):
2894
  def __init__(self, userId=None,):
1985
    self.userId = userId
2895
    self.userId = userId
1986
    self.isSessionId = isSessionId
-
 
1987
 
2896
 
1988
  def read(self, iprot):
2897
  def read(self, iprot):
1989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1991
      return
2900
      return
Line 1997... Line 2906...
1997
      if fid == 1:
2906
      if fid == 1:
1998
        if ftype == TType.I64:
2907
        if ftype == TType.I64:
1999
          self.userId = iprot.readI64();
2908
          self.userId = iprot.readI64();
2000
        else:
2909
        else:
2001
          iprot.skip(ftype)
2910
          iprot.skip(ftype)
2002
      elif fid == 2:
-
 
2003
        if ftype == TType.BOOL:
-
 
2004
          self.isSessionId = iprot.readBool();
-
 
2005
        else:
-
 
2006
          iprot.skip(ftype)
-
 
2007
      else:
2911
      else:
2008
        iprot.skip(ftype)
2912
        iprot.skip(ftype)
2009
      iprot.readFieldEnd()
2913
      iprot.readFieldEnd()
2010
    iprot.readStructEnd()
2914
    iprot.readStructEnd()
2011
 
2915
 
2012
  def write(self, oprot):
2916
  def write(self, oprot):
2013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2015
      return
2919
      return
2016
    oprot.writeStructBegin('getPrimaryInfo_args')
2920
    oprot.writeStructBegin('deleteUser_args')
2017
    if self.userId != None:
2921
    if self.userId != None:
2018
      oprot.writeFieldBegin('userId', TType.I64, 1)
2922
      oprot.writeFieldBegin('userId', TType.I64, 1)
2019
      oprot.writeI64(self.userId)
2923
      oprot.writeI64(self.userId)
2020
      oprot.writeFieldEnd()
2924
      oprot.writeFieldEnd()
2021
    if self.isSessionId != None:
-
 
2022
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
2023
      oprot.writeBool(self.isSessionId)
-
 
2024
      oprot.writeFieldEnd()
-
 
2025
    oprot.writeFieldStop()
2925
    oprot.writeFieldStop()
2026
    oprot.writeStructEnd()
2926
    oprot.writeStructEnd()
2027
 
2927
 
2028
  def __repr__(self):
2928
  def __repr__(self):
2029
    L = ['%s=%r' % (key, value)
2929
    L = ['%s=%r' % (key, value)
Line 2034... Line 2934...
2034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2035
 
2935
 
2036
  def __ne__(self, other):
2936
  def __ne__(self, other):
2037
    return not (self == other)
2937
    return not (self == other)
2038
 
2938
 
2039
class getPrimaryInfo_result:
2939
class deleteUser_result:
2040
  """
2940
  """
2041
  Attributes:
2941
  Attributes:
2042
   - success
2942
   - success
2043
   - ucx
2943
   - ucex
2044
  """
2944
  """
2045
 
2945
 
2046
  thrift_spec = (
2946
  thrift_spec = (
2047
    (0, TType.STRUCT, 'success', (UserPrimaryInfo, UserPrimaryInfo.thrift_spec), None, ), # 0
2947
    (0, TType.BOOL, 'success', None, None, ), # 0
2048
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2948
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2049
  )
2949
  )
2050
 
2950
 
2051
  def __init__(self, success=None, ucx=None,):
2951
  def __init__(self, success=None, ucex=None,):
2052
    self.success = success
2952
    self.success = success
2053
    self.ucx = ucx
2953
    self.ucex = ucex
2054
 
2954
 
2055
  def read(self, iprot):
2955
  def read(self, iprot):
2056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2058
      return
2958
      return
Line 2060... Line 2960...
2060
    while True:
2960
    while True:
2061
      (fname, ftype, fid) = iprot.readFieldBegin()
2961
      (fname, ftype, fid) = iprot.readFieldBegin()
2062
      if ftype == TType.STOP:
2962
      if ftype == TType.STOP:
2063
        break
2963
        break
2064
      if fid == 0:
2964
      if fid == 0:
2065
        if ftype == TType.STRUCT:
2965
        if ftype == TType.BOOL:
2066
          self.success = UserPrimaryInfo()
2966
          self.success = iprot.readBool();
2067
          self.success.read(iprot)
-
 
2068
        else:
2967
        else:
2069
          iprot.skip(ftype)
2968
          iprot.skip(ftype)
2070
      elif fid == 1:
2969
      elif fid == 1:
2071
        if ftype == TType.STRUCT:
2970
        if ftype == TType.STRUCT:
2072
          self.ucx = UserContextException()
2971
          self.ucex = UserContextException()
2073
          self.ucx.read(iprot)
2972
          self.ucex.read(iprot)
2074
        else:
2973
        else:
2075
          iprot.skip(ftype)
2974
          iprot.skip(ftype)
2076
      else:
2975
      else:
2077
        iprot.skip(ftype)
2976
        iprot.skip(ftype)
2078
      iprot.readFieldEnd()
2977
      iprot.readFieldEnd()
Line 2080... Line 2979...
2080
 
2979
 
2081
  def write(self, oprot):
2980
  def write(self, oprot):
2082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2084
      return
2983
      return
2085
    oprot.writeStructBegin('getPrimaryInfo_result')
2984
    oprot.writeStructBegin('deleteUser_result')
2086
    if self.success != None:
2985
    if self.success != None:
2087
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2986
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2088
      self.success.write(oprot)
2987
      oprot.writeBool(self.success)
2089
      oprot.writeFieldEnd()
2988
      oprot.writeFieldEnd()
2090
    if self.ucx != None:
2989
    if self.ucex != None:
2091
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2990
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
2092
      self.ucx.write(oprot)
2991
      self.ucex.write(oprot)
2093
      oprot.writeFieldEnd()
2992
      oprot.writeFieldEnd()
2094
    oprot.writeFieldStop()
2993
    oprot.writeFieldStop()
2095
    oprot.writeStructEnd()
2994
    oprot.writeStructEnd()
2096
 
2995
 
2097
  def __repr__(self):
2996
  def __repr__(self):
Line 2103... Line 3002...
2103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2104
 
3003
 
2105
  def __ne__(self, other):
3004
  def __ne__(self, other):
2106
    return not (self == other)
3005
    return not (self == other)
2107
 
3006
 
2108
class getInternalInfo_args:
3007
class getUserState_args:
2109
  """
3008
  """
2110
  Attributes:
3009
  Attributes:
2111
   - userId
3010
   - userId
2112
   - isSessionId
-
 
2113
  """
3011
  """
2114
 
3012
 
2115
  thrift_spec = (
3013
  thrift_spec = (
2116
    None, # 0
3014
    None, # 0
2117
    (1, TType.I64, 'userId', None, None, ), # 1
3015
    (1, TType.I64, 'userId', None, None, ), # 1
2118
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
-
 
2119
  )
3016
  )
2120
 
3017
 
2121
  def __init__(self, userId=None, isSessionId=None,):
3018
  def __init__(self, userId=None,):
2122
    self.userId = userId
3019
    self.userId = userId
2123
    self.isSessionId = isSessionId
-
 
2124
 
3020
 
2125
  def read(self, iprot):
3021
  def read(self, iprot):
2126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2128
      return
3024
      return
Line 2134... Line 3030...
2134
      if fid == 1:
3030
      if fid == 1:
2135
        if ftype == TType.I64:
3031
        if ftype == TType.I64:
2136
          self.userId = iprot.readI64();
3032
          self.userId = iprot.readI64();
2137
        else:
3033
        else:
2138
          iprot.skip(ftype)
3034
          iprot.skip(ftype)
2139
      elif fid == 2:
-
 
2140
        if ftype == TType.BOOL:
-
 
2141
          self.isSessionId = iprot.readBool();
-
 
2142
        else:
-
 
2143
          iprot.skip(ftype)
-
 
2144
      else:
3035
      else:
2145
        iprot.skip(ftype)
3036
        iprot.skip(ftype)
2146
      iprot.readFieldEnd()
3037
      iprot.readFieldEnd()
2147
    iprot.readStructEnd()
3038
    iprot.readStructEnd()
2148
 
3039
 
2149
  def write(self, oprot):
3040
  def write(self, oprot):
2150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2152
      return
3043
      return
2153
    oprot.writeStructBegin('getInternalInfo_args')
3044
    oprot.writeStructBegin('getUserState_args')
2154
    if self.userId != None:
3045
    if self.userId != None:
2155
      oprot.writeFieldBegin('userId', TType.I64, 1)
3046
      oprot.writeFieldBegin('userId', TType.I64, 1)
2156
      oprot.writeI64(self.userId)
3047
      oprot.writeI64(self.userId)
2157
      oprot.writeFieldEnd()
3048
      oprot.writeFieldEnd()
2158
    if self.isSessionId != None:
-
 
2159
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
-
 
2160
      oprot.writeBool(self.isSessionId)
-
 
2161
      oprot.writeFieldEnd()
-
 
2162
    oprot.writeFieldStop()
3049
    oprot.writeFieldStop()
2163
    oprot.writeStructEnd()
3050
    oprot.writeStructEnd()
2164
 
3051
 
2165
  def __repr__(self):
3052
  def __repr__(self):
2166
    L = ['%s=%r' % (key, value)
3053
    L = ['%s=%r' % (key, value)
Line 2171... Line 3058...
2171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2172
 
3059
 
2173
  def __ne__(self, other):
3060
  def __ne__(self, other):
2174
    return not (self == other)
3061
    return not (self == other)
2175
 
3062
 
2176
class getInternalInfo_result:
3063
class getUserState_result:
2177
  """
3064
  """
2178
  Attributes:
3065
  Attributes:
2179
   - success
3066
   - success
2180
   - ucx
3067
   - ucex
2181
  """
3068
  """
2182
 
3069
 
2183
  thrift_spec = (
3070
  thrift_spec = (
2184
    (0, TType.STRUCT, 'success', (UserInternalInfo, UserInternalInfo.thrift_spec), None, ), # 0
3071
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
2185
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3072
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2186
  )
3073
  )
2187
 
3074
 
2188
  def __init__(self, success=None, ucx=None,):
3075
  def __init__(self, success=None, ucex=None,):
2189
    self.success = success
3076
    self.success = success
2190
    self.ucx = ucx
3077
    self.ucex = ucex
2191
 
3078
 
2192
  def read(self, iprot):
3079
  def read(self, iprot):
2193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2195
      return
3082
      return
Line 2198... Line 3085...
2198
      (fname, ftype, fid) = iprot.readFieldBegin()
3085
      (fname, ftype, fid) = iprot.readFieldBegin()
2199
      if ftype == TType.STOP:
3086
      if ftype == TType.STOP:
2200
        break
3087
        break
2201
      if fid == 0:
3088
      if fid == 0:
2202
        if ftype == TType.STRUCT:
3089
        if ftype == TType.STRUCT:
2203
          self.success = UserInternalInfo()
3090
          self.success = UserState()
2204
          self.success.read(iprot)
3091
          self.success.read(iprot)
2205
        else:
3092
        else:
2206
          iprot.skip(ftype)
3093
          iprot.skip(ftype)
2207
      elif fid == 1:
3094
      elif fid == 1:
2208
        if ftype == TType.STRUCT:
3095
        if ftype == TType.STRUCT:
2209
          self.ucx = UserContextException()
3096
          self.ucex = UserContextException()
2210
          self.ucx.read(iprot)
3097
          self.ucex.read(iprot)
2211
        else:
3098
        else:
2212
          iprot.skip(ftype)
3099
          iprot.skip(ftype)
2213
      else:
3100
      else:
2214
        iprot.skip(ftype)
3101
        iprot.skip(ftype)
2215
      iprot.readFieldEnd()
3102
      iprot.readFieldEnd()
Line 2217... Line 3104...
2217
 
3104
 
2218
  def write(self, oprot):
3105
  def write(self, oprot):
2219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2221
      return
3108
      return
2222
    oprot.writeStructBegin('getInternalInfo_result')
3109
    oprot.writeStructBegin('getUserState_result')
2223
    if self.success != None:
3110
    if self.success != None:
2224
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3111
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2225
      self.success.write(oprot)
3112
      self.success.write(oprot)
2226
      oprot.writeFieldEnd()
3113
      oprot.writeFieldEnd()
2227
    if self.ucx != None:
3114
    if self.ucex != None:
2228
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3115
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
2229
      self.ucx.write(oprot)
3116
      self.ucex.write(oprot)
2230
      oprot.writeFieldEnd()
3117
      oprot.writeFieldEnd()
2231
    oprot.writeFieldStop()
3118
    oprot.writeFieldStop()
2232
    oprot.writeStructEnd()
3119
    oprot.writeStructEnd()
2233
 
3120
 
2234
  def __repr__(self):
3121
  def __repr__(self):
Line 2240... Line 3127...
2240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2241
 
3128
 
2242
  def __ne__(self, other):
3129
  def __ne__(self, other):
2243
    return not (self == other)
3130
    return not (self == other)
2244
 
3131
 
2245
class getContext_args:
3132
class authenticateUser_args:
2246
  """
3133
  """
2247
  Attributes:
3134
  Attributes:
2248
   - email
3135
   - email
2249
   - password
3136
   - password
2250
  """
3137
  """
Line 2285... Line 3172...
2285
 
3172
 
2286
  def write(self, oprot):
3173
  def write(self, oprot):
2287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2289
      return
3176
      return
2290
    oprot.writeStructBegin('getContext_args')
3177
    oprot.writeStructBegin('authenticateUser_args')
2291
    if self.email != None:
3178
    if self.email != None:
2292
      oprot.writeFieldBegin('email', TType.STRING, 1)
3179
      oprot.writeFieldBegin('email', TType.STRING, 1)
2293
      oprot.writeString(self.email)
3180
      oprot.writeString(self.email)
2294
      oprot.writeFieldEnd()
3181
      oprot.writeFieldEnd()
2295
    if self.password != None:
3182
    if self.password != None:
Line 2308... Line 3195...
2308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2309
 
3196
 
2310
  def __ne__(self, other):
3197
  def __ne__(self, other):
2311
    return not (self == other)
3198
    return not (self == other)
2312
 
3199
 
2313
class getContext_result:
3200
class authenticateUser_result:
2314
  """
3201
  """
2315
  Attributes:
3202
  Attributes:
2316
   - success
3203
   - success
2317
   - ax
3204
   - auex
2318
  """
3205
  """
2319
 
3206
 
2320
  thrift_spec = (
3207
  thrift_spec = (
2321
    (0, TType.STRUCT, 'success', (UserContext, UserContext.thrift_spec), None, ), # 0
3208
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
2322
    (1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
3209
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
2323
  )
3210
  )
2324
 
3211
 
2325
  def __init__(self, success=None, ax=None,):
3212
  def __init__(self, success=None, auex=None,):
2326
    self.success = success
3213
    self.success = success
2327
    self.ax = ax
3214
    self.auex = auex
2328
 
3215
 
2329
  def read(self, iprot):
3216
  def read(self, iprot):
2330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2332
      return
3219
      return
Line 2335... Line 3222...
2335
      (fname, ftype, fid) = iprot.readFieldBegin()
3222
      (fname, ftype, fid) = iprot.readFieldBegin()
2336
      if ftype == TType.STOP:
3223
      if ftype == TType.STOP:
2337
        break
3224
        break
2338
      if fid == 0:
3225
      if fid == 0:
2339
        if ftype == TType.STRUCT:
3226
        if ftype == TType.STRUCT:
2340
          self.success = UserContext()
3227
          self.success = User()
2341
          self.success.read(iprot)
3228
          self.success.read(iprot)
2342
        else:
3229
        else:
2343
          iprot.skip(ftype)
3230
          iprot.skip(ftype)
2344
      elif fid == 1:
3231
      elif fid == 1:
2345
        if ftype == TType.STRUCT:
3232
        if ftype == TType.STRUCT:
2346
          self.ax = AuthenticationException()
3233
          self.auex = AuthenticationException()
2347
          self.ax.read(iprot)
3234
          self.auex.read(iprot)
2348
        else:
3235
        else:
2349
          iprot.skip(ftype)
3236
          iprot.skip(ftype)
2350
      else:
3237
      else:
2351
        iprot.skip(ftype)
3238
        iprot.skip(ftype)
2352
      iprot.readFieldEnd()
3239
      iprot.readFieldEnd()
Line 2354... Line 3241...
2354
 
3241
 
2355
  def write(self, oprot):
3242
  def write(self, oprot):
2356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2358
      return
3245
      return
2359
    oprot.writeStructBegin('getContext_result')
3246
    oprot.writeStructBegin('authenticateUser_result')
2360
    if self.success != None:
3247
    if self.success != None:
2361
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3248
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2362
      self.success.write(oprot)
3249
      self.success.write(oprot)
2363
      oprot.writeFieldEnd()
3250
      oprot.writeFieldEnd()
2364
    if self.ax != None:
3251
    if self.auex != None:
2365
      oprot.writeFieldBegin('ax', TType.STRUCT, 1)
3252
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
2366
      self.ax.write(oprot)
3253
      self.auex.write(oprot)
2367
      oprot.writeFieldEnd()
3254
      oprot.writeFieldEnd()
2368
    oprot.writeFieldStop()
3255
    oprot.writeFieldStop()
2369
    oprot.writeStructEnd()
3256
    oprot.writeStructEnd()
2370
 
3257
 
2371
  def __repr__(self):
3258
  def __repr__(self):
Line 2377... Line 3264...
2377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2378
 
3265
 
2379
  def __ne__(self, other):
3266
  def __ne__(self, other):
2380
    return not (self == other)
3267
    return not (self == other)
2381
 
3268
 
2382
class authenticateUser_args:
3269
class userExists_args:
2383
  """
3270
  """
2384
  Attributes:
3271
  Attributes:
2385
   - handle
-
 
2386
   - password
-
 
2387
   - isEmail
3272
   - email
2388
  """
3273
  """
2389
 
3274
 
2390
  thrift_spec = (
3275
  thrift_spec = (
2391
    None, # 0
3276
    None, # 0
2392
    (1, TType.STRING, 'handle', None, None, ), # 1
3277
    (1, TType.STRING, 'email', None, None, ), # 1
2393
    (2, TType.STRING, 'password', None, None, ), # 2
-
 
2394
    (3, TType.BOOL, 'isEmail', None, None, ), # 3
-
 
2395
  )
3278
  )
2396
 
3279
 
2397
  def __init__(self, handle=None, password=None, isEmail=None,):
3280
  def __init__(self, email=None,):
2398
    self.handle = handle
-
 
2399
    self.password = password
-
 
2400
    self.isEmail = isEmail
3281
    self.email = email
2401
 
3282
 
2402
  def read(self, iprot):
3283
  def read(self, iprot):
2403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2405
      return
3286
      return
Line 2408... Line 3289...
2408
      (fname, ftype, fid) = iprot.readFieldBegin()
3289
      (fname, ftype, fid) = iprot.readFieldBegin()
2409
      if ftype == TType.STOP:
3290
      if ftype == TType.STOP:
2410
        break
3291
        break
2411
      if fid == 1:
3292
      if fid == 1:
2412
        if ftype == TType.STRING:
3293
        if ftype == TType.STRING:
2413
          self.handle = iprot.readString();
3294
          self.email = iprot.readString();
-
 
3295
        else:
-
 
3296
          iprot.skip(ftype)
-
 
3297
      else:
-
 
3298
        iprot.skip(ftype)
-
 
3299
      iprot.readFieldEnd()
-
 
3300
    iprot.readStructEnd()
-
 
3301
 
-
 
3302
  def write(self, oprot):
-
 
3303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3305
      return
-
 
3306
    oprot.writeStructBegin('userExists_args')
-
 
3307
    if self.email != None:
-
 
3308
      oprot.writeFieldBegin('email', TType.STRING, 1)
-
 
3309
      oprot.writeString(self.email)
-
 
3310
      oprot.writeFieldEnd()
-
 
3311
    oprot.writeFieldStop()
-
 
3312
    oprot.writeStructEnd()
-
 
3313
 
-
 
3314
  def __repr__(self):
-
 
3315
    L = ['%s=%r' % (key, value)
-
 
3316
      for key, value in self.__dict__.iteritems()]
-
 
3317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3318
 
-
 
3319
  def __eq__(self, other):
-
 
3320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3321
 
-
 
3322
  def __ne__(self, other):
-
 
3323
    return not (self == other)
-
 
3324
 
-
 
3325
class userExists_result:
-
 
3326
  """
-
 
3327
  Attributes:
-
 
3328
   - success
-
 
3329
   - ucx
-
 
3330
  """
-
 
3331
 
-
 
3332
  thrift_spec = (
-
 
3333
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
3334
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
-
 
3335
  )
-
 
3336
 
-
 
3337
  def __init__(self, success=None, ucx=None,):
-
 
3338
    self.success = success
-
 
3339
    self.ucx = ucx
-
 
3340
 
-
 
3341
  def read(self, iprot):
-
 
3342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3344
      return
-
 
3345
    iprot.readStructBegin()
-
 
3346
    while True:
-
 
3347
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3348
      if ftype == TType.STOP:
-
 
3349
        break
-
 
3350
      if fid == 0:
-
 
3351
        if ftype == TType.BOOL:
-
 
3352
          self.success = iprot.readBool();
-
 
3353
        else:
-
 
3354
          iprot.skip(ftype)
-
 
3355
      elif fid == 1:
-
 
3356
        if ftype == TType.STRUCT:
-
 
3357
          self.ucx = UserContextException()
-
 
3358
          self.ucx.read(iprot)
-
 
3359
        else:
-
 
3360
          iprot.skip(ftype)
-
 
3361
      else:
-
 
3362
        iprot.skip(ftype)
-
 
3363
      iprot.readFieldEnd()
-
 
3364
    iprot.readStructEnd()
-
 
3365
 
-
 
3366
  def write(self, oprot):
-
 
3367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3369
      return
-
 
3370
    oprot.writeStructBegin('userExists_result')
-
 
3371
    if self.success != None:
-
 
3372
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
3373
      oprot.writeBool(self.success)
-
 
3374
      oprot.writeFieldEnd()
-
 
3375
    if self.ucx != None:
-
 
3376
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
-
 
3377
      self.ucx.write(oprot)
-
 
3378
      oprot.writeFieldEnd()
-
 
3379
    oprot.writeFieldStop()
-
 
3380
    oprot.writeStructEnd()
-
 
3381
 
-
 
3382
  def __repr__(self):
-
 
3383
    L = ['%s=%r' % (key, value)
-
 
3384
      for key, value in self.__dict__.iteritems()]
-
 
3385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3386
 
-
 
3387
  def __eq__(self, other):
-
 
3388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3389
 
-
 
3390
  def __ne__(self, other):
-
 
3391
    return not (self == other)
-
 
3392
 
-
 
3393
class addAddressForUser_args:
-
 
3394
  """
-
 
3395
  Attributes:
-
 
3396
   - userId
-
 
3397
   - address
-
 
3398
   - timestamp
-
 
3399
   - setDefault
-
 
3400
  """
-
 
3401
 
-
 
3402
  thrift_spec = (
-
 
3403
    None, # 0
-
 
3404
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
3405
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
-
 
3406
    (3, TType.I64, 'timestamp', None, None, ), # 3
-
 
3407
    (4, TType.BOOL, 'setDefault', None, None, ), # 4
-
 
3408
  )
-
 
3409
 
-
 
3410
  def __init__(self, userId=None, address=None, timestamp=None, setDefault=None,):
-
 
3411
    self.userId = userId
-
 
3412
    self.address = address
-
 
3413
    self.timestamp = timestamp
-
 
3414
    self.setDefault = setDefault
-
 
3415
 
-
 
3416
  def read(self, iprot):
-
 
3417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3419
      return
-
 
3420
    iprot.readStructBegin()
-
 
3421
    while True:
-
 
3422
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3423
      if ftype == TType.STOP:
-
 
3424
        break
-
 
3425
      if fid == 1:
-
 
3426
        if ftype == TType.I64:
-
 
3427
          self.userId = iprot.readI64();
2414
        else:
3428
        else:
2415
          iprot.skip(ftype)
3429
          iprot.skip(ftype)
2416
      elif fid == 2:
3430
      elif fid == 2:
2417
        if ftype == TType.STRING:
3431
        if ftype == TType.STRUCT:
-
 
3432
          self.address = Address()
2418
          self.password = iprot.readString();
3433
          self.address.read(iprot)
2419
        else:
3434
        else:
2420
          iprot.skip(ftype)
3435
          iprot.skip(ftype)
2421
      elif fid == 3:
3436
      elif fid == 3:
-
 
3437
        if ftype == TType.I64:
-
 
3438
          self.timestamp = iprot.readI64();
-
 
3439
        else:
-
 
3440
          iprot.skip(ftype)
-
 
3441
      elif fid == 4:
2422
        if ftype == TType.BOOL:
3442
        if ftype == TType.BOOL:
2423
          self.isEmail = iprot.readBool();
3443
          self.setDefault = iprot.readBool();
2424
        else:
3444
        else:
2425
          iprot.skip(ftype)
3445
          iprot.skip(ftype)
2426
      else:
3446
      else:
2427
        iprot.skip(ftype)
3447
        iprot.skip(ftype)
2428
      iprot.readFieldEnd()
3448
      iprot.readFieldEnd()
Line 2430... Line 3450...
2430
 
3450
 
2431
  def write(self, oprot):
3451
  def write(self, oprot):
2432
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2433
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2434
      return
3454
      return
2435
    oprot.writeStructBegin('authenticateUser_args')
3455
    oprot.writeStructBegin('addAddressForUser_args')
2436
    if self.handle != None:
3456
    if self.userId != None:
2437
      oprot.writeFieldBegin('handle', TType.STRING, 1)
3457
      oprot.writeFieldBegin('userId', TType.I64, 1)
2438
      oprot.writeString(self.handle)
3458
      oprot.writeI64(self.userId)
2439
      oprot.writeFieldEnd()
3459
      oprot.writeFieldEnd()
2440
    if self.password != None:
3460
    if self.address != None:
2441
      oprot.writeFieldBegin('password', TType.STRING, 2)
3461
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
2442
      oprot.writeString(self.password)
3462
      self.address.write(oprot)
2443
      oprot.writeFieldEnd()
3463
      oprot.writeFieldEnd()
2444
    if self.isEmail != None:
3464
    if self.timestamp != None:
-
 
3465
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
-
 
3466
      oprot.writeI64(self.timestamp)
-
 
3467
      oprot.writeFieldEnd()
-
 
3468
    if self.setDefault != None:
2445
      oprot.writeFieldBegin('isEmail', TType.BOOL, 3)
3469
      oprot.writeFieldBegin('setDefault', TType.BOOL, 4)
2446
      oprot.writeBool(self.isEmail)
3470
      oprot.writeBool(self.setDefault)
2447
      oprot.writeFieldEnd()
3471
      oprot.writeFieldEnd()
2448
    oprot.writeFieldStop()
3472
    oprot.writeFieldStop()
2449
    oprot.writeStructEnd()
3473
    oprot.writeStructEnd()
2450
 
3474
 
2451
  def __repr__(self):
3475
  def __repr__(self):
Line 2457... Line 3481...
2457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2458
 
3482
 
2459
  def __ne__(self, other):
3483
  def __ne__(self, other):
2460
    return not (self == other)
3484
    return not (self == other)
2461
 
3485
 
2462
class authenticateUser_result:
3486
class addAddressForUser_result:
2463
  """
3487
  """
2464
  Attributes:
3488
  Attributes:
2465
   - success
3489
   - success
2466
   - ax
3490
   - ucx
2467
  """
3491
  """
2468
 
3492
 
2469
  thrift_spec = (
3493
  thrift_spec = (
2470
    (0, TType.BOOL, 'success', None, None, ), # 0
3494
    (0, TType.BOOL, 'success', None, None, ), # 0
2471
    (1, TType.STRUCT, 'ax', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
3495
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
2472
  )
3496
  )
2473
 
3497
 
2474
  def __init__(self, success=None, ax=None,):
3498
  def __init__(self, success=None, ucx=None,):
2475
    self.success = success
3499
    self.success = success
2476
    self.ax = ax
3500
    self.ucx = ucx
2477
 
3501
 
2478
  def read(self, iprot):
3502
  def read(self, iprot):
2479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2481
      return
3505
      return
Line 2489... Line 3513...
2489
          self.success = iprot.readBool();
3513
          self.success = iprot.readBool();
2490
        else:
3514
        else:
2491
          iprot.skip(ftype)
3515
          iprot.skip(ftype)
2492
      elif fid == 1:
3516
      elif fid == 1:
2493
        if ftype == TType.STRUCT:
3517
        if ftype == TType.STRUCT:
2494
          self.ax = AuthenticationException()
3518
          self.ucx = UserContextException()
2495
          self.ax.read(iprot)
3519
          self.ucx.read(iprot)
2496
        else:
3520
        else:
2497
          iprot.skip(ftype)
3521
          iprot.skip(ftype)
2498
      else:
3522
      else:
2499
        iprot.skip(ftype)
3523
        iprot.skip(ftype)
2500
      iprot.readFieldEnd()
3524
      iprot.readFieldEnd()
Line 2502... Line 3526...
2502
 
3526
 
2503
  def write(self, oprot):
3527
  def write(self, oprot):
2504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2506
      return
3530
      return
2507
    oprot.writeStructBegin('authenticateUser_result')
3531
    oprot.writeStructBegin('addAddressForUser_result')
2508
    if self.success != None:
3532
    if self.success != None:
2509
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3533
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2510
      oprot.writeBool(self.success)
3534
      oprot.writeBool(self.success)
2511
      oprot.writeFieldEnd()
3535
      oprot.writeFieldEnd()
2512
    if self.ax != None:
3536
    if self.ucx != None:
2513
      oprot.writeFieldBegin('ax', TType.STRUCT, 1)
3537
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
2514
      self.ax.write(oprot)
3538
      self.ucx.write(oprot)
2515
      oprot.writeFieldEnd()
3539
      oprot.writeFieldEnd()
2516
    oprot.writeFieldStop()
3540
    oprot.writeFieldStop()
2517
    oprot.writeStructEnd()
3541
    oprot.writeStructEnd()
2518
 
3542
 
2519
  def __repr__(self):
3543
  def __repr__(self):
Line 2525... Line 3549...
2525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2526
 
3550
 
2527
  def __ne__(self, other):
3551
  def __ne__(self, other):
2528
    return not (self == other)
3552
    return not (self == other)
2529
 
3553
 
2530
class userExists_args:
3554
class removeAddressForUser_args:
2531
  """
3555
  """
2532
  Attributes:
3556
  Attributes:
2533
   - email
3557
   - userid
-
 
3558
   - addressId
2534
  """
3559
  """
2535
 
3560
 
2536
  thrift_spec = (
3561
  thrift_spec = (
2537
    None, # 0
3562
    None, # 0
2538
    (1, TType.STRING, 'email', None, None, ), # 1
3563
    (1, TType.I64, 'userid', None, None, ), # 1
-
 
3564
    (2, TType.I64, 'addressId', None, None, ), # 2
2539
  )
3565
  )
2540
 
3566
 
2541
  def __init__(self, email=None,):
3567
  def __init__(self, userid=None, addressId=None,):
2542
    self.email = email
3568
    self.userid = userid
-
 
3569
    self.addressId = addressId
2543
 
3570
 
2544
  def read(self, iprot):
3571
  def read(self, iprot):
2545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2547
      return
3574
      return
Line 2549... Line 3576...
2549
    while True:
3576
    while True:
2550
      (fname, ftype, fid) = iprot.readFieldBegin()
3577
      (fname, ftype, fid) = iprot.readFieldBegin()
2551
      if ftype == TType.STOP:
3578
      if ftype == TType.STOP:
2552
        break
3579
        break
2553
      if fid == 1:
3580
      if fid == 1:
2554
        if ftype == TType.STRING:
3581
        if ftype == TType.I64:
2555
          self.email = iprot.readString();
3582
          self.userid = iprot.readI64();
-
 
3583
        else:
-
 
3584
          iprot.skip(ftype)
-
 
3585
      elif fid == 2:
-
 
3586
        if ftype == TType.I64:
-
 
3587
          self.addressId = iprot.readI64();
2556
        else:
3588
        else:
2557
          iprot.skip(ftype)
3589
          iprot.skip(ftype)
2558
      else:
3590
      else:
2559
        iprot.skip(ftype)
3591
        iprot.skip(ftype)
2560
      iprot.readFieldEnd()
3592
      iprot.readFieldEnd()
Line 2562... Line 3594...
2562
 
3594
 
2563
  def write(self, oprot):
3595
  def write(self, oprot):
2564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2566
      return
3598
      return
2567
    oprot.writeStructBegin('userExists_args')
3599
    oprot.writeStructBegin('removeAddressForUser_args')
2568
    if self.email != None:
3600
    if self.userid != None:
2569
      oprot.writeFieldBegin('email', TType.STRING, 1)
3601
      oprot.writeFieldBegin('userid', TType.I64, 1)
2570
      oprot.writeString(self.email)
3602
      oprot.writeI64(self.userid)
-
 
3603
      oprot.writeFieldEnd()
-
 
3604
    if self.addressId != None:
-
 
3605
      oprot.writeFieldBegin('addressId', TType.I64, 2)
-
 
3606
      oprot.writeI64(self.addressId)
2571
      oprot.writeFieldEnd()
3607
      oprot.writeFieldEnd()
2572
    oprot.writeFieldStop()
3608
    oprot.writeFieldStop()
2573
    oprot.writeStructEnd()
3609
    oprot.writeStructEnd()
2574
 
3610
 
2575
  def __repr__(self):
3611
  def __repr__(self):
Line 2581... Line 3617...
2581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2582
 
3618
 
2583
  def __ne__(self, other):
3619
  def __ne__(self, other):
2584
    return not (self == other)
3620
    return not (self == other)
2585
 
3621
 
2586
class userExists_result:
3622
class removeAddressForUser_result:
2587
  """
3623
  """
2588
  Attributes:
3624
  Attributes:
2589
   - success
3625
   - success
2590
   - ucx
3626
   - ucx
2591
  """
3627
  """
Line 2626... Line 3662...
2626
 
3662
 
2627
  def write(self, oprot):
3663
  def write(self, oprot):
2628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2630
      return
3666
      return
2631
    oprot.writeStructBegin('userExists_result')
3667
    oprot.writeStructBegin('removeAddressForUser_result')
2632
    if self.success != None:
3668
    if self.success != None:
2633
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3669
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2634
      oprot.writeBool(self.success)
3670
      oprot.writeBool(self.success)
2635
      oprot.writeFieldEnd()
3671
      oprot.writeFieldEnd()
2636
    if self.ucx != None:
3672
    if self.ucx != None:
Line 2649... Line 3685...
2649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2650
 
3686
 
2651
  def __ne__(self, other):
3687
  def __ne__(self, other):
2652
    return not (self == other)
3688
    return not (self == other)
2653
 
3689
 
2654
class addIpAdressForUser_args:
3690
class setUserAsLoggedIn_args:
2655
  """
3691
  """
2656
  Attributes:
3692
  Attributes:
2657
   - ip
-
 
2658
   - timestamp
-
 
2659
   - userId
3693
   - userId
-
 
3694
   - timestamp
2660
  """
3695
  """
2661
 
3696
 
2662
  thrift_spec = (
3697
  thrift_spec = (
2663
    None, # 0
3698
    None, # 0
2664
    (1, TType.STRING, 'ip', None, None, ), # 1
3699
    (1, TType.I64, 'userId', None, None, ), # 1
2665
    (2, TType.I64, 'timestamp', None, None, ), # 2
3700
    (2, TType.I64, 'timestamp', None, None, ), # 2
2666
    (3, TType.I64, 'userId', None, None, ), # 3
-
 
2667
  )
3701
  )
2668
 
3702
 
2669
  def __init__(self, ip=None, timestamp=None, userId=None,):
3703
  def __init__(self, userId=None, timestamp=None,):
2670
    self.ip = ip
-
 
2671
    self.timestamp = timestamp
-
 
2672
    self.userId = userId
3704
    self.userId = userId
-
 
3705
    self.timestamp = timestamp
2673
 
3706
 
2674
  def read(self, iprot):
3707
  def read(self, iprot):
2675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2677
      return
3710
      return
Line 2679... Line 3712...
2679
    while True:
3712
    while True:
2680
      (fname, ftype, fid) = iprot.readFieldBegin()
3713
      (fname, ftype, fid) = iprot.readFieldBegin()
2681
      if ftype == TType.STOP:
3714
      if ftype == TType.STOP:
2682
        break
3715
        break
2683
      if fid == 1:
3716
      if fid == 1:
2684
        if ftype == TType.STRING:
3717
        if ftype == TType.I64:
2685
          self.ip = iprot.readString();
3718
          self.userId = iprot.readI64();
2686
        else:
3719
        else:
2687
          iprot.skip(ftype)
3720
          iprot.skip(ftype)
2688
      elif fid == 2:
3721
      elif fid == 2:
2689
        if ftype == TType.I64:
3722
        if ftype == TType.I64:
2690
          self.timestamp = iprot.readI64();
3723
          self.timestamp = iprot.readI64();
2691
        else:
3724
        else:
2692
          iprot.skip(ftype)
3725
          iprot.skip(ftype)
2693
      elif fid == 3:
-
 
2694
        if ftype == TType.I64:
-
 
2695
          self.userId = iprot.readI64();
-
 
2696
        else:
-
 
2697
          iprot.skip(ftype)
-
 
2698
      else:
3726
      else:
2699
        iprot.skip(ftype)
3727
        iprot.skip(ftype)
2700
      iprot.readFieldEnd()
3728
      iprot.readFieldEnd()
2701
    iprot.readStructEnd()
3729
    iprot.readStructEnd()
2702
 
3730
 
2703
  def write(self, oprot):
3731
  def write(self, oprot):
2704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2706
      return
3734
      return
2707
    oprot.writeStructBegin('addIpAdressForUser_args')
3735
    oprot.writeStructBegin('setUserAsLoggedIn_args')
2708
    if self.ip != None:
3736
    if self.userId != None:
2709
      oprot.writeFieldBegin('ip', TType.STRING, 1)
3737
      oprot.writeFieldBegin('userId', TType.I64, 1)
2710
      oprot.writeString(self.ip)
3738
      oprot.writeI64(self.userId)
2711
      oprot.writeFieldEnd()
3739
      oprot.writeFieldEnd()
2712
    if self.timestamp != None:
3740
    if self.timestamp != None:
2713
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
3741
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
2714
      oprot.writeI64(self.timestamp)
3742
      oprot.writeI64(self.timestamp)
2715
      oprot.writeFieldEnd()
3743
      oprot.writeFieldEnd()
2716
    if self.userId != None:
-
 
2717
      oprot.writeFieldBegin('userId', TType.I64, 3)
-
 
2718
      oprot.writeI64(self.userId)
-
 
2719
      oprot.writeFieldEnd()
-
 
2720
    oprot.writeFieldStop()
3744
    oprot.writeFieldStop()
2721
    oprot.writeStructEnd()
3745
    oprot.writeStructEnd()
2722
 
3746
 
2723
  def __repr__(self):
3747
  def __repr__(self):
2724
    L = ['%s=%r' % (key, value)
3748
    L = ['%s=%r' % (key, value)
Line 2729... Line 3753...
2729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2730
 
3754
 
2731
  def __ne__(self, other):
3755
  def __ne__(self, other):
2732
    return not (self == other)
3756
    return not (self == other)
2733
 
3757
 
2734
class addIpAdressForUser_result:
3758
class setUserAsLoggedIn_result:
2735
  """
3759
  """
2736
  Attributes:
3760
  Attributes:
2737
   - success
3761
   - success
2738
   - ucx
3762
   - ucx
2739
  """
3763
  """
Line 2774... Line 3798...
2774
 
3798
 
2775
  def write(self, oprot):
3799
  def write(self, oprot):
2776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2778
      return
3802
      return
2779
    oprot.writeStructBegin('addIpAdressForUser_result')
3803
    oprot.writeStructBegin('setUserAsLoggedIn_result')
2780
    if self.success != None:
3804
    if self.success != None:
2781
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3805
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2782
      oprot.writeBool(self.success)
3806
      oprot.writeBool(self.success)
2783
      oprot.writeFieldEnd()
3807
      oprot.writeFieldEnd()
2784
    if self.ucx != None:
3808
    if self.ucx != None:
Line 2797... Line 3821...
2797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2798
 
3822
 
2799
  def __ne__(self, other):
3823
  def __ne__(self, other):
2800
    return not (self == other)
3824
    return not (self == other)
2801
 
3825
 
2802
class addAddressForUser_args:
3826
class setUserAsLoggedOut_args:
2803
  """
3827
  """
2804
  Attributes:
3828
  Attributes:
2805
   - address
-
 
2806
   - userid
3829
   - userid
2807
   - timestamp
3830
   - timestamp
2808
   - setDefault
-
 
2809
  """
3831
  """
2810
 
3832
 
2811
  thrift_spec = (
3833
  thrift_spec = (
2812
    None, # 0
3834
    None, # 0
2813
    (1, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 1
-
 
2814
    (2, TType.I64, 'userid', None, None, ), # 2
3835
    (1, TType.I64, 'userid', None, None, ), # 1
2815
    (3, TType.I64, 'timestamp', None, None, ), # 3
3836
    (2, TType.I64, 'timestamp', None, None, ), # 2
2816
    (4, TType.BOOL, 'setDefault', None, None, ), # 4
-
 
2817
  )
3837
  )
2818
 
3838
 
2819
  def __init__(self, address=None, userid=None, timestamp=None, setDefault=None,):
3839
  def __init__(self, userid=None, timestamp=None,):
2820
    self.address = address
-
 
2821
    self.userid = userid
3840
    self.userid = userid
2822
    self.timestamp = timestamp
3841
    self.timestamp = timestamp
2823
    self.setDefault = setDefault
-
 
2824
 
3842
 
2825
  def read(self, iprot):
3843
  def read(self, iprot):
2826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3844
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3845
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2828
      return
3846
      return
Line 2830... Line 3848...
2830
    while True:
3848
    while True:
2831
      (fname, ftype, fid) = iprot.readFieldBegin()
3849
      (fname, ftype, fid) = iprot.readFieldBegin()
2832
      if ftype == TType.STOP:
3850
      if ftype == TType.STOP:
2833
        break
3851
        break
2834
      if fid == 1:
3852
      if fid == 1:
2835
        if ftype == TType.STRUCT:
-
 
2836
          self.address = Address()
-
 
2837
          self.address.read(iprot)
-
 
2838
        else:
-
 
2839
          iprot.skip(ftype)
-
 
2840
      elif fid == 2:
-
 
2841
        if ftype == TType.I64:
3853
        if ftype == TType.I64:
2842
          self.userid = iprot.readI64();
3854
          self.userid = iprot.readI64();
2843
        else:
3855
        else:
2844
          iprot.skip(ftype)
3856
          iprot.skip(ftype)
2845
      elif fid == 3:
3857
      elif fid == 2:
2846
        if ftype == TType.I64:
3858
        if ftype == TType.I64:
2847
          self.timestamp = iprot.readI64();
3859
          self.timestamp = iprot.readI64();
2848
        else:
3860
        else:
2849
          iprot.skip(ftype)
3861
          iprot.skip(ftype)
2850
      elif fid == 4:
-
 
2851
        if ftype == TType.BOOL:
-
 
2852
          self.setDefault = iprot.readBool();
-
 
2853
        else:
-
 
2854
          iprot.skip(ftype)
-
 
2855
      else:
3862
      else:
2856
        iprot.skip(ftype)
3863
        iprot.skip(ftype)
2857
      iprot.readFieldEnd()
3864
      iprot.readFieldEnd()
2858
    iprot.readStructEnd()
3865
    iprot.readStructEnd()
2859
 
3866
 
2860
  def write(self, oprot):
3867
  def write(self, oprot):
2861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2863
      return
3870
      return
2864
    oprot.writeStructBegin('addAddressForUser_args')
3871
    oprot.writeStructBegin('setUserAsLoggedOut_args')
2865
    if self.address != None:
-
 
2866
      oprot.writeFieldBegin('address', TType.STRUCT, 1)
-
 
2867
      self.address.write(oprot)
-
 
2868
      oprot.writeFieldEnd()
-
 
2869
    if self.userid != None:
3872
    if self.userid != None:
2870
      oprot.writeFieldBegin('userid', TType.I64, 2)
3873
      oprot.writeFieldBegin('userid', TType.I64, 1)
2871
      oprot.writeI64(self.userid)
3874
      oprot.writeI64(self.userid)
2872
      oprot.writeFieldEnd()
3875
      oprot.writeFieldEnd()
2873
    if self.timestamp != None:
3876
    if self.timestamp != None:
2874
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
3877
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
2875
      oprot.writeI64(self.timestamp)
3878
      oprot.writeI64(self.timestamp)
2876
      oprot.writeFieldEnd()
3879
      oprot.writeFieldEnd()
2877
    if self.setDefault != None:
-
 
2878
      oprot.writeFieldBegin('setDefault', TType.BOOL, 4)
-
 
2879
      oprot.writeBool(self.setDefault)
-
 
2880
      oprot.writeFieldEnd()
-
 
2881
    oprot.writeFieldStop()
3880
    oprot.writeFieldStop()
2882
    oprot.writeStructEnd()
3881
    oprot.writeStructEnd()
2883
 
3882
 
2884
  def __repr__(self):
3883
  def __repr__(self):
2885
    L = ['%s=%r' % (key, value)
3884
    L = ['%s=%r' % (key, value)
Line 2890... Line 3889...
2890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2891
 
3890
 
2892
  def __ne__(self, other):
3891
  def __ne__(self, other):
2893
    return not (self == other)
3892
    return not (self == other)
2894
 
3893
 
2895
class addAddressForUser_result:
3894
class setUserAsLoggedOut_result:
2896
  """
3895
  """
2897
  Attributes:
3896
  Attributes:
2898
   - success
3897
   - success
2899
   - ucx
3898
   - ucx
2900
  """
3899
  """
Line 2935... Line 3934...
2935
 
3934
 
2936
  def write(self, oprot):
3935
  def write(self, oprot):
2937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2939
      return
3938
      return
2940
    oprot.writeStructBegin('addAddressForUser_result')
3939
    oprot.writeStructBegin('setUserAsLoggedOut_result')
2941
    if self.success != None:
3940
    if self.success != None:
2942
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3941
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2943
      oprot.writeBool(self.success)
3942
      oprot.writeBool(self.success)
2944
      oprot.writeFieldEnd()
3943
      oprot.writeFieldEnd()
2945
    if self.ucx != None:
3944
    if self.ucx != None:
Line 2958... Line 3957...
2958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2959
 
3958
 
2960
  def __ne__(self, other):
3959
  def __ne__(self, other):
2961
    return not (self == other)
3960
    return not (self == other)
2962
 
3961
 
2963
class removeAddressForUser_args:
3962
class setDefaultAddress_args:
2964
  """
3963
  """
2965
  Attributes:
3964
  Attributes:
2966
   - userid
3965
   - userid
2967
   - addressId
3966
   - addressId
2968
  """
3967
  """
Line 3003... Line 4002...
3003
 
4002
 
3004
  def write(self, oprot):
4003
  def write(self, oprot):
3005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3007
      return
4006
      return
3008
    oprot.writeStructBegin('removeAddressForUser_args')
4007
    oprot.writeStructBegin('setDefaultAddress_args')
3009
    if self.userid != None:
4008
    if self.userid != None:
3010
      oprot.writeFieldBegin('userid', TType.I64, 1)
4009
      oprot.writeFieldBegin('userid', TType.I64, 1)
3011
      oprot.writeI64(self.userid)
4010
      oprot.writeI64(self.userid)
3012
      oprot.writeFieldEnd()
4011
      oprot.writeFieldEnd()
3013
    if self.addressId != None:
4012
    if self.addressId != None:
Line 3026... Line 4025...
3026
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3027
 
4026
 
3028
  def __ne__(self, other):
4027
  def __ne__(self, other):
3029
    return not (self == other)
4028
    return not (self == other)
3030
 
4029
 
3031
class removeAddressForUser_result:
4030
class setDefaultAddress_result:
3032
  """
4031
  """
3033
  Attributes:
4032
  Attributes:
3034
   - success
4033
   - success
3035
   - ucx
4034
   - ucx
3036
  """
4035
  """
Line 3071... Line 4070...
3071
 
4070
 
3072
  def write(self, oprot):
4071
  def write(self, oprot):
3073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3075
      return
4074
      return
3076
    oprot.writeStructBegin('removeAddressForUser_result')
4075
    oprot.writeStructBegin('setDefaultAddress_result')
3077
    if self.success != None:
4076
    if self.success != None:
3078
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4077
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3079
      oprot.writeBool(self.success)
4078
      oprot.writeBool(self.success)
3080
      oprot.writeFieldEnd()
4079
      oprot.writeFieldEnd()
3081
    if self.ucx != None:
4080
    if self.ucx != None:
Line 3094... Line 4093...
3094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3095
 
4094
 
3096
  def __ne__(self, other):
4095
  def __ne__(self, other):
3097
    return not (self == other)
4096
    return not (self == other)
3098
 
4097
 
3099
class setUserAsLoggedIn_args:
4098
class updatePassword_args:
3100
  """
4099
  """
3101
  Attributes:
4100
  Attributes:
3102
   - userId
4101
   - userid
3103
   - timestamp
4102
   - password
3104
  """
4103
  """
3105
 
4104
 
3106
  thrift_spec = (
4105
  thrift_spec = (
3107
    None, # 0
4106
    None, # 0
3108
    (1, TType.I64, 'userId', None, None, ), # 1
4107
    (1, TType.I64, 'userid', None, None, ), # 1
3109
    (2, TType.I64, 'timestamp', None, None, ), # 2
4108
    (2, TType.STRING, 'password', None, None, ), # 2
3110
  )
4109
  )
3111
 
4110
 
3112
  def __init__(self, userId=None, timestamp=None,):
4111
  def __init__(self, userid=None, password=None,):
3113
    self.userId = userId
4112
    self.userid = userid
3114
    self.timestamp = timestamp
4113
    self.password = password
3115
 
4114
 
3116
  def read(self, iprot):
4115
  def read(self, iprot):
3117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3119
      return
4118
      return
Line 3122... Line 4121...
3122
      (fname, ftype, fid) = iprot.readFieldBegin()
4121
      (fname, ftype, fid) = iprot.readFieldBegin()
3123
      if ftype == TType.STOP:
4122
      if ftype == TType.STOP:
3124
        break
4123
        break
3125
      if fid == 1:
4124
      if fid == 1:
3126
        if ftype == TType.I64:
4125
        if ftype == TType.I64:
3127
          self.userId = iprot.readI64();
4126
          self.userid = iprot.readI64();
3128
        else:
4127
        else:
3129
          iprot.skip(ftype)
4128
          iprot.skip(ftype)
3130
      elif fid == 2:
4129
      elif fid == 2:
3131
        if ftype == TType.I64:
4130
        if ftype == TType.STRING:
3132
          self.timestamp = iprot.readI64();
4131
          self.password = iprot.readString();
3133
        else:
4132
        else:
3134
          iprot.skip(ftype)
4133
          iprot.skip(ftype)
3135
      else:
4134
      else:
3136
        iprot.skip(ftype)
4135
        iprot.skip(ftype)
3137
      iprot.readFieldEnd()
4136
      iprot.readFieldEnd()
Line 3139... Line 4138...
3139
 
4138
 
3140
  def write(self, oprot):
4139
  def write(self, oprot):
3141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3143
      return
4142
      return
3144
    oprot.writeStructBegin('setUserAsLoggedIn_args')
4143
    oprot.writeStructBegin('updatePassword_args')
3145
    if self.userId != None:
4144
    if self.userid != None:
3146
      oprot.writeFieldBegin('userId', TType.I64, 1)
4145
      oprot.writeFieldBegin('userid', TType.I64, 1)
3147
      oprot.writeI64(self.userId)
4146
      oprot.writeI64(self.userid)
3148
      oprot.writeFieldEnd()
4147
      oprot.writeFieldEnd()
3149
    if self.timestamp != None:
4148
    if self.password != None:
3150
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4149
      oprot.writeFieldBegin('password', TType.STRING, 2)
3151
      oprot.writeI64(self.timestamp)
4150
      oprot.writeString(self.password)
3152
      oprot.writeFieldEnd()
4151
      oprot.writeFieldEnd()
3153
    oprot.writeFieldStop()
4152
    oprot.writeFieldStop()
3154
    oprot.writeStructEnd()
4153
    oprot.writeStructEnd()
3155
 
4154
 
3156
  def __repr__(self):
4155
  def __repr__(self):
Line 3162... Line 4161...
3162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3163
 
4162
 
3164
  def __ne__(self, other):
4163
  def __ne__(self, other):
3165
    return not (self == other)
4164
    return not (self == other)
3166
 
4165
 
3167
class setUserAsLoggedIn_result:
4166
class updatePassword_result:
3168
  """
4167
  """
3169
  Attributes:
4168
  Attributes:
3170
   - success
4169
   - success
3171
   - ucx
4170
   - ucx
3172
  """
4171
  """
Line 3207... Line 4206...
3207
 
4206
 
3208
  def write(self, oprot):
4207
  def write(self, oprot):
3209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3211
      return
4210
      return
3212
    oprot.writeStructBegin('setUserAsLoggedIn_result')
4211
    oprot.writeStructBegin('updatePassword_result')
3213
    if self.success != None:
4212
    if self.success != None:
3214
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4213
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3215
      oprot.writeBool(self.success)
4214
      oprot.writeBool(self.success)
3216
      oprot.writeFieldEnd()
4215
      oprot.writeFieldEnd()
3217
    if self.ucx != None:
4216
    if self.ucx != None:
Line 3230... Line 4229...
3230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3231
 
4230
 
3232
  def __ne__(self, other):
4231
  def __ne__(self, other):
3233
    return not (self == other)
4232
    return not (self == other)
3234
 
4233
 
3235
class setUserAsLoggedOut_args:
4234
class createCart_args:
3236
  """
4235
  """
3237
  Attributes:
4236
  Attributes:
3238
   - userid
4237
   - userId
3239
   - timestamp
-
 
3240
  """
4238
  """
3241
 
4239
 
3242
  thrift_spec = (
4240
  thrift_spec = (
3243
    None, # 0
4241
    None, # 0
3244
    (1, TType.I64, 'userid', None, None, ), # 1
4242
    (1, TType.I64, 'userId', None, None, ), # 1
3245
    (2, TType.I64, 'timestamp', None, None, ), # 2
-
 
3246
  )
4243
  )
3247
 
4244
 
3248
  def __init__(self, userid=None, timestamp=None,):
4245
  def __init__(self, userId=None,):
3249
    self.userid = userid
4246
    self.userId = userId
3250
    self.timestamp = timestamp
-
 
3251
 
4247
 
3252
  def read(self, iprot):
4248
  def read(self, iprot):
3253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3255
      return
4251
      return
Line 3258... Line 4254...
3258
      (fname, ftype, fid) = iprot.readFieldBegin()
4254
      (fname, ftype, fid) = iprot.readFieldBegin()
3259
      if ftype == TType.STOP:
4255
      if ftype == TType.STOP:
3260
        break
4256
        break
3261
      if fid == 1:
4257
      if fid == 1:
3262
        if ftype == TType.I64:
4258
        if ftype == TType.I64:
3263
          self.userid = iprot.readI64();
4259
          self.userId = iprot.readI64();
3264
        else:
4260
        else:
3265
          iprot.skip(ftype)
4261
          iprot.skip(ftype)
-
 
4262
      else:
-
 
4263
        iprot.skip(ftype)
-
 
4264
      iprot.readFieldEnd()
-
 
4265
    iprot.readStructEnd()
-
 
4266
 
-
 
4267
  def write(self, oprot):
-
 
4268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4270
      return
-
 
4271
    oprot.writeStructBegin('createCart_args')
-
 
4272
    if self.userId != None:
-
 
4273
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
4274
      oprot.writeI64(self.userId)
-
 
4275
      oprot.writeFieldEnd()
-
 
4276
    oprot.writeFieldStop()
-
 
4277
    oprot.writeStructEnd()
-
 
4278
 
-
 
4279
  def __repr__(self):
-
 
4280
    L = ['%s=%r' % (key, value)
-
 
4281
      for key, value in self.__dict__.iteritems()]
-
 
4282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4283
 
-
 
4284
  def __eq__(self, other):
-
 
4285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4286
 
-
 
4287
  def __ne__(self, other):
-
 
4288
    return not (self == other)
-
 
4289
 
-
 
4290
class createCart_result:
-
 
4291
  """
-
 
4292
  Attributes:
-
 
4293
   - success
-
 
4294
   - scx
-
 
4295
  """
-
 
4296
 
-
 
4297
  thrift_spec = (
-
 
4298
    (0, TType.I64, 'success', None, None, ), # 0
-
 
4299
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
4300
  )
-
 
4301
 
-
 
4302
  def __init__(self, success=None, scx=None,):
-
 
4303
    self.success = success
-
 
4304
    self.scx = scx
-
 
4305
 
-
 
4306
  def read(self, iprot):
-
 
4307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4309
      return
-
 
4310
    iprot.readStructBegin()
-
 
4311
    while True:
-
 
4312
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4313
      if ftype == TType.STOP:
-
 
4314
        break
3266
      elif fid == 2:
4315
      if fid == 0:
3267
        if ftype == TType.I64:
4316
        if ftype == TType.I64:
3268
          self.timestamp = iprot.readI64();
4317
          self.success = iprot.readI64();
-
 
4318
        else:
-
 
4319
          iprot.skip(ftype)
-
 
4320
      elif fid == 1:
-
 
4321
        if ftype == TType.STRUCT:
-
 
4322
          self.scx = ShoppingCartException()
-
 
4323
          self.scx.read(iprot)
3269
        else:
4324
        else:
3270
          iprot.skip(ftype)
4325
          iprot.skip(ftype)
3271
      else:
4326
      else:
3272
        iprot.skip(ftype)
4327
        iprot.skip(ftype)
3273
      iprot.readFieldEnd()
4328
      iprot.readFieldEnd()
Line 3275... Line 4330...
3275
 
4330
 
3276
  def write(self, oprot):
4331
  def write(self, oprot):
3277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3279
      return
4334
      return
3280
    oprot.writeStructBegin('setUserAsLoggedOut_args')
4335
    oprot.writeStructBegin('createCart_result')
3281
    if self.userid != None:
4336
    if self.success != None:
3282
      oprot.writeFieldBegin('userid', TType.I64, 1)
4337
      oprot.writeFieldBegin('success', TType.I64, 0)
3283
      oprot.writeI64(self.userid)
4338
      oprot.writeI64(self.success)
3284
      oprot.writeFieldEnd()
4339
      oprot.writeFieldEnd()
3285
    if self.timestamp != None:
4340
    if self.scx != None:
3286
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4341
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
3287
      oprot.writeI64(self.timestamp)
4342
      self.scx.write(oprot)
3288
      oprot.writeFieldEnd()
4343
      oprot.writeFieldEnd()
3289
    oprot.writeFieldStop()
4344
    oprot.writeFieldStop()
3290
    oprot.writeStructEnd()
4345
    oprot.writeStructEnd()
3291
 
4346
 
3292
  def __repr__(self):
4347
  def __repr__(self):
Line 3298... Line 4353...
3298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3299
 
4354
 
3300
  def __ne__(self, other):
4355
  def __ne__(self, other):
3301
    return not (self == other)
4356
    return not (self == other)
3302
 
4357
 
-
 
4358
class getCurrentCart_args:
-
 
4359
  """
-
 
4360
  Attributes:
-
 
4361
   - userId
-
 
4362
  """
-
 
4363
 
-
 
4364
  thrift_spec = (
-
 
4365
    None, # 0
-
 
4366
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
4367
  )
-
 
4368
 
-
 
4369
  def __init__(self, userId=None,):
-
 
4370
    self.userId = userId
-
 
4371
 
-
 
4372
  def read(self, iprot):
-
 
4373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4375
      return
-
 
4376
    iprot.readStructBegin()
-
 
4377
    while True:
-
 
4378
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4379
      if ftype == TType.STOP:
-
 
4380
        break
-
 
4381
      if fid == 1:
-
 
4382
        if ftype == TType.I64:
-
 
4383
          self.userId = iprot.readI64();
-
 
4384
        else:
-
 
4385
          iprot.skip(ftype)
-
 
4386
      else:
-
 
4387
        iprot.skip(ftype)
-
 
4388
      iprot.readFieldEnd()
-
 
4389
    iprot.readStructEnd()
-
 
4390
 
-
 
4391
  def write(self, oprot):
-
 
4392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4394
      return
-
 
4395
    oprot.writeStructBegin('getCurrentCart_args')
-
 
4396
    if self.userId != None:
-
 
4397
      oprot.writeFieldBegin('userId', TType.I64, 1)
-
 
4398
      oprot.writeI64(self.userId)
-
 
4399
      oprot.writeFieldEnd()
-
 
4400
    oprot.writeFieldStop()
-
 
4401
    oprot.writeStructEnd()
-
 
4402
 
-
 
4403
  def __repr__(self):
-
 
4404
    L = ['%s=%r' % (key, value)
-
 
4405
      for key, value in self.__dict__.iteritems()]
-
 
4406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4407
 
-
 
4408
  def __eq__(self, other):
-
 
4409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4410
 
-
 
4411
  def __ne__(self, other):
-
 
4412
    return not (self == other)
-
 
4413
 
3303
class setUserAsLoggedOut_result:
4414
class getCurrentCart_result:
3304
  """
4415
  """
3305
  Attributes:
4416
  Attributes:
3306
   - success
4417
   - success
3307
   - ucx
4418
   - scx
3308
  """
4419
  """
3309
 
4420
 
3310
  thrift_spec = (
4421
  thrift_spec = (
3311
    (0, TType.BOOL, 'success', None, None, ), # 0
4422
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
3312
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4423
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
3313
  )
4424
  )
3314
 
4425
 
3315
  def __init__(self, success=None, ucx=None,):
4426
  def __init__(self, success=None, scx=None,):
3316
    self.success = success
4427
    self.success = success
3317
    self.ucx = ucx
4428
    self.scx = scx
3318
 
4429
 
3319
  def read(self, iprot):
4430
  def read(self, iprot):
3320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3322
      return
4433
      return
Line 3324... Line 4435...
3324
    while True:
4435
    while True:
3325
      (fname, ftype, fid) = iprot.readFieldBegin()
4436
      (fname, ftype, fid) = iprot.readFieldBegin()
3326
      if ftype == TType.STOP:
4437
      if ftype == TType.STOP:
3327
        break
4438
        break
3328
      if fid == 0:
4439
      if fid == 0:
3329
        if ftype == TType.BOOL:
4440
        if ftype == TType.STRUCT:
3330
          self.success = iprot.readBool();
4441
          self.success = Cart()
-
 
4442
          self.success.read(iprot)
3331
        else:
4443
        else:
3332
          iprot.skip(ftype)
4444
          iprot.skip(ftype)
3333
      elif fid == 1:
4445
      elif fid == 1:
3334
        if ftype == TType.STRUCT:
4446
        if ftype == TType.STRUCT:
3335
          self.ucx = UserContextException()
4447
          self.scx = ShoppingCartException()
3336
          self.ucx.read(iprot)
4448
          self.scx.read(iprot)
3337
        else:
4449
        else:
3338
          iprot.skip(ftype)
4450
          iprot.skip(ftype)
3339
      else:
4451
      else:
3340
        iprot.skip(ftype)
4452
        iprot.skip(ftype)
3341
      iprot.readFieldEnd()
4453
      iprot.readFieldEnd()
Line 3343... Line 4455...
3343
 
4455
 
3344
  def write(self, oprot):
4456
  def write(self, oprot):
3345
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3346
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3347
      return
4459
      return
3348
    oprot.writeStructBegin('setUserAsLoggedOut_result')
4460
    oprot.writeStructBegin('getCurrentCart_result')
3349
    if self.success != None:
4461
    if self.success != None:
3350
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4462
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3351
      oprot.writeBool(self.success)
4463
      self.success.write(oprot)
3352
      oprot.writeFieldEnd()
4464
      oprot.writeFieldEnd()
3353
    if self.ucx != None:
4465
    if self.scx != None:
3354
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4466
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
3355
      self.ucx.write(oprot)
4467
      self.scx.write(oprot)
3356
      oprot.writeFieldEnd()
4468
      oprot.writeFieldEnd()
3357
    oprot.writeFieldStop()
4469
    oprot.writeFieldStop()
3358
    oprot.writeStructEnd()
4470
    oprot.writeStructEnd()
3359
 
4471
 
3360
  def __repr__(self):
4472
  def __repr__(self):
Line 3366... Line 4478...
3366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3367
 
4479
 
3368
  def __ne__(self, other):
4480
  def __ne__(self, other):
3369
    return not (self == other)
4481
    return not (self == other)
3370
 
4482
 
3371
class setDefaultAddress_args:
4483
class getCart_args:
3372
  """
4484
  """
3373
  Attributes:
4485
  Attributes:
3374
   - userid
4486
   - cartId
3375
   - addressId
-
 
3376
  """
4487
  """
3377
 
4488
 
3378
  thrift_spec = (
4489
  thrift_spec = (
3379
    None, # 0
4490
    None, # 0
3380
    (1, TType.I64, 'userid', None, None, ), # 1
4491
    (1, TType.I64, 'cartId', None, None, ), # 1
3381
    (2, TType.I64, 'addressId', None, None, ), # 2
-
 
3382
  )
4492
  )
3383
 
4493
 
3384
  def __init__(self, userid=None, addressId=None,):
4494
  def __init__(self, cartId=None,):
3385
    self.userid = userid
4495
    self.cartId = cartId
3386
    self.addressId = addressId
-
 
3387
 
4496
 
3388
  def read(self, iprot):
4497
  def read(self, iprot):
3389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3391
      return
4500
      return
Line 3394... Line 4503...
3394
      (fname, ftype, fid) = iprot.readFieldBegin()
4503
      (fname, ftype, fid) = iprot.readFieldBegin()
3395
      if ftype == TType.STOP:
4504
      if ftype == TType.STOP:
3396
        break
4505
        break
3397
      if fid == 1:
4506
      if fid == 1:
3398
        if ftype == TType.I64:
4507
        if ftype == TType.I64:
3399
          self.userid = iprot.readI64();
4508
          self.cartId = iprot.readI64();
3400
        else:
-
 
3401
          iprot.skip(ftype)
-
 
3402
      elif fid == 2:
-
 
3403
        if ftype == TType.I64:
-
 
3404
          self.addressId = iprot.readI64();
-
 
3405
        else:
4509
        else:
3406
          iprot.skip(ftype)
4510
          iprot.skip(ftype)
3407
      else:
4511
      else:
3408
        iprot.skip(ftype)
4512
        iprot.skip(ftype)
3409
      iprot.readFieldEnd()
4513
      iprot.readFieldEnd()
Line 3411... Line 4515...
3411
 
4515
 
3412
  def write(self, oprot):
4516
  def write(self, oprot):
3413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3415
      return
4519
      return
3416
    oprot.writeStructBegin('setDefaultAddress_args')
4520
    oprot.writeStructBegin('getCart_args')
3417
    if self.userid != None:
4521
    if self.cartId != None:
3418
      oprot.writeFieldBegin('userid', TType.I64, 1)
4522
      oprot.writeFieldBegin('cartId', TType.I64, 1)
3419
      oprot.writeI64(self.userid)
4523
      oprot.writeI64(self.cartId)
3420
      oprot.writeFieldEnd()
-
 
3421
    if self.addressId != None:
-
 
3422
      oprot.writeFieldBegin('addressId', TType.I64, 2)
-
 
3423
      oprot.writeI64(self.addressId)
-
 
3424
      oprot.writeFieldEnd()
4524
      oprot.writeFieldEnd()
3425
    oprot.writeFieldStop()
4525
    oprot.writeFieldStop()
3426
    oprot.writeStructEnd()
4526
    oprot.writeStructEnd()
3427
 
4527
 
3428
  def __repr__(self):
4528
  def __repr__(self):
Line 3434... Line 4534...
3434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3435
 
4535
 
3436
  def __ne__(self, other):
4536
  def __ne__(self, other):
3437
    return not (self == other)
4537
    return not (self == other)
3438
 
4538
 
3439
class setDefaultAddress_result:
4539
class getCart_result:
3440
  """
4540
  """
3441
  Attributes:
4541
  Attributes:
3442
   - success
4542
   - success
3443
   - ucx
4543
   - scx
3444
  """
4544
  """
3445
 
4545
 
3446
  thrift_spec = (
4546
  thrift_spec = (
3447
    (0, TType.BOOL, 'success', None, None, ), # 0
4547
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
3448
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4548
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
3449
  )
4549
  )
3450
 
4550
 
3451
  def __init__(self, success=None, ucx=None,):
4551
  def __init__(self, success=None, scx=None,):
3452
    self.success = success
4552
    self.success = success
3453
    self.ucx = ucx
4553
    self.scx = scx
3454
 
4554
 
3455
  def read(self, iprot):
4555
  def read(self, iprot):
3456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3458
      return
4558
      return
Line 3460... Line 4560...
3460
    while True:
4560
    while True:
3461
      (fname, ftype, fid) = iprot.readFieldBegin()
4561
      (fname, ftype, fid) = iprot.readFieldBegin()
3462
      if ftype == TType.STOP:
4562
      if ftype == TType.STOP:
3463
        break
4563
        break
3464
      if fid == 0:
4564
      if fid == 0:
3465
        if ftype == TType.BOOL:
4565
        if ftype == TType.STRUCT:
3466
          self.success = iprot.readBool();
4566
          self.success = Cart()
-
 
4567
          self.success.read(iprot)
3467
        else:
4568
        else:
3468
          iprot.skip(ftype)
4569
          iprot.skip(ftype)
3469
      elif fid == 1:
4570
      elif fid == 1:
3470
        if ftype == TType.STRUCT:
4571
        if ftype == TType.STRUCT:
3471
          self.ucx = UserContextException()
4572
          self.scx = ShoppingCartException()
3472
          self.ucx.read(iprot)
4573
          self.scx.read(iprot)
3473
        else:
4574
        else:
3474
          iprot.skip(ftype)
4575
          iprot.skip(ftype)
3475
      else:
4576
      else:
3476
        iprot.skip(ftype)
4577
        iprot.skip(ftype)
3477
      iprot.readFieldEnd()
4578
      iprot.readFieldEnd()
Line 3479... Line 4580...
3479
 
4580
 
3480
  def write(self, oprot):
4581
  def write(self, oprot):
3481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3483
      return
4584
      return
3484
    oprot.writeStructBegin('setDefaultAddress_result')
4585
    oprot.writeStructBegin('getCart_result')
3485
    if self.success != None:
4586
    if self.success != None:
3486
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4587
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3487
      oprot.writeBool(self.success)
4588
      self.success.write(oprot)
3488
      oprot.writeFieldEnd()
4589
      oprot.writeFieldEnd()
3489
    if self.ucx != None:
4590
    if self.scx != None:
3490
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4591
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
3491
      self.ucx.write(oprot)
4592
      self.scx.write(oprot)
3492
      oprot.writeFieldEnd()
4593
      oprot.writeFieldEnd()
3493
    oprot.writeFieldStop()
4594
    oprot.writeFieldStop()
3494
    oprot.writeStructEnd()
4595
    oprot.writeStructEnd()
3495
 
4596
 
3496
  def __repr__(self):
4597
  def __repr__(self):
Line 3502... Line 4603...
3502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3503
 
4604
 
3504
  def __ne__(self, other):
4605
  def __ne__(self, other):
3505
    return not (self == other)
4606
    return not (self == other)
3506
 
4607
 
3507
class updatePassword_args:
4608
class getCartsForUser_args:
3508
  """
4609
  """
3509
  Attributes:
4610
  Attributes:
3510
   - userid
4611
   - userId
3511
   - password
4612
   - status
3512
  """
4613
  """
3513
 
4614
 
3514
  thrift_spec = (
4615
  thrift_spec = (
3515
    None, # 0
4616
    None, # 0
3516
    (1, TType.I64, 'userid', None, None, ), # 1
4617
    (1, TType.I64, 'userId', None, None, ), # 1
3517
    (2, TType.STRING, 'password', None, None, ), # 2
4618
    (2, TType.I32, 'status', None, None, ), # 2
3518
  )
4619
  )
3519
 
4620
 
3520
  def __init__(self, userid=None, password=None,):
4621
  def __init__(self, userId=None, status=None,):
3521
    self.userid = userid
4622
    self.userId = userId
3522
    self.password = password
4623
    self.status = status
3523
 
4624
 
3524
  def read(self, iprot):
4625
  def read(self, iprot):
3525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3527
      return
4628
      return
Line 3530... Line 4631...
3530
      (fname, ftype, fid) = iprot.readFieldBegin()
4631
      (fname, ftype, fid) = iprot.readFieldBegin()
3531
      if ftype == TType.STOP:
4632
      if ftype == TType.STOP:
3532
        break
4633
        break
3533
      if fid == 1:
4634
      if fid == 1:
3534
        if ftype == TType.I64:
4635
        if ftype == TType.I64:
3535
          self.userid = iprot.readI64();
4636
          self.userId = iprot.readI64();
3536
        else:
4637
        else:
3537
          iprot.skip(ftype)
4638
          iprot.skip(ftype)
3538
      elif fid == 2:
4639
      elif fid == 2:
3539
        if ftype == TType.STRING:
4640
        if ftype == TType.I32:
3540
          self.password = iprot.readString();
4641
          self.status = iprot.readI32();
3541
        else:
4642
        else:
3542
          iprot.skip(ftype)
4643
          iprot.skip(ftype)
3543
      else:
4644
      else:
3544
        iprot.skip(ftype)
4645
        iprot.skip(ftype)
3545
      iprot.readFieldEnd()
4646
      iprot.readFieldEnd()
Line 3547... Line 4648...
3547
 
4648
 
3548
  def write(self, oprot):
4649
  def write(self, oprot):
3549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3551
      return
4652
      return
3552
    oprot.writeStructBegin('updatePassword_args')
4653
    oprot.writeStructBegin('getCartsForUser_args')
3553
    if self.userid != None:
4654
    if self.userId != None:
3554
      oprot.writeFieldBegin('userid', TType.I64, 1)
4655
      oprot.writeFieldBegin('userId', TType.I64, 1)
3555
      oprot.writeI64(self.userid)
4656
      oprot.writeI64(self.userId)
3556
      oprot.writeFieldEnd()
4657
      oprot.writeFieldEnd()
3557
    if self.password != None:
4658
    if self.status != None:
3558
      oprot.writeFieldBegin('password', TType.STRING, 2)
4659
      oprot.writeFieldBegin('status', TType.I32, 2)
3559
      oprot.writeString(self.password)
4660
      oprot.writeI32(self.status)
3560
      oprot.writeFieldEnd()
4661
      oprot.writeFieldEnd()
3561
    oprot.writeFieldStop()
4662
    oprot.writeFieldStop()
3562
    oprot.writeStructEnd()
4663
    oprot.writeStructEnd()
3563
 
4664
 
3564
  def __repr__(self):
4665
  def __repr__(self):
Line 3570... Line 4671...
3570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3571
 
4672
 
3572
  def __ne__(self, other):
4673
  def __ne__(self, other):
3573
    return not (self == other)
4674
    return not (self == other)
3574
 
4675
 
3575
class updatePassword_result:
4676
class getCartsForUser_result:
3576
  """
4677
  """
3577
  Attributes:
4678
  Attributes:
3578
   - success
4679
   - success
3579
   - ucx
4680
   - scx
3580
  """
4681
  """
3581
 
4682
 
3582
  thrift_spec = (
4683
  thrift_spec = (
3583
    (0, TType.BOOL, 'success', None, None, ), # 0
4684
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
3584
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4685
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
3585
  )
4686
  )
3586
 
4687
 
3587
  def __init__(self, success=None, ucx=None,):
4688
  def __init__(self, success=None, scx=None,):
3588
    self.success = success
4689
    self.success = success
3589
    self.ucx = ucx
4690
    self.scx = scx
3590
 
4691
 
3591
  def read(self, iprot):
4692
  def read(self, iprot):
3592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3594
      return
4695
      return
Line 3596... Line 4697...
3596
    while True:
4697
    while True:
3597
      (fname, ftype, fid) = iprot.readFieldBegin()
4698
      (fname, ftype, fid) = iprot.readFieldBegin()
3598
      if ftype == TType.STOP:
4699
      if ftype == TType.STOP:
3599
        break
4700
        break
3600
      if fid == 0:
4701
      if fid == 0:
3601
        if ftype == TType.BOOL:
4702
        if ftype == TType.LIST:
-
 
4703
          self.success = []
-
 
4704
          (_etype47, _size44) = iprot.readListBegin()
-
 
4705
          for _i48 in xrange(_size44):
-
 
4706
            _elem49 = Cart()
-
 
4707
            _elem49.read(iprot)
3602
          self.success = iprot.readBool();
4708
            self.success.append(_elem49)
-
 
4709
          iprot.readListEnd()
3603
        else:
4710
        else:
3604
          iprot.skip(ftype)
4711
          iprot.skip(ftype)
3605
      elif fid == 1:
4712
      elif fid == 1:
3606
        if ftype == TType.STRUCT:
4713
        if ftype == TType.STRUCT:
3607
          self.ucx = UserContextException()
4714
          self.scx = ShoppingCartException()
3608
          self.ucx.read(iprot)
4715
          self.scx.read(iprot)
3609
        else:
4716
        else:
3610
          iprot.skip(ftype)
4717
          iprot.skip(ftype)
3611
      else:
4718
      else:
3612
        iprot.skip(ftype)
4719
        iprot.skip(ftype)
3613
      iprot.readFieldEnd()
4720
      iprot.readFieldEnd()
Line 3615... Line 4722...
3615
 
4722
 
3616
  def write(self, oprot):
4723
  def write(self, oprot):
3617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3619
      return
4726
      return
3620
    oprot.writeStructBegin('updatePassword_result')
4727
    oprot.writeStructBegin('getCartsForUser_result')
3621
    if self.success != None:
4728
    if self.success != None:
3622
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4729
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4730
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3623
      oprot.writeBool(self.success)
4731
      for iter50 in self.success:
-
 
4732
        iter50.write(oprot)
-
 
4733
      oprot.writeListEnd()
3624
      oprot.writeFieldEnd()
4734
      oprot.writeFieldEnd()
3625
    if self.ucx != None:
4735
    if self.scx != None:
3626
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4736
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
3627
      self.ucx.write(oprot)
4737
      self.scx.write(oprot)
3628
      oprot.writeFieldEnd()
4738
      oprot.writeFieldEnd()
3629
    oprot.writeFieldStop()
4739
    oprot.writeFieldStop()
3630
    oprot.writeStructEnd()
4740
    oprot.writeStructEnd()
3631
 
4741
 
3632
  def __repr__(self):
4742
  def __repr__(self):
Line 3638... Line 4748...
3638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3639
 
4749
 
3640
  def __ne__(self, other):
4750
  def __ne__(self, other):
3641
    return not (self == other)
4751
    return not (self == other)
3642
 
4752
 
3643
class deleteUser_args:
4753
class getCartsByStatus_args:
3644
  """
4754
  """
3645
  Attributes:
4755
  Attributes:
3646
   - userid
4756
   - status
3647
   - isSessionId
-
 
3648
  """
4757
  """
3649
 
4758
 
3650
  thrift_spec = (
4759
  thrift_spec = (
3651
    None, # 0
4760
    None, # 0
3652
    (1, TType.I64, 'userid', None, None, ), # 1
4761
    (1, TType.I32, 'status', None, None, ), # 1
3653
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
-
 
3654
  )
4762
  )
3655
 
4763
 
-
 
4764
  def __init__(self, status=None,):
-
 
4765
    self.status = status
-
 
4766
 
-
 
4767
  def read(self, iprot):
-
 
4768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4770
      return
-
 
4771
    iprot.readStructBegin()
-
 
4772
    while True:
-
 
4773
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4774
      if ftype == TType.STOP:
-
 
4775
        break
-
 
4776
      if fid == 1:
-
 
4777
        if ftype == TType.I32:
-
 
4778
          self.status = iprot.readI32();
-
 
4779
        else:
-
 
4780
          iprot.skip(ftype)
-
 
4781
      else:
-
 
4782
        iprot.skip(ftype)
-
 
4783
      iprot.readFieldEnd()
-
 
4784
    iprot.readStructEnd()
-
 
4785
 
-
 
4786
  def write(self, oprot):
-
 
4787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4789
      return
-
 
4790
    oprot.writeStructBegin('getCartsByStatus_args')
-
 
4791
    if self.status != None:
-
 
4792
      oprot.writeFieldBegin('status', TType.I32, 1)
-
 
4793
      oprot.writeI32(self.status)
-
 
4794
      oprot.writeFieldEnd()
-
 
4795
    oprot.writeFieldStop()
-
 
4796
    oprot.writeStructEnd()
-
 
4797
 
-
 
4798
  def __repr__(self):
-
 
4799
    L = ['%s=%r' % (key, value)
-
 
4800
      for key, value in self.__dict__.iteritems()]
-
 
4801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4802
 
-
 
4803
  def __eq__(self, other):
-
 
4804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4805
 
-
 
4806
  def __ne__(self, other):
-
 
4807
    return not (self == other)
-
 
4808
 
-
 
4809
class getCartsByStatus_result:
-
 
4810
  """
-
 
4811
  Attributes:
-
 
4812
   - success
-
 
4813
   - scx
-
 
4814
  """
-
 
4815
 
-
 
4816
  thrift_spec = (
-
 
4817
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
-
 
4818
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
4819
  )
-
 
4820
 
3656
  def __init__(self, userid=None, isSessionId=None,):
4821
  def __init__(self, success=None, scx=None,):
-
 
4822
    self.success = success
3657
    self.userid = userid
4823
    self.scx = scx
-
 
4824
 
-
 
4825
  def read(self, iprot):
-
 
4826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4828
      return
-
 
4829
    iprot.readStructBegin()
-
 
4830
    while True:
-
 
4831
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4832
      if ftype == TType.STOP:
-
 
4833
        break
-
 
4834
      if fid == 0:
-
 
4835
        if ftype == TType.LIST:
-
 
4836
          self.success = []
-
 
4837
          (_etype54, _size51) = iprot.readListBegin()
-
 
4838
          for _i55 in xrange(_size51):
-
 
4839
            _elem56 = Cart()
-
 
4840
            _elem56.read(iprot)
-
 
4841
            self.success.append(_elem56)
-
 
4842
          iprot.readListEnd()
-
 
4843
        else:
-
 
4844
          iprot.skip(ftype)
-
 
4845
      elif fid == 1:
-
 
4846
        if ftype == TType.STRUCT:
-
 
4847
          self.scx = ShoppingCartException()
-
 
4848
          self.scx.read(iprot)
-
 
4849
        else:
-
 
4850
          iprot.skip(ftype)
-
 
4851
      else:
-
 
4852
        iprot.skip(ftype)
-
 
4853
      iprot.readFieldEnd()
-
 
4854
    iprot.readStructEnd()
-
 
4855
 
-
 
4856
  def write(self, oprot):
-
 
4857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4859
      return
-
 
4860
    oprot.writeStructBegin('getCartsByStatus_result')
-
 
4861
    if self.success != None:
-
 
4862
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4863
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
4864
      for iter57 in self.success:
-
 
4865
        iter57.write(oprot)
-
 
4866
      oprot.writeListEnd()
-
 
4867
      oprot.writeFieldEnd()
-
 
4868
    if self.scx != None:
-
 
4869
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
4870
      self.scx.write(oprot)
-
 
4871
      oprot.writeFieldEnd()
-
 
4872
    oprot.writeFieldStop()
-
 
4873
    oprot.writeStructEnd()
-
 
4874
 
-
 
4875
  def __repr__(self):
-
 
4876
    L = ['%s=%r' % (key, value)
-
 
4877
      for key, value in self.__dict__.iteritems()]
-
 
4878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4879
 
-
 
4880
  def __eq__(self, other):
-
 
4881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4882
 
-
 
4883
  def __ne__(self, other):
-
 
4884
    return not (self == other)
-
 
4885
 
-
 
4886
class getCartsByTime_args:
-
 
4887
  """
-
 
4888
  Attributes:
-
 
4889
   - from_time
-
 
4890
   - to_time
-
 
4891
   - status
-
 
4892
  """
-
 
4893
 
-
 
4894
  thrift_spec = (
-
 
4895
    None, # 0
-
 
4896
    (1, TType.I64, 'from_time', None, None, ), # 1
-
 
4897
    (2, TType.I64, 'to_time', None, None, ), # 2
-
 
4898
    (3, TType.I32, 'status', None, None, ), # 3
-
 
4899
  )
-
 
4900
 
-
 
4901
  def __init__(self, from_time=None, to_time=None, status=None,):
3658
    self.isSessionId = isSessionId
4902
    self.from_time = from_time
-
 
4903
    self.to_time = to_time
-
 
4904
    self.status = status
3659
 
4905
 
3660
  def read(self, iprot):
4906
  def read(self, iprot):
3661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3663
      return
4909
      return
Line 3666... Line 4912...
3666
      (fname, ftype, fid) = iprot.readFieldBegin()
4912
      (fname, ftype, fid) = iprot.readFieldBegin()
3667
      if ftype == TType.STOP:
4913
      if ftype == TType.STOP:
3668
        break
4914
        break
3669
      if fid == 1:
4915
      if fid == 1:
3670
        if ftype == TType.I64:
4916
        if ftype == TType.I64:
3671
          self.userid = iprot.readI64();
4917
          self.from_time = iprot.readI64();
3672
        else:
4918
        else:
3673
          iprot.skip(ftype)
4919
          iprot.skip(ftype)
3674
      elif fid == 2:
4920
      elif fid == 2:
3675
        if ftype == TType.BOOL:
4921
        if ftype == TType.I64:
3676
          self.isSessionId = iprot.readBool();
4922
          self.to_time = iprot.readI64();
-
 
4923
        else:
-
 
4924
          iprot.skip(ftype)
-
 
4925
      elif fid == 3:
-
 
4926
        if ftype == TType.I32:
-
 
4927
          self.status = iprot.readI32();
3677
        else:
4928
        else:
3678
          iprot.skip(ftype)
4929
          iprot.skip(ftype)
3679
      else:
4930
      else:
3680
        iprot.skip(ftype)
4931
        iprot.skip(ftype)
3681
      iprot.readFieldEnd()
4932
      iprot.readFieldEnd()
Line 3683... Line 4934...
3683
 
4934
 
3684
  def write(self, oprot):
4935
  def write(self, oprot):
3685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3687
      return
4938
      return
3688
    oprot.writeStructBegin('deleteUser_args')
4939
    oprot.writeStructBegin('getCartsByTime_args')
3689
    if self.userid != None:
4940
    if self.from_time != None:
3690
      oprot.writeFieldBegin('userid', TType.I64, 1)
4941
      oprot.writeFieldBegin('from_time', TType.I64, 1)
3691
      oprot.writeI64(self.userid)
4942
      oprot.writeI64(self.from_time)
3692
      oprot.writeFieldEnd()
4943
      oprot.writeFieldEnd()
3693
    if self.isSessionId != None:
4944
    if self.to_time != None:
3694
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
4945
      oprot.writeFieldBegin('to_time', TType.I64, 2)
3695
      oprot.writeBool(self.isSessionId)
4946
      oprot.writeI64(self.to_time)
-
 
4947
      oprot.writeFieldEnd()
-
 
4948
    if self.status != None:
-
 
4949
      oprot.writeFieldBegin('status', TType.I32, 3)
-
 
4950
      oprot.writeI32(self.status)
3696
      oprot.writeFieldEnd()
4951
      oprot.writeFieldEnd()
3697
    oprot.writeFieldStop()
4952
    oprot.writeFieldStop()
3698
    oprot.writeStructEnd()
4953
    oprot.writeStructEnd()
3699
 
4954
 
3700
  def __repr__(self):
4955
  def __repr__(self):
Line 3706... Line 4961...
3706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3707
 
4962
 
3708
  def __ne__(self, other):
4963
  def __ne__(self, other):
3709
    return not (self == other)
4964
    return not (self == other)
3710
 
4965
 
3711
class deleteUser_result:
4966
class getCartsByTime_result:
3712
  """
4967
  """
3713
  Attributes:
4968
  Attributes:
3714
   - success
4969
   - success
3715
   - ucx
4970
   - scx
3716
  """
4971
  """
3717
 
4972
 
3718
  thrift_spec = (
4973
  thrift_spec = (
3719
    (0, TType.BOOL, 'success', None, None, ), # 0
4974
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
3720
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4975
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
3721
  )
4976
  )
3722
 
4977
 
3723
  def __init__(self, success=None, ucx=None,):
4978
  def __init__(self, success=None, scx=None,):
3724
    self.success = success
4979
    self.success = success
3725
    self.ucx = ucx
4980
    self.scx = scx
3726
 
4981
 
3727
  def read(self, iprot):
4982
  def read(self, iprot):
3728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3730
      return
4985
      return
Line 3732... Line 4987...
3732
    while True:
4987
    while True:
3733
      (fname, ftype, fid) = iprot.readFieldBegin()
4988
      (fname, ftype, fid) = iprot.readFieldBegin()
3734
      if ftype == TType.STOP:
4989
      if ftype == TType.STOP:
3735
        break
4990
        break
3736
      if fid == 0:
4991
      if fid == 0:
3737
        if ftype == TType.BOOL:
4992
        if ftype == TType.LIST:
-
 
4993
          self.success = []
-
 
4994
          (_etype61, _size58) = iprot.readListBegin()
-
 
4995
          for _i62 in xrange(_size58):
-
 
4996
            _elem63 = Cart()
-
 
4997
            _elem63.read(iprot)
3738
          self.success = iprot.readBool();
4998
            self.success.append(_elem63)
-
 
4999
          iprot.readListEnd()
3739
        else:
5000
        else:
3740
          iprot.skip(ftype)
5001
          iprot.skip(ftype)
3741
      elif fid == 1:
5002
      elif fid == 1:
3742
        if ftype == TType.STRUCT:
5003
        if ftype == TType.STRUCT:
3743
          self.ucx = UserContextException()
5004
          self.scx = ShoppingCartException()
3744
          self.ucx.read(iprot)
5005
          self.scx.read(iprot)
3745
        else:
5006
        else:
3746
          iprot.skip(ftype)
5007
          iprot.skip(ftype)
3747
      else:
5008
      else:
3748
        iprot.skip(ftype)
5009
        iprot.skip(ftype)
3749
      iprot.readFieldEnd()
5010
      iprot.readFieldEnd()
Line 3751... Line 5012...
3751
 
5012
 
3752
  def write(self, oprot):
5013
  def write(self, oprot):
3753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3755
      return
5016
      return
3756
    oprot.writeStructBegin('deleteUser_result')
5017
    oprot.writeStructBegin('getCartsByTime_result')
3757
    if self.success != None:
5018
    if self.success != None:
3758
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5019
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
5020
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3759
      oprot.writeBool(self.success)
5021
      for iter64 in self.success:
-
 
5022
        iter64.write(oprot)
-
 
5023
      oprot.writeListEnd()
3760
      oprot.writeFieldEnd()
5024
      oprot.writeFieldEnd()
3761
    if self.ucx != None:
5025
    if self.scx != None:
3762
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5026
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
3763
      self.ucx.write(oprot)
5027
      self.scx.write(oprot)
3764
      oprot.writeFieldEnd()
5028
      oprot.writeFieldEnd()
3765
    oprot.writeFieldStop()
5029
    oprot.writeFieldStop()
3766
    oprot.writeStructEnd()
5030
    oprot.writeStructEnd()
3767
 
5031
 
3768
  def __repr__(self):
5032
  def __repr__(self):
Line 3774... Line 5038...
3774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3775
 
5039
 
3776
  def __ne__(self, other):
5040
  def __ne__(self, other):
3777
    return not (self == other)
5041
    return not (self == other)
3778
 
5042
 
3779
class sendEmailVerification_args:
5043
class changeCartStatus_args:
3780
  """
5044
  """
3781
  Attributes:
5045
  Attributes:
3782
   - userid
5046
   - cartId
-
 
5047
   - status
3783
  """
5048
  """
3784
 
5049
 
3785
  thrift_spec = (
5050
  thrift_spec = (
3786
    None, # 0
5051
    None, # 0
3787
    (1, TType.I64, 'userid', None, None, ), # 1
5052
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
5053
    (2, TType.I32, 'status', None, None, ), # 2
3788
  )
5054
  )
3789
 
5055
 
3790
  def __init__(self, userid=None,):
5056
  def __init__(self, cartId=None, status=None,):
3791
    self.userid = userid
5057
    self.cartId = cartId
-
 
5058
    self.status = status
3792
 
5059
 
3793
  def read(self, iprot):
5060
  def read(self, iprot):
3794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3796
      return
5063
      return
Line 3799... Line 5066...
3799
      (fname, ftype, fid) = iprot.readFieldBegin()
5066
      (fname, ftype, fid) = iprot.readFieldBegin()
3800
      if ftype == TType.STOP:
5067
      if ftype == TType.STOP:
3801
        break
5068
        break
3802
      if fid == 1:
5069
      if fid == 1:
3803
        if ftype == TType.I64:
5070
        if ftype == TType.I64:
3804
          self.userid = iprot.readI64();
5071
          self.cartId = iprot.readI64();
-
 
5072
        else:
-
 
5073
          iprot.skip(ftype)
-
 
5074
      elif fid == 2:
-
 
5075
        if ftype == TType.I32:
-
 
5076
          self.status = iprot.readI32();
3805
        else:
5077
        else:
3806
          iprot.skip(ftype)
5078
          iprot.skip(ftype)
3807
      else:
5079
      else:
3808
        iprot.skip(ftype)
5080
        iprot.skip(ftype)
3809
      iprot.readFieldEnd()
5081
      iprot.readFieldEnd()
Line 3811... Line 5083...
3811
 
5083
 
3812
  def write(self, oprot):
5084
  def write(self, oprot):
3813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3815
      return
5087
      return
3816
    oprot.writeStructBegin('sendEmailVerification_args')
5088
    oprot.writeStructBegin('changeCartStatus_args')
-
 
5089
    if self.cartId != None:
-
 
5090
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
5091
      oprot.writeI64(self.cartId)
-
 
5092
      oprot.writeFieldEnd()
-
 
5093
    if self.status != None:
-
 
5094
      oprot.writeFieldBegin('status', TType.I32, 2)
-
 
5095
      oprot.writeI32(self.status)
-
 
5096
      oprot.writeFieldEnd()
-
 
5097
    oprot.writeFieldStop()
-
 
5098
    oprot.writeStructEnd()
-
 
5099
 
-
 
5100
  def __repr__(self):
-
 
5101
    L = ['%s=%r' % (key, value)
-
 
5102
      for key, value in self.__dict__.iteritems()]
-
 
5103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5104
 
-
 
5105
  def __eq__(self, other):
-
 
5106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5107
 
-
 
5108
  def __ne__(self, other):
-
 
5109
    return not (self == other)
-
 
5110
 
-
 
5111
class changeCartStatus_result:
-
 
5112
  """
-
 
5113
  Attributes:
-
 
5114
   - scx
-
 
5115
  """
-
 
5116
 
-
 
5117
  thrift_spec = (
-
 
5118
    None, # 0
-
 
5119
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
5120
  )
-
 
5121
 
-
 
5122
  def __init__(self, scx=None,):
-
 
5123
    self.scx = scx
-
 
5124
 
-
 
5125
  def read(self, iprot):
-
 
5126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5128
      return
-
 
5129
    iprot.readStructBegin()
-
 
5130
    while True:
-
 
5131
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5132
      if ftype == TType.STOP:
-
 
5133
        break
-
 
5134
      if fid == 1:
-
 
5135
        if ftype == TType.STRUCT:
-
 
5136
          self.scx = ShoppingCartException()
-
 
5137
          self.scx.read(iprot)
-
 
5138
        else:
-
 
5139
          iprot.skip(ftype)
-
 
5140
      else:
-
 
5141
        iprot.skip(ftype)
-
 
5142
      iprot.readFieldEnd()
-
 
5143
    iprot.readStructEnd()
-
 
5144
 
-
 
5145
  def write(self, oprot):
-
 
5146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5148
      return
-
 
5149
    oprot.writeStructBegin('changeCartStatus_result')
-
 
5150
    if self.scx != None:
-
 
5151
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
5152
      self.scx.write(oprot)
-
 
5153
      oprot.writeFieldEnd()
-
 
5154
    oprot.writeFieldStop()
-
 
5155
    oprot.writeStructEnd()
-
 
5156
 
-
 
5157
  def __repr__(self):
-
 
5158
    L = ['%s=%r' % (key, value)
-
 
5159
      for key, value in self.__dict__.iteritems()]
-
 
5160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5161
 
-
 
5162
  def __eq__(self, other):
-
 
5163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5164
 
-
 
5165
  def __ne__(self, other):
-
 
5166
    return not (self == other)
-
 
5167
 
-
 
5168
class addItemToCart_args:
-
 
5169
  """
-
 
5170
  Attributes:
-
 
5171
   - cartId
-
 
5172
   - itemId
-
 
5173
   - quantity
-
 
5174
  """
-
 
5175
 
-
 
5176
  thrift_spec = (
-
 
5177
    None, # 0
-
 
5178
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
5179
    (2, TType.I64, 'itemId', None, None, ), # 2
-
 
5180
    (3, TType.I64, 'quantity', None, None, ), # 3
-
 
5181
  )
-
 
5182
 
-
 
5183
  def __init__(self, cartId=None, itemId=None, quantity=None,):
-
 
5184
    self.cartId = cartId
-
 
5185
    self.itemId = itemId
-
 
5186
    self.quantity = quantity
-
 
5187
 
-
 
5188
  def read(self, iprot):
-
 
5189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5191
      return
-
 
5192
    iprot.readStructBegin()
-
 
5193
    while True:
-
 
5194
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5195
      if ftype == TType.STOP:
-
 
5196
        break
-
 
5197
      if fid == 1:
-
 
5198
        if ftype == TType.I64:
-
 
5199
          self.cartId = iprot.readI64();
-
 
5200
        else:
-
 
5201
          iprot.skip(ftype)
-
 
5202
      elif fid == 2:
-
 
5203
        if ftype == TType.I64:
-
 
5204
          self.itemId = iprot.readI64();
-
 
5205
        else:
-
 
5206
          iprot.skip(ftype)
-
 
5207
      elif fid == 3:
-
 
5208
        if ftype == TType.I64:
-
 
5209
          self.quantity = iprot.readI64();
-
 
5210
        else:
-
 
5211
          iprot.skip(ftype)
-
 
5212
      else:
-
 
5213
        iprot.skip(ftype)
-
 
5214
      iprot.readFieldEnd()
-
 
5215
    iprot.readStructEnd()
-
 
5216
 
-
 
5217
  def write(self, oprot):
-
 
5218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5220
      return
-
 
5221
    oprot.writeStructBegin('addItemToCart_args')
-
 
5222
    if self.cartId != None:
-
 
5223
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
5224
      oprot.writeI64(self.cartId)
-
 
5225
      oprot.writeFieldEnd()
3817
    if self.userid != None:
5226
    if self.itemId != None:
3818
      oprot.writeFieldBegin('userid', TType.I64, 1)
5227
      oprot.writeFieldBegin('itemId', TType.I64, 2)
-
 
5228
      oprot.writeI64(self.itemId)
-
 
5229
      oprot.writeFieldEnd()
-
 
5230
    if self.quantity != None:
-
 
5231
      oprot.writeFieldBegin('quantity', TType.I64, 3)
-
 
5232
      oprot.writeI64(self.quantity)
-
 
5233
      oprot.writeFieldEnd()
-
 
5234
    oprot.writeFieldStop()
-
 
5235
    oprot.writeStructEnd()
-
 
5236
 
-
 
5237
  def __repr__(self):
-
 
5238
    L = ['%s=%r' % (key, value)
-
 
5239
      for key, value in self.__dict__.iteritems()]
-
 
5240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5241
 
-
 
5242
  def __eq__(self, other):
-
 
5243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5244
 
-
 
5245
  def __ne__(self, other):
-
 
5246
    return not (self == other)
-
 
5247
 
-
 
5248
class addItemToCart_result:
-
 
5249
  """
-
 
5250
  Attributes:
-
 
5251
   - scx
-
 
5252
  """
-
 
5253
 
-
 
5254
  thrift_spec = (
-
 
5255
    None, # 0
-
 
5256
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
5257
  )
-
 
5258
 
-
 
5259
  def __init__(self, scx=None,):
-
 
5260
    self.scx = scx
-
 
5261
 
-
 
5262
  def read(self, iprot):
-
 
5263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5265
      return
-
 
5266
    iprot.readStructBegin()
-
 
5267
    while True:
-
 
5268
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5269
      if ftype == TType.STOP:
-
 
5270
        break
-
 
5271
      if fid == 1:
-
 
5272
        if ftype == TType.STRUCT:
-
 
5273
          self.scx = ShoppingCartException()
-
 
5274
          self.scx.read(iprot)
-
 
5275
        else:
-
 
5276
          iprot.skip(ftype)
-
 
5277
      else:
-
 
5278
        iprot.skip(ftype)
-
 
5279
      iprot.readFieldEnd()
-
 
5280
    iprot.readStructEnd()
-
 
5281
 
-
 
5282
  def write(self, oprot):
-
 
5283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5285
      return
-
 
5286
    oprot.writeStructBegin('addItemToCart_result')
-
 
5287
    if self.scx != None:
-
 
5288
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
5289
      self.scx.write(oprot)
-
 
5290
      oprot.writeFieldEnd()
-
 
5291
    oprot.writeFieldStop()
-
 
5292
    oprot.writeStructEnd()
-
 
5293
 
-
 
5294
  def __repr__(self):
-
 
5295
    L = ['%s=%r' % (key, value)
-
 
5296
      for key, value in self.__dict__.iteritems()]
-
 
5297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5298
 
-
 
5299
  def __eq__(self, other):
-
 
5300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5301
 
-
 
5302
  def __ne__(self, other):
-
 
5303
    return not (self == other)
-
 
5304
 
-
 
5305
class deleteItemFromCart_args:
-
 
5306
  """
-
 
5307
  Attributes:
-
 
5308
   - cartId
-
 
5309
   - itemId
-
 
5310
  """
-
 
5311
 
-
 
5312
  thrift_spec = (
-
 
5313
    None, # 0
-
 
5314
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
5315
    (2, TType.I64, 'itemId', None, None, ), # 2
-
 
5316
  )
-
 
5317
 
-
 
5318
  def __init__(self, cartId=None, itemId=None,):
-
 
5319
    self.cartId = cartId
-
 
5320
    self.itemId = itemId
-
 
5321
 
-
 
5322
  def read(self, iprot):
-
 
5323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5325
      return
-
 
5326
    iprot.readStructBegin()
-
 
5327
    while True:
-
 
5328
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5329
      if ftype == TType.STOP:
-
 
5330
        break
-
 
5331
      if fid == 1:
-
 
5332
        if ftype == TType.I64:
-
 
5333
          self.cartId = iprot.readI64();
-
 
5334
        else:
-
 
5335
          iprot.skip(ftype)
-
 
5336
      elif fid == 2:
-
 
5337
        if ftype == TType.I64:
-
 
5338
          self.itemId = iprot.readI64();
-
 
5339
        else:
-
 
5340
          iprot.skip(ftype)
-
 
5341
      else:
-
 
5342
        iprot.skip(ftype)
-
 
5343
      iprot.readFieldEnd()
-
 
5344
    iprot.readStructEnd()
-
 
5345
 
-
 
5346
  def write(self, oprot):
-
 
5347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5349
      return
-
 
5350
    oprot.writeStructBegin('deleteItemFromCart_args')
-
 
5351
    if self.cartId != None:
-
 
5352
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
5353
      oprot.writeI64(self.cartId)
-
 
5354
      oprot.writeFieldEnd()
-
 
5355
    if self.itemId != None:
-
 
5356
      oprot.writeFieldBegin('itemId', TType.I64, 2)
-
 
5357
      oprot.writeI64(self.itemId)
-
 
5358
      oprot.writeFieldEnd()
-
 
5359
    oprot.writeFieldStop()
-
 
5360
    oprot.writeStructEnd()
-
 
5361
 
-
 
5362
  def __repr__(self):
-
 
5363
    L = ['%s=%r' % (key, value)
-
 
5364
      for key, value in self.__dict__.iteritems()]
-
 
5365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5366
 
-
 
5367
  def __eq__(self, other):
-
 
5368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5369
 
-
 
5370
  def __ne__(self, other):
-
 
5371
    return not (self == other)
-
 
5372
 
-
 
5373
class deleteItemFromCart_result:
-
 
5374
  """
-
 
5375
  Attributes:
-
 
5376
   - scx
-
 
5377
  """
-
 
5378
 
-
 
5379
  thrift_spec = (
-
 
5380
    None, # 0
-
 
5381
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
5382
  )
-
 
5383
 
-
 
5384
  def __init__(self, scx=None,):
-
 
5385
    self.scx = scx
-
 
5386
 
-
 
5387
  def read(self, iprot):
-
 
5388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5390
      return
-
 
5391
    iprot.readStructBegin()
-
 
5392
    while True:
-
 
5393
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5394
      if ftype == TType.STOP:
-
 
5395
        break
-
 
5396
      if fid == 1:
-
 
5397
        if ftype == TType.STRUCT:
-
 
5398
          self.scx = ShoppingCartException()
-
 
5399
          self.scx.read(iprot)
-
 
5400
        else:
-
 
5401
          iprot.skip(ftype)
-
 
5402
      else:
-
 
5403
        iprot.skip(ftype)
-
 
5404
      iprot.readFieldEnd()
-
 
5405
    iprot.readStructEnd()
-
 
5406
 
-
 
5407
  def write(self, oprot):
-
 
5408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5410
      return
-
 
5411
    oprot.writeStructBegin('deleteItemFromCart_result')
-
 
5412
    if self.scx != None:
-
 
5413
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
5414
      self.scx.write(oprot)
-
 
5415
      oprot.writeFieldEnd()
-
 
5416
    oprot.writeFieldStop()
-
 
5417
    oprot.writeStructEnd()
-
 
5418
 
-
 
5419
  def __repr__(self):
-
 
5420
    L = ['%s=%r' % (key, value)
-
 
5421
      for key, value in self.__dict__.iteritems()]
-
 
5422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5423
 
-
 
5424
  def __eq__(self, other):
-
 
5425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5426
 
-
 
5427
  def __ne__(self, other):
-
 
5428
    return not (self == other)
-
 
5429
 
-
 
5430
class changeQuantity_args:
-
 
5431
  """
-
 
5432
  Attributes:
-
 
5433
   - cartId
-
 
5434
   - itemId
-
 
5435
   - quantity
-
 
5436
  """
-
 
5437
 
-
 
5438
  thrift_spec = (
-
 
5439
    None, # 0
-
 
5440
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
5441
    (2, TType.I64, 'itemId', None, None, ), # 2
-
 
5442
    (3, TType.I64, 'quantity', None, None, ), # 3
-
 
5443
  )
-
 
5444
 
-
 
5445
  def __init__(self, cartId=None, itemId=None, quantity=None,):
-
 
5446
    self.cartId = cartId
-
 
5447
    self.itemId = itemId
-
 
5448
    self.quantity = quantity
-
 
5449
 
-
 
5450
  def read(self, iprot):
-
 
5451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5453
      return
-
 
5454
    iprot.readStructBegin()
-
 
5455
    while True:
-
 
5456
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5457
      if ftype == TType.STOP:
-
 
5458
        break
-
 
5459
      if fid == 1:
-
 
5460
        if ftype == TType.I64:
-
 
5461
          self.cartId = iprot.readI64();
-
 
5462
        else:
-
 
5463
          iprot.skip(ftype)
-
 
5464
      elif fid == 2:
-
 
5465
        if ftype == TType.I64:
-
 
5466
          self.itemId = iprot.readI64();
-
 
5467
        else:
-
 
5468
          iprot.skip(ftype)
-
 
5469
      elif fid == 3:
-
 
5470
        if ftype == TType.I64:
-
 
5471
          self.quantity = iprot.readI64();
-
 
5472
        else:
-
 
5473
          iprot.skip(ftype)
-
 
5474
      else:
-
 
5475
        iprot.skip(ftype)
-
 
5476
      iprot.readFieldEnd()
-
 
5477
    iprot.readStructEnd()
-
 
5478
 
-
 
5479
  def write(self, oprot):
-
 
5480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5482
      return
-
 
5483
    oprot.writeStructBegin('changeQuantity_args')
-
 
5484
    if self.cartId != None:
-
 
5485
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
5486
      oprot.writeI64(self.cartId)
-
 
5487
      oprot.writeFieldEnd()
-
 
5488
    if self.itemId != None:
-
 
5489
      oprot.writeFieldBegin('itemId', TType.I64, 2)
-
 
5490
      oprot.writeI64(self.itemId)
-
 
5491
      oprot.writeFieldEnd()
-
 
5492
    if self.quantity != None:
-
 
5493
      oprot.writeFieldBegin('quantity', TType.I64, 3)
-
 
5494
      oprot.writeI64(self.quantity)
-
 
5495
      oprot.writeFieldEnd()
-
 
5496
    oprot.writeFieldStop()
-
 
5497
    oprot.writeStructEnd()
-
 
5498
 
-
 
5499
  def __repr__(self):
-
 
5500
    L = ['%s=%r' % (key, value)
-
 
5501
      for key, value in self.__dict__.iteritems()]
-
 
5502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5503
 
-
 
5504
  def __eq__(self, other):
-
 
5505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5506
 
-
 
5507
  def __ne__(self, other):
-
 
5508
    return not (self == other)
-
 
5509
 
-
 
5510
class changeQuantity_result:
-
 
5511
  """
-
 
5512
  Attributes:
-
 
5513
   - scx
-
 
5514
  """
-
 
5515
 
-
 
5516
  thrift_spec = (
-
 
5517
    None, # 0
-
 
5518
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
5519
  )
-
 
5520
 
-
 
5521
  def __init__(self, scx=None,):
-
 
5522
    self.scx = scx
-
 
5523
 
-
 
5524
  def read(self, iprot):
-
 
5525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5527
      return
-
 
5528
    iprot.readStructBegin()
-
 
5529
    while True:
-
 
5530
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5531
      if ftype == TType.STOP:
-
 
5532
        break
-
 
5533
      if fid == 1:
-
 
5534
        if ftype == TType.STRUCT:
-
 
5535
          self.scx = ShoppingCartException()
-
 
5536
          self.scx.read(iprot)
-
 
5537
        else:
-
 
5538
          iprot.skip(ftype)
-
 
5539
      else:
-
 
5540
        iprot.skip(ftype)
-
 
5541
      iprot.readFieldEnd()
-
 
5542
    iprot.readStructEnd()
-
 
5543
 
-
 
5544
  def write(self, oprot):
-
 
5545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5547
      return
-
 
5548
    oprot.writeStructBegin('changeQuantity_result')
-
 
5549
    if self.scx != None:
-
 
5550
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
5551
      self.scx.write(oprot)
-
 
5552
      oprot.writeFieldEnd()
-
 
5553
    oprot.writeFieldStop()
-
 
5554
    oprot.writeStructEnd()
-
 
5555
 
-
 
5556
  def __repr__(self):
-
 
5557
    L = ['%s=%r' % (key, value)
-
 
5558
      for key, value in self.__dict__.iteritems()]
-
 
5559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5560
 
-
 
5561
  def __eq__(self, other):
-
 
5562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5563
 
-
 
5564
  def __ne__(self, other):
-
 
5565
    return not (self == other)
-
 
5566
 
-
 
5567
class changeItemStatus_args:
-
 
5568
  """
-
 
5569
  Attributes:
-
 
5570
   - cartId
-
 
5571
   - itemId
-
 
5572
   - status
-
 
5573
  """
-
 
5574
 
-
 
5575
  thrift_spec = (
-
 
5576
    None, # 0
-
 
5577
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
5578
    (2, TType.I64, 'itemId', None, None, ), # 2
-
 
5579
    (3, TType.I32, 'status', None, None, ), # 3
-
 
5580
  )
-
 
5581
 
-
 
5582
  def __init__(self, cartId=None, itemId=None, status=None,):
-
 
5583
    self.cartId = cartId
-
 
5584
    self.itemId = itemId
-
 
5585
    self.status = status
-
 
5586
 
-
 
5587
  def read(self, iprot):
-
 
5588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5590
      return
-
 
5591
    iprot.readStructBegin()
-
 
5592
    while True:
-
 
5593
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5594
      if ftype == TType.STOP:
-
 
5595
        break
-
 
5596
      if fid == 1:
-
 
5597
        if ftype == TType.I64:
-
 
5598
          self.cartId = iprot.readI64();
-
 
5599
        else:
-
 
5600
          iprot.skip(ftype)
-
 
5601
      elif fid == 2:
-
 
5602
        if ftype == TType.I64:
-
 
5603
          self.itemId = iprot.readI64();
-
 
5604
        else:
-
 
5605
          iprot.skip(ftype)
-
 
5606
      elif fid == 3:
-
 
5607
        if ftype == TType.I32:
-
 
5608
          self.status = iprot.readI32();
-
 
5609
        else:
-
 
5610
          iprot.skip(ftype)
-
 
5611
      else:
-
 
5612
        iprot.skip(ftype)
-
 
5613
      iprot.readFieldEnd()
-
 
5614
    iprot.readStructEnd()
-
 
5615
 
-
 
5616
  def write(self, oprot):
-
 
5617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5619
      return
-
 
5620
    oprot.writeStructBegin('changeItemStatus_args')
-
 
5621
    if self.cartId != None:
-
 
5622
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
5623
      oprot.writeI64(self.cartId)
-
 
5624
      oprot.writeFieldEnd()
-
 
5625
    if self.itemId != None:
-
 
5626
      oprot.writeFieldBegin('itemId', TType.I64, 2)
3819
      oprot.writeI64(self.userid)
5627
      oprot.writeI64(self.itemId)
-
 
5628
      oprot.writeFieldEnd()
-
 
5629
    if self.status != None:
-
 
5630
      oprot.writeFieldBegin('status', TType.I32, 3)
-
 
5631
      oprot.writeI32(self.status)
-
 
5632
      oprot.writeFieldEnd()
-
 
5633
    oprot.writeFieldStop()
-
 
5634
    oprot.writeStructEnd()
-
 
5635
 
-
 
5636
  def __repr__(self):
-
 
5637
    L = ['%s=%r' % (key, value)
-
 
5638
      for key, value in self.__dict__.iteritems()]
-
 
5639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5640
 
-
 
5641
  def __eq__(self, other):
-
 
5642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5643
 
-
 
5644
  def __ne__(self, other):
-
 
5645
    return not (self == other)
-
 
5646
 
-
 
5647
class changeItemStatus_result:
-
 
5648
  """
-
 
5649
  Attributes:
-
 
5650
   - scx
-
 
5651
  """
-
 
5652
 
-
 
5653
  thrift_spec = (
-
 
5654
    None, # 0
-
 
5655
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
-
 
5656
  )
-
 
5657
 
-
 
5658
  def __init__(self, scx=None,):
-
 
5659
    self.scx = scx
-
 
5660
 
-
 
5661
  def read(self, iprot):
-
 
5662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5664
      return
-
 
5665
    iprot.readStructBegin()
-
 
5666
    while True:
-
 
5667
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5668
      if ftype == TType.STOP:
-
 
5669
        break
-
 
5670
      if fid == 1:
-
 
5671
        if ftype == TType.STRUCT:
-
 
5672
          self.scx = ShoppingCartException()
-
 
5673
          self.scx.read(iprot)
-
 
5674
        else:
-
 
5675
          iprot.skip(ftype)
-
 
5676
      else:
-
 
5677
        iprot.skip(ftype)
-
 
5678
      iprot.readFieldEnd()
-
 
5679
    iprot.readStructEnd()
-
 
5680
 
-
 
5681
  def write(self, oprot):
-
 
5682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5684
      return
-
 
5685
    oprot.writeStructBegin('changeItemStatus_result')
-
 
5686
    if self.scx != None:
-
 
5687
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
5688
      self.scx.write(oprot)
3820
      oprot.writeFieldEnd()
5689
      oprot.writeFieldEnd()
3821
    oprot.writeFieldStop()
5690
    oprot.writeFieldStop()
3822
    oprot.writeStructEnd()
5691
    oprot.writeStructEnd()
3823
 
5692
 
3824
  def __repr__(self):
5693
  def __repr__(self):
Line 3830... Line 5699...
3830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3831
 
5700
 
3832
  def __ne__(self, other):
5701
  def __ne__(self, other):
3833
    return not (self == other)
5702
    return not (self == other)
3834
 
5703
 
-
 
5704
class addAddressToCart_args:
-
 
5705
  """
-
 
5706
  Attributes:
-
 
5707
   - cartId
-
 
5708
   - addressId
-
 
5709
  """
-
 
5710
 
-
 
5711
  thrift_spec = (
-
 
5712
    None, # 0
-
 
5713
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
5714
    (2, TType.I64, 'addressId', None, None, ), # 2
-
 
5715
  )
-
 
5716
 
-
 
5717
  def __init__(self, cartId=None, addressId=None,):
-
 
5718
    self.cartId = cartId
-
 
5719
    self.addressId = addressId
-
 
5720
 
-
 
5721
  def read(self, iprot):
-
 
5722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5724
      return
-
 
5725
    iprot.readStructBegin()
-
 
5726
    while True:
-
 
5727
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5728
      if ftype == TType.STOP:
-
 
5729
        break
-
 
5730
      if fid == 1:
-
 
5731
        if ftype == TType.I64:
-
 
5732
          self.cartId = iprot.readI64();
-
 
5733
        else:
-
 
5734
          iprot.skip(ftype)
-
 
5735
      elif fid == 2:
-
 
5736
        if ftype == TType.I64:
-
 
5737
          self.addressId = iprot.readI64();
-
 
5738
        else:
-
 
5739
          iprot.skip(ftype)
-
 
5740
      else:
-
 
5741
        iprot.skip(ftype)
-
 
5742
      iprot.readFieldEnd()
-
 
5743
    iprot.readStructEnd()
-
 
5744
 
-
 
5745
  def write(self, oprot):
-
 
5746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5748
      return
-
 
5749
    oprot.writeStructBegin('addAddressToCart_args')
-
 
5750
    if self.cartId != None:
-
 
5751
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
5752
      oprot.writeI64(self.cartId)
-
 
5753
      oprot.writeFieldEnd()
-
 
5754
    if self.addressId != None:
-
 
5755
      oprot.writeFieldBegin('addressId', TType.I64, 2)
-
 
5756
      oprot.writeI64(self.addressId)
-
 
5757
      oprot.writeFieldEnd()
-
 
5758
    oprot.writeFieldStop()
-
 
5759
    oprot.writeStructEnd()
-
 
5760
 
-
 
5761
  def __repr__(self):
-
 
5762
    L = ['%s=%r' % (key, value)
-
 
5763
      for key, value in self.__dict__.iteritems()]
-
 
5764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5765
 
-
 
5766
  def __eq__(self, other):
-
 
5767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5768
 
-
 
5769
  def __ne__(self, other):
-
 
5770
    return not (self == other)
-
 
5771
 
3835
class sendEmailVerification_result:
5772
class addAddressToCart_result:
-
 
5773
 
-
 
5774
  thrift_spec = (
-
 
5775
  )
-
 
5776
 
-
 
5777
  def read(self, iprot):
-
 
5778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5780
      return
-
 
5781
    iprot.readStructBegin()
-
 
5782
    while True:
-
 
5783
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5784
      if ftype == TType.STOP:
-
 
5785
        break
-
 
5786
      else:
-
 
5787
        iprot.skip(ftype)
-
 
5788
      iprot.readFieldEnd()
-
 
5789
    iprot.readStructEnd()
-
 
5790
 
-
 
5791
  def write(self, oprot):
-
 
5792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5794
      return
-
 
5795
    oprot.writeStructBegin('addAddressToCart_result')
-
 
5796
    oprot.writeFieldStop()
-
 
5797
    oprot.writeStructEnd()
-
 
5798
 
-
 
5799
  def __repr__(self):
-
 
5800
    L = ['%s=%r' % (key, value)
-
 
5801
      for key, value in self.__dict__.iteritems()]
-
 
5802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5803
 
-
 
5804
  def __eq__(self, other):
-
 
5805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5806
 
-
 
5807
  def __ne__(self, other):
-
 
5808
    return not (self == other)
-
 
5809
 
-
 
5810
class commitCart_args:
-
 
5811
  """
-
 
5812
  Attributes:
-
 
5813
   - cartId
-
 
5814
  """
-
 
5815
 
-
 
5816
  thrift_spec = (
-
 
5817
    None, # 0
-
 
5818
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
5819
  )
-
 
5820
 
-
 
5821
  def __init__(self, cartId=None,):
-
 
5822
    self.cartId = cartId
-
 
5823
 
-
 
5824
  def read(self, iprot):
-
 
5825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5827
      return
-
 
5828
    iprot.readStructBegin()
-
 
5829
    while True:
-
 
5830
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5831
      if ftype == TType.STOP:
-
 
5832
        break
-
 
5833
      if fid == 1:
-
 
5834
        if ftype == TType.I64:
-
 
5835
          self.cartId = iprot.readI64();
-
 
5836
        else:
-
 
5837
          iprot.skip(ftype)
-
 
5838
      else:
-
 
5839
        iprot.skip(ftype)
-
 
5840
      iprot.readFieldEnd()
-
 
5841
    iprot.readStructEnd()
-
 
5842
 
-
 
5843
  def write(self, oprot):
-
 
5844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5846
      return
-
 
5847
    oprot.writeStructBegin('commitCart_args')
-
 
5848
    if self.cartId != None:
-
 
5849
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
5850
      oprot.writeI64(self.cartId)
-
 
5851
      oprot.writeFieldEnd()
-
 
5852
    oprot.writeFieldStop()
-
 
5853
    oprot.writeStructEnd()
-
 
5854
 
-
 
5855
  def __repr__(self):
-
 
5856
    L = ['%s=%r' % (key, value)
-
 
5857
      for key, value in self.__dict__.iteritems()]
-
 
5858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5859
 
-
 
5860
  def __eq__(self, other):
-
 
5861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5862
 
-
 
5863
  def __ne__(self, other):
-
 
5864
    return not (self == other)
-
 
5865
 
-
 
5866
class commitCart_result:
3836
  """
5867
  """
3837
  Attributes:
5868
  Attributes:
3838
   - success
5869
   - success
3839
   - ucx
5870
   - scx
3840
  """
5871
  """
3841
 
5872
 
3842
  thrift_spec = (
5873
  thrift_spec = (
3843
    (0, TType.BOOL, 'success', None, None, ), # 0
5874
    (0, TType.BOOL, 'success', None, None, ), # 0
3844
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5875
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
3845
  )
5876
  )
3846
 
5877
 
3847
  def __init__(self, success=None, ucx=None,):
5878
  def __init__(self, success=None, scx=None,):
3848
    self.success = success
5879
    self.success = success
3849
    self.ucx = ucx
5880
    self.scx = scx
3850
 
5881
 
3851
  def read(self, iprot):
5882
  def read(self, iprot):
3852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3854
      return
5885
      return
Line 3862... Line 5893...
3862
          self.success = iprot.readBool();
5893
          self.success = iprot.readBool();
3863
        else:
5894
        else:
3864
          iprot.skip(ftype)
5895
          iprot.skip(ftype)
3865
      elif fid == 1:
5896
      elif fid == 1:
3866
        if ftype == TType.STRUCT:
5897
        if ftype == TType.STRUCT:
3867
          self.ucx = UserContextException()
5898
          self.scx = ShoppingCartException()
3868
          self.ucx.read(iprot)
5899
          self.scx.read(iprot)
3869
        else:
5900
        else:
3870
          iprot.skip(ftype)
5901
          iprot.skip(ftype)
3871
      else:
5902
      else:
3872
        iprot.skip(ftype)
5903
        iprot.skip(ftype)
3873
      iprot.readFieldEnd()
5904
      iprot.readFieldEnd()
Line 3875... Line 5906...
3875
 
5906
 
3876
  def write(self, oprot):
5907
  def write(self, oprot):
3877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3879
      return
5910
      return
3880
    oprot.writeStructBegin('sendEmailVerification_result')
5911
    oprot.writeStructBegin('commitCart_result')
3881
    if self.success != None:
5912
    if self.success != None:
3882
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5913
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3883
      oprot.writeBool(self.success)
5914
      oprot.writeBool(self.success)
3884
      oprot.writeFieldEnd()
5915
      oprot.writeFieldEnd()
3885
    if self.ucx != None:
5916
    if self.scx != None:
3886
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5917
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
3887
      self.ucx.write(oprot)
5918
      self.scx.write(oprot)
3888
      oprot.writeFieldEnd()
5919
      oprot.writeFieldEnd()
3889
    oprot.writeFieldStop()
5920
    oprot.writeFieldStop()
3890
    oprot.writeStructEnd()
5921
    oprot.writeStructEnd()
3891
 
5922
 
3892
  def __repr__(self):
5923
  def __repr__(self):
Line 3898... Line 5929...
3898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5929
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3899
 
5930
 
3900
  def __ne__(self, other):
5931
  def __ne__(self, other):
3901
    return not (self == other)
5932
    return not (self == other)
3902
 
5933
 
3903
class sendSMSVerification_args:
5934
class validateCart_args:
3904
  """
5935
  """
3905
  Attributes:
5936
  Attributes:
3906
   - userid
5937
   - cartId
3907
  """
5938
  """
3908
 
5939
 
3909
  thrift_spec = (
5940
  thrift_spec = (
3910
    None, # 0
5941
    None, # 0
3911
    (1, TType.I64, 'userid', None, None, ), # 1
5942
    (1, TType.I64, 'cartId', None, None, ), # 1
3912
  )
5943
  )
3913
 
5944
 
3914
  def __init__(self, userid=None,):
5945
  def __init__(self, cartId=None,):
3915
    self.userid = userid
5946
    self.cartId = cartId
3916
 
5947
 
3917
  def read(self, iprot):
5948
  def read(self, iprot):
3918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3920
      return
5951
      return
Line 3923... Line 5954...
3923
      (fname, ftype, fid) = iprot.readFieldBegin()
5954
      (fname, ftype, fid) = iprot.readFieldBegin()
3924
      if ftype == TType.STOP:
5955
      if ftype == TType.STOP:
3925
        break
5956
        break
3926
      if fid == 1:
5957
      if fid == 1:
3927
        if ftype == TType.I64:
5958
        if ftype == TType.I64:
3928
          self.userid = iprot.readI64();
5959
          self.cartId = iprot.readI64();
3929
        else:
5960
        else:
3930
          iprot.skip(ftype)
5961
          iprot.skip(ftype)
3931
      else:
5962
      else:
3932
        iprot.skip(ftype)
5963
        iprot.skip(ftype)
3933
      iprot.readFieldEnd()
5964
      iprot.readFieldEnd()
Line 3935... Line 5966...
3935
 
5966
 
3936
  def write(self, oprot):
5967
  def write(self, oprot):
3937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3939
      return
5970
      return
3940
    oprot.writeStructBegin('sendSMSVerification_args')
5971
    oprot.writeStructBegin('validateCart_args')
3941
    if self.userid != None:
5972
    if self.cartId != None:
3942
      oprot.writeFieldBegin('userid', TType.I64, 1)
5973
      oprot.writeFieldBegin('cartId', TType.I64, 1)
3943
      oprot.writeI64(self.userid)
5974
      oprot.writeI64(self.cartId)
3944
      oprot.writeFieldEnd()
5975
      oprot.writeFieldEnd()
3945
    oprot.writeFieldStop()
5976
    oprot.writeFieldStop()
3946
    oprot.writeStructEnd()
5977
    oprot.writeStructEnd()
3947
 
5978
 
3948
  def __repr__(self):
5979
  def __repr__(self):
Line 3954... Line 5985...
3954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3955
 
5986
 
3956
  def __ne__(self, other):
5987
  def __ne__(self, other):
3957
    return not (self == other)
5988
    return not (self == other)
3958
 
5989
 
3959
class sendSMSVerification_result:
5990
class validateCart_result:
3960
  """
5991
  """
3961
  Attributes:
5992
  Attributes:
3962
   - success
5993
   - success
3963
   - ucx
-
 
3964
  """
5994
  """
3965
 
5995
 
3966
  thrift_spec = (
5996
  thrift_spec = (
3967
    (0, TType.BOOL, 'success', None, None, ), # 0
5997
    (0, TType.BOOL, 'success', None, None, ), # 0
3968
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
-
 
3969
  )
5998
  )
3970
 
5999
 
3971
  def __init__(self, success=None, ucx=None,):
6000
  def __init__(self, success=None,):
3972
    self.success = success
6001
    self.success = success
3973
    self.ucx = ucx
-
 
3974
 
6002
 
3975
  def read(self, iprot):
6003
  def read(self, iprot):
3976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3978
      return
6006
      return
Line 3984... Line 6012...
3984
      if fid == 0:
6012
      if fid == 0:
3985
        if ftype == TType.BOOL:
6013
        if ftype == TType.BOOL:
3986
          self.success = iprot.readBool();
6014
          self.success = iprot.readBool();
3987
        else:
6015
        else:
3988
          iprot.skip(ftype)
6016
          iprot.skip(ftype)
3989
      elif fid == 1:
-
 
3990
        if ftype == TType.STRUCT:
-
 
3991
          self.ucx = UserContextException()
-
 
3992
          self.ucx.read(iprot)
-
 
3993
        else:
-
 
3994
          iprot.skip(ftype)
-
 
3995
      else:
6017
      else:
3996
        iprot.skip(ftype)
6018
        iprot.skip(ftype)
3997
      iprot.readFieldEnd()
6019
      iprot.readFieldEnd()
3998
    iprot.readStructEnd()
6020
    iprot.readStructEnd()
3999
 
6021
 
4000
  def write(self, oprot):
6022
  def write(self, oprot):
4001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4003
      return
6025
      return
4004
    oprot.writeStructBegin('sendSMSVerification_result')
6026
    oprot.writeStructBegin('validateCart_result')
4005
    if self.success != None:
6027
    if self.success != None:
4006
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6028
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4007
      oprot.writeBool(self.success)
6029
      oprot.writeBool(self.success)
4008
      oprot.writeFieldEnd()
6030
      oprot.writeFieldEnd()
-
 
6031
    oprot.writeFieldStop()
-
 
6032
    oprot.writeStructEnd()
-
 
6033
 
-
 
6034
  def __repr__(self):
-
 
6035
    L = ['%s=%r' % (key, value)
-
 
6036
      for key, value in self.__dict__.iteritems()]
-
 
6037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6038
 
-
 
6039
  def __eq__(self, other):
-
 
6040
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6041
 
-
 
6042
  def __ne__(self, other):
-
 
6043
    return not (self == other)
-
 
6044
 
-
 
6045
class mergeCart_args:
-
 
6046
  """
-
 
6047
  Attributes:
-
 
6048
   - fromCartId
-
 
6049
   - toCartId
-
 
6050
  """
-
 
6051
 
-
 
6052
  thrift_spec = (
-
 
6053
    None, # 0
-
 
6054
    (1, TType.I64, 'fromCartId', None, None, ), # 1
-
 
6055
    (2, TType.I64, 'toCartId', None, None, ), # 2
-
 
6056
  )
-
 
6057
 
-
 
6058
  def __init__(self, fromCartId=None, toCartId=None,):
-
 
6059
    self.fromCartId = fromCartId
-
 
6060
    self.toCartId = toCartId
-
 
6061
 
-
 
6062
  def read(self, iprot):
-
 
6063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6065
      return
-
 
6066
    iprot.readStructBegin()
-
 
6067
    while True:
-
 
6068
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6069
      if ftype == TType.STOP:
-
 
6070
        break
-
 
6071
      if fid == 1:
-
 
6072
        if ftype == TType.I64:
-
 
6073
          self.fromCartId = iprot.readI64();
-
 
6074
        else:
-
 
6075
          iprot.skip(ftype)
-
 
6076
      elif fid == 2:
-
 
6077
        if ftype == TType.I64:
-
 
6078
          self.toCartId = iprot.readI64();
-
 
6079
        else:
-
 
6080
          iprot.skip(ftype)
-
 
6081
      else:
-
 
6082
        iprot.skip(ftype)
-
 
6083
      iprot.readFieldEnd()
-
 
6084
    iprot.readStructEnd()
-
 
6085
 
-
 
6086
  def write(self, oprot):
-
 
6087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6089
      return
-
 
6090
    oprot.writeStructBegin('mergeCart_args')
4009
    if self.ucx != None:
6091
    if self.fromCartId != None:
4010
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6092
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
-
 
6093
      oprot.writeI64(self.fromCartId)
4011
      self.ucx.write(oprot)
6094
      oprot.writeFieldEnd()
-
 
6095
    if self.toCartId != None:
-
 
6096
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
-
 
6097
      oprot.writeI64(self.toCartId)
4012
      oprot.writeFieldEnd()
6098
      oprot.writeFieldEnd()
4013
    oprot.writeFieldStop()
6099
    oprot.writeFieldStop()
4014
    oprot.writeStructEnd()
6100
    oprot.writeStructEnd()
4015
 
6101
 
4016
  def __repr__(self):
6102
  def __repr__(self):
Line 4022... Line 6108...
4022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4023
 
6109
 
4024
  def __ne__(self, other):
6110
  def __ne__(self, other):
4025
    return not (self == other)
6111
    return not (self == other)
4026
 
6112
 
-
 
6113
class mergeCart_result:
-
 
6114
 
-
 
6115
  thrift_spec = (
-
 
6116
  )
-
 
6117
 
-
 
6118
  def read(self, iprot):
-
 
6119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6121
      return
-
 
6122
    iprot.readStructBegin()
-
 
6123
    while True:
-
 
6124
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6125
      if ftype == TType.STOP:
-
 
6126
        break
-
 
6127
      else:
-
 
6128
        iprot.skip(ftype)
-
 
6129
      iprot.readFieldEnd()
-
 
6130
    iprot.readStructEnd()
-
 
6131
 
-
 
6132
  def write(self, oprot):
-
 
6133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6135
      return
-
 
6136
    oprot.writeStructBegin('mergeCart_result')
-
 
6137
    oprot.writeFieldStop()
-
 
6138
    oprot.writeStructEnd()
-
 
6139
 
-
 
6140
  def __repr__(self):
-
 
6141
    L = ['%s=%r' % (key, value)
-
 
6142
      for key, value in self.__dict__.iteritems()]
-
 
6143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6144
 
-
 
6145
  def __eq__(self, other):
-
 
6146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6147
 
-
 
6148
  def __ne__(self, other):
-
 
6149
    return not (self == other)
-
 
6150
 
4027
class confirmEmailVerification_args:
6151
class addWidget_args:
4028
  """
6152
  """
4029
  Attributes:
6153
  Attributes:
4030
   - userid
6154
   - widget
4031
  """
6155
  """
4032
 
6156
 
4033
  thrift_spec = (
6157
  thrift_spec = (
4034
    None, # 0
6158
    None, # 0
4035
    (1, TType.I64, 'userid', None, None, ), # 1
6159
    (1, TType.STRUCT, 'widget', (Widget, Widget.thrift_spec), None, ), # 1
4036
  )
6160
  )
4037
 
6161
 
-
 
6162
  def __init__(self, widget=None,):
-
 
6163
    self.widget = widget
-
 
6164
 
-
 
6165
  def read(self, iprot):
-
 
6166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6168
      return
-
 
6169
    iprot.readStructBegin()
-
 
6170
    while True:
-
 
6171
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6172
      if ftype == TType.STOP:
-
 
6173
        break
-
 
6174
      if fid == 1:
-
 
6175
        if ftype == TType.STRUCT:
-
 
6176
          self.widget = Widget()
-
 
6177
          self.widget.read(iprot)
-
 
6178
        else:
-
 
6179
          iprot.skip(ftype)
-
 
6180
      else:
-
 
6181
        iprot.skip(ftype)
-
 
6182
      iprot.readFieldEnd()
-
 
6183
    iprot.readStructEnd()
-
 
6184
 
-
 
6185
  def write(self, oprot):
-
 
6186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6188
      return
-
 
6189
    oprot.writeStructBegin('addWidget_args')
-
 
6190
    if self.widget != None:
-
 
6191
      oprot.writeFieldBegin('widget', TType.STRUCT, 1)
-
 
6192
      self.widget.write(oprot)
-
 
6193
      oprot.writeFieldEnd()
-
 
6194
    oprot.writeFieldStop()
-
 
6195
    oprot.writeStructEnd()
-
 
6196
 
-
 
6197
  def __repr__(self):
-
 
6198
    L = ['%s=%r' % (key, value)
-
 
6199
      for key, value in self.__dict__.iteritems()]
-
 
6200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6201
 
-
 
6202
  def __eq__(self, other):
-
 
6203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6204
 
-
 
6205
  def __ne__(self, other):
-
 
6206
    return not (self == other)
-
 
6207
 
-
 
6208
class addWidget_result:
-
 
6209
  """
-
 
6210
  Attributes:
-
 
6211
   - scx
-
 
6212
  """
-
 
6213
 
-
 
6214
  thrift_spec = (
-
 
6215
    None, # 0
-
 
6216
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
6217
  )
-
 
6218
 
4038
  def __init__(self, userid=None,):
6219
  def __init__(self, scx=None,):
-
 
6220
    self.scx = scx
-
 
6221
 
-
 
6222
  def read(self, iprot):
-
 
6223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6225
      return
-
 
6226
    iprot.readStructBegin()
-
 
6227
    while True:
-
 
6228
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6229
      if ftype == TType.STOP:
-
 
6230
        break
-
 
6231
      if fid == 1:
-
 
6232
        if ftype == TType.STRUCT:
-
 
6233
          self.scx = WidgetException()
-
 
6234
          self.scx.read(iprot)
-
 
6235
        else:
-
 
6236
          iprot.skip(ftype)
-
 
6237
      else:
-
 
6238
        iprot.skip(ftype)
-
 
6239
      iprot.readFieldEnd()
-
 
6240
    iprot.readStructEnd()
-
 
6241
 
-
 
6242
  def write(self, oprot):
-
 
6243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6245
      return
-
 
6246
    oprot.writeStructBegin('addWidget_result')
-
 
6247
    if self.scx != None:
-
 
6248
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
6249
      self.scx.write(oprot)
-
 
6250
      oprot.writeFieldEnd()
-
 
6251
    oprot.writeFieldStop()
-
 
6252
    oprot.writeStructEnd()
-
 
6253
 
-
 
6254
  def __repr__(self):
-
 
6255
    L = ['%s=%r' % (key, value)
-
 
6256
      for key, value in self.__dict__.iteritems()]
-
 
6257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6258
 
-
 
6259
  def __eq__(self, other):
-
 
6260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6261
 
-
 
6262
  def __ne__(self, other):
-
 
6263
    return not (self == other)
-
 
6264
 
-
 
6265
class addItemToWidget_args:
-
 
6266
  """
-
 
6267
  Attributes:
-
 
6268
   - widget_id
-
 
6269
   - items
-
 
6270
  """
-
 
6271
 
-
 
6272
  thrift_spec = (
-
 
6273
    None, # 0
-
 
6274
    (1, TType.I64, 'widget_id', None, None, ), # 1
-
 
6275
    (2, TType.LIST, 'items', (TType.I64,None), None, ), # 2
-
 
6276
  )
-
 
6277
 
-
 
6278
  def __init__(self, widget_id=None, items=None,):
-
 
6279
    self.widget_id = widget_id
4039
    self.userid = userid
6280
    self.items = items
4040
 
6281
 
4041
  def read(self, iprot):
6282
  def read(self, iprot):
4042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4044
      return
6285
      return
Line 4047... Line 6288...
4047
      (fname, ftype, fid) = iprot.readFieldBegin()
6288
      (fname, ftype, fid) = iprot.readFieldBegin()
4048
      if ftype == TType.STOP:
6289
      if ftype == TType.STOP:
4049
        break
6290
        break
4050
      if fid == 1:
6291
      if fid == 1:
4051
        if ftype == TType.I64:
6292
        if ftype == TType.I64:
4052
          self.userid = iprot.readI64();
6293
          self.widget_id = iprot.readI64();
-
 
6294
        else:
-
 
6295
          iprot.skip(ftype)
-
 
6296
      elif fid == 2:
-
 
6297
        if ftype == TType.LIST:
-
 
6298
          self.items = []
-
 
6299
          (_etype68, _size65) = iprot.readListBegin()
-
 
6300
          for _i69 in xrange(_size65):
-
 
6301
            _elem70 = iprot.readI64();
-
 
6302
            self.items.append(_elem70)
-
 
6303
          iprot.readListEnd()
4053
        else:
6304
        else:
4054
          iprot.skip(ftype)
6305
          iprot.skip(ftype)
4055
      else:
6306
      else:
4056
        iprot.skip(ftype)
6307
        iprot.skip(ftype)
4057
      iprot.readFieldEnd()
6308
      iprot.readFieldEnd()
Line 4059... Line 6310...
4059
 
6310
 
4060
  def write(self, oprot):
6311
  def write(self, oprot):
4061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4063
      return
6314
      return
4064
    oprot.writeStructBegin('confirmEmailVerification_args')
6315
    oprot.writeStructBegin('addItemToWidget_args')
4065
    if self.userid != None:
6316
    if self.widget_id != None:
4066
      oprot.writeFieldBegin('userid', TType.I64, 1)
6317
      oprot.writeFieldBegin('widget_id', TType.I64, 1)
4067
      oprot.writeI64(self.userid)
6318
      oprot.writeI64(self.widget_id)
-
 
6319
      oprot.writeFieldEnd()
-
 
6320
    if self.items != None:
-
 
6321
      oprot.writeFieldBegin('items', TType.LIST, 2)
-
 
6322
      oprot.writeListBegin(TType.I64, len(self.items))
-
 
6323
      for iter71 in self.items:
-
 
6324
        oprot.writeI64(iter71)
-
 
6325
      oprot.writeListEnd()
4068
      oprot.writeFieldEnd()
6326
      oprot.writeFieldEnd()
4069
    oprot.writeFieldStop()
6327
    oprot.writeFieldStop()
4070
    oprot.writeStructEnd()
6328
    oprot.writeStructEnd()
4071
 
6329
 
4072
  def __repr__(self):
6330
  def __repr__(self):
Line 4078... Line 6336...
4078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4079
 
6337
 
4080
  def __ne__(self, other):
6338
  def __ne__(self, other):
4081
    return not (self == other)
6339
    return not (self == other)
4082
 
6340
 
4083
class confirmEmailVerification_result:
6341
class addItemToWidget_result:
-
 
6342
  """
-
 
6343
  Attributes:
-
 
6344
   - scx
-
 
6345
  """
-
 
6346
 
-
 
6347
  thrift_spec = (
-
 
6348
    None, # 0
-
 
6349
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
6350
  )
-
 
6351
 
-
 
6352
  def __init__(self, scx=None,):
-
 
6353
    self.scx = scx
-
 
6354
 
-
 
6355
  def read(self, iprot):
-
 
6356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6358
      return
-
 
6359
    iprot.readStructBegin()
-
 
6360
    while True:
-
 
6361
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6362
      if ftype == TType.STOP:
-
 
6363
        break
-
 
6364
      if fid == 1:
-
 
6365
        if ftype == TType.STRUCT:
-
 
6366
          self.scx = WidgetException()
-
 
6367
          self.scx.read(iprot)
-
 
6368
        else:
-
 
6369
          iprot.skip(ftype)
-
 
6370
      else:
-
 
6371
        iprot.skip(ftype)
-
 
6372
      iprot.readFieldEnd()
-
 
6373
    iprot.readStructEnd()
-
 
6374
 
-
 
6375
  def write(self, oprot):
-
 
6376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6378
      return
-
 
6379
    oprot.writeStructBegin('addItemToWidget_result')
-
 
6380
    if self.scx != None:
-
 
6381
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
6382
      self.scx.write(oprot)
-
 
6383
      oprot.writeFieldEnd()
-
 
6384
    oprot.writeFieldStop()
-
 
6385
    oprot.writeStructEnd()
-
 
6386
 
-
 
6387
  def __repr__(self):
-
 
6388
    L = ['%s=%r' % (key, value)
-
 
6389
      for key, value in self.__dict__.iteritems()]
-
 
6390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6391
 
-
 
6392
  def __eq__(self, other):
-
 
6393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6394
 
-
 
6395
  def __ne__(self, other):
-
 
6396
    return not (self == other)
-
 
6397
 
-
 
6398
class deleteItemFromWidget_args:
-
 
6399
  """
-
 
6400
  Attributes:
-
 
6401
   - widget_id
-
 
6402
   - item_id
-
 
6403
  """
-
 
6404
 
-
 
6405
  thrift_spec = (
-
 
6406
    None, # 0
-
 
6407
    (1, TType.I64, 'widget_id', None, None, ), # 1
-
 
6408
    (2, TType.I64, 'item_id', None, None, ), # 2
-
 
6409
  )
-
 
6410
 
-
 
6411
  def __init__(self, widget_id=None, item_id=None,):
-
 
6412
    self.widget_id = widget_id
-
 
6413
    self.item_id = item_id
-
 
6414
 
-
 
6415
  def read(self, iprot):
-
 
6416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6418
      return
-
 
6419
    iprot.readStructBegin()
-
 
6420
    while True:
-
 
6421
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6422
      if ftype == TType.STOP:
-
 
6423
        break
-
 
6424
      if fid == 1:
-
 
6425
        if ftype == TType.I64:
-
 
6426
          self.widget_id = iprot.readI64();
-
 
6427
        else:
-
 
6428
          iprot.skip(ftype)
-
 
6429
      elif fid == 2:
-
 
6430
        if ftype == TType.I64:
-
 
6431
          self.item_id = iprot.readI64();
-
 
6432
        else:
-
 
6433
          iprot.skip(ftype)
-
 
6434
      else:
-
 
6435
        iprot.skip(ftype)
-
 
6436
      iprot.readFieldEnd()
-
 
6437
    iprot.readStructEnd()
-
 
6438
 
-
 
6439
  def write(self, oprot):
-
 
6440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6442
      return
-
 
6443
    oprot.writeStructBegin('deleteItemFromWidget_args')
-
 
6444
    if self.widget_id != None:
-
 
6445
      oprot.writeFieldBegin('widget_id', TType.I64, 1)
-
 
6446
      oprot.writeI64(self.widget_id)
-
 
6447
      oprot.writeFieldEnd()
-
 
6448
    if self.item_id != None:
-
 
6449
      oprot.writeFieldBegin('item_id', TType.I64, 2)
-
 
6450
      oprot.writeI64(self.item_id)
-
 
6451
      oprot.writeFieldEnd()
-
 
6452
    oprot.writeFieldStop()
-
 
6453
    oprot.writeStructEnd()
-
 
6454
 
-
 
6455
  def __repr__(self):
-
 
6456
    L = ['%s=%r' % (key, value)
-
 
6457
      for key, value in self.__dict__.iteritems()]
-
 
6458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6459
 
-
 
6460
  def __eq__(self, other):
-
 
6461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6462
 
-
 
6463
  def __ne__(self, other):
-
 
6464
    return not (self == other)
-
 
6465
 
-
 
6466
class deleteItemFromWidget_result:
-
 
6467
  """
-
 
6468
  Attributes:
-
 
6469
   - scx
-
 
6470
  """
-
 
6471
 
-
 
6472
  thrift_spec = (
-
 
6473
    None, # 0
-
 
6474
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
6475
  )
-
 
6476
 
-
 
6477
  def __init__(self, scx=None,):
-
 
6478
    self.scx = scx
-
 
6479
 
-
 
6480
  def read(self, iprot):
-
 
6481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6483
      return
-
 
6484
    iprot.readStructBegin()
-
 
6485
    while True:
-
 
6486
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6487
      if ftype == TType.STOP:
-
 
6488
        break
-
 
6489
      if fid == 1:
-
 
6490
        if ftype == TType.STRUCT:
-
 
6491
          self.scx = WidgetException()
-
 
6492
          self.scx.read(iprot)
-
 
6493
        else:
-
 
6494
          iprot.skip(ftype)
-
 
6495
      else:
-
 
6496
        iprot.skip(ftype)
-
 
6497
      iprot.readFieldEnd()
-
 
6498
    iprot.readStructEnd()
-
 
6499
 
-
 
6500
  def write(self, oprot):
-
 
6501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6503
      return
-
 
6504
    oprot.writeStructBegin('deleteItemFromWidget_result')
-
 
6505
    if self.scx != None:
-
 
6506
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
6507
      self.scx.write(oprot)
-
 
6508
      oprot.writeFieldEnd()
-
 
6509
    oprot.writeFieldStop()
-
 
6510
    oprot.writeStructEnd()
-
 
6511
 
-
 
6512
  def __repr__(self):
-
 
6513
    L = ['%s=%r' % (key, value)
-
 
6514
      for key, value in self.__dict__.iteritems()]
-
 
6515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6516
 
-
 
6517
  def __eq__(self, other):
-
 
6518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6519
 
-
 
6520
  def __ne__(self, other):
-
 
6521
    return not (self == other)
-
 
6522
 
-
 
6523
class updateWidget_args:
-
 
6524
  """
-
 
6525
  Attributes:
-
 
6526
   - widgetId
-
 
6527
   - enable
-
 
6528
  """
-
 
6529
 
-
 
6530
  thrift_spec = (
-
 
6531
    None, # 0
-
 
6532
    (1, TType.I64, 'widgetId', None, None, ), # 1
-
 
6533
    (2, TType.BOOL, 'enable', None, None, ), # 2
-
 
6534
  )
-
 
6535
 
-
 
6536
  def __init__(self, widgetId=None, enable=None,):
-
 
6537
    self.widgetId = widgetId
-
 
6538
    self.enable = enable
-
 
6539
 
-
 
6540
  def read(self, iprot):
-
 
6541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6543
      return
-
 
6544
    iprot.readStructBegin()
-
 
6545
    while True:
-
 
6546
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6547
      if ftype == TType.STOP:
-
 
6548
        break
-
 
6549
      if fid == 1:
-
 
6550
        if ftype == TType.I64:
-
 
6551
          self.widgetId = iprot.readI64();
-
 
6552
        else:
-
 
6553
          iprot.skip(ftype)
-
 
6554
      elif fid == 2:
-
 
6555
        if ftype == TType.BOOL:
-
 
6556
          self.enable = iprot.readBool();
-
 
6557
        else:
-
 
6558
          iprot.skip(ftype)
-
 
6559
      else:
-
 
6560
        iprot.skip(ftype)
-
 
6561
      iprot.readFieldEnd()
-
 
6562
    iprot.readStructEnd()
-
 
6563
 
-
 
6564
  def write(self, oprot):
-
 
6565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6567
      return
-
 
6568
    oprot.writeStructBegin('updateWidget_args')
-
 
6569
    if self.widgetId != None:
-
 
6570
      oprot.writeFieldBegin('widgetId', TType.I64, 1)
-
 
6571
      oprot.writeI64(self.widgetId)
-
 
6572
      oprot.writeFieldEnd()
-
 
6573
    if self.enable != None:
-
 
6574
      oprot.writeFieldBegin('enable', TType.BOOL, 2)
-
 
6575
      oprot.writeBool(self.enable)
-
 
6576
      oprot.writeFieldEnd()
-
 
6577
    oprot.writeFieldStop()
-
 
6578
    oprot.writeStructEnd()
-
 
6579
 
-
 
6580
  def __repr__(self):
-
 
6581
    L = ['%s=%r' % (key, value)
-
 
6582
      for key, value in self.__dict__.iteritems()]
-
 
6583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6584
 
-
 
6585
  def __eq__(self, other):
-
 
6586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6587
 
-
 
6588
  def __ne__(self, other):
-
 
6589
    return not (self == other)
-
 
6590
 
-
 
6591
class updateWidget_result:
-
 
6592
  """
-
 
6593
  Attributes:
-
 
6594
   - scx
-
 
6595
  """
-
 
6596
 
-
 
6597
  thrift_spec = (
-
 
6598
    None, # 0
-
 
6599
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
6600
  )
-
 
6601
 
-
 
6602
  def __init__(self, scx=None,):
-
 
6603
    self.scx = scx
-
 
6604
 
-
 
6605
  def read(self, iprot):
-
 
6606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6608
      return
-
 
6609
    iprot.readStructBegin()
-
 
6610
    while True:
-
 
6611
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6612
      if ftype == TType.STOP:
-
 
6613
        break
-
 
6614
      if fid == 1:
-
 
6615
        if ftype == TType.STRUCT:
-
 
6616
          self.scx = WidgetException()
-
 
6617
          self.scx.read(iprot)
-
 
6618
        else:
-
 
6619
          iprot.skip(ftype)
-
 
6620
      else:
-
 
6621
        iprot.skip(ftype)
-
 
6622
      iprot.readFieldEnd()
-
 
6623
    iprot.readStructEnd()
-
 
6624
 
-
 
6625
  def write(self, oprot):
-
 
6626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6628
      return
-
 
6629
    oprot.writeStructBegin('updateWidget_result')
-
 
6630
    if self.scx != None:
-
 
6631
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
6632
      self.scx.write(oprot)
-
 
6633
      oprot.writeFieldEnd()
-
 
6634
    oprot.writeFieldStop()
-
 
6635
    oprot.writeStructEnd()
-
 
6636
 
-
 
6637
  def __repr__(self):
-
 
6638
    L = ['%s=%r' % (key, value)
-
 
6639
      for key, value in self.__dict__.iteritems()]
-
 
6640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6641
 
-
 
6642
  def __eq__(self, other):
-
 
6643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6644
 
-
 
6645
  def __ne__(self, other):
-
 
6646
    return not (self == other)
-
 
6647
 
-
 
6648
class updateWidgetItem_args:
-
 
6649
  """
-
 
6650
  Attributes:
-
 
6651
   - widgetId
-
 
6652
   - enable
-
 
6653
  """
-
 
6654
 
-
 
6655
  thrift_spec = (
-
 
6656
    None, # 0
-
 
6657
    (1, TType.I64, 'widgetId', None, None, ), # 1
-
 
6658
    (2, TType.BOOL, 'enable', None, None, ), # 2
-
 
6659
  )
-
 
6660
 
-
 
6661
  def __init__(self, widgetId=None, enable=None,):
-
 
6662
    self.widgetId = widgetId
-
 
6663
    self.enable = enable
-
 
6664
 
-
 
6665
  def read(self, iprot):
-
 
6666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6668
      return
-
 
6669
    iprot.readStructBegin()
-
 
6670
    while True:
-
 
6671
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6672
      if ftype == TType.STOP:
-
 
6673
        break
-
 
6674
      if fid == 1:
-
 
6675
        if ftype == TType.I64:
-
 
6676
          self.widgetId = iprot.readI64();
-
 
6677
        else:
-
 
6678
          iprot.skip(ftype)
-
 
6679
      elif fid == 2:
-
 
6680
        if ftype == TType.BOOL:
-
 
6681
          self.enable = iprot.readBool();
-
 
6682
        else:
-
 
6683
          iprot.skip(ftype)
-
 
6684
      else:
-
 
6685
        iprot.skip(ftype)
-
 
6686
      iprot.readFieldEnd()
-
 
6687
    iprot.readStructEnd()
-
 
6688
 
-
 
6689
  def write(self, oprot):
-
 
6690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6692
      return
-
 
6693
    oprot.writeStructBegin('updateWidgetItem_args')
-
 
6694
    if self.widgetId != None:
-
 
6695
      oprot.writeFieldBegin('widgetId', TType.I64, 1)
-
 
6696
      oprot.writeI64(self.widgetId)
-
 
6697
      oprot.writeFieldEnd()
-
 
6698
    if self.enable != None:
-
 
6699
      oprot.writeFieldBegin('enable', TType.BOOL, 2)
-
 
6700
      oprot.writeBool(self.enable)
-
 
6701
      oprot.writeFieldEnd()
-
 
6702
    oprot.writeFieldStop()
-
 
6703
    oprot.writeStructEnd()
-
 
6704
 
-
 
6705
  def __repr__(self):
-
 
6706
    L = ['%s=%r' % (key, value)
-
 
6707
      for key, value in self.__dict__.iteritems()]
-
 
6708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6709
 
-
 
6710
  def __eq__(self, other):
-
 
6711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6712
 
-
 
6713
  def __ne__(self, other):
-
 
6714
    return not (self == other)
-
 
6715
 
-
 
6716
class updateWidgetItem_result:
-
 
6717
  """
-
 
6718
  Attributes:
-
 
6719
   - scx
-
 
6720
  """
-
 
6721
 
-
 
6722
  thrift_spec = (
-
 
6723
    None, # 0
-
 
6724
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
6725
  )
-
 
6726
 
-
 
6727
  def __init__(self, scx=None,):
-
 
6728
    self.scx = scx
-
 
6729
 
-
 
6730
  def read(self, iprot):
-
 
6731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6733
      return
-
 
6734
    iprot.readStructBegin()
-
 
6735
    while True:
-
 
6736
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6737
      if ftype == TType.STOP:
-
 
6738
        break
-
 
6739
      if fid == 1:
-
 
6740
        if ftype == TType.STRUCT:
-
 
6741
          self.scx = WidgetException()
-
 
6742
          self.scx.read(iprot)
-
 
6743
        else:
-
 
6744
          iprot.skip(ftype)
-
 
6745
      else:
-
 
6746
        iprot.skip(ftype)
-
 
6747
      iprot.readFieldEnd()
-
 
6748
    iprot.readStructEnd()
-
 
6749
 
-
 
6750
  def write(self, oprot):
-
 
6751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6753
      return
-
 
6754
    oprot.writeStructBegin('updateWidgetItem_result')
-
 
6755
    if self.scx != None:
-
 
6756
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
6757
      self.scx.write(oprot)
-
 
6758
      oprot.writeFieldEnd()
-
 
6759
    oprot.writeFieldStop()
-
 
6760
    oprot.writeStructEnd()
-
 
6761
 
-
 
6762
  def __repr__(self):
-
 
6763
    L = ['%s=%r' % (key, value)
-
 
6764
      for key, value in self.__dict__.iteritems()]
-
 
6765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6766
 
-
 
6767
  def __eq__(self, other):
-
 
6768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6769
 
-
 
6770
  def __ne__(self, other):
-
 
6771
    return not (self == other)
-
 
6772
 
-
 
6773
class getWidget_args:
-
 
6774
  """
-
 
6775
  Attributes:
-
 
6776
   - type
-
 
6777
   - userId
-
 
6778
   - onlyEnabled
-
 
6779
  """
-
 
6780
 
-
 
6781
  thrift_spec = (
-
 
6782
    None, # 0
-
 
6783
    (1, TType.I32, 'type', None, None, ), # 1
-
 
6784
    (2, TType.I64, 'userId', None, None, ), # 2
-
 
6785
    (3, TType.BOOL, 'onlyEnabled', None, None, ), # 3
-
 
6786
  )
-
 
6787
 
-
 
6788
  def __init__(self, type=None, userId=None, onlyEnabled=None,):
-
 
6789
    self.type = type
-
 
6790
    self.userId = userId
-
 
6791
    self.onlyEnabled = onlyEnabled
-
 
6792
 
-
 
6793
  def read(self, iprot):
-
 
6794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6796
      return
-
 
6797
    iprot.readStructBegin()
-
 
6798
    while True:
-
 
6799
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6800
      if ftype == TType.STOP:
-
 
6801
        break
-
 
6802
      if fid == 1:
-
 
6803
        if ftype == TType.I32:
-
 
6804
          self.type = iprot.readI32();
-
 
6805
        else:
-
 
6806
          iprot.skip(ftype)
-
 
6807
      elif fid == 2:
-
 
6808
        if ftype == TType.I64:
-
 
6809
          self.userId = iprot.readI64();
-
 
6810
        else:
-
 
6811
          iprot.skip(ftype)
-
 
6812
      elif fid == 3:
-
 
6813
        if ftype == TType.BOOL:
-
 
6814
          self.onlyEnabled = iprot.readBool();
-
 
6815
        else:
-
 
6816
          iprot.skip(ftype)
-
 
6817
      else:
-
 
6818
        iprot.skip(ftype)
-
 
6819
      iprot.readFieldEnd()
-
 
6820
    iprot.readStructEnd()
-
 
6821
 
-
 
6822
  def write(self, oprot):
-
 
6823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6825
      return
-
 
6826
    oprot.writeStructBegin('getWidget_args')
-
 
6827
    if self.type != None:
-
 
6828
      oprot.writeFieldBegin('type', TType.I32, 1)
-
 
6829
      oprot.writeI32(self.type)
-
 
6830
      oprot.writeFieldEnd()
-
 
6831
    if self.userId != None:
-
 
6832
      oprot.writeFieldBegin('userId', TType.I64, 2)
-
 
6833
      oprot.writeI64(self.userId)
-
 
6834
      oprot.writeFieldEnd()
-
 
6835
    if self.onlyEnabled != None:
-
 
6836
      oprot.writeFieldBegin('onlyEnabled', TType.BOOL, 3)
-
 
6837
      oprot.writeBool(self.onlyEnabled)
-
 
6838
      oprot.writeFieldEnd()
-
 
6839
    oprot.writeFieldStop()
-
 
6840
    oprot.writeStructEnd()
-
 
6841
 
-
 
6842
  def __repr__(self):
-
 
6843
    L = ['%s=%r' % (key, value)
-
 
6844
      for key, value in self.__dict__.iteritems()]
-
 
6845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6846
 
-
 
6847
  def __eq__(self, other):
-
 
6848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6849
 
-
 
6850
  def __ne__(self, other):
-
 
6851
    return not (self == other)
-
 
6852
 
-
 
6853
class getWidget_result:
4084
  """
6854
  """
4085
  Attributes:
6855
  Attributes:
4086
   - success
6856
   - success
4087
   - ucx
6857
   - scx
4088
  """
6858
  """
4089
 
6859
 
4090
  thrift_spec = (
6860
  thrift_spec = (
4091
    (0, TType.BOOL, 'success', None, None, ), # 0
6861
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
4092
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6862
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
4093
  )
6863
  )
4094
 
6864
 
4095
  def __init__(self, success=None, ucx=None,):
6865
  def __init__(self, success=None, scx=None,):
4096
    self.success = success
6866
    self.success = success
4097
    self.ucx = ucx
6867
    self.scx = scx
4098
 
6868
 
4099
  def read(self, iprot):
6869
  def read(self, iprot):
4100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4102
      return
6872
      return
Line 4104... Line 6874...
4104
    while True:
6874
    while True:
4105
      (fname, ftype, fid) = iprot.readFieldBegin()
6875
      (fname, ftype, fid) = iprot.readFieldBegin()
4106
      if ftype == TType.STOP:
6876
      if ftype == TType.STOP:
4107
        break
6877
        break
4108
      if fid == 0:
6878
      if fid == 0:
4109
        if ftype == TType.BOOL:
6879
        if ftype == TType.STRUCT:
4110
          self.success = iprot.readBool();
6880
          self.success = Widget()
-
 
6881
          self.success.read(iprot)
4111
        else:
6882
        else:
4112
          iprot.skip(ftype)
6883
          iprot.skip(ftype)
4113
      elif fid == 1:
6884
      elif fid == 1:
4114
        if ftype == TType.STRUCT:
6885
        if ftype == TType.STRUCT:
4115
          self.ucx = UserContextException()
6886
          self.scx = WidgetException()
4116
          self.ucx.read(iprot)
6887
          self.scx.read(iprot)
4117
        else:
6888
        else:
4118
          iprot.skip(ftype)
6889
          iprot.skip(ftype)
4119
      else:
6890
      else:
4120
        iprot.skip(ftype)
6891
        iprot.skip(ftype)
4121
      iprot.readFieldEnd()
6892
      iprot.readFieldEnd()
Line 4123... Line 6894...
4123
 
6894
 
4124
  def write(self, oprot):
6895
  def write(self, oprot):
4125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4127
      return
6898
      return
4128
    oprot.writeStructBegin('confirmEmailVerification_result')
6899
    oprot.writeStructBegin('getWidget_result')
4129
    if self.success != None:
6900
    if self.success != None:
4130
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6901
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4131
      oprot.writeBool(self.success)
6902
      self.success.write(oprot)
4132
      oprot.writeFieldEnd()
6903
      oprot.writeFieldEnd()
4133
    if self.ucx != None:
6904
    if self.scx != None:
4134
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6905
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
4135
      self.ucx.write(oprot)
6906
      self.scx.write(oprot)
4136
      oprot.writeFieldEnd()
6907
      oprot.writeFieldEnd()
4137
    oprot.writeFieldStop()
6908
    oprot.writeFieldStop()
4138
    oprot.writeStructEnd()
6909
    oprot.writeStructEnd()
4139
 
6910
 
4140
  def __repr__(self):
6911
  def __repr__(self):
Line 4146... Line 6917...
4146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4147
 
6918
 
4148
  def __ne__(self, other):
6919
  def __ne__(self, other):
4149
    return not (self == other)
6920
    return not (self == other)
4150
 
6921
 
4151
class confirmSMSVerification_args:
6922
class getMyResearch_args:
4152
  """
6923
  """
4153
  Attributes:
6924
  Attributes:
4154
   - userid
6925
   - user_id
4155
  """
6926
  """
4156
 
6927
 
4157
  thrift_spec = (
6928
  thrift_spec = (
4158
    None, # 0
6929
    None, # 0
4159
    (1, TType.I64, 'userid', None, None, ), # 1
6930
    (1, TType.I64, 'user_id', None, None, ), # 1
4160
  )
6931
  )
4161
 
6932
 
4162
  def __init__(self, userid=None,):
6933
  def __init__(self, user_id=None,):
4163
    self.userid = userid
6934
    self.user_id = user_id
4164
 
6935
 
4165
  def read(self, iprot):
6936
  def read(self, iprot):
4166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4168
      return
6939
      return
Line 4171... Line 6942...
4171
      (fname, ftype, fid) = iprot.readFieldBegin()
6942
      (fname, ftype, fid) = iprot.readFieldBegin()
4172
      if ftype == TType.STOP:
6943
      if ftype == TType.STOP:
4173
        break
6944
        break
4174
      if fid == 1:
6945
      if fid == 1:
4175
        if ftype == TType.I64:
6946
        if ftype == TType.I64:
4176
          self.userid = iprot.readI64();
6947
          self.user_id = iprot.readI64();
4177
        else:
6948
        else:
4178
          iprot.skip(ftype)
6949
          iprot.skip(ftype)
4179
      else:
6950
      else:
4180
        iprot.skip(ftype)
6951
        iprot.skip(ftype)
4181
      iprot.readFieldEnd()
6952
      iprot.readFieldEnd()
Line 4183... Line 6954...
4183
 
6954
 
4184
  def write(self, oprot):
6955
  def write(self, oprot):
4185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4187
      return
6958
      return
4188
    oprot.writeStructBegin('confirmSMSVerification_args')
6959
    oprot.writeStructBegin('getMyResearch_args')
4189
    if self.userid != None:
6960
    if self.user_id != None:
4190
      oprot.writeFieldBegin('userid', TType.I64, 1)
6961
      oprot.writeFieldBegin('user_id', TType.I64, 1)
4191
      oprot.writeI64(self.userid)
6962
      oprot.writeI64(self.user_id)
4192
      oprot.writeFieldEnd()
6963
      oprot.writeFieldEnd()
4193
    oprot.writeFieldStop()
6964
    oprot.writeFieldStop()
4194
    oprot.writeStructEnd()
6965
    oprot.writeStructEnd()
4195
 
6966
 
4196
  def __repr__(self):
6967
  def __repr__(self):
Line 4202... Line 6973...
4202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4203
 
6974
 
4204
  def __ne__(self, other):
6975
  def __ne__(self, other):
4205
    return not (self == other)
6976
    return not (self == other)
4206
 
6977
 
4207
class confirmSMSVerification_result:
6978
class getMyResearch_result:
4208
  """
6979
  """
4209
  Attributes:
6980
  Attributes:
4210
   - success
6981
   - success
4211
   - ucx
6982
   - scx
4212
  """
6983
  """
4213
 
6984
 
4214
  thrift_spec = (
6985
  thrift_spec = (
4215
    (0, TType.BOOL, 'success', None, None, ), # 0
6986
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
4216
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6987
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
4217
  )
6988
  )
4218
 
6989
 
4219
  def __init__(self, success=None, ucx=None,):
6990
  def __init__(self, success=None, scx=None,):
4220
    self.success = success
6991
    self.success = success
4221
    self.ucx = ucx
6992
    self.scx = scx
4222
 
6993
 
4223
  def read(self, iprot):
6994
  def read(self, iprot):
4224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4226
      return
6997
      return
Line 4228... Line 6999...
4228
    while True:
6999
    while True:
4229
      (fname, ftype, fid) = iprot.readFieldBegin()
7000
      (fname, ftype, fid) = iprot.readFieldBegin()
4230
      if ftype == TType.STOP:
7001
      if ftype == TType.STOP:
4231
        break
7002
        break
4232
      if fid == 0:
7003
      if fid == 0:
4233
        if ftype == TType.BOOL:
7004
        if ftype == TType.STRUCT:
4234
          self.success = iprot.readBool();
7005
          self.success = Widget()
-
 
7006
          self.success.read(iprot)
4235
        else:
7007
        else:
4236
          iprot.skip(ftype)
7008
          iprot.skip(ftype)
4237
      elif fid == 1:
7009
      elif fid == 1:
4238
        if ftype == TType.STRUCT:
7010
        if ftype == TType.STRUCT:
4239
          self.ucx = UserContextException()
7011
          self.scx = WidgetException()
4240
          self.ucx.read(iprot)
7012
          self.scx.read(iprot)
4241
        else:
7013
        else:
4242
          iprot.skip(ftype)
7014
          iprot.skip(ftype)
4243
      else:
7015
      else:
4244
        iprot.skip(ftype)
7016
        iprot.skip(ftype)
4245
      iprot.readFieldEnd()
7017
      iprot.readFieldEnd()
Line 4247... Line 7019...
4247
 
7019
 
4248
  def write(self, oprot):
7020
  def write(self, oprot):
4249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4251
      return
7023
      return
4252
    oprot.writeStructBegin('confirmSMSVerification_result')
7024
    oprot.writeStructBegin('getMyResearch_result')
4253
    if self.success != None:
7025
    if self.success != None:
4254
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7026
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4255
      oprot.writeBool(self.success)
7027
      self.success.write(oprot)
4256
      oprot.writeFieldEnd()
7028
      oprot.writeFieldEnd()
4257
    if self.ucx != None:
7029
    if self.scx != None:
4258
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7030
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
4259
      self.ucx.write(oprot)
7031
      self.scx.write(oprot)
4260
      oprot.writeFieldEnd()
7032
      oprot.writeFieldEnd()
4261
    oprot.writeFieldStop()
7033
    oprot.writeFieldStop()
4262
    oprot.writeStructEnd()
7034
    oprot.writeStructEnd()
4263
 
7035
 
4264
  def __repr__(self):
7036
  def __repr__(self):
Line 4270... Line 7042...
4270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4271
 
7043
 
4272
  def __ne__(self, other):
7044
  def __ne__(self, other):
4273
    return not (self == other)
7045
    return not (self == other)
4274
 
7046
 
4275
class addSocialhandle_args:
7047
class updateMyResearch_args:
4276
  """
7048
  """
4277
  Attributes:
7049
  Attributes:
4278
   - userid
7050
   - user_id
4279
   - socialService
-
 
4280
   - handle
7051
   - item_id
4281
  """
7052
  """
4282
 
7053
 
4283
  thrift_spec = (
7054
  thrift_spec = (
4284
    None, # 0
7055
    None, # 0
4285
    (1, TType.I64, 'userid', None, None, ), # 1
7056
    (1, TType.I64, 'user_id', None, None, ), # 1
4286
    (2, TType.STRING, 'socialService', None, None, ), # 2
-
 
4287
    (3, TType.STRING, 'handle', None, None, ), # 3
7057
    (2, TType.I64, 'item_id', None, None, ), # 2
4288
  )
7058
  )
4289
 
7059
 
4290
  def __init__(self, userid=None, socialService=None, handle=None,):
7060
  def __init__(self, user_id=None, item_id=None,):
4291
    self.userid = userid
7061
    self.user_id = user_id
4292
    self.socialService = socialService
-
 
4293
    self.handle = handle
7062
    self.item_id = item_id
4294
 
7063
 
4295
  def read(self, iprot):
7064
  def read(self, iprot):
4296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4298
      return
7067
      return
Line 4301... Line 7070...
4301
      (fname, ftype, fid) = iprot.readFieldBegin()
7070
      (fname, ftype, fid) = iprot.readFieldBegin()
4302
      if ftype == TType.STOP:
7071
      if ftype == TType.STOP:
4303
        break
7072
        break
4304
      if fid == 1:
7073
      if fid == 1:
4305
        if ftype == TType.I64:
7074
        if ftype == TType.I64:
4306
          self.userid = iprot.readI64();
7075
          self.user_id = iprot.readI64();
4307
        else:
7076
        else:
4308
          iprot.skip(ftype)
7077
          iprot.skip(ftype)
4309
      elif fid == 2:
7078
      elif fid == 2:
4310
        if ftype == TType.STRING:
7079
        if ftype == TType.I64:
4311
          self.socialService = iprot.readString();
-
 
4312
        else:
-
 
4313
          iprot.skip(ftype)
-
 
4314
      elif fid == 3:
-
 
4315
        if ftype == TType.STRING:
-
 
4316
          self.handle = iprot.readString();
7080
          self.item_id = iprot.readI64();
4317
        else:
7081
        else:
4318
          iprot.skip(ftype)
7082
          iprot.skip(ftype)
4319
      else:
7083
      else:
4320
        iprot.skip(ftype)
7084
        iprot.skip(ftype)
4321
      iprot.readFieldEnd()
7085
      iprot.readFieldEnd()
Line 4323... Line 7087...
4323
 
7087
 
4324
  def write(self, oprot):
7088
  def write(self, oprot):
4325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4327
      return
7091
      return
4328
    oprot.writeStructBegin('addSocialhandle_args')
7092
    oprot.writeStructBegin('updateMyResearch_args')
4329
    if self.userid != None:
7093
    if self.user_id != None:
4330
      oprot.writeFieldBegin('userid', TType.I64, 1)
7094
      oprot.writeFieldBegin('user_id', TType.I64, 1)
4331
      oprot.writeI64(self.userid)
7095
      oprot.writeI64(self.user_id)
4332
      oprot.writeFieldEnd()
7096
      oprot.writeFieldEnd()
4333
    if self.socialService != None:
-
 
4334
      oprot.writeFieldBegin('socialService', TType.STRING, 2)
-
 
4335
      oprot.writeString(self.socialService)
-
 
4336
      oprot.writeFieldEnd()
-
 
4337
    if self.handle != None:
7097
    if self.item_id != None:
4338
      oprot.writeFieldBegin('handle', TType.STRING, 3)
7098
      oprot.writeFieldBegin('item_id', TType.I64, 2)
4339
      oprot.writeString(self.handle)
7099
      oprot.writeI64(self.item_id)
4340
      oprot.writeFieldEnd()
7100
      oprot.writeFieldEnd()
4341
    oprot.writeFieldStop()
7101
    oprot.writeFieldStop()
4342
    oprot.writeStructEnd()
7102
    oprot.writeStructEnd()
4343
 
7103
 
4344
  def __repr__(self):
7104
  def __repr__(self):
Line 4350... Line 7110...
4350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4351
 
7111
 
4352
  def __ne__(self, other):
7112
  def __ne__(self, other):
4353
    return not (self == other)
7113
    return not (self == other)
4354
 
7114
 
4355
class addSocialhandle_result:
7115
class updateMyResearch_result:
4356
  """
7116
  """
4357
  Attributes:
7117
  Attributes:
4358
   - success
7118
   - success
4359
   - ucx
7119
   - scx
4360
  """
7120
  """
4361
 
7121
 
4362
  thrift_spec = (
7122
  thrift_spec = (
4363
    (0, TType.BOOL, 'success', None, None, ), # 0
7123
    (0, TType.BOOL, 'success', None, None, ), # 0
4364
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
7124
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
4365
  )
7125
  )
4366
 
7126
 
4367
  def __init__(self, success=None, ucx=None,):
7127
  def __init__(self, success=None, scx=None,):
4368
    self.success = success
7128
    self.success = success
4369
    self.ucx = ucx
7129
    self.scx = scx
4370
 
7130
 
4371
  def read(self, iprot):
7131
  def read(self, iprot):
4372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4374
      return
7134
      return
Line 4382... Line 7142...
4382
          self.success = iprot.readBool();
7142
          self.success = iprot.readBool();
4383
        else:
7143
        else:
4384
          iprot.skip(ftype)
7144
          iprot.skip(ftype)
4385
      elif fid == 1:
7145
      elif fid == 1:
4386
        if ftype == TType.STRUCT:
7146
        if ftype == TType.STRUCT:
4387
          self.ucx = UserContextException()
7147
          self.scx = WidgetException()
4388
          self.ucx.read(iprot)
7148
          self.scx.read(iprot)
4389
        else:
7149
        else:
4390
          iprot.skip(ftype)
7150
          iprot.skip(ftype)
4391
      else:
7151
      else:
4392
        iprot.skip(ftype)
7152
        iprot.skip(ftype)
4393
      iprot.readFieldEnd()
7153
      iprot.readFieldEnd()
Line 4395... Line 7155...
4395
 
7155
 
4396
  def write(self, oprot):
7156
  def write(self, oprot):
4397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4399
      return
7159
      return
4400
    oprot.writeStructBegin('addSocialhandle_result')
7160
    oprot.writeStructBegin('updateMyResearch_result')
4401
    if self.success != None:
7161
    if self.success != None:
4402
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7162
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4403
      oprot.writeBool(self.success)
7163
      oprot.writeBool(self.success)
4404
      oprot.writeFieldEnd()
7164
      oprot.writeFieldEnd()
4405
    if self.ucx != None:
7165
    if self.scx != None:
4406
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7166
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
4407
      self.ucx.write(oprot)
7167
      self.scx.write(oprot)
4408
      oprot.writeFieldEnd()
7168
      oprot.writeFieldEnd()
4409
    oprot.writeFieldStop()
7169
    oprot.writeFieldStop()
4410
    oprot.writeStructEnd()
7170
    oprot.writeStructEnd()
4411
 
7171
 
4412
  def __repr__(self):
7172
  def __repr__(self):
Line 4418... Line 7178...
4418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4419
 
7179
 
4420
  def __ne__(self, other):
7180
  def __ne__(self, other):
4421
    return not (self == other)
7181
    return not (self == other)
4422
 
7182
 
4423
class sendNewPasswordById_args:
7183
class deleteItemFromMyResearch_args:
4424
  """
7184
  """
4425
  Attributes:
7185
  Attributes:
4426
   - userid
7186
   - user_id
-
 
7187
   - item_id
4427
  """
7188
  """
4428
 
7189
 
4429
  thrift_spec = (
7190
  thrift_spec = (
4430
    None, # 0
7191
    None, # 0
4431
    (1, TType.I64, 'userid', None, None, ), # 1
7192
    (1, TType.I64, 'user_id', None, None, ), # 1
-
 
7193
    (2, TType.I64, 'item_id', None, None, ), # 2
4432
  )
7194
  )
4433
 
7195
 
4434
  def __init__(self, userid=None,):
7196
  def __init__(self, user_id=None, item_id=None,):
4435
    self.userid = userid
7197
    self.user_id = user_id
-
 
7198
    self.item_id = item_id
4436
 
7199
 
4437
  def read(self, iprot):
7200
  def read(self, iprot):
4438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4440
      return
7203
      return
Line 4443... Line 7206...
4443
      (fname, ftype, fid) = iprot.readFieldBegin()
7206
      (fname, ftype, fid) = iprot.readFieldBegin()
4444
      if ftype == TType.STOP:
7207
      if ftype == TType.STOP:
4445
        break
7208
        break
4446
      if fid == 1:
7209
      if fid == 1:
4447
        if ftype == TType.I64:
7210
        if ftype == TType.I64:
4448
          self.userid = iprot.readI64();
7211
          self.user_id = iprot.readI64();
-
 
7212
        else:
-
 
7213
          iprot.skip(ftype)
-
 
7214
      elif fid == 2:
-
 
7215
        if ftype == TType.I64:
-
 
7216
          self.item_id = iprot.readI64();
4449
        else:
7217
        else:
4450
          iprot.skip(ftype)
7218
          iprot.skip(ftype)
4451
      else:
7219
      else:
4452
        iprot.skip(ftype)
7220
        iprot.skip(ftype)
4453
      iprot.readFieldEnd()
7221
      iprot.readFieldEnd()
Line 4455... Line 7223...
4455
 
7223
 
4456
  def write(self, oprot):
7224
  def write(self, oprot):
4457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4459
      return
7227
      return
4460
    oprot.writeStructBegin('sendNewPasswordById_args')
7228
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
4461
    if self.userid != None:
7229
    if self.user_id != None:
4462
      oprot.writeFieldBegin('userid', TType.I64, 1)
7230
      oprot.writeFieldBegin('user_id', TType.I64, 1)
4463
      oprot.writeI64(self.userid)
7231
      oprot.writeI64(self.user_id)
-
 
7232
      oprot.writeFieldEnd()
-
 
7233
    if self.item_id != None:
-
 
7234
      oprot.writeFieldBegin('item_id', TType.I64, 2)
-
 
7235
      oprot.writeI64(self.item_id)
4464
      oprot.writeFieldEnd()
7236
      oprot.writeFieldEnd()
4465
    oprot.writeFieldStop()
7237
    oprot.writeFieldStop()
4466
    oprot.writeStructEnd()
7238
    oprot.writeStructEnd()
4467
 
7239
 
4468
  def __repr__(self):
7240
  def __repr__(self):
Line 4474... Line 7246...
4474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4475
 
7247
 
4476
  def __ne__(self, other):
7248
  def __ne__(self, other):
4477
    return not (self == other)
7249
    return not (self == other)
4478
 
7250
 
-
 
7251
class deleteItemFromMyResearch_result:
-
 
7252
  """
-
 
7253
  Attributes:
-
 
7254
   - scx
-
 
7255
  """
-
 
7256
 
-
 
7257
  thrift_spec = (
-
 
7258
    None, # 0
-
 
7259
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
-
 
7260
  )
-
 
7261
 
-
 
7262
  def __init__(self, scx=None,):
-
 
7263
    self.scx = scx
-
 
7264
 
-
 
7265
  def read(self, iprot):
-
 
7266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7268
      return
-
 
7269
    iprot.readStructBegin()
-
 
7270
    while True:
-
 
7271
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7272
      if ftype == TType.STOP:
-
 
7273
        break
-
 
7274
      if fid == 1:
-
 
7275
        if ftype == TType.STRUCT:
-
 
7276
          self.scx = WidgetException()
-
 
7277
          self.scx.read(iprot)
-
 
7278
        else:
-
 
7279
          iprot.skip(ftype)
-
 
7280
      else:
-
 
7281
        iprot.skip(ftype)
-
 
7282
      iprot.readFieldEnd()
-
 
7283
    iprot.readStructEnd()
-
 
7284
 
-
 
7285
  def write(self, oprot):
-
 
7286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7288
      return
-
 
7289
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
-
 
7290
    if self.scx != None:
-
 
7291
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
-
 
7292
      self.scx.write(oprot)
-
 
7293
      oprot.writeFieldEnd()
-
 
7294
    oprot.writeFieldStop()
-
 
7295
    oprot.writeStructEnd()
-
 
7296
 
-
 
7297
  def __repr__(self):
-
 
7298
    L = ['%s=%r' % (key, value)
-
 
7299
      for key, value in self.__dict__.iteritems()]
-
 
7300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7301
 
-
 
7302
  def __eq__(self, other):
-
 
7303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7304
 
-
 
7305
  def __ne__(self, other):
-
 
7306
    return not (self == other)
-
 
7307
 
-
 
7308
class updateRatings_args:
-
 
7309
  """
-
 
7310
  Attributes:
-
 
7311
   - item_id
-
 
7312
   - type
-
 
7313
   - rating
-
 
7314
   - user_id
-
 
7315
  """
-
 
7316
 
-
 
7317
  thrift_spec = (
-
 
7318
    None, # 0
-
 
7319
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
7320
    (2, TType.I32, 'type', None, None, ), # 2
-
 
7321
    (3, TType.DOUBLE, 'rating', None, None, ), # 3
-
 
7322
    (4, TType.I64, 'user_id', None, None, ), # 4
-
 
7323
  )
-
 
7324
 
-
 
7325
  def __init__(self, item_id=None, type=None, rating=None, user_id=None,):
-
 
7326
    self.item_id = item_id
-
 
7327
    self.type = type
-
 
7328
    self.rating = rating
-
 
7329
    self.user_id = user_id
-
 
7330
 
-
 
7331
  def read(self, iprot):
-
 
7332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7334
      return
-
 
7335
    iprot.readStructBegin()
-
 
7336
    while True:
-
 
7337
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7338
      if ftype == TType.STOP:
-
 
7339
        break
-
 
7340
      if fid == 1:
-
 
7341
        if ftype == TType.I64:
-
 
7342
          self.item_id = iprot.readI64();
-
 
7343
        else:
-
 
7344
          iprot.skip(ftype)
-
 
7345
      elif fid == 2:
-
 
7346
        if ftype == TType.I32:
-
 
7347
          self.type = iprot.readI32();
-
 
7348
        else:
-
 
7349
          iprot.skip(ftype)
-
 
7350
      elif fid == 3:
-
 
7351
        if ftype == TType.DOUBLE:
-
 
7352
          self.rating = iprot.readDouble();
-
 
7353
        else:
-
 
7354
          iprot.skip(ftype)
-
 
7355
      elif fid == 4:
-
 
7356
        if ftype == TType.I64:
-
 
7357
          self.user_id = iprot.readI64();
-
 
7358
        else:
-
 
7359
          iprot.skip(ftype)
-
 
7360
      else:
-
 
7361
        iprot.skip(ftype)
-
 
7362
      iprot.readFieldEnd()
-
 
7363
    iprot.readStructEnd()
-
 
7364
 
-
 
7365
  def write(self, oprot):
-
 
7366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7368
      return
-
 
7369
    oprot.writeStructBegin('updateRatings_args')
-
 
7370
    if self.item_id != None:
-
 
7371
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
7372
      oprot.writeI64(self.item_id)
-
 
7373
      oprot.writeFieldEnd()
-
 
7374
    if self.type != None:
-
 
7375
      oprot.writeFieldBegin('type', TType.I32, 2)
-
 
7376
      oprot.writeI32(self.type)
-
 
7377
      oprot.writeFieldEnd()
-
 
7378
    if self.rating != None:
-
 
7379
      oprot.writeFieldBegin('rating', TType.DOUBLE, 3)
-
 
7380
      oprot.writeDouble(self.rating)
-
 
7381
      oprot.writeFieldEnd()
-
 
7382
    if self.user_id != None:
-
 
7383
      oprot.writeFieldBegin('user_id', TType.I64, 4)
-
 
7384
      oprot.writeI64(self.user_id)
-
 
7385
      oprot.writeFieldEnd()
-
 
7386
    oprot.writeFieldStop()
-
 
7387
    oprot.writeStructEnd()
-
 
7388
 
-
 
7389
  def __repr__(self):
-
 
7390
    L = ['%s=%r' % (key, value)
-
 
7391
      for key, value in self.__dict__.iteritems()]
-
 
7392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7393
 
-
 
7394
  def __eq__(self, other):
-
 
7395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7396
 
-
 
7397
  def __ne__(self, other):
-
 
7398
    return not (self == other)
-
 
7399
 
4479
class sendNewPasswordById_result:
7400
class updateRatings_result:
-
 
7401
 
-
 
7402
  thrift_spec = (
-
 
7403
  )
-
 
7404
 
-
 
7405
  def read(self, iprot):
-
 
7406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7408
      return
-
 
7409
    iprot.readStructBegin()
-
 
7410
    while True:
-
 
7411
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7412
      if ftype == TType.STOP:
-
 
7413
        break
-
 
7414
      else:
-
 
7415
        iprot.skip(ftype)
-
 
7416
      iprot.readFieldEnd()
-
 
7417
    iprot.readStructEnd()
-
 
7418
 
-
 
7419
  def write(self, oprot):
-
 
7420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7422
      return
-
 
7423
    oprot.writeStructBegin('updateRatings_result')
-
 
7424
    oprot.writeFieldStop()
-
 
7425
    oprot.writeStructEnd()
-
 
7426
 
-
 
7427
  def __repr__(self):
-
 
7428
    L = ['%s=%r' % (key, value)
-
 
7429
      for key, value in self.__dict__.iteritems()]
-
 
7430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7431
 
-
 
7432
  def __eq__(self, other):
-
 
7433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7434
 
-
 
7435
  def __ne__(self, other):
-
 
7436
    return not (self == other)
-
 
7437
 
-
 
7438
class getRatings_args:
-
 
7439
  """
-
 
7440
  Attributes:
-
 
7441
   - item_id
-
 
7442
   - user_id
-
 
7443
  """
-
 
7444
 
-
 
7445
  thrift_spec = (
-
 
7446
    None, # 0
-
 
7447
    (1, TType.I64, 'item_id', None, None, ), # 1
-
 
7448
    (2, TType.I64, 'user_id', None, None, ), # 2
-
 
7449
  )
-
 
7450
 
-
 
7451
  def __init__(self, item_id=None, user_id=None,):
-
 
7452
    self.item_id = item_id
-
 
7453
    self.user_id = user_id
-
 
7454
 
-
 
7455
  def read(self, iprot):
-
 
7456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7458
      return
-
 
7459
    iprot.readStructBegin()
-
 
7460
    while True:
-
 
7461
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7462
      if ftype == TType.STOP:
-
 
7463
        break
-
 
7464
      if fid == 1:
-
 
7465
        if ftype == TType.I64:
-
 
7466
          self.item_id = iprot.readI64();
-
 
7467
        else:
-
 
7468
          iprot.skip(ftype)
-
 
7469
      elif fid == 2:
-
 
7470
        if ftype == TType.I64:
-
 
7471
          self.user_id = iprot.readI64();
-
 
7472
        else:
-
 
7473
          iprot.skip(ftype)
-
 
7474
      else:
-
 
7475
        iprot.skip(ftype)
-
 
7476
      iprot.readFieldEnd()
-
 
7477
    iprot.readStructEnd()
-
 
7478
 
-
 
7479
  def write(self, oprot):
-
 
7480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7482
      return
-
 
7483
    oprot.writeStructBegin('getRatings_args')
-
 
7484
    if self.item_id != None:
-
 
7485
      oprot.writeFieldBegin('item_id', TType.I64, 1)
-
 
7486
      oprot.writeI64(self.item_id)
-
 
7487
      oprot.writeFieldEnd()
-
 
7488
    if self.user_id != None:
-
 
7489
      oprot.writeFieldBegin('user_id', TType.I64, 2)
-
 
7490
      oprot.writeI64(self.user_id)
-
 
7491
      oprot.writeFieldEnd()
-
 
7492
    oprot.writeFieldStop()
-
 
7493
    oprot.writeStructEnd()
-
 
7494
 
-
 
7495
  def __repr__(self):
-
 
7496
    L = ['%s=%r' % (key, value)
-
 
7497
      for key, value in self.__dict__.iteritems()]
-
 
7498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7499
 
-
 
7500
  def __eq__(self, other):
-
 
7501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7502
 
-
 
7503
  def __ne__(self, other):
-
 
7504
    return not (self == other)
-
 
7505
 
-
 
7506
class getRatings_result:
4480
  """
7507
  """
4481
  Attributes:
7508
  Attributes:
4482
   - success
7509
   - success
4483
   - ucx
7510
   - scx
4484
  """
7511
  """
4485
 
7512
 
4486
  thrift_spec = (
7513
  thrift_spec = (
4487
    (0, TType.BOOL, 'success', None, None, ), # 0
7514
    (0, TType.STRUCT, 'success', (RatingsWidget, RatingsWidget.thrift_spec), None, ), # 0
4488
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
7515
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
4489
  )
7516
  )
4490
 
7517
 
4491
  def __init__(self, success=None, ucx=None,):
7518
  def __init__(self, success=None, scx=None,):
4492
    self.success = success
7519
    self.success = success
4493
    self.ucx = ucx
7520
    self.scx = scx
4494
 
7521
 
4495
  def read(self, iprot):
7522
  def read(self, iprot):
4496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4498
      return
7525
      return
Line 4500... Line 7527...
4500
    while True:
7527
    while True:
4501
      (fname, ftype, fid) = iprot.readFieldBegin()
7528
      (fname, ftype, fid) = iprot.readFieldBegin()
4502
      if ftype == TType.STOP:
7529
      if ftype == TType.STOP:
4503
        break
7530
        break
4504
      if fid == 0:
7531
      if fid == 0:
4505
        if ftype == TType.BOOL:
7532
        if ftype == TType.STRUCT:
4506
          self.success = iprot.readBool();
7533
          self.success = RatingsWidget()
-
 
7534
          self.success.read(iprot)
4507
        else:
7535
        else:
4508
          iprot.skip(ftype)
7536
          iprot.skip(ftype)
4509
      elif fid == 1:
7537
      elif fid == 1:
4510
        if ftype == TType.STRUCT:
7538
        if ftype == TType.STRUCT:
4511
          self.ucx = UserContextException()
7539
          self.scx = WidgetException()
4512
          self.ucx.read(iprot)
7540
          self.scx.read(iprot)
4513
        else:
7541
        else:
4514
          iprot.skip(ftype)
7542
          iprot.skip(ftype)
4515
      else:
7543
      else:
4516
        iprot.skip(ftype)
7544
        iprot.skip(ftype)
4517
      iprot.readFieldEnd()
7545
      iprot.readFieldEnd()
Line 4519... Line 7547...
4519
 
7547
 
4520
  def write(self, oprot):
7548
  def write(self, oprot):
4521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4523
      return
7551
      return
4524
    oprot.writeStructBegin('sendNewPasswordById_result')
7552
    oprot.writeStructBegin('getRatings_result')
4525
    if self.success != None:
7553
    if self.success != None:
4526
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7554
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4527
      oprot.writeBool(self.success)
7555
      self.success.write(oprot)
4528
      oprot.writeFieldEnd()
7556
      oprot.writeFieldEnd()
4529
    if self.ucx != None:
7557
    if self.scx != None:
4530
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7558
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
4531
      self.ucx.write(oprot)
7559
      self.scx.write(oprot)
4532
      oprot.writeFieldEnd()
7560
      oprot.writeFieldEnd()
4533
    oprot.writeFieldStop()
7561
    oprot.writeFieldStop()
4534
    oprot.writeStructEnd()
7562
    oprot.writeStructEnd()
4535
 
7563
 
4536
  def __repr__(self):
7564
  def __repr__(self):
Line 4542... Line 7570...
4542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4543
 
7571
 
4544
  def __ne__(self, other):
7572
  def __ne__(self, other):
4545
    return not (self == other)
7573
    return not (self == other)
4546
 
7574
 
4547
class sendNewPasswordByHandle_args:
7575
class updateBrowseHistory_args:
4548
  """
7576
  """
4549
  Attributes:
7577
  Attributes:
4550
   - emailOrHandle
7578
   - user_id
4551
   - isEmail
7579
   - item_id
-
 
7580
   - isSessionId
4552
  """
7581
  """
4553
 
7582
 
4554
  thrift_spec = (
7583
  thrift_spec = (
4555
    None, # 0
7584
    None, # 0
4556
    (1, TType.STRING, 'emailOrHandle', None, None, ), # 1
7585
    (1, TType.I64, 'user_id', None, None, ), # 1
4557
    (2, TType.BOOL, 'isEmail', None, None, ), # 2
7586
    (2, TType.I64, 'item_id', None, None, ), # 2
-
 
7587
    (3, TType.BOOL, 'isSessionId', None, None, ), # 3
4558
  )
7588
  )
4559
 
7589
 
4560
  def __init__(self, emailOrHandle=None, isEmail=None,):
7590
  def __init__(self, user_id=None, item_id=None, isSessionId=None,):
4561
    self.emailOrHandle = emailOrHandle
7591
    self.user_id = user_id
4562
    self.isEmail = isEmail
7592
    self.item_id = item_id
-
 
7593
    self.isSessionId = isSessionId
4563
 
7594
 
4564
  def read(self, iprot):
7595
  def read(self, iprot):
4565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4567
      return
7598
      return
Line 4569... Line 7600...
4569
    while True:
7600
    while True:
4570
      (fname, ftype, fid) = iprot.readFieldBegin()
7601
      (fname, ftype, fid) = iprot.readFieldBegin()
4571
      if ftype == TType.STOP:
7602
      if ftype == TType.STOP:
4572
        break
7603
        break
4573
      if fid == 1:
7604
      if fid == 1:
4574
        if ftype == TType.STRING:
7605
        if ftype == TType.I64:
-
 
7606
          self.user_id = iprot.readI64();
-
 
7607
        else:
-
 
7608
          iprot.skip(ftype)
-
 
7609
      elif fid == 2:
-
 
7610
        if ftype == TType.I64:
4575
          self.emailOrHandle = iprot.readString();
7611
          self.item_id = iprot.readI64();
-
 
7612
        else:
-
 
7613
          iprot.skip(ftype)
-
 
7614
      elif fid == 3:
-
 
7615
        if ftype == TType.BOOL:
-
 
7616
          self.isSessionId = iprot.readBool();
-
 
7617
        else:
-
 
7618
          iprot.skip(ftype)
-
 
7619
      else:
-
 
7620
        iprot.skip(ftype)
-
 
7621
      iprot.readFieldEnd()
-
 
7622
    iprot.readStructEnd()
-
 
7623
 
-
 
7624
  def write(self, oprot):
-
 
7625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7627
      return
-
 
7628
    oprot.writeStructBegin('updateBrowseHistory_args')
-
 
7629
    if self.user_id != None:
-
 
7630
      oprot.writeFieldBegin('user_id', TType.I64, 1)
-
 
7631
      oprot.writeI64(self.user_id)
-
 
7632
      oprot.writeFieldEnd()
-
 
7633
    if self.item_id != None:
-
 
7634
      oprot.writeFieldBegin('item_id', TType.I64, 2)
-
 
7635
      oprot.writeI64(self.item_id)
-
 
7636
      oprot.writeFieldEnd()
-
 
7637
    if self.isSessionId != None:
-
 
7638
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 3)
-
 
7639
      oprot.writeBool(self.isSessionId)
-
 
7640
      oprot.writeFieldEnd()
-
 
7641
    oprot.writeFieldStop()
-
 
7642
    oprot.writeStructEnd()
-
 
7643
 
-
 
7644
  def __repr__(self):
-
 
7645
    L = ['%s=%r' % (key, value)
-
 
7646
      for key, value in self.__dict__.iteritems()]
-
 
7647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7648
 
-
 
7649
  def __eq__(self, other):
-
 
7650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7651
 
-
 
7652
  def __ne__(self, other):
-
 
7653
    return not (self == other)
-
 
7654
 
-
 
7655
class updateBrowseHistory_result:
-
 
7656
 
-
 
7657
  thrift_spec = (
-
 
7658
  )
-
 
7659
 
-
 
7660
  def read(self, iprot):
-
 
7661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7663
      return
-
 
7664
    iprot.readStructBegin()
-
 
7665
    while True:
-
 
7666
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7667
      if ftype == TType.STOP:
-
 
7668
        break
-
 
7669
      else:
-
 
7670
        iprot.skip(ftype)
-
 
7671
      iprot.readFieldEnd()
-
 
7672
    iprot.readStructEnd()
-
 
7673
 
-
 
7674
  def write(self, oprot):
-
 
7675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7677
      return
-
 
7678
    oprot.writeStructBegin('updateBrowseHistory_result')
-
 
7679
    oprot.writeFieldStop()
-
 
7680
    oprot.writeStructEnd()
-
 
7681
 
-
 
7682
  def __repr__(self):
-
 
7683
    L = ['%s=%r' % (key, value)
-
 
7684
      for key, value in self.__dict__.iteritems()]
-
 
7685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7686
 
-
 
7687
  def __eq__(self, other):
-
 
7688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7689
 
-
 
7690
  def __ne__(self, other):
-
 
7691
    return not (self == other)
-
 
7692
 
-
 
7693
class getBrowseHistory_args:
-
 
7694
  """
-
 
7695
  Attributes:
-
 
7696
   - userId
-
 
7697
   - isSessionId
-
 
7698
  """
-
 
7699
 
-
 
7700
  thrift_spec = (
-
 
7701
    None, # 0
-
 
7702
    (1, TType.I64, 'userId', None, None, ), # 1
-
 
7703
    (2, TType.BOOL, 'isSessionId', None, None, ), # 2
-
 
7704
  )
-
 
7705
 
-
 
7706
  def __init__(self, userId=None, isSessionId=None,):
-
 
7707
    self.userId = userId
-
 
7708
    self.isSessionId = isSessionId
-
 
7709
 
-
 
7710
  def read(self, iprot):
-
 
7711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7713
      return
-
 
7714
    iprot.readStructBegin()
-
 
7715
    while True:
-
 
7716
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7717
      if ftype == TType.STOP:
-
 
7718
        break
-
 
7719
      if fid == 1:
-
 
7720
        if ftype == TType.I64:
-
 
7721
          self.userId = iprot.readI64();
4576
        else:
7722
        else:
4577
          iprot.skip(ftype)
7723
          iprot.skip(ftype)
4578
      elif fid == 2:
7724
      elif fid == 2:
4579
        if ftype == TType.BOOL:
7725
        if ftype == TType.BOOL:
4580
          self.isEmail = iprot.readBool();
7726
          self.isSessionId = iprot.readBool();
4581
        else:
7727
        else:
4582
          iprot.skip(ftype)
7728
          iprot.skip(ftype)
4583
      else:
7729
      else:
4584
        iprot.skip(ftype)
7730
        iprot.skip(ftype)
4585
      iprot.readFieldEnd()
7731
      iprot.readFieldEnd()
Line 4587... Line 7733...
4587
 
7733
 
4588
  def write(self, oprot):
7734
  def write(self, oprot):
4589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4591
      return
7737
      return
4592
    oprot.writeStructBegin('sendNewPasswordByHandle_args')
7738
    oprot.writeStructBegin('getBrowseHistory_args')
4593
    if self.emailOrHandle != None:
7739
    if self.userId != None:
4594
      oprot.writeFieldBegin('emailOrHandle', TType.STRING, 1)
7740
      oprot.writeFieldBegin('userId', TType.I64, 1)
4595
      oprot.writeString(self.emailOrHandle)
7741
      oprot.writeI64(self.userId)
4596
      oprot.writeFieldEnd()
7742
      oprot.writeFieldEnd()
4597
    if self.isEmail != None:
7743
    if self.isSessionId != None:
4598
      oprot.writeFieldBegin('isEmail', TType.BOOL, 2)
7744
      oprot.writeFieldBegin('isSessionId', TType.BOOL, 2)
4599
      oprot.writeBool(self.isEmail)
7745
      oprot.writeBool(self.isSessionId)
4600
      oprot.writeFieldEnd()
7746
      oprot.writeFieldEnd()
4601
    oprot.writeFieldStop()
7747
    oprot.writeFieldStop()
4602
    oprot.writeStructEnd()
7748
    oprot.writeStructEnd()
4603
 
7749
 
4604
  def __repr__(self):
7750
  def __repr__(self):
Line 4610... Line 7756...
4610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4611
 
7757
 
4612
  def __ne__(self, other):
7758
  def __ne__(self, other):
4613
    return not (self == other)
7759
    return not (self == other)
4614
 
7760
 
4615
class sendNewPasswordByHandle_result:
7761
class getBrowseHistory_result:
4616
  """
7762
  """
4617
  Attributes:
7763
  Attributes:
4618
   - success
7764
   - success
4619
   - ucx
7765
   - scx
4620
  """
7766
  """
4621
 
7767
 
4622
  thrift_spec = (
7768
  thrift_spec = (
4623
    (0, TType.BOOL, 'success', None, None, ), # 0
7769
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
4624
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
7770
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
4625
  )
7771
  )
4626
 
7772
 
4627
  def __init__(self, success=None, ucx=None,):
7773
  def __init__(self, success=None, scx=None,):
4628
    self.success = success
7774
    self.success = success
4629
    self.ucx = ucx
7775
    self.scx = scx
4630
 
7776
 
4631
  def read(self, iprot):
7777
  def read(self, iprot):
4632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4634
      return
7780
      return
Line 4636... Line 7782...
4636
    while True:
7782
    while True:
4637
      (fname, ftype, fid) = iprot.readFieldBegin()
7783
      (fname, ftype, fid) = iprot.readFieldBegin()
4638
      if ftype == TType.STOP:
7784
      if ftype == TType.STOP:
4639
        break
7785
        break
4640
      if fid == 0:
7786
      if fid == 0:
4641
        if ftype == TType.BOOL:
7787
        if ftype == TType.STRUCT:
4642
          self.success = iprot.readBool();
7788
          self.success = Widget()
-
 
7789
          self.success.read(iprot)
4643
        else:
7790
        else:
4644
          iprot.skip(ftype)
7791
          iprot.skip(ftype)
4645
      elif fid == 1:
7792
      elif fid == 1:
4646
        if ftype == TType.STRUCT:
7793
        if ftype == TType.STRUCT:
4647
          self.ucx = UserContextException()
7794
          self.scx = WidgetException()
4648
          self.ucx.read(iprot)
7795
          self.scx.read(iprot)
4649
        else:
7796
        else:
4650
          iprot.skip(ftype)
7797
          iprot.skip(ftype)
4651
      else:
7798
      else:
4652
        iprot.skip(ftype)
7799
        iprot.skip(ftype)
4653
      iprot.readFieldEnd()
7800
      iprot.readFieldEnd()
Line 4655... Line 7802...
4655
 
7802
 
4656
  def write(self, oprot):
7803
  def write(self, oprot):
4657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4659
      return
7806
      return
4660
    oprot.writeStructBegin('sendNewPasswordByHandle_result')
7807
    oprot.writeStructBegin('getBrowseHistory_result')
4661
    if self.success != None:
7808
    if self.success != None:
4662
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7809
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4663
      oprot.writeBool(self.success)
7810
      self.success.write(oprot)
4664
      oprot.writeFieldEnd()
7811
      oprot.writeFieldEnd()
4665
    if self.ucx != None:
7812
    if self.scx != None:
4666
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7813
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
4667
      self.ucx.write(oprot)
7814
      self.scx.write(oprot)
4668
      oprot.writeFieldEnd()
7815
      oprot.writeFieldEnd()
4669
    oprot.writeFieldStop()
7816
    oprot.writeFieldStop()
4670
    oprot.writeStructEnd()
7817
    oprot.writeStructEnd()
4671
 
7818
 
4672
  def __repr__(self):
7819
  def __repr__(self):