Subversion Repositories SmartDukaan

Rev

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