Subversion Repositories SmartDukaan

Rev

Rev 1596 | Rev 1845 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 ashish 1
#
2
# Autogenerated by Thrift
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
from ttypes import *
9
from thrift.Thrift import TProcessor
10
from thrift.transport import TTransport
11
from thrift.protocol import TBinaryProtocol
12
try:
13
  from thrift.protocol import fastbinary
14
except:
15
  fastbinary = None
16
 
17
 
18
class Iface:
19
  """
20
  service
21
  """
765 rajveer 22
  def closeSession(self, ):
23
    """
24
    For closing the open session in sqlalchemy
25
    """
26
    pass
27
 
559 chandransh 28
  def createAnonymousUser(self, jsessionId):
94 ashish 29
    """
30
    Parameters:
559 chandransh 31
     - jsessionId
94 ashish 32
    """
33
    pass
34
 
559 chandransh 35
  def getUserById(self, userId):
94 ashish 36
    """
37
    Parameters:
38
     - userId
39
    """
40
    pass
41
 
1491 vikas 42
  def getUserByEmail(self, email):
43
    """
44
    Parameters:
45
     - email
46
    """
47
    pass
48
 
559 chandransh 49
  def createUser(self, user):
94 ashish 50
    """
51
    Parameters:
559 chandransh 52
     - user
94 ashish 53
    """
54
    pass
55
 
559 chandransh 56
  def updateUser(self, user):
94 ashish 57
    """
58
    Parameters:
559 chandransh 59
     - user
94 ashish 60
    """
61
    pass
62
 
559 chandransh 63
  def deleteUser(self, userId):
94 ashish 64
    """
65
    Parameters:
66
     - userId
67
    """
68
    pass
69
 
559 chandransh 70
  def getUserState(self, userId):
94 ashish 71
    """
72
    Parameters:
73
     - userId
74
    """
75
    pass
76
 
559 chandransh 77
  def authenticateUser(self, email, password):
94 ashish 78
    """
79
    Parameters:
80
     - email
81
     - password
82
    """
83
    pass
84
 
85
  def userExists(self, email):
86
    """
87
    Parameters:
88
     - email
89
    """
90
    pass
91
 
567 rajveer 92
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 93
    """
94
    Parameters:
95
     - userId
96
     - address
513 rajveer 97
     - setDefault
94 ashish 98
    """
99
    pass
100
 
101
  def removeAddressForUser(self, userid, addressId):
102
    """
103
    Parameters:
104
     - userid
105
     - addressId
106
    """
107
    pass
108
 
109
  def setUserAsLoggedIn(self, userId, timestamp):
110
    """
111
    Parameters:
112
     - userId
113
     - timestamp
114
    """
115
    pass
116
 
117
  def setUserAsLoggedOut(self, userid, timestamp):
118
    """
119
    Parameters:
120
     - userid
121
     - timestamp
122
    """
123
    pass
124
 
504 rajveer 125
  def setDefaultAddress(self, userid, addressId):
126
    """
127
    Parameters:
128
     - userid
129
     - addressId
130
    """
131
    pass
132
 
594 rajveer 133
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 134
    """
135
    Parameters:
136
     - userid
594 rajveer 137
     - oldPassword
138
     - newPassword
94 ashish 139
    """
140
    pass
141
 
884 rajveer 142
  def forgotPassword(self, email, newPassword):
581 rajveer 143
    """
144
    Parameters:
145
     - email
884 rajveer 146
     - newPassword
581 rajveer 147
    """
148
    pass
149
 
594 rajveer 150
  def getAllAddressesForUser(self, userId):
151
    """
152
    Parameters:
153
     - userId
154
    """
155
    pass
156
 
157
  def getDefaultAddressId(self, userId):
158
    """
159
    Parameters:
160
     - userId
161
    """
162
    pass
163
 
785 rajveer 164
  def getDefaultPincode(self, userId):
165
    """
166
    Parameters:
167
     - userId
168
    """
169
    pass
170
 
1274 varun.gupt 171
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
172
    """
173
    Parameters:
174
     - userId
175
     - replyTo
176
     - communicationType
177
     - orderId
178
     - airwaybillNo
179
     - productName
180
     - subject
181
     - message
182
    """
183
    pass
184
 
1590 varun.gupt 185
  def getUserCommunicationById(self, id):
186
    """
187
    Parameters:
188
     - id
189
    """
190
    pass
191
 
192
  def getUserCommunicationByUser(self, userId):
193
    """
194
    Parameters:
195
     - userId
196
    """
197
    pass
198
 
199
  def getAllUserCommunications(self, ):
200
    pass
201
 
559 chandransh 202
  def createCart(self, userId):
94 ashish 203
    """
204
    Parameters:
559 chandransh 205
     - userId
94 ashish 206
    """
207
    pass
208
 
559 chandransh 209
  def getCurrentCart(self, userId):
94 ashish 210
    """
211
    Parameters:
559 chandransh 212
     - userId
94 ashish 213
    """
214
    pass
215
 
559 chandransh 216
  def getCart(self, cartId):
94 ashish 217
    """
218
    Parameters:
559 chandransh 219
     - cartId
94 ashish 220
    """
221
    pass
222
 
559 chandransh 223
  def getCartsForUser(self, userId, status):
94 ashish 224
    """
225
    Parameters:
559 chandransh 226
     - userId
227
     - status
94 ashish 228
    """
229
    pass
230
 
559 chandransh 231
  def getCartsByStatus(self, status):
94 ashish 232
    """
233
    Parameters:
559 chandransh 234
     - status
94 ashish 235
    """
236
    pass
237
 
559 chandransh 238
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 239
    """
240
    Parameters:
559 chandransh 241
     - from_time
242
     - to_time
243
     - status
94 ashish 244
    """
245
    pass
246
 
559 chandransh 247
  def changeCartStatus(self, cartId, status):
130 ashish 248
    """
249
    Parameters:
559 chandransh 250
     - cartId
251
     - status
130 ashish 252
    """
253
    pass
94 ashish 254
 
559 chandransh 255
  def addItemToCart(self, cartId, itemId, quantity):
130 ashish 256
    """
257
    Parameters:
559 chandransh 258
     - cartId
259
     - itemId
260
     - quantity
130 ashish 261
    """
262
    pass
263
 
559 chandransh 264
  def deleteItemFromCart(self, cartId, itemId):
265
    """
266
    Parameters:
267
     - cartId
268
     - itemId
269
    """
270
    pass
130 ashish 271
 
559 chandransh 272
  def changeQuantity(self, cartId, itemId, quantity):
273
    """
274
    Parameters:
275
     - cartId
276
     - itemId
277
     - quantity
278
    """
279
    pass
280
 
281
  def changeItemStatus(self, cartId, itemId, status):
282
    """
283
    Parameters:
284
     - cartId
285
     - itemId
286
     - status
287
    """
288
    pass
289
 
290
  def addAddressToCart(self, cartId, addressId):
291
    """
292
    Parameters:
293
     - cartId
294
     - addressId
295
    """
296
    pass
297
 
690 chandransh 298
  def createOrders(self, cartId):
559 chandransh 299
    """
690 chandransh 300
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
301
 
559 chandransh 302
    Parameters:
303
     - cartId
304
    """
305
    pass
306
 
307
  def validateCart(self, cartId):
308
    """
690 chandransh 309
    Validates that:
310
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 311
    2. All of the lines in the cart are active items.
690 chandransh 312
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 313
    If all three are true, returns empty string; else returns appropriate message.
690 chandransh 314
 
559 chandransh 315
    Parameters:
316
     - cartId
317
    """
318
    pass
319
 
690 chandransh 320
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 321
    """
690 chandransh 322
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
323
 
575 chandransh 324
    Parameters:
690 chandransh 325
     - fromCartId
326
     - toCartId
327
    """
328
    pass
329
 
330
  def checkOut(self, cartId):
331
    """
332
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
333
 
334
    Parameters:
575 chandransh 335
     - cartId
336
    """
337
    pass
338
 
690 chandransh 339
  def resetCart(self, cartId, items):
559 chandransh 340
    """
690 chandransh 341
    The second parameter is a map of item ids and their quantities which have been successfully processed.
342
    This methods removes the specified quantiry of the specified item from the cart.
343
 
559 chandransh 344
    Parameters:
690 chandransh 345
     - cartId
346
     - items
559 chandransh 347
    """
348
    pass
349
 
772 rajveer 350
  def getMyResearch(self, userId):
559 chandransh 351
    """
772 rajveer 352
    Widgets
353
 
559 chandransh 354
    Parameters:
772 rajveer 355
     - userId
559 chandransh 356
    """
357
    pass
358
 
772 rajveer 359
  def updateMyResearch(self, userId, itemId):
559 chandransh 360
    """
361
    Parameters:
772 rajveer 362
     - userId
363
     - itemId
559 chandransh 364
    """
365
    pass
366
 
772 rajveer 367
  def deleteItemFromMyResearch(self, userId, itemId):
559 chandransh 368
    """
369
    Parameters:
772 rajveer 370
     - userId
371
     - itemId
559 chandransh 372
    """
373
    pass
374
 
772 rajveer 375
  def updateBrowseHistory(self, userId, itemId):
559 chandransh 376
    """
377
    Parameters:
772 rajveer 378
     - userId
379
     - itemId
559 chandransh 380
    """
381
    pass
382
 
772 rajveer 383
  def getBrowseHistory(self, userId):
559 chandransh 384
    """
385
    Parameters:
386
     - userId
387
    """
388
    pass
389
 
772 rajveer 390
  def mergeBrowseHistory(self, fromUserId, toUserId):
559 chandransh 391
    """
392
    Parameters:
772 rajveer 393
     - fromUserId
394
     - toUserId
559 chandransh 395
    """
396
    pass
397
 
1596 ankur.sing 398
  def getUserCount(self, userType):
399
    """
400
    Returns number of registered users.
401
    If userType = null, then it returns count of all users, including anonymous
402
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
403
    If userType = UserType.USER, then it returns count of non-anonymous users only
404
 
405
    Parameters:
406
     - userType
407
    """
408
    pass
559 chandransh 409
 
1673 ankur.sing 410
  def getAllUsers(self, userType):
411
    """
412
    Returns list of users of type userType. If userType is null, then returns all the users.
413
 
414
    Parameters:
415
     - userType
416
    """
417
    pass
1596 ankur.sing 418
 
1673 ankur.sing 419
 
94 ashish 420
class Client(Iface):
421
  """
422
  service
423
  """
424
  def __init__(self, iprot, oprot=None):
425
    self._iprot = self._oprot = iprot
426
    if oprot != None:
427
      self._oprot = oprot
428
    self._seqid = 0
429
 
765 rajveer 430
  def closeSession(self, ):
431
    """
432
    For closing the open session in sqlalchemy
433
    """
434
    self.send_closeSession()
435
    self.recv_closeSession()
436
 
437
  def send_closeSession(self, ):
438
    self._oprot.writeMessageBegin('closeSession', TMessageType.CALL, self._seqid)
439
    args = closeSession_args()
440
    args.write(self._oprot)
441
    self._oprot.writeMessageEnd()
442
    self._oprot.trans.flush()
443
 
444
  def recv_closeSession(self, ):
445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
446
    if mtype == TMessageType.EXCEPTION:
447
      x = TApplicationException()
448
      x.read(self._iprot)
449
      self._iprot.readMessageEnd()
450
      raise x
451
    result = closeSession_result()
452
    result.read(self._iprot)
453
    self._iprot.readMessageEnd()
454
    return
455
 
559 chandransh 456
  def createAnonymousUser(self, jsessionId):
94 ashish 457
    """
458
    Parameters:
559 chandransh 459
     - jsessionId
94 ashish 460
    """
559 chandransh 461
    self.send_createAnonymousUser(jsessionId)
462
    return self.recv_createAnonymousUser()
94 ashish 463
 
559 chandransh 464
  def send_createAnonymousUser(self, jsessionId):
465
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
466
    args = createAnonymousUser_args()
467
    args.jsessionId = jsessionId
94 ashish 468
    args.write(self._oprot)
469
    self._oprot.writeMessageEnd()
470
    self._oprot.trans.flush()
471
 
559 chandransh 472
  def recv_createAnonymousUser(self, ):
94 ashish 473
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
474
    if mtype == TMessageType.EXCEPTION:
475
      x = TApplicationException()
476
      x.read(self._iprot)
477
      self._iprot.readMessageEnd()
478
      raise x
559 chandransh 479
    result = createAnonymousUser_result()
94 ashish 480
    result.read(self._iprot)
481
    self._iprot.readMessageEnd()
482
    if result.success != None:
483
      return result.success
559 chandransh 484
    if result.ucex != None:
485
      raise result.ucex
486
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 487
 
559 chandransh 488
  def getUserById(self, userId):
94 ashish 489
    """
490
    Parameters:
491
     - userId
492
    """
559 chandransh 493
    self.send_getUserById(userId)
494
    return self.recv_getUserById()
94 ashish 495
 
559 chandransh 496
  def send_getUserById(self, userId):
497
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
498
    args = getUserById_args()
94 ashish 499
    args.userId = userId
500
    args.write(self._oprot)
501
    self._oprot.writeMessageEnd()
502
    self._oprot.trans.flush()
503
 
559 chandransh 504
  def recv_getUserById(self, ):
94 ashish 505
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
506
    if mtype == TMessageType.EXCEPTION:
507
      x = TApplicationException()
508
      x.read(self._iprot)
509
      self._iprot.readMessageEnd()
510
      raise x
559 chandransh 511
    result = getUserById_result()
94 ashish 512
    result.read(self._iprot)
513
    self._iprot.readMessageEnd()
514
    if result.success != None:
515
      return result.success
559 chandransh 516
    if result.ucex != None:
517
      raise result.ucex
518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 519
 
1491 vikas 520
  def getUserByEmail(self, email):
521
    """
522
    Parameters:
523
     - email
524
    """
525
    self.send_getUserByEmail(email)
526
    return self.recv_getUserByEmail()
527
 
528
  def send_getUserByEmail(self, email):
529
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
530
    args = getUserByEmail_args()
531
    args.email = email
532
    args.write(self._oprot)
533
    self._oprot.writeMessageEnd()
534
    self._oprot.trans.flush()
535
 
536
  def recv_getUserByEmail(self, ):
537
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
538
    if mtype == TMessageType.EXCEPTION:
539
      x = TApplicationException()
540
      x.read(self._iprot)
541
      self._iprot.readMessageEnd()
542
      raise x
543
    result = getUserByEmail_result()
544
    result.read(self._iprot)
545
    self._iprot.readMessageEnd()
546
    if result.success != None:
547
      return result.success
548
    if result.ucex != None:
549
      raise result.ucex
550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
551
 
559 chandransh 552
  def createUser(self, user):
94 ashish 553
    """
554
    Parameters:
559 chandransh 555
     - user
94 ashish 556
    """
559 chandransh 557
    self.send_createUser(user)
558
    return self.recv_createUser()
94 ashish 559
 
559 chandransh 560
  def send_createUser(self, user):
561
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
562
    args = createUser_args()
563
    args.user = user
94 ashish 564
    args.write(self._oprot)
565
    self._oprot.writeMessageEnd()
566
    self._oprot.trans.flush()
567
 
559 chandransh 568
  def recv_createUser(self, ):
94 ashish 569
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
570
    if mtype == TMessageType.EXCEPTION:
571
      x = TApplicationException()
572
      x.read(self._iprot)
573
      self._iprot.readMessageEnd()
574
      raise x
559 chandransh 575
    result = createUser_result()
94 ashish 576
    result.read(self._iprot)
577
    self._iprot.readMessageEnd()
578
    if result.success != None:
579
      return result.success
559 chandransh 580
    if result.ucex != None:
581
      raise result.ucex
582
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 583
 
559 chandransh 584
  def updateUser(self, user):
94 ashish 585
    """
586
    Parameters:
559 chandransh 587
     - user
94 ashish 588
    """
559 chandransh 589
    self.send_updateUser(user)
590
    return self.recv_updateUser()
94 ashish 591
 
559 chandransh 592
  def send_updateUser(self, user):
593
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
594
    args = updateUser_args()
595
    args.user = user
94 ashish 596
    args.write(self._oprot)
597
    self._oprot.writeMessageEnd()
598
    self._oprot.trans.flush()
599
 
559 chandransh 600
  def recv_updateUser(self, ):
94 ashish 601
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
602
    if mtype == TMessageType.EXCEPTION:
603
      x = TApplicationException()
604
      x.read(self._iprot)
605
      self._iprot.readMessageEnd()
606
      raise x
559 chandransh 607
    result = updateUser_result()
94 ashish 608
    result.read(self._iprot)
609
    self._iprot.readMessageEnd()
610
    if result.success != None:
611
      return result.success
559 chandransh 612
    if result.ucex != None:
613
      raise result.ucex
614
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 615
 
559 chandransh 616
  def deleteUser(self, userId):
94 ashish 617
    """
618
    Parameters:
619
     - userId
620
    """
559 chandransh 621
    self.send_deleteUser(userId)
622
    return self.recv_deleteUser()
94 ashish 623
 
559 chandransh 624
  def send_deleteUser(self, userId):
625
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
626
    args = deleteUser_args()
94 ashish 627
    args.userId = userId
628
    args.write(self._oprot)
629
    self._oprot.writeMessageEnd()
630
    self._oprot.trans.flush()
631
 
559 chandransh 632
  def recv_deleteUser(self, ):
94 ashish 633
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
634
    if mtype == TMessageType.EXCEPTION:
635
      x = TApplicationException()
636
      x.read(self._iprot)
637
      self._iprot.readMessageEnd()
638
      raise x
559 chandransh 639
    result = deleteUser_result()
94 ashish 640
    result.read(self._iprot)
641
    self._iprot.readMessageEnd()
642
    if result.success != None:
643
      return result.success
559 chandransh 644
    if result.ucex != None:
645
      raise result.ucex
646
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 647
 
559 chandransh 648
  def getUserState(self, userId):
94 ashish 649
    """
650
    Parameters:
651
     - userId
652
    """
559 chandransh 653
    self.send_getUserState(userId)
654
    return self.recv_getUserState()
94 ashish 655
 
559 chandransh 656
  def send_getUserState(self, userId):
657
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
658
    args = getUserState_args()
94 ashish 659
    args.userId = userId
660
    args.write(self._oprot)
661
    self._oprot.writeMessageEnd()
662
    self._oprot.trans.flush()
663
 
559 chandransh 664
  def recv_getUserState(self, ):
94 ashish 665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
666
    if mtype == TMessageType.EXCEPTION:
667
      x = TApplicationException()
668
      x.read(self._iprot)
669
      self._iprot.readMessageEnd()
670
      raise x
559 chandransh 671
    result = getUserState_result()
94 ashish 672
    result.read(self._iprot)
673
    self._iprot.readMessageEnd()
674
    if result.success != None:
675
      return result.success
559 chandransh 676
    if result.ucex != None:
677
      raise result.ucex
678
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 679
 
559 chandransh 680
  def authenticateUser(self, email, password):
94 ashish 681
    """
682
    Parameters:
683
     - email
684
     - password
685
    """
559 chandransh 686
    self.send_authenticateUser(email, password)
122 ashish 687
    return self.recv_authenticateUser()
688
 
559 chandransh 689
  def send_authenticateUser(self, email, password):
122 ashish 690
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
691
    args = authenticateUser_args()
559 chandransh 692
    args.email = email
122 ashish 693
    args.password = password
694
    args.write(self._oprot)
695
    self._oprot.writeMessageEnd()
696
    self._oprot.trans.flush()
697
 
698
  def recv_authenticateUser(self, ):
699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
700
    if mtype == TMessageType.EXCEPTION:
701
      x = TApplicationException()
702
      x.read(self._iprot)
703
      self._iprot.readMessageEnd()
704
      raise x
705
    result = authenticateUser_result()
706
    result.read(self._iprot)
707
    self._iprot.readMessageEnd()
708
    if result.success != None:
709
      return result.success
559 chandransh 710
    if result.auex != None:
711
      raise result.auex
122 ashish 712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
713
 
94 ashish 714
  def userExists(self, email):
715
    """
716
    Parameters:
717
     - email
718
    """
719
    self.send_userExists(email)
720
    return self.recv_userExists()
721
 
722
  def send_userExists(self, email):
723
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
724
    args = userExists_args()
725
    args.email = email
726
    args.write(self._oprot)
727
    self._oprot.writeMessageEnd()
728
    self._oprot.trans.flush()
729
 
730
  def recv_userExists(self, ):
731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
732
    if mtype == TMessageType.EXCEPTION:
733
      x = TApplicationException()
734
      x.read(self._iprot)
735
      self._iprot.readMessageEnd()
736
      raise x
737
    result = userExists_result()
738
    result.read(self._iprot)
739
    self._iprot.readMessageEnd()
740
    if result.success != None:
741
      return result.success
742
    if result.ucx != None:
743
      raise result.ucx
744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
745
 
567 rajveer 746
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 747
    """
748
    Parameters:
749
     - userId
750
     - address
513 rajveer 751
     - setDefault
94 ashish 752
    """
567 rajveer 753
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 754
    return self.recv_addAddressForUser()
755
 
567 rajveer 756
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 757
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
758
    args = addAddressForUser_args()
559 chandransh 759
    args.userId = userId
94 ashish 760
    args.address = address
513 rajveer 761
    args.setDefault = setDefault
94 ashish 762
    args.write(self._oprot)
763
    self._oprot.writeMessageEnd()
764
    self._oprot.trans.flush()
765
 
766
  def recv_addAddressForUser(self, ):
767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
768
    if mtype == TMessageType.EXCEPTION:
769
      x = TApplicationException()
770
      x.read(self._iprot)
771
      self._iprot.readMessageEnd()
772
      raise x
773
    result = addAddressForUser_result()
774
    result.read(self._iprot)
775
    self._iprot.readMessageEnd()
776
    if result.success != None:
777
      return result.success
778
    if result.ucx != None:
779
      raise result.ucx
780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
781
 
782
  def removeAddressForUser(self, userid, addressId):
783
    """
784
    Parameters:
785
     - userid
786
     - addressId
787
    """
788
    self.send_removeAddressForUser(userid, addressId)
789
    return self.recv_removeAddressForUser()
790
 
791
  def send_removeAddressForUser(self, userid, addressId):
792
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
793
    args = removeAddressForUser_args()
794
    args.userid = userid
795
    args.addressId = addressId
796
    args.write(self._oprot)
797
    self._oprot.writeMessageEnd()
798
    self._oprot.trans.flush()
799
 
800
  def recv_removeAddressForUser(self, ):
801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
802
    if mtype == TMessageType.EXCEPTION:
803
      x = TApplicationException()
804
      x.read(self._iprot)
805
      self._iprot.readMessageEnd()
806
      raise x
807
    result = removeAddressForUser_result()
808
    result.read(self._iprot)
809
    self._iprot.readMessageEnd()
810
    if result.success != None:
811
      return result.success
812
    if result.ucx != None:
813
      raise result.ucx
814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
815
 
816
  def setUserAsLoggedIn(self, userId, timestamp):
817
    """
818
    Parameters:
819
     - userId
820
     - timestamp
821
    """
822
    self.send_setUserAsLoggedIn(userId, timestamp)
823
    return self.recv_setUserAsLoggedIn()
824
 
825
  def send_setUserAsLoggedIn(self, userId, timestamp):
826
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
827
    args = setUserAsLoggedIn_args()
828
    args.userId = userId
829
    args.timestamp = timestamp
830
    args.write(self._oprot)
831
    self._oprot.writeMessageEnd()
832
    self._oprot.trans.flush()
833
 
834
  def recv_setUserAsLoggedIn(self, ):
835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
836
    if mtype == TMessageType.EXCEPTION:
837
      x = TApplicationException()
838
      x.read(self._iprot)
839
      self._iprot.readMessageEnd()
840
      raise x
841
    result = setUserAsLoggedIn_result()
842
    result.read(self._iprot)
843
    self._iprot.readMessageEnd()
844
    if result.success != None:
845
      return result.success
846
    if result.ucx != None:
847
      raise result.ucx
848
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
849
 
850
  def setUserAsLoggedOut(self, userid, timestamp):
851
    """
852
    Parameters:
853
     - userid
854
     - timestamp
855
    """
856
    self.send_setUserAsLoggedOut(userid, timestamp)
857
    return self.recv_setUserAsLoggedOut()
858
 
859
  def send_setUserAsLoggedOut(self, userid, timestamp):
860
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
861
    args = setUserAsLoggedOut_args()
862
    args.userid = userid
863
    args.timestamp = timestamp
864
    args.write(self._oprot)
865
    self._oprot.writeMessageEnd()
866
    self._oprot.trans.flush()
867
 
868
  def recv_setUserAsLoggedOut(self, ):
869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
870
    if mtype == TMessageType.EXCEPTION:
871
      x = TApplicationException()
872
      x.read(self._iprot)
873
      self._iprot.readMessageEnd()
874
      raise x
875
    result = setUserAsLoggedOut_result()
876
    result.read(self._iprot)
877
    self._iprot.readMessageEnd()
878
    if result.success != None:
879
      return result.success
880
    if result.ucx != None:
881
      raise result.ucx
882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
883
 
504 rajveer 884
  def setDefaultAddress(self, userid, addressId):
885
    """
886
    Parameters:
887
     - userid
888
     - addressId
889
    """
890
    self.send_setDefaultAddress(userid, addressId)
891
    return self.recv_setDefaultAddress()
892
 
893
  def send_setDefaultAddress(self, userid, addressId):
894
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
895
    args = setDefaultAddress_args()
896
    args.userid = userid
897
    args.addressId = addressId
898
    args.write(self._oprot)
899
    self._oprot.writeMessageEnd()
900
    self._oprot.trans.flush()
901
 
902
  def recv_setDefaultAddress(self, ):
903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
904
    if mtype == TMessageType.EXCEPTION:
905
      x = TApplicationException()
906
      x.read(self._iprot)
907
      self._iprot.readMessageEnd()
908
      raise x
909
    result = setDefaultAddress_result()
910
    result.read(self._iprot)
911
    self._iprot.readMessageEnd()
912
    if result.success != None:
913
      return result.success
914
    if result.ucx != None:
915
      raise result.ucx
916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
917
 
594 rajveer 918
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 919
    """
920
    Parameters:
921
     - userid
594 rajveer 922
     - oldPassword
923
     - newPassword
94 ashish 924
    """
594 rajveer 925
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 926
    return self.recv_updatePassword()
927
 
594 rajveer 928
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 929
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
930
    args = updatePassword_args()
931
    args.userid = userid
594 rajveer 932
    args.oldPassword = oldPassword
933
    args.newPassword = newPassword
94 ashish 934
    args.write(self._oprot)
935
    self._oprot.writeMessageEnd()
936
    self._oprot.trans.flush()
937
 
938
  def recv_updatePassword(self, ):
939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
940
    if mtype == TMessageType.EXCEPTION:
941
      x = TApplicationException()
942
      x.read(self._iprot)
943
      self._iprot.readMessageEnd()
944
      raise x
945
    result = updatePassword_result()
946
    result.read(self._iprot)
947
    self._iprot.readMessageEnd()
948
    if result.success != None:
949
      return result.success
950
    if result.ucx != None:
951
      raise result.ucx
952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
953
 
884 rajveer 954
  def forgotPassword(self, email, newPassword):
581 rajveer 955
    """
956
    Parameters:
957
     - email
884 rajveer 958
     - newPassword
581 rajveer 959
    """
884 rajveer 960
    self.send_forgotPassword(email, newPassword)
581 rajveer 961
    return self.recv_forgotPassword()
962
 
884 rajveer 963
  def send_forgotPassword(self, email, newPassword):
581 rajveer 964
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
965
    args = forgotPassword_args()
966
    args.email = email
884 rajveer 967
    args.newPassword = newPassword
581 rajveer 968
    args.write(self._oprot)
969
    self._oprot.writeMessageEnd()
970
    self._oprot.trans.flush()
971
 
972
  def recv_forgotPassword(self, ):
973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
974
    if mtype == TMessageType.EXCEPTION:
975
      x = TApplicationException()
976
      x.read(self._iprot)
977
      self._iprot.readMessageEnd()
978
      raise x
979
    result = forgotPassword_result()
980
    result.read(self._iprot)
981
    self._iprot.readMessageEnd()
982
    if result.success != None:
983
      return result.success
984
    if result.ucx != None:
985
      raise result.ucx
986
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
987
 
594 rajveer 988
  def getAllAddressesForUser(self, userId):
989
    """
990
    Parameters:
991
     - userId
992
    """
993
    self.send_getAllAddressesForUser(userId)
994
    return self.recv_getAllAddressesForUser()
995
 
996
  def send_getAllAddressesForUser(self, userId):
997
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
998
    args = getAllAddressesForUser_args()
999
    args.userId = userId
1000
    args.write(self._oprot)
1001
    self._oprot.writeMessageEnd()
1002
    self._oprot.trans.flush()
1003
 
1004
  def recv_getAllAddressesForUser(self, ):
1005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1006
    if mtype == TMessageType.EXCEPTION:
1007
      x = TApplicationException()
1008
      x.read(self._iprot)
1009
      self._iprot.readMessageEnd()
1010
      raise x
1011
    result = getAllAddressesForUser_result()
1012
    result.read(self._iprot)
1013
    self._iprot.readMessageEnd()
1014
    if result.success != None:
1015
      return result.success
1016
    if result.ucx != None:
1017
      raise result.ucx
1018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1019
 
1020
  def getDefaultAddressId(self, userId):
1021
    """
1022
    Parameters:
1023
     - userId
1024
    """
1025
    self.send_getDefaultAddressId(userId)
1026
    return self.recv_getDefaultAddressId()
1027
 
1028
  def send_getDefaultAddressId(self, userId):
1029
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1030
    args = getDefaultAddressId_args()
1031
    args.userId = userId
1032
    args.write(self._oprot)
1033
    self._oprot.writeMessageEnd()
1034
    self._oprot.trans.flush()
1035
 
1036
  def recv_getDefaultAddressId(self, ):
1037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1038
    if mtype == TMessageType.EXCEPTION:
1039
      x = TApplicationException()
1040
      x.read(self._iprot)
1041
      self._iprot.readMessageEnd()
1042
      raise x
1043
    result = getDefaultAddressId_result()
1044
    result.read(self._iprot)
1045
    self._iprot.readMessageEnd()
1046
    if result.success != None:
1047
      return result.success
1048
    if result.ucx != None:
1049
      raise result.ucx
1050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1051
 
785 rajveer 1052
  def getDefaultPincode(self, userId):
1053
    """
1054
    Parameters:
1055
     - userId
1056
    """
1057
    self.send_getDefaultPincode(userId)
1058
    return self.recv_getDefaultPincode()
1059
 
1060
  def send_getDefaultPincode(self, userId):
1061
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1062
    args = getDefaultPincode_args()
1063
    args.userId = userId
1064
    args.write(self._oprot)
1065
    self._oprot.writeMessageEnd()
1066
    self._oprot.trans.flush()
1067
 
1068
  def recv_getDefaultPincode(self, ):
1069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1070
    if mtype == TMessageType.EXCEPTION:
1071
      x = TApplicationException()
1072
      x.read(self._iprot)
1073
      self._iprot.readMessageEnd()
1074
      raise x
1075
    result = getDefaultPincode_result()
1076
    result.read(self._iprot)
1077
    self._iprot.readMessageEnd()
1078
    if result.success != None:
1079
      return result.success
1080
    if result.ucx != None:
1081
      raise result.ucx
1082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1083
 
1274 varun.gupt 1084
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1085
    """
1086
    Parameters:
1087
     - userId
1088
     - replyTo
1089
     - communicationType
1090
     - orderId
1091
     - airwaybillNo
1092
     - productName
1093
     - subject
1094
     - message
1095
    """
1096
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1097
    return self.recv_saveUserCommunication()
1098
 
1099
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1100
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1101
    args = saveUserCommunication_args()
1102
    args.userId = userId
1103
    args.replyTo = replyTo
1104
    args.communicationType = communicationType
1105
    args.orderId = orderId
1106
    args.airwaybillNo = airwaybillNo
1107
    args.productName = productName
1108
    args.subject = subject
1109
    args.message = message
1110
    args.write(self._oprot)
1111
    self._oprot.writeMessageEnd()
1112
    self._oprot.trans.flush()
1113
 
1114
  def recv_saveUserCommunication(self, ):
1115
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1116
    if mtype == TMessageType.EXCEPTION:
1117
      x = TApplicationException()
1118
      x.read(self._iprot)
1119
      self._iprot.readMessageEnd()
1120
      raise x
1121
    result = saveUserCommunication_result()
1122
    result.read(self._iprot)
1123
    self._iprot.readMessageEnd()
1124
    if result.success != None:
1125
      return result.success
1126
    if result.ucx != None:
1127
      raise result.ucx
1128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1129
 
1590 varun.gupt 1130
  def getUserCommunicationById(self, id):
1131
    """
1132
    Parameters:
1133
     - id
1134
    """
1135
    self.send_getUserCommunicationById(id)
1136
    return self.recv_getUserCommunicationById()
1137
 
1138
  def send_getUserCommunicationById(self, id):
1139
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1140
    args = getUserCommunicationById_args()
1141
    args.id = id
1142
    args.write(self._oprot)
1143
    self._oprot.writeMessageEnd()
1144
    self._oprot.trans.flush()
1145
 
