Subversion Repositories SmartDukaan

Rev

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

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