Subversion Repositories SmartDukaan

Rev

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

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