1146
  def recv_getUserCommunicationById(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 = getUserCommunicationById_result()
1154
    result.read(self._iprot)
1155
    self._iprot.readMessageEnd()
1156
    if result.success != None:
1157
      return result.success
1158
    if result.ucx != None:
1159
      raise result.ucx
1160
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1161
 
1162
  def getUserCommunicationByUser(self, userId):
1163
    """
1164
    Parameters:
1165
     - userId
1166
    """
1167
    self.send_getUserCommunicationByUser(userId)
1168
    return self.recv_getUserCommunicationByUser()
1169
 
1170
  def send_getUserCommunicationByUser(self, userId):
1171
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1172
    args = getUserCommunicationByUser_args()
1173
    args.userId = userId
1174
    args.write(self._oprot)
1175
    self._oprot.writeMessageEnd()
1176
    self._oprot.trans.flush()
1177
 
1178
  def recv_getUserCommunicationByUser(self, ):
1179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1180
    if mtype == TMessageType.EXCEPTION:
1181
      x = TApplicationException()
1182
      x.read(self._iprot)
1183
      self._iprot.readMessageEnd()
1184
      raise x
1185
    result = getUserCommunicationByUser_result()
1186
    result.read(self._iprot)
1187
    self._iprot.readMessageEnd()
1188
    if result.success != None:
1189
      return result.success
1190
    if result.ucx != None:
1191
      raise result.ucx
1192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1193
 
1194
  def getAllUserCommunications(self, ):
1195
    self.send_getAllUserCommunications()
1196
    return self.recv_getAllUserCommunications()
1197
 
1198
  def send_getAllUserCommunications(self, ):
1199
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1200
    args = getAllUserCommunications_args()
1201
    args.write(self._oprot)
1202
    self._oprot.writeMessageEnd()
1203
    self._oprot.trans.flush()
1204
 
1205
  def recv_getAllUserCommunications(self, ):
1206
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1207
    if mtype == TMessageType.EXCEPTION:
1208
      x = TApplicationException()
1209
      x.read(self._iprot)
1210
      self._iprot.readMessageEnd()
1211
      raise x
1212
    result = getAllUserCommunications_result()
1213
    result.read(self._iprot)
1214
    self._iprot.readMessageEnd()
1215
    if result.success != None:
1216
      return result.success
1217
    if result.ucx != None:
1218
      raise result.ucx
1219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1220
 
559 chandransh 1221
  def createCart(self, userId):
94 ashish 1222
    """
1223
    Parameters:
559 chandransh 1224
     - userId
94 ashish 1225
    """
559 chandransh 1226
    self.send_createCart(userId)
1227
    return self.recv_createCart()
94 ashish 1228
 
559 chandransh 1229
  def send_createCart(self, userId):
1230
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1231
    args = createCart_args()
1232
    args.userId = userId
94 ashish 1233
    args.write(self._oprot)
1234
    self._oprot.writeMessageEnd()
1235
    self._oprot.trans.flush()
1236
 
559 chandransh 1237
  def recv_createCart(self, ):
94 ashish 1238
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1239
    if mtype == TMessageType.EXCEPTION:
1240
      x = TApplicationException()
1241
      x.read(self._iprot)
1242
      self._iprot.readMessageEnd()
1243
      raise x
559 chandransh 1244
    result = createCart_result()
94 ashish 1245
    result.read(self._iprot)
1246
    self._iprot.readMessageEnd()
1247
    if result.success != None:
1248
      return result.success
559 chandransh 1249
    if result.scx != None:
1250
      raise result.scx
1251
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1252
 
559 chandransh 1253
  def getCurrentCart(self, userId):
94 ashish 1254
    """
1255
    Parameters:
559 chandransh 1256
     - userId
94 ashish 1257
    """
559 chandransh 1258
    self.send_getCurrentCart(userId)
1259
    return self.recv_getCurrentCart()
94 ashish 1260
 
559 chandransh 1261
  def send_getCurrentCart(self, userId):
1262
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1263
    args = getCurrentCart_args()
1264
    args.userId = userId
94 ashish 1265
    args.write(self._oprot)
1266
    self._oprot.writeMessageEnd()
1267
    self._oprot.trans.flush()
1268
 
559 chandransh 1269
  def recv_getCurrentCart(self, ):
94 ashish 1270
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1271
    if mtype == TMessageType.EXCEPTION:
1272
      x = TApplicationException()
1273
      x.read(self._iprot)
1274
      self._iprot.readMessageEnd()
1275
      raise x
559 chandransh 1276
    result = getCurrentCart_result()
94 ashish 1277
    result.read(self._iprot)
1278
    self._iprot.readMessageEnd()
1279
    if result.success != None:
1280
      return result.success
559 chandransh 1281
    if result.scx != None:
1282
      raise result.scx
1283
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1284
 
559 chandransh 1285
  def getCart(self, cartId):
94 ashish 1286
    """
1287
    Parameters:
559 chandransh 1288
     - cartId
94 ashish 1289
    """
559 chandransh 1290
    self.send_getCart(cartId)
1291
    return self.recv_getCart()
94 ashish 1292
 
559 chandransh 1293
  def send_getCart(self, cartId):
1294
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1295
    args = getCart_args()
1296
    args.cartId = cartId
94 ashish 1297
    args.write(self._oprot)
1298
    self._oprot.writeMessageEnd()
1299
    self._oprot.trans.flush()
1300
 
559 chandransh 1301
  def recv_getCart(self, ):
94 ashish 1302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1303
    if mtype == TMessageType.EXCEPTION:
1304
      x = TApplicationException()
1305
      x.read(self._iprot)
1306
      self._iprot.readMessageEnd()
1307
      raise x
559 chandransh 1308
    result = getCart_result()
94 ashish 1309
    result.read(self._iprot)
1310
    self._iprot.readMessageEnd()
1311
    if result.success != None:
1312
      return result.success
559 chandransh 1313
    if result.scx != None:
1314
      raise result.scx
1315
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1316
 
559 chandransh 1317
  def getCartsForUser(self, userId, status):
94 ashish 1318
    """
1319
    Parameters:
559 chandransh 1320
     - userId
1321
     - status
94 ashish 1322
    """
559 chandransh 1323
    self.send_getCartsForUser(userId, status)
1324
    return self.recv_getCartsForUser()
94 ashish 1325
 
559 chandransh 1326
  def send_getCartsForUser(self, userId, status):
1327
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
1328
    args = getCartsForUser_args()
1329
    args.userId = userId
1330
    args.status = status
94 ashish 1331
    args.write(self._oprot)
1332
    self._oprot.writeMessageEnd()
1333
    self._oprot.trans.flush()
1334
 
559 chandransh 1335
  def recv_getCartsForUser(self, ):
94 ashish 1336
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1337
    if mtype == TMessageType.EXCEPTION:
1338
      x = TApplicationException()
1339
      x.read(self._iprot)
1340
      self._iprot.readMessageEnd()
1341
      raise x
559 chandransh 1342
    result = getCartsForUser_result()
94 ashish 1343
    result.read(self._iprot)
1344
    self._iprot.readMessageEnd()
1345
    if result.success != None:
1346
      return result.success
559 chandransh 1347
    if result.scx != None:
1348
      raise result.scx
1349
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 1350
 
559 chandransh 1351
  def getCartsByStatus(self, status):
94 ashish 1352
    """
1353
    Parameters:
559 chandransh 1354
     - status
94 ashish 1355
    """
559 chandransh 1356
    self.send_getCartsByStatus(status)
1357
    return self.recv_getCartsByStatus()
94 ashish 1358
 
559 chandransh 1359
  def send_getCartsByStatus(self, status):
1360
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
1361
    args = getCartsByStatus_args()
1362
    args.status = status
94 ashish 1363
    args.write(self._oprot)
1364
    self._oprot.writeMessageEnd()
1365
    self._oprot.trans.flush()
1366
 
559 chandransh 1367
  def recv_getCartsByStatus(self, ):
94 ashish 1368
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1369
    if mtype == TMessageType.EXCEPTION:
1370
      x = TApplicationException()
1371
      x.read(self._iprot)
1372
      self._iprot.readMessageEnd()
1373
      raise x
559 chandransh 1374
    result = getCartsByStatus_result()
94 ashish 1375
    result.read(self._iprot)
1376
    self._iprot.readMessageEnd()
1377
    if result.success != None:
1378
      return result.success
559 chandransh 1379
    if result.scx != None:
1380
      raise result.scx
1381
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 1382
 
559 chandransh 1383
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1384
    """
1385
    Parameters:
559 chandransh 1386
     - from_time
1387
     - to_time
1388
     - status
94 ashish 1389
    """
559 chandransh 1390
    self.send_getCartsByTime(from_time, to_time, status)
1391
    return self.recv_getCartsByTime()
94 ashish 1392
 
559 chandransh 1393
  def send_getCartsByTime(self, from_time, to_time, status):
1394
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1395
    args = getCartsByTime_args()
1396
    args.from_time = from_time
1397
    args.to_time = to_time
1398
    args.status = status
94 ashish 1399
    args.write(self._oprot)
1400
    self._oprot.writeMessageEnd()
1401
    self._oprot.trans.flush()
1402
 
559 chandransh 1403
  def recv_getCartsByTime(self, ):
94 ashish 1404
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1405
    if mtype == TMessageType.EXCEPTION:
1406
      x = TApplicationException()
1407
      x.read(self._iprot)
1408
      self._iprot.readMessageEnd()
1409
      raise x
559 chandransh 1410
    result = getCartsByTime_result()
94 ashish 1411
    result.read(self._iprot)
1412
    self._iprot.readMessageEnd()
1413
    if result.success != None:
1414
      return result.success
559 chandransh 1415
    if result.scx != None:
1416
      raise result.scx
1417
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 1418
 
559 chandransh 1419
  def changeCartStatus(self, cartId, status):
130 ashish 1420
    """
1421
    Parameters:
559 chandransh 1422
     - cartId
1423
     - status
130 ashish 1424
    """
559 chandransh 1425
    self.send_changeCartStatus(cartId, status)
1426
    self.recv_changeCartStatus()
94 ashish 1427
 
559 chandransh 1428
  def send_changeCartStatus(self, cartId, status):
1429
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
1430
    args = changeCartStatus_args()
1431
    args.cartId = cartId
1432
    args.status = status
130 ashish 1433
    args.write(self._oprot)
1434
    self._oprot.writeMessageEnd()
1435
    self._oprot.trans.flush()
1436
 
559 chandransh 1437
  def recv_changeCartStatus(self, ):
130 ashish 1438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1439
    if mtype == TMessageType.EXCEPTION:
1440
      x = TApplicationException()
1441
      x.read(self._iprot)
1442
      self._iprot.readMessageEnd()
1443
      raise x
559 chandransh 1444
    result = changeCartStatus_result()
130 ashish 1445
    result.read(self._iprot)
1446
    self._iprot.readMessageEnd()
559 chandransh 1447
    if result.scx != None:
1448
      raise result.scx
1449
    return
1450
 
1451
  def addItemToCart(self, cartId, itemId, quantity):
1452
    """
1453
    Parameters:
1454
     - cartId
1455
     - itemId
1456
     - quantity
1457
    """
1458
    self.send_addItemToCart(cartId, itemId, quantity)
1459
    self.recv_addItemToCart()
1460
 
1461
  def send_addItemToCart(self, cartId, itemId, quantity):
1462
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
1463
    args = addItemToCart_args()
1464
    args.cartId = cartId
1465
    args.itemId = itemId
1466
    args.quantity = quantity
1467
    args.write(self._oprot)
1468
    self._oprot.writeMessageEnd()
1469
    self._oprot.trans.flush()
1470
 
1471
  def recv_addItemToCart(self, ):
1472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1473
    if mtype == TMessageType.EXCEPTION:
1474
      x = TApplicationException()
1475
      x.read(self._iprot)
1476
      self._iprot.readMessageEnd()
1477
      raise x
1478
    result = addItemToCart_result()
1479
    result.read(self._iprot)
1480
    self._iprot.readMessageEnd()
1481
    if result.scx != None:
1482
      raise result.scx
1483
    return
1484
 
1485
  def deleteItemFromCart(self, cartId, itemId):
1486
    """
1487
    Parameters:
1488
     - cartId
1489
     - itemId
1490
    """
1491
    self.send_deleteItemFromCart(cartId, itemId)
1492
    self.recv_deleteItemFromCart()
1493
 
1494
  def send_deleteItemFromCart(self, cartId, itemId):
1495
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
1496
    args = deleteItemFromCart_args()
1497
    args.cartId = cartId
1498
    args.itemId = itemId
1499
    args.write(self._oprot)
1500
    self._oprot.writeMessageEnd()
1501
    self._oprot.trans.flush()
1502
 
1503
  def recv_deleteItemFromCart(self, ):
1504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1505
    if mtype == TMessageType.EXCEPTION:
1506
      x = TApplicationException()
1507
      x.read(self._iprot)
1508
      self._iprot.readMessageEnd()
1509
      raise x
1510
    result = deleteItemFromCart_result()
1511
    result.read(self._iprot)
1512
    self._iprot.readMessageEnd()
1513
    if result.scx != None:
1514
      raise result.scx
1515
    return
1516
 
1517
  def changeQuantity(self, cartId, itemId, quantity):
1518
    """
1519
    Parameters:
1520
     - cartId
1521
     - itemId
1522
     - quantity
1523
    """
1524
    self.send_changeQuantity(cartId, itemId, quantity)
1525
    self.recv_changeQuantity()
1526
 
1527
  def send_changeQuantity(self, cartId, itemId, quantity):
1528
    self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
1529
    args = changeQuantity_args()
1530
    args.cartId = cartId
1531
    args.itemId = itemId
1532
    args.quantity = quantity
1533
    args.write(self._oprot)
1534
    self._oprot.writeMessageEnd()
1535
    self._oprot.trans.flush()
1536
 
1537
  def recv_changeQuantity(self, ):
1538
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1539
    if mtype == TMessageType.EXCEPTION:
1540
      x = TApplicationException()
1541
      x.read(self._iprot)
1542
      self._iprot.readMessageEnd()
1543
      raise x
1544
    result = changeQuantity_result()
1545
    result.read(self._iprot)
1546
    self._iprot.readMessageEnd()
1547
    if result.scx != None:
1548
      raise result.scx
1549
    return
1550
 
1551
  def changeItemStatus(self, cartId, itemId, status):
1552
    """
1553
    Parameters:
1554
     - cartId
1555
     - itemId
1556
     - status
1557
    """
1558
    self.send_changeItemStatus(cartId, itemId, status)
1559
    self.recv_changeItemStatus()
1560
 
1561
  def send_changeItemStatus(self, cartId, itemId, status):
1562
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1563
    args = changeItemStatus_args()
1564
    args.cartId = cartId
1565
    args.itemId = itemId
1566
    args.status = status
1567
    args.write(self._oprot)
1568
    self._oprot.writeMessageEnd()
1569
    self._oprot.trans.flush()
1570
 
1571
  def recv_changeItemStatus(self, ):
1572
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1573
    if mtype == TMessageType.EXCEPTION:
1574
      x = TApplicationException()
1575
      x.read(self._iprot)
1576
      self._iprot.readMessageEnd()
1577
      raise x
1578
    result = changeItemStatus_result()
1579
    result.read(self._iprot)
1580
    self._iprot.readMessageEnd()
1581
    if result.scx != None:
1582
      raise result.scx
1583
    return
1584
 
1585
  def addAddressToCart(self, cartId, addressId):
1586
    """
1587
    Parameters:
1588
     - cartId
1589
     - addressId
1590
    """
1591
    self.send_addAddressToCart(cartId, addressId)
1592
    self.recv_addAddressToCart()
1593
 
1594
  def send_addAddressToCart(self, cartId, addressId):
1595
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
1596
    args = addAddressToCart_args()
1597
    args.cartId = cartId
1598
    args.addressId = addressId
1599
    args.write(self._oprot)
1600
    self._oprot.writeMessageEnd()
1601
    self._oprot.trans.flush()
1602
 
1603
  def recv_addAddressToCart(self, ):
1604
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1605
    if mtype == TMessageType.EXCEPTION:
1606
      x = TApplicationException()
1607
      x.read(self._iprot)
1608
      self._iprot.readMessageEnd()
1609
      raise x
1610
    result = addAddressToCart_result()
1611
    result.read(self._iprot)
1612
    self._iprot.readMessageEnd()
575 chandransh 1613
    if result.scx != None:
1614
      raise result.scx
559 chandransh 1615
    return
1616
 
690 chandransh 1617
  def createOrders(self, cartId):
559 chandransh 1618
    """
690 chandransh 1619
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
1620
 
559 chandransh 1621
    Parameters:
1622
     - cartId
1623
    """
690 chandransh 1624
    self.send_createOrders(cartId)
1625
    return self.recv_createOrders()
559 chandransh 1626
 
690 chandransh 1627
  def send_createOrders(self, cartId):
1628
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
1629
    args = createOrders_args()
559 chandransh 1630
    args.cartId = cartId
1631
    args.write(self._oprot)
1632
    self._oprot.writeMessageEnd()
1633
    self._oprot.trans.flush()
1634
 
690 chandransh 1635
  def recv_createOrders(self, ):
559 chandransh 1636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1637
    if mtype == TMessageType.EXCEPTION:
1638
      x = TApplicationException()
1639
      x.read(self._iprot)
1640
      self._iprot.readMessageEnd()
1641
      raise x
690 chandransh 1642
    result = createOrders_result()
559 chandransh 1643
    result.read(self._iprot)
1644
    self._iprot.readMessageEnd()
130 ashish 1645
    if result.success != None:
1646
      return result.success
559 chandransh 1647
    if result.scx != None:
1648
      raise result.scx
690 chandransh 1649
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 1650
 
559 chandransh 1651
  def validateCart(self, cartId):
130 ashish 1652
    """
690 chandransh 1653
    Validates that:
1654
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 1655
    2. All of the lines in the cart are active items.
690 chandransh 1656
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 1657
    If all three are true, returns empty string; else returns appropriate message.
690 chandransh 1658
 
130 ashish 1659
    Parameters:
559 chandransh 1660
     - cartId
130 ashish 1661
    """
559 chandransh 1662
    self.send_validateCart(cartId)
1663
    return self.recv_validateCart()
130 ashish 1664
 
559 chandransh 1665
  def send_validateCart(self, cartId):
1666
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
1667
    args = validateCart_args()
1668
    args.cartId = cartId
130 ashish 1669
    args.write(self._oprot)
1670
    self._oprot.writeMessageEnd()
1671
    self._oprot.trans.flush()
1672
 
559 chandransh 1673
  def recv_validateCart(self, ):
130 ashish 1674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1675
    if mtype == TMessageType.EXCEPTION:
1676
      x = TApplicationException()
1677
      x.read(self._iprot)
1678
      self._iprot.readMessageEnd()
1679
      raise x
559 chandransh 1680
    result = validateCart_result()
130 ashish 1681
    result.read(self._iprot)
1682
    self._iprot.readMessageEnd()
1683
    if result.success != None:
1684
      return result.success
575 chandransh 1685
    if result.scex != None:
1686
      raise result.scex
559 chandransh 1687
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 1688
 
690 chandransh 1689
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 1690
    """
690 chandransh 1691
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
1692
 
575 chandransh 1693
    Parameters:
690 chandransh 1694
     - fromCartId
1695
     - toCartId
1696
    """
1697
    self.send_mergeCart(fromCartId, toCartId)
1698
    self.recv_mergeCart()
1699
 
1700
  def send_mergeCart(self, fromCartId, toCartId):
1701
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
1702
    args = mergeCart_args()
1703
    args.fromCartId = fromCartId
1704
    args.toCartId = toCartId
1705
    args.write(self._oprot)
1706
    self._oprot.writeMessageEnd()
1707
    self._oprot.trans.flush()
1708
 
1709
  def recv_mergeCart(self, ):
1710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1711
    if mtype == TMessageType.EXCEPTION:
1712
      x = TApplicationException()
1713
      x.read(self._iprot)
1714
      self._iprot.readMessageEnd()
1715
      raise x
1716
    result = mergeCart_result()
1717
    result.read(self._iprot)
1718
    self._iprot.readMessageEnd()
1719
    return
1720
 
1721
  def checkOut(self, cartId):
1722
    """
1723
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
1724
 
1725
    Parameters:
575 chandransh 1726
     - cartId
1727
    """
690 chandransh 1728
    self.send_checkOut(cartId)
1729
    return self.recv_checkOut()
575 chandransh 1730
 
690 chandransh 1731
  def send_checkOut(self, cartId):
1732
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
1733
    args = checkOut_args()
575 chandransh 1734
    args.cartId = cartId
1735
    args.write(self._oprot)
1736
    self._oprot.writeMessageEnd()
1737
    self._oprot.trans.flush()
1738
 
690 chandransh 1739
  def recv_checkOut(self, ):
575 chandransh 1740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1741
    if mtype == TMessageType.EXCEPTION:
1742
      x = TApplicationException()
1743
      x.read(self._iprot)
1744
      self._iprot.readMessageEnd()
1745
      raise x
690 chandransh 1746
    result = checkOut_result()
575 chandransh 1747
    result.read(self._iprot)
1748
    self._iprot.readMessageEnd()
1749
    if result.success != None:
1750
      return result.success
1751
    if result.scex != None:
1752
      raise result.scex
690 chandransh 1753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 1754
 
690 chandransh 1755
  def resetCart(self, cartId, items):
559 chandransh 1756
    """
690 chandransh 1757
    The second parameter is a map of item ids and their quantities which have been successfully processed.
1758
    This methods removes the specified quantiry of the specified item from the cart.
1759
 
559 chandransh 1760
    Parameters:
690 chandransh 1761
     - cartId
1762
     - items
559 chandransh 1763
    """
690 chandransh 1764
    self.send_resetCart(cartId, items)
1765
    return self.recv_resetCart()
130 ashish 1766
 
690 chandransh 1767
  def send_resetCart(self, cartId, items):
1768
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
1769
    args = resetCart_args()
1770
    args.cartId = cartId
1771
    args.items = items
559 chandransh 1772
    args.write(self._oprot)
1773
    self._oprot.writeMessageEnd()
1774
    self._oprot.trans.flush()
1775
 
690 chandransh 1776
  def recv_resetCart(self, ):
559 chandransh 1777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1778
    if mtype == TMessageType.EXCEPTION:
1779
      x = TApplicationException()
1780
      x.read(self._iprot)
1781
      self._iprot.readMessageEnd()
1782
      raise x
690 chandransh 1783
    result = resetCart_result()
559 chandransh 1784
    result.read(self._iprot)
1785
    self._iprot.readMessageEnd()
690 chandransh 1786
    if result.success != None:
1787
      return result.success
1788
    if result.scex != None:
1789
      raise result.scex
1790
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 1791
 
772 rajveer 1792
  def getMyResearch(self, userId):
559 chandransh 1793
    """
772 rajveer 1794
    Widgets
1795
 
559 chandransh 1796
    Parameters:
1797
     - userId
1798
    """
772 rajveer 1799
    self.send_getMyResearch(userId)
559 chandransh 1800
    return self.recv_getMyResearch()
1801
 
772 rajveer 1802
  def send_getMyResearch(self, userId):
559 chandransh 1803
    self._oprot.writeMessageBegin('getMyResearch', TMessageType.CALL, self._seqid)
1804
    args = getMyResearch_args()
772 rajveer 1805
    args.userId = userId
559 chandransh 1806
    args.write(self._oprot)
1807
    self._oprot.writeMessageEnd()
1808
    self._oprot.trans.flush()
1809
 
1810
  def recv_getMyResearch(self, ):
1811
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1812
    if mtype == TMessageType.EXCEPTION:
1813
      x = TApplicationException()
1814
      x.read(self._iprot)
1815
      self._iprot.readMessageEnd()
1816
      raise x
1817
    result = getMyResearch_result()
1818
    result.read(self._iprot)
1819
    self._iprot.readMessageEnd()
1820
    if result.success != None:
1821
      return result.success
1822
    if result.scx != None:
1823
      raise result.scx
1824
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearch failed: unknown result");
1825
 
772 rajveer 1826
  def updateMyResearch(self, userId, itemId):
559 chandransh 1827
    """
1828
    Parameters:
772 rajveer 1829
     - userId
1830
     - itemId
559 chandransh 1831
    """
772 rajveer 1832
    self.send_updateMyResearch(userId, itemId)
559 chandransh 1833
    return self.recv_updateMyResearch()
1834
 
772 rajveer 1835
  def send_updateMyResearch(self, userId, itemId):
559 chandransh 1836
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
1837
    args = updateMyResearch_args()
772 rajveer 1838
    args.userId = userId
1839
    args.itemId = itemId
559 chandransh 1840
    args.write(self._oprot)
1841
    self._oprot.writeMessageEnd()
1842
    self._oprot.trans.flush()
1843
 
1844
  def recv_updateMyResearch(self, ):
1845
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1846
    if mtype == TMessageType.EXCEPTION:
1847
      x = TApplicationException()
1848
      x.read(self._iprot)
1849
      self._iprot.readMessageEnd()
1850
      raise x
1851
    result = updateMyResearch_result()
1852
    result.read(self._iprot)
1853
    self._iprot.readMessageEnd()
1854
    if result.success != None:
1855
      return result.success
1856
    if result.scx != None:
1857
      raise result.scx
1858
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
1859
 
772 rajveer 1860
  def deleteItemFromMyResearch(self, userId, itemId):
559 chandransh 1861
    """
1862
    Parameters:
772 rajveer 1863
     - userId
1864
     - itemId
559 chandransh 1865
    """
772 rajveer 1866
    self.send_deleteItemFromMyResearch(userId, itemId)
559 chandransh 1867
    self.recv_deleteItemFromMyResearch()
1868
 
772 rajveer 1869
  def send_deleteItemFromMyResearch(self, userId, itemId):
559 chandransh 1870
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
1871
    args = deleteItemFromMyResearch_args()
772 rajveer 1872
    args.userId = userId
1873
    args.itemId = itemId
559 chandransh 1874
    args.write(self._oprot)
1875
    self._oprot.writeMessageEnd()
1876
    self._oprot.trans.flush()
1877
 
1878
  def recv_deleteItemFromMyResearch(self, ):
1879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1880
    if mtype == TMessageType.EXCEPTION:
1881
      x = TApplicationException()
1882
      x.read(self._iprot)
1883
      self._iprot.readMessageEnd()
1884
      raise x
1885
    result = deleteItemFromMyResearch_result()
1886
    result.read(self._iprot)
1887
    self._iprot.readMessageEnd()
1888
    if result.scx != None:
1889
      raise result.scx
1890
    return
1891
 
772 rajveer 1892
  def updateBrowseHistory(self, userId, itemId):
559 chandransh 1893
    """
1894
    Parameters:
772 rajveer 1895
     - userId
1896
     - itemId
559 chandransh 1897
    """
772 rajveer 1898
    self.send_updateBrowseHistory(userId, itemId)
1899
    self.recv_updateBrowseHistory()
559 chandransh 1900
 
772 rajveer 1901
  def send_updateBrowseHistory(self, userId, itemId):
1902
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
1903
    args = updateBrowseHistory_args()
1904
    args.userId = userId
1905
    args.itemId = itemId
559 chandransh 1906
    args.write(self._oprot)
1907
    self._oprot.writeMessageEnd()
1908
    self._oprot.trans.flush()
1909
 
772 rajveer 1910
  def recv_updateBrowseHistory(self, ):
559 chandransh 1911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1912
    if mtype == TMessageType.EXCEPTION:
1913
      x = TApplicationException()
1914
      x.read(self._iprot)
1915
      self._iprot.readMessageEnd()
1916
      raise x
772 rajveer 1917
    result = updateBrowseHistory_result()
559 chandransh 1918
    result.read(self._iprot)
1919
    self._iprot.readMessageEnd()
1920
    return
1921
 
772 rajveer 1922
  def getBrowseHistory(self, userId):
559 chandransh 1923
    """
1924
    Parameters:
772 rajveer 1925
     - userId
559 chandransh 1926
    """
772 rajveer 1927
    self.send_getBrowseHistory(userId)
1928
    return self.recv_getBrowseHistory()
559 chandransh 1929
 
772 rajveer 1930
  def send_getBrowseHistory(self, userId):
1931
    self._oprot.writeMessageBegin('getBrowseHistory', TMessageType.CALL, self._seqid)
1932
    args = getBrowseHistory_args()
1933
    args.userId = userId
559 chandransh 1934
    args.write(self._oprot)
1935
    self._oprot.writeMessageEnd()
1936
    self._oprot.trans.flush()
1937
 
772 rajveer 1938
  def recv_getBrowseHistory(self, ):
559 chandransh 1939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1940
    if mtype == TMessageType.EXCEPTION:
1941
      x = TApplicationException()
1942
      x.read(self._iprot)
1943
      self._iprot.readMessageEnd()
1944
      raise x
772 rajveer 1945
    result = getBrowseHistory_result()
559 chandransh 1946
    result.read(self._iprot)
1947
    self._iprot.readMessageEnd()
1948
    if result.success != None:
1949
      return result.success
1950
    if result.scx != None:
1951
      raise result.scx
772 rajveer 1952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistory failed: unknown result");
559 chandransh 1953
 
772 rajveer 1954
  def mergeBrowseHistory(self, fromUserId, toUserId):
559 chandransh 1955
    """
1956
    Parameters:
772 rajveer 1957
     - fromUserId
1958
     - toUserId
559 chandransh 1959
    """
772 rajveer 1960
    self.send_mergeBrowseHistory(fromUserId, toUserId)
1961
    self.recv_mergeBrowseHistory()
559 chandransh 1962
 
772 rajveer 1963
  def send_mergeBrowseHistory(self, fromUserId, toUserId):
1964
    self._oprot.writeMessageBegin('mergeBrowseHistory', TMessageType.CALL, self._seqid)
1965
    args = mergeBrowseHistory_args()
1966
    args.fromUserId = fromUserId
1967
    args.toUserId = toUserId
559 chandransh 1968
    args.write(self._oprot)
1969
    self._oprot.writeMessageEnd()
1970
    self._oprot.trans.flush()
1971
 
772 rajveer 1972
  def recv_mergeBrowseHistory(self, ):
559 chandransh 1973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1974
    if mtype == TMessageType.EXCEPTION:
1975
      x = TApplicationException()
1976
      x.read(self._iprot)
1977
      self._iprot.readMessageEnd()
1978
      raise x
772 rajveer 1979
    result = mergeBrowseHistory_result()
559 chandransh 1980
    result.read(self._iprot)
1981
    self._iprot.readMessageEnd()
1982
    return
1983
 
1596 ankur.sing 1984
  def getUserCount(self, userType):
1985
    """
1986
    Returns number of registered users.
1987
    If userType = null, then it returns count of all users, including anonymous
1988
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
1989
    If userType = UserType.USER, then it returns count of non-anonymous users only
1990
 
1991
    Parameters:
1992
     - userType
1993
    """
1994
    self.send_getUserCount(userType)
1995
    return self.recv_getUserCount()
559 chandransh 1996
 
1596 ankur.sing 1997
  def send_getUserCount(self, userType):
1998
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
1999
    args = getUserCount_args()
2000
    args.userType = userType
2001
    args.write(self._oprot)
2002
    self._oprot.writeMessageEnd()
2003
    self._oprot.trans.flush()
2004
 
2005
  def recv_getUserCount(self, ):
2006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2007
    if mtype == TMessageType.EXCEPTION:
2008
      x = TApplicationException()
2009
      x.read(self._iprot)
2010
      self._iprot.readMessageEnd()
2011
      raise x
2012
    result = getUserCount_result()
2013
    result.read(self._iprot)
2014
    self._iprot.readMessageEnd()
2015
    if result.success != None:
2016
      return result.success
2017
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
2018
 
1673 ankur.sing 2019
  def getAllUsers(self, userType):
2020
    """
2021
    Returns list of users of type userType. If userType is null, then returns all the users.
2022
 
2023
    Parameters:
2024
     - userType
2025
    """
2026
    self.send_getAllUsers(userType)
2027
    return self.recv_getAllUsers()
1596 ankur.sing 2028
 
1673 ankur.sing 2029
  def send_getAllUsers(self, userType):
2030
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2031
    args = getAllUsers_args()
2032
    args.userType = userType
2033
    args.write(self._oprot)
2034
    self._oprot.writeMessageEnd()
2035
    self._oprot.trans.flush()
2036
 
2037
  def recv_getAllUsers(self, ):
2038
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2039
    if mtype == TMessageType.EXCEPTION:
2040
      x = TApplicationException()
2041
      x.read(self._iprot)
2042
      self._iprot.readMessageEnd()
2043
      raise x
2044
    result = getAllUsers_result()
2045
    result.read(self._iprot)
2046
    self._iprot.readMessageEnd()
2047
    if result.success != None:
2048
      return result.success
2049
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
2050
 
2051
 
94 ashish 2052
class Processor(Iface, TProcessor):
2053
  def __init__(self, handler):
2054
    self._handler = handler
2055
    self._processMap = {}
765 rajveer 2056
    self._processMap["closeSession"] = Processor.process_closeSession
559 chandransh 2057
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2058
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2059
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
559 chandransh 2060
    self._processMap["createUser"] = Processor.process_createUser
2061
    self._processMap["updateUser"] = Processor.process_updateUser
2062
    self._processMap["deleteUser"] = Processor.process_deleteUser
2063
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 2064
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2065
    self._processMap["userExists"] = Processor.process_userExists
2066
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2067
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2068
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2069
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2070
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2071
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2072
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2073
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
2074
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2075
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2076
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2077
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2078
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2079
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
559 chandransh 2080
    self._processMap["createCart"] = Processor.process_createCart
2081
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2082
    self._processMap["getCart"] = Processor.process_getCart
2083
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
2084
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
2085
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2086
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
2087
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2088
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2089
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
2090
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2091
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
690 chandransh 2092
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2093
    self._processMap["validateCart"] = Processor.process_validateCart
2094
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2095
    self._processMap["checkOut"] = Processor.process_checkOut
2096
    self._processMap["resetCart"] = Processor.process_resetCart
559 chandransh 2097
    self._processMap["getMyResearch"] = Processor.process_getMyResearch
2098
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2099
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2100
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
2101
    self._processMap["getBrowseHistory"] = Processor.process_getBrowseHistory
772 rajveer 2102
    self._processMap["mergeBrowseHistory"] = Processor.process_mergeBrowseHistory
1596 ankur.sing 2103
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2104
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
94 ashish 2105
 
2106
  def process(self, iprot, oprot):
2107
    (name, type, seqid) = iprot.readMessageBegin()
2108
    if name not in self._processMap:
2109
      iprot.skip(TType.STRUCT)
2110
      iprot.readMessageEnd()
2111
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2112
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2113
      x.write(oprot)
2114
      oprot.writeMessageEnd()
2115
      oprot.trans.flush()
2116
      return
2117
    else:
2118
      self._processMap[name](self, seqid, iprot, oprot)
2119
    return True
2120
 
765 rajveer 2121
  def process_closeSession(self, seqid, iprot, oprot):
2122
    args = closeSession_args()
2123
    args.read(iprot)
2124
    iprot.readMessageEnd()
2125
    result = closeSession_result()
2126
    self._handler.closeSession()
2127
    oprot.writeMessageBegin("closeSession", TMessageType.REPLY, seqid)
2128
    result.write(oprot)
2129
    oprot.writeMessageEnd()
2130
    oprot.trans.flush()
2131
 
559 chandransh 2132
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2133
    args = createAnonymousUser_args()
94 ashish 2134
    args.read(iprot)
2135
    iprot.readMessageEnd()
559 chandransh 2136
    result = createAnonymousUser_result()
94 ashish 2137
    try:
559 chandransh 2138
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2139
    except UserContextException, ucex:
2140
      result.ucex = ucex
2141
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2142
    result.write(oprot)
2143
    oprot.writeMessageEnd()
2144
    oprot.trans.flush()
2145
 
559 chandransh 2146
  def process_getUserById(self, seqid, iprot, oprot):
2147
    args = getUserById_args()
94 ashish 2148
    args.read(iprot)
2149
    iprot.readMessageEnd()
559 chandransh 2150
    result = getUserById_result()
94 ashish 2151
    try:
559 chandransh 2152
      result.success = self._handler.getUserById(args.userId)
2153
    except UserContextException, ucex:
2154
      result.ucex = ucex
2155
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2156
    result.write(oprot)
2157
    oprot.writeMessageEnd()
2158
    oprot.trans.flush()
2159
 
1491 vikas 2160
  def process_getUserByEmail(self, seqid, iprot, oprot):
2161
    args = getUserByEmail_args()
2162
    args.read(iprot)
2163
    iprot.readMessageEnd()
2164
    result = getUserByEmail_result()
2165
    try:
2166
      result.success = self._handler.getUserByEmail(args.email)
2167
    except UserContextException, ucex:
2168
      result.ucex = ucex
2169
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
2170
    result.write(oprot)
2171
    oprot.writeMessageEnd()
2172
    oprot.trans.flush()
2173
 
559 chandransh 2174
  def process_createUser(self, seqid, iprot, oprot):
2175
    args = createUser_args()
94 ashish 2176
    args.read(iprot)
2177
    iprot.readMessageEnd()
559 chandransh 2178
    result = createUser_result()
94 ashish 2179
    try:
559 chandransh 2180
      result.success = self._handler.createUser(args.user)
2181
    except UserContextException, ucex:
2182
      result.ucex = ucex
2183
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 2184
    result.write(oprot)
2185
    oprot.writeMessageEnd()
2186
    oprot.trans.flush()
2187
 
559 chandransh 2188
  def process_updateUser(self, seqid, iprot, oprot):
2189
    args = updateUser_args()
94 ashish 2190
    args.read(iprot)
2191
    iprot.readMessageEnd()
559 chandransh 2192
    result = updateUser_result()
94 ashish 2193
    try:
559 chandransh 2194
      result.success = self._handler.updateUser(args.user)
2195
    except UserContextException, ucex:
2196
      result.ucex = ucex
2197
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 2198
    result.write(oprot)
2199
    oprot.writeMessageEnd()
2200
    oprot.trans.flush()
2201
 
559 chandransh 2202
  def process_deleteUser(self, seqid, iprot, oprot):
2203
    args = deleteUser_args()
94 ashish 2204
    args.read(iprot)
2205
    iprot.readMessageEnd()
559 chandransh 2206
    result = deleteUser_result()
94 ashish 2207
    try:
559 chandransh 2208
      result.success = self._handler.deleteUser(args.userId)
2209
    except UserContextException, ucex:
2210
      result.ucex = ucex
2211
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 2212
    result.write(oprot)
2213
    oprot.writeMessageEnd()
2214
    oprot.trans.flush()
2215
 
559 chandransh 2216
  def process_getUserState(self, seqid, iprot, oprot):
2217
    args = getUserState_args()
94 ashish 2218
    args.read(iprot)
2219
    iprot.readMessageEnd()
559 chandransh 2220
    result = getUserState_result()
94 ashish 2221
    try:
559 chandransh 2222
      result.success = self._handler.getUserState(args.userId)
2223
    except UserContextException, ucex:
2224
      result.ucex = ucex
2225
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 2226
    result.write(oprot)
2227
    oprot.writeMessageEnd()
2228
    oprot.trans.flush()
2229
 
122 ashish 2230
  def process_authenticateUser(self, seqid, iprot, oprot):
2231
    args = authenticateUser_args()
2232
    args.read(iprot)
2233
    iprot.readMessageEnd()
2234
    result = authenticateUser_result()
2235
    try:
559 chandransh 2236
      result.success = self._handler.authenticateUser(args.email, args.password)
2237
    except AuthenticationException, auex:
2238
      result.auex = auex
122 ashish 2239
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
2240
    result.write(oprot)
2241
    oprot.writeMessageEnd()
2242
    oprot.trans.flush()
2243
 
94 ashish 2244
  def process_userExists(self, seqid, iprot, oprot):
2245
    args = userExists_args()
2246
    args.read(iprot)
2247
    iprot.readMessageEnd()
2248
    result = userExists_result()
2249
    try:
2250
      result.success = self._handler.userExists(args.email)
2251
    except UserContextException, ucx:
2252
      result.ucx = ucx
2253
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
2254
    result.write(oprot)
2255
    oprot.writeMessageEnd()
2256
    oprot.trans.flush()
2257
 
2258
  def process_addAddressForUser(self, seqid, iprot, oprot):
2259
    args = addAddressForUser_args()
2260
    args.read(iprot)
2261
    iprot.readMessageEnd()
2262
    result = addAddressForUser_result()
2263
    try:
567 rajveer 2264
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 2265
    except UserContextException, ucx:
2266
      result.ucx = ucx
2267
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
2268
    result.write(oprot)
2269
    oprot.writeMessageEnd()
2270
    oprot.trans.flush()
2271
 
2272
  def process_removeAddressForUser(self, seqid, iprot, oprot):
2273
    args = removeAddressForUser_args()
2274
    args.read(iprot)
2275
    iprot.readMessageEnd()
2276
    result = removeAddressForUser_result()
2277
    try:
2278
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
2279
    except UserContextException, ucx:
2280
      result.ucx = ucx
2281
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
2282
    result.write(oprot)
2283
    oprot.writeMessageEnd()
2284
    oprot.trans.flush()
2285
 
2286
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
2287
    args = setUserAsLoggedIn_args()
2288
    args.read(iprot)
2289
    iprot.readMessageEnd()
2290
    result = setUserAsLoggedIn_result()
2291
    try:
2292
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
2293
    except UserContextException, ucx:
2294
      result.ucx = ucx
2295
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
2296
    result.write(oprot)
2297
    oprot.writeMessageEnd()
2298
    oprot.trans.flush()
2299
 
2300
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
2301
    args = setUserAsLoggedOut_args()
2302
    args.read(iprot)
2303
    iprot.readMessageEnd()
2304
    result = setUserAsLoggedOut_result()
2305
    try:
2306
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
2307
    except UserContextException, ucx:
2308
      result.ucx = ucx
2309
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
2310
    result.write(oprot)
2311
    oprot.writeMessageEnd()
2312
    oprot.trans.flush()
2313
 
504 rajveer 2314
  def process_setDefaultAddress(self, seqid, iprot, oprot):
2315
    args = setDefaultAddress_args()
2316
    args.read(iprot)
2317
    iprot.readMessageEnd()
2318
    result = setDefaultAddress_result()
2319
    try:
2320
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
2321
    except UserContextException, ucx:
2322
      result.ucx = ucx
2323
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
2324
    result.write(oprot)
2325
    oprot.writeMessageEnd()
2326
    oprot.trans.flush()
2327
 
94 ashish 2328
  def process_updatePassword(self, seqid, iprot, oprot):
2329
    args = updatePassword_args()
2330
    args.read(iprot)
2331
    iprot.readMessageEnd()
2332
    result = updatePassword_result()
2333
    try:
594 rajveer 2334
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 2335
    except UserContextException, ucx:
2336
      result.ucx = ucx
2337
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
2338
    result.write(oprot)
2339
    oprot.writeMessageEnd()
2340
    oprot.trans.flush()
2341
 
581 rajveer 2342
  def process_forgotPassword(self, seqid, iprot, oprot):
2343
    args = forgotPassword_args()
2344
    args.read(iprot)
2345
    iprot.readMessageEnd()
2346
    result = forgotPassword_result()
2347
    try:
884 rajveer 2348
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 2349
    except UserContextException, ucx:
2350
      result.ucx = ucx
2351
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
2352
    result.write(oprot)
2353
    oprot.writeMessageEnd()
2354
    oprot.trans.flush()
2355
 
594 rajveer 2356
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
2357
    args = getAllAddressesForUser_args()
2358
    args.read(iprot)
2359
    iprot.readMessageEnd()
2360
    result = getAllAddressesForUser_result()
2361
    try:
2362
      result.success = self._handler.getAllAddressesForUser(args.userId)
2363
    except UserContextException, ucx:
2364
      result.ucx = ucx
2365
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
2366
    result.write(oprot)
2367
    oprot.writeMessageEnd()
2368
    oprot.trans.flush()
2369
 
2370
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
2371
    args = getDefaultAddressId_args()
2372
    args.read(iprot)
2373
    iprot.readMessageEnd()
2374
    result = getDefaultAddressId_result()
2375
    try:
2376
      result.success = self._handler.getDefaultAddressId(args.userId)
2377
    except UserContextException, ucx:
2378
      result.ucx = ucx
2379
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
2380
    result.write(oprot)
2381
    oprot.writeMessageEnd()
2382
    oprot.trans.flush()
2383
 
785 rajveer 2384
  def process_getDefaultPincode(self, seqid, iprot, oprot):
2385
    args = getDefaultPincode_args()
2386
    args.read(iprot)
2387
    iprot.readMessageEnd()
2388
    result = getDefaultPincode_result()
2389
    try:
2390
      result.success = self._handler.getDefaultPincode(args.userId)
2391
    except UserContextException, ucx:
2392
      result.ucx = ucx
2393
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
2394
    result.write(oprot)
2395
    oprot.writeMessageEnd()
2396
    oprot.trans.flush()
2397
 
1274 varun.gupt 2398
  def process_saveUserCommunication(self, seqid, iprot, oprot):
2399
    args = saveUserCommunication_args()
2400
    args.read(iprot)
2401
    iprot.readMessageEnd()
2402
    result = saveUserCommunication_result()
2403
    try:
2404
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
2405
    except UserCommunicationException, ucx:
2406
      result.ucx = ucx
2407
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
2408
    result.write(oprot)
2409
    oprot.writeMessageEnd()
2410
    oprot.trans.flush()
2411
 
1590 varun.gupt 2412
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
2413
    args = getUserCommunicationById_args()
2414
    args.read(iprot)
2415
    iprot.readMessageEnd()
2416
    result = getUserCommunicationById_result()
2417
    try:
2418
      result.success = self._handler.getUserCommunicationById(args.id)
2419
    except UserCommunicationException, ucx:
2420
      result.ucx = ucx
2421
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
2422
    result.write(oprot)
2423
    oprot.writeMessageEnd()
2424
    oprot.trans.flush()
2425
 
2426
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
2427
    args = getUserCommunicationByUser_args()
2428
    args.read(iprot)
2429
    iprot.readMessageEnd()
2430
    result = getUserCommunicationByUser_result()
2431
    try:
2432
      result.success = self._handler.getUserCommunicationByUser(args.userId)
2433
    except UserCommunicationException, ucx:
2434
      result.ucx = ucx
2435
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
2436
    result.write(oprot)
2437
    oprot.writeMessageEnd()
2438
    oprot.trans.flush()
2439
 
2440
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
2441
    args = getAllUserCommunications_args()
2442
    args.read(iprot)
2443
    iprot.readMessageEnd()
2444
    result = getAllUserCommunications_result()
2445
    try:
2446
      result.success = self._handler.getAllUserCommunications()
2447
    except UserCommunicationException, ucx:
2448
      result.ucx = ucx
2449
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
2450
    result.write(oprot)
2451
    oprot.writeMessageEnd()
2452
    oprot.trans.flush()
2453
 
559 chandransh 2454
  def process_createCart(self, seqid, iprot, oprot):
2455
    args = createCart_args()
94 ashish 2456
    args.read(iprot)
2457
    iprot.readMessageEnd()
559 chandransh 2458
    result = createCart_result()
94 ashish 2459
    try:
559 chandransh 2460
      result.success = self._handler.createCart(args.userId)
2461
    except ShoppingCartException, scx:
2462
      result.scx = scx
2463
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 2464
    result.write(oprot)
2465
    oprot.writeMessageEnd()
2466
    oprot.trans.flush()
2467
 
559 chandransh 2468
  def process_getCurrentCart(self, seqid, iprot, oprot):
2469
    args = getCurrentCart_args()
94 ashish 2470
    args.read(iprot)
2471
    iprot.readMessageEnd()
559 chandransh 2472
    result = getCurrentCart_result()
94 ashish 2473
    try:
559 chandransh 2474
      result.success = self._handler.getCurrentCart(args.userId)
2475
    except ShoppingCartException, scx:
2476
      result.scx = scx
2477
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 2478
    result.write(oprot)
2479
    oprot.writeMessageEnd()
2480
    oprot.trans.flush()
2481
 
559 chandransh 2482
  def process_getCart(self, seqid, iprot, oprot):
2483
    args = getCart_args()
94 ashish 2484
    args.read(iprot)
2485
    iprot.readMessageEnd()
559 chandransh 2486
    result = getCart_result()
94 ashish 2487
    try:
559 chandransh 2488
      result.success = self._handler.getCart(args.cartId)
2489
    except ShoppingCartException, scx:
2490
      result.scx = scx
2491
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 2492
    result.write(oprot)
2493
    oprot.writeMessageEnd()
2494
    oprot.trans.flush()
2495
 
559 chandransh 2496
  def process_getCartsForUser(self, seqid, iprot, oprot):
2497
    args = getCartsForUser_args()
94 ashish 2498
    args.read(iprot)
2499
    iprot.readMessageEnd()
559 chandransh 2500
    result = getCartsForUser_result()
94 ashish 2501
    try:
559 chandransh 2502
      result.success = self._handler.getCartsForUser(args.userId, args.status)
2503
    except ShoppingCartException, scx:
2504
      result.scx = scx
2505
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 2506
    result.write(oprot)
2507
    oprot.writeMessageEnd()
2508
    oprot.trans.flush()
2509
 
559 chandransh 2510
  def process_getCartsByStatus(self, seqid, iprot, oprot):
2511
    args = getCartsByStatus_args()
94 ashish 2512
    args.read(iprot)
2513
    iprot.readMessageEnd()
559 chandransh 2514
    result = getCartsByStatus_result()
94 ashish 2515
    try:
559 chandransh 2516
      result.success = self._handler.getCartsByStatus(args.status)
2517
    except ShoppingCartException, scx:
2518
      result.scx = scx
2519
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 2520
    result.write(oprot)
2521
    oprot.writeMessageEnd()
2522
    oprot.trans.flush()
2523
 
559 chandransh 2524
  def process_getCartsByTime(self, seqid, iprot, oprot):
2525
    args = getCartsByTime_args()
94 ashish 2526
    args.read(iprot)
2527
    iprot.readMessageEnd()
559 chandransh 2528
    result = getCartsByTime_result()
94 ashish 2529
    try:
559 chandransh 2530
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
2531
    except ShoppingCartException, scx:
2532
      result.scx = scx
2533
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 2534
    result.write(oprot)
2535
    oprot.writeMessageEnd()
2536
    oprot.trans.flush()
2537
 
559 chandransh 2538
  def process_changeCartStatus(self, seqid, iprot, oprot):
2539
    args = changeCartStatus_args()
130 ashish 2540
    args.read(iprot)
2541
    iprot.readMessageEnd()
559 chandransh 2542
    result = changeCartStatus_result()
130 ashish 2543
    try:
559 chandransh 2544
      self._handler.changeCartStatus(args.cartId, args.status)
2545
    except ShoppingCartException, scx:
2546
      result.scx = scx
2547
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 2548
    result.write(oprot)
2549
    oprot.writeMessageEnd()
2550
    oprot.trans.flush()
94 ashish 2551
 
559 chandransh 2552
  def process_addItemToCart(self, seqid, iprot, oprot):
2553
    args = addItemToCart_args()
130 ashish 2554
    args.read(iprot)
2555
    iprot.readMessageEnd()
559 chandransh 2556
    result = addItemToCart_result()
130 ashish 2557
    try:
559 chandransh 2558
      self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)
