Subversion Repositories SmartDukaan

Rev

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