Subversion Repositories SmartDukaan

Rev

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