2559
    except ShoppingCartException, scx:
2560
      result.scx = scx
2561
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 2562
    result.write(oprot)
2563
    oprot.writeMessageEnd()
2564
    oprot.trans.flush()
2565
 
559 chandransh 2566
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
2567
    args = deleteItemFromCart_args()
2568
    args.read(iprot)
2569
    iprot.readMessageEnd()
2570
    result = deleteItemFromCart_result()
2571
    try:
2572
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
2573
    except ShoppingCartException, scx:
2574
      result.scx = scx
2575
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
2576
    result.write(oprot)
2577
    oprot.writeMessageEnd()
2578
    oprot.trans.flush()
130 ashish 2579
 
559 chandransh 2580
  def process_changeQuantity(self, seqid, iprot, oprot):
2581
    args = changeQuantity_args()
2582
    args.read(iprot)
2583
    iprot.readMessageEnd()
2584
    result = changeQuantity_result()
2585
    try:
2586
      self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
2587
    except ShoppingCartException, scx:
2588
      result.scx = scx
2589
    oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
2590
    result.write(oprot)
2591
    oprot.writeMessageEnd()
2592
    oprot.trans.flush()
2593
 
2594
  def process_changeItemStatus(self, seqid, iprot, oprot):
2595
    args = changeItemStatus_args()
2596
    args.read(iprot)
2597
    iprot.readMessageEnd()
2598
    result = changeItemStatus_result()
2599
    try:
2600
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
2601
    except ShoppingCartException, scx:
2602
      result.scx = scx
2603
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
2604
    result.write(oprot)
2605
    oprot.writeMessageEnd()
2606
    oprot.trans.flush()
2607
 
2608
  def process_addAddressToCart(self, seqid, iprot, oprot):
2609
    args = addAddressToCart_args()
2610
    args.read(iprot)
2611
    iprot.readMessageEnd()
2612
    result = addAddressToCart_result()
575 chandransh 2613
    try:
2614
      self._handler.addAddressToCart(args.cartId, args.addressId)
2615
    except ShoppingCartException, scx:
2616
      result.scx = scx
559 chandransh 2617
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
2618
    result.write(oprot)
2619
    oprot.writeMessageEnd()
2620
    oprot.trans.flush()
2621
 
690 chandransh 2622
  def process_createOrders(self, seqid, iprot, oprot):
2623
    args = createOrders_args()
559 chandransh 2624
    args.read(iprot)
2625
    iprot.readMessageEnd()
690 chandransh 2626
    result = createOrders_result()
559 chandransh 2627
    try:
690 chandransh 2628
      result.success = self._handler.createOrders(args.cartId)
559 chandransh 2629
    except ShoppingCartException, scx:
2630
      result.scx = scx
690 chandransh 2631
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 2632
    result.write(oprot)
2633
    oprot.writeMessageEnd()
2634
    oprot.trans.flush()
2635
 
2636
  def process_validateCart(self, seqid, iprot, oprot):
2637
    args = validateCart_args()
2638
    args.read(iprot)
2639
    iprot.readMessageEnd()
2640
    result = validateCart_result()
575 chandransh 2641
    try:
2642
      result.success = self._handler.validateCart(args.cartId)
2643
    except ShoppingCartException, scex:
2644
      result.scex = scex
559 chandransh 2645
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
2646
    result.write(oprot)
2647
    oprot.writeMessageEnd()
2648
    oprot.trans.flush()
2649
 
690 chandransh 2650
  def process_mergeCart(self, seqid, iprot, oprot):
2651
    args = mergeCart_args()
575 chandransh 2652
    args.read(iprot)
2653
    iprot.readMessageEnd()
690 chandransh 2654
    result = mergeCart_result()
2655
    self._handler.mergeCart(args.fromCartId, args.toCartId)
2656
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
2657
    result.write(oprot)
2658
    oprot.writeMessageEnd()
2659
    oprot.trans.flush()
2660
 
2661
  def process_checkOut(self, seqid, iprot, oprot):
2662
    args = checkOut_args()
2663
    args.read(iprot)
2664
    iprot.readMessageEnd()
2665
    result = checkOut_result()
575 chandransh 2666
    try:
690 chandransh 2667
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 2668
    except ShoppingCartException, scex:
2669
      result.scex = scex
690 chandransh 2670
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 2671
    result.write(oprot)
2672
    oprot.writeMessageEnd()
2673
    oprot.trans.flush()
2674
 
690 chandransh 2675
  def process_resetCart(self, seqid, iprot, oprot):
2676
    args = resetCart_args()
559 chandransh 2677
    args.read(iprot)
2678
    iprot.readMessageEnd()
690 chandransh 2679
    result = resetCart_result()
2680
    try:
2681
      result.success = self._handler.resetCart(args.cartId, args.items)
2682
    except ShoppingCartException, scex:
2683
      result.scex = scex
2684
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 2685
    result.write(oprot)
2686
    oprot.writeMessageEnd()
2687
    oprot.trans.flush()
2688
 
2689
  def process_getMyResearch(self, seqid, iprot, oprot):
2690
    args = getMyResearch_args()
2691
    args.read(iprot)
2692
    iprot.readMessageEnd()
2693
    result = getMyResearch_result()
2694
    try:
772 rajveer 2695
      result.success = self._handler.getMyResearch(args.userId)
559 chandransh 2696
    except WidgetException, scx:
2697
      result.scx = scx
2698
    oprot.writeMessageBegin("getMyResearch", TMessageType.REPLY, seqid)
2699
    result.write(oprot)
2700
    oprot.writeMessageEnd()
2701
    oprot.trans.flush()
2702
 
2703
  def process_updateMyResearch(self, seqid, iprot, oprot):
2704
    args = updateMyResearch_args()
2705
    args.read(iprot)
2706
    iprot.readMessageEnd()
2707
    result = updateMyResearch_result()
2708
    try:
772 rajveer 2709
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
559 chandransh 2710
    except WidgetException, scx:
2711
      result.scx = scx
2712
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
2713
    result.write(oprot)
2714
    oprot.writeMessageEnd()
2715
    oprot.trans.flush()
2716
 
2717
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
2718
    args = deleteItemFromMyResearch_args()
2719
    args.read(iprot)
2720
    iprot.readMessageEnd()
2721
    result = deleteItemFromMyResearch_result()
2722
    try:
772 rajveer 2723
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
559 chandransh 2724
    except WidgetException, scx:
2725
      result.scx = scx
2726
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
2727
    result.write(oprot)
2728
    oprot.writeMessageEnd()
2729
    oprot.trans.flush()
2730
 
2731
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
2732
    args = updateBrowseHistory_args()
2733
    args.read(iprot)
2734
    iprot.readMessageEnd()
2735
    result = updateBrowseHistory_result()
772 rajveer 2736
    self._handler.updateBrowseHistory(args.userId, args.itemId)
559 chandransh 2737
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2738
    result.write(oprot)
2739
    oprot.writeMessageEnd()
2740
    oprot.trans.flush()
2741
 
2742
  def process_getBrowseHistory(self, seqid, iprot, oprot):
2743
    args = getBrowseHistory_args()
2744
    args.read(iprot)
2745
    iprot.readMessageEnd()
2746
    result = getBrowseHistory_result()
2747
    try:
772 rajveer 2748
      result.success = self._handler.getBrowseHistory(args.userId)
559 chandransh 2749
    except WidgetException, scx:
2750
      result.scx = scx
2751
    oprot.writeMessageBegin("getBrowseHistory", TMessageType.REPLY, seqid)
2752
    result.write(oprot)
2753
    oprot.writeMessageEnd()
2754
    oprot.trans.flush()
2755
 
772 rajveer 2756
  def process_mergeBrowseHistory(self, seqid, iprot, oprot):
2757
    args = mergeBrowseHistory_args()
2758
    args.read(iprot)
2759
    iprot.readMessageEnd()
2760
    result = mergeBrowseHistory_result()
2761
    self._handler.mergeBrowseHistory(args.fromUserId, args.toUserId)
2762
    oprot.writeMessageBegin("mergeBrowseHistory", TMessageType.REPLY, seqid)
2763
    result.write(oprot)
2764
    oprot.writeMessageEnd()
2765
    oprot.trans.flush()
559 chandransh 2766
 
1596 ankur.sing 2767
  def process_getUserCount(self, seqid, iprot, oprot):
2768
    args = getUserCount_args()
2769
    args.read(iprot)
2770
    iprot.readMessageEnd()
2771
    result = getUserCount_result()
2772
    result.success = self._handler.getUserCount(args.userType)
2773
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
2774
    result.write(oprot)
2775
    oprot.writeMessageEnd()
2776
    oprot.trans.flush()
772 rajveer 2777
 
1673 ankur.sing 2778
  def process_getAllUsers(self, seqid, iprot, oprot):
2779
    args = getAllUsers_args()
2780
    args.read(iprot)
2781
    iprot.readMessageEnd()
2782
    result = getAllUsers_result()
2783
    result.success = self._handler.getAllUsers(args.userType)
2784
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
2785
    result.write(oprot)
2786
    oprot.writeMessageEnd()
2787
    oprot.trans.flush()
1596 ankur.sing 2788
 
1673 ankur.sing 2789
 
94 ashish 2790
# HELPER FUNCTIONS AND STRUCTURES
2791
 
765 rajveer 2792
class closeSession_args:
2793
 
2794
  thrift_spec = (
2795
  )
2796
 
2797
  def read(self, iprot):
2798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2800
      return
2801
    iprot.readStructBegin()
2802
    while True:
2803
      (fname, ftype, fid) = iprot.readFieldBegin()
2804
      if ftype == TType.STOP:
2805
        break
2806
      else:
2807
        iprot.skip(ftype)
2808
      iprot.readFieldEnd()
2809
    iprot.readStructEnd()
2810
 
2811
  def write(self, oprot):
2812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2814
      return
2815
    oprot.writeStructBegin('closeSession_args')
2816
    oprot.writeFieldStop()
2817
    oprot.writeStructEnd()
2818
 
2819
  def __repr__(self):
2820
    L = ['%s=%r' % (key, value)
2821
      for key, value in self.__dict__.iteritems()]
2822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2823
 
2824
  def __eq__(self, other):
2825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2826
 
2827
  def __ne__(self, other):
2828
    return not (self == other)
2829
 
2830
class closeSession_result:
2831
 
2832
  thrift_spec = (
2833
  )
2834
 
2835
  def read(self, iprot):
2836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2838
      return
2839
    iprot.readStructBegin()
2840
    while True:
2841
      (fname, ftype, fid) = iprot.readFieldBegin()
2842
      if ftype == TType.STOP:
2843
        break
2844
      else:
2845
        iprot.skip(ftype)
2846
      iprot.readFieldEnd()
2847
    iprot.readStructEnd()
2848
 
2849
  def write(self, oprot):
2850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2852
      return
2853
    oprot.writeStructBegin('closeSession_result')
2854
    oprot.writeFieldStop()
2855
    oprot.writeStructEnd()
2856
 
2857
  def __repr__(self):
2858
    L = ['%s=%r' % (key, value)
2859
      for key, value in self.__dict__.iteritems()]
2860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2861
 
2862
  def __eq__(self, other):
2863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2864
 
2865
  def __ne__(self, other):
2866
    return not (self == other)
2867
 
559 chandransh 2868
class createAnonymousUser_args:
94 ashish 2869
  """
2870
  Attributes:
559 chandransh 2871
   - jsessionId
94 ashish 2872
  """
2873
 
2874
  thrift_spec = (
2875
    None, # 0
559 chandransh 2876
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 2877
  )
2878
 
559 chandransh 2879
  def __init__(self, jsessionId=None,):
2880
    self.jsessionId = jsessionId
94 ashish 2881
 
2882
  def read(self, iprot):
2883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2885
      return
2886
    iprot.readStructBegin()
2887
    while True:
2888
      (fname, ftype, fid) = iprot.readFieldBegin()
2889
      if ftype == TType.STOP:
2890
        break
2891
      if fid == 1:
559 chandransh 2892
        if ftype == TType.STRING:
2893
          self.jsessionId = iprot.readString();
94 ashish 2894
        else:
2895
          iprot.skip(ftype)
2896
      else:
2897
        iprot.skip(ftype)
2898
      iprot.readFieldEnd()
2899
    iprot.readStructEnd()
2900
 
2901
  def write(self, oprot):
2902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2904
      return
559 chandransh 2905
    oprot.writeStructBegin('createAnonymousUser_args')
2906
    if self.jsessionId != None:
2907
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
2908
      oprot.writeString(self.jsessionId)
94 ashish 2909
      oprot.writeFieldEnd()
2910
    oprot.writeFieldStop()
2911
    oprot.writeStructEnd()
2912
 
2913
  def __repr__(self):
2914
    L = ['%s=%r' % (key, value)
2915
      for key, value in self.__dict__.iteritems()]
2916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2917
 
2918
  def __eq__(self, other):
2919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2920
 
2921
  def __ne__(self, other):
2922
    return not (self == other)
2923
 
559 chandransh 2924
class createAnonymousUser_result:
94 ashish 2925
  """
2926
  Attributes:
2927
   - success
559 chandransh 2928
   - ucex
94 ashish 2929
  """
2930
 
2931
  thrift_spec = (
559 chandransh 2932
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
2933
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 2934
  )
2935
 
559 chandransh 2936
  def __init__(self, success=None, ucex=None,):
94 ashish 2937
    self.success = success
559 chandransh 2938
    self.ucex = ucex
94 ashish 2939
 
2940
  def read(self, iprot):
2941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2943
      return
2944
    iprot.readStructBegin()
2945
    while True:
2946
      (fname, ftype, fid) = iprot.readFieldBegin()
2947
      if ftype == TType.STOP:
2948
        break
2949
      if fid == 0:
2950
        if ftype == TType.STRUCT:
559 chandransh 2951
          self.success = User()
94 ashish 2952
          self.success.read(iprot)
2953
        else:
2954
          iprot.skip(ftype)
2955
      elif fid == 1:
2956
        if ftype == TType.STRUCT:
559 chandransh 2957
          self.ucex = UserContextException()
2958
          self.ucex.read(iprot)
94 ashish 2959
        else:
2960
          iprot.skip(ftype)
2961
      else:
2962
        iprot.skip(ftype)
2963
      iprot.readFieldEnd()
2964
    iprot.readStructEnd()
2965
 
2966
  def write(self, oprot):
2967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2969
      return
559 chandransh 2970
    oprot.writeStructBegin('createAnonymousUser_result')
94 ashish 2971
    if self.success != None:
2972
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2973
      self.success.write(oprot)
2974
      oprot.writeFieldEnd()
559 chandransh 2975
    if self.ucex != None:
2976
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
2977
      self.ucex.write(oprot)
94 ashish 2978
      oprot.writeFieldEnd()
2979
    oprot.writeFieldStop()
2980
    oprot.writeStructEnd()
2981
 
2982
  def __repr__(self):
2983
    L = ['%s=%r' % (key, value)
2984
      for key, value in self.__dict__.iteritems()]
2985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2986
 
2987
  def __eq__(self, other):
2988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2989
 
2990
  def __ne__(self, other):
2991
    return not (self == other)
2992
 
559 chandransh 2993
class getUserById_args:
94 ashish 2994
  """
2995
  Attributes:
2996
   - userId
2997
  """
2998
 
2999
  thrift_spec = (
3000
    None, # 0
3001
    (1, TType.I64, 'userId', None, None, ), # 1
3002
  )
3003
 
559 chandransh 3004
  def __init__(self, userId=None,):
94 ashish 3005
    self.userId = userId
3006
 
3007
  def read(self, iprot):
3008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3010
      return
3011
    iprot.readStructBegin()
3012
    while True:
3013
      (fname, ftype, fid) = iprot.readFieldBegin()
3014
      if ftype == TType.STOP:
3015
        break
3016
      if fid == 1:
3017
        if ftype == TType.I64:
3018
          self.userId = iprot.readI64();
3019
        else:
3020
          iprot.skip(ftype)
3021
      else:
3022
        iprot.skip(ftype)
3023
      iprot.readFieldEnd()
3024
    iprot.readStructEnd()
3025
 
3026
  def write(self, oprot):
3027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3029
      return
559 chandransh 3030
    oprot.writeStructBegin('getUserById_args')
94 ashish 3031
    if self.userId != None:
3032
      oprot.writeFieldBegin('userId', TType.I64, 1)
3033
      oprot.writeI64(self.userId)
3034
      oprot.writeFieldEnd()
3035
    oprot.writeFieldStop()
3036
    oprot.writeStructEnd()
3037
 
3038
  def __repr__(self):
3039
    L = ['%s=%r' % (key, value)
3040
      for key, value in self.__dict__.iteritems()]
3041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3042
 
3043
  def __eq__(self, other):
3044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3045
 
3046
  def __ne__(self, other):
3047
    return not (self == other)
3048
 
559 chandransh 3049
class getUserById_result:
94 ashish 3050
  """
3051
  Attributes:
3052
   - success
559 chandransh 3053
   - ucex
94 ashish 3054
  """
3055
 
3056
  thrift_spec = (
559 chandransh 3057
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3058
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3059
  )
3060
 
559 chandransh 3061
  def __init__(self, success=None, ucex=None,):
94 ashish 3062
    self.success = success
559 chandransh 3063
    self.ucex = ucex
94 ashish 3064
 
3065
  def read(self, iprot):
3066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3068
      return
3069
    iprot.readStructBegin()
3070
    while True:
3071
      (fname, ftype, fid) = iprot.readFieldBegin()
3072
      if ftype == TType.STOP:
3073
        break
3074
      if fid == 0:
3075
        if ftype == TType.STRUCT:
559 chandransh 3076
          self.success = User()
94 ashish 3077
          self.success.read(iprot)
3078
        else:
3079
          iprot.skip(ftype)
3080
      elif fid == 1:
3081
        if ftype == TType.STRUCT:
559 chandransh 3082
          self.ucex = UserContextException()
3083
          self.ucex.read(iprot)
94 ashish 3084
        else:
3085
          iprot.skip(ftype)
3086
      else:
3087
        iprot.skip(ftype)
3088
      iprot.readFieldEnd()
3089
    iprot.readStructEnd()
3090
 
3091
  def write(self, oprot):
3092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3094
      return
559 chandransh 3095
    oprot.writeStructBegin('getUserById_result')
94 ashish 3096
    if self.success != None:
3097
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3098
      self.success.write(oprot)
3099
      oprot.writeFieldEnd()
559 chandransh 3100
    if self.ucex != None:
3101
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3102
      self.ucex.write(oprot)
94 ashish 3103
      oprot.writeFieldEnd()
3104
    oprot.writeFieldStop()
3105
    oprot.writeStructEnd()
3106
 
3107
  def __repr__(self):
3108
    L = ['%s=%r' % (key, value)
3109
      for key, value in self.__dict__.iteritems()]
3110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3111
 
3112
  def __eq__(self, other):
3113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3114
 
3115
  def __ne__(self, other):
3116
    return not (self == other)
3117
 
1491 vikas 3118
class getUserByEmail_args:
3119
  """
3120
  Attributes:
3121
   - email
3122
  """
3123
 
3124
  thrift_spec = (
3125
    None, # 0
3126
    (1, TType.STRING, 'email', None, None, ), # 1
3127
  )
3128
 
3129
  def __init__(self, email=None,):
3130
    self.email = email
3131
 
3132
  def read(self, iprot):
3133
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3134
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3135
      return
3136
    iprot.readStructBegin()
3137
    while True:
3138
      (fname, ftype, fid) = iprot.readFieldBegin()
3139
      if ftype == TType.STOP:
3140
        break
3141
      if fid == 1:
3142
        if ftype == TType.STRING:
3143
          self.email = iprot.readString();
3144
        else:
3145
          iprot.skip(ftype)
3146
      else:
3147
        iprot.skip(ftype)
3148
      iprot.readFieldEnd()
3149
    iprot.readStructEnd()
3150
 
3151
  def write(self, oprot):
3152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3154
      return
3155
    oprot.writeStructBegin('getUserByEmail_args')
3156
    if self.email != None:
3157
      oprot.writeFieldBegin('email', TType.STRING, 1)
3158
      oprot.writeString(self.email)
3159
      oprot.writeFieldEnd()
3160
    oprot.writeFieldStop()
3161
    oprot.writeStructEnd()
3162
 
3163
  def __repr__(self):
3164
    L = ['%s=%r' % (key, value)
3165
      for key, value in self.__dict__.iteritems()]
3166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3167
 
3168
  def __eq__(self, other):
3169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3170
 
3171
  def __ne__(self, other):
3172
    return not (self == other)
3173
 
3174
class getUserByEmail_result:
3175
  """
3176
  Attributes:
3177
   - success
3178
   - ucex
3179
  """
3180
 
3181
  thrift_spec = (
3182
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3183
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3184
  )
3185
 
3186
  def __init__(self, success=None, ucex=None,):
3187
    self.success = success
3188
    self.ucex = ucex
3189
 
3190
  def read(self, iprot):
3191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3193
      return
3194
    iprot.readStructBegin()
3195
    while True:
3196
      (fname, ftype, fid) = iprot.readFieldBegin()
3197
      if ftype == TType.STOP:
3198
        break
3199
      if fid == 0:
3200
        if ftype == TType.STRUCT:
3201
          self.success = User()
3202
          self.success.read(iprot)
3203
        else:
3204
          iprot.skip(ftype)
3205
      elif fid == 1:
3206
        if ftype == TType.STRUCT:
3207
          self.ucex = UserContextException()
3208
          self.ucex.read(iprot)
3209
        else:
3210
          iprot.skip(ftype)
3211
      else:
3212
        iprot.skip(ftype)
3213
      iprot.readFieldEnd()
3214
    iprot.readStructEnd()
3215
 
3216
  def write(self, oprot):
3217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3219
      return
3220
    oprot.writeStructBegin('getUserByEmail_result')
3221
    if self.success != None:
3222
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3223
      self.success.write(oprot)
3224
      oprot.writeFieldEnd()
3225
    if self.ucex != None:
3226
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3227
      self.ucex.write(oprot)
3228
      oprot.writeFieldEnd()
3229
    oprot.writeFieldStop()
3230
    oprot.writeStructEnd()
3231
 
3232
  def __repr__(self):
3233
    L = ['%s=%r' % (key, value)
3234
      for key, value in self.__dict__.iteritems()]
3235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3236
 
3237
  def __eq__(self, other):
3238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3239
 
3240
  def __ne__(self, other):
3241
    return not (self == other)
3242
 
559 chandransh 3243
class createUser_args:
94 ashish 3244
  """
3245
  Attributes:
559 chandransh 3246
   - user
94 ashish 3247
  """
3248
 
3249
  thrift_spec = (
3250
    None, # 0
559 chandransh 3251
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 3252
  )
3253
 
559 chandransh 3254
  def __init__(self, user=None,):
3255
    self.user = user
94 ashish 3256
 
3257
  def read(self, iprot):
3258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3260
      return
3261
    iprot.readStructBegin()
3262
    while True:
3263
      (fname, ftype, fid) = iprot.readFieldBegin()
3264
      if ftype == TType.STOP:
3265
        break
3266
      if fid == 1:
559 chandransh 3267
        if ftype == TType.STRUCT:
3268
          self.user = User()
3269
          self.user.read(iprot)
94 ashish 3270
        else:
3271
          iprot.skip(ftype)
3272
      else:
3273
        iprot.skip(ftype)
3274
      iprot.readFieldEnd()
3275
    iprot.readStructEnd()
3276
 
3277
  def write(self, oprot):
