Subversion Repositories SmartDukaan

Rev

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

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