3278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3280
      return
559 chandransh 3281
    oprot.writeStructBegin('createUser_args')
3282
    if self.user != None:
3283
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
3284
      self.user.write(oprot)
94 ashish 3285
      oprot.writeFieldEnd()
3286
    oprot.writeFieldStop()
3287
    oprot.writeStructEnd()
3288
 
3289
  def __repr__(self):
3290
    L = ['%s=%r' % (key, value)
3291
      for key, value in self.__dict__.iteritems()]
3292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3293
 
3294
  def __eq__(self, other):
3295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3296
 
3297
  def __ne__(self, other):
3298
    return not (self == other)
3299
 
559 chandransh 3300
class createUser_result:
94 ashish 3301
  """
3302
  Attributes:
3303
   - success
559 chandransh 3304
   - ucex
94 ashish 3305
  """
3306
 
3307
  thrift_spec = (
559 chandransh 3308
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3309
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3310
  )
3311
 
559 chandransh 3312
  def __init__(self, success=None, ucex=None,):
94 ashish 3313
    self.success = success
559 chandransh 3314
    self.ucex = ucex
94 ashish 3315
 
3316
  def read(self, iprot):
3317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3319
      return
3320
    iprot.readStructBegin()
3321
    while True:
3322
      (fname, ftype, fid) = iprot.readFieldBegin()
3323
      if ftype == TType.STOP:
3324
        break
3325
      if fid == 0:
3326
        if ftype == TType.STRUCT:
559 chandransh 3327
          self.success = User()
94 ashish 3328
          self.success.read(iprot)
3329
        else:
3330
          iprot.skip(ftype)
3331
      elif fid == 1:
3332
        if ftype == TType.STRUCT:
559 chandransh 3333
          self.ucex = UserContextException()
3334
          self.ucex.read(iprot)
94 ashish 3335
        else:
3336
          iprot.skip(ftype)
3337
      else:
3338
        iprot.skip(ftype)
3339
      iprot.readFieldEnd()
3340
    iprot.readStructEnd()
3341
 
3342
  def write(self, oprot):
3343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3345
      return
559 chandransh 3346
    oprot.writeStructBegin('createUser_result')
94 ashish 3347
    if self.success != None:
3348
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3349
      self.success.write(oprot)
3350
      oprot.writeFieldEnd()
559 chandransh 3351
    if self.ucex != None:
3352
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3353
      self.ucex.write(oprot)
94 ashish 3354
      oprot.writeFieldEnd()
3355
    oprot.writeFieldStop()
3356
    oprot.writeStructEnd()
3357
 
3358
  def __repr__(self):
3359
    L = ['%s=%r' % (key, value)
3360
      for key, value in self.__dict__.iteritems()]
3361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3362
 
3363
  def __eq__(self, other):
3364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3365
 
3366
  def __ne__(self, other):
3367
    return not (self == other)
3368
 
559 chandransh 3369
class updateUser_args:
94 ashish 3370
  """
3371
  Attributes:
559 chandransh 3372
   - user
94 ashish 3373
  """
3374
 
3375
  thrift_spec = (
3376
    None, # 0
559 chandransh 3377
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 3378
  )
3379
 
559 chandransh 3380
  def __init__(self, user=None,):
3381
    self.user = user
94 ashish 3382
 
3383
  def read(self, iprot):
3384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3386
      return
3387
    iprot.readStructBegin()
3388
    while True:
3389
      (fname, ftype, fid) = iprot.readFieldBegin()
3390
      if ftype == TType.STOP:
3391
        break
3392
      if fid == 1:
559 chandransh 3393
        if ftype == TType.STRUCT:
3394
          self.user = User()
3395
          self.user.read(iprot)
94 ashish 3396
        else:
3397
          iprot.skip(ftype)
3398
      else:
3399
        iprot.skip(ftype)
3400
      iprot.readFieldEnd()
3401
    iprot.readStructEnd()
3402
 
3403
  def write(self, oprot):
3404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3406
      return
559 chandransh 3407
    oprot.writeStructBegin('updateUser_args')
3408
    if self.user != None:
3409
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
3410
      self.user.write(oprot)
94 ashish 3411
      oprot.writeFieldEnd()
3412
    oprot.writeFieldStop()
3413
    oprot.writeStructEnd()
3414
 
3415
  def __repr__(self):
3416
    L = ['%s=%r' % (key, value)
3417
      for key, value in self.__dict__.iteritems()]
3418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3419
 
3420
  def __eq__(self, other):
3421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3422
 
3423
  def __ne__(self, other):
3424
    return not (self == other)
3425
 
559 chandransh 3426
class updateUser_result:
94 ashish 3427
  """
3428
  Attributes:
3429
   - success
559 chandransh 3430
   - ucex
94 ashish 3431
  """
3432
 
3433
  thrift_spec = (
559 chandransh 3434
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3435
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3436
  )
3437
 
559 chandransh 3438
  def __init__(self, success=None, ucex=None,):
94 ashish 3439
    self.success = success
559 chandransh 3440
    self.ucex = ucex
94 ashish 3441
 
3442
  def read(self, iprot):
3443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3445
      return
3446
    iprot.readStructBegin()
3447
    while True:
3448
      (fname, ftype, fid) = iprot.readFieldBegin()
3449
      if ftype == TType.STOP:
3450
        break
3451
      if fid == 0:
3452
        if ftype == TType.STRUCT:
559 chandransh 3453
          self.success = User()
94 ashish 3454
          self.success.read(iprot)
3455
        else:
3456
          iprot.skip(ftype)
3457
      elif fid == 1:
3458
        if ftype == TType.STRUCT:
559 chandransh 3459
          self.ucex = UserContextException()
3460
          self.ucex.read(iprot)
94 ashish 3461
        else:
3462
          iprot.skip(ftype)
3463
      else:
3464
        iprot.skip(ftype)
3465
      iprot.readFieldEnd()
3466
    iprot.readStructEnd()
3467
 
3468
  def write(self, oprot):
3469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3471
      return
559 chandransh 3472
    oprot.writeStructBegin('updateUser_result')
94 ashish 3473
    if self.success != None:
3474
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3475
      self.success.write(oprot)
3476
      oprot.writeFieldEnd()
559 chandransh 3477
    if self.ucex != None:
3478
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3479
      self.ucex.write(oprot)
94 ashish 3480
      oprot.writeFieldEnd()
3481
    oprot.writeFieldStop()
3482
    oprot.writeStructEnd()
3483
 
3484
  def __repr__(self):
3485
    L = ['%s=%r' % (key, value)
3486
      for key, value in self.__dict__.iteritems()]
3487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3488
 
3489
  def __eq__(self, other):
3490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3491
 
3492
  def __ne__(self, other):
3493
    return not (self == other)
3494
 
559 chandransh 3495
class deleteUser_args:
94 ashish 3496
  """
3497
  Attributes:
3498
   - userId
3499
  """
3500
 
3501
  thrift_spec = (
3502
    None, # 0
3503
    (1, TType.I64, 'userId', None, None, ), # 1
3504
  )
3505
 
559 chandransh 3506
  def __init__(self, userId=None,):
94 ashish 3507
    self.userId = userId
3508
 
3509
  def read(self, iprot):
3510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3512
      return
3513
    iprot.readStructBegin()
3514
    while True:
3515
      (fname, ftype, fid) = iprot.readFieldBegin()
3516
      if ftype == TType.STOP:
3517
        break
3518
      if fid == 1:
3519
        if ftype == TType.I64:
3520
          self.userId = iprot.readI64();
3521
        else:
3522
          iprot.skip(ftype)
3523
      else:
3524
        iprot.skip(ftype)
3525
      iprot.readFieldEnd()
3526
    iprot.readStructEnd()
3527
 
3528
  def write(self, oprot):
3529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3531
      return
559 chandransh 3532
    oprot.writeStructBegin('deleteUser_args')
94 ashish 3533
    if self.userId != None:
3534
      oprot.writeFieldBegin('userId', TType.I64, 1)
3535
      oprot.writeI64(self.userId)
3536
      oprot.writeFieldEnd()
3537
    oprot.writeFieldStop()
3538
    oprot.writeStructEnd()
3539
 
3540
  def __repr__(self):
3541
    L = ['%s=%r' % (key, value)
3542
      for key, value in self.__dict__.iteritems()]
3543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3544
 
3545
  def __eq__(self, other):
3546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3547
 
3548
  def __ne__(self, other):
3549
    return not (self == other)
3550
 
559 chandransh 3551
class deleteUser_result:
94 ashish 3552
  """
3553
  Attributes:
3554
   - success
559 chandransh 3555
   - ucex
94 ashish 3556
  """
3557
 
3558
  thrift_spec = (
559 chandransh 3559
    (0, TType.BOOL, 'success', None, None, ), # 0
3560
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3561
  )
3562
 
559 chandransh 3563
  def __init__(self, success=None, ucex=None,):
94 ashish 3564
    self.success = success
559 chandransh 3565
    self.ucex = ucex
94 ashish 3566
 
3567
  def read(self, iprot):
3568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3570
      return
3571
    iprot.readStructBegin()
3572
    while True:
3573
      (fname, ftype, fid) = iprot.readFieldBegin()
3574
      if ftype == TType.STOP:
3575
        break
3576
      if fid == 0:
559 chandransh 3577
        if ftype == TType.BOOL:
3578
          self.success = iprot.readBool();
94 ashish 3579
        else:
3580
          iprot.skip(ftype)
3581
      elif fid == 1:
3582
        if ftype == TType.STRUCT:
559 chandransh 3583
          self.ucex = UserContextException()
3584
          self.ucex.read(iprot)
94 ashish 3585
        else:
3586
          iprot.skip(ftype)
3587
      else:
3588
        iprot.skip(ftype)
3589
      iprot.readFieldEnd()
3590
    iprot.readStructEnd()
3591
 
3592
  def write(self, oprot):
3593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3595
      return
559 chandransh 3596
    oprot.writeStructBegin('deleteUser_result')
94 ashish 3597
    if self.success != None:
559 chandransh 3598
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3599
      oprot.writeBool(self.success)
94 ashish 3600
      oprot.writeFieldEnd()
559 chandransh 3601
    if self.ucex != None:
3602
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3603
      self.ucex.write(oprot)
94 ashish 3604
      oprot.writeFieldEnd()
3605
    oprot.writeFieldStop()
3606
    oprot.writeStructEnd()
3607
 
3608
  def __repr__(self):
3609
    L = ['%s=%r' % (key, value)
3610
      for key, value in self.__dict__.iteritems()]
3611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3612
 
3613
  def __eq__(self, other):
3614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3615
 
3616
  def __ne__(self, other):
3617
    return not (self == other)
3618
 
559 chandransh 3619
class getUserState_args:
94 ashish 3620
  """
3621
  Attributes:
3622
   - userId
3623
  """
3624
 
3625
  thrift_spec = (
3626
    None, # 0
3627
    (1, TType.I64, 'userId', None, None, ), # 1
3628
  )
3629
 
559 chandransh 3630
  def __init__(self, userId=None,):
94 ashish 3631
    self.userId = userId
3632
 
3633
  def read(self, iprot):
3634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3636
      return
3637
    iprot.readStructBegin()
3638
    while True:
3639
      (fname, ftype, fid) = iprot.readFieldBegin()
3640
      if ftype == TType.STOP:
3641
        break
3642
      if fid == 1:
3643
        if ftype == TType.I64:
3644
          self.userId = iprot.readI64();
3645
        else:
3646
          iprot.skip(ftype)
3647
      else:
3648
        iprot.skip(ftype)
3649
      iprot.readFieldEnd()
3650
    iprot.readStructEnd()
3651
 
3652
  def write(self, oprot):
3653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3655
      return
559 chandransh 3656
    oprot.writeStructBegin('getUserState_args')
94 ashish 3657
    if self.userId != None:
3658
      oprot.writeFieldBegin('userId', TType.I64, 1)
3659
      oprot.writeI64(self.userId)
3660
      oprot.writeFieldEnd()
3661
    oprot.writeFieldStop()
3662
    oprot.writeStructEnd()
3663
 
3664
  def __repr__(self):
3665
    L = ['%s=%r' % (key, value)
3666
      for key, value in self.__dict__.iteritems()]
3667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3668
 
3669
  def __eq__(self, other):
3670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3671
 
3672
  def __ne__(self, other):
3673
    return not (self == other)
3674
 
559 chandransh 3675
class getUserState_result:
94 ashish 3676
  """
3677
  Attributes:
3678
   - success
559 chandransh 3679
   - ucex
94 ashish 3680
  """
3681
 
3682
  thrift_spec = (
559 chandransh 3683
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
3684
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3685
  )
3686
 
559 chandransh 3687
  def __init__(self, success=None, ucex=None,):
94 ashish 3688
    self.success = success
559 chandransh 3689
    self.ucex = ucex
94 ashish 3690
 
3691
  def read(self, iprot):
3692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3694
      return
3695
    iprot.readStructBegin()
3696
    while True:
3697
      (fname, ftype, fid) = iprot.readFieldBegin()
3698
      if ftype == TType.STOP:
3699
        break
3700
      if fid == 0:
3701
        if ftype == TType.STRUCT:
559 chandransh 3702
          self.success = UserState()
94 ashish 3703
          self.success.read(iprot)
3704
        else:
3705
          iprot.skip(ftype)
3706
      elif fid == 1:
3707
        if ftype == TType.STRUCT:
559 chandransh 3708
          self.ucex = UserContextException()
3709
          self.ucex.read(iprot)
94 ashish 3710
        else:
3711
          iprot.skip(ftype)
3712
      else:
3713
        iprot.skip(ftype)
3714
      iprot.readFieldEnd()
3715
    iprot.readStructEnd()
3716
 
3717
  def write(self, oprot):
3718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3720
      return
559 chandransh 3721
    oprot.writeStructBegin('getUserState_result')
94 ashish 3722
    if self.success != None:
3723
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3724
      self.success.write(oprot)
3725
      oprot.writeFieldEnd()
559 chandransh 3726
    if self.ucex != None:
3727
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3728
      self.ucex.write(oprot)
94 ashish 3729
      oprot.writeFieldEnd()
3730
    oprot.writeFieldStop()
3731
    oprot.writeStructEnd()
3732
 
3733
  def __repr__(self):
3734
    L = ['%s=%r' % (key, value)
3735
      for key, value in self.__dict__.iteritems()]
3736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3737
 
3738
  def __eq__(self, other):
3739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3740
 
3741
  def __ne__(self, other):
3742
    return not (self == other)
3743
 
559 chandransh 3744
class authenticateUser_args:
94 ashish 3745
  """
3746
  Attributes:
3747
   - email
3748
   - password
3749
  """
3750
 
3751
  thrift_spec = (
3752
    None, # 0
3753
    (1, TType.STRING, 'email', None, None, ), # 1
3754
    (2, TType.STRING, 'password', None, None, ), # 2
3755
  )
3756
 
3757
  def __init__(self, email=None, password=None,):
3758
    self.email = email
3759
    self.password = password
3760
 
3761
  def read(self, iprot):
3762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3764
      return
3765
    iprot.readStructBegin()
3766
    while True:
3767
      (fname, ftype, fid) = iprot.readFieldBegin()
3768
      if ftype == TType.STOP:
3769
        break
3770
      if fid == 1:
3771
        if ftype == TType.STRING:
3772
          self.email = iprot.readString();
3773
        else:
3774
          iprot.skip(ftype)
3775
      elif fid == 2:
3776
        if ftype == TType.STRING:
3777
          self.password = iprot.readString();
3778
        else:
3779
          iprot.skip(ftype)
3780
      else:
3781
        iprot.skip(ftype)
3782
      iprot.readFieldEnd()
3783
    iprot.readStructEnd()
3784
 
3785
  def write(self, oprot):
3786
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3787
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3788
      return
559 chandransh 3789
    oprot.writeStructBegin('authenticateUser_args')
94 ashish 3790
    if self.email != None:
3791
      oprot.writeFieldBegin('email', TType.STRING, 1)
3792
      oprot.writeString(self.email)
3793
      oprot.writeFieldEnd()
3794
    if self.password != None:
3795
      oprot.writeFieldBegin('password', TType.STRING, 2)
3796
      oprot.writeString(self.password)
3797
      oprot.writeFieldEnd()
3798
    oprot.writeFieldStop()
3799
    oprot.writeStructEnd()
3800
 
3801
  def __repr__(self):
3802
    L = ['%s=%r' % (key, value)
3803
      for key, value in self.__dict__.iteritems()]
3804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3805
 
3806
  def __eq__(self, other):
3807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3808
 
3809
  def __ne__(self, other):
3810
    return not (self == other)
3811
 
559 chandransh 3812
class authenticateUser_result:
94 ashish 3813
  """
3814
  Attributes:
3815
   - success
559 chandransh 3816
   - auex
94 ashish 3817
  """
3818
 
3819
  thrift_spec = (
559 chandransh 3820
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3821
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 3822
  )
3823
 
559 chandransh 3824
  def __init__(self, success=None, auex=None,):
94 ashish 3825
    self.success = success
559 chandransh 3826
    self.auex = auex
94 ashish 3827
 
3828
  def read(self, iprot):
3829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3831
      return
3832
    iprot.readStructBegin()
3833
    while True:
3834
      (fname, ftype, fid) = iprot.readFieldBegin()
3835
      if ftype == TType.STOP:
3836
        break
3837
      if fid == 0:
3838
        if ftype == TType.STRUCT:
559 chandransh 3839
          self.success = User()
94 ashish 3840
          self.success.read(iprot)
3841
        else:
3842
          iprot.skip(ftype)
3843
      elif fid == 1:
3844
        if ftype == TType.STRUCT:
559 chandransh 3845
          self.auex = AuthenticationException()
3846
          self.auex.read(iprot)
94 ashish 3847
        else:
3848
          iprot.skip(ftype)
3849
      else:
3850
        iprot.skip(ftype)
3851
      iprot.readFieldEnd()
3852
    iprot.readStructEnd()
3853
 
3854
  def write(self, oprot):
3855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3857
      return
559 chandransh 3858
    oprot.writeStructBegin('authenticateUser_result')
94 ashish 3859
    if self.success != None:
3860
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3861
      self.success.write(oprot)
3862
      oprot.writeFieldEnd()
559 chandransh 3863
    if self.auex != None:
3864
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
3865
      self.auex.write(oprot)
94 ashish 3866
      oprot.writeFieldEnd()
3867
    oprot.writeFieldStop()
3868
    oprot.writeStructEnd()
3869
 
3870
  def __repr__(self):
3871
    L = ['%s=%r' % (key, value)
3872
      for key, value in self.__dict__.iteritems()]
3873
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3874
 
3875
  def __eq__(self, other):
3876
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3877
 
3878
  def __ne__(self, other):
3879
    return not (self == other)
3880
 
559 chandransh 3881
class userExists_args:
122 ashish 3882
  """
3883
  Attributes:
559 chandransh 3884
   - email
122 ashish 3885
  """
3886
 
3887
  thrift_spec = (
3888
    None, # 0
559 chandransh 3889
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 3890
  )
3891
 
559 chandransh 3892
  def __init__(self, email=None,):
3893
    self.email = email
122 ashish 3894
 
3895
  def read(self, iprot):
3896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3898
      return
3899
    iprot.readStructBegin()
3900
    while True:
3901
      (fname, ftype, fid) = iprot.readFieldBegin()
3902
      if ftype == TType.STOP:
3903
        break
3904
      if fid == 1:
3905
        if ftype == TType.STRING:
559 chandransh 3906
          self.email = iprot.readString();
122 ashish 3907
        else:
3908
          iprot.skip(ftype)
559 chandransh 3909
      else:
3910
        iprot.skip(ftype)
3911
      iprot.readFieldEnd()
3912
    iprot.readStructEnd()
3913
 
3914
  def write(self, oprot):
3915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3917
      return
3918
    oprot.writeStructBegin('userExists_args')
3919
    if self.email != None:
3920
      oprot.writeFieldBegin('email', TType.STRING, 1)
3921
      oprot.writeString(self.email)
3922
      oprot.writeFieldEnd()
3923
    oprot.writeFieldStop()
3924
    oprot.writeStructEnd()
3925
 
3926
  def __repr__(self):
3927
    L = ['%s=%r' % (key, value)
3928
      for key, value in self.__dict__.iteritems()]
3929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3930
 
3931
  def __eq__(self, other):
3932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3933
 
3934
  def __ne__(self, other):
3935
    return not (self == other)
3936
 
3937
class userExists_result:
3938
  """
3939
  Attributes:
3940
   - success
3941
   - ucx
3942
  """
3943
 
3944
  thrift_spec = (
3945
    (0, TType.BOOL, 'success', None, None, ), # 0
3946
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
3947
  )
3948
 
3949
  def __init__(self, success=None, ucx=None,):
3950
    self.success = success
3951
    self.ucx = ucx
3952
 
3953
  def read(self, iprot):
3954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3956
      return
3957
    iprot.readStructBegin()
3958
    while True:
3959
      (fname, ftype, fid) = iprot.readFieldBegin()
3960
      if ftype == TType.STOP:
3961
        break
3962
      if fid == 0:
3963
        if ftype == TType.BOOL:
3964
          self.success = iprot.readBool();
3965
        else:
3966
          iprot.skip(ftype)
3967
      elif fid == 1:
3968
        if ftype == TType.STRUCT:
3969
          self.ucx = UserContextException()
3970
          self.ucx.read(iprot)
3971
        else:
3972
          iprot.skip(ftype)
3973
      else:
3974
        iprot.skip(ftype)
3975
      iprot.readFieldEnd()
3976
    iprot.readStructEnd()
3977
 
3978
  def write(self, oprot):
3979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3981
      return
3982
    oprot.writeStructBegin('userExists_result')
3983
    if self.success != None:
3984
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3985
      oprot.writeBool(self.success)
3986
      oprot.writeFieldEnd()
3987
    if self.ucx != None:
3988
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
3989
      self.ucx.write(oprot)
3990
      oprot.writeFieldEnd()
3991
    oprot.writeFieldStop()
3992
    oprot.writeStructEnd()
3993
 
3994
  def __repr__(self):
3995
    L = ['%s=%r' % (key, value)
3996
      for key, value in self.__dict__.iteritems()]
3997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3998
 
3999
  def __eq__(self, other):
4000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4001
 
4002
  def __ne__(self, other):
4003
    return not (self == other)
4004
 
4005
class addAddressForUser_args:
4006
  """
4007
  Attributes:
4008
   - userId
4009
   - address
4010
   - setDefault
4011
  """
4012
 
4013
  thrift_spec = (
4014
    None, # 0
4015
    (1, TType.I64, 'userId', None, None, ), # 1
4016
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 4017
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 4018
  )
4019
 
567 rajveer 4020
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 4021
    self.userId = userId
4022
    self.address = address
4023
    self.setDefault = setDefault
4024
 
4025
  def read(self, iprot):
4026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4028
      return
4029
    iprot.readStructBegin()
4030
    while True:
4031
      (fname, ftype, fid) = iprot.readFieldBegin()
4032
      if ftype == TType.STOP:
4033
        break
4034
      if fid == 1:
4035
        if ftype == TType.I64:
4036
          self.userId = iprot.readI64();
4037
        else:
4038
          iprot.skip(ftype)
122 ashish 4039
      elif fid == 2:
559 chandransh 4040
        if ftype == TType.STRUCT:
4041
          self.address = Address()
4042
          self.address.read(iprot)
122 ashish 4043
        else:
4044
          iprot.skip(ftype)
4045
      elif fid == 3:
4046
        if ftype == TType.BOOL:
559 chandransh 4047
          self.setDefault = iprot.readBool();
122 ashish 4048
        else:
4049
          iprot.skip(ftype)
4050
      else:
4051
        iprot.skip(ftype)
4052
      iprot.readFieldEnd()
4053
    iprot.readStructEnd()
4054
 
4055
  def write(self, oprot):
4056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4058
      return
559 chandransh 4059
    oprot.writeStructBegin('addAddressForUser_args')
4060
    if self.userId != None:
4061
      oprot.writeFieldBegin('userId', TType.I64, 1)
4062
      oprot.writeI64(self.userId)
122 ashish 4063
      oprot.writeFieldEnd()
559 chandransh 4064
    if self.address != None:
4065
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
4066
      self.address.write(oprot)
122 ashish 4067
      oprot.writeFieldEnd()
559 chandransh 4068
    if self.setDefault != None:
567 rajveer 4069
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 4070
      oprot.writeBool(self.setDefault)
4071
      oprot.writeFieldEnd()
122 ashish 4072
    oprot.writeFieldStop()
4073
    oprot.writeStructEnd()
4074
 
4075
  def __repr__(self):
4076
    L = ['%s=%r' % (key, value)
4077
      for key, value in self.__dict__.iteritems()]
4078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4079
 
4080
  def __eq__(self, other):
4081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4082
 
4083
  def __ne__(self, other):
4084
    return not (self == other)
4085
 
559 chandransh 4086
class addAddressForUser_result:
122 ashish 4087
  """
4088
  Attributes:
4089
   - success
559 chandransh 4090
   - ucx
122 ashish 4091
  """
4092
 
4093
  thrift_spec = (
567 rajveer 4094
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 4095
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 4096
  )
4097
 
559 chandransh 4098
  def __init__(self, success=None, ucx=None,):
122 ashish 4099
    self.success = success
559 chandransh 4100
    self.ucx = ucx
122 ashish 4101
 
4102
  def read(self, iprot):
4103
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4104
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4105
      return
4106
    iprot.readStructBegin()
4107
    while True:
4108
      (fname, ftype, fid) = iprot.readFieldBegin()
4109
      if ftype == TType.STOP:
4110
        break
4111
      if fid == 0:
567 rajveer 4112
        if ftype == TType.I64:
4113
          self.success = iprot.readI64();
122 ashish 4114
        else:
4115
          iprot.skip(ftype)
4116
      elif fid == 1:
4117
        if ftype == TType.STRUCT:
559 chandransh 4118
          self.ucx = UserContextException()
4119
          self.ucx.read(iprot)
122 ashish 4120
        else:
4121
          iprot.skip(ftype)
4122
      else:
4123
        iprot.skip(ftype)
4124
      iprot.readFieldEnd()
4125
    iprot.readStructEnd()
4126
 
4127
  def write(self, oprot):
4128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4130
      return
559 chandransh 4131
    oprot.writeStructBegin('addAddressForUser_result')
122 ashish 4132
    if self.success != None:
567 rajveer 4133
      oprot.writeFieldBegin('success', TType.I64, 0)
4134
      oprot.writeI64(self.success)
122 ashish 4135
      oprot.writeFieldEnd()
559 chandransh 4136
    if self.ucx != None:
4137
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4138
      self.ucx.write(oprot)
122 ashish 4139
      oprot.writeFieldEnd()
4140
    oprot.writeFieldStop()
4141
    oprot.writeStructEnd()
4142
 
4143
  def __repr__(self):
4144
    L = ['%s=%r' % (key, value)
4145
      for key, value in self.__dict__.iteritems()]
4146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4147
 
4148
  def __eq__(self, other):
4149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4150
 
4151
  def __ne__(self, other):
4152
    return not (self == other)
4153
 
559 chandransh 4154
class removeAddressForUser_args:
94 ashish 4155
  """
4156
  Attributes:
559 chandransh 4157
   - userid
4158
   - addressId
94 ashish 4159
  """
4160
 
4161
  thrift_spec = (
4162
    None, # 0
559 chandransh 4163
    (1, TType.I64, 'userid', None, None, ), # 1
4164
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 4165
  )
4166
 
559 chandransh 4167
  def __init__(self, userid=None, addressId=None,):
4168
    self.userid = userid
4169
    self.addressId = addressId
94 ashish 4170
 
4171
  def read(self, iprot):
4172
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4173
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4174
      return
4175
    iprot.readStructBegin()
4176
    while True:
4177
      (fname, ftype, fid) = iprot.readFieldBegin()
4178
      if ftype == TType.STOP:
4179
        break
4180
      if fid == 1:
559 chandransh 4181
        if ftype == TType.I64:
4182
          self.userid = iprot.readI64();
94 ashish 4183
        else:
4184
          iprot.skip(ftype)
559 chandransh 4185
      elif fid == 2:
4186
        if ftype == TType.I64:
4187
          self.addressId = iprot.readI64();
4188
        else:
4189
          iprot.skip(ftype)
94 ashish 4190
      else:
4191
        iprot.skip(ftype)
4192
      iprot.readFieldEnd()
4193
    iprot.readStructEnd()
4194
 
4195
  def write(self, oprot):
4196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4198
      return
559 chandransh 4199
    oprot.writeStructBegin('removeAddressForUser_args')
4200
    if self.userid != None:
4201
      oprot.writeFieldBegin('userid', TType.I64, 1)
4202
      oprot.writeI64(self.userid)
94 ashish 4203
      oprot.writeFieldEnd()
559 chandransh 4204
    if self.addressId != None:
4205
      oprot.writeFieldBegin('addressId', TType.I64, 2)
4206
      oprot.writeI64(self.addressId)
4207
      oprot.writeFieldEnd()
94 ashish 4208
    oprot.writeFieldStop()
4209
    oprot.writeStructEnd()
4210
 
4211
  def __repr__(self):
4212
    L = ['%s=%r' % (key, value)
4213
      for key, value in self.__dict__.iteritems()]
4214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4215
 
4216
  def __eq__(self, other):
4217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4218
 
4219
  def __ne__(self, other):
4220
    return not (self == other)
4221
 
559 chandransh 4222
class removeAddressForUser_result:
94 ashish 4223
  """
4224
  Attributes:
4225
   - success
4226
   - ucx
4227
  """
4228
 
4229
  thrift_spec = (
4230
    (0, TType.BOOL, 'success', None, None, ), # 0
4231
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4232
  )
4233
 
4234
  def __init__(self, success=None, ucx=None,):
4235
    self.success = success
4236
    self.ucx = ucx
4237
 
4238
  def read(self, iprot):
4239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4241
      return
4242
    iprot.readStructBegin()
4243
    while True:
4244
      (fname, ftype, fid) = iprot.readFieldBegin()
4245
      if ftype == TType.STOP:
4246
        break
4247
      if fid == 0:
4248
        if ftype == TType.BOOL:
4249
          self.success = iprot.readBool();
4250
        else:
4251
          iprot.skip(ftype)
4252
      elif fid == 1:
4253
        if ftype == TType.STRUCT:
4254
          self.ucx = UserContextException()
4255
          self.ucx.read(iprot)
4256
        else:
4257
          iprot.skip(ftype)
4258
      else:
4259
        iprot.skip(ftype)
4260
      iprot.readFieldEnd()
4261
    iprot.readStructEnd()
4262
 
4263
  def write(self, oprot):
4264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4266
      return
559 chandransh 4267
    oprot.writeStructBegin('removeAddressForUser_result')
94 ashish 4268
    if self.success != None:
4269
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4270
      oprot.writeBool(self.success)
4271
      oprot.writeFieldEnd()
4272
    if self.ucx != None:
4273
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4274
      self.ucx.write(oprot)
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
 
559 chandransh 4290
class setUserAsLoggedIn_args:
94 ashish 4291
  """
4292
  Attributes:
559 chandransh 4293
   - userId
94 ashish 4294
   - timestamp
4295
  """
4296
 
4297
  thrift_spec = (
4298
    None, # 0
559 chandransh 4299
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 4300
    (2, TType.I64, 'timestamp', None, None, ), # 2
4301
  )
4302
 
559 chandransh 4303
  def __init__(self, userId=None, timestamp=None,):
4304
    self.userId = userId
94 ashish 4305
    self.timestamp = timestamp
4306
 
4307
  def read(self, iprot):
4308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4310
      return
4311
    iprot.readStructBegin()
4312
    while True:
4313
      (fname, ftype, fid) = iprot.readFieldBegin()
4314
      if ftype == TType.STOP:
4315
        break
4316
      if fid == 1:
559 chandransh 4317
        if ftype == TType.I64:
4318
          self.userId = iprot.readI64();
94 ashish 4319
        else:
4320
          iprot.skip(ftype)
4321
      elif fid == 2:
4322
        if ftype == TType.I64:
4323
          self.timestamp = iprot.readI64();
4324
        else:
4325
          iprot.skip(ftype)
4326
      else:
4327
        iprot.skip(ftype)
4328
      iprot.readFieldEnd()
4329
    iprot.readStructEnd()
4330
 
4331
  def write(self, oprot):
4332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4334
      return
559 chandransh 4335
    oprot.writeStructBegin('setUserAsLoggedIn_args')
4336
    if self.userId != None:
4337
      oprot.writeFieldBegin('userId', TType.I64, 1)
4338
      oprot.writeI64(self.userId)
94 ashish 4339
      oprot.writeFieldEnd()
4340
    if self.timestamp != None:
4341
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4342
      oprot.writeI64(self.timestamp)
4343
      oprot.writeFieldEnd()
4344
    oprot.writeFieldStop()
4345
    oprot.writeStructEnd()
4346
 
4347
  def __repr__(self):
4348
    L = ['%s=%r' % (key, value)
4349
      for key, value in self.__dict__.iteritems()]
4350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4351
 
4352
  def __eq__(self, other):
4353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4354
 
4355
  def __ne__(self, other):
4356
    return not (self == other)
4357
 
559 chandransh 4358
class setUserAsLoggedIn_result:
94 ashish 4359
  """
4360
  Attributes:
4361
   - success
4362
   - ucx
4363
  """
4364
 
4365
  thrift_spec = (
4366
    (0, TType.BOOL, 'success', None, None, ), # 0
4367
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4368
  )
4369
 
4370
  def __init__(self, success=None, ucx=None,):
4371
    self.success = success
4372
    self.ucx = ucx
4373
 
4374
  def read(self, iprot):
4375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4377
      return
4378
    iprot.readStructBegin()
4379
    while True:
4380
      (fname, ftype, fid) = iprot.readFieldBegin()
4381
      if ftype == TType.STOP:
4382
        break
4383
      if fid == 0:
4384
        if ftype == TType.BOOL:
4385
          self.success = iprot.readBool();
4386
        else:
4387
          iprot.skip(ftype)
4388
      elif fid == 1:
4389
        if ftype == TType.STRUCT:
4390
          self.ucx = UserContextException()
4391
          self.ucx.read(iprot)
4392
        else:
4393
          iprot.skip(ftype)
4394
      else:
4395
        iprot.skip(ftype)
4396
      iprot.readFieldEnd()
4397
    iprot.readStructEnd()
4398
 
4399
  def write(self, oprot):
4400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4402
      return
559 chandransh 4403
    oprot.writeStructBegin('setUserAsLoggedIn_result')
94 ashish 4404
    if self.success != None:
4405
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4406
      oprot.writeBool(self.success)
4407
      oprot.writeFieldEnd()
4408
    if self.ucx != None:
4409
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4410
      self.ucx.write(oprot)
4411
      oprot.writeFieldEnd()
4412
    oprot.writeFieldStop()
4413
    oprot.writeStructEnd()
4414
 
4415
  def __repr__(self):
4416
    L = ['%s=%r' % (key, value)
4417
      for key, value in self.__dict__.iteritems()]
4418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4419
 
4420
  def __eq__(self, other):
4421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4422
 
4423
  def __ne__(self, other):
4424
    return not (self == other)
4425
 
559 chandransh 4426
class setUserAsLoggedOut_args:
94 ashish 4427
  """
4428
  Attributes:
4429
   - userid
4430
   - timestamp
4431
  """
4432
 
4433
  thrift_spec = (
4434
    None, # 0
559 chandransh 4435
    (1, TType.I64, 'userid', None, None, ), # 1
4436
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 4437
  )
4438
 
559 chandransh 4439
  def __init__(self, userid=None, timestamp=None,):
94 ashish 4440
    self.userid = userid
4441
    self.timestamp = timestamp
4442
 
4443
  def read(self, iprot):
4444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4446
      return
4447
    iprot.readStructBegin()
4448
    while True:
4449
      (fname, ftype, fid) = iprot.readFieldBegin()
4450
      if ftype == TType.STOP:
4451
        break
4452
      if fid == 1:
4453
        if ftype == TType.I64:
4454
          self.userid = iprot.readI64();
4455
        else:
4456
          iprot.skip(ftype)
559 chandransh 4457
      elif fid == 2:
94 ashish 4458
        if ftype == TType.I64:
4459
          self.timestamp = iprot.readI64();
4460
        else:
4461
          iprot.skip(ftype)
4462
      else:
4463
        iprot.skip(ftype)
4464
      iprot.readFieldEnd()
4465
    iprot.readStructEnd()
4466
 
4467
  def write(self, oprot):
4468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4470
      return
559 chandransh 4471
    oprot.writeStructBegin('setUserAsLoggedOut_args')
94 ashish 4472
    if self.userid != None:
559 chandransh 4473
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 4474
      oprot.writeI64(self.userid)
4475
      oprot.writeFieldEnd()
4476
    if self.timestamp != None:
559 chandransh 4477
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 4478
      oprot.writeI64(self.timestamp)
4479
      oprot.writeFieldEnd()
4480
    oprot.writeFieldStop()
4481
    oprot.writeStructEnd()
4482
 
4483
  def __repr__(self):
4484
    L = ['%s=%r' % (key, value)
4485
      for key, value in self.__dict__.iteritems()]
4486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4487
 
4488
  def __eq__(self, other):
4489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4490
 
4491
  def __ne__(self, other):
4492
    return not (self == other)
4493
 
559 chandransh 4494
class setUserAsLoggedOut_result:
94 ashish 4495
  """
4496
  Attributes:
4497
   - success
4498
   - ucx
4499
  """
4500
 
4501
  thrift_spec = (
4502
    (0, TType.BOOL, 'success', None, None, ), # 0
4503
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4504
  )
4505
 
4506
  def __init__(self, success=None, ucx=None,):
4507
    self.success = success
4508
    self.ucx = ucx
4509
 
4510
  def read(self, iprot):
4511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4513
      return
4514
    iprot.readStructBegin()
4515
    while True:
4516
      (fname, ftype, fid) = iprot.readFieldBegin()
4517
      if ftype == TType.STOP:
4518
        break
4519
      if fid == 0:
4520
        if ftype == TType.BOOL:
4521
          self.success = iprot.readBool();
4522
        else:
4523
          iprot.skip(ftype)
4524
      elif fid == 1:
4525
        if ftype == TType.STRUCT:
4526
          self.ucx = UserContextException()
4527
          self.ucx.read(iprot)
4528
        else:
4529
          iprot.skip(ftype)
4530
      else:
4531
        iprot.skip(ftype)
4532
      iprot.readFieldEnd()
4533
    iprot.readStructEnd()
4534
 
4535
  def write(self, oprot):
4536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4538
      return
559 chandransh 4539
    oprot.writeStructBegin('setUserAsLoggedOut_result')
94 ashish 4540
    if self.success != None:
4541
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4542
      oprot.writeBool(self.success)
4543
      oprot.writeFieldEnd()
4544
    if self.ucx != None:
4545
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4546
      self.ucx.write(oprot)
4547
      oprot.writeFieldEnd()
4548
    oprot.writeFieldStop()
4549
    oprot.writeStructEnd()
4550
 
4551
  def __repr__(self):
4552
    L = ['%s=%r' % (key, value)
4553
      for key, value in self.__dict__.iteritems()]
4554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4555
 
4556
  def __eq__(self, other):
4557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4558
 
4559
  def __ne__(self, other):
4560
    return not (self == other)
4561
 
559 chandransh 4562
class setDefaultAddress_args:
94 ashish 4563
  """
4564
  Attributes:
4565
   - userid
4566
   - addressId
4567
  """
4568
 
4569
  thrift_spec = (
4570
    None, # 0
4571
    (1, TType.I64, 'userid', None, None, ), # 1
4572
    (2, TType.I64, 'addressId', None, None, ), # 2
4573
  )
4574
 
4575
  def __init__(self, userid=None, addressId=None,):
4576
    self.userid = userid
4577
    self.addressId = addressId
4578
 
4579
  def read(self, iprot):
4580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4582
      return
4583
    iprot.readStructBegin()
4584
    while True:
4585
      (fname, ftype, fid) = iprot.readFieldBegin()
4586
      if ftype == TType.STOP:
4587
        break
4588
      if fid == 1:
4589
        if ftype == TType.I64:
4590
          self.userid = iprot.readI64();
4591
        else:
4592
          iprot.skip(ftype)
4593
      elif fid == 2:
4594
        if ftype == TType.I64:
4595
          self.addressId = iprot.readI64();
4596
        else:
4597
          iprot.skip(ftype)
4598
      else:
4599
        iprot.skip(ftype)
4600
      iprot.readFieldEnd()
4601
    iprot.readStructEnd()
4602
 
4603
  def write(self, oprot):
4604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4606
      return
559 chandransh 4607
    oprot.writeStructBegin('setDefaultAddress_args')
94 ashish 4608
    if self.userid != None:
4609
      oprot.writeFieldBegin('userid', TType.I64, 1)
4610
      oprot.writeI64(self.userid)
4611
      oprot.writeFieldEnd()
4612
    if self.addressId != None:
4613
      oprot.writeFieldBegin('addressId', TType.I64, 2)
4614
      oprot.writeI64(self.addressId)
4615
      oprot.writeFieldEnd()
4616
    oprot.writeFieldStop()
4617
    oprot.writeStructEnd()
4618
 
4619
  def __repr__(self):
4620
    L = ['%s=%r' % (key, value)
4621
      for key, value in self.__dict__.iteritems()]
4622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4623
 
4624
  def __eq__(self, other):
4625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4626
 
4627
  def __ne__(self, other):
4628
    return not (self == other)
4629
 
559 chandransh 4630
class setDefaultAddress_result:
94 ashish 4631
  """
4632
  Attributes:
4633
   - success
4634
   - ucx
4635
  """
4636
 
4637
  thrift_spec = (
4638
    (0, TType.BOOL, 'success', None, None, ), # 0
4639
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4640
  )
4641
 
4642
  def __init__(self, success=None, ucx=None,):
4643
    self.success = success
4644
    self.ucx = ucx
4645
 
4646
  def read(self, iprot):
4647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4649
      return
4650
    iprot.readStructBegin()
4651
    while True:
4652
      (fname, ftype, fid) = iprot.readFieldBegin()
4653
      if ftype == TType.STOP:
4654
        break
4655
      if fid == 0:
4656
        if ftype == TType.BOOL:
4657
          self.success = iprot.readBool();
4658
        else:
4659
          iprot.skip(ftype)
4660
      elif fid == 1:
4661
        if ftype == TType.STRUCT:
4662
          self.ucx = UserContextException()
4663
          self.ucx.read(iprot)
4664
        else:
4665
          iprot.skip(ftype)
4666
      else:
4667
        iprot.skip(ftype)
4668
      iprot.readFieldEnd()
4669
    iprot.readStructEnd()
4670
 
4671
  def write(self, oprot):
4672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4674
      return
559 chandransh 4675
    oprot.writeStructBegin('setDefaultAddress_result')
94 ashish 4676
    if self.success != None:
4677
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4678
      oprot.writeBool(self.success)
4679
      oprot.writeFieldEnd()
4680
    if self.ucx != None:
4681
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4682
      self.ucx.write(oprot)
4683
      oprot.writeFieldEnd()
4684
    oprot.writeFieldStop()
4685
    oprot.writeStructEnd()
4686
 
4687
  def __repr__(self):
4688
    L = ['%s=%r' % (key, value)
4689
      for key, value in self.__dict__.iteritems()]
4690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4691
 
4692
  def __eq__(self, other):
4693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4694
 
4695
  def __ne__(self, other):
4696
    return not (self == other)
4697
 
559 chandransh 4698
class updatePassword_args:
94 ashish 4699
  """
4700
  Attributes:
559 chandransh 4701
   - userid
594 rajveer 4702
   - oldPassword
4703
   - newPassword
94 ashish 4704
  """
4705
 
4706
  thrift_spec = (
4707
    None, # 0
559 chandransh 4708
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 4709
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
4710
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 4711
  )
4712
 
594 rajveer 4713
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 4714
    self.userid = userid
594 rajveer 4715
    self.oldPassword = oldPassword
4716
    self.newPassword = newPassword
94 ashish 4717
 
4718
  def read(self, iprot):
4719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4721
      return
4722
    iprot.readStructBegin()
4723
    while True:
4724
      (fname, ftype, fid) = iprot.readFieldBegin()
4725
      if ftype == TType.STOP:
4726
        break
4727
      if fid == 1:
4728
        if ftype == TType.I64:
559 chandransh 4729
          self.userid = iprot.readI64();
94 ashish 4730
        else:
4731
          iprot.skip(ftype)
4732
      elif fid == 2:
559 chandransh 4733
        if ftype == TType.STRING:
594 rajveer 4734
          self.oldPassword = iprot.readString();
94 ashish 4735
        else:
4736
          iprot.skip(ftype)
594 rajveer 4737
      elif fid == 3:
4738
        if ftype == TType.STRING:
4739
          self.newPassword = iprot.readString();
4740
        else:
4741
          iprot.skip(ftype)
94 ashish 4742
      else:
4743
        iprot.skip(ftype)
4744
      iprot.readFieldEnd()
4745
    iprot.readStructEnd()
4746
 
4747
  def write(self, oprot):
4748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4750
      return
559 chandransh 4751
    oprot.writeStructBegin('updatePassword_args')
4752
    if self.userid != None:
4753
      oprot.writeFieldBegin('userid', TType.I64, 1)
4754
      oprot.writeI64(self.userid)
94 ashish 4755
      oprot.writeFieldEnd()
594 rajveer 4756
    if self.oldPassword != None:
4757
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
4758
      oprot.writeString(self.oldPassword)
94 ashish 4759
      oprot.writeFieldEnd()
594 rajveer 4760
    if self.newPassword != None:
4761
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
4762
      oprot.writeString(self.newPassword)
4763
      oprot.writeFieldEnd()
94 ashish 4764
    oprot.writeFieldStop()
4765
    oprot.writeStructEnd()
4766
 
4767
  def __repr__(self):
4768
    L = ['%s=%r' % (key, value)
4769
      for key, value in self.__dict__.iteritems()]
4770
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4771
 
4772
  def __eq__(self, other):
4773
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4774
 
4775
  def __ne__(self, other):
4776
    return not (self == other)
4777
 
559 chandransh 4778
class updatePassword_result:
94 ashish 4779
  """
4780
  Attributes:
4781
   - success
4782
   - ucx
4783
  """
4784
 
4785
  thrift_spec = (
4786
    (0, TType.BOOL, 'success', None, None, ), # 0
4787
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4788
  )
4789
 
4790
  def __init__(self, success=None, ucx=None,):
4791
    self.success = success
4792
    self.ucx = ucx
4793
 
4794
  def read(self, iprot):
4795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4797
      return
4798
    iprot.readStructBegin()
4799
    while True:
4800
      (fname, ftype, fid) = iprot.readFieldBegin()
4801
      if ftype == TType.STOP:
4802
        break
4803
      if fid == 0:
4804
        if ftype == TType.BOOL:
4805
          self.success = iprot.readBool();
4806
        else:
4807
          iprot.skip(ftype)
4808
      elif fid == 1:
4809
        if ftype == TType.STRUCT:
4810
          self.ucx = UserContextException()
4811
          self.ucx.read(iprot)
4812
        else:
4813
          iprot.skip(ftype)
4814
      else:
4815
        iprot.skip(ftype)
4816
      iprot.readFieldEnd()
4817
    iprot.readStructEnd()
4818
 
4819
  def write(self, oprot):
4820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4822
      return
559 chandransh 4823
    oprot.writeStructBegin('updatePassword_result')
94 ashish 4824
    if self.success != None:
4825
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4826
      oprot.writeBool(self.success)
4827
      oprot.writeFieldEnd()
4828
    if self.ucx != None:
4829
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4830
      self.ucx.write(oprot)
4831
      oprot.writeFieldEnd()
4832
    oprot.writeFieldStop()
4833
    oprot.writeStructEnd()
4834
 
4835
  def __repr__(self):
4836
    L = ['%s=%r' % (key, value)
4837
      for key, value in self.__dict__.iteritems()]
4838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4839
 
4840
  def __eq__(self, other):
4841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4842
 
4843
  def __ne__(self, other):
4844
    return not (self == other)
4845
 
581 rajveer 4846
class forgotPassword_args:
4847
  """
4848
  Attributes:
4849
   - email
884 rajveer 4850
   - newPassword
581 rajveer 4851
  """
4852
 
4853
  thrift_spec = (
4854
    None, # 0
4855
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 4856
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 4857
  )
4858
 
884 rajveer 4859
  def __init__(self, email=None, newPassword=None,):
581 rajveer 4860
    self.email = email
884 rajveer 4861
    self.newPassword = newPassword
581 rajveer 4862
 
4863
  def read(self, iprot):
4864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4866
      return
4867
    iprot.readStructBegin()
4868
    while True:
4869
      (fname, ftype, fid) = iprot.readFieldBegin()
4870
      if ftype == TType.STOP:
4871
        break
4872
      if fid == 1:
4873
        if ftype == TType.STRING:
4874
          self.email = iprot.readString();
4875
        else:
4876
          iprot.skip(ftype)
884 rajveer 4877
      elif fid == 2:
4878
        if ftype == TType.STRING:
4879
          self.newPassword = iprot.readString();
4880
        else:
4881
          iprot.skip(ftype)
581 rajveer 4882
      else:
4883
        iprot.skip(ftype)
4884
      iprot.readFieldEnd()
4885
    iprot.readStructEnd()
4886
 
4887
  def write(self, oprot):
4888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4890
      return
4891
    oprot.writeStructBegin('forgotPassword_args')
4892
    if self.email != None:
4893
      oprot.writeFieldBegin('email', TType.STRING, 1)
4894
      oprot.writeString(self.email)
4895
      oprot.writeFieldEnd()
884 rajveer 4896
    if self.newPassword != None:
4897
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
4898
      oprot.writeString(self.newPassword)
4899
      oprot.writeFieldEnd()
581 rajveer 4900
    oprot.writeFieldStop()
4901
    oprot.writeStructEnd()
4902
 
4903
  def __repr__(self):
4904
    L = ['%s=%r' % (key, value)
4905
      for key, value in self.__dict__.iteritems()]
4906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4907
 
4908
  def __eq__(self, other):
4909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4910
 
4911
  def __ne__(self, other):
4912
    return not (self == other)
4913
 
4914
class forgotPassword_result:
4915
  """
4916
  Attributes:
4917
   - success
4918
   - ucx
4919
  """
4920
 
4921
  thrift_spec = (
4922
    (0, TType.BOOL, 'success', None, None, ), # 0
4923
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4924
  )
4925
 
4926
  def __init__(self, success=None, ucx=None,):
4927
    self.success = success
4928
    self.ucx = ucx
4929
 
4930
  def read(self, iprot):
4931
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4932
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4933
      return
4934
    iprot.readStructBegin()
4935
    while True:
4936
      (fname, ftype, fid) = iprot.readFieldBegin()
4937
      if ftype == TType.STOP:
4938
        break
4939
      if fid == 0:
4940
        if ftype == TType.BOOL:
4941
          self.success = iprot.readBool();
4942
        else:
4943
          iprot.skip(ftype)
4944
      elif fid == 1:
4945
        if ftype == TType.STRUCT:
4946
          self.ucx = UserContextException()
4947
          self.ucx.read(iprot)
4948
        else:
4949
          iprot.skip(ftype)
4950
      else:
4951
        iprot.skip(ftype)
4952
      iprot.readFieldEnd()
4953
    iprot.readStructEnd()
4954
 
4955
  def write(self, oprot):
4956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4958
      return
4959
    oprot.writeStructBegin('forgotPassword_result')
4960
    if self.success != None:
4961
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4962
      oprot.writeBool(self.success)
4963
      oprot.writeFieldEnd()
4964
    if self.ucx != None:
4965
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4966
      self.ucx.write(oprot)
4967
      oprot.writeFieldEnd()
4968
    oprot.writeFieldStop()
4969
    oprot.writeStructEnd()
4970
 
4971
  def __repr__(self):
4972
    L = ['%s=%r' % (key, value)
4973
      for key, value in self.__dict__.iteritems()]
4974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4975
 
4976
  def __eq__(self, other):
4977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4978
 
4979
  def __ne__(self, other):
4980
    return not (self == other)
4981
 
594 rajveer 4982
class getAllAddressesForUser_args:
4983
  """
4984
  Attributes:
4985
   - userId
4986
  """
4987
 
4988
  thrift_spec = (
4989
    None, # 0
4990
    (1, TType.I64, 'userId', None, None, ), # 1
4991
  )
4992
 
4993
  def __init__(self, userId=None,):
4994
    self.userId = userId
4995
 
4996
  def read(self, iprot):
4997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4999
      return
5000
    iprot.readStructBegin()
5001
    while True:
5002
      (fname, ftype, fid) = iprot.readFieldBegin()
5003
      if ftype == TType.STOP:
5004
        break
5005
      if fid == 1:
5006
        if ftype == TType.I64:
5007
          self.userId = iprot.readI64();
5008
        else:
5009
          iprot.skip(ftype)
5010
      else:
5011
        iprot.skip(ftype)
5012
      iprot.readFieldEnd()
5013
    iprot.readStructEnd()
5014
 
5015
  def write(self, oprot):
5016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5018
      return
5019
    oprot.writeStructBegin('getAllAddressesForUser_args')
5020
    if self.userId != None:
5021
      oprot.writeFieldBegin('userId', TType.I64, 1)
5022
      oprot.writeI64(self.userId)
5023
      oprot.writeFieldEnd()
5024
    oprot.writeFieldStop()
5025
    oprot.writeStructEnd()
5026
 
5027
  def __repr__(self):
5028
    L = ['%s=%r' % (key, value)
5029
      for key, value in self.__dict__.iteritems()]
5030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5031
 
5032
  def __eq__(self, other):
5033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5034
 
5035
  def __ne__(self, other):
5036
    return not (self == other)
5037
 
5038
class getAllAddressesForUser_result:
5039
  """
5040
  Attributes:
5041
   - success
5042
   - ucx
5043
  """
5044
 
5045
  thrift_spec = (
5046
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
5047
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5048
  )
5049
 
5050
  def __init__(self, success=None, ucx=None,):
5051
    self.success = success
5052
    self.ucx = ucx
5053
 
5054
  def read(self, iprot):
5055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5057
      return
5058
    iprot.readStructBegin()
5059
    while True:
5060
      (fname, ftype, fid) = iprot.readFieldBegin()
5061
      if ftype == TType.STOP:
5062
        break
5063
      if fid == 0:
5064
        if ftype == TType.LIST:
5065
          self.success = []
772 rajveer 5066
          (_etype31, _size28) = iprot.readListBegin()
5067
          for _i32 in xrange(_size28):
5068
            _elem33 = Address()
5069
            _elem33.read(iprot)
5070
            self.success.append(_elem33)
594 rajveer 5071
          iprot.readListEnd()
5072
        else:
5073
          iprot.skip(ftype)
5074
      elif fid == 1:
5075
        if ftype == TType.STRUCT:
5076
          self.ucx = UserContextException()
5077
          self.ucx.read(iprot)
5078
        else:
5079
          iprot.skip(ftype)
5080
      else:
5081
        iprot.skip(ftype)
5082
      iprot.readFieldEnd()
5083
    iprot.readStructEnd()
5084
 
5085
  def write(self, oprot):
5086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5088
      return
5089
    oprot.writeStructBegin('getAllAddressesForUser_result')
5090
    if self.success != None:
5091
      oprot.writeFieldBegin('success', TType.LIST, 0)
5092
      oprot.writeListBegin(TType.STRUCT, len(self.success))
772 rajveer 5093
      for iter34 in self.success:
5094
        iter34.write(oprot)
594 rajveer 5095
      oprot.writeListEnd()
5096
      oprot.writeFieldEnd()
5097
    if self.ucx != None:
5098
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5099
      self.ucx.write(oprot)
5100
      oprot.writeFieldEnd()
5101
    oprot.writeFieldStop()
5102
    oprot.writeStructEnd()
5103
 
5104
  def __repr__(self):
5105
    L = ['%s=%r' % (key, value)
5106
      for key, value in self.__dict__.iteritems()]
5107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5108
 
5109
  def __eq__(self, other):
5110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5111
 
5112
  def __ne__(self, other):
5113
    return not (self == other)
5114
 
5115
class getDefaultAddressId_args:
5116
  """
5117
  Attributes:
5118
   - userId
5119
  """
5120
 
5121
  thrift_spec = (
5122
    None, # 0
5123
    (1, TType.I64, 'userId', None, None, ), # 1
5124
  )
5125
 
5126
  def __init__(self, userId=None,):
5127
    self.userId = userId
5128
 
5129
  def read(self, iprot):
5130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5132
      return
5133
    iprot.readStructBegin()
5134
    while True:
5135
      (fname, ftype, fid) = iprot.readFieldBegin()
5136
      if ftype == TType.STOP:
5137
        break
5138
      if fid == 1:
5139
        if ftype == TType.I64:
5140
          self.userId = iprot.readI64();
5141
        else:
5142
          iprot.skip(ftype)
5143
      else:
5144
        iprot.skip(ftype)
5145
      iprot.readFieldEnd()
5146
    iprot.readStructEnd()
5147
 
5148
  def write(self, oprot):
5149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5151
      return
5152
    oprot.writeStructBegin('getDefaultAddressId_args')
5153
    if self.userId != None:
5154
      oprot.writeFieldBegin('userId', TType.I64, 1)
5155
      oprot.writeI64(self.userId)
5156
      oprot.writeFieldEnd()
5157
    oprot.writeFieldStop()
5158
    oprot.writeStructEnd()
5159
 
5160
  def __repr__(self):
5161
    L = ['%s=%r' % (key, value)
5162
      for key, value in self.__dict__.iteritems()]
5163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5164
 
5165
  def __eq__(self, other):
5166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5167
 
5168
  def __ne__(self, other):
5169
    return not (self == other)
5170
 
5171
class getDefaultAddressId_result:
5172
  """
5173
  Attributes:
5174
   - success
5175
   - ucx
5176
  """
5177
 
5178
  thrift_spec = (
5179
    (0, TType.I64, 'success', None, None, ), # 0
5180
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5181
  )
5182
 
5183
  def __init__(self, success=None, ucx=None,):
5184
    self.success = success
5185
    self.ucx = ucx
5186
 
5187
  def read(self, iprot):
5188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5190
      return
5191
    iprot.readStructBegin()
5192
    while True:
5193
      (fname, ftype, fid) = iprot.readFieldBegin()
5194
      if ftype == TType.STOP:
5195
        break
5196
      if fid == 0:
5197
        if ftype == TType.I64:
5198
          self.success = iprot.readI64();
5199
        else:
5200
          iprot.skip(ftype)
5201
      elif fid == 1:
5202
        if ftype == TType.STRUCT:
5203
          self.ucx = UserContextException()
5204
          self.ucx.read(iprot)
5205
        else:
5206
          iprot.skip(ftype)
5207
      else:
5208
        iprot.skip(ftype)
5209
      iprot.readFieldEnd()
5210
    iprot.readStructEnd()
5211
 
5212
  def write(self, oprot):
5213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5215
      return
5216
    oprot.writeStructBegin('getDefaultAddressId_result')
5217
    if self.success != None:
5218
      oprot.writeFieldBegin('success', TType.I64, 0)
5219
      oprot.writeI64(self.success)
5220
      oprot.writeFieldEnd()
5221
    if self.ucx != None:
5222
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5223
      self.ucx.write(oprot)
5224
      oprot.writeFieldEnd()
5225
    oprot.writeFieldStop()
5226
    oprot.writeStructEnd()
5227
 
5228
  def __repr__(self):
5229
    L = ['%s=%r' % (key, value)
5230
      for key, value in self.__dict__.iteritems()]
5231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5232
 
5233
  def __eq__(self, other):
5234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5235
 
5236
  def __ne__(self, other):
5237
    return not (self == other)
5238
 
785 rajveer 5239
class getDefaultPincode_args:
5240
  """
5241
  Attributes:
5242
   - userId
5243
  """
5244
 
5245
  thrift_spec = (
5246
    None, # 0
5247
    (1, TType.I64, 'userId', None, None, ), # 1
5248
  )
5249
 
5250
  def __init__(self, userId=None,):
5251
    self.userId = userId
5252
 
5253
  def read(self, iprot):
5254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5256
      return
5257
    iprot.readStructBegin()
5258
    while True:
5259
      (fname, ftype, fid) = iprot.readFieldBegin()
5260
      if ftype == TType.STOP:
5261
        break
5262
      if fid == 1:
5263
        if ftype == TType.I64:
5264
          self.userId = iprot.readI64();
5265
        else:
5266
          iprot.skip(ftype)
5267
      else:
5268
        iprot.skip(ftype)
5269
      iprot.readFieldEnd()
5270
    iprot.readStructEnd()
5271
 
5272
  def write(self, oprot):
5273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5275
      return
5276
    oprot.writeStructBegin('getDefaultPincode_args')
5277
    if self.userId != None:
5278
      oprot.writeFieldBegin('userId', TType.I64, 1)
5279
      oprot.writeI64(self.userId)
5280
      oprot.writeFieldEnd()
5281
    oprot.writeFieldStop()
5282
    oprot.writeStructEnd()
5283
 
5284
  def __repr__(self):
5285
    L = ['%s=%r' % (key, value)
5286
      for key, value in self.__dict__.iteritems()]
5287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5288
 
5289
  def __eq__(self, other):
5290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5291
 
5292
  def __ne__(self, other):
5293
    return not (self == other)
5294
 
5295
class getDefaultPincode_result:
5296
  """
5297
  Attributes:
5298
   - success
5299
   - ucx
5300
  """
5301
 
5302
  thrift_spec = (
5303
    (0, TType.STRING, 'success', None, None, ), # 0
5304
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5305
  )
5306
 
5307
  def __init__(self, success=None, ucx=None,):
5308
    self.success = success
5309
    self.ucx = ucx
5310
 
5311
  def read(self, iprot):
5312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5314
      return
5315
    iprot.readStructBegin()
5316
    while True:
5317
      (fname, ftype, fid) = iprot.readFieldBegin()
5318
      if ftype == TType.STOP:
5319
        break
5320
      if fid == 0:
5321
        if ftype == TType.STRING:
5322
          self.success = iprot.readString();
5323
        else:
5324
          iprot.skip(ftype)
5325
      elif fid == 1:
5326
        if ftype == TType.STRUCT:
5327
          self.ucx = UserContextException()
5328
          self.ucx.read(iprot)
5329
        else:
5330
          iprot.skip(ftype)
5331
      else:
5332
        iprot.skip(ftype)
5333
      iprot.readFieldEnd()
5334
    iprot.readStructEnd()
5335
 
5336
  def write(self, oprot):
5337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5339
      return
5340
    oprot.writeStructBegin('getDefaultPincode_result')
5341
    if self.success != None:
5342
      oprot.writeFieldBegin('success', TType.STRING, 0)
5343
      oprot.writeString(self.success)
5344
      oprot.writeFieldEnd()
5345
    if self.ucx != None:
5346
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5347
      self.ucx.write(oprot)
5348
      oprot.writeFieldEnd()
5349
    oprot.writeFieldStop()
5350
    oprot.writeStructEnd()
5351
 
5352
  def __repr__(self):
5353
    L = ['%s=%r' % (key, value)
5354
      for key, value in self.__dict__.iteritems()]
5355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5356
 
5357
  def __eq__(self, other):
5358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5359
 
5360
  def __ne__(self, other):
5361
    return not (self == other)
5362
 
1274 varun.gupt 5363
class saveUserCommunication_args:
5364
  """
5365
  Attributes:
5366
   - userId
5367
   - replyTo
5368
   - communicationType
5369
   - orderId
5370
   - airwaybillNo
5371
   - productName
5372
   - subject
5373
   - message
5374
  """
5375
 
5376
  thrift_spec = (
5377
    None, # 0
5378
    (1, TType.I64, 'userId', None, None, ), # 1
5379
    (2, TType.STRING, 'replyTo', None, None, ), # 2
5380
    (3, TType.I64, 'communicationType', None, None, ), # 3
5381
    (4, TType.I64, 'orderId', None, None, ), # 4
5382
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
5383
    (6, TType.STRING, 'productName', None, None, ), # 6
5384
    (7, TType.STRING, 'subject', None, None, ), # 7
5385
    (8, TType.STRING, 'message', None, None, ), # 8
5386
  )
5387
 
5388
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
5389
    self.userId = userId
5390
    self.replyTo = replyTo
5391
    self.communicationType = communicationType
5392
    self.orderId = orderId
5393
    self.airwaybillNo = airwaybillNo
5394
    self.productName = productName
5395
    self.subject = subject
5396
    self.message = message
5397
 
5398
  def read(self, iprot):
5399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5401
      return
5402
    iprot.readStructBegin()
5403
    while True:
5404
      (fname, ftype, fid) = iprot.readFieldBegin()
5405
      if ftype == TType.STOP:
5406
        break
5407
      if fid == 1:
5408
        if ftype == TType.I64:
5409
          self.userId = iprot.readI64();
5410
        else:
5411
          iprot.skip(ftype)
5412
      elif fid == 2:
5413
        if ftype == TType.STRING:
5414
          self.replyTo = iprot.readString();
5415
        else:
5416
          iprot.skip(ftype)
5417
      elif fid == 3:
5418
        if ftype == TType.I64:
5419
          self.communicationType = iprot.readI64();
5420
        else:
5421
          iprot.skip(ftype)
5422
      elif fid == 4:
5423
        if ftype == TType.I64:
5424
          self.orderId = iprot.readI64();
5425
        else:
5426
          iprot.skip(ftype)
5427
      elif fid == 5:
5428
        if ftype == TType.STRING:
5429
          self.airwaybillNo = iprot.readString();
5430
        else:
5431
          iprot.skip(ftype)
5432
      elif fid == 6:
5433
        if ftype == TType.STRING:
5434
          self.productName = iprot.readString();
5435
        else:
5436
          iprot.skip(ftype)
5437
      elif fid == 7:
5438
        if ftype == TType.STRING:
5439
          self.subject = iprot.readString();
5440
        else:
5441
          iprot.skip(ftype)
5442
      elif fid == 8:
5443
        if ftype == TType.STRING:
5444
          self.message = iprot.readString();
5445
        else:
5446
          iprot.skip(ftype)
5447
      else:
5448
        iprot.skip(ftype)
5449
      iprot.readFieldEnd()
5450
    iprot.readStructEnd()
5451
 
5452
  def write(self, oprot):
5453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5455
      return
5456
    oprot.writeStructBegin('saveUserCommunication_args')
5457
    if self.userId != None:
5458
      oprot.writeFieldBegin('userId', TType.I64, 1)
5459
      oprot.writeI64(self.userId)
5460
      oprot.writeFieldEnd()
5461
    if self.replyTo != None:
5462
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
5463
      oprot.writeString(self.replyTo)
5464
      oprot.writeFieldEnd()
5465
    if self.communicationType != None:
5466
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
5467
      oprot.writeI64(self.communicationType)
5468
      oprot.writeFieldEnd()
5469
    if self.orderId != None:
5470
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5471
      oprot.writeI64(self.orderId)
5472
      oprot.writeFieldEnd()
5473
    if self.airwaybillNo != None:
5474
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
5475
      oprot.writeString(self.airwaybillNo)
5476
      oprot.writeFieldEnd()
5477
    if self.productName != None:
5478
      oprot.writeFieldBegin('productName', TType.STRING, 6)
5479
      oprot.writeString(self.productName)
5480
      oprot.writeFieldEnd()
5481
    if self.subject != None:
5482
      oprot.writeFieldBegin('subject', TType.STRING, 7)
5483
      oprot.writeString(self.subject)
5484
      oprot.writeFieldEnd()
5485
    if self.message != None:
5486
      oprot.writeFieldBegin('message', TType.STRING, 8)
5487
      oprot.writeString(self.message)
5488
      oprot.writeFieldEnd()
5489
    oprot.writeFieldStop()
5490
    oprot.writeStructEnd()
5491
 
5492
  def __repr__(self):
5493
    L = ['%s=%r' % (key, value)
5494
      for key, value in self.__dict__.iteritems()]
5495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5496
 
5497
  def __eq__(self, other):
5498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5499
 
5500
  def __ne__(self, other):
5501
    return not (self == other)
5502
 
5503
class saveUserCommunication_result:
5504
  """
5505
  Attributes:
5506
   - success
5507
   - ucx
5508
  """
5509
 
5510
  thrift_spec = (
5511
    (0, TType.BOOL, 'success', None, None, ), # 0
5512
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
5513
  )
5514
 
5515
  def __init__(self, success=None, ucx=None,):
5516
    self.success = success
5517
    self.ucx = ucx
5518
 
5519
  def read(self, iprot):
5520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5522
      return
5523
    iprot.readStructBegin()
5524
    while True:
5525
      (fname, ftype, fid) = iprot.readFieldBegin()
5526
      if ftype == TType.STOP:
5527
        break
5528
      if fid == 0:
5529
        if ftype == TType.BOOL:
5530
          self.success = iprot.readBool();
5531
        else:
5532
          iprot.skip(ftype)
5533
      elif fid == 1:
5534
        if ftype == TType.STRUCT:
5535
          self.ucx = UserCommunicationException()
5536
          self.ucx.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('saveUserCommunication_result')
5549
    if self.success != None:
5550
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5551
      oprot.writeBool(self.success)
5552
      oprot.writeFieldEnd()
5553
    if self.ucx != None:
5554
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5555
      self.ucx.write(oprot)
5556
      oprot.writeFieldEnd()
5557
    oprot.writeFieldStop()
5558
    oprot.writeStructEnd()
5559
 
5560
  def __repr__(self):
5561
    L = ['%s=%r' % (key, value)
5562
      for key, value in self.__dict__.iteritems()]
5563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5564
 
5565
  def __eq__(self, other):
5566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5567
 
5568
  def __ne__(self, other):
5569
    return not (self == other)
5570
 
1590 varun.gupt 5571
class getUserCommunicationById_args:
5572
  """
5573
  Attributes:
5574
   - id
5575
  """
5576
 
5577
  thrift_spec = (
5578
    None, # 0
5579
    (1, TType.I64, 'id', None, None, ), # 1
5580
  )
5581
 
5582
  def __init__(self, id=None,):
5583
    self.id = id
5584
 
5585
  def read(self, iprot):
5586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5588
      return
5589
    iprot.readStructBegin()
5590
    while True:
5591
      (fname, ftype, fid) = iprot.readFieldBegin()
5592
      if ftype == TType.STOP:
5593
        break
5594
      if fid == 1:
5595
        if ftype == TType.I64:
5596
          self.id = iprot.readI64();
5597
        else:
5598
          iprot.skip(ftype)
5599
      else:
5600
        iprot.skip(ftype)
5601
      iprot.readFieldEnd()
5602
    iprot.readStructEnd()
5603
 
5604
  def write(self, oprot):
5605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5607
      return
5608
    oprot.writeStructBegin('getUserCommunicationById_args')
5609
    if self.id != None:
5610
      oprot.writeFieldBegin('id', TType.I64, 1)
5611
      oprot.writeI64(self.id)
5612
      oprot.writeFieldEnd()
5613
    oprot.writeFieldStop()
5614
    oprot.writeStructEnd()
5615
 
5616
  def __repr__(self):
5617
    L = ['%s=%r' % (key, value)
5618
      for key, value in self.__dict__.iteritems()]
5619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5620
 
5621
  def __eq__(self, other):
5622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5623
 
5624
  def __ne__(self, other):
5625
    return not (self == other)
5626
 
5627
class getUserCommunicationById_result:
5628
  """
5629
  Attributes:
5630
   - success
5631
   - ucx
5632
  """
5633
 
5634
  thrift_spec = (
5635
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
5636
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
5637
  )
5638
 
5639
  def __init__(self, success=None, ucx=None,):
5640
    self.success = success
5641
    self.ucx = ucx
5642
 
5643
  def read(self, iprot):
5644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5646
      return
5647
    iprot.readStructBegin()
5648
    while True:
5649
      (fname, ftype, fid) = iprot.readFieldBegin()
5650
      if ftype == TType.STOP:
5651
        break
5652
      if fid == 0:
5653
        if ftype == TType.STRUCT:
5654
          self.success = UserCommunication()
5655
          self.success.read(iprot)
5656
        else:
5657
          iprot.skip(ftype)
5658
      elif fid == 1:
5659
        if ftype == TType.STRUCT:
5660
          self.ucx = UserCommunicationException()
5661
          self.ucx.read(iprot)
5662
        else:
5663
          iprot.skip(ftype)
5664
      else:
5665
        iprot.skip(ftype)
5666
      iprot.readFieldEnd()
5667
    iprot.readStructEnd()
5668
 
5669
  def write(self, oprot):
5670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5672
      return
5673
    oprot.writeStructBegin('getUserCommunicationById_result')
5674
    if self.success != None:
5675
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5676
      self.success.write(oprot)
5677
      oprot.writeFieldEnd()
5678
    if self.ucx != None:
5679
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5680
      self.ucx.write(oprot)
5681
      oprot.writeFieldEnd()
5682
    oprot.writeFieldStop()
5683
    oprot.writeStructEnd()
5684
 
5685
  def __repr__(self):
5686
    L = ['%s=%r' % (key, value)
5687
      for key, value in self.__dict__.iteritems()]
5688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5689
 
5690
  def __eq__(self, other):
5691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5692
 
5693
  def __ne__(self, other):
5694
    return not (self == other)
5695
 
5696
class getUserCommunicationByUser_args:
5697
  """
5698
  Attributes:
5699
   - userId
5700
  """
5701
 
5702
  thrift_spec = (
5703
    None, # 0
5704
    (1, TType.I64, 'userId', None, None, ), # 1
5705
  )
5706
 
5707
  def __init__(self, userId=None,):
5708
    self.userId = userId
5709
 
5710
  def read(self, iprot):
5711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5713
      return
5714
    iprot.readStructBegin()
5715
    while True:
5716
      (fname, ftype, fid) = iprot.readFieldBegin()
5717
      if ftype == TType.STOP:
5718
        break
5719
      if fid == 1:
5720
        if ftype == TType.I64:
5721
          self.userId = iprot.readI64();
5722
        else:
5723
          iprot.skip(ftype)
5724
      else:
5725
        iprot.skip(ftype)
5726
      iprot.readFieldEnd()
5727
    iprot.readStructEnd()
5728
 
5729
  def write(self, oprot):
5730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5732
      return
5733
    oprot.writeStructBegin('getUserCommunicationByUser_args')
5734
    if self.userId != None:
5735
      oprot.writeFieldBegin('userId', TType.I64, 1)
5736
      oprot.writeI64(self.userId)
5737
      oprot.writeFieldEnd()
5738
    oprot.writeFieldStop()
5739
    oprot.writeStructEnd()
5740
 
5741
  def __repr__(self):
5742
    L = ['%s=%r' % (key, value)
5743
      for key, value in self.__dict__.iteritems()]
5744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5745
 
5746
  def __eq__(self, other):
5747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5748
 
5749
  def __ne__(self, other):
5750
    return not (self == other)
5751
 
5752
class getUserCommunicationByUser_result:
5753
  """
5754
  Attributes:
5755
   - success
5756
   - ucx
5757
  """
5758
 
5759
  thrift_spec = (
5760
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
5761
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
5762
  )
5763
 
5764
  def __init__(self, success=None, ucx=None,):
5765
    self.success = success
5766
    self.ucx = ucx
5767
 
5768
  def read(self, iprot):
5769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5771
      return
5772
    iprot.readStructBegin()
5773
    while True:
5774
      (fname, ftype, fid) = iprot.readFieldBegin()
5775
      if ftype == TType.STOP:
5776
        break
5777
      if fid == 0:
5778
        if ftype == TType.LIST:
5779
          self.success = []
5780
          (_etype38, _size35) = iprot.readListBegin()
5781
          for _i39 in xrange(_size35):
5782
            _elem40 = UserCommunication()
5783
            _elem40.read(iprot)
5784
            self.success.append(_elem40)
5785
          iprot.readListEnd()
5786
        else:
5787
          iprot.skip(ftype)
5788
      elif fid == 1:
5789
        if ftype == TType.STRUCT:
5790
          self.ucx = UserCommunicationException()
5791
          self.ucx.read(iprot)
5792
        else:
5793
          iprot.skip(ftype)
5794
      else:
5795
        iprot.skip(ftype)
5796
      iprot.readFieldEnd()
5797
    iprot.readStructEnd()
5798
 
5799
  def write(self, oprot):
5800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5802
      return
5803
    oprot.writeStructBegin('getUserCommunicationByUser_result')
5804
    if self.success != None:
5805
      oprot.writeFieldBegin('success', TType.LIST, 0)
5806
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5807
      for iter41 in self.success:
5808
        iter41.write(oprot)
5809
      oprot.writeListEnd()
5810
      oprot.writeFieldEnd()
5811
    if self.ucx != None:
5812
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5813
      self.ucx.write(oprot)
5814
      oprot.writeFieldEnd()
5815
    oprot.writeFieldStop()
5816
    oprot.writeStructEnd()
5817
 
5818
  def __repr__(self):
5819
    L = ['%s=%r' % (key, value)
5820
      for key, value in self.__dict__.iteritems()]
5821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5822
 
5823
  def __eq__(self, other):
5824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5825
 
5826
  def __ne__(self, other):
5827
    return not (self == other)
5828
 
5829
class getAllUserCommunications_args:
5830
 
5831
  thrift_spec = (
5832
  )
5833
 
5834
  def read(self, iprot):
5835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5837
      return
5838
    iprot.readStructBegin()
5839
    while True:
5840
      (fname, ftype, fid) = iprot.readFieldBegin()
5841
      if ftype == TType.STOP:
5842
        break
5843
      else:
5844
        iprot.skip(ftype)
5845
      iprot.readFieldEnd()
5846
    iprot.readStructEnd()
5847
 
5848
  def write(self, oprot):
5849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5851
      return
5852
    oprot.writeStructBegin('getAllUserCommunications_args')
5853
    oprot.writeFieldStop()
5854
    oprot.writeStructEnd()
5855
 
5856
  def __repr__(self):
5857
    L = ['%s=%r' % (key, value)
5858
      for key, value in self.__dict__.iteritems()]
5859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5860
 
5861
  def __eq__(self, other):
5862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5863
 
5864
  def __ne__(self, other):
5865
    return not (self == other)
5866
 
5867
class getAllUserCommunications_result:
5868
  """
5869
  Attributes:
5870
   - success
5871
   - ucx
5872
  """
5873
 
5874
  thrift_spec = (
5875
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
5876
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
5877
  )
5878
 
5879
  def __init__(self, success=None, ucx=None,):
5880
    self.success = success
5881
    self.ucx = ucx
5882
 
5883
  def read(self, iprot):
5884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5886
      return
5887
    iprot.readStructBegin()
5888
    while True:
5889
      (fname, ftype, fid) = iprot.readFieldBegin()
5890
      if ftype == TType.STOP:
5891
        break
5892
      if fid == 0:
5893
        if ftype == TType.LIST:
5894
          self.success = []
5895
          (_etype45, _size42) = iprot.readListBegin()
5896
          for _i46 in xrange(_size42):
5897
            _elem47 = UserCommunication()
5898
            _elem47.read(iprot)
5899
            self.success.append(_elem47)
5900
          iprot.readListEnd()
5901
        else:
5902
          iprot.skip(ftype)
5903
      elif fid == 1:
5904
        if ftype == TType.STRUCT:
5905
          self.ucx = UserCommunicationException()
5906
          self.ucx.read(iprot)
5907
        else:
5908
          iprot.skip(ftype)
5909
      else:
5910
        iprot.skip(ftype)
5911
      iprot.readFieldEnd()
5912
    iprot.readStructEnd()
5913
 
5914
  def write(self, oprot):
5915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5917
      return
5918
    oprot.writeStructBegin('getAllUserCommunications_result')
5919
    if self.success != None:
5920
      oprot.writeFieldBegin('success', TType.LIST, 0)
5921
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5922
      for iter48 in self.success:
5923
        iter48.write(oprot)
5924
      oprot.writeListEnd()
5925
      oprot.writeFieldEnd()
5926
    if self.ucx != None:
5927
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5928
      self.ucx.write(oprot)
5929
      oprot.writeFieldEnd()
5930
    oprot.writeFieldStop()
5931
    oprot.writeStructEnd()
5932
 
5933
  def __repr__(self):
5934
    L = ['%s=%r' % (key, value)
5935
      for key, value in self.__dict__.iteritems()]
5936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5937
 
5938
  def __eq__(self, other):
5939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5940
 
5941
  def __ne__(self, other):
5942
    return not (self == other)
5943
 
559 chandransh 5944
class createCart_args:
94 ashish 5945
  """
5946
  Attributes:
559 chandransh 5947
   - userId
94 ashish 5948
  """
5949
 
5950
  thrift_spec = (
5951
    None, # 0
559 chandransh 5952
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5953
  )
5954
 
559 chandransh 5955
  def __init__(self, userId=None,):
5956
    self.userId = userId
94 ashish 5957
 
5958
  def read(self, iprot):
5959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5961
      return
5962
    iprot.readStructBegin()
5963
    while True:
5964
      (fname, ftype, fid) = iprot.readFieldBegin()
5965
      if ftype == TType.STOP:
5966
        break
5967
      if fid == 1:
5968
        if ftype == TType.I64:
559 chandransh 5969
          self.userId = iprot.readI64();
94 ashish 5970
        else:
5971
          iprot.skip(ftype)
559 chandransh 5972
      else:
5973
        iprot.skip(ftype)
5974
      iprot.readFieldEnd()
5975
    iprot.readStructEnd()
5976
 
5977
  def write(self, oprot):
5978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5980
      return
5981
    oprot.writeStructBegin('createCart_args')
5982
    if self.userId != None:
5983
      oprot.writeFieldBegin('userId', TType.I64, 1)
5984
      oprot.writeI64(self.userId)
5985
      oprot.writeFieldEnd()
5986
    oprot.writeFieldStop()
5987
    oprot.writeStructEnd()
5988
 
5989
  def __repr__(self):
5990
    L = ['%s=%r' % (key, value)
5991
      for key, value in self.__dict__.iteritems()]
5992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5993
 
5994
  def __eq__(self, other):
5995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5996
 
5997
  def __ne__(self, other):
5998
    return not (self == other)
5999
 
6000
class createCart_result:
6001
  """
6002
  Attributes:
6003
   - success
6004
   - scx
6005
  """
6006
 
6007
  thrift_spec = (
6008
    (0, TType.I64, 'success', None, None, ), # 0
6009
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
6010
  )
6011
 
6012
  def __init__(self, success=None, scx=None,):
6013
    self.success = success
6014
    self.scx = scx
6015
 
6016
  def read(self, iprot):
6017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6019
      return
6020
    iprot.readStructBegin()
6021
    while True:
6022
      (fname, ftype, fid) = iprot.readFieldBegin()
6023
      if ftype == TType.STOP:
6024
        break
6025
      if fid == 0:
94 ashish 6026
        if ftype == TType.I64:
559 chandransh 6027
          self.success = iprot.readI64();
94 ashish 6028
        else:
6029
          iprot.skip(ftype)
559 chandransh 6030
      elif fid == 1:
6031
        if ftype == TType.STRUCT:
6032
          self.scx = ShoppingCartException()
6033
          self.scx.read(iprot)
6034
        else:
6035
          iprot.skip(ftype)
94 ashish 6036
      else:
6037
        iprot.skip(ftype)
6038
      iprot.readFieldEnd()
6039
    iprot.readStructEnd()
6040
 
6041
  def write(self, oprot):
6042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6044
      return
559 chandransh 6045
    oprot.writeStructBegin('createCart_result')
6046
    if self.success != None:
6047
      oprot.writeFieldBegin('success', TType.I64, 0)
6048
      oprot.writeI64(self.success)
94 ashish 6049
      oprot.writeFieldEnd()
559 chandransh 6050
    if self.scx != None:
6051
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6052
      self.scx.write(oprot)
94 ashish 6053
      oprot.writeFieldEnd()
6054
    oprot.writeFieldStop()
6055
    oprot.writeStructEnd()
6056
 
6057
  def __repr__(self):
6058
    L = ['%s=%r' % (key, value)
6059
      for key, value in self.__dict__.iteritems()]
6060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6061
 
6062
  def __eq__(self, other):
6063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6064
 
6065
  def __ne__(self, other):
6066
    return not (self == other)
6067
 
559 chandransh 6068
class getCurrentCart_args:
94 ashish 6069
  """
6070
  Attributes:
559 chandransh 6071
   - userId
6072
  """
6073
 
6074
  thrift_spec = (
6075
    None, # 0
6076
    (1, TType.I64, 'userId', None, None, ), # 1
6077
  )
6078
 
6079
  def __init__(self, userId=None,):
6080
    self.userId = userId
6081
 
6082
  def read(self, iprot):
6083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6085
      return
6086
    iprot.readStructBegin()
6087
    while True:
6088
      (fname, ftype, fid) = iprot.readFieldBegin()
6089
      if ftype == TType.STOP:
6090
        break
6091
      if fid == 1:
6092
        if ftype == TType.I64:
6093
          self.userId = iprot.readI64();
6094
        else:
6095
          iprot.skip(ftype)
6096
      else:
6097
        iprot.skip(ftype)
6098
      iprot.readFieldEnd()
6099
    iprot.readStructEnd()
6100
 
6101
  def write(self, oprot):
6102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6104
      return
6105
    oprot.writeStructBegin('getCurrentCart_args')
6106
    if self.userId != None:
6107
      oprot.writeFieldBegin('userId', TType.I64, 1)
6108
      oprot.writeI64(self.userId)
6109
      oprot.writeFieldEnd()
6110
    oprot.writeFieldStop()
6111
    oprot.writeStructEnd()
6112
 
6113
  def __repr__(self):
6114
    L = ['%s=%r' % (key, value)
6115
      for key, value in self.__dict__.iteritems()]
6116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6117
 
6118
  def __eq__(self, other):
6119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6120
 
6121
  def __ne__(self, other):
6122
    return not (self == other)
6123
 
6124
class getCurrentCart_result:
6125
  """
6126
  Attributes:
94 ashish 6127
   - success
559 chandransh 6128
   - scx
94 ashish 6129
  """
6130
 
6131
  thrift_spec = (
559 chandransh 6132
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
6133
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 6134
  )
6135
 
559 chandransh 6136
  def __init__(self, success=None, scx=None,):
94 ashish 6137
    self.success = success
559 chandransh 6138
    self.scx = scx
94 ashish 6139
 
6140
  def read(self, iprot):
6141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6143
      return
6144
    iprot.readStructBegin()
6145
    while True:
6146
      (fname, ftype, fid) = iprot.readFieldBegin()
6147
      if ftype == TType.STOP:
6148
        break
6149
      if fid == 0:
559 chandransh 6150
        if ftype == TType.STRUCT:
6151
          self.success = Cart()
6152
          self.success.read(iprot)
94 ashish 6153
        else:
6154
          iprot.skip(ftype)
6155
      elif fid == 1:
6156
        if ftype == TType.STRUCT:
559 chandransh 6157
          self.scx = ShoppingCartException()
6158
          self.scx.read(iprot)
94 ashish 6159
        else:
6160
          iprot.skip(ftype)
6161
      else:
6162
        iprot.skip(ftype)
6163
      iprot.readFieldEnd()
6164
    iprot.readStructEnd()
6165
 
6166
  def write(self, oprot):
6167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6169
      return
559 chandransh 6170
    oprot.writeStructBegin('getCurrentCart_result')
94 ashish 6171
    if self.success != None:
559 chandransh 6172
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6173
      self.success.write(oprot)
94 ashish 6174
      oprot.writeFieldEnd()
559 chandransh 6175
    if self.scx != None:
6176
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6177
      self.scx.write(oprot)
94 ashish 6178
      oprot.writeFieldEnd()
6179
    oprot.writeFieldStop()
6180
    oprot.writeStructEnd()
6181
 
6182
  def __repr__(self):
6183
    L = ['%s=%r' % (key, value)
6184
      for key, value in self.__dict__.iteritems()]
6185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6186
 
6187
  def __eq__(self, other):
6188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6189
 
6190
  def __ne__(self, other):
6191
    return not (self == other)
6192
 
559 chandransh 6193
class getCart_args:
504 rajveer 6194
  """
6195
  Attributes:
559 chandransh 6196
   - cartId
504 rajveer 6197
  """
6198
 
6199
  thrift_spec = (
6200
    None, # 0
559 chandransh 6201
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 6202
  )
6203
 
559 chandransh 6204
  def __init__(self, cartId=None,):
6205
    self.cartId = cartId
504 rajveer 6206
 
6207
  def read(self, iprot):
6208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6210
      return
6211
    iprot.readStructBegin()
6212
    while True:
6213
      (fname, ftype, fid) = iprot.readFieldBegin()
6214
      if ftype == TType.STOP:
6215
        break
6216
      if fid == 1:
6217
        if ftype == TType.I64:
559 chandransh 6218
          self.cartId = iprot.readI64();
504 rajveer 6219
        else:
6220
          iprot.skip(ftype)
6221
      else:
6222
        iprot.skip(ftype)
6223
      iprot.readFieldEnd()
6224
    iprot.readStructEnd()
6225
 
6226
  def write(self, oprot):
6227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6229
      return
559 chandransh 6230
    oprot.writeStructBegin('getCart_args')
6231
    if self.cartId != None:
6232
      oprot.writeFieldBegin('cartId', TType.I64, 1)
6233
      oprot.writeI64(self.cartId)
504 rajveer 6234
      oprot.writeFieldEnd()
6235
    oprot.writeFieldStop()
6236
    oprot.writeStructEnd()
6237
 
6238
  def __repr__(self):
6239
    L = ['%s=%r' % (key, value)
6240
      for key, value in self.__dict__.iteritems()]
6241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6242
 
6243
  def __eq__(self, other):
6244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6245
 
6246
  def __ne__(self, other):
6247
    return not (self == other)
6248
 
559 chandransh 6249
class getCart_result:
504 rajveer 6250
  """
6251
  Attributes:
6252
   - success
559 chandransh 6253
   - scx
504 rajveer 6254
  """
6255
 
6256
  thrift_spec = (
559 chandransh 6257
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
6258
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 6259
  )
6260
 
559 chandransh 6261
  def __init__(self, success=None, scx=None,):
504 rajveer 6262
    self.success = success
559 chandransh 6263
    self.scx = scx
504 rajveer 6264
 
6265
  def read(self, iprot):
6266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6268
      return
6269
    iprot.readStructBegin()
6270
    while True:
6271
      (fname, ftype, fid) = iprot.readFieldBegin()
6272
      if ftype == TType.STOP:
6273
        break
6274
      if fid == 0:
559 chandransh 6275
        if ftype == TType.STRUCT:
6276
          self.success = Cart()
6277
          self.success.read(iprot)
504 rajveer 6278
        else:
6279
          iprot.skip(ftype)
6280
      elif fid == 1:
6281
        if ftype == TType.STRUCT:
559 chandransh 6282
          self.scx = ShoppingCartException()
6283
          self.scx.read(iprot)
504 rajveer 6284
        else:
6285
          iprot.skip(ftype)
6286
      else:
6287
        iprot.skip(ftype)
6288
      iprot.readFieldEnd()
6289
    iprot.readStructEnd()
6290
 
6291
  def write(self, oprot):
6292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6294
      return
559 chandransh 6295
    oprot.writeStructBegin('getCart_result')
504 rajveer 6296
    if self.success != None:
559 chandransh 6297
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6298
      self.success.write(oprot)
504 rajveer 6299
      oprot.writeFieldEnd()
559 chandransh 6300
    if self.scx != None:
6301
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6302
      self.scx.write(oprot)
504 rajveer 6303
      oprot.writeFieldEnd()
6304
    oprot.writeFieldStop()
6305
    oprot.writeStructEnd()
6306
 
6307
  def __repr__(self):
6308
    L = ['%s=%r' % (key, value)
6309
      for key, value in self.__dict__.iteritems()]
6310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6311
 
6312
  def __eq__(self, other):
6313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6314
 
6315
  def __ne__(self, other):
6316
    return not (self == other)
6317
 
559 chandransh 6318
class getCartsForUser_args:
94 ashish 6319
  """
6320
  Attributes:
559 chandransh 6321
   - userId
6322
   - status
94 ashish 6323
  """
6324
 
6325
  thrift_spec = (
6326
    None, # 0
559 chandransh 6327
    (1, TType.I64, 'userId', None, None, ), # 1
6328
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 6329
  )
6330
 
559 chandransh 6331
  def __init__(self, userId=None, status=None,):
6332
    self.userId = userId
6333
    self.status = status
94 ashish 6334
 
6335
  def read(self, iprot):
6336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6338
      return
6339
    iprot.readStructBegin()
6340
    while True:
6341
      (fname, ftype, fid) = iprot.readFieldBegin()
6342
      if ftype == TType.STOP:
6343
        break
6344
      if fid == 1:
6345
        if ftype == TType.I64:
559 chandransh 6346
          self.userId = iprot.readI64();
94 ashish 6347
        else:
6348
          iprot.skip(ftype)
6349
      elif fid == 2:
559 chandransh 6350
        if ftype == TType.I32:
6351
          self.status = iprot.readI32();
94 ashish 6352
        else:
6353
          iprot.skip(ftype)
6354
      else:
6355
        iprot.skip(ftype)
6356
      iprot.readFieldEnd()
6357
    iprot.readStructEnd()
6358
 
6359
  def write(self, oprot):
6360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6362
      return
559 chandransh 6363
    oprot.writeStructBegin('getCartsForUser_args')
6364
    if self.userId != None:
6365
      oprot.writeFieldBegin('userId', TType.I64, 1)
6366
      oprot.writeI64(self.userId)
94 ashish 6367
      oprot.writeFieldEnd()
559 chandransh 6368
    if self.status != None:
6369
      oprot.writeFieldBegin('status', TType.I32, 2)
6370
      oprot.writeI32(self.status)
94 ashish 6371
      oprot.writeFieldEnd()
6372
    oprot.writeFieldStop()
6373
    oprot.writeStructEnd()
6374
 
6375
  def __repr__(self):
6376
    L = ['%s=%r' % (key, value)
6377
      for key, value in self.__dict__.iteritems()]
6378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6379
 
6380
  def __eq__(self, other):
6381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6382
 
6383
  def __ne__(self, other):
6384
    return not (self == other)
6385
 
559 chandransh 6386
class getCartsForUser_result:
94 ashish 6387
  """
6388
  Attributes:
6389
   - success
559 chandransh 6390
   - scx
94 ashish 6391
  """
6392
 
6393
  thrift_spec = (
559 chandransh 6394
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
6395
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 6396
  )
6397
 
559 chandransh 6398
  def __init__(self, success=None, scx=None,):
94 ashish 6399
    self.success = success
559 chandransh 6400
    self.scx = scx
94 ashish 6401
 
6402
  def read(self, iprot):
6403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6405
      return
6406
    iprot.readStructBegin()
6407
    while True:
6408
      (fname, ftype, fid) = iprot.readFieldBegin()
6409
      if ftype == TType.STOP:
6410
        break
6411
      if fid == 0:
559 chandransh 6412
        if ftype == TType.LIST:
6413
          self.success = []
1590 varun.gupt 6414
          (_etype52, _size49) = iprot.readListBegin()
6415
          for _i53 in xrange(_size49):
6416
            _elem54 = Cart()
6417
            _elem54.read(iprot)
6418
            self.success.append(_elem54)
559 chandransh 6419
          iprot.readListEnd()
94 ashish 6420
        else:
6421
          iprot.skip(ftype)
6422
      elif fid == 1:
6423
        if ftype == TType.STRUCT:
559 chandransh 6424
          self.scx = ShoppingCartException()
6425
          self.scx.read(iprot)
94 ashish 6426
        else:
6427
          iprot.skip(ftype)
6428
      else:
6429
        iprot.skip(ftype)
6430
      iprot.readFieldEnd()
6431
    iprot.readStructEnd()
6432
 
6433
  def write(self, oprot):
6434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6436
      return
559 chandransh 6437
    oprot.writeStructBegin('getCartsForUser_result')
94 ashish 6438
    if self.success != None:
559 chandransh 6439
      oprot.writeFieldBegin('success', TType.LIST, 0)
6440
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1590 varun.gupt 6441
      for iter55 in self.success:
6442
        iter55.write(oprot)
559 chandransh 6443
      oprot.writeListEnd()
94 ashish 6444
      oprot.writeFieldEnd()
559 chandransh 6445
    if self.scx != None:
6446
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6447
      self.scx.write(oprot)
94 ashish 6448
      oprot.writeFieldEnd()
6449
    oprot.writeFieldStop()
6450
    oprot.writeStructEnd()
6451
 
6452
  def __repr__(self):
6453
    L = ['%s=%r' % (key, value)
6454
      for key, value in self.__dict__.iteritems()]
6455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6456
 
6457
  def __eq__(self, other):
6458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6459
 
6460
  def __ne__(self, other):
6461
    return not (self == other)
6462
 
559 chandransh 6463
class getCartsByStatus_args:
94 ashish 6464
  """
6465
  Attributes:
559 chandransh 6466
   - status
94 ashish 6467
  """
6468
 
6469
  thrift_spec = (
6470
    None, # 0
559 chandransh 6471
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 6472
  )
6473
 
559 chandransh 6474
  def __init__(self, status=None,):
6475
    self.status = status
94 ashish 6476
 
6477
  def read(self, iprot):
6478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6480
      return
6481
    iprot.readStructBegin()
6482
    while True:
6483
      (fname, ftype, fid) = iprot.readFieldBegin()
6484
      if ftype == TType.STOP:
6485
        break
6486
      if fid == 1:
559 chandransh 6487
        if ftype == TType.I32:
6488
          self.status = iprot.readI32();
6489
        else:
6490
          iprot.skip(ftype)
6491
      else:
6492
        iprot.skip(ftype)
6493
      iprot.readFieldEnd()
6494
    iprot.readStructEnd()
6495
 
6496
  def write(self, oprot):
6497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6499
      return
6500
    oprot.writeStructBegin('getCartsByStatus_args')
6501
    if self.status != None:
6502
      oprot.writeFieldBegin('status', TType.I32, 1)
6503
      oprot.writeI32(self.status)
6504
      oprot.writeFieldEnd()
6505
    oprot.writeFieldStop()
6506
    oprot.writeStructEnd()
6507
 
6508
  def __repr__(self):
6509
    L = ['%s=%r' % (key, value)
6510
      for key, value in self.__dict__.iteritems()]
6511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6512
 
6513
  def __eq__(self, other):
6514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6515
 
6516
  def __ne__(self, other):
6517
    return not (self == other)
6518
 
6519
class getCartsByStatus_result:
6520
  """
6521
  Attributes:
6522
   - success
6523
   - scx
6524
  """
6525
 
6526
  thrift_spec = (
6527
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
6528
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
6529
  )
6530
 
6531
  def __init__(self, success=None, scx=None,):
6532
    self.success = success
6533
    self.scx = scx
6534
 
6535
  def read(self, iprot):
6536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6538
      return
6539
    iprot.readStructBegin()
6540
    while True:
6541
      (fname, ftype, fid) = iprot.readFieldBegin()
6542
      if ftype == TType.STOP:
6543
        break
6544
      if fid == 0:
6545
        if ftype == TType.LIST:
6546
          self.success = []
1590 varun.gupt 6547
          (_etype59, _size56) = iprot.readListBegin()
6548
          for _i60 in xrange(_size56):
6549
            _elem61 = Cart()
6550
            _elem61.read(iprot)
6551
            self.success.append(_elem61)
559 chandransh 6552
          iprot.readListEnd()
6553
        else:
6554
          iprot.skip(ftype)
6555
      elif fid == 1:
6556
        if ftype == TType.STRUCT:
6557
          self.scx = ShoppingCartException()
6558
          self.scx.read(iprot)
6559
        else:
6560
          iprot.skip(ftype)
6561
      else:
6562
        iprot.skip(ftype)
6563
      iprot.readFieldEnd()
6564
    iprot.readStructEnd()
6565
 
6566
  def write(self, oprot):
6567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6569
      return
6570
    oprot.writeStructBegin('getCartsByStatus_result')
6571
    if self.success != None:
6572
      oprot.writeFieldBegin('success', TType.LIST, 0)
6573
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1590 varun.gupt 6574
      for iter62 in self.success:
6575
        iter62.write(oprot)
559 chandransh 6576
      oprot.writeListEnd()
6577
      oprot.writeFieldEnd()
6578
    if self.scx != None:
6579
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6580
      self.scx.write(oprot)
6581
      oprot.writeFieldEnd()
6582
    oprot.writeFieldStop()
6583
    oprot.writeStructEnd()
6584
 
6585
  def __repr__(self):
6586
    L = ['%s=%r' % (key, value)
6587
      for key, value in self.__dict__.iteritems()]
6588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6589
 
6590
  def __eq__(self, other):
6591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6592
 
6593
  def __ne__(self, other):
6594
    return not (self == other)
6595
 
6596
class getCartsByTime_args:
6597
  """
6598
  Attributes:
6599
   - from_time
6600
   - to_time
6601
   - status
6602
  """
6603
 
6604
  thrift_spec = (
6605
    None, # 0
6606
    (1, TType.I64, 'from_time', None, None, ), # 1
6607
    (2, TType.I64, 'to_time', None, None, ), # 2
6608
    (3, TType.I32, 'status', None, None, ), # 3
6609
  )
6610
 
6611
  def __init__(self, from_time=None, to_time=None, status=None,):
6612
    self.from_time = from_time
6613
    self.to_time = to_time
6614
    self.status = status
6615
 
6616
  def read(self, iprot):
6617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6619
      return
6620
    iprot.readStructBegin()
6621
    while True:
6622
      (fname, ftype, fid) = iprot.readFieldBegin()
6623
      if ftype == TType.STOP:
6624
        break
6625
      if fid == 1:
94 ashish 6626
        if ftype == TType.I64:
559 chandransh 6627
          self.from_time = iprot.readI64();
94 ashish 6628
        else:
6629
          iprot.skip(ftype)
122 ashish 6630
      elif fid == 2:
559 chandransh 6631
        if ftype == TType.I64:
6632
          self.to_time = iprot.readI64();
122 ashish 6633
        else:
6634
          iprot.skip(ftype)
559 chandransh 6635
      elif fid == 3:
6636
        if ftype == TType.I32:
6637
          self.status = iprot.readI32();
6638
        else:
6639
          iprot.skip(ftype)
94 ashish 6640
      else:
6641
        iprot.skip(ftype)
6642
      iprot.readFieldEnd()
6643
    iprot.readStructEnd()
6644
 
6645
  def write(self, oprot):
6646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6648
      return
559 chandransh 6649
    oprot.writeStructBegin('getCartsByTime_args')
6650
    if self.from_time != None:
6651
      oprot.writeFieldBegin('from_time', TType.I64, 1)
6652
      oprot.writeI64(self.from_time)
94 ashish 6653
      oprot.writeFieldEnd()
559 chandransh 6654
    if self.to_time != None:
6655
      oprot.writeFieldBegin('to_time', TType.I64, 2)
6656
      oprot.writeI64(self.to_time)
122 ashish 6657
      oprot.writeFieldEnd()
559 chandransh 6658
    if self.status != None:
6659
      oprot.writeFieldBegin('status', TType.I32, 3)
6660
      oprot.writeI32(self.status)
6661
      oprot.writeFieldEnd()
94 ashish 6662
    oprot.writeFieldStop()
6663
    oprot.writeStructEnd()
6664
 
6665
  def __repr__(self):
6666
    L = ['%s=%r' % (key, value)
6667
      for key, value in self.__dict__.iteritems()]
6668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6669
 
6670
  def __eq__(self, other):
6671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6672
 
6673
  def __ne__(self, other):
6674
    return not (self == other)
6675
 
559 chandransh 6676
class getCartsByTime_result:
94 ashish 6677
  """
6678
  Attributes:
6679
   - success
559 chandransh 6680
   - scx
94 ashish 6681
  """
6682
 
6683
  thrift_spec = (
559 chandransh 6684
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
6685
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 6686
  )
6687
 
559 chandransh 6688
  def __init__(self, success=None, scx=None,):
94 ashish 6689
    self.success = success
559 chandransh 6690
    self.scx = scx
94 ashish 6691
 
6692
  def read(self, iprot):
6693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6695
      return
6696
    iprot.readStructBegin()
6697
    while True:
6698
      (fname, ftype, fid) = iprot.readFieldBegin()
6699
      if ftype == TType.STOP:
6700
        break
6701
      if fid == 0:
559 chandransh 6702
        if ftype == TType.LIST:
6703
          self.success = []
1590 varun.gupt 6704
          (_etype66, _size63) = iprot.readListBegin()
6705
          for _i67 in xrange(_size63):
6706
            _elem68 = Cart()
6707
            _elem68.read(iprot)
6708
            self.success.append(_elem68)
559 chandransh 6709
          iprot.readListEnd()
94 ashish 6710
        else:
6711
          iprot.skip(ftype)
6712
      elif fid == 1:
6713
        if ftype == TType.STRUCT:
559 chandransh 6714
          self.scx = ShoppingCartException()
6715
          self.scx.read(iprot)
94 ashish 6716
        else:
6717
          iprot.skip(ftype)
6718
      else:
6719
        iprot.skip(ftype)
6720
      iprot.readFieldEnd()
6721
    iprot.readStructEnd()
6722
 
6723
  def write(self, oprot):
6724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6726
      return
559 chandransh 6727
    oprot.writeStructBegin('getCartsByTime_result')
94 ashish 6728
    if self.success != None:
559 chandransh 6729
      oprot.writeFieldBegin('success', TType.LIST, 0)
6730
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1590 varun.gupt 6731
      for iter69 in self.success:
6732
        iter69.write(oprot)
559 chandransh 6733
      oprot.writeListEnd()
94 ashish 6734
      oprot.writeFieldEnd()
559 chandransh 6735
    if self.scx != None:
6736
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6737
      self.scx.write(oprot)
94 ashish 6738
      oprot.writeFieldEnd()
6739
    oprot.writeFieldStop()
6740
    oprot.writeStructEnd()
6741
 
6742
  def __repr__(self):
6743
    L = ['%s=%r' % (key, value)
6744
      for key, value in self.__dict__.iteritems()]
6745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6746
 
6747
  def __eq__(self, other):
6748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6749
 
6750
  def __ne__(self, other):
6751
    return not (self == other)
6752
 
559 chandransh 6753
class changeCartStatus_args:
94 ashish 6754
  """
6755
  Attributes:
559 chandransh 6756
   - cartId
6757
   - status
94 ashish 6758
  """
6759
 
6760
  thrift_spec = (
6761
    None, # 0
559 chandransh 6762
    (1, TType.I64, 'cartId', None, None, ), # 1
6763
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 6764
  )
6765
 
559 chandransh 6766
  def __init__(self, cartId=None, status=None,):
6767
    self.cartId = cartId
6768
    self.status = status
94 ashish 6769
 
6770
  def read(self, iprot):
6771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6773
      return
6774
    iprot.readStructBegin()
6775
    while True:
6776
      (fname, ftype, fid) = iprot.readFieldBegin()
6777
      if ftype == TType.STOP:
6778
        break
6779
      if fid == 1:
6780
        if ftype == TType.I64:
559 chandransh 6781
          self.cartId = iprot.readI64();
94 ashish 6782
        else:
6783
          iprot.skip(ftype)
559 chandransh 6784
      elif fid == 2:
6785
        if ftype == TType.I32:
6786
          self.status = iprot.readI32();
6787
        else:
6788
          iprot.skip(ftype)
94 ashish 6789
      else:
6790
        iprot.skip(ftype)
6791
      iprot.readFieldEnd()
6792
    iprot.readStructEnd()
6793
 
6794
  def write(self, oprot):
6795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6797
      return
559 chandransh 6798
    oprot.writeStructBegin('changeCartStatus_args')
6799
    if self.cartId != None:
6800
      oprot.writeFieldBegin('cartId', TType.I64, 1)
6801
      oprot.writeI64(self.cartId)
94 ashish 6802
      oprot.writeFieldEnd()
559 chandransh 6803
    if self.status != None:
6804
      oprot.writeFieldBegin('status', TType.I32, 2)
6805
      oprot.writeI32(self.status)
6806
      oprot.writeFieldEnd()
94 ashish 6807
    oprot.writeFieldStop()
6808
    oprot.writeStructEnd()
6809
 
6810
  def __repr__(self):
6811
    L = ['%s=%r' % (key, value)
6812
      for key, value in self.__dict__.iteritems()]
6813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6814
 
6815
  def __eq__(self, other):
6816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6817
 
6818
  def __ne__(self, other):
6819
    return not (self == other)
6820
 
559 chandransh 6821
class changeCartStatus_result:
94 ashish 6822
  """
6823
  Attributes:
559 chandransh 6824
   - scx
6825
  """
6826
 
6827
  thrift_spec = (
6828
    None, # 0
6829
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
6830
  )
6831
 
6832
  def __init__(self, scx=None,):
6833
    self.scx = scx
6834
 
6835
  def read(self, iprot):
6836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6838
      return
6839
    iprot.readStructBegin()
6840
    while True:
6841
      (fname, ftype, fid) = iprot.readFieldBegin()
6842
      if ftype == TType.STOP:
6843
        break
6844
      if fid == 1:
6845
        if ftype == TType.STRUCT:
6846
          self.scx = ShoppingCartException()
6847
          self.scx.read(iprot)
6848
        else:
6849
          iprot.skip(ftype)
6850
      else:
6851
        iprot.skip(ftype)
6852
      iprot.readFieldEnd()
6853
    iprot.readStructEnd()
6854
 
6855
  def write(self, oprot):
6856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6858
      return
6859
    oprot.writeStructBegin('changeCartStatus_result')
6860
    if self.scx != None:
6861
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6862
      self.scx.write(oprot)
6863
      oprot.writeFieldEnd()
6864
    oprot.writeFieldStop()
6865
    oprot.writeStructEnd()
6866
 
6867
  def __repr__(self):
6868
    L = ['%s=%r' % (key, value)
6869
      for key, value in self.__dict__.iteritems()]
6870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6871
 
6872
  def __eq__(self, other):
6873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6874
 
6875
  def __ne__(self, other):
6876
    return not (self == other)
6877
 
6878
class addItemToCart_args:
6879
  """
6880
  Attributes:
6881
   - cartId
6882
   - itemId
6883
   - quantity
6884
  """
6885
 
6886
  thrift_spec = (
6887
    None, # 0
6888
    (1, TType.I64, 'cartId', None, None, ), # 1
6889
    (2, TType.I64, 'itemId', None, None, ), # 2
6890
    (3, TType.I64, 'quantity', None, None, ), # 3
6891
  )
6892
 
6893
  def __init__(self, cartId=None, itemId=None, quantity=None,):
6894
    self.cartId = cartId
6895
    self.itemId = itemId
6896
    self.quantity = quantity
6897
 
6898
  def read(self, iprot):
6899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6901
      return
6902
    iprot.readStructBegin()
6903
    while True:
6904
      (fname, ftype, fid) = iprot.readFieldBegin()
6905
      if ftype == TType.STOP:
6906
        break
6907
      if fid == 1:
6908
        if ftype == TType.I64:
6909
          self.cartId = iprot.readI64();
6910
        else:
6911
          iprot.skip(ftype)
6912
      elif fid == 2:
6913
        if ftype == TType.I64:
6914
          self.itemId = iprot.readI64();
6915
        else:
6916
          iprot.skip(ftype)
6917
      elif fid == 3:
6918
        if ftype == TType.I64:
6919
          self.quantity = iprot.readI64();
6920
        else:
6921
          iprot.skip(ftype)
6922
      else:
6923
        iprot.skip(ftype)
6924
      iprot.readFieldEnd()
6925
    iprot.readStructEnd()
6926
 
6927
  def write(self, oprot):
6928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6930
      return
6931
    oprot.writeStructBegin('addItemToCart_args')
6932
    if self.cartId != None:
6933
      oprot.writeFieldBegin('cartId', TType.I64, 1)
6934
      oprot.writeI64(self.cartId)
6935
      oprot.writeFieldEnd()
6936
    if self.itemId != None:
6937
      oprot.writeFieldBegin('itemId', TType.I64, 2)
6938
      oprot.writeI64(self.itemId)
6939
      oprot.writeFieldEnd()
6940
    if self.quantity != None:
6941
      oprot.writeFieldBegin('quantity', TType.I64, 3)
6942
      oprot.writeI64(self.quantity)
6943
      oprot.writeFieldEnd()
6944
    oprot.writeFieldStop()
6945
    oprot.writeStructEnd()
6946
 
6947
  def __repr__(self):
6948
    L = ['%s=%r' % (key, value)
6949
      for key, value in self.__dict__.iteritems()]
6950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6951
 
6952
  def __eq__(self, other):
6953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6954
 
6955
  def __ne__(self, other):
6956
    return not (self == other)
6957
 
6958
class addItemToCart_result:
6959
  """
6960
  Attributes:
6961
   - scx
6962
  """
6963
 
6964
  thrift_spec = (
6965
    None, # 0
6966
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
6967
  )
6968
 
6969
  def __init__(self, scx=None,):
6970
    self.scx = scx
6971
 
6972
  def read(self, iprot):
6973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6975
      return
6976
    iprot.readStructBegin()
6977
    while True:
6978
      (fname, ftype, fid) = iprot.readFieldBegin()
6979
      if ftype == TType.STOP:
6980
        break
6981
      if fid == 1:
6982
        if ftype == TType.STRUCT:
6983
          self.scx = ShoppingCartException()
6984
          self.scx.read(iprot)
6985
        else:
6986
          iprot.skip(ftype)
6987
      else:
6988
        iprot.skip(ftype)
6989
      iprot.readFieldEnd()
6990
    iprot.readStructEnd()
6991
 
6992
  def write(self, oprot):
6993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6995
      return
6996
    oprot.writeStructBegin('addItemToCart_result')
6997
    if self.scx != None:
6998
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
6999
      self.scx.write(oprot)
7000
      oprot.writeFieldEnd()
7001
    oprot.writeFieldStop()
7002
    oprot.writeStructEnd()
7003
 
7004
  def __repr__(self):
7005
    L = ['%s=%r' % (key, value)
7006
      for key, value in self.__dict__.iteritems()]
7007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7008
 
7009
  def __eq__(self, other):
7010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7011
 
7012
  def __ne__(self, other):
7013
    return not (self == other)
7014
 
7015
class deleteItemFromCart_args:
7016
  """
7017
  Attributes:
7018
   - cartId
7019
   - itemId
7020
  """
7021
 
7022
  thrift_spec = (
7023
    None, # 0
7024
    (1, TType.I64, 'cartId', None, None, ), # 1
7025
    (2, TType.I64, 'itemId', None, None, ), # 2
7026
  )
7027
 
7028
  def __init__(self, cartId=None, itemId=None,):
7029
    self.cartId = cartId
7030
    self.itemId = itemId
7031
 
7032
  def read(self, iprot):
7033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7035
      return
7036
    iprot.readStructBegin()
7037
    while True:
7038
      (fname, ftype, fid) = iprot.readFieldBegin()
7039
      if ftype == TType.STOP:
7040
        break
7041
      if fid == 1:
7042
        if ftype == TType.I64:
7043
          self.cartId = iprot.readI64();
7044
        else:
7045
          iprot.skip(ftype)
7046
      elif fid == 2:
7047
        if ftype == TType.I64:
7048
          self.itemId = iprot.readI64();
7049
        else:
7050
          iprot.skip(ftype)
7051
      else:
7052
        iprot.skip(ftype)
7053
      iprot.readFieldEnd()
7054
    iprot.readStructEnd()
7055
 
7056
  def write(self, oprot):
7057
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7058
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7059
      return
7060
    oprot.writeStructBegin('deleteItemFromCart_args')
7061
    if self.cartId != None:
7062
      oprot.writeFieldBegin('cartId', TType.I64, 1)
7063
      oprot.writeI64(self.cartId)
7064
      oprot.writeFieldEnd()
7065
    if self.itemId != None:
7066
      oprot.writeFieldBegin('itemId', TType.I64, 2)
7067
      oprot.writeI64(self.itemId)
7068
      oprot.writeFieldEnd()
7069
    oprot.writeFieldStop()
7070
    oprot.writeStructEnd()
7071
 
7072
  def __repr__(self):
7073
    L = ['%s=%r' % (key, value)
7074
      for key, value in self.__dict__.iteritems()]
7075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7076
 
7077
  def __eq__(self, other):
7078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7079
 
7080
  def __ne__(self, other):
7081
    return not (self == other)
7082
 
7083
class deleteItemFromCart_result:
7084
  """
7085
  Attributes:
7086
   - scx
7087
  """
7088
 
7089
  thrift_spec = (
7090
    None, # 0
7091
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
7092
  )
7093
 
7094
  def __init__(self, scx=None,):
7095
    self.scx = scx
7096
 
7097
  def read(self, iprot):
7098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7100
      return
7101
    iprot.readStructBegin()
7102
    while True:
7103
      (fname, ftype, fid) = iprot.readFieldBegin()
7104
      if ftype == TType.STOP:
7105
        break
7106
      if fid == 1:
7107
        if ftype == TType.STRUCT:
7108
          self.scx = ShoppingCartException()
7109
          self.scx.read(iprot)
7110
        else:
7111
          iprot.skip(ftype)
7112
      else:
7113
        iprot.skip(ftype)
7114
      iprot.readFieldEnd()
7115
    iprot.readStructEnd()
7116
 
7117
  def write(self, oprot):
7118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7120
      return
7121
    oprot.writeStructBegin('deleteItemFromCart_result')
7122
    if self.scx != None:
7123
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
7124
      self.scx.write(oprot)
7125
      oprot.writeFieldEnd()
7126
    oprot.writeFieldStop()
7127
    oprot.writeStructEnd()
7128
 
7129
  def __repr__(self):
7130
    L = ['%s=%r' % (key, value)
7131
      for key, value in self.__dict__.iteritems()]
7132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7133
 
7134
  def __eq__(self, other):
7135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7136
 
7137
  def __ne__(self, other):
7138
    return not (self == other)
7139
 
7140
class changeQuantity_args:
7141
  """
7142
  Attributes:
7143
   - cartId
7144
   - itemId
7145
   - quantity
7146
  """
7147
 
7148
  thrift_spec = (
7149
    None, # 0
7150
    (1, TType.I64, 'cartId', None, None, ), # 1
7151
    (2, TType.I64, 'itemId', None, None, ), # 2
7152
    (3, TType.I64, 'quantity', None, None, ), # 3
7153
  )
7154
 
7155
  def __init__(self, cartId=None, itemId=None, quantity=None,):
7156
    self.cartId = cartId
7157
    self.itemId = itemId
7158
    self.quantity = quantity
7159
 
7160
  def read(self, iprot):
7161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7163
      return
7164
    iprot.readStructBegin()
7165
    while True:
7166
      (fname, ftype, fid) = iprot.readFieldBegin()
7167
      if ftype == TType.STOP:
7168
        break
7169
      if fid == 1:
7170
        if ftype == TType.I64:
7171
          self.cartId = iprot.readI64();
7172
        else:
7173
          iprot.skip(ftype)
7174
      elif fid == 2:
7175
        if ftype == TType.I64:
7176
          self.itemId = iprot.readI64();
7177
        else:
7178
          iprot.skip(ftype)
7179
      elif fid == 3:
7180
        if ftype == TType.I64:
7181
          self.quantity = iprot.readI64();
7182
        else:
7183
          iprot.skip(ftype)
7184
      else:
7185
        iprot.skip(ftype)
7186
      iprot.readFieldEnd()
7187
    iprot.readStructEnd()
7188
 
7189
  def write(self, oprot):
7190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7192
      return
7193
    oprot.writeStructBegin('changeQuantity_args')
7194
    if self.cartId != None:
7195
      oprot.writeFieldBegin('cartId', TType.I64, 1)
7196
      oprot.writeI64(self.cartId)
7197
      oprot.writeFieldEnd()
7198
    if self.itemId != None:
7199
      oprot.writeFieldBegin('itemId', TType.I64, 2)
7200
      oprot.writeI64(self.itemId)
7201
      oprot.writeFieldEnd()
7202
    if self.quantity != None:
7203
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7204
      oprot.writeI64(self.quantity)
7205
      oprot.writeFieldEnd()
7206
    oprot.writeFieldStop()
7207
    oprot.writeStructEnd()
7208
 
7209
  def __repr__(self):
7210
    L = ['%s=%r' % (key, value)
7211
      for key, value in self.__dict__.iteritems()]
7212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7213
 
7214
  def __eq__(self, other):
7215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7216
 
7217
  def __ne__(self, other):
7218
    return not (self == other)
7219
 
7220
class changeQuantity_result:
7221
  """
7222
  Attributes:
7223
   - scx
7224
  """
7225
 
7226
  thrift_spec = (
7227
    None, # 0
7228
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
7229
  )
7230
 
7231
  def __init__(self, scx=None,):
7232
    self.scx = scx
7233
 
7234
  def read(self, iprot):
7235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7237
      return
7238
    iprot.readStructBegin()
7239
    while True:
7240
      (fname, ftype, fid) = iprot.readFieldBegin()
7241
      if ftype == TType.STOP:
7242
        break
7243
      if fid == 1:
7244
        if ftype == TType.STRUCT:
7245
          self.scx = ShoppingCartException()
7246
          self.scx.read(iprot)
7247
        else:
7248
          iprot.skip(ftype)
7249
      else:
7250
        iprot.skip(ftype)
7251
      iprot.readFieldEnd()
7252
    iprot.readStructEnd()
7253
 
7254
  def write(self, oprot):
7255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7257
      return
7258
    oprot.writeStructBegin('changeQuantity_result')
7259
    if self.scx != None:
7260
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
7261
      self.scx.write(oprot)
7262
      oprot.writeFieldEnd()
7263
    oprot.writeFieldStop()
7264
    oprot.writeStructEnd()
7265
 
7266
  def __repr__(self):
7267
    L = ['%s=%r' % (key, value)
7268
      for key, value in self.__dict__.iteritems()]
7269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7270
 
7271
  def __eq__(self, other):
7272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7273
 
7274
  def __ne__(self, other):
7275
    return not (self == other)
7276
 
7277
class changeItemStatus_args:
7278
  """
7279
  Attributes:
7280
   - cartId
7281
   - itemId
7282
   - status
7283
  """
7284
 
7285
  thrift_spec = (
7286
    None, # 0
7287
    (1, TType.I64, 'cartId', None, None, ), # 1
7288
    (2, TType.I64, 'itemId', None, None, ), # 2
7289
    (3, TType.I32, 'status', None, None, ), # 3
7290
  )
7291
 
7292
  def __init__(self, cartId=None, itemId=None, status=None,):
7293
    self.cartId = cartId
7294
    self.itemId = itemId
7295
    self.status = status
7296
 
7297
  def read(self, iprot):
7298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7300
      return
7301
    iprot.readStructBegin()
7302
    while True:
7303
      (fname, ftype, fid) = iprot.readFieldBegin()
7304
      if ftype == TType.STOP:
7305
        break
7306
      if fid == 1:
7307
        if ftype == TType.I64:
7308
          self.cartId = iprot.readI64();
7309
        else:
7310
          iprot.skip(ftype)
7311
      elif fid == 2:
7312
        if ftype == TType.I64:
7313
          self.itemId = iprot.readI64();
7314
        else:
7315
          iprot.skip(ftype)
7316
      elif fid == 3:
7317
        if ftype == TType.I32:
7318
          self.status = iprot.readI32();
7319
        else:
7320
          iprot.skip(ftype)
7321
      else:
7322
        iprot.skip(ftype)
7323
      iprot.readFieldEnd()
7324
    iprot.readStructEnd()
7325
 
7326
  def write(self, oprot):
7327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7329
      return
7330
    oprot.writeStructBegin('changeItemStatus_args')
7331
    if self.cartId != None:
7332
      oprot.writeFieldBegin('cartId', TType.I64, 1)
7333
      oprot.writeI64(self.cartId)
7334
      oprot.writeFieldEnd()
7335
    if self.itemId != None:
7336
      oprot.writeFieldBegin('itemId', TType.I64, 2)
7337
      oprot.writeI64(self.itemId)
7338
      oprot.writeFieldEnd()
7339
    if self.status != None:
7340
      oprot.writeFieldBegin('status', TType.I32, 3)
7341
      oprot.writeI32(self.status)
7342
      oprot.writeFieldEnd()
7343
    oprot.writeFieldStop()
7344
    oprot.writeStructEnd()
7345
 
7346
  def __repr__(self):
7347
    L = ['%s=%r' % (key, value)
7348
      for key, value in self.__dict__.iteritems()]
7349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7350
 
7351
  def __eq__(self, other):
7352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7353
 
7354
  def __ne__(self, other):
7355
    return not (self == other)
7356
 
7357
class changeItemStatus_result:
7358
  """
7359
  Attributes:
7360
   - scx
7361
  """
7362
 
7363
  thrift_spec = (
7364
    None, # 0
7365
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
7366
  )
7367
 
7368
  def __init__(self, scx=None,):
7369
    self.scx = scx
7370
 
7371
  def read(self, iprot):
7372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7374
      return
7375
    iprot.readStructBegin()
7376
    while True:
7377
      (fname, ftype, fid) = iprot.readFieldBegin()
7378
      if ftype == TType.STOP:
7379
        break
7380
      if fid == 1:
7381
        if ftype == TType.STRUCT:
7382
          self.scx = ShoppingCartException()
7383
          self.scx.read(iprot)
7384
        else:
7385
          iprot.skip(ftype)
7386
      else:
7387
        iprot.skip(ftype)
7388
      iprot.readFieldEnd()
7389
    iprot.readStructEnd()
7390
 
7391
  def write(self, oprot):
7392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7394
      return
7395
    oprot.writeStructBegin('changeItemStatus_result')
7396
    if self.scx != None:
7397
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
7398
      self.scx.write(oprot)
7399
      oprot.writeFieldEnd()
7400
    oprot.writeFieldStop()
7401
    oprot.writeStructEnd()
7402
 
7403
  def __repr__(self):
7404
    L = ['%s=%r' % (key, value)
7405
      for key, value in self.__dict__.iteritems()]
7406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7407
 
7408
  def __eq__(self, other):
7409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7410
 
7411
  def __ne__(self, other):
7412
    return not (self == other)
7413
 
7414
class addAddressToCart_args:
7415
  """
7416
  Attributes:
7417
   - cartId
7418
   - addressId
7419
  """
7420
 
7421
  thrift_spec = (
7422
    None, # 0
7423
    (1, TType.I64, 'cartId', None, None, ), # 1
7424
    (2, TType.I64, 'addressId', None, None, ), # 2
7425
  )
7426
 
7427
  def __init__(self, cartId=None, addressId=None,):
7428
    self.cartId = cartId
7429
    self.addressId = addressId
7430
 
7431
  def read(self, iprot):
7432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7434
      return
7435
    iprot.readStructBegin()
7436
    while True:
7437
      (fname, ftype, fid) = iprot.readFieldBegin()
7438
      if ftype == TType.STOP:
7439
        break
7440
      if fid == 1:
7441
        if ftype == TType.I64:
7442
          self.cartId = iprot.readI64();
7443
        else:
7444
          iprot.skip(ftype)
7445
      elif fid == 2:
7446
        if ftype == TType.I64:
7447
          self.addressId = iprot.readI64();
7448
        else:
7449
          iprot.skip(ftype)
7450
      else:
7451
        iprot.skip(ftype)
7452
      iprot.readFieldEnd()
7453
    iprot.readStructEnd()
7454
 
7455
  def write(self, oprot):
7456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7458
      return
7459
    oprot.writeStructBegin('addAddressToCart_args')
7460
    if self.cartId != None:
7461
      oprot.writeFieldBegin('cartId', TType.I64, 1)
7462
      oprot.writeI64(self.cartId)
7463
      oprot.writeFieldEnd()
7464
    if self.addressId != None:
7465
      oprot.writeFieldBegin('addressId', TType.I64, 2)
7466
      oprot.writeI64(self.addressId)
7467
      oprot.writeFieldEnd()
7468
    oprot.writeFieldStop()
7469
    oprot.writeStructEnd()
7470
 
7471
  def __repr__(self):
7472
    L = ['%s=%r' % (key, value)
7473
      for key, value in self.__dict__.iteritems()]
7474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7475
 
7476
  def __eq__(self, other):
7477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7478
 
7479
  def __ne__(self, other):
7480
    return not (self == other)
7481
 
7482
class addAddressToCart_result:
575 chandransh 7483
  """
7484
  Attributes:
7485
   - scx
7486
  """
559 chandransh 7487
 
7488
  thrift_spec = (
575 chandransh 7489
    None, # 0
7490
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 7491
  )
7492
 
575 chandransh 7493
  def __init__(self, scx=None,):
7494
    self.scx = scx
7495
 
559 chandransh 7496
  def read(self, iprot):
7497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7499
      return
7500
    iprot.readStructBegin()
7501
    while True:
7502
      (fname, ftype, fid) = iprot.readFieldBegin()
7503
      if ftype == TType.STOP:
7504
        break
575 chandransh 7505
      if fid == 1:
7506
        if ftype == TType.STRUCT:
7507
          self.scx = ShoppingCartException()
7508
          self.scx.read(iprot)
7509
        else:
7510
          iprot.skip(ftype)
559 chandransh 7511
      else:
7512
        iprot.skip(ftype)
7513
      iprot.readFieldEnd()
7514
    iprot.readStructEnd()
7515
 
7516
  def write(self, oprot):
7517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7519
      return
7520
    oprot.writeStructBegin('addAddressToCart_result')
575 chandransh 7521
    if self.scx != None:
7522
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
7523
      self.scx.write(oprot)
7524
      oprot.writeFieldEnd()
559 chandransh 7525
    oprot.writeFieldStop()
7526
    oprot.writeStructEnd()
7527
 
7528
  def __repr__(self):
7529
    L = ['%s=%r' % (key, value)
7530
      for key, value in self.__dict__.iteritems()]
7531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7532
 
7533
  def __eq__(self, other):
7534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7535
 
7536
  def __ne__(self, other):
7537
    return not (self == other)
7538
 
690 chandransh 7539
class createOrders_args:
559 chandransh 7540
  """
7541
  Attributes:
7542
   - cartId
7543
  """
7544
 
7545
  thrift_spec = (
7546
    None, # 0
7547
    (1, TType.I64, 'cartId', None, None, ), # 1
7548
  )
7549
 
7550
  def __init__(self, cartId=None,):
7551
    self.cartId = cartId
7552
 
7553
  def read(self, iprot):
7554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7556
      return
7557
    iprot.readStructBegin()
7558
    while True:
7559
      (fname, ftype, fid) = iprot.readFieldBegin()
7560
      if ftype == TType.STOP:
7561
        break
7562
      if fid == 1:
7563
        if ftype == TType.I64:
7564
          self.cartId = iprot.readI64();
7565
        else:
7566
          iprot.skip(ftype)
7567
      else:
7568
        iprot.skip(ftype)
7569
      iprot.readFieldEnd()
7570
    iprot.readStructEnd()
7571
 
7572
  def write(self, oprot):
7573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7575
      return
690 chandransh 7576
    oprot.writeStructBegin('createOrders_args')
559 chandransh 7577
    if self.cartId != None:
7578
      oprot.writeFieldBegin('cartId', TType.I64, 1)
7579
      oprot.writeI64(self.cartId)
7580
      oprot.writeFieldEnd()
7581
    oprot.writeFieldStop()
7582
    oprot.writeStructEnd()
7583
 
7584
  def __repr__(self):
7585
    L = ['%s=%r' % (key, value)
7586
      for key, value in self.__dict__.iteritems()]
7587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7588
 
7589
  def __eq__(self, other):
7590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7591
 
7592
  def __ne__(self, other):
7593
    return not (self == other)
7594
 
690 chandransh 7595
class createOrders_result:
559 chandransh 7596
  """
7597
  Attributes:
94 ashish 7598
   - success
559 chandransh 7599
   - scx
94 ashish 7600
  """
7601
 
7602
  thrift_spec = (
575 chandransh 7603
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 7604
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 7605
  )
7606
 
559 chandransh 7607
  def __init__(self, success=None, scx=None,):
94 ashish 7608
    self.success = success
559 chandransh 7609
    self.scx = scx
94 ashish 7610
 
7611
  def read(self, iprot):
7612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7614
      return
7615
    iprot.readStructBegin()
7616
    while True:
7617
      (fname, ftype, fid) = iprot.readFieldBegin()
7618
      if ftype == TType.STOP:
7619
        break
7620
      if fid == 0:
575 chandransh 7621
        if ftype == TType.I64:
7622
          self.success = iprot.readI64();
94 ashish 7623
        else:
7624
          iprot.skip(ftype)
7625
      elif fid == 1:
7626
        if ftype == TType.STRUCT:
559 chandransh 7627
          self.scx = ShoppingCartException()
7628
          self.scx.read(iprot)
94 ashish 7629
        else:
7630
          iprot.skip(ftype)
7631
      else:
7632
        iprot.skip(ftype)
7633
      iprot.readFieldEnd()
7634
    iprot.readStructEnd()
7635
 
7636
  def write(self, oprot):
7637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7639
      return
690 chandransh 7640
    oprot.writeStructBegin('createOrders_result')
94 ashish 7641
    if self.success != None:
575 chandransh 7642
      oprot.writeFieldBegin('success', TType.I64, 0)
7643
      oprot.writeI64(self.success)
94 ashish 7644
      oprot.writeFieldEnd()
559 chandransh 7645
    if self.scx != None:
7646
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
7647
      self.scx.write(oprot)
94 ashish 7648
      oprot.writeFieldEnd()
7649
    oprot.writeFieldStop()
7650
    oprot.writeStructEnd()
7651
 
7652
  def __repr__(self):
7653
    L = ['%s=%r' % (key, value)
7654
      for key, value in self.__dict__.iteritems()]
7655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7656
 
7657
  def __eq__(self, other):
7658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7659
 
7660
  def __ne__(self, other):
7661
    return not (self == other)
7662
 
559 chandransh 7663
class validateCart_args:
94 ashish 7664
  """
7665
  Attributes:
559 chandransh 7666
   - cartId
94 ashish 7667
  """
7668
 
7669
  thrift_spec = (
7670
    None, # 0
559 chandransh 7671
    (1, TType.I64, 'cartId', None, None, ), # 1
94 ashish 7672
  )
7673
 
559 chandransh 7674
  def __init__(self, cartId=None,):
7675
    self.cartId = cartId
94 ashish 7676
 
7677
  def read(self, iprot):
7678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7680
      return
7681
    iprot.readStructBegin()
7682
    while True:
7683
      (fname, ftype, fid) = iprot.readFieldBegin()
7684
      if ftype == TType.STOP:
7685
        break
7686
      if fid == 1:
7687
        if ftype == TType.I64:
559 chandransh 7688
          self.cartId = iprot.readI64();
94 ashish 7689
        else:
7690
          iprot.skip(ftype)
7691
      else:
7692
        iprot.skip(ftype)
7693
      iprot.readFieldEnd()
7694
    iprot.readStructEnd()
7695
 
7696
  def write(self, oprot):
7697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7699
      return
559 chandransh 7700
    oprot.writeStructBegin('validateCart_args')
7701
    if self.cartId != None:
7702
      oprot.writeFieldBegin('cartId', TType.I64, 1)
7703
      oprot.writeI64(self.cartId)
94 ashish 7704
      oprot.writeFieldEnd()
7705
    oprot.writeFieldStop()
7706
    oprot.writeStructEnd()
7707
 
7708
  def __repr__(self):
7709
    L = ['%s=%r' % (key, value)
7710
      for key, value in self.__dict__.iteritems()]
7711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7712
 
7713
  def __eq__(self, other):
7714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7715
 
7716
  def __ne__(self, other):
7717
    return not (self == other)
7718
 
559 chandransh 7719
class validateCart_result:
94 ashish 7720
  """
7721
  Attributes:
7722
   - success
575 chandransh 7723
   - scex
94 ashish 7724
  """
7725
 
7726
  thrift_spec = (
1466 ankur.sing 7727
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 7728
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 7729
  )
7730
 
575 chandransh 7731
  def __init__(self, success=None, scex=None,):
94 ashish 7732
    self.success = success
575 chandransh 7733
    self.scex = scex
94 ashish 7734
 
7735
  def read(self, iprot):
7736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7738
      return
7739
    iprot.readStructBegin()
7740
    while True:
7741
      (fname, ftype, fid) = iprot.readFieldBegin()
7742
      if ftype == TType.STOP:
7743
        break
7744
      if fid == 0:
1466 ankur.sing 7745
        if ftype == TType.STRING:
7746
          self.success = iprot.readString();
94 ashish 7747
        else:
7748
          iprot.skip(ftype)
575 chandransh 7749
      elif fid == 1:
7750
        if ftype == TType.STRUCT:
7751
          self.scex = ShoppingCartException()
7752
          self.scex.read(iprot)
7753
        else:
7754
          iprot.skip(ftype)
94 ashish 7755
      else:
7756
        iprot.skip(ftype)
7757
      iprot.readFieldEnd()
7758
    iprot.readStructEnd()
7759
 
7760
  def write(self, oprot):
7761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7763
      return
559 chandransh 7764
    oprot.writeStructBegin('validateCart_result')
94 ashish 7765
    if self.success != None:
1466 ankur.sing 7766
      oprot.writeFieldBegin('success', TType.STRING, 0)
7767
      oprot.writeString(self.success)
94 ashish 7768
      oprot.writeFieldEnd()
575 chandransh 7769
    if self.scex != None:
7770
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
7771
      self.scex.write(oprot)
7772
      oprot.writeFieldEnd()
559 chandransh 7773
    oprot.writeFieldStop()
7774
    oprot.writeStructEnd()
7775
 
7776
  def __repr__(self):
7777
    L = ['%s=%r' % (key, value)
7778
      for key, value in self.__dict__.iteritems()]
7779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7780
 
7781
  def __eq__(self, other):
7782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7783
 
7784
  def __ne__(self, other):
7785
    return not (self == other)
7786
 
690 chandransh 7787
class mergeCart_args:
575 chandransh 7788
  """
7789
  Attributes:
690 chandransh 7790
   - fromCartId
7791
   - toCartId
7792
  """
7793
 
7794
  thrift_spec = (
7795
    None, # 0
7796
    (1, TType.I64, 'fromCartId', None, None, ), # 1
7797
    (2, TType.I64, 'toCartId', None, None, ), # 2
7798
  )
7799
 
7800
  def __init__(self, fromCartId=None, toCartId=None,):
7801
    self.fromCartId = fromCartId
7802
    self.toCartId = toCartId
7803
 
7804
  def read(self, iprot):
7805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7807
      return
7808
    iprot.readStructBegin()
7809
    while True:
7810
      (fname, ftype, fid) = iprot.readFieldBegin()
7811
      if ftype == TType.STOP:
7812
        break
7813
      if fid == 1:
7814
        if ftype == TType.I64:
7815
          self.fromCartId = iprot.readI64();
7816
        else:
7817
          iprot.skip(ftype)
7818
      elif fid == 2:
7819
        if ftype == TType.I64:
7820
          self.toCartId = iprot.readI64();
7821
        else:
7822
          iprot.skip(ftype)
7823
      else:
7824
        iprot.skip(ftype)
7825
      iprot.readFieldEnd()
7826
    iprot.readStructEnd()
7827
 
7828
  def write(self, oprot):
7829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7831
      return
7832
    oprot.writeStructBegin('mergeCart_args')
7833
    if self.fromCartId != None:
7834
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
7835
      oprot.writeI64(self.fromCartId)
7836
      oprot.writeFieldEnd()
7837
    if self.toCartId != None:
7838
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
7839
      oprot.writeI64(self.toCartId)
7840
      oprot.writeFieldEnd()
7841
    oprot.writeFieldStop()
7842
    oprot.writeStructEnd()
7843
 
7844
  def __repr__(self):
7845
    L = ['%s=%r' % (key, value)
7846
      for key, value in self.__dict__.iteritems()]
7847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7848
 
7849
  def __eq__(self, other):
7850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7851
 
7852
  def __ne__(self, other):
7853
    return not (self == other)
7854
 
7855
class mergeCart_result:
7856
 
7857
  thrift_spec = (
7858
  )
7859
 
7860
  def read(self, iprot):
7861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7863
      return
7864
    iprot.readStructBegin()
7865
    while True:
7866
      (fname, ftype, fid) = iprot.readFieldBegin()
7867
      if ftype == TType.STOP:
7868
        break
7869
      else:
7870
        iprot.skip(ftype)
7871
      iprot.readFieldEnd()
7872
    iprot.readStructEnd()
7873
 
7874
  def write(self, oprot):
7875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7877
      return
7878
    oprot.writeStructBegin('mergeCart_result')
7879
    oprot.writeFieldStop()
7880
    oprot.writeStructEnd()
7881
 
7882
  def __repr__(self):
7883
    L = ['%s=%r' % (key, value)
7884
      for key, value in self.__dict__.iteritems()]
7885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7886
 
7887
  def __eq__(self, other):
7888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7889
 
7890
  def __ne__(self, other):
7891
    return not (self == other)
7892
 
7893
class checkOut_args:
7894
  """
7895
  Attributes:
575 chandransh 7896
   - cartId
7897
  """
7898
 
7899
  thrift_spec = (
7900
    None, # 0
7901
    (1, TType.I64, 'cartId', None, None, ), # 1
7902
  )
7903
 
7904
  def __init__(self, cartId=None,):
7905
    self.cartId = cartId
7906
 
7907
  def read(self, iprot):
7908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7910
      return
7911
    iprot.readStructBegin()
7912
    while True:
7913
      (fname, ftype, fid) = iprot.readFieldBegin()
7914
      if ftype == TType.STOP:
7915
        break
7916
      if fid == 1:
7917
        if ftype == TType.I64:
7918
          self.cartId = iprot.readI64();
7919
        else:
7920
          iprot.skip(ftype)
7921
      else:
7922
        iprot.skip(ftype)
7923
      iprot.readFieldEnd()
7924
    iprot.readStructEnd()
7925
 
7926
  def write(self, oprot):
7927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7929
      return
690 chandransh 7930
    oprot.writeStructBegin('checkOut_args')
575 chandransh 7931
    if self.cartId != None:
7932
      oprot.writeFieldBegin('cartId', TType.I64, 1)
7933
      oprot.writeI64(self.cartId)
7934
      oprot.writeFieldEnd()
7935
    oprot.writeFieldStop()
7936
    oprot.writeStructEnd()
7937
 
7938
  def __repr__(self):
7939
    L = ['%s=%r' % (key, value)
7940
      for key, value in self.__dict__.iteritems()]
7941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7942
 
7943
  def __eq__(self, other):
7944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7945
 
7946
  def __ne__(self, other):
7947
    return not (self == other)
7948
 
690 chandransh 7949
class checkOut_result:
575 chandransh 7950
  """
7951
  Attributes:
7952
   - success
7953
   - scex
7954
  """
7955
 
7956
  thrift_spec = (
7957
    (0, TType.BOOL, 'success', None, None, ), # 0
7958
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
7959
  )
7960
 
7961
  def __init__(self, success=None, scex=None,):
7962
    self.success = success
7963
    self.scex = scex
7964
 
7965
  def read(self, iprot):
7966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7968
      return
7969
    iprot.readStructBegin()
7970
    while True:
7971
      (fname, ftype, fid) = iprot.readFieldBegin()
7972
      if ftype == TType.STOP:
7973
        break
7974
      if fid == 0:
7975
        if ftype == TType.BOOL:
7976
          self.success = iprot.readBool();
7977
        else:
7978
          iprot.skip(ftype)
7979
      elif fid == 1:
7980
        if ftype == TType.STRUCT:
7981
          self.scex = ShoppingCartException()
7982
          self.scex.read(iprot)
7983
        else:
7984
          iprot.skip(ftype)
7985
      else:
7986
        iprot.skip(ftype)
7987
      iprot.readFieldEnd()
7988
    iprot.readStructEnd()
7989
 
7990
  def write(self, oprot):
7991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7993
      return
690 chandransh 7994
    oprot.writeStructBegin('checkOut_result')
575 chandransh 7995
    if self.success != None:
7996
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7997
      oprot.writeBool(self.success)
7998
      oprot.writeFieldEnd()
7999
    if self.scex != None:
8000
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
8001
      self.scex.write(oprot)
8002
      oprot.writeFieldEnd()
8003
    oprot.writeFieldStop()
8004
    oprot.writeStructEnd()
8005
 
8006
  def __repr__(self):
8007
    L = ['%s=%r' % (key, value)
8008
      for key, value in self.__dict__.iteritems()]
8009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8010
 
8011
  def __eq__(self, other):
8012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8013
 
8014
  def __ne__(self, other):
8015
    return not (self == other)
8016
 
690 chandransh 8017
class resetCart_args:
559 chandransh 8018
  """
8019
  Attributes:
690 chandransh 8020
   - cartId
8021
   - items
559 chandransh 8022
  """
8023
 
8024
  thrift_spec = (
8025
    None, # 0
690 chandransh 8026
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 8027
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 8028
  )
8029
 
690 chandransh 8030
  def __init__(self, cartId=None, items=None,):
8031
    self.cartId = cartId
8032
    self.items = items
559 chandransh 8033
 
8034
  def read(self, iprot):
8035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8037
      return
8038
    iprot.readStructBegin()
8039
    while True:
8040
      (fname, ftype, fid) = iprot.readFieldBegin()
8041
      if ftype == TType.STOP:
8042
        break
8043
      if fid == 1:
8044
        if ftype == TType.I64:
690 chandransh 8045
          self.cartId = iprot.readI64();
559 chandransh 8046
        else:
8047
          iprot.skip(ftype)
8048
      elif fid == 2:
690 chandransh 8049
        if ftype == TType.MAP:
8050
          self.items = {}
1590 varun.gupt 8051
          (_ktype71, _vtype72, _size70 ) = iprot.readMapBegin() 
8052
          for _i74 in xrange(_size70):
8053
            _key75 = iprot.readI64();
8054
            _val76 = iprot.readDouble();
8055
            self.items[_key75] = _val76
690 chandransh 8056
          iprot.readMapEnd()
559 chandransh 8057
        else:
8058
          iprot.skip(ftype)
8059
      else:
8060
        iprot.skip(ftype)
8061
      iprot.readFieldEnd()
8062
    iprot.readStructEnd()
8063
 
8064
  def write(self, oprot):
8065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8067
      return
690 chandransh 8068
    oprot.writeStructBegin('resetCart_args')
8069
    if self.cartId != None:
8070
      oprot.writeFieldBegin('cartId', TType.I64, 1)
8071
      oprot.writeI64(self.cartId)
94 ashish 8072
      oprot.writeFieldEnd()
690 chandransh 8073
    if self.items != None:
8074
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 8075
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
1590 varun.gupt 8076
      for kiter77,viter78 in self.items.items():
8077
        oprot.writeI64(kiter77)
8078
        oprot.writeDouble(viter78)
690 chandransh 8079
      oprot.writeMapEnd()
559 chandransh 8080
      oprot.writeFieldEnd()
94 ashish 8081
    oprot.writeFieldStop()
8082
    oprot.writeStructEnd()
8083
 
8084
  def __repr__(self):
8085
    L = ['%s=%r' % (key, value)
8086
      for key, value in self.__dict__.iteritems()]
8087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8088
 
8089
  def __eq__(self, other):
8090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8091
 
8092
  def __ne__(self, other):
8093
    return not (self == other)
8094
 
690 chandransh 8095
class resetCart_result:
8096
  """
8097
  Attributes:
8098
   - success
8099
   - scex
8100
  """
559 chandransh 8101
 
8102
  thrift_spec = (
690 chandransh 8103
    (0, TType.BOOL, 'success', None, None, ), # 0
8104
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 8105
  )
8106
 
690 chandransh 8107
  def __init__(self, success=None, scex=None,):
8108
    self.success = success
8109
    self.scex = scex
8110
 
559 chandransh 8111
  def read(self, iprot):
8112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8114
      return
8115
    iprot.readStructBegin()
8116
    while True:
8117
      (fname, ftype, fid) = iprot.readFieldBegin()
8118
      if ftype == TType.STOP:
8119
        break
690 chandransh 8120
      if fid == 0:
8121
        if ftype == TType.BOOL:
8122
          self.success = iprot.readBool();
8123
        else:
8124
          iprot.skip(ftype)
8125
      elif fid == 1:
8126
        if ftype == TType.STRUCT:
8127
          self.scex = ShoppingCartException()
8128
          self.scex.read(iprot)
8129
        else:
8130
          iprot.skip(ftype)
559 chandransh 8131
      else:
8132
        iprot.skip(ftype)
8133
      iprot.readFieldEnd()
8134
    iprot.readStructEnd()
8135
 
8136
  def write(self, oprot):
8137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8139
      return
690 chandransh 8140
    oprot.writeStructBegin('resetCart_result')
8141
    if self.success != None:
8142
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8143
      oprot.writeBool(self.success)
8144
      oprot.writeFieldEnd()
8145
    if self.scex != None:
8146
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
8147
      self.scex.write(oprot)
8148
      oprot.writeFieldEnd()
559 chandransh 8149
    oprot.writeFieldStop()
8150
    oprot.writeStructEnd()
8151
 
8152
  def __repr__(self):
8153
    L = ['%s=%r' % (key, value)
8154
      for key, value in self.__dict__.iteritems()]
8155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8156
 
8157
  def __eq__(self, other):
8158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8159
 
8160
  def __ne__(self, other):
8161
    return not (self == other)
8162
 
772 rajveer 8163
class getMyResearch_args:
94 ashish 8164
  """
8165
  Attributes:
559 chandransh 8166
   - userId
8167
  """
8168
 
8169
  thrift_spec = (
8170
    None, # 0
772 rajveer 8171
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 8172
  )
8173
 
772 rajveer 8174
  def __init__(self, userId=None,):
559 chandransh 8175
    self.userId = userId
8176
 
8177
  def read(self, iprot):
8178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8180
      return
8181
    iprot.readStructBegin()
8182
    while True:
8183
      (fname, ftype, fid) = iprot.readFieldBegin()
8184
      if ftype == TType.STOP:
8185
        break
8186
      if fid == 1:
8187
        if ftype == TType.I64:
8188
          self.userId = iprot.readI64();
8189
        else:
8190
          iprot.skip(ftype)
8191
      else:
8192
        iprot.skip(ftype)
8193
      iprot.readFieldEnd()
8194
    iprot.readStructEnd()
8195
 
8196
  def write(self, oprot):
8197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8199
      return
772 rajveer 8200
    oprot.writeStructBegin('getMyResearch_args')
559 chandransh 8201
    if self.userId != None:
772 rajveer 8202
      oprot.writeFieldBegin('userId', TType.I64, 1)
559 chandransh 8203
      oprot.writeI64(self.userId)
8204
      oprot.writeFieldEnd()
8205
    oprot.writeFieldStop()
8206
    oprot.writeStructEnd()
8207
 
8208
  def __repr__(self):
8209
    L = ['%s=%r' % (key, value)
8210
      for key, value in self.__dict__.iteritems()]
8211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8212
 
8213
  def __eq__(self, other):
8214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8215
 
8216
  def __ne__(self, other):
8217
    return not (self == other)
8218
 
8219
class getMyResearch_result:
94 ashish 8220
  """
8221
  Attributes:
8222
   - success
559 chandransh 8223
   - scx
94 ashish 8224
  """
8225
 
8226
  thrift_spec = (
559 chandransh 8227
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
8228
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
94 ashish 8229
  )
8230
 
559 chandransh 8231
  def __init__(self, success=None, scx=None,):
94 ashish 8232
    self.success = success
559 chandransh 8233
    self.scx = scx
94 ashish 8234
 
8235
  def read(self, iprot):
8236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8238
      return
8239
    iprot.readStructBegin()
8240
    while True:
8241
      (fname, ftype, fid) = iprot.readFieldBegin()
8242
      if ftype == TType.STOP:
8243
        break
8244
      if fid == 0:
559 chandransh 8245
        if ftype == TType.STRUCT:
8246
          self.success = Widget()
8247
          self.success.read(iprot)
94 ashish 8248
        else:
8249
          iprot.skip(ftype)
8250
      elif fid == 1:
8251
        if ftype == TType.STRUCT:
559 chandransh 8252
          self.scx = WidgetException()
8253
          self.scx.read(iprot)
94 ashish 8254
        else:
8255
          iprot.skip(ftype)
8256
      else:
8257
        iprot.skip(ftype)
8258
      iprot.readFieldEnd()
8259
    iprot.readStructEnd()
8260
 
8261
  def write(self, oprot):
8262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8264
      return
559 chandransh 8265
    oprot.writeStructBegin('getMyResearch_result')
94 ashish 8266
    if self.success != None:
559 chandransh 8267
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8268
      self.success.write(oprot)
94 ashish 8269
      oprot.writeFieldEnd()
559 chandransh 8270
    if self.scx != None:
8271
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
8272
      self.scx.write(oprot)
94 ashish 8273
      oprot.writeFieldEnd()
8274
    oprot.writeFieldStop()
8275
    oprot.writeStructEnd()
8276
 
8277
  def __repr__(self):
8278
    L = ['%s=%r' % (key, value)
8279
      for key, value in self.__dict__.iteritems()]
8280
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8281
 
8282
  def __eq__(self, other):
8283
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8284
 
8285
  def __ne__(self, other):
8286
    return not (self == other)
8287
 
559 chandransh 8288
class updateMyResearch_args:
94 ashish 8289
  """
8290
  Attributes:
772 rajveer 8291
   - userId
8292
   - itemId
94 ashish 8293
  """
8294
 
8295
  thrift_spec = (
8296
    None, # 0
772 rajveer 8297
    (1, TType.I64, 'userId', None, None, ), # 1
8298
    (2, TType.I64, 'itemId', None, None, ), # 2
94 ashish 8299
  )
8300
 
772 rajveer 8301
  def __init__(self, userId=None, itemId=None,):
8302
    self.userId = userId
8303
    self.itemId = itemId
94 ashish 8304
 
8305
  def read(self, iprot):
8306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8308
      return
8309
    iprot.readStructBegin()
8310
    while True:
8311
      (fname, ftype, fid) = iprot.readFieldBegin()
8312
      if ftype == TType.STOP:
8313
        break
8314
      if fid == 1:
8315
        if ftype == TType.I64:
772 rajveer 8316
          self.userId = iprot.readI64();
94 ashish 8317
        else:
8318
          iprot.skip(ftype)
8319
      elif fid == 2:
559 chandransh 8320
        if ftype == TType.I64:
772 rajveer 8321
          self.itemId = iprot.readI64();
94 ashish 8322
        else:
8323
          iprot.skip(ftype)
8324
      else:
8325
        iprot.skip(ftype)
8326
      iprot.readFieldEnd()
8327
    iprot.readStructEnd()
8328
 
8329
  def write(self, oprot):
8330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8332
      return
559 chandransh 8333
    oprot.writeStructBegin('updateMyResearch_args')
772 rajveer 8334
    if self.userId != None:
8335
      oprot.writeFieldBegin('userId', TType.I64, 1)
8336
      oprot.writeI64(self.userId)
94 ashish 8337
      oprot.writeFieldEnd()
772 rajveer 8338
    if self.itemId != None:
8339
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8340
      oprot.writeI64(self.itemId)
94 ashish 8341
      oprot.writeFieldEnd()
8342
    oprot.writeFieldStop()
8343
    oprot.writeStructEnd()
8344
 
8345
  def __repr__(self):
8346
    L = ['%s=%r' % (key, value)
8347
      for key, value in self.__dict__.iteritems()]
8348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8349
 
8350
  def __eq__(self, other):
8351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8352
 
8353
  def __ne__(self, other):
8354
    return not (self == other)
8355
 
559 chandransh 8356
class updateMyResearch_result:
94 ashish 8357
  """
8358
  Attributes:
8359
   - success
559 chandransh 8360
   - scx
94 ashish 8361
  """
8362
 
8363
  thrift_spec = (
8364
    (0, TType.BOOL, 'success', None, None, ), # 0
559 chandransh 8365
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
94 ashish 8366
  )
8367
 
559 chandransh 8368
  def __init__(self, success=None, scx=None,):
94 ashish 8369
    self.success = success
559 chandransh 8370
    self.scx = scx
94 ashish 8371
 
8372
  def read(self, iprot):
8373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8375
      return
8376
    iprot.readStructBegin()
8377
    while True:
8378
      (fname, ftype, fid) = iprot.readFieldBegin()
8379
      if ftype == TType.STOP:
8380
        break
8381
      if fid == 0:
8382
        if ftype == TType.BOOL:
8383
          self.success = iprot.readBool();
8384
        else:
8385
          iprot.skip(ftype)
8386
      elif fid == 1:
8387
        if ftype == TType.STRUCT:
559 chandransh 8388
          self.scx = WidgetException()
8389
          self.scx.read(iprot)
94 ashish 8390
        else:
8391
          iprot.skip(ftype)
8392
      else:
8393
        iprot.skip(ftype)
8394
      iprot.readFieldEnd()
8395
    iprot.readStructEnd()
8396
 
8397
  def write(self, oprot):
8398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8400
      return
559 chandransh 8401
    oprot.writeStructBegin('updateMyResearch_result')
94 ashish 8402
    if self.success != None:
8403
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8404
      oprot.writeBool(self.success)
8405
      oprot.writeFieldEnd()
559 chandransh 8406
    if self.scx != None:
8407
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
8408
      self.scx.write(oprot)
94 ashish 8409
      oprot.writeFieldEnd()
8410
    oprot.writeFieldStop()
8411
    oprot.writeStructEnd()
8412
 
8413
  def __repr__(self):
8414
    L = ['%s=%r' % (key, value)
8415
      for key, value in self.__dict__.iteritems()]
8416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8417
 
8418
  def __eq__(self, other):
8419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8420
 
8421
  def __ne__(self, other):
8422
    return not (self == other)
8423
 
559 chandransh 8424
class deleteItemFromMyResearch_args:
130 ashish 8425
  """
8426
  Attributes:
772 rajveer 8427
   - userId
8428
   - itemId
130 ashish 8429
  """
94 ashish 8430
 
130 ashish 8431
  thrift_spec = (
8432
    None, # 0
772 rajveer 8433
    (1, TType.I64, 'userId', None, None, ), # 1
8434
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 8435
  )
8436
 
772 rajveer 8437
  def __init__(self, userId=None, itemId=None,):
8438
    self.userId = userId
8439
    self.itemId = itemId
130 ashish 8440
 
8441
  def read(self, iprot):
8442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8444
      return
8445
    iprot.readStructBegin()
8446
    while True:
8447
      (fname, ftype, fid) = iprot.readFieldBegin()
8448
      if ftype == TType.STOP:
8449
        break
8450
      if fid == 1:
8451
        if ftype == TType.I64:
772 rajveer 8452
          self.userId = iprot.readI64();
130 ashish 8453
        else:
8454
          iprot.skip(ftype)
559 chandransh 8455
      elif fid == 2:
8456
        if ftype == TType.I64:
772 rajveer 8457
          self.itemId = iprot.readI64();
559 chandransh 8458
        else:
8459
          iprot.skip(ftype)
130 ashish 8460
      else:
8461
        iprot.skip(ftype)
8462
      iprot.readFieldEnd()
8463
    iprot.readStructEnd()
8464
 
8465
  def write(self, oprot):
8466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8468
      return
559 chandransh 8469
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
772 rajveer 8470
    if self.userId != None:
8471
      oprot.writeFieldBegin('userId', TType.I64, 1)
8472
      oprot.writeI64(self.userId)
130 ashish 8473
      oprot.writeFieldEnd()
772 rajveer 8474
    if self.itemId != None:
8475
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8476
      oprot.writeI64(self.itemId)
559 chandransh 8477
      oprot.writeFieldEnd()
130 ashish 8478
    oprot.writeFieldStop()
8479
    oprot.writeStructEnd()
8480
 
8481
  def __repr__(self):
8482
    L = ['%s=%r' % (key, value)
8483
      for key, value in self.__dict__.iteritems()]
8484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8485
 
8486
  def __eq__(self, other):
8487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8488
 
8489
  def __ne__(self, other):
8490
    return not (self == other)
8491
 
559 chandransh 8492
class deleteItemFromMyResearch_result:
130 ashish 8493
  """
8494
  Attributes:
559 chandransh 8495
   - scx
8496
  """
8497
 
8498
  thrift_spec = (
8499
    None, # 0
8500
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
8501
  )
8502
 
8503
  def __init__(self, scx=None,):
8504
    self.scx = scx
8505
 
8506
  def read(self, iprot):
8507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8509
      return
8510
    iprot.readStructBegin()
8511
    while True:
8512
      (fname, ftype, fid) = iprot.readFieldBegin()
8513
      if ftype == TType.STOP:
8514
        break
8515
      if fid == 1:
8516
        if ftype == TType.STRUCT:
8517
          self.scx = WidgetException()
8518
          self.scx.read(iprot)
8519
        else:
8520
          iprot.skip(ftype)
8521
      else:
8522
        iprot.skip(ftype)
8523
      iprot.readFieldEnd()
8524
    iprot.readStructEnd()
8525
 
8526
  def write(self, oprot):
8527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8529
      return
8530
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
8531
    if self.scx != None:
8532
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
8533
      self.scx.write(oprot)
8534
      oprot.writeFieldEnd()
8535
    oprot.writeFieldStop()
8536
    oprot.writeStructEnd()
8537
 
8538
  def __repr__(self):
8539
    L = ['%s=%r' % (key, value)
8540
      for key, value in self.__dict__.iteritems()]
8541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8542
 
8543
  def __eq__(self, other):
8544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8545
 
8546
  def __ne__(self, other):
8547
    return not (self == other)
8548
 
772 rajveer 8549
class updateBrowseHistory_args:
559 chandransh 8550
  """
8551
  Attributes:
772 rajveer 8552
   - userId
8553
   - itemId
559 chandransh 8554
  """
8555
 
8556
  thrift_spec = (
8557
    None, # 0
772 rajveer 8558
    (1, TType.I64, 'userId', None, None, ), # 1
8559
    (2, TType.I64, 'itemId', None, None, ), # 2
559 chandransh 8560
  )
8561
 
772 rajveer 8562
  def __init__(self, userId=None, itemId=None,):
8563
    self.userId = userId
8564
    self.itemId = itemId
559 chandransh 8565
 
8566
  def read(self, iprot):
8567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8569
      return
8570
    iprot.readStructBegin()
8571
    while True:
8572
      (fname, ftype, fid) = iprot.readFieldBegin()
8573
      if ftype == TType.STOP:
8574
        break
8575
      if fid == 1:
8576
        if ftype == TType.I64:
772 rajveer 8577
          self.userId = iprot.readI64();
559 chandransh 8578
        else:
8579
          iprot.skip(ftype)
8580
      elif fid == 2:
8581
        if ftype == TType.I64:
772 rajveer 8582
          self.itemId = iprot.readI64();
559 chandransh 8583
        else:
8584
          iprot.skip(ftype)
8585
      else:
8586
        iprot.skip(ftype)
8587
      iprot.readFieldEnd()
8588
    iprot.readStructEnd()
8589
 
8590
  def write(self, oprot):
8591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8593
      return
772 rajveer 8594
    oprot.writeStructBegin('updateBrowseHistory_args')
8595
    if self.userId != None:
8596
      oprot.writeFieldBegin('userId', TType.I64, 1)
8597
      oprot.writeI64(self.userId)
559 chandransh 8598
      oprot.writeFieldEnd()
772 rajveer 8599
    if self.itemId != None:
8600
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8601
      oprot.writeI64(self.itemId)
559 chandransh 8602
      oprot.writeFieldEnd()
8603
    oprot.writeFieldStop()
8604
    oprot.writeStructEnd()
8605
 
8606
  def __repr__(self):
8607
    L = ['%s=%r' % (key, value)
8608
      for key, value in self.__dict__.iteritems()]
8609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8610
 
8611
  def __eq__(self, other):
8612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8613
 
8614
  def __ne__(self, other):
8615
    return not (self == other)
8616
 
772 rajveer 8617
class updateBrowseHistory_result:
559 chandransh 8618
 
8619
  thrift_spec = (
8620
  )
8621
 
8622
  def read(self, iprot):
8623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8625
      return
8626
    iprot.readStructBegin()
8627
    while True:
8628
      (fname, ftype, fid) = iprot.readFieldBegin()
8629
      if ftype == TType.STOP:
8630
        break
8631
      else:
8632
        iprot.skip(ftype)
8633
      iprot.readFieldEnd()
8634
    iprot.readStructEnd()
8635
 
8636
  def write(self, oprot):
8637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8639
      return
772 rajveer 8640
    oprot.writeStructBegin('updateBrowseHistory_result')
559 chandransh 8641
    oprot.writeFieldStop()
8642
    oprot.writeStructEnd()
8643
 
8644
  def __repr__(self):
8645
    L = ['%s=%r' % (key, value)
8646
      for key, value in self.__dict__.iteritems()]
8647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8648
 
8649
  def __eq__(self, other):
8650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8651
 
8652
  def __ne__(self, other):
8653
    return not (self == other)
8654
 
772 rajveer 8655
class getBrowseHistory_args:
559 chandransh 8656
  """
8657
  Attributes:
772 rajveer 8658
   - userId
559 chandransh 8659
  """
8660
 
8661
  thrift_spec = (
8662
    None, # 0
772 rajveer 8663
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 8664
  )
8665
 
772 rajveer 8666
  def __init__(self, userId=None,):
8667
    self.userId = userId
559 chandransh 8668
 
8669
  def read(self, iprot):
8670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8672
      return
8673
    iprot.readStructBegin()
8674
    while True:
8675
      (fname, ftype, fid) = iprot.readFieldBegin()
8676
      if ftype == TType.STOP:
8677
        break
8678
      if fid == 1:
8679
        if ftype == TType.I64:
772 rajveer 8680
          self.userId = iprot.readI64();
559 chandransh 8681
        else:
8682
          iprot.skip(ftype)
8683
      else:
8684
        iprot.skip(ftype)
8685
      iprot.readFieldEnd()
8686
    iprot.readStructEnd()
8687
 
8688
  def write(self, oprot):
8689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8691
      return
772 rajveer 8692
    oprot.writeStructBegin('getBrowseHistory_args')
8693
    if self.userId != None:
8694
      oprot.writeFieldBegin('userId', TType.I64, 1)
8695
      oprot.writeI64(self.userId)
559 chandransh 8696
      oprot.writeFieldEnd()
8697
    oprot.writeFieldStop()
8698
    oprot.writeStructEnd()
8699
 
8700
  def __repr__(self):
8701
    L = ['%s=%r' % (key, value)
8702
      for key, value in self.__dict__.iteritems()]
8703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8704
 
8705
  def __eq__(self, other):
8706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8707
 
8708
  def __ne__(self, other):
8709
    return not (self == other)
8710
 
772 rajveer 8711
class getBrowseHistory_result:
559 chandransh 8712
  """
8713
  Attributes:
130 ashish 8714
   - success
559 chandransh 8715
   - scx
130 ashish 8716
  """
8717
 
8718
  thrift_spec = (
772 rajveer 8719
    (0, TType.STRUCT, 'success', (Widget, Widget.thrift_spec), None, ), # 0
559 chandransh 8720
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 8721
  )
8722
 
559 chandransh 8723
  def __init__(self, success=None, scx=None,):
130 ashish 8724
    self.success = success
559 chandransh 8725
    self.scx = scx
130 ashish 8726
 
8727
  def read(self, iprot):
8728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8730
      return
8731
    iprot.readStructBegin()
8732
    while True:
8733
      (fname, ftype, fid) = iprot.readFieldBegin()
8734
      if ftype == TType.STOP:
8735
        break
8736
      if fid == 0:
559 chandransh 8737
        if ftype == TType.STRUCT:
772 rajveer 8738
          self.success = Widget()
559 chandransh 8739
          self.success.read(iprot)
130 ashish 8740
        else:
8741
          iprot.skip(ftype)
8742
      elif fid == 1:
8743
        if ftype == TType.STRUCT:
559 chandransh 8744
          self.scx = WidgetException()
8745
          self.scx.read(iprot)
130 ashish 8746
        else:
8747
          iprot.skip(ftype)
8748
      else:
8749
        iprot.skip(ftype)
8750
      iprot.readFieldEnd()
8751
    iprot.readStructEnd()
8752
 
8753
  def write(self, oprot):
8754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8756
      return
772 rajveer 8757
    oprot.writeStructBegin('getBrowseHistory_result')
130 ashish 8758
    if self.success != None:
559 chandransh 8759
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8760
      self.success.write(oprot)
130 ashish 8761
      oprot.writeFieldEnd()
559 chandransh 8762
    if self.scx != None:
8763
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
8764
      self.scx.write(oprot)
130 ashish 8765
      oprot.writeFieldEnd()
8766
    oprot.writeFieldStop()
8767
    oprot.writeStructEnd()
8768
 
8769
  def __repr__(self):
8770
    L = ['%s=%r' % (key, value)
8771
      for key, value in self.__dict__.iteritems()]
8772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8773
 
8774
  def __eq__(self, other):
8775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8776
 
8777
  def __ne__(self, other):
8778
    return not (self == other)
8779
 
772 rajveer 8780
class mergeBrowseHistory_args:
130 ashish 8781
  """
8782
  Attributes:
772 rajveer 8783
   - fromUserId
8784
   - toUserId
130 ashish 8785
  """
8786
 
8787
  thrift_spec = (
8788
    None, # 0
772 rajveer 8789
    (1, TType.I64, 'fromUserId', None, None, ), # 1
8790
    (2, TType.I64, 'toUserId', None, None, ), # 2
130 ashish 8791
  )
8792
 
772 rajveer 8793
  def __init__(self, fromUserId=None, toUserId=None,):
8794
    self.fromUserId = fromUserId
8795
    self.toUserId = toUserId
130 ashish 8796
 
8797
  def read(self, iprot):
8798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8800
      return
8801
    iprot.readStructBegin()
8802
    while True:
8803
      (fname, ftype, fid) = iprot.readFieldBegin()
8804
      if ftype == TType.STOP:
8805
        break
8806
      if fid == 1:
559 chandransh 8807
        if ftype == TType.I64:
772 rajveer 8808
          self.fromUserId = iprot.readI64();
130 ashish 8809
        else:
8810
          iprot.skip(ftype)
8811
      elif fid == 2:
559 chandransh 8812
        if ftype == TType.I64:
772 rajveer 8813
          self.toUserId = iprot.readI64();
559 chandransh 8814
        else:
8815
          iprot.skip(ftype)
130 ashish 8816
      else:
8817
        iprot.skip(ftype)
8818
      iprot.readFieldEnd()
8819
    iprot.readStructEnd()
8820
 
8821
  def write(self, oprot):
8822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8824
      return
772 rajveer 8825
    oprot.writeStructBegin('mergeBrowseHistory_args')
8826
    if self.fromUserId != None:
8827
      oprot.writeFieldBegin('fromUserId', TType.I64, 1)
8828
      oprot.writeI64(self.fromUserId)
130 ashish 8829
      oprot.writeFieldEnd()
772 rajveer 8830
    if self.toUserId != None:
8831
      oprot.writeFieldBegin('toUserId', TType.I64, 2)
8832
      oprot.writeI64(self.toUserId)
130 ashish 8833
      oprot.writeFieldEnd()
8834
    oprot.writeFieldStop()
8835
    oprot.writeStructEnd()
8836
 
8837
  def __repr__(self):
8838
    L = ['%s=%r' % (key, value)
8839
      for key, value in self.__dict__.iteritems()]
8840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8841
 
8842
  def __eq__(self, other):
8843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8844
 
8845
  def __ne__(self, other):
8846
    return not (self == other)
8847
 
772 rajveer 8848
class mergeBrowseHistory_result:
559 chandransh 8849
 
8850
  thrift_spec = (
8851
  )
8852
 
8853
  def read(self, iprot):
8854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8856
      return
8857
    iprot.readStructBegin()
8858
    while True:
8859
      (fname, ftype, fid) = iprot.readFieldBegin()
8860
      if ftype == TType.STOP:
8861
        break
8862
      else:
8863
        iprot.skip(ftype)
8864
      iprot.readFieldEnd()
8865
    iprot.readStructEnd()
8866
 
8867
  def write(self, oprot):
8868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8870
      return
772 rajveer 8871
    oprot.writeStructBegin('mergeBrowseHistory_result')
559 chandransh 8872
    oprot.writeFieldStop()
8873
    oprot.writeStructEnd()
8874
 
8875
  def __repr__(self):
8876
    L = ['%s=%r' % (key, value)
8877
      for key, value in self.__dict__.iteritems()]
8878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8879
 
8880
  def __eq__(self, other):
8881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8882
 
8883
  def __ne__(self, other):
8884
    return not (self == other)
8885
 
1596 ankur.sing 8886
class getUserCount_args:
8887
  """
8888
  Attributes:
8889
   - userType
8890
  """
559 chandransh 8891
 
1596 ankur.sing 8892
  thrift_spec = (
8893
    None, # 0
8894
    (1, TType.I32, 'userType', None, None, ), # 1
8895
  )
8896
 
8897
  def __init__(self, userType=None,):
8898
    self.userType = userType
8899
 
8900
  def read(self, iprot):
8901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8903
      return
8904
    iprot.readStructBegin()
8905
    while True:
8906
      (fname, ftype, fid) = iprot.readFieldBegin()
8907
      if ftype == TType.STOP:
8908
        break
8909
      if fid == 1:
8910
        if ftype == TType.I32:
8911
          self.userType = iprot.readI32();
8912
        else:
8913
          iprot.skip(ftype)
8914
      else:
8915
        iprot.skip(ftype)
8916
      iprot.readFieldEnd()
8917
    iprot.readStructEnd()
8918
 
8919
  def write(self, oprot):
8920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8922
      return
8923
    oprot.writeStructBegin('getUserCount_args')
8924
    if self.userType != None:
8925
      oprot.writeFieldBegin('userType', TType.I32, 1)
8926
      oprot.writeI32(self.userType)
8927
      oprot.writeFieldEnd()
8928
    oprot.writeFieldStop()
8929
    oprot.writeStructEnd()
8930
 
8931
  def __repr__(self):
8932
    L = ['%s=%r' % (key, value)
8933
      for key, value in self.__dict__.iteritems()]
8934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8935
 
8936
  def __eq__(self, other):
8937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8938
 
8939
  def __ne__(self, other):
8940
    return not (self == other)
8941
 
8942
class getUserCount_result:
8943
  """
8944
  Attributes:
8945
   - success
8946
  """
8947
 
8948
  thrift_spec = (
8949
    (0, TType.I64, 'success', None, None, ), # 0
8950
  )
8951
 
8952
  def __init__(self, success=None,):
8953
    self.success = success
8954
 
8955
  def read(self, iprot):
8956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8958
      return
8959
    iprot.readStructBegin()
8960
    while True:
8961
      (fname, ftype, fid) = iprot.readFieldBegin()
8962
      if ftype == TType.STOP:
8963
        break
8964
      if fid == 0:
8965
        if ftype == TType.I64:
8966
          self.success = iprot.readI64();
8967
        else:
8968
          iprot.skip(ftype)
8969
      else:
8970
        iprot.skip(ftype)
8971
      iprot.readFieldEnd()
8972
    iprot.readStructEnd()
8973
 
8974
  def write(self, oprot):
8975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8977
      return
8978
    oprot.writeStructBegin('getUserCount_result')
8979
    if self.success != None:
8980
      oprot.writeFieldBegin('success', TType.I64, 0)
8981
      oprot.writeI64(self.success)
8982
      oprot.writeFieldEnd()
8983
    oprot.writeFieldStop()
8984
    oprot.writeStructEnd()
8985
 
8986
  def __repr__(self):
8987
    L = ['%s=%r' % (key, value)
8988
      for key, value in self.__dict__.iteritems()]
8989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8990
 
8991
  def __eq__(self, other):
8992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8993
 
8994
  def __ne__(self, other):
8995
    return not (self == other)
8996
 
1673 ankur.sing 8997
class getAllUsers_args:
8998
  """
8999
  Attributes:
9000
   - userType
9001
  """
1596 ankur.sing 9002
 
1673 ankur.sing 9003
  thrift_spec = (
9004
    None, # 0
9005
    (1, TType.I32, 'userType', None, None, ), # 1
9006
  )
9007
 
9008
  def __init__(self, userType=None,):
9009
    self.userType = userType
9010
 
9011
  def read(self, iprot):
9012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9014
      return
9015
    iprot.readStructBegin()
9016
    while True:
9017
      (fname, ftype, fid) = iprot.readFieldBegin()
9018
      if ftype == TType.STOP:
9019
        break
9020
      if fid == 1:
9021
        if ftype == TType.I32:
9022
          self.userType = iprot.readI32();
9023
        else:
9024
          iprot.skip(ftype)
9025
      else:
9026
        iprot.skip(ftype)
9027
      iprot.readFieldEnd()
9028
    iprot.readStructEnd()
9029
 
9030
  def write(self, oprot):
9031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9033
      return
9034
    oprot.writeStructBegin('getAllUsers_args')
9035
    if self.userType != None:
9036
      oprot.writeFieldBegin('userType', TType.I32, 1)
9037
      oprot.writeI32(self.userType)
9038
      oprot.writeFieldEnd()
9039
    oprot.writeFieldStop()
9040
    oprot.writeStructEnd()
9041
 
9042
  def __repr__(self):
9043
    L = ['%s=%r' % (key, value)
9044
      for key, value in self.__dict__.iteritems()]
9045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9046
 
9047
  def __eq__(self, other):
9048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9049
 
9050
  def __ne__(self, other):
9051
    return not (self == other)
9052
 
9053
class getAllUsers_result:
9054
  """
9055
  Attributes:
9056
   - success
9057
  """
9058
 
9059
  thrift_spec = (
9060
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
9061
  )
9062
 
9063
  def __init__(self, success=None,):
9064
    self.success = success
9065
 
9066
  def read(self, iprot):
9067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9069
      return
9070
    iprot.readStructBegin()
9071
    while True:
9072
      (fname, ftype, fid) = iprot.readFieldBegin()
9073
      if ftype == TType.STOP:
9074
        break
9075
      if fid == 0:
9076
        if ftype == TType.LIST:
9077
          self.success = []
9078
          (_etype82, _size79) = iprot.readListBegin()
9079
          for _i83 in xrange(_size79):
9080
            _elem84 = User()
9081
            _elem84.read(iprot)
9082
            self.success.append(_elem84)
9083
          iprot.readListEnd()
9084
        else:
9085
          iprot.skip(ftype)
9086
      else:
9087
        iprot.skip(ftype)
9088
      iprot.readFieldEnd()
9089
    iprot.readStructEnd()
9090
 
9091
  def write(self, oprot):
9092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9094
      return
9095
    oprot.writeStructBegin('getAllUsers_result')
9096
    if self.success != None:
9097
      oprot.writeFieldBegin('success', TType.LIST, 0)
9098
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9099
      for iter85 in self.success:
9100
        iter85.write(oprot)
9101
      oprot.writeListEnd()
9102
      oprot.writeFieldEnd()
9103
    oprot.writeFieldStop()
9104
    oprot.writeStructEnd()
9105
 
9106
  def __repr__(self):
9107
    L = ['%s=%r' % (key, value)
9108
      for key, value in self.__dict__.iteritems()]
9109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9110
 
9111
  def __eq__(self, other):
9112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9113
 
9114
  def __ne__(self, other):
9115
    return not (self == other)
9116
 
9117