Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  """
21
  service
22
  """
559 chandransh 23
  def createAnonymousUser(self, jsessionId):
94 ashish 24
    """
25
    Parameters:
559 chandransh 26
     - jsessionId
94 ashish 27
    """
28
    pass
29
 
559 chandransh 30
  def getUserById(self, userId):
94 ashish 31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
1491 vikas 37
  def getUserByEmail(self, email):
38
    """
39
    Parameters:
40
     - email
41
    """
42
    pass
43
 
3032 mandeep.dh 44
  def getUserByMobileNumber(self, mobileNumber):
45
    """
46
    Parameters:
47
     - mobileNumber
48
    """
49
    pass
50
 
559 chandransh 51
  def createUser(self, user):
94 ashish 52
    """
53
    Parameters:
559 chandransh 54
     - user
94 ashish 55
    """
56
    pass
57
 
559 chandransh 58
  def updateUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def deleteUser(self, userId):
94 ashish 66
    """
67
    Parameters:
68
     - userId
69
    """
70
    pass
71
 
559 chandransh 72
  def getUserState(self, userId):
94 ashish 73
    """
74
    Parameters:
75
     - userId
76
    """
77
    pass
78
 
559 chandransh 79
  def authenticateUser(self, email, password):
94 ashish 80
    """
81
    Parameters:
82
     - email
83
     - password
84
    """
85
    pass
86
 
87
  def userExists(self, email):
88
    """
89
    Parameters:
90
     - email
91
    """
92
    pass
93
 
567 rajveer 94
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 95
    """
96
    Parameters:
97
     - userId
98
     - address
513 rajveer 99
     - setDefault
94 ashish 100
    """
101
    pass
102
 
103
  def removeAddressForUser(self, userid, addressId):
104
    """
105
    Parameters:
106
     - userid
107
     - addressId
108
    """
109
    pass
110
 
111
  def setUserAsLoggedIn(self, userId, timestamp):
112
    """
113
    Parameters:
114
     - userId
115
     - timestamp
116
    """
117
    pass
118
 
119
  def setUserAsLoggedOut(self, userid, timestamp):
120
    """
121
    Parameters:
122
     - userid
123
     - timestamp
124
    """
125
    pass
126
 
504 rajveer 127
  def setDefaultAddress(self, userid, addressId):
128
    """
129
    Parameters:
130
     - userid
131
     - addressId
132
    """
133
    pass
134
 
594 rajveer 135
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 136
    """
137
    Parameters:
138
     - userid
594 rajveer 139
     - oldPassword
140
     - newPassword
94 ashish 141
    """
142
    pass
143
 
884 rajveer 144
  def forgotPassword(self, email, newPassword):
581 rajveer 145
    """
146
    Parameters:
147
     - email
884 rajveer 148
     - newPassword
581 rajveer 149
    """
150
    pass
151
 
594 rajveer 152
  def getAllAddressesForUser(self, userId):
153
    """
154
    Parameters:
155
     - userId
156
    """
157
    pass
158
 
1894 vikas 159
  def getAddressById(self, addressId):
160
    """
161
    Parameters:
162
     - addressId
163
    """
164
    pass
165
 
594 rajveer 166
  def getDefaultAddressId(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
785 rajveer 173
  def getDefaultPincode(self, userId):
174
    """
175
    Parameters:
176
     - userId
177
    """
178
    pass
179
 
1274 varun.gupt 180
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
181
    """
182
    Parameters:
183
     - userId
184
     - replyTo
185
     - communicationType
186
     - orderId
187
     - airwaybillNo
188
     - productName
189
     - subject
190
     - message
191
    """
192
    pass
193
 
1590 varun.gupt 194
  def getUserCommunicationById(self, id):
195
    """
196
    Parameters:
197
     - id
198
    """
199
    pass
200
 
201
  def getUserCommunicationByUser(self, userId):
202
    """
203
    Parameters:
204
     - userId
205
    """
206
    pass
207
 
208
  def getAllUserCommunications(self, ):
209
    pass
210
 
1859 vikas 211
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 212
    """
213
    Parameters:
214
     - name
1859 vikas 215
     - addedOn
1845 vikas 216
    """
217
    pass
218
 
1899 vikas 219
  def getAllMasterAffiliates(self, ):
220
    pass
221
 
1845 vikas 222
  def getMasterAffiliateById(self, id):
223
    """
224
    Parameters:
225
     - id
226
    """
227
    pass
228
 
229
  def getMasterAffiliateByName(self, name):
230
    """
231
    Parameters:
232
     - name
233
    """
234
    pass
235
 
1859 vikas 236
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 237
    """
238
    Parameters:
239
     - name
240
     - url
241
     - masterAffiliateId
1859 vikas 242
     - addedOn
1845 vikas 243
    """
244
    pass
245
 
246
  def getAffiliateById(self, id):
247
    """
248
    Parameters:
249
     - id
250
    """
251
    pass
252
 
253
  def getAffiliateByName(self, name):
254
    """
255
    Parameters:
256
     - name
257
    """
258
    pass
259
 
1996 vikas 260
  def getTrackerById(self, id):
1845 vikas 261
    """
262
    Parameters:
263
     - id
264
    """
265
    pass
266
 
1996 vikas 267
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 268
    """
269
    Parameters:
1996 vikas 270
     - id
1845 vikas 271
    """
272
    pass
273
 
1996 vikas 274
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 275
    """
276
    Parameters:
277
     - affiliateId
278
     - userId
279
     - event
280
     - url
281
     - data
1859 vikas 282
     - addedOn
1845 vikas 283
    """
284
    pass
285
 
286
  def getTrackLogById(self, id):
287
    """
288
    Parameters:
289
     - id
290
    """
291
    pass
292
 
3293 vikas 293
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 294
    """
295
    Parameters:
1996 vikas 296
     - affiliateId
3293 vikas 297
     - startDate
298
     - endDate
1845 vikas 299
    """
300
    pass
301
 
302
  def getTrackLogsByUser(self, userId):
303
    """
304
    Parameters:
305
     - userId
306
    """
307
    pass
308
 
1996 vikas 309
  def getTrackLogs(self, userId, event, url):
1845 vikas 310
    """
311
    Parameters:
312
     - userId
313
     - event
314
     - url
315
    """
316
    pass
317
 
559 chandransh 318
  def createCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCurrentCart(self, userId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - userId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCart(self, cartId):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - cartId
94 ashish 336
    """
337
    pass
338
 
559 chandransh 339
  def getCartsForUser(self, userId, status):
94 ashish 340
    """
341
    Parameters:
559 chandransh 342
     - userId
343
     - status
94 ashish 344
    """
345
    pass
346
 
559 chandransh 347
  def getCartsByStatus(self, status):
94 ashish 348
    """
349
    Parameters:
559 chandransh 350
     - status
94 ashish 351
    """
352
    pass
353
 
559 chandransh 354
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 355
    """
356
    Parameters:
559 chandransh 357
     - from_time
358
     - to_time
359
     - status
94 ashish 360
    """
361
    pass
362
 
559 chandransh 363
  def changeCartStatus(self, cartId, status):
130 ashish 364
    """
365
    Parameters:
559 chandransh 366
     - cartId
367
     - status
130 ashish 368
    """
369
    pass
94 ashish 370
 
559 chandransh 371
  def addItemToCart(self, cartId, itemId, quantity):
130 ashish 372
    """
373
    Parameters:
559 chandransh 374
     - cartId
375
     - itemId
376
     - quantity
130 ashish 377
    """
378
    pass
379
 
559 chandransh 380
  def deleteItemFromCart(self, cartId, itemId):
381
    """
382
    Parameters:
383
     - cartId
384
     - itemId
385
    """
386
    pass
130 ashish 387
 
559 chandransh 388
  def changeQuantity(self, cartId, itemId, quantity):
389
    """
390
    Parameters:
391
     - cartId
392
     - itemId
393
     - quantity
394
    """
395
    pass
396
 
397
  def changeItemStatus(self, cartId, itemId, status):
398
    """
399
    Parameters:
400
     - cartId
401
     - itemId
402
     - status
403
    """
404
    pass
405
 
406
  def addAddressToCart(self, cartId, addressId):
407
    """
408
    Parameters:
409
     - cartId
410
     - addressId
411
    """
412
    pass
413
 
1976 varun.gupt 414
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
415
    """
416
    Parameters:
417
     - cartId
418
     - couponCode
419
     - totalPrice
420
     - discountedPrice
421
    """
422
    pass
423
 
424
  def removeCoupon(self, cartId):
425
    """
426
    Parameters:
427
     - cartId
428
    """
429
    pass
430
 
3554 varun.gupt 431
  def deleteDiscountsFromCart(self, cartId):
432
    """
433
    Deletes all the discounts associated with the cart
434
 
435
    Parameters:
436
     - cartId
437
    """
438
    pass
439
 
440
  def saveDiscounts(self, discounts):
441
    """
442
    Accepts a list of thrift objects of Discount type and saves them
443
 
444
    Parameters:
445
     - discounts
446
    """
447
    pass
448
 
2815 vikas 449
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 450
    """
690 chandransh 451
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 452
 
559 chandransh 453
    Parameters:
454
     - cartId
2815 vikas 455
     - sessionSource
456
     - sessionStartTime
559 chandransh 457
    """
458
    pass
459
 
460
  def validateCart(self, cartId):
461
    """
690 chandransh 462
    Validates that:
463
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 464
    2. All of the lines in the cart are active items.
690 chandransh 465
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 466
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 467
 
559 chandransh 468
    Parameters:
469
     - cartId
470
    """
471
    pass
472
 
690 chandransh 473
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 474
    """
690 chandransh 475
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 476
 
575 chandransh 477
    Parameters:
690 chandransh 478
     - fromCartId
479
     - toCartId
480
    """
481
    pass
482
 
483
  def checkOut(self, cartId):
484
    """
485
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 486
 
690 chandransh 487
    Parameters:
575 chandransh 488
     - cartId
489
    """
490
    pass
491
 
690 chandransh 492
  def resetCart(self, cartId, items):
559 chandransh 493
    """
690 chandransh 494
    The second parameter is a map of item ids and their quantities which have been successfully processed.
495
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 496
 
559 chandransh 497
    Parameters:
690 chandransh 498
     - cartId
499
     - items
559 chandransh 500
    """
501
    pass
502
 
2981 rajveer 503
  def getUserCount(self, userType):
559 chandransh 504
    """
2981 rajveer 505
    Returns number of registered users.
506
    If userType = null, then it returns count of all users, including anonymous
507
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
508
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 509
 
559 chandransh 510
    Parameters:
2981 rajveer 511
     - userType
559 chandransh 512
    """
513
    pass
514
 
2981 rajveer 515
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 516
    """
2981 rajveer 517
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
518
    If any of startDate or endDate is -1, then that filter is ignored.
519
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 520
 
521
 
559 chandransh 522
    Parameters:
2981 rajveer 523
     - userType
524
     - startDate
525
     - endDate
559 chandransh 526
    """
527
    pass
528
 
2981 rajveer 529
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 530
    """
531
    Parameters:
2981 rajveer 532
     - user_id
533
     - entity_id
534
     - slide
535
     - note
559 chandransh 536
    """
537
    pass
538
 
2981 rajveer 539
  def getUserNotes(self, user_id, entity_id):
559 chandransh 540
    """
541
    Parameters:
2981 rajveer 542
     - user_id
543
     - entity_id
559 chandransh 544
    """
545
    pass
546
 
2981 rajveer 547
  def getMyResearchItems(self, userId):
559 chandransh 548
    """
2981 rajveer 549
    Returns list of item ids in myresearch for the user
3431 rajveer 550
 
559 chandransh 551
    Parameters:
552
     - userId
553
    """
554
    pass
555
 
2981 rajveer 556
  def updateMyResearch(self, userId, itemId):
559 chandransh 557
    """
2981 rajveer 558
    add item to my research for a user
3431 rajveer 559
 
559 chandransh 560
    Parameters:
2981 rajveer 561
     - userId
562
     - itemId
559 chandransh 563
    """
564
    pass
565
 
2981 rajveer 566
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 567
    """
2981 rajveer 568
    delete item from my research for a user
3431 rajveer 569
 
1596 ankur.sing 570
    Parameters:
2981 rajveer 571
     - userId
572
     - itemId
1596 ankur.sing 573
    """
574
    pass
559 chandransh 575
 
2981 rajveer 576
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 577
    """
2981 rajveer 578
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 579
 
1673 ankur.sing 580
    Parameters:
2981 rajveer 581
     - userId
1673 ankur.sing 582
    """
583
    pass
1596 ankur.sing 584
 
2981 rajveer 585
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 586
    """
2981 rajveer 587
    add item to browse history for a user
3431 rajveer 588
 
2642 varun.gupt 589
    Parameters:
2981 rajveer 590
     - userId
591
     - itemId
2642 varun.gupt 592
    """
593
    pass
1673 ankur.sing 594
 
3385 varun.gupt 595
  def getCartsWithCouponCount(self, couponCode):
596
    """
597
    Returns count of Carts with given coupon applied
3431 rajveer 598
 
3385 varun.gupt 599
    Parameters:
600
     - couponCode
601
    """
602
    pass
2642 varun.gupt 603
 
3499 mandeep.dh 604
  def increaseTrustLevel(self, userId, trustLevelDelta):
605
    """
606
    Updates COD trust level of a user
3385 varun.gupt 607
 
3499 mandeep.dh 608
    Parameters:
609
     - userId
610
     - trustLevelDelta
611
    """
612
    pass
613
 
614
 
3376 rajveer 615
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 616
  """
617
  service
618
  """
619
  def __init__(self, iprot, oprot=None):
3376 rajveer 620
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 621
 
559 chandransh 622
  def createAnonymousUser(self, jsessionId):
94 ashish 623
    """
624
    Parameters:
559 chandransh 625
     - jsessionId
94 ashish 626
    """
559 chandransh 627
    self.send_createAnonymousUser(jsessionId)
628
    return self.recv_createAnonymousUser()
94 ashish 629
 
559 chandransh 630
  def send_createAnonymousUser(self, jsessionId):
631
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
632
    args = createAnonymousUser_args()
633
    args.jsessionId = jsessionId
94 ashish 634
    args.write(self._oprot)
635
    self._oprot.writeMessageEnd()
636
    self._oprot.trans.flush()
637
 
559 chandransh 638
  def recv_createAnonymousUser(self, ):
94 ashish 639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
640
    if mtype == TMessageType.EXCEPTION:
641
      x = TApplicationException()
642
      x.read(self._iprot)
643
      self._iprot.readMessageEnd()
644
      raise x
559 chandransh 645
    result = createAnonymousUser_result()
94 ashish 646
    result.read(self._iprot)
647
    self._iprot.readMessageEnd()
3431 rajveer 648
    if result.success is not None:
94 ashish 649
      return result.success
3431 rajveer 650
    if result.ucex is not None:
559 chandransh 651
      raise result.ucex
652
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 653
 
559 chandransh 654
  def getUserById(self, userId):
94 ashish 655
    """
656
    Parameters:
657
     - userId
658
    """
559 chandransh 659
    self.send_getUserById(userId)
660
    return self.recv_getUserById()
94 ashish 661
 
559 chandransh 662
  def send_getUserById(self, userId):
663
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
664
    args = getUserById_args()
94 ashish 665
    args.userId = userId
666
    args.write(self._oprot)
667
    self._oprot.writeMessageEnd()
668
    self._oprot.trans.flush()
669
 
559 chandransh 670
  def recv_getUserById(self, ):
94 ashish 671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
672
    if mtype == TMessageType.EXCEPTION:
673
      x = TApplicationException()
674
      x.read(self._iprot)
675
      self._iprot.readMessageEnd()
676
      raise x
559 chandransh 677
    result = getUserById_result()
94 ashish 678
    result.read(self._iprot)
679
    self._iprot.readMessageEnd()
3431 rajveer 680
    if result.success is not None:
94 ashish 681
      return result.success
3431 rajveer 682
    if result.ucex is not None:
559 chandransh 683
      raise result.ucex
684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 685
 
1491 vikas 686
  def getUserByEmail(self, email):
687
    """
688
    Parameters:
689
     - email
690
    """
691
    self.send_getUserByEmail(email)
692
    return self.recv_getUserByEmail()
693
 
694
  def send_getUserByEmail(self, email):
695
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
696
    args = getUserByEmail_args()
697
    args.email = email
698
    args.write(self._oprot)
699
    self._oprot.writeMessageEnd()
700
    self._oprot.trans.flush()
701
 
702
  def recv_getUserByEmail(self, ):
703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
704
    if mtype == TMessageType.EXCEPTION:
705
      x = TApplicationException()
706
      x.read(self._iprot)
707
      self._iprot.readMessageEnd()
708
      raise x
709
    result = getUserByEmail_result()
710
    result.read(self._iprot)
711
    self._iprot.readMessageEnd()
3431 rajveer 712
    if result.success is not None:
1491 vikas 713
      return result.success
3431 rajveer 714
    if result.ucex is not None:
1491 vikas 715
      raise result.ucex
716
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
717
 
3032 mandeep.dh 718
  def getUserByMobileNumber(self, mobileNumber):
719
    """
720
    Parameters:
721
     - mobileNumber
722
    """
723
    self.send_getUserByMobileNumber(mobileNumber)
724
    return self.recv_getUserByMobileNumber()
725
 
726
  def send_getUserByMobileNumber(self, mobileNumber):
727
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
728
    args = getUserByMobileNumber_args()
729
    args.mobileNumber = mobileNumber
730
    args.write(self._oprot)
731
    self._oprot.writeMessageEnd()
732
    self._oprot.trans.flush()
733
 
734
  def recv_getUserByMobileNumber(self, ):
735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
736
    if mtype == TMessageType.EXCEPTION:
737
      x = TApplicationException()
738
      x.read(self._iprot)
739
      self._iprot.readMessageEnd()
740
      raise x
741
    result = getUserByMobileNumber_result()
742
    result.read(self._iprot)
743
    self._iprot.readMessageEnd()
3431 rajveer 744
    if result.success is not None:
3032 mandeep.dh 745
      return result.success
3431 rajveer 746
    if result.ucex is not None:
3032 mandeep.dh 747
      raise result.ucex
748
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
749
 
559 chandransh 750
  def createUser(self, user):
94 ashish 751
    """
752
    Parameters:
559 chandransh 753
     - user
94 ashish 754
    """
559 chandransh 755
    self.send_createUser(user)
756
    return self.recv_createUser()
94 ashish 757
 
559 chandransh 758
  def send_createUser(self, user):
759
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
760
    args = createUser_args()
761
    args.user = user
94 ashish 762
    args.write(self._oprot)
763
    self._oprot.writeMessageEnd()
764
    self._oprot.trans.flush()
765
 
559 chandransh 766
  def recv_createUser(self, ):
94 ashish 767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
768
    if mtype == TMessageType.EXCEPTION:
769
      x = TApplicationException()
770
      x.read(self._iprot)
771
      self._iprot.readMessageEnd()
772
      raise x
559 chandransh 773
    result = createUser_result()
94 ashish 774
    result.read(self._iprot)
775
    self._iprot.readMessageEnd()
3431 rajveer 776
    if result.success is not None:
94 ashish 777
      return result.success
3431 rajveer 778
    if result.ucex is not None:
559 chandransh 779
      raise result.ucex
780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 781
 
559 chandransh 782
  def updateUser(self, user):
94 ashish 783
    """
784
    Parameters:
559 chandransh 785
     - user
94 ashish 786
    """
559 chandransh 787
    self.send_updateUser(user)
788
    return self.recv_updateUser()
94 ashish 789
 
559 chandransh 790
  def send_updateUser(self, user):
791
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
792
    args = updateUser_args()
793
    args.user = user
94 ashish 794
    args.write(self._oprot)
795
    self._oprot.writeMessageEnd()
796
    self._oprot.trans.flush()
797
 
559 chandransh 798
  def recv_updateUser(self, ):
94 ashish 799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
800
    if mtype == TMessageType.EXCEPTION:
801
      x = TApplicationException()
802
      x.read(self._iprot)
803
      self._iprot.readMessageEnd()
804
      raise x
559 chandransh 805
    result = updateUser_result()
94 ashish 806
    result.read(self._iprot)
807
    self._iprot.readMessageEnd()
3431 rajveer 808
    if result.success is not None:
94 ashish 809
      return result.success
3431 rajveer 810
    if result.ucex is not None:
559 chandransh 811
      raise result.ucex
812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 813
 
559 chandransh 814
  def deleteUser(self, userId):
94 ashish 815
    """
816
    Parameters:
817
     - userId
818
    """
559 chandransh 819
    self.send_deleteUser(userId)
820
    return self.recv_deleteUser()
94 ashish 821
 
559 chandransh 822
  def send_deleteUser(self, userId):
823
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
824
    args = deleteUser_args()
94 ashish 825
    args.userId = userId
826
    args.write(self._oprot)
827
    self._oprot.writeMessageEnd()
828
    self._oprot.trans.flush()
829
 
559 chandransh 830
  def recv_deleteUser(self, ):
94 ashish 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
559 chandransh 837
    result = deleteUser_result()
94 ashish 838
    result.read(self._iprot)
839
    self._iprot.readMessageEnd()
3431 rajveer 840
    if result.success is not None:
94 ashish 841
      return result.success
3431 rajveer 842
    if result.ucex is not None:
559 chandransh 843
      raise result.ucex
844
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 845
 
559 chandransh 846
  def getUserState(self, userId):
94 ashish 847
    """
848
    Parameters:
849
     - userId
850
    """
559 chandransh 851
    self.send_getUserState(userId)
852
    return self.recv_getUserState()
94 ashish 853
 
559 chandransh 854
  def send_getUserState(self, userId):
855
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
856
    args = getUserState_args()
94 ashish 857
    args.userId = userId
858
    args.write(self._oprot)
859
    self._oprot.writeMessageEnd()
860
    self._oprot.trans.flush()
861
 
559 chandransh 862
  def recv_getUserState(self, ):
94 ashish 863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
864
    if mtype == TMessageType.EXCEPTION:
865
      x = TApplicationException()
866
      x.read(self._iprot)
867
      self._iprot.readMessageEnd()
868
      raise x
559 chandransh 869
    result = getUserState_result()
94 ashish 870
    result.read(self._iprot)
871
    self._iprot.readMessageEnd()
3431 rajveer 872
    if result.success is not None:
94 ashish 873
      return result.success
3431 rajveer 874
    if result.ucex is not None:
559 chandransh 875
      raise result.ucex
876
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 877
 
559 chandransh 878
  def authenticateUser(self, email, password):
94 ashish 879
    """
880
    Parameters:
881
     - email
882
     - password
883
    """
559 chandransh 884
    self.send_authenticateUser(email, password)
122 ashish 885
    return self.recv_authenticateUser()
886
 
559 chandransh 887
  def send_authenticateUser(self, email, password):
122 ashish 888
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
889
    args = authenticateUser_args()
559 chandransh 890
    args.email = email
122 ashish 891
    args.password = password
892
    args.write(self._oprot)
893
    self._oprot.writeMessageEnd()
894
    self._oprot.trans.flush()
895
 
896
  def recv_authenticateUser(self, ):
897
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
898
    if mtype == TMessageType.EXCEPTION:
899
      x = TApplicationException()
900
      x.read(self._iprot)
901
      self._iprot.readMessageEnd()
902
      raise x
903
    result = authenticateUser_result()
904
    result.read(self._iprot)
905
    self._iprot.readMessageEnd()
3431 rajveer 906
    if result.success is not None:
122 ashish 907
      return result.success
3431 rajveer 908
    if result.auex is not None:
559 chandransh 909
      raise result.auex
122 ashish 910
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
911
 
94 ashish 912
  def userExists(self, email):
913
    """
914
    Parameters:
915
     - email
916
    """
917
    self.send_userExists(email)
918
    return self.recv_userExists()
919
 
920
  def send_userExists(self, email):
921
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
922
    args = userExists_args()
923
    args.email = email
924
    args.write(self._oprot)
925
    self._oprot.writeMessageEnd()
926
    self._oprot.trans.flush()
927
 
928
  def recv_userExists(self, ):
929
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
930
    if mtype == TMessageType.EXCEPTION:
931
      x = TApplicationException()
932
      x.read(self._iprot)
933
      self._iprot.readMessageEnd()
934
      raise x
935
    result = userExists_result()
936
    result.read(self._iprot)
937
    self._iprot.readMessageEnd()
3431 rajveer 938
    if result.success is not None:
94 ashish 939
      return result.success
3431 rajveer 940
    if result.ucx is not None:
94 ashish 941
      raise result.ucx
942
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
943
 
567 rajveer 944
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 945
    """
946
    Parameters:
947
     - userId
948
     - address
513 rajveer 949
     - setDefault
94 ashish 950
    """
567 rajveer 951
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 952
    return self.recv_addAddressForUser()
953
 
567 rajveer 954
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 955
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
956
    args = addAddressForUser_args()
559 chandransh 957
    args.userId = userId
94 ashish 958
    args.address = address
513 rajveer 959
    args.setDefault = setDefault
94 ashish 960
    args.write(self._oprot)
961
    self._oprot.writeMessageEnd()
962
    self._oprot.trans.flush()
963
 
964
  def recv_addAddressForUser(self, ):
965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
966
    if mtype == TMessageType.EXCEPTION:
967
      x = TApplicationException()
968
      x.read(self._iprot)
969
      self._iprot.readMessageEnd()
970
      raise x
971
    result = addAddressForUser_result()
972
    result.read(self._iprot)
973
    self._iprot.readMessageEnd()
3431 rajveer 974
    if result.success is not None:
94 ashish 975
      return result.success
3431 rajveer 976
    if result.ucx is not None:
94 ashish 977
      raise result.ucx
978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
979
 
980
  def removeAddressForUser(self, userid, addressId):
981
    """
982
    Parameters:
983
     - userid
984
     - addressId
985
    """
986
    self.send_removeAddressForUser(userid, addressId)
987
    return self.recv_removeAddressForUser()
988
 
989
  def send_removeAddressForUser(self, userid, addressId):
990
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
991
    args = removeAddressForUser_args()
992
    args.userid = userid
993
    args.addressId = addressId
994
    args.write(self._oprot)
995
    self._oprot.writeMessageEnd()
996
    self._oprot.trans.flush()
997
 
998
  def recv_removeAddressForUser(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 = removeAddressForUser_result()
1006
    result.read(self._iprot)
1007
    self._iprot.readMessageEnd()
3431 rajveer 1008
    if result.success is not None:
94 ashish 1009
      return result.success
3431 rajveer 1010
    if result.ucx is not None:
94 ashish 1011
      raise result.ucx
1012
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1013
 
1014
  def setUserAsLoggedIn(self, userId, timestamp):
1015
    """
1016
    Parameters:
1017
     - userId
1018
     - timestamp
1019
    """
1020
    self.send_setUserAsLoggedIn(userId, timestamp)
1021
    return self.recv_setUserAsLoggedIn()
1022
 
1023
  def send_setUserAsLoggedIn(self, userId, timestamp):
1024
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1025
    args = setUserAsLoggedIn_args()
1026
    args.userId = userId
1027
    args.timestamp = timestamp
1028
    args.write(self._oprot)
1029
    self._oprot.writeMessageEnd()
1030
    self._oprot.trans.flush()
1031
 
1032
  def recv_setUserAsLoggedIn(self, ):
1033
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1034
    if mtype == TMessageType.EXCEPTION:
1035
      x = TApplicationException()
1036
      x.read(self._iprot)
1037
      self._iprot.readMessageEnd()
1038
      raise x
1039
    result = setUserAsLoggedIn_result()
1040
    result.read(self._iprot)
1041
    self._iprot.readMessageEnd()
3431 rajveer 1042
    if result.success is not None:
94 ashish 1043
      return result.success
3431 rajveer 1044
    if result.ucx is not None:
94 ashish 1045
      raise result.ucx
1046
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1047
 
1048
  def setUserAsLoggedOut(self, userid, timestamp):
1049
    """
1050
    Parameters:
1051
     - userid
1052
     - timestamp
1053
    """
1054
    self.send_setUserAsLoggedOut(userid, timestamp)
1055
    return self.recv_setUserAsLoggedOut()
1056
 
1057
  def send_setUserAsLoggedOut(self, userid, timestamp):
1058
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1059
    args = setUserAsLoggedOut_args()
1060
    args.userid = userid
1061
    args.timestamp = timestamp
1062
    args.write(self._oprot)
1063
    self._oprot.writeMessageEnd()
1064
    self._oprot.trans.flush()
1065
 
1066
  def recv_setUserAsLoggedOut(self, ):
1067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1068
    if mtype == TMessageType.EXCEPTION:
1069
      x = TApplicationException()
1070
      x.read(self._iprot)
1071
      self._iprot.readMessageEnd()
1072
      raise x
1073
    result = setUserAsLoggedOut_result()
1074
    result.read(self._iprot)
1075
    self._iprot.readMessageEnd()
3431 rajveer 1076
    if result.success is not None:
94 ashish 1077
      return result.success
3431 rajveer 1078
    if result.ucx is not None:
94 ashish 1079
      raise result.ucx
1080
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1081
 
504 rajveer 1082
  def setDefaultAddress(self, userid, addressId):
1083
    """
1084
    Parameters:
1085
     - userid
1086
     - addressId
1087
    """
1088
    self.send_setDefaultAddress(userid, addressId)
1089
    return self.recv_setDefaultAddress()
1090
 
1091
  def send_setDefaultAddress(self, userid, addressId):
1092
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1093
    args = setDefaultAddress_args()
1094
    args.userid = userid
1095
    args.addressId = addressId
1096
    args.write(self._oprot)
1097
    self._oprot.writeMessageEnd()
1098
    self._oprot.trans.flush()
1099
 
1100
  def recv_setDefaultAddress(self, ):
1101
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1102
    if mtype == TMessageType.EXCEPTION:
1103
      x = TApplicationException()
1104
      x.read(self._iprot)
1105
      self._iprot.readMessageEnd()
1106
      raise x
1107
    result = setDefaultAddress_result()
1108
    result.read(self._iprot)
1109
    self._iprot.readMessageEnd()
3431 rajveer 1110
    if result.success is not None:
504 rajveer 1111
      return result.success
3431 rajveer 1112
    if result.ucx is not None:
504 rajveer 1113
      raise result.ucx
1114
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1115
 
594 rajveer 1116
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1117
    """
1118
    Parameters:
1119
     - userid
594 rajveer 1120
     - oldPassword
1121
     - newPassword
94 ashish 1122
    """
594 rajveer 1123
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1124
    return self.recv_updatePassword()
1125
 
594 rajveer 1126
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1127
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1128
    args = updatePassword_args()
1129
    args.userid = userid
594 rajveer 1130
    args.oldPassword = oldPassword
1131
    args.newPassword = newPassword
94 ashish 1132
    args.write(self._oprot)
1133
    self._oprot.writeMessageEnd()
1134
    self._oprot.trans.flush()
1135
 
1136
  def recv_updatePassword(self, ):
1137
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1138
    if mtype == TMessageType.EXCEPTION:
1139
      x = TApplicationException()
1140
      x.read(self._iprot)
1141
      self._iprot.readMessageEnd()
1142
      raise x
1143
    result = updatePassword_result()
1144
    result.read(self._iprot)
1145
    self._iprot.readMessageEnd()
3431 rajveer 1146
    if result.success is not None:
94 ashish 1147
      return result.success
3431 rajveer 1148
    if result.ucx is not None:
94 ashish 1149
      raise result.ucx
1150
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1151
 
884 rajveer 1152
  def forgotPassword(self, email, newPassword):
581 rajveer 1153
    """
1154
    Parameters:
1155
     - email
884 rajveer 1156
     - newPassword
581 rajveer 1157
    """
884 rajveer 1158
    self.send_forgotPassword(email, newPassword)
581 rajveer 1159
    return self.recv_forgotPassword()
1160
 
884 rajveer 1161
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1162
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1163
    args = forgotPassword_args()
1164
    args.email = email
884 rajveer 1165
    args.newPassword = newPassword
581 rajveer 1166
    args.write(self._oprot)
1167
    self._oprot.writeMessageEnd()
1168
    self._oprot.trans.flush()
1169
 
1170
  def recv_forgotPassword(self, ):
1171
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1172
    if mtype == TMessageType.EXCEPTION:
1173
      x = TApplicationException()
1174
      x.read(self._iprot)
1175
      self._iprot.readMessageEnd()
1176
      raise x
1177
    result = forgotPassword_result()
1178
    result.read(self._iprot)
1179
    self._iprot.readMessageEnd()
3431 rajveer 1180
    if result.success is not None:
581 rajveer 1181
      return result.success
3431 rajveer 1182
    if result.ucx is not None:
581 rajveer 1183
      raise result.ucx
1184
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1185
 
594 rajveer 1186
  def getAllAddressesForUser(self, userId):
1187
    """
1188
    Parameters:
1189
     - userId
1190
    """
1191
    self.send_getAllAddressesForUser(userId)
1192
    return self.recv_getAllAddressesForUser()
1193
 
1194
  def send_getAllAddressesForUser(self, userId):
1195
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1196
    args = getAllAddressesForUser_args()
1197
    args.userId = userId
1198
    args.write(self._oprot)
1199
    self._oprot.writeMessageEnd()
1200
    self._oprot.trans.flush()
1201
 
1202
  def recv_getAllAddressesForUser(self, ):
1203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1204
    if mtype == TMessageType.EXCEPTION:
1205
      x = TApplicationException()
1206
      x.read(self._iprot)
1207
      self._iprot.readMessageEnd()
1208
      raise x
1209
    result = getAllAddressesForUser_result()
1210
    result.read(self._iprot)
1211
    self._iprot.readMessageEnd()
3431 rajveer 1212
    if result.success is not None:
594 rajveer 1213
      return result.success
3431 rajveer 1214
    if result.ucx is not None:
594 rajveer 1215
      raise result.ucx
1216
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1217
 
1894 vikas 1218
  def getAddressById(self, addressId):
1219
    """
1220
    Parameters:
1221
     - addressId
1222
    """
1223
    self.send_getAddressById(addressId)
1224
    return self.recv_getAddressById()
1225
 
1226
  def send_getAddressById(self, addressId):
1227
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1228
    args = getAddressById_args()
1229
    args.addressId = addressId
1230
    args.write(self._oprot)
1231
    self._oprot.writeMessageEnd()
1232
    self._oprot.trans.flush()
1233
 
1234
  def recv_getAddressById(self, ):
1235
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1236
    if mtype == TMessageType.EXCEPTION:
1237
      x = TApplicationException()
1238
      x.read(self._iprot)
1239
      self._iprot.readMessageEnd()
1240
      raise x
1241
    result = getAddressById_result()
1242
    result.read(self._iprot)
1243
    self._iprot.readMessageEnd()
3431 rajveer 1244
    if result.success is not None:
1894 vikas 1245
      return result.success
3431 rajveer 1246
    if result.ucx is not None:
1894 vikas 1247
      raise result.ucx
1248
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1249
 
594 rajveer 1250
  def getDefaultAddressId(self, userId):
1251
    """
1252
    Parameters:
1253
     - userId
1254
    """
1255
    self.send_getDefaultAddressId(userId)
1256
    return self.recv_getDefaultAddressId()
1257
 
1258
  def send_getDefaultAddressId(self, userId):
1259
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1260
    args = getDefaultAddressId_args()
1261
    args.userId = userId
1262
    args.write(self._oprot)
1263
    self._oprot.writeMessageEnd()
1264
    self._oprot.trans.flush()
1265
 
1266
  def recv_getDefaultAddressId(self, ):
1267
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1268
    if mtype == TMessageType.EXCEPTION:
1269
      x = TApplicationException()
1270
      x.read(self._iprot)
1271
      self._iprot.readMessageEnd()
1272
      raise x
1273
    result = getDefaultAddressId_result()
1274
    result.read(self._iprot)
1275
    self._iprot.readMessageEnd()
3431 rajveer 1276
    if result.success is not None:
594 rajveer 1277
      return result.success
3431 rajveer 1278
    if result.ucx is not None:
594 rajveer 1279
      raise result.ucx
1280
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1281
 
785 rajveer 1282
  def getDefaultPincode(self, userId):
1283
    """
1284
    Parameters:
1285
     - userId
1286
    """
1287
    self.send_getDefaultPincode(userId)
1288
    return self.recv_getDefaultPincode()
1289
 
1290
  def send_getDefaultPincode(self, userId):
1291
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1292
    args = getDefaultPincode_args()
1293
    args.userId = userId
1294
    args.write(self._oprot)
1295
    self._oprot.writeMessageEnd()
1296
    self._oprot.trans.flush()
1297
 
1298
  def recv_getDefaultPincode(self, ):
1299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1300
    if mtype == TMessageType.EXCEPTION:
1301
      x = TApplicationException()
1302
      x.read(self._iprot)
1303
      self._iprot.readMessageEnd()
1304
      raise x
1305
    result = getDefaultPincode_result()
1306
    result.read(self._iprot)
1307
    self._iprot.readMessageEnd()
3431 rajveer 1308
    if result.success is not None:
785 rajveer 1309
      return result.success
3431 rajveer 1310
    if result.ucx is not None:
785 rajveer 1311
      raise result.ucx
1312
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1313
 
1274 varun.gupt 1314
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1315
    """
1316
    Parameters:
1317
     - userId
1318
     - replyTo
1319
     - communicationType
1320
     - orderId
1321
     - airwaybillNo
1322
     - productName
1323
     - subject
1324
     - message
1325
    """
1326
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1327
    return self.recv_saveUserCommunication()
1328
 
1329
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1330
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1331
    args = saveUserCommunication_args()
1332
    args.userId = userId
1333
    args.replyTo = replyTo
1334
    args.communicationType = communicationType
1335
    args.orderId = orderId
1336
    args.airwaybillNo = airwaybillNo
1337
    args.productName = productName
1338
    args.subject = subject
1339
    args.message = message
1340
    args.write(self._oprot)
1341
    self._oprot.writeMessageEnd()
1342
    self._oprot.trans.flush()
1343
 
1344
  def recv_saveUserCommunication(self, ):
1345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1346
    if mtype == TMessageType.EXCEPTION:
1347
      x = TApplicationException()
1348
      x.read(self._iprot)
1349
      self._iprot.readMessageEnd()
1350
      raise x
1351
    result = saveUserCommunication_result()
1352
    result.read(self._iprot)
1353
    self._iprot.readMessageEnd()
3431 rajveer 1354
    if result.success is not None:
1274 varun.gupt 1355
      return result.success
3431 rajveer 1356
    if result.ucx is not None:
1274 varun.gupt 1357
      raise result.ucx
1358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1359
 
1590 varun.gupt 1360
  def getUserCommunicationById(self, id):
1361
    """
1362
    Parameters:
1363
     - id
1364
    """
1365
    self.send_getUserCommunicationById(id)
1366
    return self.recv_getUserCommunicationById()
1367
 
1368
  def send_getUserCommunicationById(self, id):
1369
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1370
    args = getUserCommunicationById_args()
1371
    args.id = id
1372
    args.write(self._oprot)
1373
    self._oprot.writeMessageEnd()
1374
    self._oprot.trans.flush()
1375
 
1376
  def recv_getUserCommunicationById(self, ):
1377
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1378
    if mtype == TMessageType.EXCEPTION:
1379
      x = TApplicationException()
1380
      x.read(self._iprot)
1381
      self._iprot.readMessageEnd()
1382
      raise x
1383
    result = getUserCommunicationById_result()
1384
    result.read(self._iprot)
1385
    self._iprot.readMessageEnd()
3431 rajveer 1386
    if result.success is not None:
1590 varun.gupt 1387
      return result.success
3431 rajveer 1388
    if result.ucx is not None:
1590 varun.gupt 1389
      raise result.ucx
1390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1391
 
1392
  def getUserCommunicationByUser(self, userId):
1393
    """
1394
    Parameters:
1395
     - userId
1396
    """
1397
    self.send_getUserCommunicationByUser(userId)
1398
    return self.recv_getUserCommunicationByUser()
1399
 
1400
  def send_getUserCommunicationByUser(self, userId):
1401
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1402
    args = getUserCommunicationByUser_args()
1403
    args.userId = userId
1404
    args.write(self._oprot)
1405
    self._oprot.writeMessageEnd()
1406
    self._oprot.trans.flush()
1407
 
1408
  def recv_getUserCommunicationByUser(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 = getUserCommunicationByUser_result()
1416
    result.read(self._iprot)
1417
    self._iprot.readMessageEnd()
3431 rajveer 1418
    if result.success is not None:
1590 varun.gupt 1419
      return result.success
3431 rajveer 1420
    if result.ucx is not None:
1590 varun.gupt 1421
      raise result.ucx
1422
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1423
 
1424
  def getAllUserCommunications(self, ):
1425
    self.send_getAllUserCommunications()
1426
    return self.recv_getAllUserCommunications()
1427
 
1428
  def send_getAllUserCommunications(self, ):
1429
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1430
    args = getAllUserCommunications_args()
1431
    args.write(self._oprot)
1432
    self._oprot.writeMessageEnd()
1433
    self._oprot.trans.flush()
1434
 
1435
  def recv_getAllUserCommunications(self, ):
1436
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1437
    if mtype == TMessageType.EXCEPTION:
1438
      x = TApplicationException()
1439
      x.read(self._iprot)
1440
      self._iprot.readMessageEnd()
1441
      raise x
1442
    result = getAllUserCommunications_result()
1443
    result.read(self._iprot)
1444
    self._iprot.readMessageEnd()
3431 rajveer 1445
    if result.success is not None:
1590 varun.gupt 1446
      return result.success
3431 rajveer 1447
    if result.ucx is not None:
1590 varun.gupt 1448
      raise result.ucx
1449
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1450
 
1859 vikas 1451
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1452
    """
1453
    Parameters:
1454
     - name
1859 vikas 1455
     - addedOn
1845 vikas 1456
    """
1859 vikas 1457
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1458
    return self.recv_createMasterAffiliate()
1459
 
1859 vikas 1460
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1461
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1462
    args = createMasterAffiliate_args()
1463
    args.name = name
1859 vikas 1464
    args.addedOn = addedOn
1845 vikas 1465
    args.write(self._oprot)
1466
    self._oprot.writeMessageEnd()
1467
    self._oprot.trans.flush()
1468
 
1469
  def recv_createMasterAffiliate(self, ):
1470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1471
    if mtype == TMessageType.EXCEPTION:
1472
      x = TApplicationException()
1473
      x.read(self._iprot)
1474
      self._iprot.readMessageEnd()
1475
      raise x
1476
    result = createMasterAffiliate_result()
1477
    result.read(self._iprot)
1478
    self._iprot.readMessageEnd()
3431 rajveer 1479
    if result.success is not None:
1845 vikas 1480
      return result.success
3431 rajveer 1481
    if result.utx is not None:
1845 vikas 1482
      raise result.utx
1483
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1484
 
1899 vikas 1485
  def getAllMasterAffiliates(self, ):
1486
    self.send_getAllMasterAffiliates()
1487
    return self.recv_getAllMasterAffiliates()
1488
 
1489
  def send_getAllMasterAffiliates(self, ):
1490
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1491
    args = getAllMasterAffiliates_args()
1492
    args.write(self._oprot)
1493
    self._oprot.writeMessageEnd()
1494
    self._oprot.trans.flush()
1495
 
1496
  def recv_getAllMasterAffiliates(self, ):
1497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1498
    if mtype == TMessageType.EXCEPTION:
1499
      x = TApplicationException()
1500
      x.read(self._iprot)
1501
      self._iprot.readMessageEnd()
1502
      raise x
1503
    result = getAllMasterAffiliates_result()
1504
    result.read(self._iprot)
1505
    self._iprot.readMessageEnd()
3431 rajveer 1506
    if result.success is not None:
1899 vikas 1507
      return result.success
3431 rajveer 1508
    if result.utx is not None:
1899 vikas 1509
      raise result.utx
1510
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1511
 
1845 vikas 1512
  def getMasterAffiliateById(self, id):
1513
    """
1514
    Parameters:
1515
     - id
1516
    """
1517
    self.send_getMasterAffiliateById(id)
1518
    return self.recv_getMasterAffiliateById()
1519
 
1520
  def send_getMasterAffiliateById(self, id):
1521
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1522
    args = getMasterAffiliateById_args()
1523
    args.id = id
1524
    args.write(self._oprot)
1525
    self._oprot.writeMessageEnd()
1526
    self._oprot.trans.flush()
1527
 
1528
  def recv_getMasterAffiliateById(self, ):
1529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1530
    if mtype == TMessageType.EXCEPTION:
1531
      x = TApplicationException()
1532
      x.read(self._iprot)
1533
      self._iprot.readMessageEnd()
1534
      raise x
1535
    result = getMasterAffiliateById_result()
1536
    result.read(self._iprot)
1537
    self._iprot.readMessageEnd()
3431 rajveer 1538
    if result.success is not None:
1845 vikas 1539
      return result.success
3431 rajveer 1540
    if result.utx is not None:
1845 vikas 1541
      raise result.utx
1542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1543
 
1544
  def getMasterAffiliateByName(self, name):
1545
    """
1546
    Parameters:
1547
     - name
1548
    """
1549
    self.send_getMasterAffiliateByName(name)
1550
    return self.recv_getMasterAffiliateByName()
1551
 
1552
  def send_getMasterAffiliateByName(self, name):
1553
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1554
    args = getMasterAffiliateByName_args()
1555
    args.name = name
1556
    args.write(self._oprot)
1557
    self._oprot.writeMessageEnd()
1558
    self._oprot.trans.flush()
1559
 
1560
  def recv_getMasterAffiliateByName(self, ):
1561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1562
    if mtype == TMessageType.EXCEPTION:
1563
      x = TApplicationException()
1564
      x.read(self._iprot)
1565
      self._iprot.readMessageEnd()
1566
      raise x
1567
    result = getMasterAffiliateByName_result()
1568
    result.read(self._iprot)
1569
    self._iprot.readMessageEnd()
3431 rajveer 1570
    if result.success is not None:
1845 vikas 1571
      return result.success
3431 rajveer 1572
    if result.utx is not None:
1845 vikas 1573
      raise result.utx
1574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1575
 
1859 vikas 1576
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1577
    """
1578
    Parameters:
1579
     - name
1580
     - url
1581
     - masterAffiliateId
1859 vikas 1582
     - addedOn
1845 vikas 1583
    """
1859 vikas 1584
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1585
    return self.recv_createAffiliate()
1586
 
1859 vikas 1587
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1588
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1589
    args = createAffiliate_args()
1590
    args.name = name
1591
    args.url = url
1592
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1593
    args.addedOn = addedOn
1845 vikas 1594
    args.write(self._oprot)
1595
    self._oprot.writeMessageEnd()
1596
    self._oprot.trans.flush()
1597
 
1598
  def recv_createAffiliate(self, ):
1599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1600
    if mtype == TMessageType.EXCEPTION:
1601
      x = TApplicationException()
1602
      x.read(self._iprot)
1603
      self._iprot.readMessageEnd()
1604
      raise x
1605
    result = createAffiliate_result()
1606
    result.read(self._iprot)
1607
    self._iprot.readMessageEnd()
3431 rajveer 1608
    if result.success is not None:
1845 vikas 1609
      return result.success
3431 rajveer 1610
    if result.utx is not None:
1845 vikas 1611
      raise result.utx
1612
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1613
 
1614
  def getAffiliateById(self, id):
1615
    """
1616
    Parameters:
1617
     - id
1618
    """
1619
    self.send_getAffiliateById(id)
1620
    return self.recv_getAffiliateById()
1621
 
1622
  def send_getAffiliateById(self, id):
1623
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1624
    args = getAffiliateById_args()
1625
    args.id = id
1626
    args.write(self._oprot)
1627
    self._oprot.writeMessageEnd()
1628
    self._oprot.trans.flush()
1629
 
1630
  def recv_getAffiliateById(self, ):
1631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1632
    if mtype == TMessageType.EXCEPTION:
1633
      x = TApplicationException()
1634
      x.read(self._iprot)
1635
      self._iprot.readMessageEnd()
1636
      raise x
1637
    result = getAffiliateById_result()
1638
    result.read(self._iprot)
1639
    self._iprot.readMessageEnd()
3431 rajveer 1640
    if result.success is not None:
1845 vikas 1641
      return result.success
3431 rajveer 1642
    if result.utx is not None:
1845 vikas 1643
      raise result.utx
1644
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1645
 
1646
  def getAffiliateByName(self, name):
1647
    """
1648
    Parameters:
1649
     - name
1650
    """
1651
    self.send_getAffiliateByName(name)
1652
    return self.recv_getAffiliateByName()
1653
 
1654
  def send_getAffiliateByName(self, name):
1655
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1656
    args = getAffiliateByName_args()
1657
    args.name = name
1658
    args.write(self._oprot)
1659
    self._oprot.writeMessageEnd()
1660
    self._oprot.trans.flush()
1661
 
1662
  def recv_getAffiliateByName(self, ):
1663
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1664
    if mtype == TMessageType.EXCEPTION:
1665
      x = TApplicationException()
1666
      x.read(self._iprot)
1667
      self._iprot.readMessageEnd()
1668
      raise x
1669
    result = getAffiliateByName_result()
1670
    result.read(self._iprot)
1671
    self._iprot.readMessageEnd()
3431 rajveer 1672
    if result.success is not None:
1845 vikas 1673
      return result.success
3431 rajveer 1674
    if result.utx is not None:
1845 vikas 1675
      raise result.utx
1676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1677
 
1996 vikas 1678
  def getTrackerById(self, id):
1845 vikas 1679
    """
1680
    Parameters:
1681
     - id
1682
    """
1996 vikas 1683
    self.send_getTrackerById(id)
1845 vikas 1684
    return self.recv_getTrackerById()
1685
 
1996 vikas 1686
  def send_getTrackerById(self, id):
1845 vikas 1687
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1688
    args = getTrackerById_args()
1996 vikas 1689
    args.id = id
1845 vikas 1690
    args.write(self._oprot)
1691
    self._oprot.writeMessageEnd()
1692
    self._oprot.trans.flush()
1693
 
1694
  def recv_getTrackerById(self, ):
1695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1696
    if mtype == TMessageType.EXCEPTION:
1697
      x = TApplicationException()
1698
      x.read(self._iprot)
1699
      self._iprot.readMessageEnd()
1700
      raise x
1701
    result = getTrackerById_result()
1702
    result.read(self._iprot)
1703
    self._iprot.readMessageEnd()
3431 rajveer 1704
    if result.success is not None:
1845 vikas 1705
      return result.success
3431 rajveer 1706
    if result.utx is not None:
1845 vikas 1707
      raise result.utx
1708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1709
 
1996 vikas 1710
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1711
    """
1712
    Parameters:
1996 vikas 1713
     - id
1845 vikas 1714
    """
1996 vikas 1715
    self.send_getAffiliatesByMasterAffiliate(id)
1716
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1717
 
1996 vikas 1718
  def send_getAffiliatesByMasterAffiliate(self, id):
1719
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1720
    args = getAffiliatesByMasterAffiliate_args()
1721
    args.id = id
1845 vikas 1722
    args.write(self._oprot)
1723
    self._oprot.writeMessageEnd()
1724
    self._oprot.trans.flush()
1725
 
1996 vikas 1726
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1728
    if mtype == TMessageType.EXCEPTION:
1729
      x = TApplicationException()
1730
      x.read(self._iprot)
1731
      self._iprot.readMessageEnd()
1732
      raise x
1996 vikas 1733
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1734
    result.read(self._iprot)
1735
    self._iprot.readMessageEnd()
3431 rajveer 1736
    if result.success is not None:
1845 vikas 1737
      return result.success
3431 rajveer 1738
    if result.utx is not None:
1845 vikas 1739
      raise result.utx
1996 vikas 1740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1741
 
1996 vikas 1742
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1743
    """
1744
    Parameters:
1996 vikas 1745
     - affiliateId
1845 vikas 1746
     - userId
1747
     - event
1748
     - url
1749
     - data
1859 vikas 1750
     - addedOn
1845 vikas 1751
    """
1996 vikas 1752
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1753
    return self.recv_addTrackLog()
1754
 
1996 vikas 1755
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1756
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1757
    args = addTrackLog_args()
1996 vikas 1758
    args.affiliateId = affiliateId
1845 vikas 1759
    args.userId = userId
1760
    args.event = event
1761
    args.url = url
1762
    args.data = data
1859 vikas 1763
    args.addedOn = addedOn
1845 vikas 1764
    args.write(self._oprot)
1765
    self._oprot.writeMessageEnd()
1766
    self._oprot.trans.flush()
1767
 
1768
  def recv_addTrackLog(self, ):
1769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1770
    if mtype == TMessageType.EXCEPTION:
1771
      x = TApplicationException()
1772
      x.read(self._iprot)
1773
      self._iprot.readMessageEnd()
1774
      raise x
1775
    result = addTrackLog_result()
1776
    result.read(self._iprot)
1777
    self._iprot.readMessageEnd()
3431 rajveer 1778
    if result.success is not None:
1845 vikas 1779
      return result.success
3431 rajveer 1780
    if result.utx is not None:
1845 vikas 1781
      raise result.utx
1782
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1783
 
1784
  def getTrackLogById(self, id):
1785
    """
1786
    Parameters:
1787
     - id
1788
    """
1789
    self.send_getTrackLogById(id)
1790
    return self.recv_getTrackLogById()
1791
 
1792
  def send_getTrackLogById(self, id):
1793
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1794
    args = getTrackLogById_args()
1795
    args.id = id
1796
    args.write(self._oprot)
1797
    self._oprot.writeMessageEnd()
1798
    self._oprot.trans.flush()
1799
 
1800
  def recv_getTrackLogById(self, ):
1801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1802
    if mtype == TMessageType.EXCEPTION:
1803
      x = TApplicationException()
1804
      x.read(self._iprot)
1805
      self._iprot.readMessageEnd()
1806
      raise x
1807
    result = getTrackLogById_result()
1808
    result.read(self._iprot)
1809
    self._iprot.readMessageEnd()
3431 rajveer 1810
    if result.success is not None:
1845 vikas 1811
      return result.success
3431 rajveer 1812
    if result.utx is not None:
1845 vikas 1813
      raise result.utx
1814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1815
 
3293 vikas 1816
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1817
    """
1818
    Parameters:
1996 vikas 1819
     - affiliateId
3293 vikas 1820
     - startDate
1821
     - endDate
1845 vikas 1822
    """
3293 vikas 1823
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1824
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1825
 
3293 vikas 1826
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1827
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1828
    args = getTrackLogsByAffiliate_args()
1829
    args.affiliateId = affiliateId
3293 vikas 1830
    args.startDate = startDate
1831
    args.endDate = endDate
1845 vikas 1832
    args.write(self._oprot)
1833
    self._oprot.writeMessageEnd()
1834
    self._oprot.trans.flush()
1835
 
1996 vikas 1836
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1838
    if mtype == TMessageType.EXCEPTION:
1839
      x = TApplicationException()
1840
      x.read(self._iprot)
1841
      self._iprot.readMessageEnd()
1842
      raise x
1996 vikas 1843
    result = getTrackLogsByAffiliate_result()
1845 vikas 1844
    result.read(self._iprot)
1845
    self._iprot.readMessageEnd()
3431 rajveer 1846
    if result.success is not None:
1845 vikas 1847
      return result.success
3431 rajveer 1848
    if result.utx is not None:
1845 vikas 1849
      raise result.utx
1996 vikas 1850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1851
 
1852
  def getTrackLogsByUser(self, userId):
1853
    """
1854
    Parameters:
1855
     - userId
1856
    """
1857
    self.send_getTrackLogsByUser(userId)
1858
    return self.recv_getTrackLogsByUser()
1859
 
1860
  def send_getTrackLogsByUser(self, userId):
1861
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1862
    args = getTrackLogsByUser_args()
1863
    args.userId = userId
1864
    args.write(self._oprot)
1865
    self._oprot.writeMessageEnd()
1866
    self._oprot.trans.flush()
1867
 
1868
  def recv_getTrackLogsByUser(self, ):
1869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1870
    if mtype == TMessageType.EXCEPTION:
1871
      x = TApplicationException()
1872
      x.read(self._iprot)
1873
      self._iprot.readMessageEnd()
1874
      raise x
1875
    result = getTrackLogsByUser_result()
1876
    result.read(self._iprot)
1877
    self._iprot.readMessageEnd()
3431 rajveer 1878
    if result.success is not None:
1845 vikas 1879
      return result.success
3431 rajveer 1880
    if result.utx is not None:
1845 vikas 1881
      raise result.utx
1882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1883
 
1996 vikas 1884
  def getTrackLogs(self, userId, event, url):
1845 vikas 1885
    """
1886
    Parameters:
1887
     - userId
1888
     - event
1889
     - url
1890
    """
1996 vikas 1891
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1892
    return self.recv_getTrackLogs()
1893
 
1996 vikas 1894
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1895
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1896
    args = getTrackLogs_args()
1897
    args.userId = userId
1898
    args.event = event
1899
    args.url = url
1900
    args.write(self._oprot)
1901
    self._oprot.writeMessageEnd()
1902
    self._oprot.trans.flush()
1903
 
1904
  def recv_getTrackLogs(self, ):
1905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1906
    if mtype == TMessageType.EXCEPTION:
1907
      x = TApplicationException()
1908
      x.read(self._iprot)
1909
      self._iprot.readMessageEnd()
1910
      raise x
1911
    result = getTrackLogs_result()
1912
    result.read(self._iprot)
1913
    self._iprot.readMessageEnd()
3431 rajveer 1914
    if result.success is not None:
1845 vikas 1915
      return result.success
3431 rajveer 1916
    if result.utx is not None:
1845 vikas 1917
      raise result.utx
1918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1919
 
559 chandransh 1920
  def createCart(self, userId):
94 ashish 1921
    """
1922
    Parameters:
559 chandransh 1923
     - userId
94 ashish 1924
    """
559 chandransh 1925
    self.send_createCart(userId)
1926
    return self.recv_createCart()
94 ashish 1927
 
559 chandransh 1928
  def send_createCart(self, userId):
1929
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1930
    args = createCart_args()
1931
    args.userId = userId
94 ashish 1932
    args.write(self._oprot)
1933
    self._oprot.writeMessageEnd()
1934
    self._oprot.trans.flush()
1935
 
559 chandransh 1936
  def recv_createCart(self, ):
94 ashish 1937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1938
    if mtype == TMessageType.EXCEPTION:
1939
      x = TApplicationException()
1940
      x.read(self._iprot)
1941
      self._iprot.readMessageEnd()
1942
      raise x
559 chandransh 1943
    result = createCart_result()
94 ashish 1944
    result.read(self._iprot)
1945
    self._iprot.readMessageEnd()
3431 rajveer 1946
    if result.success is not None:
94 ashish 1947
      return result.success
3431 rajveer 1948
    if result.scx is not None:
559 chandransh 1949
      raise result.scx
1950
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1951
 
559 chandransh 1952
  def getCurrentCart(self, userId):
94 ashish 1953
    """
1954
    Parameters:
559 chandransh 1955
     - userId
94 ashish 1956
    """
559 chandransh 1957
    self.send_getCurrentCart(userId)
1958
    return self.recv_getCurrentCart()
94 ashish 1959
 
559 chandransh 1960
  def send_getCurrentCart(self, userId):
1961
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1962
    args = getCurrentCart_args()
1963
    args.userId = userId
94 ashish 1964
    args.write(self._oprot)
1965
    self._oprot.writeMessageEnd()
1966
    self._oprot.trans.flush()
1967
 
559 chandransh 1968
  def recv_getCurrentCart(self, ):
94 ashish 1969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1970
    if mtype == TMessageType.EXCEPTION:
1971
      x = TApplicationException()
1972
      x.read(self._iprot)
1973
      self._iprot.readMessageEnd()
1974
      raise x
559 chandransh 1975
    result = getCurrentCart_result()
94 ashish 1976
    result.read(self._iprot)
1977
    self._iprot.readMessageEnd()
3431 rajveer 1978
    if result.success is not None:
94 ashish 1979
      return result.success
3431 rajveer 1980
    if result.scx is not None:
559 chandransh 1981
      raise result.scx
1982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1983
 
559 chandransh 1984
  def getCart(self, cartId):
94 ashish 1985
    """
1986
    Parameters:
559 chandransh 1987
     - cartId
94 ashish 1988
    """
559 chandransh 1989
    self.send_getCart(cartId)
1990
    return self.recv_getCart()
94 ashish 1991
 
559 chandransh 1992
  def send_getCart(self, cartId):
1993
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1994
    args = getCart_args()
1995
    args.cartId = cartId
94 ashish 1996
    args.write(self._oprot)
1997
    self._oprot.writeMessageEnd()
1998
    self._oprot.trans.flush()
1999
 
559 chandransh 2000
  def recv_getCart(self, ):
94 ashish 2001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2002
    if mtype == TMessageType.EXCEPTION:
2003
      x = TApplicationException()
2004
      x.read(self._iprot)
2005
      self._iprot.readMessageEnd()
2006
      raise x
559 chandransh 2007
    result = getCart_result()
94 ashish 2008
    result.read(self._iprot)
2009
    self._iprot.readMessageEnd()
3431 rajveer 2010
    if result.success is not None:
94 ashish 2011
      return result.success
3431 rajveer 2012
    if result.scx is not None:
559 chandransh 2013
      raise result.scx
2014
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2015
 
559 chandransh 2016
  def getCartsForUser(self, userId, status):
94 ashish 2017
    """
2018
    Parameters:
559 chandransh 2019
     - userId
2020
     - status
94 ashish 2021
    """
559 chandransh 2022
    self.send_getCartsForUser(userId, status)
2023
    return self.recv_getCartsForUser()
94 ashish 2024
 
559 chandransh 2025
  def send_getCartsForUser(self, userId, status):
2026
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
2027
    args = getCartsForUser_args()
2028
    args.userId = userId
2029
    args.status = status
94 ashish 2030
    args.write(self._oprot)
2031
    self._oprot.writeMessageEnd()
2032
    self._oprot.trans.flush()
2033
 
559 chandransh 2034
  def recv_getCartsForUser(self, ):
94 ashish 2035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2036
    if mtype == TMessageType.EXCEPTION:
2037
      x = TApplicationException()
2038
      x.read(self._iprot)
2039
      self._iprot.readMessageEnd()
2040
      raise x
559 chandransh 2041
    result = getCartsForUser_result()
94 ashish 2042
    result.read(self._iprot)
2043
    self._iprot.readMessageEnd()
3431 rajveer 2044
    if result.success is not None:
94 ashish 2045
      return result.success
3431 rajveer 2046
    if result.scx is not None:
559 chandransh 2047
      raise result.scx
2048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2049
 
559 chandransh 2050
  def getCartsByStatus(self, status):
94 ashish 2051
    """
2052
    Parameters:
559 chandransh 2053
     - status
94 ashish 2054
    """
559 chandransh 2055
    self.send_getCartsByStatus(status)
2056
    return self.recv_getCartsByStatus()
94 ashish 2057
 
559 chandransh 2058
  def send_getCartsByStatus(self, status):
2059
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2060
    args = getCartsByStatus_args()
2061
    args.status = status
94 ashish 2062
    args.write(self._oprot)
2063
    self._oprot.writeMessageEnd()
2064
    self._oprot.trans.flush()
2065
 
559 chandransh 2066
  def recv_getCartsByStatus(self, ):
94 ashish 2067
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2068
    if mtype == TMessageType.EXCEPTION:
2069
      x = TApplicationException()
2070
      x.read(self._iprot)
2071
      self._iprot.readMessageEnd()
2072
      raise x
559 chandransh 2073
    result = getCartsByStatus_result()
94 ashish 2074
    result.read(self._iprot)
2075
    self._iprot.readMessageEnd()
3431 rajveer 2076
    if result.success is not None:
94 ashish 2077
      return result.success
3431 rajveer 2078
    if result.scx is not None:
559 chandransh 2079
      raise result.scx
2080
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2081
 
559 chandransh 2082
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2083
    """
2084
    Parameters:
559 chandransh 2085
     - from_time
2086
     - to_time
2087
     - status
94 ashish 2088
    """
559 chandransh 2089
    self.send_getCartsByTime(from_time, to_time, status)
2090
    return self.recv_getCartsByTime()
94 ashish 2091
 
559 chandransh 2092
  def send_getCartsByTime(self, from_time, to_time, status):
2093
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2094
    args = getCartsByTime_args()
2095
    args.from_time = from_time
2096
    args.to_time = to_time
2097
    args.status = status
94 ashish 2098
    args.write(self._oprot)
2099
    self._oprot.writeMessageEnd()
2100
    self._oprot.trans.flush()
2101
 
559 chandransh 2102
  def recv_getCartsByTime(self, ):
94 ashish 2103
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2104
    if mtype == TMessageType.EXCEPTION:
2105
      x = TApplicationException()
2106
      x.read(self._iprot)
2107
      self._iprot.readMessageEnd()
2108
      raise x
559 chandransh 2109
    result = getCartsByTime_result()
94 ashish 2110
    result.read(self._iprot)
2111
    self._iprot.readMessageEnd()
3431 rajveer 2112
    if result.success is not None:
94 ashish 2113
      return result.success
3431 rajveer 2114
    if result.scx is not None:
559 chandransh 2115
      raise result.scx
2116
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2117
 
559 chandransh 2118
  def changeCartStatus(self, cartId, status):
130 ashish 2119
    """
2120
    Parameters:
559 chandransh 2121
     - cartId
2122
     - status
130 ashish 2123
    """
559 chandransh 2124
    self.send_changeCartStatus(cartId, status)
2125
    self.recv_changeCartStatus()
94 ashish 2126
 
559 chandransh 2127
  def send_changeCartStatus(self, cartId, status):
2128
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2129
    args = changeCartStatus_args()
2130
    args.cartId = cartId
2131
    args.status = status
130 ashish 2132
    args.write(self._oprot)
2133
    self._oprot.writeMessageEnd()
2134
    self._oprot.trans.flush()
2135
 
559 chandransh 2136
  def recv_changeCartStatus(self, ):
130 ashish 2137
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2138
    if mtype == TMessageType.EXCEPTION:
2139
      x = TApplicationException()
2140
      x.read(self._iprot)
2141
      self._iprot.readMessageEnd()
2142
      raise x
559 chandransh 2143
    result = changeCartStatus_result()
130 ashish 2144
    result.read(self._iprot)
2145
    self._iprot.readMessageEnd()
3431 rajveer 2146
    if result.scx is not None:
559 chandransh 2147
      raise result.scx
2148
    return
2149
 
2150
  def addItemToCart(self, cartId, itemId, quantity):
2151
    """
2152
    Parameters:
2153
     - cartId
2154
     - itemId
2155
     - quantity
2156
    """
2157
    self.send_addItemToCart(cartId, itemId, quantity)
2035 rajveer 2158
    return self.recv_addItemToCart()
559 chandransh 2159
 
2160
  def send_addItemToCart(self, cartId, itemId, quantity):
2161
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2162
    args = addItemToCart_args()
2163
    args.cartId = cartId
2164
    args.itemId = itemId
2165
    args.quantity = quantity
2166
    args.write(self._oprot)
2167
    self._oprot.writeMessageEnd()
2168
    self._oprot.trans.flush()
2169
 
2170
  def recv_addItemToCart(self, ):
2171
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2172
    if mtype == TMessageType.EXCEPTION:
2173
      x = TApplicationException()
2174
      x.read(self._iprot)
2175
      self._iprot.readMessageEnd()
2176
      raise x
2177
    result = addItemToCart_result()
2178
    result.read(self._iprot)
2179
    self._iprot.readMessageEnd()
3431 rajveer 2180
    if result.success is not None:
2035 rajveer 2181
      return result.success
3431 rajveer 2182
    if result.scx is not None:
559 chandransh 2183
      raise result.scx
2035 rajveer 2184
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2185
 
2186
  def deleteItemFromCart(self, cartId, itemId):
2187
    """
2188
    Parameters:
2189
     - cartId
2190
     - itemId
2191
    """
2192
    self.send_deleteItemFromCart(cartId, itemId)
2193
    self.recv_deleteItemFromCart()
2194
 
2195
  def send_deleteItemFromCart(self, cartId, itemId):
2196
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2197
    args = deleteItemFromCart_args()
2198
    args.cartId = cartId
2199
    args.itemId = itemId
2200
    args.write(self._oprot)
2201
    self._oprot.writeMessageEnd()
2202
    self._oprot.trans.flush()
2203
 
2204
  def recv_deleteItemFromCart(self, ):
2205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2206
    if mtype == TMessageType.EXCEPTION:
2207
      x = TApplicationException()
2208
      x.read(self._iprot)
2209
      self._iprot.readMessageEnd()
2210
      raise x
2211
    result = deleteItemFromCart_result()
2212
    result.read(self._iprot)
2213
    self._iprot.readMessageEnd()
3431 rajveer 2214
    if result.scx is not None:
559 chandransh 2215
      raise result.scx
2216
    return
2217
 
2218
  def changeQuantity(self, cartId, itemId, quantity):
2219
    """
2220
    Parameters:
2221
     - cartId
2222
     - itemId
2223
     - quantity
2224
    """
2225
    self.send_changeQuantity(cartId, itemId, quantity)
2226
    self.recv_changeQuantity()
2227
 
2228
  def send_changeQuantity(self, cartId, itemId, quantity):
2229
    self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
2230
    args = changeQuantity_args()
2231
    args.cartId = cartId
2232
    args.itemId = itemId
2233
    args.quantity = quantity
2234
    args.write(self._oprot)
2235
    self._oprot.writeMessageEnd()
2236
    self._oprot.trans.flush()
2237
 
2238
  def recv_changeQuantity(self, ):
2239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2240
    if mtype == TMessageType.EXCEPTION:
2241
      x = TApplicationException()
2242
      x.read(self._iprot)
2243
      self._iprot.readMessageEnd()
2244
      raise x
2245
    result = changeQuantity_result()
2246
    result.read(self._iprot)
2247
    self._iprot.readMessageEnd()
3431 rajveer 2248
    if result.scx is not None:
559 chandransh 2249
      raise result.scx
2250
    return
2251
 
2252
  def changeItemStatus(self, cartId, itemId, status):
2253
    """
2254
    Parameters:
2255
     - cartId
2256
     - itemId
2257
     - status
2258
    """
2259
    self.send_changeItemStatus(cartId, itemId, status)
2260
    self.recv_changeItemStatus()
2261
 
2262
  def send_changeItemStatus(self, cartId, itemId, status):
2263
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2264
    args = changeItemStatus_args()
2265
    args.cartId = cartId
2266
    args.itemId = itemId
2267
    args.status = status
2268
    args.write(self._oprot)
2269
    self._oprot.writeMessageEnd()
2270
    self._oprot.trans.flush()
2271
 
2272
  def recv_changeItemStatus(self, ):
2273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2274
    if mtype == TMessageType.EXCEPTION:
2275
      x = TApplicationException()
2276
      x.read(self._iprot)
2277
      self._iprot.readMessageEnd()
2278
      raise x
2279
    result = changeItemStatus_result()
2280
    result.read(self._iprot)
2281
    self._iprot.readMessageEnd()
3431 rajveer 2282
    if result.scx is not None:
559 chandransh 2283
      raise result.scx
2284
    return
2285
 
2286
  def addAddressToCart(self, cartId, addressId):
2287
    """
2288
    Parameters:
2289
     - cartId
2290
     - addressId
2291
    """
2292
    self.send_addAddressToCart(cartId, addressId)
2293
    self.recv_addAddressToCart()
2294
 
2295
  def send_addAddressToCart(self, cartId, addressId):
2296
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2297
    args = addAddressToCart_args()
2298
    args.cartId = cartId
2299
    args.addressId = addressId
2300
    args.write(self._oprot)
2301
    self._oprot.writeMessageEnd()
2302
    self._oprot.trans.flush()
2303
 
2304
  def recv_addAddressToCart(self, ):
2305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2306
    if mtype == TMessageType.EXCEPTION:
2307
      x = TApplicationException()
2308
      x.read(self._iprot)
2309
      self._iprot.readMessageEnd()
2310
      raise x
2311
    result = addAddressToCart_result()
2312
    result.read(self._iprot)
2313
    self._iprot.readMessageEnd()
3431 rajveer 2314
    if result.scx is not None:
575 chandransh 2315
      raise result.scx
559 chandransh 2316
    return
2317
 
1976 varun.gupt 2318
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2319
    """
2320
    Parameters:
2321
     - cartId
2322
     - couponCode
2323
     - totalPrice
2324
     - discountedPrice
2325
    """
2326
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2327
    self.recv_applyCouponToCart()
2328
 
2329
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2330
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2331
    args = applyCouponToCart_args()
2332
    args.cartId = cartId
2333
    args.couponCode = couponCode
2334
    args.totalPrice = totalPrice
2335
    args.discountedPrice = discountedPrice
2336
    args.write(self._oprot)
2337
    self._oprot.writeMessageEnd()
2338
    self._oprot.trans.flush()
2339
 
2340
  def recv_applyCouponToCart(self, ):
2341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2342
    if mtype == TMessageType.EXCEPTION:
2343
      x = TApplicationException()
2344
      x.read(self._iprot)
2345
      self._iprot.readMessageEnd()
2346
      raise x
2347
    result = applyCouponToCart_result()
2348
    result.read(self._iprot)
2349
    self._iprot.readMessageEnd()
3431 rajveer 2350
    if result.scx is not None:
1976 varun.gupt 2351
      raise result.scx
2352
    return
2353
 
2354
  def removeCoupon(self, cartId):
2355
    """
2356
    Parameters:
2357
     - cartId
2358
    """
2359
    self.send_removeCoupon(cartId)
2360
    self.recv_removeCoupon()
2361
 
2362
  def send_removeCoupon(self, cartId):
2363
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2364
    args = removeCoupon_args()
2365
    args.cartId = cartId
2366
    args.write(self._oprot)
2367
    self._oprot.writeMessageEnd()
2368
    self._oprot.trans.flush()
2369
 
2370
  def recv_removeCoupon(self, ):
2371
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2372
    if mtype == TMessageType.EXCEPTION:
2373
      x = TApplicationException()
2374
      x.read(self._iprot)
2375
      self._iprot.readMessageEnd()
2376
      raise x
2377
    result = removeCoupon_result()
2378
    result.read(self._iprot)
2379
    self._iprot.readMessageEnd()
3431 rajveer 2380
    if result.scx is not None:
1976 varun.gupt 2381
      raise result.scx
2382
    return
2383
 
3554 varun.gupt 2384
  def deleteDiscountsFromCart(self, cartId):
2385
    """
2386
    Deletes all the discounts associated with the cart
2387
 
2388
    Parameters:
2389
     - cartId
2390
    """
2391
    self.send_deleteDiscountsFromCart(cartId)
2392
    self.recv_deleteDiscountsFromCart()
2393
 
2394
  def send_deleteDiscountsFromCart(self, cartId):
2395
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2396
    args = deleteDiscountsFromCart_args()
2397
    args.cartId = cartId
2398
    args.write(self._oprot)
2399
    self._oprot.writeMessageEnd()
2400
    self._oprot.trans.flush()
2401
 
2402
  def recv_deleteDiscountsFromCart(self, ):
2403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2404
    if mtype == TMessageType.EXCEPTION:
2405
      x = TApplicationException()
2406
      x.read(self._iprot)
2407
      self._iprot.readMessageEnd()
2408
      raise x
2409
    result = deleteDiscountsFromCart_result()
2410
    result.read(self._iprot)
2411
    self._iprot.readMessageEnd()
2412
    if result.scx is not None:
2413
      raise result.scx
2414
    return
2415
 
2416
  def saveDiscounts(self, discounts):
2417
    """
2418
    Accepts a list of thrift objects of Discount type and saves them
2419
 
2420
    Parameters:
2421
     - discounts
2422
    """
2423
    self.send_saveDiscounts(discounts)
2424
    self.recv_saveDiscounts()
2425
 
2426
  def send_saveDiscounts(self, discounts):
2427
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2428
    args = saveDiscounts_args()
2429
    args.discounts = discounts
2430
    args.write(self._oprot)
2431
    self._oprot.writeMessageEnd()
2432
    self._oprot.trans.flush()
2433
 
2434
  def recv_saveDiscounts(self, ):
2435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2436
    if mtype == TMessageType.EXCEPTION:
2437
      x = TApplicationException()
2438
      x.read(self._iprot)
2439
      self._iprot.readMessageEnd()
2440
      raise x
2441
    result = saveDiscounts_result()
2442
    result.read(self._iprot)
2443
    self._iprot.readMessageEnd()
2444
    if result.scx is not None:
2445
      raise result.scx
2446
    return
2447
 
2815 vikas 2448
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 2449
    """
690 chandransh 2450
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2451
 
559 chandransh 2452
    Parameters:
2453
     - cartId
2815 vikas 2454
     - sessionSource
2455
     - sessionStartTime
559 chandransh 2456
    """
2815 vikas 2457
    self.send_createOrders(cartId, sessionSource, sessionStartTime)
690 chandransh 2458
    return self.recv_createOrders()
559 chandransh 2459
 
2815 vikas 2460
  def send_createOrders(self, cartId, sessionSource, sessionStartTime):
690 chandransh 2461
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2462
    args = createOrders_args()
559 chandransh 2463
    args.cartId = cartId
2815 vikas 2464
    args.sessionSource = sessionSource
2465
    args.sessionStartTime = sessionStartTime
559 chandransh 2466
    args.write(self._oprot)
2467
    self._oprot.writeMessageEnd()
2468
    self._oprot.trans.flush()
2469
 
690 chandransh 2470
  def recv_createOrders(self, ):
559 chandransh 2471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2472
    if mtype == TMessageType.EXCEPTION:
2473
      x = TApplicationException()
2474
      x.read(self._iprot)
2475
      self._iprot.readMessageEnd()
2476
      raise x
690 chandransh 2477
    result = createOrders_result()
559 chandransh 2478
    result.read(self._iprot)
2479
    self._iprot.readMessageEnd()
3431 rajveer 2480
    if result.success is not None:
130 ashish 2481
      return result.success
3431 rajveer 2482
    if result.scx is not None:
559 chandransh 2483
      raise result.scx
690 chandransh 2484
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2485
 
559 chandransh 2486
  def validateCart(self, cartId):
130 ashish 2487
    """
690 chandransh 2488
    Validates that:
2489
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2490
    2. All of the lines in the cart are active items.
690 chandransh 2491
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2492
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2493
 
130 ashish 2494
    Parameters:
559 chandransh 2495
     - cartId
130 ashish 2496
    """
559 chandransh 2497
    self.send_validateCart(cartId)
2498
    return self.recv_validateCart()
130 ashish 2499
 
559 chandransh 2500
  def send_validateCart(self, cartId):
2501
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2502
    args = validateCart_args()
2503
    args.cartId = cartId
130 ashish 2504
    args.write(self._oprot)
2505
    self._oprot.writeMessageEnd()
2506
    self._oprot.trans.flush()
2507
 
559 chandransh 2508
  def recv_validateCart(self, ):
130 ashish 2509
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2510
    if mtype == TMessageType.EXCEPTION:
2511
      x = TApplicationException()
2512
      x.read(self._iprot)
2513
      self._iprot.readMessageEnd()
2514
      raise x
559 chandransh 2515
    result = validateCart_result()
130 ashish 2516
    result.read(self._iprot)
2517
    self._iprot.readMessageEnd()
3431 rajveer 2518
    if result.success is not None:
130 ashish 2519
      return result.success
3431 rajveer 2520
    if result.scex is not None:
575 chandransh 2521
      raise result.scex
559 chandransh 2522
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2523
 
690 chandransh 2524
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2525
    """
690 chandransh 2526
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2527
 
575 chandransh 2528
    Parameters:
690 chandransh 2529
     - fromCartId
2530
     - toCartId
2531
    """
2532
    self.send_mergeCart(fromCartId, toCartId)
2533
    self.recv_mergeCart()
2534
 
2535
  def send_mergeCart(self, fromCartId, toCartId):
2536
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2537
    args = mergeCart_args()
2538
    args.fromCartId = fromCartId
2539
    args.toCartId = toCartId
2540
    args.write(self._oprot)
2541
    self._oprot.writeMessageEnd()
2542
    self._oprot.trans.flush()
2543
 
2544
  def recv_mergeCart(self, ):
2545
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2546
    if mtype == TMessageType.EXCEPTION:
2547
      x = TApplicationException()
2548
      x.read(self._iprot)
2549
      self._iprot.readMessageEnd()
2550
      raise x
2551
    result = mergeCart_result()
2552
    result.read(self._iprot)
2553
    self._iprot.readMessageEnd()
2554
    return
2555
 
2556
  def checkOut(self, cartId):
2557
    """
2558
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2559
 
690 chandransh 2560
    Parameters:
575 chandransh 2561
     - cartId
2562
    """
690 chandransh 2563
    self.send_checkOut(cartId)
2564
    return self.recv_checkOut()
575 chandransh 2565
 
690 chandransh 2566
  def send_checkOut(self, cartId):
2567
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2568
    args = checkOut_args()
575 chandransh 2569
    args.cartId = cartId
2570
    args.write(self._oprot)
2571
    self._oprot.writeMessageEnd()
2572
    self._oprot.trans.flush()
2573
 
690 chandransh 2574
  def recv_checkOut(self, ):
575 chandransh 2575
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2576
    if mtype == TMessageType.EXCEPTION:
2577
      x = TApplicationException()
2578
      x.read(self._iprot)
2579
      self._iprot.readMessageEnd()
2580
      raise x
690 chandransh 2581
    result = checkOut_result()
575 chandransh 2582
    result.read(self._iprot)
2583
    self._iprot.readMessageEnd()
3431 rajveer 2584
    if result.success is not None:
575 chandransh 2585
      return result.success
3431 rajveer 2586
    if result.scex is not None:
575 chandransh 2587
      raise result.scex
690 chandransh 2588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2589
 
690 chandransh 2590
  def resetCart(self, cartId, items):
559 chandransh 2591
    """
690 chandransh 2592
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2593
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2594
 
559 chandransh 2595
    Parameters:
690 chandransh 2596
     - cartId
2597
     - items
559 chandransh 2598
    """
690 chandransh 2599
    self.send_resetCart(cartId, items)
2600
    return self.recv_resetCart()
130 ashish 2601
 
690 chandransh 2602
  def send_resetCart(self, cartId, items):
2603
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2604
    args = resetCart_args()
2605
    args.cartId = cartId
2606
    args.items = items
559 chandransh 2607
    args.write(self._oprot)
2608
    self._oprot.writeMessageEnd()
2609
    self._oprot.trans.flush()
2610
 
690 chandransh 2611
  def recv_resetCart(self, ):
559 chandransh 2612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2613
    if mtype == TMessageType.EXCEPTION:
2614
      x = TApplicationException()
2615
      x.read(self._iprot)
2616
      self._iprot.readMessageEnd()
2617
      raise x
690 chandransh 2618
    result = resetCart_result()
559 chandransh 2619
    result.read(self._iprot)
2620
    self._iprot.readMessageEnd()
3431 rajveer 2621
    if result.success is not None:
690 chandransh 2622
      return result.success
3431 rajveer 2623
    if result.scex is not None:
690 chandransh 2624
      raise result.scex
2625
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2626
 
2981 rajveer 2627
  def getUserCount(self, userType):
559 chandransh 2628
    """
2981 rajveer 2629
    Returns number of registered users.
2630
    If userType = null, then it returns count of all users, including anonymous
2631
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2632
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2633
 
559 chandransh 2634
    Parameters:
2981 rajveer 2635
     - userType
559 chandransh 2636
    """
2981 rajveer 2637
    self.send_getUserCount(userType)
2638
    return self.recv_getUserCount()
559 chandransh 2639
 
2981 rajveer 2640
  def send_getUserCount(self, userType):
2641
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2642
    args = getUserCount_args()
2643
    args.userType = userType
559 chandransh 2644
    args.write(self._oprot)
2645
    self._oprot.writeMessageEnd()
2646
    self._oprot.trans.flush()
2647
 
2981 rajveer 2648
  def recv_getUserCount(self, ):
559 chandransh 2649
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2650
    if mtype == TMessageType.EXCEPTION:
2651
      x = TApplicationException()
2652
      x.read(self._iprot)
2653
      self._iprot.readMessageEnd()
2654
      raise x
2981 rajveer 2655
    result = getUserCount_result()
559 chandransh 2656
    result.read(self._iprot)
2657
    self._iprot.readMessageEnd()
3431 rajveer 2658
    if result.success is not None:
559 chandransh 2659
      return result.success
2981 rajveer 2660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2661
 
2981 rajveer 2662
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2663
    """
2981 rajveer 2664
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2665
    If any of startDate or endDate is -1, then that filter is ignored.
2666
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2667
 
2668
 
559 chandransh 2669
    Parameters:
2981 rajveer 2670
     - userType
2671
     - startDate
2672
     - endDate
559 chandransh 2673
    """
2981 rajveer 2674
    self.send_getAllUsers(userType, startDate, endDate)
2675
    return self.recv_getAllUsers()
559 chandransh 2676
 
2981 rajveer 2677
  def send_getAllUsers(self, userType, startDate, endDate):
2678
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2679
    args = getAllUsers_args()
2680
    args.userType = userType
2681
    args.startDate = startDate
2682
    args.endDate = endDate
559 chandransh 2683
    args.write(self._oprot)
2684
    self._oprot.writeMessageEnd()
2685
    self._oprot.trans.flush()
2686
 
2981 rajveer 2687
  def recv_getAllUsers(self, ):
559 chandransh 2688
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2689
    if mtype == TMessageType.EXCEPTION:
2690
      x = TApplicationException()
2691
      x.read(self._iprot)
2692
      self._iprot.readMessageEnd()
2693
      raise x
2981 rajveer 2694
    result = getAllUsers_result()
559 chandransh 2695
    result.read(self._iprot)
2696
    self._iprot.readMessageEnd()
3431 rajveer 2697
    if result.success is not None:
559 chandransh 2698
      return result.success
2981 rajveer 2699
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2700
 
2981 rajveer 2701
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2702
    """
2703
    Parameters:
2981 rajveer 2704
     - user_id
2705
     - entity_id
2706
     - slide
2707
     - note
559 chandransh 2708
    """
2981 rajveer 2709
    self.send_putUserNote(user_id, entity_id, slide, note)
2710
    self.recv_putUserNote()
559 chandransh 2711
 
2981 rajveer 2712
  def send_putUserNote(self, user_id, entity_id, slide, note):
2713
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2714
    args = putUserNote_args()
2715
    args.user_id = user_id
2716
    args.entity_id = entity_id
2717
    args.slide = slide
2718
    args.note = note
559 chandransh 2719
    args.write(self._oprot)
2720
    self._oprot.writeMessageEnd()
2721
    self._oprot.trans.flush()
2722
 
2981 rajveer 2723
  def recv_putUserNote(self, ):
559 chandransh 2724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2725
    if mtype == TMessageType.EXCEPTION:
2726
      x = TApplicationException()
2727
      x.read(self._iprot)
2728
      self._iprot.readMessageEnd()
2729
      raise x
2981 rajveer 2730
    result = putUserNote_result()
559 chandransh 2731
    result.read(self._iprot)
2732
    self._iprot.readMessageEnd()
2733
    return
2734
 
2981 rajveer 2735
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2736
    """
2737
    Parameters:
2981 rajveer 2738
     - user_id
2739
     - entity_id
559 chandransh 2740
    """
2981 rajveer 2741
    self.send_getUserNotes(user_id, entity_id)
2742
    return self.recv_getUserNotes()
559 chandransh 2743
 
2981 rajveer 2744
  def send_getUserNotes(self, user_id, entity_id):
2745
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2746
    args = getUserNotes_args()
2747
    args.user_id = user_id
2748
    args.entity_id = entity_id
559 chandransh 2749
    args.write(self._oprot)
2750
    self._oprot.writeMessageEnd()
2751
    self._oprot.trans.flush()
2752
 
2981 rajveer 2753
  def recv_getUserNotes(self, ):
559 chandransh 2754
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2755
    if mtype == TMessageType.EXCEPTION:
2756
      x = TApplicationException()
2757
      x.read(self._iprot)
2758
      self._iprot.readMessageEnd()
2759
      raise x
2981 rajveer 2760
    result = getUserNotes_result()
559 chandransh 2761
    result.read(self._iprot)
2762
    self._iprot.readMessageEnd()
3431 rajveer 2763
    if result.success is not None:
2981 rajveer 2764
      return result.success
2765
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2766
 
2981 rajveer 2767
  def getMyResearchItems(self, userId):
559 chandransh 2768
    """
2981 rajveer 2769
    Returns list of item ids in myresearch for the user
3431 rajveer 2770
 
559 chandransh 2771
    Parameters:
772 rajveer 2772
     - userId
559 chandransh 2773
    """
2981 rajveer 2774
    self.send_getMyResearchItems(userId)
2775
    return self.recv_getMyResearchItems()
559 chandransh 2776
 
2981 rajveer 2777
  def send_getMyResearchItems(self, userId):
2778
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2779
    args = getMyResearchItems_args()
772 rajveer 2780
    args.userId = userId
559 chandransh 2781
    args.write(self._oprot)
2782
    self._oprot.writeMessageEnd()
2783
    self._oprot.trans.flush()
2784
 
2981 rajveer 2785
  def recv_getMyResearchItems(self, ):
559 chandransh 2786
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2787
    if mtype == TMessageType.EXCEPTION:
2788
      x = TApplicationException()
2789
      x.read(self._iprot)
2790
      self._iprot.readMessageEnd()
2791
      raise x
2981 rajveer 2792
    result = getMyResearchItems_result()
559 chandransh 2793
    result.read(self._iprot)
2794
    self._iprot.readMessageEnd()
3431 rajveer 2795
    if result.success is not None:
559 chandransh 2796
      return result.success
3431 rajveer 2797
    if result.scx is not None:
559 chandransh 2798
      raise result.scx
2981 rajveer 2799
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2800
 
2981 rajveer 2801
  def updateMyResearch(self, userId, itemId):
559 chandransh 2802
    """
2981 rajveer 2803
    add item to my research for a user
3431 rajveer 2804
 
559 chandransh 2805
    Parameters:
2981 rajveer 2806
     - userId
2807
     - itemId
559 chandransh 2808
    """
2981 rajveer 2809
    self.send_updateMyResearch(userId, itemId)
2810
    return self.recv_updateMyResearch()
559 chandransh 2811
 
2981 rajveer 2812
  def send_updateMyResearch(self, userId, itemId):
2813
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2814
    args = updateMyResearch_args()
2815
    args.userId = userId
2816
    args.itemId = itemId
559 chandransh 2817
    args.write(self._oprot)
2818
    self._oprot.writeMessageEnd()
2819
    self._oprot.trans.flush()
2820
 
2981 rajveer 2821
  def recv_updateMyResearch(self, ):
559 chandransh 2822
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2823
    if mtype == TMessageType.EXCEPTION:
2824
      x = TApplicationException()
2825
      x.read(self._iprot)
2826
      self._iprot.readMessageEnd()
2827
      raise x
2981 rajveer 2828
    result = updateMyResearch_result()
559 chandransh 2829
    result.read(self._iprot)
2830
    self._iprot.readMessageEnd()
3431 rajveer 2831
    if result.success is not None:
2981 rajveer 2832
      return result.success
3431 rajveer 2833
    if result.scx is not None:
2981 rajveer 2834
      raise result.scx
2835
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2836
 
2981 rajveer 2837
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2838
    """
2981 rajveer 2839
    delete item from my research for a user
3431 rajveer 2840
 
1596 ankur.sing 2841
    Parameters:
2981 rajveer 2842
     - userId
2843
     - itemId
1596 ankur.sing 2844
    """
2981 rajveer 2845
    self.send_deleteItemFromMyResearch(userId, itemId)
2846
    self.recv_deleteItemFromMyResearch()
559 chandransh 2847
 
2981 rajveer 2848
  def send_deleteItemFromMyResearch(self, userId, itemId):
2849
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2850
    args = deleteItemFromMyResearch_args()
2851
    args.userId = userId
2852
    args.itemId = itemId
1596 ankur.sing 2853
    args.write(self._oprot)
2854
    self._oprot.writeMessageEnd()
2855
    self._oprot.trans.flush()
2856
 
2981 rajveer 2857
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2859
    if mtype == TMessageType.EXCEPTION:
2860
      x = TApplicationException()
2861
      x.read(self._iprot)
2862
      self._iprot.readMessageEnd()
2863
      raise x
2981 rajveer 2864
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2865
    result.read(self._iprot)
2866
    self._iprot.readMessageEnd()
3431 rajveer 2867
    if result.scx is not None:
2981 rajveer 2868
      raise result.scx
2869
    return
1596 ankur.sing 2870
 
2981 rajveer 2871
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2872
    """
2981 rajveer 2873
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2874
 
1673 ankur.sing 2875
    Parameters:
2981 rajveer 2876
     - userId
1673 ankur.sing 2877
    """
2981 rajveer 2878
    self.send_getBrowseHistoryItems(userId)
2879
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2880
 
2981 rajveer 2881
  def send_getBrowseHistoryItems(self, userId):
2882
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2883
    args = getBrowseHistoryItems_args()
2884
    args.userId = userId
1673 ankur.sing 2885
    args.write(self._oprot)
2886
    self._oprot.writeMessageEnd()
2887
    self._oprot.trans.flush()
2888
 
2981 rajveer 2889
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2890
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2891
    if mtype == TMessageType.EXCEPTION:
2892
      x = TApplicationException()
2893
      x.read(self._iprot)
2894
      self._iprot.readMessageEnd()
2895
      raise x
2981 rajveer 2896
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2897
    result.read(self._iprot)
2898
    self._iprot.readMessageEnd()
3431 rajveer 2899
    if result.success is not None:
1673 ankur.sing 2900
      return result.success
3431 rajveer 2901
    if result.scx is not None:
2981 rajveer 2902
      raise result.scx
2903
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2904
 
2981 rajveer 2905
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2906
    """
2981 rajveer 2907
    add item to browse history for a user
3431 rajveer 2908
 
2642 varun.gupt 2909
    Parameters:
2981 rajveer 2910
     - userId
2911
     - itemId
2642 varun.gupt 2912
    """
2981 rajveer 2913
    self.send_updateBrowseHistory(userId, itemId)
2914
    self.recv_updateBrowseHistory()
1673 ankur.sing 2915
 
2981 rajveer 2916
  def send_updateBrowseHistory(self, userId, itemId):
2917
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2918
    args = updateBrowseHistory_args()
2919
    args.userId = userId
2920
    args.itemId = itemId
2642 varun.gupt 2921
    args.write(self._oprot)
2922
    self._oprot.writeMessageEnd()
2923
    self._oprot.trans.flush()
2924
 
2981 rajveer 2925
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2926
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2927
    if mtype == TMessageType.EXCEPTION:
2928
      x = TApplicationException()
2929
      x.read(self._iprot)
2930
      self._iprot.readMessageEnd()
2931
      raise x
2981 rajveer 2932
    result = updateBrowseHistory_result()
2642 varun.gupt 2933
    result.read(self._iprot)
2934
    self._iprot.readMessageEnd()
2935
    return
2936
 
3385 varun.gupt 2937
  def getCartsWithCouponCount(self, couponCode):
2938
    """
2939
    Returns count of Carts with given coupon applied
3431 rajveer 2940
 
3385 varun.gupt 2941
    Parameters:
2942
     - couponCode
2943
    """
2944
    self.send_getCartsWithCouponCount(couponCode)
2945
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2946
 
3385 varun.gupt 2947
  def send_getCartsWithCouponCount(self, couponCode):
2948
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2949
    args = getCartsWithCouponCount_args()
2950
    args.couponCode = couponCode
2951
    args.write(self._oprot)
2952
    self._oprot.writeMessageEnd()
2953
    self._oprot.trans.flush()
2954
 
2955
  def recv_getCartsWithCouponCount(self, ):
2956
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2957
    if mtype == TMessageType.EXCEPTION:
2958
      x = TApplicationException()
2959
      x.read(self._iprot)
2960
      self._iprot.readMessageEnd()
2961
      raise x
2962
    result = getCartsWithCouponCount_result()
2963
    result.read(self._iprot)
2964
    self._iprot.readMessageEnd()
3431 rajveer 2965
    if result.success is not None:
3385 varun.gupt 2966
      return result.success
2967
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2968
 
3499 mandeep.dh 2969
  def increaseTrustLevel(self, userId, trustLevelDelta):
2970
    """
2971
    Updates COD trust level of a user
3385 varun.gupt 2972
 
3499 mandeep.dh 2973
    Parameters:
2974
     - userId
2975
     - trustLevelDelta
2976
    """
2977
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2978
 
2979
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2980
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2981
    args = increaseTrustLevel_args()
2982
    args.userId = userId
2983
    args.trustLevelDelta = trustLevelDelta
2984
    args.write(self._oprot)
2985
    self._oprot.writeMessageEnd()
2986
    self._oprot.trans.flush()
2987
 
3376 rajveer 2988
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2989
  def __init__(self, handler):
3376 rajveer 2990
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2991
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2992
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2993
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2994
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2995
    self._processMap["createUser"] = Processor.process_createUser
2996
    self._processMap["updateUser"] = Processor.process_updateUser
2997
    self._processMap["deleteUser"] = Processor.process_deleteUser
2998
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 2999
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3000
    self._processMap["userExists"] = Processor.process_userExists
3001
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3002
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3003
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3004
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3005
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3006
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3007
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3008
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3009
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3010
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3011
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3012
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3013
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3014
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3015
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 3016
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3017
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3018
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3019
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3020
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3021
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3022
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3023
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3024
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3025
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3026
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3027
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3028
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3029
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3030
    self._processMap["createCart"] = Processor.process_createCart
3031
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3032
    self._processMap["getCart"] = Processor.process_getCart
3033
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
3034
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
3035
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3036
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
3037
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3038
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3039
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
3040
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3041
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 3042
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3043
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3044
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3045
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3046
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3047
    self._processMap["validateCart"] = Processor.process_validateCart
3048
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3049
    self._processMap["checkOut"] = Processor.process_checkOut
3050
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3051
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3052
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 3053
    self._processMap["putUserNote"] = Processor.process_putUserNote
3054
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 3055
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3056
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3057
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3058
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3059
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3060
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3061
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
94 ashish 3062
 
3063
  def process(self, iprot, oprot):
3064
    (name, type, seqid) = iprot.readMessageBegin()
3065
    if name not in self._processMap:
3066
      iprot.skip(TType.STRUCT)
3067
      iprot.readMessageEnd()
3068
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3069
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3070
      x.write(oprot)
3071
      oprot.writeMessageEnd()
3072
      oprot.trans.flush()
3073
      return
3074
    else:
3075
      self._processMap[name](self, seqid, iprot, oprot)
3076
    return True
3077
 
559 chandransh 3078
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3079
    args = createAnonymousUser_args()
94 ashish 3080
    args.read(iprot)
3081
    iprot.readMessageEnd()
559 chandransh 3082
    result = createAnonymousUser_result()
94 ashish 3083
    try:
559 chandransh 3084
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3085
    except UserContextException, ucex:
3086
      result.ucex = ucex
3087
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3088
    result.write(oprot)
3089
    oprot.writeMessageEnd()
3090
    oprot.trans.flush()
3091
 
559 chandransh 3092
  def process_getUserById(self, seqid, iprot, oprot):
3093
    args = getUserById_args()
94 ashish 3094
    args.read(iprot)
3095
    iprot.readMessageEnd()
559 chandransh 3096
    result = getUserById_result()
94 ashish 3097
    try:
559 chandransh 3098
      result.success = self._handler.getUserById(args.userId)
3099
    except UserContextException, ucex:
3100
      result.ucex = ucex
3101
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3102
    result.write(oprot)
3103
    oprot.writeMessageEnd()
3104
    oprot.trans.flush()
3105
 
1491 vikas 3106
  def process_getUserByEmail(self, seqid, iprot, oprot):
3107
    args = getUserByEmail_args()
3108
    args.read(iprot)
3109
    iprot.readMessageEnd()
3110
    result = getUserByEmail_result()
3111
    try:
3112
      result.success = self._handler.getUserByEmail(args.email)
3113
    except UserContextException, ucex:
3114
      result.ucex = ucex
3115
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3116
    result.write(oprot)
3117
    oprot.writeMessageEnd()
3118
    oprot.trans.flush()
3119
 
3032 mandeep.dh 3120
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3121
    args = getUserByMobileNumber_args()
3122
    args.read(iprot)
3123
    iprot.readMessageEnd()
3124
    result = getUserByMobileNumber_result()
3125
    try:
3126
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3127
    except UserContextException, ucex:
3128
      result.ucex = ucex
3129
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3130
    result.write(oprot)
3131
    oprot.writeMessageEnd()
3132
    oprot.trans.flush()
3133
 
559 chandransh 3134
  def process_createUser(self, seqid, iprot, oprot):
3135
    args = createUser_args()
94 ashish 3136
    args.read(iprot)
3137
    iprot.readMessageEnd()
559 chandransh 3138
    result = createUser_result()
94 ashish 3139
    try:
559 chandransh 3140
      result.success = self._handler.createUser(args.user)
3141
    except UserContextException, ucex:
3142
      result.ucex = ucex
3143
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3144
    result.write(oprot)
3145
    oprot.writeMessageEnd()
3146
    oprot.trans.flush()
3147
 
559 chandransh 3148
  def process_updateUser(self, seqid, iprot, oprot):
3149
    args = updateUser_args()
94 ashish 3150
    args.read(iprot)
3151
    iprot.readMessageEnd()
559 chandransh 3152
    result = updateUser_result()
94 ashish 3153
    try:
559 chandransh 3154
      result.success = self._handler.updateUser(args.user)
3155
    except UserContextException, ucex:
3156
      result.ucex = ucex
3157
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3158
    result.write(oprot)
3159
    oprot.writeMessageEnd()
3160
    oprot.trans.flush()
3161
 
559 chandransh 3162
  def process_deleteUser(self, seqid, iprot, oprot):
3163
    args = deleteUser_args()
94 ashish 3164
    args.read(iprot)
3165
    iprot.readMessageEnd()
559 chandransh 3166
    result = deleteUser_result()
94 ashish 3167
    try:
559 chandransh 3168
      result.success = self._handler.deleteUser(args.userId)
3169
    except UserContextException, ucex:
3170
      result.ucex = ucex
3171
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3172
    result.write(oprot)
3173
    oprot.writeMessageEnd()
3174
    oprot.trans.flush()
3175
 
559 chandransh 3176
  def process_getUserState(self, seqid, iprot, oprot):
3177
    args = getUserState_args()
94 ashish 3178
    args.read(iprot)
3179
    iprot.readMessageEnd()
559 chandransh 3180
    result = getUserState_result()
94 ashish 3181
    try:
559 chandransh 3182
      result.success = self._handler.getUserState(args.userId)
3183
    except UserContextException, ucex:
3184
      result.ucex = ucex
3185
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3186
    result.write(oprot)
3187
    oprot.writeMessageEnd()
3188
    oprot.trans.flush()
3189
 
122 ashish 3190
  def process_authenticateUser(self, seqid, iprot, oprot):
3191
    args = authenticateUser_args()
3192
    args.read(iprot)
3193
    iprot.readMessageEnd()
3194
    result = authenticateUser_result()
3195
    try:
559 chandransh 3196
      result.success = self._handler.authenticateUser(args.email, args.password)
3197
    except AuthenticationException, auex:
3198
      result.auex = auex
122 ashish 3199
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3200
    result.write(oprot)
3201
    oprot.writeMessageEnd()
3202
    oprot.trans.flush()
3203
 
94 ashish 3204
  def process_userExists(self, seqid, iprot, oprot):
3205
    args = userExists_args()
3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
3208
    result = userExists_result()
3209
    try:
3210
      result.success = self._handler.userExists(args.email)
3211
    except UserContextException, ucx:
3212
      result.ucx = ucx
3213
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
3217
 
3218
  def process_addAddressForUser(self, seqid, iprot, oprot):
3219
    args = addAddressForUser_args()
3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
3222
    result = addAddressForUser_result()
3223
    try:
567 rajveer 3224
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3225
    except UserContextException, ucx:
3226
      result.ucx = ucx
3227
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
3231
 
3232
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3233
    args = removeAddressForUser_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = removeAddressForUser_result()
3237
    try:
3238
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3239
    except UserContextException, ucx:
3240
      result.ucx = ucx
3241
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
3246
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3247
    args = setUserAsLoggedIn_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = setUserAsLoggedIn_result()
3251
    try:
3252
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3253
    except UserContextException, ucx:
3254
      result.ucx = ucx
3255
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
3260
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3261
    args = setUserAsLoggedOut_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = setUserAsLoggedOut_result()
3265
    try:
3266
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3267
    except UserContextException, ucx:
3268
      result.ucx = ucx
3269
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
504 rajveer 3274
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3275
    args = setDefaultAddress_args()
3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
3278
    result = setDefaultAddress_result()
3279
    try:
3280
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3281
    except UserContextException, ucx:
3282
      result.ucx = ucx
3283
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
94 ashish 3288
  def process_updatePassword(self, seqid, iprot, oprot):
3289
    args = updatePassword_args()
3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
3292
    result = updatePassword_result()
3293
    try:
594 rajveer 3294
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3295
    except UserContextException, ucx:
3296
      result.ucx = ucx
3297
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3298
    result.write(oprot)
3299
    oprot.writeMessageEnd()
3300
    oprot.trans.flush()
3301
 
581 rajveer 3302
  def process_forgotPassword(self, seqid, iprot, oprot):
3303
    args = forgotPassword_args()
3304
    args.read(iprot)
3305
    iprot.readMessageEnd()
3306
    result = forgotPassword_result()
3307
    try:
884 rajveer 3308
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3309
    except UserContextException, ucx:
3310
      result.ucx = ucx
3311
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3312
    result.write(oprot)
3313
    oprot.writeMessageEnd()
3314
    oprot.trans.flush()
3315
 
594 rajveer 3316
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3317
    args = getAllAddressesForUser_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = getAllAddressesForUser_result()
3321
    try:
3322
      result.success = self._handler.getAllAddressesForUser(args.userId)
3323
    except UserContextException, ucx:
3324
      result.ucx = ucx
3325
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
1894 vikas 3330
  def process_getAddressById(self, seqid, iprot, oprot):
3331
    args = getAddressById_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = getAddressById_result()
3335
    try:
3336
      result.success = self._handler.getAddressById(args.addressId)
3337
    except UserContextException, ucx:
3338
      result.ucx = ucx
3339
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
594 rajveer 3344
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3345
    args = getDefaultAddressId_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = getDefaultAddressId_result()
3349
    try:
3350
      result.success = self._handler.getDefaultAddressId(args.userId)
3351
    except UserContextException, ucx:
3352
      result.ucx = ucx
3353
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
785 rajveer 3358
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3359
    args = getDefaultPincode_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = getDefaultPincode_result()
3363
    try:
3364
      result.success = self._handler.getDefaultPincode(args.userId)
3365
    except UserContextException, ucx:
3366
      result.ucx = ucx
3367
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
1274 varun.gupt 3372
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3373
    args = saveUserCommunication_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = saveUserCommunication_result()
3377
    try:
3378
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3379
    except UserCommunicationException, ucx:
3380
      result.ucx = ucx
3381
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
1590 varun.gupt 3386
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3387
    args = getUserCommunicationById_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = getUserCommunicationById_result()
3391
    try:
3392
      result.success = self._handler.getUserCommunicationById(args.id)
3393
    except UserCommunicationException, ucx:
3394
      result.ucx = ucx
3395
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
3400
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3401
    args = getUserCommunicationByUser_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = getUserCommunicationByUser_result()
3405
    try:
3406
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3407
    except UserCommunicationException, ucx:
3408
      result.ucx = ucx
3409
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
3414
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3415
    args = getAllUserCommunications_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = getAllUserCommunications_result()
3419
    try:
3420
      result.success = self._handler.getAllUserCommunications()
3421
    except UserCommunicationException, ucx:
3422
      result.ucx = ucx
3423
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
1845 vikas 3428
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3429
    args = createMasterAffiliate_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = createMasterAffiliate_result()
3433
    try:
1859 vikas 3434
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3435
    except UserAffiliateException, utx:
1845 vikas 3436
      result.utx = utx
3437
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
1899 vikas 3442
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3443
    args = getAllMasterAffiliates_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = getAllMasterAffiliates_result()
3447
    try:
3448
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3449
    except UserAffiliateException, utx:
1899 vikas 3450
      result.utx = utx
3451
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
1845 vikas 3456
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3457
    args = getMasterAffiliateById_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = getMasterAffiliateById_result()
3461
    try:
3462
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3463
    except UserAffiliateException, utx:
1845 vikas 3464
      result.utx = utx
3465
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3466
    result.write(oprot)
3467
    oprot.writeMessageEnd()
3468
    oprot.trans.flush()
3469
 
3470
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3471
    args = getMasterAffiliateByName_args()
3472
    args.read(iprot)
3473
    iprot.readMessageEnd()
3474
    result = getMasterAffiliateByName_result()
3475
    try:
3476
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3477
    except UserAffiliateException, utx:
1845 vikas 3478
      result.utx = utx
3479
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
3484
  def process_createAffiliate(self, seqid, iprot, oprot):
3485
    args = createAffiliate_args()
3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
3488
    result = createAffiliate_result()
3489
    try:
1859 vikas 3490
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3491
    except UserAffiliateException, utx:
1845 vikas 3492
      result.utx = utx
3493
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3494
    result.write(oprot)
3495
    oprot.writeMessageEnd()
3496
    oprot.trans.flush()
3497
 
3498
  def process_getAffiliateById(self, seqid, iprot, oprot):
3499
    args = getAffiliateById_args()
3500
    args.read(iprot)
3501
    iprot.readMessageEnd()
3502
    result = getAffiliateById_result()
3503
    try:
3504
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3505
    except UserAffiliateException, utx:
1845 vikas 3506
      result.utx = utx
3507
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3508
    result.write(oprot)
3509
    oprot.writeMessageEnd()
3510
    oprot.trans.flush()
3511
 
3512
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3513
    args = getAffiliateByName_args()
3514
    args.read(iprot)
3515
    iprot.readMessageEnd()
3516
    result = getAffiliateByName_result()
3517
    try:
3518
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3519
    except UserAffiliateException, utx:
1845 vikas 3520
      result.utx = utx
3521
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3522
    result.write(oprot)
3523
    oprot.writeMessageEnd()
3524
    oprot.trans.flush()
3525
 
3526
  def process_getTrackerById(self, seqid, iprot, oprot):
3527
    args = getTrackerById_args()
3528
    args.read(iprot)
3529
    iprot.readMessageEnd()
3530
    result = getTrackerById_result()
3531
    try:
1996 vikas 3532
      result.success = self._handler.getTrackerById(args.id)
3533
    except UserAffiliateException, utx:
1845 vikas 3534
      result.utx = utx
3535
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3536
    result.write(oprot)
3537
    oprot.writeMessageEnd()
3538
    oprot.trans.flush()
3539
 
1996 vikas 3540
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3541
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3542
    args.read(iprot)
3543
    iprot.readMessageEnd()
1996 vikas 3544
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3545
    try:
1996 vikas 3546
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3547
    except UserAffiliateException, utx:
1845 vikas 3548
      result.utx = utx
1996 vikas 3549
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
3554
  def process_addTrackLog(self, seqid, iprot, oprot):
3555
    args = addTrackLog_args()
3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
3558
    result = addTrackLog_result()
3559
    try:
1996 vikas 3560
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3561
    except UserAffiliateException, utx:
1845 vikas 3562
      result.utx = utx
3563
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3564
    result.write(oprot)
3565
    oprot.writeMessageEnd()
3566
    oprot.trans.flush()
3567
 
3568
  def process_getTrackLogById(self, seqid, iprot, oprot):
3569
    args = getTrackLogById_args()
3570
    args.read(iprot)
3571
    iprot.readMessageEnd()
3572
    result = getTrackLogById_result()
3573
    try:
3574
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3575
    except UserAffiliateException, utx:
1845 vikas 3576
      result.utx = utx
3577
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3578
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
3581
 
1996 vikas 3582
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3583
    args = getTrackLogsByAffiliate_args()
1845 vikas 3584
    args.read(iprot)
3585
    iprot.readMessageEnd()
1996 vikas 3586
    result = getTrackLogsByAffiliate_result()
1845 vikas 3587
    try:
3293 vikas 3588
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3589
    except UserAffiliateException, utx:
1845 vikas 3590
      result.utx = utx
1996 vikas 3591
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3592
    result.write(oprot)
3593
    oprot.writeMessageEnd()
3594
    oprot.trans.flush()
3595
 
3596
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3597
    args = getTrackLogsByUser_args()
3598
    args.read(iprot)
3599
    iprot.readMessageEnd()
3600
    result = getTrackLogsByUser_result()
3601
    try:
3602
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3603
    except UserAffiliateException, utx:
1845 vikas 3604
      result.utx = utx
3605
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
3610
  def process_getTrackLogs(self, seqid, iprot, oprot):
3611
    args = getTrackLogs_args()
3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
3614
    result = getTrackLogs_result()
3615
    try:
1996 vikas 3616
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3617
    except UserAffiliateException, utx:
1845 vikas 3618
      result.utx = utx
3619
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3620
    result.write(oprot)
3621
    oprot.writeMessageEnd()
3622
    oprot.trans.flush()
3623
 
559 chandransh 3624
  def process_createCart(self, seqid, iprot, oprot):
3625
    args = createCart_args()
94 ashish 3626
    args.read(iprot)
3627
    iprot.readMessageEnd()
559 chandransh 3628
    result = createCart_result()
94 ashish 3629
    try:
559 chandransh 3630
      result.success = self._handler.createCart(args.userId)
3631
    except ShoppingCartException, scx:
3632
      result.scx = scx
3633
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
559 chandransh 3638
  def process_getCurrentCart(self, seqid, iprot, oprot):
3639
    args = getCurrentCart_args()
94 ashish 3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
559 chandransh 3642
    result = getCurrentCart_result()
94 ashish 3643
    try:
559 chandransh 3644
      result.success = self._handler.getCurrentCart(args.userId)
3645
    except ShoppingCartException, scx:
3646
      result.scx = scx
3647
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
559 chandransh 3652
  def process_getCart(self, seqid, iprot, oprot):
3653
    args = getCart_args()
94 ashish 3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
559 chandransh 3656
    result = getCart_result()
94 ashish 3657
    try:
559 chandransh 3658
      result.success = self._handler.getCart(args.cartId)
3659
    except ShoppingCartException, scx:
3660
      result.scx = scx
3661
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
3665
 
559 chandransh 3666
  def process_getCartsForUser(self, seqid, iprot, oprot):
3667
    args = getCartsForUser_args()
94 ashish 3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
559 chandransh 3670
    result = getCartsForUser_result()
94 ashish 3671
    try:
559 chandransh 3672
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3673
    except ShoppingCartException, scx:
3674
      result.scx = scx
3675
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
3679
 
559 chandransh 3680
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3681
    args = getCartsByStatus_args()
94 ashish 3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
559 chandransh 3684
    result = getCartsByStatus_result()
94 ashish 3685
    try:
559 chandransh 3686
      result.success = self._handler.getCartsByStatus(args.status)
3687
    except ShoppingCartException, scx:
3688
      result.scx = scx
3689
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
559 chandransh 3694
  def process_getCartsByTime(self, seqid, iprot, oprot):
3695
    args = getCartsByTime_args()
94 ashish 3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
559 chandransh 3698
    result = getCartsByTime_result()
94 ashish 3699
    try:
559 chandransh 3700
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3701
    except ShoppingCartException, scx:
3702
      result.scx = scx
3703
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
3707
 
559 chandransh 3708
  def process_changeCartStatus(self, seqid, iprot, oprot):
3709
    args = changeCartStatus_args()
130 ashish 3710
    args.read(iprot)
3711
    iprot.readMessageEnd()
559 chandransh 3712
    result = changeCartStatus_result()
130 ashish 3713
    try:
559 chandransh 3714
      self._handler.changeCartStatus(args.cartId, args.status)
3715
    except ShoppingCartException, scx:
3716
      result.scx = scx
3717
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
94 ashish 3721
 
559 chandransh 3722
  def process_addItemToCart(self, seqid, iprot, oprot):
3723
    args = addItemToCart_args()
130 ashish 3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
559 chandransh 3726
    result = addItemToCart_result()
130 ashish 3727
    try:
2035 rajveer 3728
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)
559 chandransh 3729
    except ShoppingCartException, scx:
3730
      result.scx = scx
3731
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3732
    result.write(oprot)
3733
    oprot.writeMessageEnd()
3734
    oprot.trans.flush()
3735
 
559 chandransh 3736
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3737
    args = deleteItemFromCart_args()
3738
    args.read(iprot)
3739
    iprot.readMessageEnd()
3740
    result = deleteItemFromCart_result()
3741
    try:
3742
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3743
    except ShoppingCartException, scx:
3744
      result.scx = scx
3745
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
130 ashish 3749
 
559 chandransh 3750
  def process_changeQuantity(self, seqid, iprot, oprot):
3751
    args = changeQuantity_args()
3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
3754
    result = changeQuantity_result()
3755
    try:
3756
      self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
3757
    except ShoppingCartException, scx:
3758
      result.scx = scx
3759
    oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
3764
  def process_changeItemStatus(self, seqid, iprot, oprot):
3765
    args = changeItemStatus_args()
3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
3768
    result = changeItemStatus_result()
3769
    try:
3770
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3771
    except ShoppingCartException, scx:
3772
      result.scx = scx
3773
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3774
    result.write(oprot)
3775
    oprot.writeMessageEnd()
3776
    oprot.trans.flush()
3777
 
3778
  def process_addAddressToCart(self, seqid, iprot, oprot):
3779
    args = addAddressToCart_args()
3780
    args.read(iprot)
3781
    iprot.readMessageEnd()
3782
    result = addAddressToCart_result()
575 chandransh 3783
    try:
3784
      self._handler.addAddressToCart(args.cartId, args.addressId)
3785
    except ShoppingCartException, scx:
3786
      result.scx = scx
559 chandransh 3787
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3788
    result.write(oprot)
3789
    oprot.writeMessageEnd()
3790
    oprot.trans.flush()
3791
 
1976 varun.gupt 3792
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3793
    args = applyCouponToCart_args()
3794
    args.read(iprot)
3795
    iprot.readMessageEnd()
3796
    result = applyCouponToCart_result()
3797
    try:
3798
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3799
    except ShoppingCartException, scx:
3800
      result.scx = scx
3801
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3802
    result.write(oprot)
3803
    oprot.writeMessageEnd()
3804
    oprot.trans.flush()
3805
 
3806
  def process_removeCoupon(self, seqid, iprot, oprot):
3807
    args = removeCoupon_args()
3808
    args.read(iprot)
3809
    iprot.readMessageEnd()
3810
    result = removeCoupon_result()
3811
    try:
3812
      self._handler.removeCoupon(args.cartId)
3813
    except ShoppingCartException, scx:
3814
      result.scx = scx
3815
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3816
    result.write(oprot)
3817
    oprot.writeMessageEnd()
3818
    oprot.trans.flush()
3819
 
3554 varun.gupt 3820
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3821
    args = deleteDiscountsFromCart_args()
3822
    args.read(iprot)
3823
    iprot.readMessageEnd()
3824
    result = deleteDiscountsFromCart_result()
3825
    try:
3826
      self._handler.deleteDiscountsFromCart(args.cartId)
3827
    except ShoppingCartException, scx:
3828
      result.scx = scx
3829
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3830
    result.write(oprot)
3831
    oprot.writeMessageEnd()
3832
    oprot.trans.flush()
3833
 
3834
  def process_saveDiscounts(self, seqid, iprot, oprot):
3835
    args = saveDiscounts_args()
3836
    args.read(iprot)
3837
    iprot.readMessageEnd()
3838
    result = saveDiscounts_result()
3839
    try:
3840
      self._handler.saveDiscounts(args.discounts)
3841
    except ShoppingCartException, scx:
3842
      result.scx = scx
3843
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3844
    result.write(oprot)
3845
    oprot.writeMessageEnd()
3846
    oprot.trans.flush()
3847
 
690 chandransh 3848
  def process_createOrders(self, seqid, iprot, oprot):
3849
    args = createOrders_args()
559 chandransh 3850
    args.read(iprot)
3851
    iprot.readMessageEnd()
690 chandransh 3852
    result = createOrders_result()
559 chandransh 3853
    try:
2815 vikas 3854
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime)
559 chandransh 3855
    except ShoppingCartException, scx:
3856
      result.scx = scx
690 chandransh 3857
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3858
    result.write(oprot)
3859
    oprot.writeMessageEnd()
3860
    oprot.trans.flush()
3861
 
3862
  def process_validateCart(self, seqid, iprot, oprot):
3863
    args = validateCart_args()
3864
    args.read(iprot)
3865
    iprot.readMessageEnd()
3866
    result = validateCart_result()
575 chandransh 3867
    try:
3868
      result.success = self._handler.validateCart(args.cartId)
3869
    except ShoppingCartException, scex:
3870
      result.scex = scex
559 chandransh 3871
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3872
    result.write(oprot)
3873
    oprot.writeMessageEnd()
3874
    oprot.trans.flush()
3875
 
690 chandransh 3876
  def process_mergeCart(self, seqid, iprot, oprot):
3877
    args = mergeCart_args()
575 chandransh 3878
    args.read(iprot)
3879
    iprot.readMessageEnd()
690 chandransh 3880
    result = mergeCart_result()
3881
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3882
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3883
    result.write(oprot)
3884
    oprot.writeMessageEnd()
3885
    oprot.trans.flush()
3886
 
3887
  def process_checkOut(self, seqid, iprot, oprot):
3888
    args = checkOut_args()
3889
    args.read(iprot)
3890
    iprot.readMessageEnd()
3891
    result = checkOut_result()
575 chandransh 3892
    try:
690 chandransh 3893
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3894
    except ShoppingCartException, scex:
3895
      result.scex = scex
690 chandransh 3896
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3897
    result.write(oprot)
3898
    oprot.writeMessageEnd()
3899
    oprot.trans.flush()
3900
 
690 chandransh 3901
  def process_resetCart(self, seqid, iprot, oprot):
3902
    args = resetCart_args()
559 chandransh 3903
    args.read(iprot)
3904
    iprot.readMessageEnd()
690 chandransh 3905
    result = resetCart_result()
3906
    try:
3907
      result.success = self._handler.resetCart(args.cartId, args.items)
3908
    except ShoppingCartException, scex:
3909
      result.scex = scex
3910
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3911
    result.write(oprot)
3912
    oprot.writeMessageEnd()
3913
    oprot.trans.flush()
3914
 
2981 rajveer 3915
  def process_getUserCount(self, seqid, iprot, oprot):
3916
    args = getUserCount_args()
559 chandransh 3917
    args.read(iprot)
3918
    iprot.readMessageEnd()
2981 rajveer 3919
    result = getUserCount_result()
3920
    result.success = self._handler.getUserCount(args.userType)
3921
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3922
    result.write(oprot)
3923
    oprot.writeMessageEnd()
3924
    oprot.trans.flush()
3925
 
2981 rajveer 3926
  def process_getAllUsers(self, seqid, iprot, oprot):
3927
    args = getAllUsers_args()
559 chandransh 3928
    args.read(iprot)
3929
    iprot.readMessageEnd()
2981 rajveer 3930
    result = getAllUsers_result()
3931
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3932
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3933
    result.write(oprot)
3934
    oprot.writeMessageEnd()
3935
    oprot.trans.flush()
3936
 
2981 rajveer 3937
  def process_putUserNote(self, seqid, iprot, oprot):
3938
    args = putUserNote_args()
559 chandransh 3939
    args.read(iprot)
3940
    iprot.readMessageEnd()
2981 rajveer 3941
    result = putUserNote_result()
3942
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3943
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3944
    result.write(oprot)
3945
    oprot.writeMessageEnd()
3946
    oprot.trans.flush()
3947
 
2981 rajveer 3948
  def process_getUserNotes(self, seqid, iprot, oprot):
3949
    args = getUserNotes_args()
559 chandransh 3950
    args.read(iprot)
3951
    iprot.readMessageEnd()
2981 rajveer 3952
    result = getUserNotes_result()
3953
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3954
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3955
    result.write(oprot)
3956
    oprot.writeMessageEnd()
3957
    oprot.trans.flush()
3958
 
2981 rajveer 3959
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3960
    args = getMyResearchItems_args()
559 chandransh 3961
    args.read(iprot)
3962
    iprot.readMessageEnd()
2981 rajveer 3963
    result = getMyResearchItems_result()
559 chandransh 3964
    try:
2981 rajveer 3965
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3966
    except WidgetException, scx:
3967
      result.scx = scx
2981 rajveer 3968
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3969
    result.write(oprot)
3970
    oprot.writeMessageEnd()
3971
    oprot.trans.flush()
3972
 
2981 rajveer 3973
  def process_updateMyResearch(self, seqid, iprot, oprot):
3974
    args = updateMyResearch_args()
772 rajveer 3975
    args.read(iprot)
3976
    iprot.readMessageEnd()
2981 rajveer 3977
    result = updateMyResearch_result()
3978
    try:
3979
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3980
    except WidgetException, scx:
3981
      result.scx = scx
3982
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3983
    result.write(oprot)
3984
    oprot.writeMessageEnd()
3985
    oprot.trans.flush()
559 chandransh 3986
 
2981 rajveer 3987
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3988
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3989
    args.read(iprot)
3990
    iprot.readMessageEnd()
2981 rajveer 3991
    result = deleteItemFromMyResearch_result()
3992
    try:
3993
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3994
    except WidgetException, scx:
3995
      result.scx = scx
3996
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3997
    result.write(oprot)
3998
    oprot.writeMessageEnd()
3999
    oprot.trans.flush()
772 rajveer 4000
 
2981 rajveer 4001
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
4002
    args = getBrowseHistoryItems_args()
1673 ankur.sing 4003
    args.read(iprot)
4004
    iprot.readMessageEnd()
2981 rajveer 4005
    result = getBrowseHistoryItems_result()
4006
    try:
4007
      result.success = self._handler.getBrowseHistoryItems(args.userId)
4008
    except WidgetException, scx:
4009
      result.scx = scx
4010
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 4011
    result.write(oprot)
4012
    oprot.writeMessageEnd()
4013
    oprot.trans.flush()
1596 ankur.sing 4014
 
2981 rajveer 4015
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4016
    args = updateBrowseHistory_args()
2642 varun.gupt 4017
    args.read(iprot)
4018
    iprot.readMessageEnd()
2981 rajveer 4019
    result = updateBrowseHistory_result()
4020
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4021
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4022
    result.write(oprot)
4023
    oprot.writeMessageEnd()
4024
    oprot.trans.flush()
1673 ankur.sing 4025
 
3385 varun.gupt 4026
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4027
    args = getCartsWithCouponCount_args()
4028
    args.read(iprot)
4029
    iprot.readMessageEnd()
4030
    result = getCartsWithCouponCount_result()
4031
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4032
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4033
    result.write(oprot)
4034
    oprot.writeMessageEnd()
4035
    oprot.trans.flush()
2642 varun.gupt 4036
 
3499 mandeep.dh 4037
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4038
    args = increaseTrustLevel_args()
4039
    args.read(iprot)
4040
    iprot.readMessageEnd()
4041
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4042
    return
3385 varun.gupt 4043
 
3499 mandeep.dh 4044
 
94 ashish 4045
# HELPER FUNCTIONS AND STRUCTURES
4046
 
559 chandransh 4047
class createAnonymousUser_args:
94 ashish 4048
  """
4049
  Attributes:
559 chandransh 4050
   - jsessionId
94 ashish 4051
  """
4052
 
4053
  thrift_spec = (
4054
    None, # 0
559 chandransh 4055
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4056
  )
4057
 
559 chandransh 4058
  def __init__(self, jsessionId=None,):
4059
    self.jsessionId = jsessionId
94 ashish 4060
 
4061
  def read(self, iprot):
4062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4064
      return
4065
    iprot.readStructBegin()
4066
    while True:
4067
      (fname, ftype, fid) = iprot.readFieldBegin()
4068
      if ftype == TType.STOP:
4069
        break
4070
      if fid == 1:
559 chandransh 4071
        if ftype == TType.STRING:
4072
          self.jsessionId = iprot.readString();
94 ashish 4073
        else:
4074
          iprot.skip(ftype)
4075
      else:
4076
        iprot.skip(ftype)
4077
      iprot.readFieldEnd()
4078
    iprot.readStructEnd()
4079
 
4080
  def write(self, oprot):
4081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4083
      return
559 chandransh 4084
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4085
    if self.jsessionId is not None:
559 chandransh 4086
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4087
      oprot.writeString(self.jsessionId)
94 ashish 4088
      oprot.writeFieldEnd()
4089
    oprot.writeFieldStop()
4090
    oprot.writeStructEnd()
4091
 
3431 rajveer 4092
  def validate(self):
4093
    return
4094
 
4095
 
94 ashish 4096
  def __repr__(self):
4097
    L = ['%s=%r' % (key, value)
4098
      for key, value in self.__dict__.iteritems()]
4099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4100
 
4101
  def __eq__(self, other):
4102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4103
 
4104
  def __ne__(self, other):
4105
    return not (self == other)
4106
 
559 chandransh 4107
class createAnonymousUser_result:
94 ashish 4108
  """
4109
  Attributes:
4110
   - success
559 chandransh 4111
   - ucex
94 ashish 4112
  """
4113
 
4114
  thrift_spec = (
559 chandransh 4115
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4116
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4117
  )
4118
 
559 chandransh 4119
  def __init__(self, success=None, ucex=None,):
94 ashish 4120
    self.success = success
559 chandransh 4121
    self.ucex = ucex
94 ashish 4122
 
4123
  def read(self, iprot):
4124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4126
      return
4127
    iprot.readStructBegin()
4128
    while True:
4129
      (fname, ftype, fid) = iprot.readFieldBegin()
4130
      if ftype == TType.STOP:
4131
        break
4132
      if fid == 0:
4133
        if ftype == TType.STRUCT:
559 chandransh 4134
          self.success = User()
94 ashish 4135
          self.success.read(iprot)
4136
        else:
4137
          iprot.skip(ftype)
4138
      elif fid == 1:
4139
        if ftype == TType.STRUCT:
559 chandransh 4140
          self.ucex = UserContextException()
4141
          self.ucex.read(iprot)
94 ashish 4142
        else:
4143
          iprot.skip(ftype)
4144
      else:
4145
        iprot.skip(ftype)
4146
      iprot.readFieldEnd()
4147
    iprot.readStructEnd()
4148
 
4149
  def write(self, oprot):
4150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4152
      return
559 chandransh 4153
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4154
    if self.success is not None:
94 ashish 4155
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4156
      self.success.write(oprot)
4157
      oprot.writeFieldEnd()
3431 rajveer 4158
    if self.ucex is not None:
559 chandransh 4159
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4160
      self.ucex.write(oprot)
94 ashish 4161
      oprot.writeFieldEnd()
4162
    oprot.writeFieldStop()
4163
    oprot.writeStructEnd()
4164
 
3431 rajveer 4165
  def validate(self):
4166
    return
4167
 
4168
 
94 ashish 4169
  def __repr__(self):
4170
    L = ['%s=%r' % (key, value)
4171
      for key, value in self.__dict__.iteritems()]
4172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4173
 
4174
  def __eq__(self, other):
4175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4176
 
4177
  def __ne__(self, other):
4178
    return not (self == other)
4179
 
559 chandransh 4180
class getUserById_args:
94 ashish 4181
  """
4182
  Attributes:
4183
   - userId
4184
  """
4185
 
4186
  thrift_spec = (
4187
    None, # 0
4188
    (1, TType.I64, 'userId', None, None, ), # 1
4189
  )
4190
 
559 chandransh 4191
  def __init__(self, userId=None,):
94 ashish 4192
    self.userId = userId
4193
 
4194
  def read(self, iprot):
4195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4197
      return
4198
    iprot.readStructBegin()
4199
    while True:
4200
      (fname, ftype, fid) = iprot.readFieldBegin()
4201
      if ftype == TType.STOP:
4202
        break
4203
      if fid == 1:
4204
        if ftype == TType.I64:
4205
          self.userId = iprot.readI64();
4206
        else:
4207
          iprot.skip(ftype)
4208
      else:
4209
        iprot.skip(ftype)
4210
      iprot.readFieldEnd()
4211
    iprot.readStructEnd()
4212
 
4213
  def write(self, oprot):
4214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4216
      return
559 chandransh 4217
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4218
    if self.userId is not None:
94 ashish 4219
      oprot.writeFieldBegin('userId', TType.I64, 1)
4220
      oprot.writeI64(self.userId)
4221
      oprot.writeFieldEnd()
4222
    oprot.writeFieldStop()
4223
    oprot.writeStructEnd()
4224
 
3431 rajveer 4225
  def validate(self):
4226
    return
4227
 
4228
 
94 ashish 4229
  def __repr__(self):
4230
    L = ['%s=%r' % (key, value)
4231
      for key, value in self.__dict__.iteritems()]
4232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4233
 
4234
  def __eq__(self, other):
4235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4236
 
4237
  def __ne__(self, other):
4238
    return not (self == other)
4239
 
559 chandransh 4240
class getUserById_result:
94 ashish 4241
  """
4242
  Attributes:
4243
   - success
559 chandransh 4244
   - ucex
94 ashish 4245
  """
4246
 
4247
  thrift_spec = (
559 chandransh 4248
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4249
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4250
  )
4251
 
559 chandransh 4252
  def __init__(self, success=None, ucex=None,):
94 ashish 4253
    self.success = success
559 chandransh 4254
    self.ucex = ucex
94 ashish 4255
 
4256
  def read(self, iprot):
4257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4259
      return
4260
    iprot.readStructBegin()
4261
    while True:
4262
      (fname, ftype, fid) = iprot.readFieldBegin()
4263
      if ftype == TType.STOP:
4264
        break
4265
      if fid == 0:
4266
        if ftype == TType.STRUCT:
559 chandransh 4267
          self.success = User()
94 ashish 4268
          self.success.read(iprot)
4269
        else:
4270
          iprot.skip(ftype)
4271
      elif fid == 1:
4272
        if ftype == TType.STRUCT:
559 chandransh 4273
          self.ucex = UserContextException()
4274
          self.ucex.read(iprot)
94 ashish 4275
        else:
4276
          iprot.skip(ftype)
4277
      else:
4278
        iprot.skip(ftype)
4279
      iprot.readFieldEnd()
4280
    iprot.readStructEnd()
4281
 
4282
  def write(self, oprot):
4283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4285
      return
559 chandransh 4286
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4287
    if self.success is not None:
94 ashish 4288
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4289
      self.success.write(oprot)
4290
      oprot.writeFieldEnd()
3431 rajveer 4291
    if self.ucex is not None:
559 chandransh 4292
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4293
      self.ucex.write(oprot)
94 ashish 4294
      oprot.writeFieldEnd()
4295
    oprot.writeFieldStop()
4296
    oprot.writeStructEnd()
4297
 
3431 rajveer 4298
  def validate(self):
4299
    return
4300
 
4301
 
94 ashish 4302
  def __repr__(self):
4303
    L = ['%s=%r' % (key, value)
4304
      for key, value in self.__dict__.iteritems()]
4305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4306
 
4307
  def __eq__(self, other):
4308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4309
 
4310
  def __ne__(self, other):
4311
    return not (self == other)
4312
 
1491 vikas 4313
class getUserByEmail_args:
4314
  """
4315
  Attributes:
4316
   - email
4317
  """
4318
 
4319
  thrift_spec = (
4320
    None, # 0
4321
    (1, TType.STRING, 'email', None, None, ), # 1
4322
  )
4323
 
4324
  def __init__(self, email=None,):
4325
    self.email = email
4326
 
4327
  def read(self, iprot):
4328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4330
      return
4331
    iprot.readStructBegin()
4332
    while True:
4333
      (fname, ftype, fid) = iprot.readFieldBegin()
4334
      if ftype == TType.STOP:
4335
        break
4336
      if fid == 1:
4337
        if ftype == TType.STRING:
4338
          self.email = iprot.readString();
4339
        else:
4340
          iprot.skip(ftype)
4341
      else:
4342
        iprot.skip(ftype)
4343
      iprot.readFieldEnd()
4344
    iprot.readStructEnd()
4345
 
4346
  def write(self, oprot):
4347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4349
      return
4350
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4351
    if self.email is not None:
1491 vikas 4352
      oprot.writeFieldBegin('email', TType.STRING, 1)
4353
      oprot.writeString(self.email)
4354
      oprot.writeFieldEnd()
4355
    oprot.writeFieldStop()
4356
    oprot.writeStructEnd()
4357
 
3431 rajveer 4358
  def validate(self):
4359
    return
4360
 
4361
 
1491 vikas 4362
  def __repr__(self):
4363
    L = ['%s=%r' % (key, value)
4364
      for key, value in self.__dict__.iteritems()]
4365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4366
 
4367
  def __eq__(self, other):
4368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4369
 
4370
  def __ne__(self, other):
4371
    return not (self == other)
4372
 
4373
class getUserByEmail_result:
4374
  """
4375
  Attributes:
4376
   - success
4377
   - ucex
4378
  """
4379
 
4380
  thrift_spec = (
4381
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4382
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4383
  )
4384
 
4385
  def __init__(self, success=None, ucex=None,):
4386
    self.success = success
4387
    self.ucex = ucex
4388
 
4389
  def read(self, iprot):
4390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4392
      return
4393
    iprot.readStructBegin()
4394
    while True:
4395
      (fname, ftype, fid) = iprot.readFieldBegin()
4396
      if ftype == TType.STOP:
4397
        break
4398
      if fid == 0:
4399
        if ftype == TType.STRUCT:
4400
          self.success = User()
4401
          self.success.read(iprot)
4402
        else:
4403
          iprot.skip(ftype)
4404
      elif fid == 1:
4405
        if ftype == TType.STRUCT:
4406
          self.ucex = UserContextException()
4407
          self.ucex.read(iprot)
4408
        else:
4409
          iprot.skip(ftype)
4410
      else:
4411
        iprot.skip(ftype)
4412
      iprot.readFieldEnd()
4413
    iprot.readStructEnd()
4414
 
4415
  def write(self, oprot):
4416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4418
      return
4419
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4420
    if self.success is not None:
1491 vikas 4421
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4422
      self.success.write(oprot)
4423
      oprot.writeFieldEnd()
3431 rajveer 4424
    if self.ucex is not None:
1491 vikas 4425
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4426
      self.ucex.write(oprot)
4427
      oprot.writeFieldEnd()
4428
    oprot.writeFieldStop()
4429
    oprot.writeStructEnd()
4430
 
3431 rajveer 4431
  def validate(self):
4432
    return
4433
 
4434
 
1491 vikas 4435
  def __repr__(self):
4436
    L = ['%s=%r' % (key, value)
4437
      for key, value in self.__dict__.iteritems()]
4438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4439
 
4440
  def __eq__(self, other):
4441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4442
 
4443
  def __ne__(self, other):
4444
    return not (self == other)
4445
 
3032 mandeep.dh 4446
class getUserByMobileNumber_args:
4447
  """
4448
  Attributes:
4449
   - mobileNumber
4450
  """
4451
 
4452
  thrift_spec = (
4453
    None, # 0
4454
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4455
  )
4456
 
4457
  def __init__(self, mobileNumber=None,):
4458
    self.mobileNumber = mobileNumber
4459
 
4460
  def read(self, iprot):
4461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4463
      return
4464
    iprot.readStructBegin()
4465
    while True:
4466
      (fname, ftype, fid) = iprot.readFieldBegin()
4467
      if ftype == TType.STOP:
4468
        break
4469
      if fid == 1:
4470
        if ftype == TType.I64:
4471
          self.mobileNumber = iprot.readI64();
4472
        else:
4473
          iprot.skip(ftype)
4474
      else:
4475
        iprot.skip(ftype)
4476
      iprot.readFieldEnd()
4477
    iprot.readStructEnd()
4478
 
4479
  def write(self, oprot):
4480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4482
      return
4483
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4484
    if self.mobileNumber is not None:
3032 mandeep.dh 4485
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4486
      oprot.writeI64(self.mobileNumber)
4487
      oprot.writeFieldEnd()
4488
    oprot.writeFieldStop()
4489
    oprot.writeStructEnd()
4490
 
3431 rajveer 4491
  def validate(self):
4492
    return
4493
 
4494
 
3032 mandeep.dh 4495
  def __repr__(self):
4496
    L = ['%s=%r' % (key, value)
4497
      for key, value in self.__dict__.iteritems()]
4498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4499
 
4500
  def __eq__(self, other):
4501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4502
 
4503
  def __ne__(self, other):
4504
    return not (self == other)
4505
 
4506
class getUserByMobileNumber_result:
4507
  """
4508
  Attributes:
4509
   - success
4510
   - ucex
4511
  """
4512
 
4513
  thrift_spec = (
4514
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4515
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4516
  )
4517
 
4518
  def __init__(self, success=None, ucex=None,):
4519
    self.success = success
4520
    self.ucex = ucex
4521
 
4522
  def read(self, iprot):
4523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4525
      return
4526
    iprot.readStructBegin()
4527
    while True:
4528
      (fname, ftype, fid) = iprot.readFieldBegin()
4529
      if ftype == TType.STOP:
4530
        break
4531
      if fid == 0:
4532
        if ftype == TType.STRUCT:
4533
          self.success = User()
4534
          self.success.read(iprot)
4535
        else:
4536
          iprot.skip(ftype)
4537
      elif fid == 1:
4538
        if ftype == TType.STRUCT:
4539
          self.ucex = UserContextException()
4540
          self.ucex.read(iprot)
4541
        else:
4542
          iprot.skip(ftype)
4543
      else:
4544
        iprot.skip(ftype)
4545
      iprot.readFieldEnd()
4546
    iprot.readStructEnd()
4547
 
4548
  def write(self, oprot):
4549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4551
      return
4552
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4553
    if self.success is not None:
3032 mandeep.dh 4554
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4555
      self.success.write(oprot)
4556
      oprot.writeFieldEnd()
3431 rajveer 4557
    if self.ucex is not None:
3032 mandeep.dh 4558
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4559
      self.ucex.write(oprot)
4560
      oprot.writeFieldEnd()
4561
    oprot.writeFieldStop()
4562
    oprot.writeStructEnd()
4563
 
3431 rajveer 4564
  def validate(self):
4565
    return
4566
 
4567
 
3032 mandeep.dh 4568
  def __repr__(self):
4569
    L = ['%s=%r' % (key, value)
4570
      for key, value in self.__dict__.iteritems()]
4571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4572
 
4573
  def __eq__(self, other):
4574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4575
 
4576
  def __ne__(self, other):
4577
    return not (self == other)
4578
 
559 chandransh 4579
class createUser_args:
94 ashish 4580
  """
4581
  Attributes:
559 chandransh 4582
   - user
94 ashish 4583
  """
4584
 
4585
  thrift_spec = (
4586
    None, # 0
559 chandransh 4587
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4588
  )
4589
 
559 chandransh 4590
  def __init__(self, user=None,):
4591
    self.user = user
94 ashish 4592
 
4593
  def read(self, iprot):
4594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4596
      return
4597
    iprot.readStructBegin()
4598
    while True:
4599
      (fname, ftype, fid) = iprot.readFieldBegin()
4600
      if ftype == TType.STOP:
4601
        break
4602
      if fid == 1:
559 chandransh 4603
        if ftype == TType.STRUCT:
4604
          self.user = User()
4605
          self.user.read(iprot)
94 ashish 4606
        else:
4607
          iprot.skip(ftype)
4608
      else:
4609
        iprot.skip(ftype)
4610
      iprot.readFieldEnd()
4611
    iprot.readStructEnd()
4612
 
4613
  def write(self, oprot):
4614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4616
      return
559 chandransh 4617
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4618
    if self.user is not None:
559 chandransh 4619
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4620
      self.user.write(oprot)
94 ashish 4621
      oprot.writeFieldEnd()
4622
    oprot.writeFieldStop()
4623
    oprot.writeStructEnd()
4624
 
3431 rajveer 4625
  def validate(self):
4626
    return
4627
 
4628
 
94 ashish 4629
  def __repr__(self):
4630
    L = ['%s=%r' % (key, value)
4631
      for key, value in self.__dict__.iteritems()]
4632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4633
 
4634
  def __eq__(self, other):
4635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4636
 
4637
  def __ne__(self, other):
4638
    return not (self == other)
4639
 
559 chandransh 4640
class createUser_result:
94 ashish 4641
  """
4642
  Attributes:
4643
   - success
559 chandransh 4644
   - ucex
94 ashish 4645
  """
4646
 
4647
  thrift_spec = (
559 chandransh 4648
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4649
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4650
  )
4651
 
559 chandransh 4652
  def __init__(self, success=None, ucex=None,):
94 ashish 4653
    self.success = success
559 chandransh 4654
    self.ucex = ucex
94 ashish 4655
 
4656
  def read(self, iprot):
4657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4659
      return
4660
    iprot.readStructBegin()
4661
    while True:
4662
      (fname, ftype, fid) = iprot.readFieldBegin()
4663
      if ftype == TType.STOP:
4664
        break
4665
      if fid == 0:
4666
        if ftype == TType.STRUCT:
559 chandransh 4667
          self.success = User()
94 ashish 4668
          self.success.read(iprot)
4669
        else:
4670
          iprot.skip(ftype)
4671
      elif fid == 1:
4672
        if ftype == TType.STRUCT:
559 chandransh 4673
          self.ucex = UserContextException()
4674
          self.ucex.read(iprot)
94 ashish 4675
        else:
4676
          iprot.skip(ftype)
4677
      else:
4678
        iprot.skip(ftype)
4679
      iprot.readFieldEnd()
4680
    iprot.readStructEnd()
4681
 
4682
  def write(self, oprot):
4683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4685
      return
559 chandransh 4686
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4687
    if self.success is not None:
94 ashish 4688
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4689
      self.success.write(oprot)
4690
      oprot.writeFieldEnd()
3431 rajveer 4691
    if self.ucex is not None:
559 chandransh 4692
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4693
      self.ucex.write(oprot)
94 ashish 4694
      oprot.writeFieldEnd()
4695
    oprot.writeFieldStop()
4696
    oprot.writeStructEnd()
4697
 
3431 rajveer 4698
  def validate(self):
4699
    return
4700
 
4701
 
94 ashish 4702
  def __repr__(self):
4703
    L = ['%s=%r' % (key, value)
4704
      for key, value in self.__dict__.iteritems()]
4705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4706
 
4707
  def __eq__(self, other):
4708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4709
 
4710
  def __ne__(self, other):
4711
    return not (self == other)
4712
 
559 chandransh 4713
class updateUser_args:
94 ashish 4714
  """
4715
  Attributes:
559 chandransh 4716
   - user
94 ashish 4717
  """
4718
 
4719
  thrift_spec = (
4720
    None, # 0
559 chandransh 4721
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4722
  )
4723
 
559 chandransh 4724
  def __init__(self, user=None,):
4725
    self.user = user
94 ashish 4726
 
4727
  def read(self, iprot):
4728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4730
      return
4731
    iprot.readStructBegin()
4732
    while True:
4733
      (fname, ftype, fid) = iprot.readFieldBegin()
4734
      if ftype == TType.STOP:
4735
        break
4736
      if fid == 1:
559 chandransh 4737
        if ftype == TType.STRUCT:
4738
          self.user = User()
4739
          self.user.read(iprot)
94 ashish 4740
        else:
4741
          iprot.skip(ftype)
4742
      else:
4743
        iprot.skip(ftype)
4744
      iprot.readFieldEnd()
4745
    iprot.readStructEnd()
4746
 
4747
  def write(self, oprot):
4748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4750
      return
559 chandransh 4751
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4752
    if self.user is not None:
559 chandransh 4753
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4754
      self.user.write(oprot)
94 ashish 4755
      oprot.writeFieldEnd()
4756
    oprot.writeFieldStop()
4757
    oprot.writeStructEnd()
4758
 
3431 rajveer 4759
  def validate(self):
4760
    return
4761
 
4762
 
94 ashish 4763
  def __repr__(self):
4764
    L = ['%s=%r' % (key, value)
4765
      for key, value in self.__dict__.iteritems()]
4766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4767
 
4768
  def __eq__(self, other):
4769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4770
 
4771
  def __ne__(self, other):
4772
    return not (self == other)
4773
 
559 chandransh 4774
class updateUser_result:
94 ashish 4775
  """
4776
  Attributes:
4777
   - success
559 chandransh 4778
   - ucex
94 ashish 4779
  """
4780
 
4781
  thrift_spec = (
559 chandransh 4782
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4783
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4784
  )
4785
 
559 chandransh 4786
  def __init__(self, success=None, ucex=None,):
94 ashish 4787
    self.success = success
559 chandransh 4788
    self.ucex = ucex
94 ashish 4789
 
4790
  def read(self, iprot):
4791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4793
      return
4794
    iprot.readStructBegin()
4795
    while True:
4796
      (fname, ftype, fid) = iprot.readFieldBegin()
4797
      if ftype == TType.STOP:
4798
        break
4799
      if fid == 0:
4800
        if ftype == TType.STRUCT:
559 chandransh 4801
          self.success = User()
94 ashish 4802
          self.success.read(iprot)
4803
        else:
4804
          iprot.skip(ftype)
4805
      elif fid == 1:
4806
        if ftype == TType.STRUCT:
559 chandransh 4807
          self.ucex = UserContextException()
4808
          self.ucex.read(iprot)
94 ashish 4809
        else:
4810
          iprot.skip(ftype)
4811
      else:
4812
        iprot.skip(ftype)
4813
      iprot.readFieldEnd()
4814
    iprot.readStructEnd()
4815
 
4816
  def write(self, oprot):
4817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4819
      return
559 chandransh 4820
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4821
    if self.success is not None:
94 ashish 4822
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4823
      self.success.write(oprot)
4824
      oprot.writeFieldEnd()
3431 rajveer 4825
    if self.ucex is not None:
559 chandransh 4826
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4827
      self.ucex.write(oprot)
94 ashish 4828
      oprot.writeFieldEnd()
4829
    oprot.writeFieldStop()
4830
    oprot.writeStructEnd()
4831
 
3431 rajveer 4832
  def validate(self):
4833
    return
4834
 
4835
 
94 ashish 4836
  def __repr__(self):
4837
    L = ['%s=%r' % (key, value)
4838
      for key, value in self.__dict__.iteritems()]
4839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4840
 
4841
  def __eq__(self, other):
4842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4843
 
4844
  def __ne__(self, other):
4845
    return not (self == other)
4846
 
559 chandransh 4847
class deleteUser_args:
94 ashish 4848
  """
4849
  Attributes:
4850
   - userId
4851
  """
4852
 
4853
  thrift_spec = (
4854
    None, # 0
4855
    (1, TType.I64, 'userId', None, None, ), # 1
4856
  )
4857
 
559 chandransh 4858
  def __init__(self, userId=None,):
94 ashish 4859
    self.userId = userId
4860
 
4861
  def read(self, iprot):
4862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4864
      return
4865
    iprot.readStructBegin()
4866
    while True:
4867
      (fname, ftype, fid) = iprot.readFieldBegin()
4868
      if ftype == TType.STOP:
4869
        break
4870
      if fid == 1:
4871
        if ftype == TType.I64:
4872
          self.userId = iprot.readI64();
4873
        else:
4874
          iprot.skip(ftype)
4875
      else:
4876
        iprot.skip(ftype)
4877
      iprot.readFieldEnd()
4878
    iprot.readStructEnd()
4879
 
4880
  def write(self, oprot):
4881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4883
      return
559 chandransh 4884
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4885
    if self.userId is not None:
94 ashish 4886
      oprot.writeFieldBegin('userId', TType.I64, 1)
4887
      oprot.writeI64(self.userId)
4888
      oprot.writeFieldEnd()
4889
    oprot.writeFieldStop()
4890
    oprot.writeStructEnd()
4891
 
3431 rajveer 4892
  def validate(self):
4893
    return
4894
 
4895
 
94 ashish 4896
  def __repr__(self):
4897
    L = ['%s=%r' % (key, value)
4898
      for key, value in self.__dict__.iteritems()]
4899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4900
 
4901
  def __eq__(self, other):
4902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4903
 
4904
  def __ne__(self, other):
4905
    return not (self == other)
4906
 
559 chandransh 4907
class deleteUser_result:
94 ashish 4908
  """
4909
  Attributes:
4910
   - success
559 chandransh 4911
   - ucex
94 ashish 4912
  """
4913
 
4914
  thrift_spec = (
559 chandransh 4915
    (0, TType.BOOL, 'success', None, None, ), # 0
4916
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4917
  )
4918
 
559 chandransh 4919
  def __init__(self, success=None, ucex=None,):
94 ashish 4920
    self.success = success
559 chandransh 4921
    self.ucex = ucex
94 ashish 4922
 
4923
  def read(self, iprot):
4924
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4925
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4926
      return
4927
    iprot.readStructBegin()
4928
    while True:
4929
      (fname, ftype, fid) = iprot.readFieldBegin()
4930
      if ftype == TType.STOP:
4931
        break
4932
      if fid == 0:
559 chandransh 4933
        if ftype == TType.BOOL:
4934
          self.success = iprot.readBool();
94 ashish 4935
        else:
4936
          iprot.skip(ftype)
4937
      elif fid == 1:
4938
        if ftype == TType.STRUCT:
559 chandransh 4939
          self.ucex = UserContextException()
4940
          self.ucex.read(iprot)
94 ashish 4941
        else:
4942
          iprot.skip(ftype)
4943
      else:
4944
        iprot.skip(ftype)
4945
      iprot.readFieldEnd()
4946
    iprot.readStructEnd()
4947
 
4948
  def write(self, oprot):
4949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4951
      return
559 chandransh 4952
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4953
    if self.success is not None:
559 chandransh 4954
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4955
      oprot.writeBool(self.success)
94 ashish 4956
      oprot.writeFieldEnd()
3431 rajveer 4957
    if self.ucex is not None:
559 chandransh 4958
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4959
      self.ucex.write(oprot)
94 ashish 4960
      oprot.writeFieldEnd()
4961
    oprot.writeFieldStop()
4962
    oprot.writeStructEnd()
4963
 
3431 rajveer 4964
  def validate(self):
4965
    return
4966
 
4967
 
94 ashish 4968
  def __repr__(self):
4969
    L = ['%s=%r' % (key, value)
4970
      for key, value in self.__dict__.iteritems()]
4971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4972
 
4973
  def __eq__(self, other):
4974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4975
 
4976
  def __ne__(self, other):
4977
    return not (self == other)
4978
 
559 chandransh 4979
class getUserState_args:
94 ashish 4980
  """
4981
  Attributes:
4982
   - userId
4983
  """
4984
 
4985
  thrift_spec = (
4986
    None, # 0
4987
    (1, TType.I64, 'userId', None, None, ), # 1
4988
  )
4989
 
559 chandransh 4990
  def __init__(self, userId=None,):
94 ashish 4991
    self.userId = userId
4992
 
4993
  def read(self, iprot):
4994
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4995
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4996
      return
4997
    iprot.readStructBegin()
4998
    while True:
4999
      (fname, ftype, fid) = iprot.readFieldBegin()
5000
      if ftype == TType.STOP:
5001
        break
5002
      if fid == 1:
5003
        if ftype == TType.I64:
5004
          self.userId = iprot.readI64();
5005
        else:
5006
          iprot.skip(ftype)
5007
      else:
5008
        iprot.skip(ftype)
5009
      iprot.readFieldEnd()
5010
    iprot.readStructEnd()
5011
 
5012
  def write(self, oprot):
5013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5015
      return
559 chandransh 5016
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 5017
    if self.userId is not None:
94 ashish 5018
      oprot.writeFieldBegin('userId', TType.I64, 1)
5019
      oprot.writeI64(self.userId)
5020
      oprot.writeFieldEnd()
5021
    oprot.writeFieldStop()
5022
    oprot.writeStructEnd()
5023
 
3431 rajveer 5024
  def validate(self):
5025
    return
5026
 
5027
 
94 ashish 5028
  def __repr__(self):
5029
    L = ['%s=%r' % (key, value)
5030
      for key, value in self.__dict__.iteritems()]
5031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5032
 
5033
  def __eq__(self, other):
5034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5035
 
5036
  def __ne__(self, other):
5037
    return not (self == other)
5038
 
559 chandransh 5039
class getUserState_result:
94 ashish 5040
  """
5041
  Attributes:
5042
   - success
559 chandransh 5043
   - ucex
94 ashish 5044
  """
5045
 
5046
  thrift_spec = (
559 chandransh 5047
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
5048
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 5049
  )
5050
 
559 chandransh 5051
  def __init__(self, success=None, ucex=None,):
94 ashish 5052
    self.success = success
559 chandransh 5053
    self.ucex = ucex
94 ashish 5054
 
5055
  def read(self, iprot):
5056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5058
      return
5059
    iprot.readStructBegin()
5060
    while True:
5061
      (fname, ftype, fid) = iprot.readFieldBegin()
5062
      if ftype == TType.STOP:
5063
        break
5064
      if fid == 0:
5065
        if ftype == TType.STRUCT:
559 chandransh 5066
          self.success = UserState()
94 ashish 5067
          self.success.read(iprot)
5068
        else:
5069
          iprot.skip(ftype)
5070
      elif fid == 1:
5071
        if ftype == TType.STRUCT:
559 chandransh 5072
          self.ucex = UserContextException()
5073
          self.ucex.read(iprot)
94 ashish 5074
        else:
5075
          iprot.skip(ftype)
5076
      else:
5077
        iprot.skip(ftype)
5078
      iprot.readFieldEnd()
5079
    iprot.readStructEnd()
5080
 
5081
  def write(self, oprot):
5082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5084
      return
559 chandransh 5085
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 5086
    if self.success is not None:
94 ashish 5087
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5088
      self.success.write(oprot)
5089
      oprot.writeFieldEnd()
3431 rajveer 5090
    if self.ucex is not None:
559 chandransh 5091
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5092
      self.ucex.write(oprot)
94 ashish 5093
      oprot.writeFieldEnd()
5094
    oprot.writeFieldStop()
5095
    oprot.writeStructEnd()
5096
 
3431 rajveer 5097
  def validate(self):
5098
    return
5099
 
5100
 
94 ashish 5101
  def __repr__(self):
5102
    L = ['%s=%r' % (key, value)
5103
      for key, value in self.__dict__.iteritems()]
5104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5105
 
5106
  def __eq__(self, other):
5107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5108
 
5109
  def __ne__(self, other):
5110
    return not (self == other)
5111
 
559 chandransh 5112
class authenticateUser_args:
94 ashish 5113
  """
5114
  Attributes:
5115
   - email
5116
   - password
5117
  """
5118
 
5119
  thrift_spec = (
5120
    None, # 0
5121
    (1, TType.STRING, 'email', None, None, ), # 1
5122
    (2, TType.STRING, 'password', None, None, ), # 2
5123
  )
5124
 
5125
  def __init__(self, email=None, password=None,):
5126
    self.email = email
5127
    self.password = password
5128
 
5129
  def read(self, iprot):
5130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5132
      return
5133
    iprot.readStructBegin()
5134
    while True:
5135
      (fname, ftype, fid) = iprot.readFieldBegin()
5136
      if ftype == TType.STOP:
5137
        break
5138
      if fid == 1:
5139
        if ftype == TType.STRING:
5140
          self.email = iprot.readString();
5141
        else:
5142
          iprot.skip(ftype)
5143
      elif fid == 2:
5144
        if ftype == TType.STRING:
5145
          self.password = iprot.readString();
5146
        else:
5147
          iprot.skip(ftype)
5148
      else:
5149
        iprot.skip(ftype)
5150
      iprot.readFieldEnd()
5151
    iprot.readStructEnd()
5152
 
5153
  def write(self, oprot):
5154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5156
      return
559 chandransh 5157
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5158
    if self.email is not None:
94 ashish 5159
      oprot.writeFieldBegin('email', TType.STRING, 1)
5160
      oprot.writeString(self.email)
5161
      oprot.writeFieldEnd()
3431 rajveer 5162
    if self.password is not None:
94 ashish 5163
      oprot.writeFieldBegin('password', TType.STRING, 2)
5164
      oprot.writeString(self.password)
5165
      oprot.writeFieldEnd()
5166
    oprot.writeFieldStop()
5167
    oprot.writeStructEnd()
5168
 
3431 rajveer 5169
  def validate(self):
5170
    return
5171
 
5172
 
94 ashish 5173
  def __repr__(self):
5174
    L = ['%s=%r' % (key, value)
5175
      for key, value in self.__dict__.iteritems()]
5176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5177
 
5178
  def __eq__(self, other):
5179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5180
 
5181
  def __ne__(self, other):
5182
    return not (self == other)
5183
 
559 chandransh 5184
class authenticateUser_result:
94 ashish 5185
  """
5186
  Attributes:
5187
   - success
559 chandransh 5188
   - auex
94 ashish 5189
  """
5190
 
5191
  thrift_spec = (
559 chandransh 5192
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5193
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5194
  )
5195
 
559 chandransh 5196
  def __init__(self, success=None, auex=None,):
94 ashish 5197
    self.success = success
559 chandransh 5198
    self.auex = auex
94 ashish 5199
 
5200
  def read(self, iprot):
5201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5203
      return
5204
    iprot.readStructBegin()
5205
    while True:
5206
      (fname, ftype, fid) = iprot.readFieldBegin()
5207
      if ftype == TType.STOP:
5208
        break
5209
      if fid == 0:
5210
        if ftype == TType.STRUCT:
559 chandransh 5211
          self.success = User()
94 ashish 5212
          self.success.read(iprot)
5213
        else:
5214
          iprot.skip(ftype)
5215
      elif fid == 1:
5216
        if ftype == TType.STRUCT:
559 chandransh 5217
          self.auex = AuthenticationException()
5218
          self.auex.read(iprot)
94 ashish 5219
        else:
5220
          iprot.skip(ftype)
5221
      else:
5222
        iprot.skip(ftype)
5223
      iprot.readFieldEnd()
5224
    iprot.readStructEnd()
5225
 
5226
  def write(self, oprot):
5227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5229
      return
559 chandransh 5230
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5231
    if self.success is not None:
94 ashish 5232
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5233
      self.success.write(oprot)
5234
      oprot.writeFieldEnd()
3431 rajveer 5235
    if self.auex is not None:
559 chandransh 5236
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5237
      self.auex.write(oprot)
94 ashish 5238
      oprot.writeFieldEnd()
5239
    oprot.writeFieldStop()
5240
    oprot.writeStructEnd()
5241
 
3431 rajveer 5242
  def validate(self):
5243
    return
5244
 
5245
 
94 ashish 5246
  def __repr__(self):
5247
    L = ['%s=%r' % (key, value)
5248
      for key, value in self.__dict__.iteritems()]
5249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5250
 
5251
  def __eq__(self, other):
5252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5253
 
5254
  def __ne__(self, other):
5255
    return not (self == other)
5256
 
559 chandransh 5257
class userExists_args:
122 ashish 5258
  """
5259
  Attributes:
559 chandransh 5260
   - email
122 ashish 5261
  """
5262
 
5263
  thrift_spec = (
5264
    None, # 0
559 chandransh 5265
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5266
  )
5267
 
559 chandransh 5268
  def __init__(self, email=None,):
5269
    self.email = email
122 ashish 5270
 
5271
  def read(self, iprot):
5272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5274
      return
5275
    iprot.readStructBegin()
5276
    while True:
5277
      (fname, ftype, fid) = iprot.readFieldBegin()
5278
      if ftype == TType.STOP:
5279
        break
5280
      if fid == 1:
5281
        if ftype == TType.STRING:
559 chandransh 5282
          self.email = iprot.readString();
122 ashish 5283
        else:
5284
          iprot.skip(ftype)
559 chandransh 5285
      else:
5286
        iprot.skip(ftype)
5287
      iprot.readFieldEnd()
5288
    iprot.readStructEnd()
5289
 
5290
  def write(self, oprot):
5291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5293
      return
5294
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5295
    if self.email is not None:
559 chandransh 5296
      oprot.writeFieldBegin('email', TType.STRING, 1)
5297
      oprot.writeString(self.email)
5298
      oprot.writeFieldEnd()
5299
    oprot.writeFieldStop()
5300
    oprot.writeStructEnd()
5301
 
3431 rajveer 5302
  def validate(self):
5303
    return
5304
 
5305
 
559 chandransh 5306
  def __repr__(self):
5307
    L = ['%s=%r' % (key, value)
5308
      for key, value in self.__dict__.iteritems()]
5309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5310
 
5311
  def __eq__(self, other):
5312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5313
 
5314
  def __ne__(self, other):
5315
    return not (self == other)
5316
 
5317
class userExists_result:
5318
  """
5319
  Attributes:
5320
   - success
5321
   - ucx
5322
  """
5323
 
5324
  thrift_spec = (
5325
    (0, TType.BOOL, 'success', None, None, ), # 0
5326
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5327
  )
5328
 
5329
  def __init__(self, success=None, ucx=None,):
5330
    self.success = success
5331
    self.ucx = ucx
5332
 
5333
  def read(self, iprot):
5334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5336
      return
5337
    iprot.readStructBegin()
5338
    while True:
5339
      (fname, ftype, fid) = iprot.readFieldBegin()
5340
      if ftype == TType.STOP:
5341
        break
5342
      if fid == 0:
5343
        if ftype == TType.BOOL:
5344
          self.success = iprot.readBool();
5345
        else:
5346
          iprot.skip(ftype)
5347
      elif fid == 1:
5348
        if ftype == TType.STRUCT:
5349
          self.ucx = UserContextException()
5350
          self.ucx.read(iprot)
5351
        else:
5352
          iprot.skip(ftype)
5353
      else:
5354
        iprot.skip(ftype)
5355
      iprot.readFieldEnd()
5356
    iprot.readStructEnd()
5357
 
5358
  def write(self, oprot):
5359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5361
      return
5362
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5363
    if self.success is not None:
559 chandransh 5364
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5365
      oprot.writeBool(self.success)
5366
      oprot.writeFieldEnd()
3431 rajveer 5367
    if self.ucx is not None:
559 chandransh 5368
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5369
      self.ucx.write(oprot)
5370
      oprot.writeFieldEnd()
5371
    oprot.writeFieldStop()
5372
    oprot.writeStructEnd()
5373
 
3431 rajveer 5374
  def validate(self):
5375
    return
5376
 
5377
 
559 chandransh 5378
  def __repr__(self):
5379
    L = ['%s=%r' % (key, value)
5380
      for key, value in self.__dict__.iteritems()]
5381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5382
 
5383
  def __eq__(self, other):
5384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5385
 
5386
  def __ne__(self, other):
5387
    return not (self == other)
5388
 
5389
class addAddressForUser_args:
5390
  """
5391
  Attributes:
5392
   - userId
5393
   - address
5394
   - setDefault
5395
  """
5396
 
5397
  thrift_spec = (
5398
    None, # 0
5399
    (1, TType.I64, 'userId', None, None, ), # 1
5400
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5401
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5402
  )
5403
 
567 rajveer 5404
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5405
    self.userId = userId
5406
    self.address = address
5407
    self.setDefault = setDefault
5408
 
5409
  def read(self, iprot):
5410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5412
      return
5413
    iprot.readStructBegin()
5414
    while True:
5415
      (fname, ftype, fid) = iprot.readFieldBegin()
5416
      if ftype == TType.STOP:
5417
        break
5418
      if fid == 1:
5419
        if ftype == TType.I64:
5420
          self.userId = iprot.readI64();
5421
        else:
5422
          iprot.skip(ftype)
122 ashish 5423
      elif fid == 2:
559 chandransh 5424
        if ftype == TType.STRUCT:
5425
          self.address = Address()
5426
          self.address.read(iprot)
122 ashish 5427
        else:
5428
          iprot.skip(ftype)
5429
      elif fid == 3:
5430
        if ftype == TType.BOOL:
559 chandransh 5431
          self.setDefault = iprot.readBool();
122 ashish 5432
        else:
5433
          iprot.skip(ftype)
5434
      else:
5435
        iprot.skip(ftype)
5436
      iprot.readFieldEnd()
5437
    iprot.readStructEnd()
5438
 
5439
  def write(self, oprot):
5440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5442
      return
559 chandransh 5443
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5444
    if self.userId is not None:
559 chandransh 5445
      oprot.writeFieldBegin('userId', TType.I64, 1)
5446
      oprot.writeI64(self.userId)
122 ashish 5447
      oprot.writeFieldEnd()
3431 rajveer 5448
    if self.address is not None:
559 chandransh 5449
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5450
      self.address.write(oprot)
122 ashish 5451
      oprot.writeFieldEnd()
3431 rajveer 5452
    if self.setDefault is not None:
567 rajveer 5453
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5454
      oprot.writeBool(self.setDefault)
5455
      oprot.writeFieldEnd()
122 ashish 5456
    oprot.writeFieldStop()
5457
    oprot.writeStructEnd()
5458
 
3431 rajveer 5459
  def validate(self):
5460
    return
5461
 
5462
 
122 ashish 5463
  def __repr__(self):
5464
    L = ['%s=%r' % (key, value)
5465
      for key, value in self.__dict__.iteritems()]
5466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5467
 
5468
  def __eq__(self, other):
5469
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5470
 
5471
  def __ne__(self, other):
5472
    return not (self == other)
5473
 
559 chandransh 5474
class addAddressForUser_result:
122 ashish 5475
  """
5476
  Attributes:
5477
   - success
559 chandransh 5478
   - ucx
122 ashish 5479
  """
5480
 
5481
  thrift_spec = (
567 rajveer 5482
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5483
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5484
  )
5485
 
559 chandransh 5486
  def __init__(self, success=None, ucx=None,):
122 ashish 5487
    self.success = success
559 chandransh 5488
    self.ucx = ucx
122 ashish 5489
 
5490
  def read(self, iprot):
5491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5493
      return
5494
    iprot.readStructBegin()
5495
    while True:
5496
      (fname, ftype, fid) = iprot.readFieldBegin()
5497
      if ftype == TType.STOP:
5498
        break
5499
      if fid == 0:
567 rajveer 5500
        if ftype == TType.I64:
5501
          self.success = iprot.readI64();
122 ashish 5502
        else:
5503
          iprot.skip(ftype)
5504
      elif fid == 1:
5505
        if ftype == TType.STRUCT:
559 chandransh 5506
          self.ucx = UserContextException()
5507
          self.ucx.read(iprot)
122 ashish 5508
        else:
5509
          iprot.skip(ftype)
5510
      else:
5511
        iprot.skip(ftype)
5512
      iprot.readFieldEnd()
5513
    iprot.readStructEnd()
5514
 
5515
  def write(self, oprot):
5516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5518
      return
559 chandransh 5519
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5520
    if self.success is not None:
567 rajveer 5521
      oprot.writeFieldBegin('success', TType.I64, 0)
5522
      oprot.writeI64(self.success)
122 ashish 5523
      oprot.writeFieldEnd()
3431 rajveer 5524
    if self.ucx is not None:
559 chandransh 5525
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5526
      self.ucx.write(oprot)
122 ashish 5527
      oprot.writeFieldEnd()
5528
    oprot.writeFieldStop()
5529
    oprot.writeStructEnd()
5530
 
3431 rajveer 5531
  def validate(self):
5532
    return
5533
 
5534
 
122 ashish 5535
  def __repr__(self):
5536
    L = ['%s=%r' % (key, value)
5537
      for key, value in self.__dict__.iteritems()]
5538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5539
 
5540
  def __eq__(self, other):
5541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5542
 
5543
  def __ne__(self, other):
5544
    return not (self == other)
5545
 
559 chandransh 5546
class removeAddressForUser_args:
94 ashish 5547
  """
5548
  Attributes:
559 chandransh 5549
   - userid
5550
   - addressId
94 ashish 5551
  """
5552
 
5553
  thrift_spec = (
5554
    None, # 0
559 chandransh 5555
    (1, TType.I64, 'userid', None, None, ), # 1
5556
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5557
  )
5558
 
559 chandransh 5559
  def __init__(self, userid=None, addressId=None,):
5560
    self.userid = userid
5561
    self.addressId = addressId
94 ashish 5562
 
5563
  def read(self, iprot):
5564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5566
      return
5567
    iprot.readStructBegin()
5568
    while True:
5569
      (fname, ftype, fid) = iprot.readFieldBegin()
5570
      if ftype == TType.STOP:
5571
        break
5572
      if fid == 1:
559 chandransh 5573
        if ftype == TType.I64:
5574
          self.userid = iprot.readI64();
94 ashish 5575
        else:
5576
          iprot.skip(ftype)
559 chandransh 5577
      elif fid == 2:
5578
        if ftype == TType.I64:
5579
          self.addressId = iprot.readI64();
5580
        else:
5581
          iprot.skip(ftype)
94 ashish 5582
      else:
5583
        iprot.skip(ftype)
5584
      iprot.readFieldEnd()
5585
    iprot.readStructEnd()
5586
 
5587
  def write(self, oprot):
5588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5590
      return
559 chandransh 5591
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5592
    if self.userid is not None:
559 chandransh 5593
      oprot.writeFieldBegin('userid', TType.I64, 1)
5594
      oprot.writeI64(self.userid)
94 ashish 5595
      oprot.writeFieldEnd()
3431 rajveer 5596
    if self.addressId is not None:
559 chandransh 5597
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5598
      oprot.writeI64(self.addressId)
5599
      oprot.writeFieldEnd()
94 ashish 5600
    oprot.writeFieldStop()
5601
    oprot.writeStructEnd()
5602
 
3431 rajveer 5603
  def validate(self):
5604
    return
5605
 
5606
 
94 ashish 5607
  def __repr__(self):
5608
    L = ['%s=%r' % (key, value)
5609
      for key, value in self.__dict__.iteritems()]
5610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5611
 
5612
  def __eq__(self, other):
5613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5614
 
5615
  def __ne__(self, other):
5616
    return not (self == other)
5617
 
559 chandransh 5618
class removeAddressForUser_result:
94 ashish 5619
  """
5620
  Attributes:
5621
   - success
5622
   - ucx
5623
  """
5624
 
5625
  thrift_spec = (
5626
    (0, TType.BOOL, 'success', None, None, ), # 0
5627
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5628
  )
5629
 
5630
  def __init__(self, success=None, ucx=None,):
5631
    self.success = success
5632
    self.ucx = ucx
5633
 
5634
  def read(self, iprot):
5635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5637
      return
5638
    iprot.readStructBegin()
5639
    while True:
5640
      (fname, ftype, fid) = iprot.readFieldBegin()
5641
      if ftype == TType.STOP:
5642
        break
5643
      if fid == 0:
5644
        if ftype == TType.BOOL:
5645
          self.success = iprot.readBool();
5646
        else:
5647
          iprot.skip(ftype)
5648
      elif fid == 1:
5649
        if ftype == TType.STRUCT:
5650
          self.ucx = UserContextException()
5651
          self.ucx.read(iprot)
5652
        else:
5653
          iprot.skip(ftype)
5654
      else:
5655
        iprot.skip(ftype)
5656
      iprot.readFieldEnd()
5657
    iprot.readStructEnd()
5658
 
5659
  def write(self, oprot):
5660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5662
      return
559 chandransh 5663
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5664
    if self.success is not None:
94 ashish 5665
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5666
      oprot.writeBool(self.success)
5667
      oprot.writeFieldEnd()
3431 rajveer 5668
    if self.ucx is not None:
94 ashish 5669
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5670
      self.ucx.write(oprot)
5671
      oprot.writeFieldEnd()
5672
    oprot.writeFieldStop()
5673
    oprot.writeStructEnd()
5674
 
3431 rajveer 5675
  def validate(self):
5676
    return
5677
 
5678
 
94 ashish 5679
  def __repr__(self):
5680
    L = ['%s=%r' % (key, value)
5681
      for key, value in self.__dict__.iteritems()]
5682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5683
 
5684
  def __eq__(self, other):
5685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5686
 
5687
  def __ne__(self, other):
5688
    return not (self == other)
5689
 
559 chandransh 5690
class setUserAsLoggedIn_args:
94 ashish 5691
  """
5692
  Attributes:
559 chandransh 5693
   - userId
94 ashish 5694
   - timestamp
5695
  """
5696
 
5697
  thrift_spec = (
5698
    None, # 0
559 chandransh 5699
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5700
    (2, TType.I64, 'timestamp', None, None, ), # 2
5701
  )
5702
 
559 chandransh 5703
  def __init__(self, userId=None, timestamp=None,):
5704
    self.userId = userId
94 ashish 5705
    self.timestamp = timestamp
5706
 
5707
  def read(self, iprot):
5708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5710
      return
5711
    iprot.readStructBegin()
5712
    while True:
5713
      (fname, ftype, fid) = iprot.readFieldBegin()
5714
      if ftype == TType.STOP:
5715
        break
5716
      if fid == 1:
559 chandransh 5717
        if ftype == TType.I64:
5718
          self.userId = iprot.readI64();
94 ashish 5719
        else:
5720
          iprot.skip(ftype)
5721
      elif fid == 2:
5722
        if ftype == TType.I64:
5723
          self.timestamp = iprot.readI64();
5724
        else:
5725
          iprot.skip(ftype)
5726
      else:
5727
        iprot.skip(ftype)
5728
      iprot.readFieldEnd()
5729
    iprot.readStructEnd()
5730
 
5731
  def write(self, oprot):
5732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5734
      return
559 chandransh 5735
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5736
    if self.userId is not None:
559 chandransh 5737
      oprot.writeFieldBegin('userId', TType.I64, 1)
5738
      oprot.writeI64(self.userId)
94 ashish 5739
      oprot.writeFieldEnd()
3431 rajveer 5740
    if self.timestamp is not None:
94 ashish 5741
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5742
      oprot.writeI64(self.timestamp)
5743
      oprot.writeFieldEnd()
5744
    oprot.writeFieldStop()
5745
    oprot.writeStructEnd()
5746
 
3431 rajveer 5747
  def validate(self):
5748
    return
5749
 
5750
 
94 ashish 5751
  def __repr__(self):
5752
    L = ['%s=%r' % (key, value)
5753
      for key, value in self.__dict__.iteritems()]
5754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5755
 
5756
  def __eq__(self, other):
5757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5758
 
5759
  def __ne__(self, other):
5760
    return not (self == other)
5761
 
559 chandransh 5762
class setUserAsLoggedIn_result:
94 ashish 5763
  """
5764
  Attributes:
5765
   - success
5766
   - ucx
5767
  """
5768
 
5769
  thrift_spec = (
5770
    (0, TType.BOOL, 'success', None, None, ), # 0
5771
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5772
  )
5773
 
5774
  def __init__(self, success=None, ucx=None,):
5775
    self.success = success
5776
    self.ucx = ucx
5777
 
5778
  def read(self, iprot):
5779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5781
      return
5782
    iprot.readStructBegin()
5783
    while True:
5784
      (fname, ftype, fid) = iprot.readFieldBegin()
5785
      if ftype == TType.STOP:
5786
        break
5787
      if fid == 0:
5788
        if ftype == TType.BOOL:
5789
          self.success = iprot.readBool();
5790
        else:
5791
          iprot.skip(ftype)
5792
      elif fid == 1:
5793
        if ftype == TType.STRUCT:
5794
          self.ucx = UserContextException()
5795
          self.ucx.read(iprot)
5796
        else:
5797
          iprot.skip(ftype)
5798
      else:
5799
        iprot.skip(ftype)
5800
      iprot.readFieldEnd()
5801
    iprot.readStructEnd()
5802
 
5803
  def write(self, oprot):
5804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5806
      return
559 chandransh 5807
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5808
    if self.success is not None:
94 ashish 5809
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5810
      oprot.writeBool(self.success)
5811
      oprot.writeFieldEnd()
3431 rajveer 5812
    if self.ucx is not None:
94 ashish 5813
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5814
      self.ucx.write(oprot)
5815
      oprot.writeFieldEnd()
5816
    oprot.writeFieldStop()
5817
    oprot.writeStructEnd()
5818
 
3431 rajveer 5819
  def validate(self):
5820
    return
5821
 
5822
 
94 ashish 5823
  def __repr__(self):
5824
    L = ['%s=%r' % (key, value)
5825
      for key, value in self.__dict__.iteritems()]
5826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5827
 
5828
  def __eq__(self, other):
5829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5830
 
5831
  def __ne__(self, other):
5832
    return not (self == other)
5833
 
559 chandransh 5834
class setUserAsLoggedOut_args:
94 ashish 5835
  """
5836
  Attributes:
5837
   - userid
5838
   - timestamp
5839
  """
5840
 
5841
  thrift_spec = (
5842
    None, # 0
559 chandransh 5843
    (1, TType.I64, 'userid', None, None, ), # 1
5844
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5845
  )
5846
 
559 chandransh 5847
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5848
    self.userid = userid
5849
    self.timestamp = timestamp
5850
 
5851
  def read(self, iprot):
5852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5854
      return
5855
    iprot.readStructBegin()
5856
    while True:
5857
      (fname, ftype, fid) = iprot.readFieldBegin()
5858
      if ftype == TType.STOP:
5859
        break
5860
      if fid == 1:
5861
        if ftype == TType.I64:
5862
          self.userid = iprot.readI64();
5863
        else:
5864
          iprot.skip(ftype)
559 chandransh 5865
      elif fid == 2:
94 ashish 5866
        if ftype == TType.I64:
5867
          self.timestamp = iprot.readI64();
5868
        else:
5869
          iprot.skip(ftype)
5870
      else:
5871
        iprot.skip(ftype)
5872
      iprot.readFieldEnd()
5873
    iprot.readStructEnd()
5874
 
5875
  def write(self, oprot):
5876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5878
      return
559 chandransh 5879
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5880
    if self.userid is not None:
559 chandransh 5881
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5882
      oprot.writeI64(self.userid)
5883
      oprot.writeFieldEnd()
3431 rajveer 5884
    if self.timestamp is not None:
559 chandransh 5885
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5886
      oprot.writeI64(self.timestamp)
5887
      oprot.writeFieldEnd()
5888
    oprot.writeFieldStop()
5889
    oprot.writeStructEnd()
5890
 
3431 rajveer 5891
  def validate(self):
5892
    return
5893
 
5894
 
94 ashish 5895
  def __repr__(self):
5896
    L = ['%s=%r' % (key, value)
5897
      for key, value in self.__dict__.iteritems()]
5898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5899
 
5900
  def __eq__(self, other):
5901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5902
 
5903
  def __ne__(self, other):
5904
    return not (self == other)
5905
 
559 chandransh 5906
class setUserAsLoggedOut_result:
94 ashish 5907
  """
5908
  Attributes:
5909
   - success
5910
   - ucx
5911
  """
5912
 
5913
  thrift_spec = (
5914
    (0, TType.BOOL, 'success', None, None, ), # 0
5915
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5916
  )
5917
 
5918
  def __init__(self, success=None, ucx=None,):
5919
    self.success = success
5920
    self.ucx = ucx
5921
 
5922
  def read(self, iprot):
5923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5925
      return
5926
    iprot.readStructBegin()
5927
    while True:
5928
      (fname, ftype, fid) = iprot.readFieldBegin()
5929
      if ftype == TType.STOP:
5930
        break
5931
      if fid == 0:
5932
        if ftype == TType.BOOL:
5933
          self.success = iprot.readBool();
5934
        else:
5935
          iprot.skip(ftype)
5936
      elif fid == 1:
5937
        if ftype == TType.STRUCT:
5938
          self.ucx = UserContextException()
5939
          self.ucx.read(iprot)
5940
        else:
5941
          iprot.skip(ftype)
5942
      else:
5943
        iprot.skip(ftype)
5944
      iprot.readFieldEnd()
5945
    iprot.readStructEnd()
5946
 
5947
  def write(self, oprot):
5948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5950
      return
559 chandransh 5951
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5952
    if self.success is not None:
94 ashish 5953
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5954
      oprot.writeBool(self.success)
5955
      oprot.writeFieldEnd()
3431 rajveer 5956
    if self.ucx is not None:
94 ashish 5957
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5958
      self.ucx.write(oprot)
5959
      oprot.writeFieldEnd()
5960
    oprot.writeFieldStop()
5961
    oprot.writeStructEnd()
5962
 
3431 rajveer 5963
  def validate(self):
5964
    return
5965
 
5966
 
94 ashish 5967
  def __repr__(self):
5968
    L = ['%s=%r' % (key, value)
5969
      for key, value in self.__dict__.iteritems()]
5970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5971
 
5972
  def __eq__(self, other):
5973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5974
 
5975
  def __ne__(self, other):
5976
    return not (self == other)
5977
 
559 chandransh 5978
class setDefaultAddress_args:
94 ashish 5979
  """
5980
  Attributes:
5981
   - userid
5982
   - addressId
5983
  """
5984
 
5985
  thrift_spec = (
5986
    None, # 0
5987
    (1, TType.I64, 'userid', None, None, ), # 1
5988
    (2, TType.I64, 'addressId', None, None, ), # 2
5989
  )
5990
 
5991
  def __init__(self, userid=None, addressId=None,):
5992
    self.userid = userid
5993
    self.addressId = addressId
5994
 
5995
  def read(self, iprot):
5996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5998
      return
5999
    iprot.readStructBegin()
6000
    while True:
6001
      (fname, ftype, fid) = iprot.readFieldBegin()
6002
      if ftype == TType.STOP:
6003
        break
6004
      if fid == 1:
6005
        if ftype == TType.I64:
6006
          self.userid = iprot.readI64();
6007
        else:
6008
          iprot.skip(ftype)
6009
      elif fid == 2:
6010
        if ftype == TType.I64:
6011
          self.addressId = iprot.readI64();
6012
        else:
6013
          iprot.skip(ftype)
6014
      else:
6015
        iprot.skip(ftype)
6016
      iprot.readFieldEnd()
6017
    iprot.readStructEnd()
6018
 
6019
  def write(self, oprot):
6020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6022
      return
559 chandransh 6023
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 6024
    if self.userid is not None:
94 ashish 6025
      oprot.writeFieldBegin('userid', TType.I64, 1)
6026
      oprot.writeI64(self.userid)
6027
      oprot.writeFieldEnd()
3431 rajveer 6028
    if self.addressId is not None:
94 ashish 6029
      oprot.writeFieldBegin('addressId', TType.I64, 2)
6030
      oprot.writeI64(self.addressId)
6031
      oprot.writeFieldEnd()
6032
    oprot.writeFieldStop()
6033
    oprot.writeStructEnd()
6034
 
3431 rajveer 6035
  def validate(self):
6036
    return
6037
 
6038
 
94 ashish 6039
  def __repr__(self):
6040
    L = ['%s=%r' % (key, value)
6041
      for key, value in self.__dict__.iteritems()]
6042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6043
 
6044
  def __eq__(self, other):
6045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6046
 
6047
  def __ne__(self, other):
6048
    return not (self == other)
6049
 
559 chandransh 6050
class setDefaultAddress_result:
94 ashish 6051
  """
6052
  Attributes:
6053
   - success
6054
   - ucx
6055
  """
6056
 
6057
  thrift_spec = (
6058
    (0, TType.BOOL, 'success', None, None, ), # 0
6059
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6060
  )
6061
 
6062
  def __init__(self, success=None, ucx=None,):
6063
    self.success = success
6064
    self.ucx = ucx
6065
 
6066
  def read(self, iprot):
6067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6069
      return
6070
    iprot.readStructBegin()
6071
    while True:
6072
      (fname, ftype, fid) = iprot.readFieldBegin()
6073
      if ftype == TType.STOP:
6074
        break
6075
      if fid == 0:
6076
        if ftype == TType.BOOL:
6077
          self.success = iprot.readBool();
6078
        else:
6079
          iprot.skip(ftype)
6080
      elif fid == 1:
6081
        if ftype == TType.STRUCT:
6082
          self.ucx = UserContextException()
6083
          self.ucx.read(iprot)
6084
        else:
6085
          iprot.skip(ftype)
6086
      else:
6087
        iprot.skip(ftype)
6088
      iprot.readFieldEnd()
6089
    iprot.readStructEnd()
6090
 
6091
  def write(self, oprot):
6092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6094
      return
559 chandransh 6095
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6096
    if self.success is not None:
94 ashish 6097
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6098
      oprot.writeBool(self.success)
6099
      oprot.writeFieldEnd()
3431 rajveer 6100
    if self.ucx is not None:
94 ashish 6101
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6102
      self.ucx.write(oprot)
6103
      oprot.writeFieldEnd()
6104
    oprot.writeFieldStop()
6105
    oprot.writeStructEnd()
6106
 
3431 rajveer 6107
  def validate(self):
6108
    return
6109
 
6110
 
94 ashish 6111
  def __repr__(self):
6112
    L = ['%s=%r' % (key, value)
6113
      for key, value in self.__dict__.iteritems()]
6114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6115
 
6116
  def __eq__(self, other):
6117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6118
 
6119
  def __ne__(self, other):
6120
    return not (self == other)
6121
 
559 chandransh 6122
class updatePassword_args:
94 ashish 6123
  """
6124
  Attributes:
559 chandransh 6125
   - userid
594 rajveer 6126
   - oldPassword
6127
   - newPassword
94 ashish 6128
  """
6129
 
6130
  thrift_spec = (
6131
    None, # 0
559 chandransh 6132
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6133
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6134
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6135
  )
6136
 
594 rajveer 6137
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6138
    self.userid = userid
594 rajveer 6139
    self.oldPassword = oldPassword
6140
    self.newPassword = newPassword
94 ashish 6141
 
6142
  def read(self, iprot):
6143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6145
      return
6146
    iprot.readStructBegin()
6147
    while True:
6148
      (fname, ftype, fid) = iprot.readFieldBegin()
6149
      if ftype == TType.STOP:
6150
        break
6151
      if fid == 1:
6152
        if ftype == TType.I64:
559 chandransh 6153
          self.userid = iprot.readI64();
94 ashish 6154
        else:
6155
          iprot.skip(ftype)
6156
      elif fid == 2:
559 chandransh 6157
        if ftype == TType.STRING:
594 rajveer 6158
          self.oldPassword = iprot.readString();
94 ashish 6159
        else:
6160
          iprot.skip(ftype)
594 rajveer 6161
      elif fid == 3:
6162
        if ftype == TType.STRING:
6163
          self.newPassword = iprot.readString();
6164
        else:
6165
          iprot.skip(ftype)
94 ashish 6166
      else:
6167
        iprot.skip(ftype)
6168
      iprot.readFieldEnd()
6169
    iprot.readStructEnd()
6170
 
6171
  def write(self, oprot):
6172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6174
      return
559 chandransh 6175
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6176
    if self.userid is not None:
559 chandransh 6177
      oprot.writeFieldBegin('userid', TType.I64, 1)
6178
      oprot.writeI64(self.userid)
94 ashish 6179
      oprot.writeFieldEnd()
3431 rajveer 6180
    if self.oldPassword is not None:
594 rajveer 6181
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6182
      oprot.writeString(self.oldPassword)
94 ashish 6183
      oprot.writeFieldEnd()
3431 rajveer 6184
    if self.newPassword is not None:
594 rajveer 6185
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6186
      oprot.writeString(self.newPassword)
6187
      oprot.writeFieldEnd()
94 ashish 6188
    oprot.writeFieldStop()
6189
    oprot.writeStructEnd()
6190
 
3431 rajveer 6191
  def validate(self):
6192
    return
6193
 
6194
 
94 ashish 6195
  def __repr__(self):
6196
    L = ['%s=%r' % (key, value)
6197
      for key, value in self.__dict__.iteritems()]
6198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6199
 
6200
  def __eq__(self, other):
6201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6202
 
6203
  def __ne__(self, other):
6204
    return not (self == other)
6205
 
559 chandransh 6206
class updatePassword_result:
94 ashish 6207
  """
6208
  Attributes:
6209
   - success
6210
   - ucx
6211
  """
6212
 
6213
  thrift_spec = (
6214
    (0, TType.BOOL, 'success', None, None, ), # 0
6215
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6216
  )
6217
 
6218
  def __init__(self, success=None, ucx=None,):
6219
    self.success = success
6220
    self.ucx = ucx
6221
 
6222
  def read(self, iprot):
6223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6225
      return
6226
    iprot.readStructBegin()
6227
    while True:
6228
      (fname, ftype, fid) = iprot.readFieldBegin()
6229
      if ftype == TType.STOP:
6230
        break
6231
      if fid == 0:
6232
        if ftype == TType.BOOL:
6233
          self.success = iprot.readBool();
6234
        else:
6235
          iprot.skip(ftype)
6236
      elif fid == 1:
6237
        if ftype == TType.STRUCT:
6238
          self.ucx = UserContextException()
6239
          self.ucx.read(iprot)
6240
        else:
6241
          iprot.skip(ftype)
6242
      else:
6243
        iprot.skip(ftype)
6244
      iprot.readFieldEnd()
6245
    iprot.readStructEnd()
6246
 
6247
  def write(self, oprot):
6248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6250
      return
559 chandransh 6251
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6252
    if self.success is not None:
94 ashish 6253
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6254
      oprot.writeBool(self.success)
6255
      oprot.writeFieldEnd()
3431 rajveer 6256
    if self.ucx is not None:
94 ashish 6257
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6258
      self.ucx.write(oprot)
6259
      oprot.writeFieldEnd()
6260
    oprot.writeFieldStop()
6261
    oprot.writeStructEnd()
6262
 
3431 rajveer 6263
  def validate(self):
6264
    return
6265
 
6266
 
94 ashish 6267
  def __repr__(self):
6268
    L = ['%s=%r' % (key, value)
6269
      for key, value in self.__dict__.iteritems()]
6270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6271
 
6272
  def __eq__(self, other):
6273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6274
 
6275
  def __ne__(self, other):
6276
    return not (self == other)
6277
 
581 rajveer 6278
class forgotPassword_args:
6279
  """
6280
  Attributes:
6281
   - email
884 rajveer 6282
   - newPassword
581 rajveer 6283
  """
6284
 
6285
  thrift_spec = (
6286
    None, # 0
6287
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6288
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6289
  )
6290
 
884 rajveer 6291
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6292
    self.email = email
884 rajveer 6293
    self.newPassword = newPassword
581 rajveer 6294
 
6295
  def read(self, iprot):
6296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6298
      return
6299
    iprot.readStructBegin()
6300
    while True:
6301
      (fname, ftype, fid) = iprot.readFieldBegin()
6302
      if ftype == TType.STOP:
6303
        break
6304
      if fid == 1:
6305
        if ftype == TType.STRING:
6306
          self.email = iprot.readString();
6307
        else:
6308
          iprot.skip(ftype)
884 rajveer 6309
      elif fid == 2:
6310
        if ftype == TType.STRING:
6311
          self.newPassword = iprot.readString();
6312
        else:
6313
          iprot.skip(ftype)
581 rajveer 6314
      else:
6315
        iprot.skip(ftype)
6316
      iprot.readFieldEnd()
6317
    iprot.readStructEnd()
6318
 
6319
  def write(self, oprot):
6320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6322
      return
6323
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6324
    if self.email is not None:
581 rajveer 6325
      oprot.writeFieldBegin('email', TType.STRING, 1)
6326
      oprot.writeString(self.email)
6327
      oprot.writeFieldEnd()
3431 rajveer 6328
    if self.newPassword is not None:
884 rajveer 6329
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6330
      oprot.writeString(self.newPassword)
6331
      oprot.writeFieldEnd()
581 rajveer 6332
    oprot.writeFieldStop()
6333
    oprot.writeStructEnd()
6334
 
3431 rajveer 6335
  def validate(self):
6336
    return
6337
 
6338
 
581 rajveer 6339
  def __repr__(self):
6340
    L = ['%s=%r' % (key, value)
6341
      for key, value in self.__dict__.iteritems()]
6342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6343
 
6344
  def __eq__(self, other):
6345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6346
 
6347
  def __ne__(self, other):
6348
    return not (self == other)
6349
 
6350
class forgotPassword_result:
6351
  """
6352
  Attributes:
6353
   - success
6354
   - ucx
6355
  """
6356
 
6357
  thrift_spec = (
6358
    (0, TType.BOOL, 'success', None, None, ), # 0
6359
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6360
  )
6361
 
6362
  def __init__(self, success=None, ucx=None,):
6363
    self.success = success
6364
    self.ucx = ucx
6365
 
6366
  def read(self, iprot):
6367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6369
      return
6370
    iprot.readStructBegin()
6371
    while True:
6372
      (fname, ftype, fid) = iprot.readFieldBegin()
6373
      if ftype == TType.STOP:
6374
        break
6375
      if fid == 0:
6376
        if ftype == TType.BOOL:
6377
          self.success = iprot.readBool();
6378
        else:
6379
          iprot.skip(ftype)
6380
      elif fid == 1:
6381
        if ftype == TType.STRUCT:
6382
          self.ucx = UserContextException()
6383
          self.ucx.read(iprot)
6384
        else:
6385
          iprot.skip(ftype)
6386
      else:
6387
        iprot.skip(ftype)
6388
      iprot.readFieldEnd()
6389
    iprot.readStructEnd()
6390
 
6391
  def write(self, oprot):
6392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6394
      return
6395
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6396
    if self.success is not None:
581 rajveer 6397
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6398
      oprot.writeBool(self.success)
6399
      oprot.writeFieldEnd()
3431 rajveer 6400
    if self.ucx is not None:
581 rajveer 6401
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6402
      self.ucx.write(oprot)
6403
      oprot.writeFieldEnd()
6404
    oprot.writeFieldStop()
6405
    oprot.writeStructEnd()
6406
 
3431 rajveer 6407
  def validate(self):
6408
    return
6409
 
6410
 
581 rajveer 6411
  def __repr__(self):
6412
    L = ['%s=%r' % (key, value)
6413
      for key, value in self.__dict__.iteritems()]
6414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6415
 
6416
  def __eq__(self, other):
6417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6418
 
6419
  def __ne__(self, other):
6420
    return not (self == other)
6421
 
594 rajveer 6422
class getAllAddressesForUser_args:
6423
  """
6424
  Attributes:
6425
   - userId
6426
  """
6427
 
6428
  thrift_spec = (
6429
    None, # 0
6430
    (1, TType.I64, 'userId', None, None, ), # 1
6431
  )
6432
 
6433
  def __init__(self, userId=None,):
6434
    self.userId = userId
6435
 
6436
  def read(self, iprot):
6437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6439
      return
6440
    iprot.readStructBegin()
6441
    while True:
6442
      (fname, ftype, fid) = iprot.readFieldBegin()
6443
      if ftype == TType.STOP:
6444
        break
6445
      if fid == 1:
6446
        if ftype == TType.I64:
6447
          self.userId = iprot.readI64();
6448
        else:
6449
          iprot.skip(ftype)
6450
      else:
6451
        iprot.skip(ftype)
6452
      iprot.readFieldEnd()
6453
    iprot.readStructEnd()
6454
 
6455
  def write(self, oprot):
6456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6458
      return
6459
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6460
    if self.userId is not None:
594 rajveer 6461
      oprot.writeFieldBegin('userId', TType.I64, 1)
6462
      oprot.writeI64(self.userId)
6463
      oprot.writeFieldEnd()
6464
    oprot.writeFieldStop()
6465
    oprot.writeStructEnd()
6466
 
3431 rajveer 6467
  def validate(self):
6468
    return
6469
 
6470
 
594 rajveer 6471
  def __repr__(self):
6472
    L = ['%s=%r' % (key, value)
6473
      for key, value in self.__dict__.iteritems()]
6474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6475
 
6476
  def __eq__(self, other):
6477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6478
 
6479
  def __ne__(self, other):
6480
    return not (self == other)
6481
 
6482
class getAllAddressesForUser_result:
6483
  """
6484
  Attributes:
6485
   - success
6486
   - ucx
6487
  """
6488
 
6489
  thrift_spec = (
6490
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6491
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6492
  )
6493
 
6494
  def __init__(self, success=None, ucx=None,):
6495
    self.success = success
6496
    self.ucx = ucx
6497
 
6498
  def read(self, iprot):
6499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6501
      return
6502
    iprot.readStructBegin()
6503
    while True:
6504
      (fname, ftype, fid) = iprot.readFieldBegin()
6505
      if ftype == TType.STOP:
6506
        break
6507
      if fid == 0:
6508
        if ftype == TType.LIST:
6509
          self.success = []
3554 varun.gupt 6510
          (_etype45, _size42) = iprot.readListBegin()
6511
          for _i46 in xrange(_size42):
6512
            _elem47 = Address()
6513
            _elem47.read(iprot)
6514
            self.success.append(_elem47)
594 rajveer 6515
          iprot.readListEnd()
6516
        else:
6517
          iprot.skip(ftype)
6518
      elif fid == 1:
6519
        if ftype == TType.STRUCT:
6520
          self.ucx = UserContextException()
6521
          self.ucx.read(iprot)
6522
        else:
6523
          iprot.skip(ftype)
6524
      else:
6525
        iprot.skip(ftype)
6526
      iprot.readFieldEnd()
6527
    iprot.readStructEnd()
6528
 
6529
  def write(self, oprot):
6530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6532
      return
6533
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6534
    if self.success is not None:
594 rajveer 6535
      oprot.writeFieldBegin('success', TType.LIST, 0)
6536
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 6537
      for iter48 in self.success:
6538
        iter48.write(oprot)
594 rajveer 6539
      oprot.writeListEnd()
6540
      oprot.writeFieldEnd()
3431 rajveer 6541
    if self.ucx is not None:
594 rajveer 6542
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6543
      self.ucx.write(oprot)
6544
      oprot.writeFieldEnd()
6545
    oprot.writeFieldStop()
6546
    oprot.writeStructEnd()
6547
 
3431 rajveer 6548
  def validate(self):
6549
    return
6550
 
6551
 
594 rajveer 6552
  def __repr__(self):
6553
    L = ['%s=%r' % (key, value)
6554
      for key, value in self.__dict__.iteritems()]
6555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6556
 
6557
  def __eq__(self, other):
6558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6559
 
6560
  def __ne__(self, other):
6561
    return not (self == other)
6562
 
1894 vikas 6563
class getAddressById_args:
6564
  """
6565
  Attributes:
6566
   - addressId
6567
  """
6568
 
6569
  thrift_spec = (
6570
    None, # 0
6571
    (1, TType.I64, 'addressId', None, None, ), # 1
6572
  )
6573
 
6574
  def __init__(self, addressId=None,):
6575
    self.addressId = addressId
6576
 
6577
  def read(self, iprot):
6578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6580
      return
6581
    iprot.readStructBegin()
6582
    while True:
6583
      (fname, ftype, fid) = iprot.readFieldBegin()
6584
      if ftype == TType.STOP:
6585
        break
6586
      if fid == 1:
6587
        if ftype == TType.I64:
6588
          self.addressId = iprot.readI64();
6589
        else:
6590
          iprot.skip(ftype)
6591
      else:
6592
        iprot.skip(ftype)
6593
      iprot.readFieldEnd()
6594
    iprot.readStructEnd()
6595
 
6596
  def write(self, oprot):
6597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6599
      return
6600
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6601
    if self.addressId is not None:
1894 vikas 6602
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6603
      oprot.writeI64(self.addressId)
6604
      oprot.writeFieldEnd()
6605
    oprot.writeFieldStop()
6606
    oprot.writeStructEnd()
6607
 
3431 rajveer 6608
  def validate(self):
6609
    return
6610
 
6611
 
1894 vikas 6612
  def __repr__(self):
6613
    L = ['%s=%r' % (key, value)
6614
      for key, value in self.__dict__.iteritems()]
6615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6616
 
6617
  def __eq__(self, other):
6618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6619
 
6620
  def __ne__(self, other):
6621
    return not (self == other)
6622
 
6623
class getAddressById_result:
6624
  """
6625
  Attributes:
6626
   - success
6627
   - ucx
6628
  """
6629
 
6630
  thrift_spec = (
6631
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6632
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6633
  )
6634
 
6635
  def __init__(self, success=None, ucx=None,):
6636
    self.success = success
6637
    self.ucx = ucx
6638
 
6639
  def read(self, iprot):
6640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6642
      return
6643
    iprot.readStructBegin()
6644
    while True:
6645
      (fname, ftype, fid) = iprot.readFieldBegin()
6646
      if ftype == TType.STOP:
6647
        break
6648
      if fid == 0:
6649
        if ftype == TType.STRUCT:
6650
          self.success = Address()
6651
          self.success.read(iprot)
6652
        else:
6653
          iprot.skip(ftype)
6654
      elif fid == 1:
6655
        if ftype == TType.STRUCT:
6656
          self.ucx = UserContextException()
6657
          self.ucx.read(iprot)
6658
        else:
6659
          iprot.skip(ftype)
6660
      else:
6661
        iprot.skip(ftype)
6662
      iprot.readFieldEnd()
6663
    iprot.readStructEnd()
6664
 
6665
  def write(self, oprot):
6666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6668
      return
6669
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6670
    if self.success is not None:
1894 vikas 6671
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6672
      self.success.write(oprot)
6673
      oprot.writeFieldEnd()
3431 rajveer 6674
    if self.ucx is not None:
1894 vikas 6675
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6676
      self.ucx.write(oprot)
6677
      oprot.writeFieldEnd()
6678
    oprot.writeFieldStop()
6679
    oprot.writeStructEnd()
6680
 
3431 rajveer 6681
  def validate(self):
6682
    return
6683
 
6684
 
1894 vikas 6685
  def __repr__(self):
6686
    L = ['%s=%r' % (key, value)
6687
      for key, value in self.__dict__.iteritems()]
6688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6689
 
6690
  def __eq__(self, other):
6691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6692
 
6693
  def __ne__(self, other):
6694
    return not (self == other)
6695
 
594 rajveer 6696
class getDefaultAddressId_args:
6697
  """
6698
  Attributes:
6699
   - userId
6700
  """
6701
 
6702
  thrift_spec = (
6703
    None, # 0
6704
    (1, TType.I64, 'userId', None, None, ), # 1
6705
  )
6706
 
6707
  def __init__(self, userId=None,):
6708
    self.userId = userId
6709
 
6710
  def read(self, iprot):
6711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6713
      return
6714
    iprot.readStructBegin()
6715
    while True:
6716
      (fname, ftype, fid) = iprot.readFieldBegin()
6717
      if ftype == TType.STOP:
6718
        break
6719
      if fid == 1:
6720
        if ftype == TType.I64:
6721
          self.userId = iprot.readI64();
6722
        else:
6723
          iprot.skip(ftype)
6724
      else:
6725
        iprot.skip(ftype)
6726
      iprot.readFieldEnd()
6727
    iprot.readStructEnd()
6728
 
6729
  def write(self, oprot):
6730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6732
      return
6733
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6734
    if self.userId is not None:
594 rajveer 6735
      oprot.writeFieldBegin('userId', TType.I64, 1)
6736
      oprot.writeI64(self.userId)
6737
      oprot.writeFieldEnd()
6738
    oprot.writeFieldStop()
6739
    oprot.writeStructEnd()
6740
 
3431 rajveer 6741
  def validate(self):
6742
    return
6743
 
6744
 
594 rajveer 6745
  def __repr__(self):
6746
    L = ['%s=%r' % (key, value)
6747
      for key, value in self.__dict__.iteritems()]
6748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6749
 
6750
  def __eq__(self, other):
6751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6752
 
6753
  def __ne__(self, other):
6754
    return not (self == other)
6755
 
6756
class getDefaultAddressId_result:
6757
  """
6758
  Attributes:
6759
   - success
6760
   - ucx
6761
  """
6762
 
6763
  thrift_spec = (
6764
    (0, TType.I64, 'success', None, None, ), # 0
6765
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6766
  )
6767
 
6768
  def __init__(self, success=None, ucx=None,):
6769
    self.success = success
6770
    self.ucx = ucx
6771
 
6772
  def read(self, iprot):
6773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6775
      return
6776
    iprot.readStructBegin()
6777
    while True:
6778
      (fname, ftype, fid) = iprot.readFieldBegin()
6779
      if ftype == TType.STOP:
6780
        break
6781
      if fid == 0:
6782
        if ftype == TType.I64:
6783
          self.success = iprot.readI64();
6784
        else:
6785
          iprot.skip(ftype)
6786
      elif fid == 1:
6787
        if ftype == TType.STRUCT:
6788
          self.ucx = UserContextException()
6789
          self.ucx.read(iprot)
6790
        else:
6791
          iprot.skip(ftype)
6792
      else:
6793
        iprot.skip(ftype)
6794
      iprot.readFieldEnd()
6795
    iprot.readStructEnd()
6796
 
6797
  def write(self, oprot):
6798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6800
      return
6801
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6802
    if self.success is not None:
594 rajveer 6803
      oprot.writeFieldBegin('success', TType.I64, 0)
6804
      oprot.writeI64(self.success)
6805
      oprot.writeFieldEnd()
3431 rajveer 6806
    if self.ucx is not None:
594 rajveer 6807
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6808
      self.ucx.write(oprot)
6809
      oprot.writeFieldEnd()
6810
    oprot.writeFieldStop()
6811
    oprot.writeStructEnd()
6812
 
3431 rajveer 6813
  def validate(self):
6814
    return
6815
 
6816
 
594 rajveer 6817
  def __repr__(self):
6818
    L = ['%s=%r' % (key, value)
6819
      for key, value in self.__dict__.iteritems()]
6820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6821
 
6822
  def __eq__(self, other):
6823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6824
 
6825
  def __ne__(self, other):
6826
    return not (self == other)
6827
 
785 rajveer 6828
class getDefaultPincode_args:
6829
  """
6830
  Attributes:
6831
   - userId
6832
  """
6833
 
6834
  thrift_spec = (
6835
    None, # 0
6836
    (1, TType.I64, 'userId', None, None, ), # 1
6837
  )
6838
 
6839
  def __init__(self, userId=None,):
6840
    self.userId = userId
6841
 
6842
  def read(self, iprot):
6843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6845
      return
6846
    iprot.readStructBegin()
6847
    while True:
6848
      (fname, ftype, fid) = iprot.readFieldBegin()
6849
      if ftype == TType.STOP:
6850
        break
6851
      if fid == 1:
6852
        if ftype == TType.I64:
6853
          self.userId = iprot.readI64();
6854
        else:
6855
          iprot.skip(ftype)
6856
      else:
6857
        iprot.skip(ftype)
6858
      iprot.readFieldEnd()
6859
    iprot.readStructEnd()
6860
 
6861
  def write(self, oprot):
6862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6864
      return
6865
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6866
    if self.userId is not None:
785 rajveer 6867
      oprot.writeFieldBegin('userId', TType.I64, 1)
6868
      oprot.writeI64(self.userId)
6869
      oprot.writeFieldEnd()
6870
    oprot.writeFieldStop()
6871
    oprot.writeStructEnd()
6872
 
3431 rajveer 6873
  def validate(self):
6874
    return
6875
 
6876
 
785 rajveer 6877
  def __repr__(self):
6878
    L = ['%s=%r' % (key, value)
6879
      for key, value in self.__dict__.iteritems()]
6880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6881
 
6882
  def __eq__(self, other):
6883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6884
 
6885
  def __ne__(self, other):
6886
    return not (self == other)
6887
 
6888
class getDefaultPincode_result:
6889
  """
6890
  Attributes:
6891
   - success
6892
   - ucx
6893
  """
6894
 
6895
  thrift_spec = (
6896
    (0, TType.STRING, 'success', None, None, ), # 0
6897
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6898
  )
6899
 
6900
  def __init__(self, success=None, ucx=None,):
6901
    self.success = success
6902
    self.ucx = ucx
6903
 
6904
  def read(self, iprot):
6905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6907
      return
6908
    iprot.readStructBegin()
6909
    while True:
6910
      (fname, ftype, fid) = iprot.readFieldBegin()
6911
      if ftype == TType.STOP:
6912
        break
6913
      if fid == 0:
6914
        if ftype == TType.STRING:
6915
          self.success = iprot.readString();
6916
        else:
6917
          iprot.skip(ftype)
6918
      elif fid == 1:
6919
        if ftype == TType.STRUCT:
6920
          self.ucx = UserContextException()
6921
          self.ucx.read(iprot)
6922
        else:
6923
          iprot.skip(ftype)
6924
      else:
6925
        iprot.skip(ftype)
6926
      iprot.readFieldEnd()
6927
    iprot.readStructEnd()
6928
 
6929
  def write(self, oprot):
6930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6932
      return
6933
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6934
    if self.success is not None:
785 rajveer 6935
      oprot.writeFieldBegin('success', TType.STRING, 0)
6936
      oprot.writeString(self.success)
6937
      oprot.writeFieldEnd()
3431 rajveer 6938
    if self.ucx is not None:
785 rajveer 6939
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6940
      self.ucx.write(oprot)
6941
      oprot.writeFieldEnd()
6942
    oprot.writeFieldStop()
6943
    oprot.writeStructEnd()
6944
 
3431 rajveer 6945
  def validate(self):
6946
    return
6947
 
6948
 
785 rajveer 6949
  def __repr__(self):
6950
    L = ['%s=%r' % (key, value)
6951
      for key, value in self.__dict__.iteritems()]
6952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6953
 
6954
  def __eq__(self, other):
6955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6956
 
6957
  def __ne__(self, other):
6958
    return not (self == other)
6959
 
1274 varun.gupt 6960
class saveUserCommunication_args:
6961
  """
6962
  Attributes:
6963
   - userId
6964
   - replyTo
6965
   - communicationType
6966
   - orderId
6967
   - airwaybillNo
6968
   - productName
6969
   - subject
6970
   - message
6971
  """
6972
 
6973
  thrift_spec = (
6974
    None, # 0
6975
    (1, TType.I64, 'userId', None, None, ), # 1
6976
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6977
    (3, TType.I64, 'communicationType', None, None, ), # 3
6978
    (4, TType.I64, 'orderId', None, None, ), # 4
6979
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6980
    (6, TType.STRING, 'productName', None, None, ), # 6
6981
    (7, TType.STRING, 'subject', None, None, ), # 7
6982
    (8, TType.STRING, 'message', None, None, ), # 8
6983
  )
6984
 
6985
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6986
    self.userId = userId
6987
    self.replyTo = replyTo
6988
    self.communicationType = communicationType
6989
    self.orderId = orderId
6990
    self.airwaybillNo = airwaybillNo
6991
    self.productName = productName
6992
    self.subject = subject
6993
    self.message = message
6994
 
6995
  def read(self, iprot):
6996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6998
      return
6999
    iprot.readStructBegin()
7000
    while True:
7001
      (fname, ftype, fid) = iprot.readFieldBegin()
7002
      if ftype == TType.STOP:
7003
        break
7004
      if fid == 1:
7005
        if ftype == TType.I64:
7006
          self.userId = iprot.readI64();
7007
        else:
7008
          iprot.skip(ftype)
7009
      elif fid == 2:
7010
        if ftype == TType.STRING:
7011
          self.replyTo = iprot.readString();
7012
        else:
7013
          iprot.skip(ftype)
7014
      elif fid == 3:
7015
        if ftype == TType.I64:
7016
          self.communicationType = iprot.readI64();
7017
        else:
7018
          iprot.skip(ftype)
7019
      elif fid == 4:
7020
        if ftype == TType.I64:
7021
          self.orderId = iprot.readI64();
7022
        else:
7023
          iprot.skip(ftype)
7024
      elif fid == 5:
7025
        if ftype == TType.STRING:
7026
          self.airwaybillNo = iprot.readString();
7027
        else:
7028
          iprot.skip(ftype)
7029
      elif fid == 6:
7030
        if ftype == TType.STRING:
7031
          self.productName = iprot.readString();
7032
        else:
7033
          iprot.skip(ftype)
7034
      elif fid == 7:
7035
        if ftype == TType.STRING:
7036
          self.subject = iprot.readString();
7037
        else:
7038
          iprot.skip(ftype)
7039
      elif fid == 8:
7040
        if ftype == TType.STRING:
7041
          self.message = iprot.readString();
7042
        else:
7043
          iprot.skip(ftype)
7044
      else:
7045
        iprot.skip(ftype)
7046
      iprot.readFieldEnd()
7047
    iprot.readStructEnd()
7048
 
7049
  def write(self, oprot):
7050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7052
      return
7053
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7054
    if self.userId is not None:
1274 varun.gupt 7055
      oprot.writeFieldBegin('userId', TType.I64, 1)
7056
      oprot.writeI64(self.userId)
7057
      oprot.writeFieldEnd()
3431 rajveer 7058
    if self.replyTo is not None:
1274 varun.gupt 7059
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7060
      oprot.writeString(self.replyTo)
7061
      oprot.writeFieldEnd()
3431 rajveer 7062
    if self.communicationType is not None:
1274 varun.gupt 7063
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7064
      oprot.writeI64(self.communicationType)
7065
      oprot.writeFieldEnd()
3431 rajveer 7066
    if self.orderId is not None:
1274 varun.gupt 7067
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7068
      oprot.writeI64(self.orderId)
7069
      oprot.writeFieldEnd()
3431 rajveer 7070
    if self.airwaybillNo is not None:
1274 varun.gupt 7071
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7072
      oprot.writeString(self.airwaybillNo)
7073
      oprot.writeFieldEnd()
3431 rajveer 7074
    if self.productName is not None:
1274 varun.gupt 7075
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7076
      oprot.writeString(self.productName)
7077
      oprot.writeFieldEnd()
3431 rajveer 7078
    if self.subject is not None:
1274 varun.gupt 7079
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7080
      oprot.writeString(self.subject)
7081
      oprot.writeFieldEnd()
3431 rajveer 7082
    if self.message is not None:
1274 varun.gupt 7083
      oprot.writeFieldBegin('message', TType.STRING, 8)
7084
      oprot.writeString(self.message)
7085
      oprot.writeFieldEnd()
7086
    oprot.writeFieldStop()
7087
    oprot.writeStructEnd()
7088
 
3431 rajveer 7089
  def validate(self):
7090
    return
7091
 
7092
 
1274 varun.gupt 7093
  def __repr__(self):
7094
    L = ['%s=%r' % (key, value)
7095
      for key, value in self.__dict__.iteritems()]
7096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7097
 
7098
  def __eq__(self, other):
7099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7100
 
7101
  def __ne__(self, other):
7102
    return not (self == other)
7103
 
7104
class saveUserCommunication_result:
7105
  """
7106
  Attributes:
7107
   - success
7108
   - ucx
7109
  """
7110
 
7111
  thrift_spec = (
7112
    (0, TType.BOOL, 'success', None, None, ), # 0
7113
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7114
  )
7115
 
7116
  def __init__(self, success=None, ucx=None,):
7117
    self.success = success
7118
    self.ucx = ucx
7119
 
7120
  def read(self, iprot):
7121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7123
      return
7124
    iprot.readStructBegin()
7125
    while True:
7126
      (fname, ftype, fid) = iprot.readFieldBegin()
7127
      if ftype == TType.STOP:
7128
        break
7129
      if fid == 0:
7130
        if ftype == TType.BOOL:
7131
          self.success = iprot.readBool();
7132
        else:
7133
          iprot.skip(ftype)
7134
      elif fid == 1:
7135
        if ftype == TType.STRUCT:
7136
          self.ucx = UserCommunicationException()
7137
          self.ucx.read(iprot)
7138
        else:
7139
          iprot.skip(ftype)
7140
      else:
7141
        iprot.skip(ftype)
7142
      iprot.readFieldEnd()
7143
    iprot.readStructEnd()
7144
 
7145
  def write(self, oprot):
7146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7148
      return
7149
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7150
    if self.success is not None:
1274 varun.gupt 7151
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7152
      oprot.writeBool(self.success)
7153
      oprot.writeFieldEnd()
3431 rajveer 7154
    if self.ucx is not None:
1274 varun.gupt 7155
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7156
      self.ucx.write(oprot)
7157
      oprot.writeFieldEnd()
7158
    oprot.writeFieldStop()
7159
    oprot.writeStructEnd()
7160
 
3431 rajveer 7161
  def validate(self):
7162
    return
7163
 
7164
 
1274 varun.gupt 7165
  def __repr__(self):
7166
    L = ['%s=%r' % (key, value)
7167
      for key, value in self.__dict__.iteritems()]
7168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7169
 
7170
  def __eq__(self, other):
7171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7172
 
7173
  def __ne__(self, other):
7174
    return not (self == other)
7175
 
1590 varun.gupt 7176
class getUserCommunicationById_args:
7177
  """
7178
  Attributes:
7179
   - id
7180
  """
7181
 
7182
  thrift_spec = (
7183
    None, # 0
7184
    (1, TType.I64, 'id', None, None, ), # 1
7185
  )
7186
 
7187
  def __init__(self, id=None,):
7188
    self.id = id
7189
 
7190
  def read(self, iprot):
7191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7193
      return
7194
    iprot.readStructBegin()
7195
    while True:
7196
      (fname, ftype, fid) = iprot.readFieldBegin()
7197
      if ftype == TType.STOP:
7198
        break
7199
      if fid == 1:
7200
        if ftype == TType.I64:
7201
          self.id = iprot.readI64();
7202
        else:
7203
          iprot.skip(ftype)
7204
      else:
7205
        iprot.skip(ftype)
7206
      iprot.readFieldEnd()
7207
    iprot.readStructEnd()
7208
 
7209
  def write(self, oprot):
7210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7212
      return
7213
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7214
    if self.id is not None:
1590 varun.gupt 7215
      oprot.writeFieldBegin('id', TType.I64, 1)
7216
      oprot.writeI64(self.id)
7217
      oprot.writeFieldEnd()
7218
    oprot.writeFieldStop()
7219
    oprot.writeStructEnd()
7220
 
3431 rajveer 7221
  def validate(self):
7222
    return
7223
 
7224
 
1590 varun.gupt 7225
  def __repr__(self):
7226
    L = ['%s=%r' % (key, value)
7227
      for key, value in self.__dict__.iteritems()]
7228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7229
 
7230
  def __eq__(self, other):
7231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7232
 
7233
  def __ne__(self, other):
7234
    return not (self == other)
7235
 
7236
class getUserCommunicationById_result:
7237
  """
7238
  Attributes:
7239
   - success
7240
   - ucx
7241
  """
7242
 
7243
  thrift_spec = (
7244
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7245
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7246
  )
7247
 
7248
  def __init__(self, success=None, ucx=None,):
7249
    self.success = success
7250
    self.ucx = ucx
7251
 
7252
  def read(self, iprot):
7253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7255
      return
7256
    iprot.readStructBegin()
7257
    while True:
7258
      (fname, ftype, fid) = iprot.readFieldBegin()
7259
      if ftype == TType.STOP:
7260
        break
7261
      if fid == 0:
7262
        if ftype == TType.STRUCT:
7263
          self.success = UserCommunication()
7264
          self.success.read(iprot)
7265
        else:
7266
          iprot.skip(ftype)
7267
      elif fid == 1:
7268
        if ftype == TType.STRUCT:
7269
          self.ucx = UserCommunicationException()
7270
          self.ucx.read(iprot)
7271
        else:
7272
          iprot.skip(ftype)
7273
      else:
7274
        iprot.skip(ftype)
7275
      iprot.readFieldEnd()
7276
    iprot.readStructEnd()
7277
 
7278
  def write(self, oprot):
7279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7281
      return
7282
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7283
    if self.success is not None:
1590 varun.gupt 7284
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7285
      self.success.write(oprot)
7286
      oprot.writeFieldEnd()
3431 rajveer 7287
    if self.ucx is not None:
1590 varun.gupt 7288
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7289
      self.ucx.write(oprot)
7290
      oprot.writeFieldEnd()
7291
    oprot.writeFieldStop()
7292
    oprot.writeStructEnd()
7293
 
3431 rajveer 7294
  def validate(self):
7295
    return
7296
 
7297
 
1590 varun.gupt 7298
  def __repr__(self):
7299
    L = ['%s=%r' % (key, value)
7300
      for key, value in self.__dict__.iteritems()]
7301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7302
 
7303
  def __eq__(self, other):
7304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7305
 
7306
  def __ne__(self, other):
7307
    return not (self == other)
7308
 
7309
class getUserCommunicationByUser_args:
7310
  """
7311
  Attributes:
7312
   - userId
7313
  """
7314
 
7315
  thrift_spec = (
7316
    None, # 0
7317
    (1, TType.I64, 'userId', None, None, ), # 1
7318
  )
7319
 
7320
  def __init__(self, userId=None,):
7321
    self.userId = userId
7322
 
7323
  def read(self, iprot):
7324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7326
      return
7327
    iprot.readStructBegin()
7328
    while True:
7329
      (fname, ftype, fid) = iprot.readFieldBegin()
7330
      if ftype == TType.STOP:
7331
        break
7332
      if fid == 1:
7333
        if ftype == TType.I64:
7334
          self.userId = iprot.readI64();
7335
        else:
7336
          iprot.skip(ftype)
7337
      else:
7338
        iprot.skip(ftype)
7339
      iprot.readFieldEnd()
7340
    iprot.readStructEnd()
7341
 
7342
  def write(self, oprot):
7343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7345
      return
7346
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7347
    if self.userId is not None:
1590 varun.gupt 7348
      oprot.writeFieldBegin('userId', TType.I64, 1)
7349
      oprot.writeI64(self.userId)
7350
      oprot.writeFieldEnd()
7351
    oprot.writeFieldStop()
7352
    oprot.writeStructEnd()
7353
 
3431 rajveer 7354
  def validate(self):
7355
    return
7356
 
7357
 
1590 varun.gupt 7358
  def __repr__(self):
7359
    L = ['%s=%r' % (key, value)
7360
      for key, value in self.__dict__.iteritems()]
7361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7362
 
7363
  def __eq__(self, other):
7364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7365
 
7366
  def __ne__(self, other):
7367
    return not (self == other)
7368
 
7369
class getUserCommunicationByUser_result:
7370
  """
7371
  Attributes:
7372
   - success
7373
   - ucx
7374
  """
7375
 
7376
  thrift_spec = (
7377
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7378
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7379
  )
7380
 
7381
  def __init__(self, success=None, ucx=None,):
7382
    self.success = success
7383
    self.ucx = ucx
7384
 
7385
  def read(self, iprot):
7386
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7387
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7388
      return
7389
    iprot.readStructBegin()
7390
    while True:
7391
      (fname, ftype, fid) = iprot.readFieldBegin()
7392
      if ftype == TType.STOP:
7393
        break
7394
      if fid == 0:
7395
        if ftype == TType.LIST:
7396
          self.success = []
3554 varun.gupt 7397
          (_etype52, _size49) = iprot.readListBegin()
7398
          for _i53 in xrange(_size49):
7399
            _elem54 = UserCommunication()
7400
            _elem54.read(iprot)
7401
            self.success.append(_elem54)
1590 varun.gupt 7402
          iprot.readListEnd()
7403
        else:
7404
          iprot.skip(ftype)
7405
      elif fid == 1:
7406
        if ftype == TType.STRUCT:
7407
          self.ucx = UserCommunicationException()
7408
          self.ucx.read(iprot)
7409
        else:
7410
          iprot.skip(ftype)
7411
      else:
7412
        iprot.skip(ftype)
7413
      iprot.readFieldEnd()
7414
    iprot.readStructEnd()
7415
 
7416
  def write(self, oprot):
7417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7419
      return
7420
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7421
    if self.success is not None:
1590 varun.gupt 7422
      oprot.writeFieldBegin('success', TType.LIST, 0)
7423
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7424
      for iter55 in self.success:
7425
        iter55.write(oprot)
1590 varun.gupt 7426
      oprot.writeListEnd()
7427
      oprot.writeFieldEnd()
3431 rajveer 7428
    if self.ucx is not None:
1590 varun.gupt 7429
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7430
      self.ucx.write(oprot)
7431
      oprot.writeFieldEnd()
7432
    oprot.writeFieldStop()
7433
    oprot.writeStructEnd()
7434
 
3431 rajveer 7435
  def validate(self):
7436
    return
7437
 
7438
 
1590 varun.gupt 7439
  def __repr__(self):
7440
    L = ['%s=%r' % (key, value)
7441
      for key, value in self.__dict__.iteritems()]
7442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7443
 
7444
  def __eq__(self, other):
7445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7446
 
7447
  def __ne__(self, other):
7448
    return not (self == other)
7449
 
7450
class getAllUserCommunications_args:
7451
 
7452
  thrift_spec = (
7453
  )
7454
 
7455
  def read(self, iprot):
7456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7458
      return
7459
    iprot.readStructBegin()
7460
    while True:
7461
      (fname, ftype, fid) = iprot.readFieldBegin()
7462
      if ftype == TType.STOP:
7463
        break
7464
      else:
7465
        iprot.skip(ftype)
7466
      iprot.readFieldEnd()
7467
    iprot.readStructEnd()
7468
 
7469
  def write(self, oprot):
7470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7472
      return
7473
    oprot.writeStructBegin('getAllUserCommunications_args')
7474
    oprot.writeFieldStop()
7475
    oprot.writeStructEnd()
7476
 
3431 rajveer 7477
  def validate(self):
7478
    return
7479
 
7480
 
1590 varun.gupt 7481
  def __repr__(self):
7482
    L = ['%s=%r' % (key, value)
7483
      for key, value in self.__dict__.iteritems()]
7484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7485
 
7486
  def __eq__(self, other):
7487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7488
 
7489
  def __ne__(self, other):
7490
    return not (self == other)
7491
 
7492
class getAllUserCommunications_result:
7493
  """
7494
  Attributes:
7495
   - success
7496
   - ucx
7497
  """
7498
 
7499
  thrift_spec = (
7500
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7501
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7502
  )
7503
 
7504
  def __init__(self, success=None, ucx=None,):
7505
    self.success = success
7506
    self.ucx = ucx
7507
 
7508
  def read(self, iprot):
7509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7511
      return
7512
    iprot.readStructBegin()
7513
    while True:
7514
      (fname, ftype, fid) = iprot.readFieldBegin()
7515
      if ftype == TType.STOP:
7516
        break
7517
      if fid == 0:
7518
        if ftype == TType.LIST:
7519
          self.success = []
3554 varun.gupt 7520
          (_etype59, _size56) = iprot.readListBegin()
7521
          for _i60 in xrange(_size56):
7522
            _elem61 = UserCommunication()
7523
            _elem61.read(iprot)
7524
            self.success.append(_elem61)
1590 varun.gupt 7525
          iprot.readListEnd()
7526
        else:
7527
          iprot.skip(ftype)
7528
      elif fid == 1:
7529
        if ftype == TType.STRUCT:
7530
          self.ucx = UserCommunicationException()
7531
          self.ucx.read(iprot)
7532
        else:
7533
          iprot.skip(ftype)
7534
      else:
7535
        iprot.skip(ftype)
7536
      iprot.readFieldEnd()
7537
    iprot.readStructEnd()
7538
 
7539
  def write(self, oprot):
7540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7542
      return
7543
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7544
    if self.success is not None:
1590 varun.gupt 7545
      oprot.writeFieldBegin('success', TType.LIST, 0)
7546
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7547
      for iter62 in self.success:
7548
        iter62.write(oprot)
1590 varun.gupt 7549
      oprot.writeListEnd()
7550
      oprot.writeFieldEnd()
3431 rajveer 7551
    if self.ucx is not None:
1590 varun.gupt 7552
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7553
      self.ucx.write(oprot)
7554
      oprot.writeFieldEnd()
7555
    oprot.writeFieldStop()
7556
    oprot.writeStructEnd()
7557
 
3431 rajveer 7558
  def validate(self):
7559
    return
7560
 
7561
 
1590 varun.gupt 7562
  def __repr__(self):
7563
    L = ['%s=%r' % (key, value)
7564
      for key, value in self.__dict__.iteritems()]
7565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7566
 
7567
  def __eq__(self, other):
7568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7569
 
7570
  def __ne__(self, other):
7571
    return not (self == other)
7572
 
1845 vikas 7573
class createMasterAffiliate_args:
7574
  """
7575
  Attributes:
7576
   - name
1859 vikas 7577
   - addedOn
1845 vikas 7578
  """
7579
 
7580
  thrift_spec = (
7581
    None, # 0
7582
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7583
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7584
  )
7585
 
1859 vikas 7586
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7587
    self.name = name
1859 vikas 7588
    self.addedOn = addedOn
1845 vikas 7589
 
7590
  def read(self, iprot):
7591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7593
      return
7594
    iprot.readStructBegin()
7595
    while True:
7596
      (fname, ftype, fid) = iprot.readFieldBegin()
7597
      if ftype == TType.STOP:
7598
        break
7599
      if fid == 1:
7600
        if ftype == TType.STRING:
7601
          self.name = iprot.readString();
7602
        else:
7603
          iprot.skip(ftype)
1859 vikas 7604
      elif fid == 2:
7605
        if ftype == TType.I64:
7606
          self.addedOn = iprot.readI64();
7607
        else:
7608
          iprot.skip(ftype)
1845 vikas 7609
      else:
7610
        iprot.skip(ftype)
7611
      iprot.readFieldEnd()
7612
    iprot.readStructEnd()
7613
 
7614
  def write(self, oprot):
7615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7617
      return
7618
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7619
    if self.name is not None:
1845 vikas 7620
      oprot.writeFieldBegin('name', TType.STRING, 1)
7621
      oprot.writeString(self.name)
7622
      oprot.writeFieldEnd()
3431 rajveer 7623
    if self.addedOn is not None:
1859 vikas 7624
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7625
      oprot.writeI64(self.addedOn)
7626
      oprot.writeFieldEnd()
1845 vikas 7627
    oprot.writeFieldStop()
7628
    oprot.writeStructEnd()
7629
 
3431 rajveer 7630
  def validate(self):
7631
    return
7632
 
7633
 
1845 vikas 7634
  def __repr__(self):
7635
    L = ['%s=%r' % (key, value)
7636
      for key, value in self.__dict__.iteritems()]
7637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7638
 
7639
  def __eq__(self, other):
7640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7641
 
7642
  def __ne__(self, other):
7643
    return not (self == other)
7644
 
7645
class createMasterAffiliate_result:
7646
  """
7647
  Attributes:
7648
   - success
7649
   - utx
7650
  """
7651
 
7652
  thrift_spec = (
7653
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7654
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7655
  )
7656
 
7657
  def __init__(self, success=None, utx=None,):
7658
    self.success = success
7659
    self.utx = utx
7660
 
7661
  def read(self, iprot):
7662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7664
      return
7665
    iprot.readStructBegin()
7666
    while True:
7667
      (fname, ftype, fid) = iprot.readFieldBegin()
7668
      if ftype == TType.STOP:
7669
        break
7670
      if fid == 0:
7671
        if ftype == TType.STRUCT:
7672
          self.success = MasterAffiliate()
7673
          self.success.read(iprot)
7674
        else:
7675
          iprot.skip(ftype)
7676
      elif fid == 1:
7677
        if ftype == TType.STRUCT:
1996 vikas 7678
          self.utx = UserAffiliateException()
1845 vikas 7679
          self.utx.read(iprot)
7680
        else:
7681
          iprot.skip(ftype)
7682
      else:
7683
        iprot.skip(ftype)
7684
      iprot.readFieldEnd()
7685
    iprot.readStructEnd()
7686
 
7687
  def write(self, oprot):
7688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7690
      return
7691
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7692
    if self.success is not None:
1845 vikas 7693
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7694
      self.success.write(oprot)
7695
      oprot.writeFieldEnd()
3431 rajveer 7696
    if self.utx is not None:
1845 vikas 7697
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7698
      self.utx.write(oprot)
7699
      oprot.writeFieldEnd()
7700
    oprot.writeFieldStop()
7701
    oprot.writeStructEnd()
7702
 
3431 rajveer 7703
  def validate(self):
7704
    return
7705
 
7706
 
1845 vikas 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
 
1899 vikas 7718
class getAllMasterAffiliates_args:
7719
 
7720
  thrift_spec = (
7721
  )
7722
 
7723
  def read(self, iprot):
7724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7726
      return
7727
    iprot.readStructBegin()
7728
    while True:
7729
      (fname, ftype, fid) = iprot.readFieldBegin()
7730
      if ftype == TType.STOP:
7731
        break
7732
      else:
7733
        iprot.skip(ftype)
7734
      iprot.readFieldEnd()
7735
    iprot.readStructEnd()
7736
 
7737
  def write(self, oprot):
7738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7740
      return
7741
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7742
    oprot.writeFieldStop()
7743
    oprot.writeStructEnd()
7744
 
3431 rajveer 7745
  def validate(self):
7746
    return
7747
 
7748
 
1899 vikas 7749
  def __repr__(self):
7750
    L = ['%s=%r' % (key, value)
7751
      for key, value in self.__dict__.iteritems()]
7752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7753
 
7754
  def __eq__(self, other):
7755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7756
 
7757
  def __ne__(self, other):
7758
    return not (self == other)
7759
 
7760
class getAllMasterAffiliates_result:
7761
  """
7762
  Attributes:
7763
   - success
7764
   - utx
7765
  """
7766
 
7767
  thrift_spec = (
7768
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7769
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7770
  )
7771
 
7772
  def __init__(self, success=None, utx=None,):
7773
    self.success = success
7774
    self.utx = utx
7775
 
7776
  def read(self, iprot):
7777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7779
      return
7780
    iprot.readStructBegin()
7781
    while True:
7782
      (fname, ftype, fid) = iprot.readFieldBegin()
7783
      if ftype == TType.STOP:
7784
        break
7785
      if fid == 0:
7786
        if ftype == TType.LIST:
7787
          self.success = []
3554 varun.gupt 7788
          (_etype66, _size63) = iprot.readListBegin()
7789
          for _i67 in xrange(_size63):
7790
            _elem68 = MasterAffiliate()
7791
            _elem68.read(iprot)
7792
            self.success.append(_elem68)
1899 vikas 7793
          iprot.readListEnd()
7794
        else:
7795
          iprot.skip(ftype)
7796
      elif fid == 1:
7797
        if ftype == TType.STRUCT:
1996 vikas 7798
          self.utx = UserAffiliateException()
1899 vikas 7799
          self.utx.read(iprot)
7800
        else:
7801
          iprot.skip(ftype)
7802
      else:
7803
        iprot.skip(ftype)
7804
      iprot.readFieldEnd()
7805
    iprot.readStructEnd()
7806
 
7807
  def write(self, oprot):
7808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7810
      return
7811
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7812
    if self.success is not None:
1899 vikas 7813
      oprot.writeFieldBegin('success', TType.LIST, 0)
7814
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7815
      for iter69 in self.success:
7816
        iter69.write(oprot)
1899 vikas 7817
      oprot.writeListEnd()
7818
      oprot.writeFieldEnd()
3431 rajveer 7819
    if self.utx is not None:
1899 vikas 7820
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7821
      self.utx.write(oprot)
7822
      oprot.writeFieldEnd()
7823
    oprot.writeFieldStop()
7824
    oprot.writeStructEnd()
7825
 
3431 rajveer 7826
  def validate(self):
7827
    return
7828
 
7829
 
1899 vikas 7830
  def __repr__(self):
7831
    L = ['%s=%r' % (key, value)
7832
      for key, value in self.__dict__.iteritems()]
7833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7834
 
7835
  def __eq__(self, other):
7836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7837
 
7838
  def __ne__(self, other):
7839
    return not (self == other)
7840
 
1845 vikas 7841
class getMasterAffiliateById_args:
7842
  """
7843
  Attributes:
7844
   - id
7845
  """
7846
 
7847
  thrift_spec = (
7848
    None, # 0
7849
    (1, TType.I64, 'id', None, None, ), # 1
7850
  )
7851
 
7852
  def __init__(self, id=None,):
7853
    self.id = id
7854
 
7855
  def read(self, iprot):
7856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7858
      return
7859
    iprot.readStructBegin()
7860
    while True:
7861
      (fname, ftype, fid) = iprot.readFieldBegin()
7862
      if ftype == TType.STOP:
7863
        break
7864
      if fid == 1:
7865
        if ftype == TType.I64:
7866
          self.id = iprot.readI64();
7867
        else:
7868
          iprot.skip(ftype)
7869
      else:
7870
        iprot.skip(ftype)
7871
      iprot.readFieldEnd()
7872
    iprot.readStructEnd()
7873
 
7874
  def write(self, oprot):
7875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7877
      return
7878
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7879
    if self.id is not None:
1845 vikas 7880
      oprot.writeFieldBegin('id', TType.I64, 1)
7881
      oprot.writeI64(self.id)
7882
      oprot.writeFieldEnd()
7883
    oprot.writeFieldStop()
7884
    oprot.writeStructEnd()
7885
 
3431 rajveer 7886
  def validate(self):
7887
    return
7888
 
7889
 
1845 vikas 7890
  def __repr__(self):
7891
    L = ['%s=%r' % (key, value)
7892
      for key, value in self.__dict__.iteritems()]
7893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7894
 
7895
  def __eq__(self, other):
7896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7897
 
7898
  def __ne__(self, other):
7899
    return not (self == other)
7900
 
7901
class getMasterAffiliateById_result:
7902
  """
7903
  Attributes:
7904
   - success
7905
   - utx
7906
  """
7907
 
7908
  thrift_spec = (
7909
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7910
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7911
  )
7912
 
7913
  def __init__(self, success=None, utx=None,):
7914
    self.success = success
7915
    self.utx = utx
7916
 
7917
  def read(self, iprot):
7918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7920
      return
7921
    iprot.readStructBegin()
7922
    while True:
7923
      (fname, ftype, fid) = iprot.readFieldBegin()
7924
      if ftype == TType.STOP:
7925
        break
7926
      if fid == 0:
7927
        if ftype == TType.STRUCT:
7928
          self.success = MasterAffiliate()
7929
          self.success.read(iprot)
7930
        else:
7931
          iprot.skip(ftype)
7932
      elif fid == 1:
7933
        if ftype == TType.STRUCT:
1996 vikas 7934
          self.utx = UserAffiliateException()
1845 vikas 7935
          self.utx.read(iprot)
7936
        else:
7937
          iprot.skip(ftype)
7938
      else:
7939
        iprot.skip(ftype)
7940
      iprot.readFieldEnd()
7941
    iprot.readStructEnd()
7942
 
7943
  def write(self, oprot):
7944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7946
      return
7947
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7948
    if self.success is not None:
1845 vikas 7949
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7950
      self.success.write(oprot)
7951
      oprot.writeFieldEnd()
3431 rajveer 7952
    if self.utx is not None:
1845 vikas 7953
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7954
      self.utx.write(oprot)
7955
      oprot.writeFieldEnd()
7956
    oprot.writeFieldStop()
7957
    oprot.writeStructEnd()
7958
 
3431 rajveer 7959
  def validate(self):
7960
    return
7961
 
7962
 
1845 vikas 7963
  def __repr__(self):
7964
    L = ['%s=%r' % (key, value)
7965
      for key, value in self.__dict__.iteritems()]
7966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7967
 
7968
  def __eq__(self, other):
7969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7970
 
7971
  def __ne__(self, other):
7972
    return not (self == other)
7973
 
7974
class getMasterAffiliateByName_args:
7975
  """
7976
  Attributes:
7977
   - name
7978
  """
7979
 
7980
  thrift_spec = (
7981
    None, # 0
7982
    (1, TType.STRING, 'name', None, None, ), # 1
7983
  )
7984
 
7985
  def __init__(self, name=None,):
7986
    self.name = name
7987
 
7988
  def read(self, iprot):
7989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7991
      return
7992
    iprot.readStructBegin()
7993
    while True:
7994
      (fname, ftype, fid) = iprot.readFieldBegin()
7995
      if ftype == TType.STOP:
7996
        break
7997
      if fid == 1:
7998
        if ftype == TType.STRING:
7999
          self.name = iprot.readString();
8000
        else:
8001
          iprot.skip(ftype)
8002
      else:
8003
        iprot.skip(ftype)
8004
      iprot.readFieldEnd()
8005
    iprot.readStructEnd()
8006
 
8007
  def write(self, oprot):
8008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8010
      return
8011
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8012
    if self.name is not None:
1845 vikas 8013
      oprot.writeFieldBegin('name', TType.STRING, 1)
8014
      oprot.writeString(self.name)
8015
      oprot.writeFieldEnd()
8016
    oprot.writeFieldStop()
8017
    oprot.writeStructEnd()
8018
 
3431 rajveer 8019
  def validate(self):
8020
    return
8021
 
8022
 
1845 vikas 8023
  def __repr__(self):
8024
    L = ['%s=%r' % (key, value)
8025
      for key, value in self.__dict__.iteritems()]
8026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8027
 
8028
  def __eq__(self, other):
8029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8030
 
8031
  def __ne__(self, other):
8032
    return not (self == other)
8033
 
8034
class getMasterAffiliateByName_result:
8035
  """
8036
  Attributes:
8037
   - success
8038
   - utx
8039
  """
8040
 
8041
  thrift_spec = (
8042
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8043
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8044
  )
8045
 
8046
  def __init__(self, success=None, utx=None,):
8047
    self.success = success
8048
    self.utx = utx
8049
 
8050
  def read(self, iprot):
8051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8053
      return
8054
    iprot.readStructBegin()
8055
    while True:
8056
      (fname, ftype, fid) = iprot.readFieldBegin()
8057
      if ftype == TType.STOP:
8058
        break
8059
      if fid == 0:
8060
        if ftype == TType.STRUCT:
8061
          self.success = MasterAffiliate()
8062
          self.success.read(iprot)
8063
        else:
8064
          iprot.skip(ftype)
8065
      elif fid == 1:
8066
        if ftype == TType.STRUCT:
1996 vikas 8067
          self.utx = UserAffiliateException()
1845 vikas 8068
          self.utx.read(iprot)
8069
        else:
8070
          iprot.skip(ftype)
8071
      else:
8072
        iprot.skip(ftype)
8073
      iprot.readFieldEnd()
8074
    iprot.readStructEnd()
8075
 
8076
  def write(self, oprot):
8077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8079
      return
8080
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8081
    if self.success is not None:
1845 vikas 8082
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8083
      self.success.write(oprot)
8084
      oprot.writeFieldEnd()
3431 rajveer 8085
    if self.utx is not None:
1845 vikas 8086
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8087
      self.utx.write(oprot)
8088
      oprot.writeFieldEnd()
8089
    oprot.writeFieldStop()
8090
    oprot.writeStructEnd()
8091
 
3431 rajveer 8092
  def validate(self):
8093
    return
8094
 
8095
 
1845 vikas 8096
  def __repr__(self):
8097
    L = ['%s=%r' % (key, value)
8098
      for key, value in self.__dict__.iteritems()]
8099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8100
 
8101
  def __eq__(self, other):
8102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8103
 
8104
  def __ne__(self, other):
8105
    return not (self == other)
8106
 
8107
class createAffiliate_args:
8108
  """
8109
  Attributes:
8110
   - name
8111
   - url
8112
   - masterAffiliateId
1859 vikas 8113
   - addedOn
1845 vikas 8114
  """
8115
 
8116
  thrift_spec = (
8117
    None, # 0
8118
    (1, TType.STRING, 'name', None, None, ), # 1
8119
    (2, TType.STRING, 'url', None, None, ), # 2
8120
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8121
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8122
  )
8123
 
1859 vikas 8124
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8125
    self.name = name
8126
    self.url = url
8127
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8128
    self.addedOn = addedOn
1845 vikas 8129
 
8130
  def read(self, iprot):
8131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8133
      return
8134
    iprot.readStructBegin()
8135
    while True:
8136
      (fname, ftype, fid) = iprot.readFieldBegin()
8137
      if ftype == TType.STOP:
8138
        break
8139
      if fid == 1:
8140
        if ftype == TType.STRING:
8141
          self.name = iprot.readString();
8142
        else:
8143
          iprot.skip(ftype)
8144
      elif fid == 2:
8145
        if ftype == TType.STRING:
8146
          self.url = iprot.readString();
8147
        else:
8148
          iprot.skip(ftype)
8149
      elif fid == 3:
8150
        if ftype == TType.I64:
8151
          self.masterAffiliateId = iprot.readI64();
8152
        else:
8153
          iprot.skip(ftype)
1859 vikas 8154
      elif fid == 4:
8155
        if ftype == TType.I64:
8156
          self.addedOn = iprot.readI64();
8157
        else:
8158
          iprot.skip(ftype)
1845 vikas 8159
      else:
8160
        iprot.skip(ftype)
8161
      iprot.readFieldEnd()
8162
    iprot.readStructEnd()
8163
 
8164
  def write(self, oprot):
8165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8167
      return
8168
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8169
    if self.name is not None:
1845 vikas 8170
      oprot.writeFieldBegin('name', TType.STRING, 1)
8171
      oprot.writeString(self.name)
8172
      oprot.writeFieldEnd()
3431 rajveer 8173
    if self.url is not None:
1845 vikas 8174
      oprot.writeFieldBegin('url', TType.STRING, 2)
8175
      oprot.writeString(self.url)
8176
      oprot.writeFieldEnd()
3431 rajveer 8177
    if self.masterAffiliateId is not None:
1845 vikas 8178
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8179
      oprot.writeI64(self.masterAffiliateId)
8180
      oprot.writeFieldEnd()
3431 rajveer 8181
    if self.addedOn is not None:
1859 vikas 8182
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8183
      oprot.writeI64(self.addedOn)
8184
      oprot.writeFieldEnd()
1845 vikas 8185
    oprot.writeFieldStop()
8186
    oprot.writeStructEnd()
8187
 
3431 rajveer 8188
  def validate(self):
8189
    return
8190
 
8191
 
1845 vikas 8192
  def __repr__(self):
8193
    L = ['%s=%r' % (key, value)
8194
      for key, value in self.__dict__.iteritems()]
8195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8196
 
8197
  def __eq__(self, other):
8198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8199
 
8200
  def __ne__(self, other):
8201
    return not (self == other)
8202
 
8203
class createAffiliate_result:
8204
  """
8205
  Attributes:
8206
   - success
8207
   - utx
8208
  """
8209
 
8210
  thrift_spec = (
8211
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8212
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8213
  )
8214
 
8215
  def __init__(self, success=None, utx=None,):
8216
    self.success = success
8217
    self.utx = utx
8218
 
8219
  def read(self, iprot):
8220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8222
      return
8223
    iprot.readStructBegin()
8224
    while True:
8225
      (fname, ftype, fid) = iprot.readFieldBegin()
8226
      if ftype == TType.STOP:
8227
        break
8228
      if fid == 0:
8229
        if ftype == TType.STRUCT:
8230
          self.success = Affiliate()
8231
          self.success.read(iprot)
8232
        else:
8233
          iprot.skip(ftype)
8234
      elif fid == 1:
8235
        if ftype == TType.STRUCT:
1996 vikas 8236
          self.utx = UserAffiliateException()
1845 vikas 8237
          self.utx.read(iprot)
8238
        else:
8239
          iprot.skip(ftype)
8240
      else:
8241
        iprot.skip(ftype)
8242
      iprot.readFieldEnd()
8243
    iprot.readStructEnd()
8244
 
8245
  def write(self, oprot):
8246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8248
      return
8249
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8250
    if self.success is not None:
1845 vikas 8251
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8252
      self.success.write(oprot)
8253
      oprot.writeFieldEnd()
3431 rajveer 8254
    if self.utx is not None:
1845 vikas 8255
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8256
      self.utx.write(oprot)
8257
      oprot.writeFieldEnd()
8258
    oprot.writeFieldStop()
8259
    oprot.writeStructEnd()
8260
 
3431 rajveer 8261
  def validate(self):
8262
    return
8263
 
8264
 
1845 vikas 8265
  def __repr__(self):
8266
    L = ['%s=%r' % (key, value)
8267
      for key, value in self.__dict__.iteritems()]
8268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8269
 
8270
  def __eq__(self, other):
8271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8272
 
8273
  def __ne__(self, other):
8274
    return not (self == other)
8275
 
8276
class getAffiliateById_args:
8277
  """
8278
  Attributes:
8279
   - id
8280
  """
8281
 
8282
  thrift_spec = (
8283
    None, # 0
8284
    (1, TType.I64, 'id', None, None, ), # 1
8285
  )
8286
 
8287
  def __init__(self, id=None,):
8288
    self.id = id
8289
 
8290
  def read(self, iprot):
8291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8293
      return
8294
    iprot.readStructBegin()
8295
    while True:
8296
      (fname, ftype, fid) = iprot.readFieldBegin()
8297
      if ftype == TType.STOP:
8298
        break
8299
      if fid == 1:
8300
        if ftype == TType.I64:
8301
          self.id = iprot.readI64();
8302
        else:
8303
          iprot.skip(ftype)
8304
      else:
8305
        iprot.skip(ftype)
8306
      iprot.readFieldEnd()
8307
    iprot.readStructEnd()
8308
 
8309
  def write(self, oprot):
8310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8312
      return
8313
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8314
    if self.id is not None:
1845 vikas 8315
      oprot.writeFieldBegin('id', TType.I64, 1)
8316
      oprot.writeI64(self.id)
8317
      oprot.writeFieldEnd()
8318
    oprot.writeFieldStop()
8319
    oprot.writeStructEnd()
8320
 
3431 rajveer 8321
  def validate(self):
8322
    return
8323
 
8324
 
1845 vikas 8325
  def __repr__(self):
8326
    L = ['%s=%r' % (key, value)
8327
      for key, value in self.__dict__.iteritems()]
8328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8329
 
8330
  def __eq__(self, other):
8331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8332
 
8333
  def __ne__(self, other):
8334
    return not (self == other)
8335
 
8336
class getAffiliateById_result:
8337
  """
8338
  Attributes:
8339
   - success
8340
   - utx
8341
  """
8342
 
8343
  thrift_spec = (
8344
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8345
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8346
  )
8347
 
8348
  def __init__(self, success=None, utx=None,):
8349
    self.success = success
8350
    self.utx = utx
8351
 
8352
  def read(self, iprot):
8353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8355
      return
8356
    iprot.readStructBegin()
8357
    while True:
8358
      (fname, ftype, fid) = iprot.readFieldBegin()
8359
      if ftype == TType.STOP:
8360
        break
8361
      if fid == 0:
8362
        if ftype == TType.STRUCT:
8363
          self.success = Affiliate()
8364
          self.success.read(iprot)
8365
        else:
8366
          iprot.skip(ftype)
8367
      elif fid == 1:
8368
        if ftype == TType.STRUCT:
1996 vikas 8369
          self.utx = UserAffiliateException()
1845 vikas 8370
          self.utx.read(iprot)
8371
        else:
8372
          iprot.skip(ftype)
8373
      else:
8374
        iprot.skip(ftype)
8375
      iprot.readFieldEnd()
8376
    iprot.readStructEnd()
8377
 
8378
  def write(self, oprot):
8379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8381
      return
8382
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8383
    if self.success is not None:
1845 vikas 8384
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8385
      self.success.write(oprot)
8386
      oprot.writeFieldEnd()
3431 rajveer 8387
    if self.utx is not None:
1845 vikas 8388
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8389
      self.utx.write(oprot)
8390
      oprot.writeFieldEnd()
8391
    oprot.writeFieldStop()
8392
    oprot.writeStructEnd()
8393
 
3431 rajveer 8394
  def validate(self):
8395
    return
8396
 
8397
 
1845 vikas 8398
  def __repr__(self):
8399
    L = ['%s=%r' % (key, value)
8400
      for key, value in self.__dict__.iteritems()]
8401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8402
 
8403
  def __eq__(self, other):
8404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8405
 
8406
  def __ne__(self, other):
8407
    return not (self == other)
8408
 
8409
class getAffiliateByName_args:
8410
  """
8411
  Attributes:
8412
   - name
8413
  """
8414
 
8415
  thrift_spec = (
8416
    None, # 0
8417
    (1, TType.STRING, 'name', None, None, ), # 1
8418
  )
8419
 
8420
  def __init__(self, name=None,):
8421
    self.name = name
8422
 
8423
  def read(self, iprot):
8424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8426
      return
8427
    iprot.readStructBegin()
8428
    while True:
8429
      (fname, ftype, fid) = iprot.readFieldBegin()
8430
      if ftype == TType.STOP:
8431
        break
8432
      if fid == 1:
8433
        if ftype == TType.STRING:
8434
          self.name = iprot.readString();
8435
        else:
8436
          iprot.skip(ftype)
8437
      else:
8438
        iprot.skip(ftype)
8439
      iprot.readFieldEnd()
8440
    iprot.readStructEnd()
8441
 
8442
  def write(self, oprot):
8443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8445
      return
8446
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8447
    if self.name is not None:
1845 vikas 8448
      oprot.writeFieldBegin('name', TType.STRING, 1)
8449
      oprot.writeString(self.name)
8450
      oprot.writeFieldEnd()
8451
    oprot.writeFieldStop()
8452
    oprot.writeStructEnd()
8453
 
3431 rajveer 8454
  def validate(self):
8455
    return
8456
 
8457
 
1845 vikas 8458
  def __repr__(self):
8459
    L = ['%s=%r' % (key, value)
8460
      for key, value in self.__dict__.iteritems()]
8461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8462
 
8463
  def __eq__(self, other):
8464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8465
 
8466
  def __ne__(self, other):
8467
    return not (self == other)
8468
 
8469
class getAffiliateByName_result:
8470
  """
8471
  Attributes:
8472
   - success
8473
   - utx
8474
  """
8475
 
8476
  thrift_spec = (
8477
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8478
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8479
  )
8480
 
8481
  def __init__(self, success=None, utx=None,):
8482
    self.success = success
8483
    self.utx = utx
8484
 
8485
  def read(self, iprot):
8486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8488
      return
8489
    iprot.readStructBegin()
8490
    while True:
8491
      (fname, ftype, fid) = iprot.readFieldBegin()
8492
      if ftype == TType.STOP:
8493
        break
8494
      if fid == 0:
8495
        if ftype == TType.STRUCT:
8496
          self.success = Affiliate()
8497
          self.success.read(iprot)
8498
        else:
8499
          iprot.skip(ftype)
8500
      elif fid == 1:
8501
        if ftype == TType.STRUCT:
1996 vikas 8502
          self.utx = UserAffiliateException()
1845 vikas 8503
          self.utx.read(iprot)
8504
        else:
8505
          iprot.skip(ftype)
8506
      else:
8507
        iprot.skip(ftype)
8508
      iprot.readFieldEnd()
8509
    iprot.readStructEnd()
8510
 
8511
  def write(self, oprot):
8512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8514
      return
8515
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8516
    if self.success is not None:
1845 vikas 8517
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8518
      self.success.write(oprot)
8519
      oprot.writeFieldEnd()
3431 rajveer 8520
    if self.utx is not None:
1845 vikas 8521
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8522
      self.utx.write(oprot)
8523
      oprot.writeFieldEnd()
8524
    oprot.writeFieldStop()
8525
    oprot.writeStructEnd()
8526
 
3431 rajveer 8527
  def validate(self):
8528
    return
8529
 
8530
 
1845 vikas 8531
  def __repr__(self):
8532
    L = ['%s=%r' % (key, value)
8533
      for key, value in self.__dict__.iteritems()]
8534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8535
 
8536
  def __eq__(self, other):
8537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8538
 
8539
  def __ne__(self, other):
8540
    return not (self == other)
8541
 
1996 vikas 8542
class getTrackerById_args:
1845 vikas 8543
  """
8544
  Attributes:
8545
   - id
8546
  """
8547
 
8548
  thrift_spec = (
8549
    None, # 0
8550
    (1, TType.I64, 'id', None, None, ), # 1
8551
  )
8552
 
8553
  def __init__(self, id=None,):
8554
    self.id = id
8555
 
8556
  def read(self, iprot):
8557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8559
      return
8560
    iprot.readStructBegin()
8561
    while True:
8562
      (fname, ftype, fid) = iprot.readFieldBegin()
8563
      if ftype == TType.STOP:
8564
        break
8565
      if fid == 1:
8566
        if ftype == TType.I64:
8567
          self.id = iprot.readI64();
8568
        else:
8569
          iprot.skip(ftype)
8570
      else:
8571
        iprot.skip(ftype)
8572
      iprot.readFieldEnd()
8573
    iprot.readStructEnd()
8574
 
8575
  def write(self, oprot):
8576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8578
      return
1996 vikas 8579
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8580
    if self.id is not None:
1845 vikas 8581
      oprot.writeFieldBegin('id', TType.I64, 1)
8582
      oprot.writeI64(self.id)
8583
      oprot.writeFieldEnd()
8584
    oprot.writeFieldStop()
8585
    oprot.writeStructEnd()
8586
 
3431 rajveer 8587
  def validate(self):
8588
    return
8589
 
8590
 
1845 vikas 8591
  def __repr__(self):
8592
    L = ['%s=%r' % (key, value)
8593
      for key, value in self.__dict__.iteritems()]
8594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8595
 
8596
  def __eq__(self, other):
8597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8598
 
8599
  def __ne__(self, other):
8600
    return not (self == other)
8601
 
8602
class getTrackerById_result:
8603
  """
8604
  Attributes:
8605
   - success
8606
   - utx
8607
  """
8608
 
8609
  thrift_spec = (
8610
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8611
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8612
  )
8613
 
8614
  def __init__(self, success=None, utx=None,):
8615
    self.success = success
8616
    self.utx = utx
8617
 
8618
  def read(self, iprot):
8619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8621
      return
8622
    iprot.readStructBegin()
8623
    while True:
8624
      (fname, ftype, fid) = iprot.readFieldBegin()
8625
      if ftype == TType.STOP:
8626
        break
8627
      if fid == 0:
8628
        if ftype == TType.STRUCT:
8629
          self.success = Tracker()
8630
          self.success.read(iprot)
8631
        else:
8632
          iprot.skip(ftype)
8633
      elif fid == 1:
8634
        if ftype == TType.STRUCT:
1996 vikas 8635
          self.utx = UserAffiliateException()
1845 vikas 8636
          self.utx.read(iprot)
8637
        else:
8638
          iprot.skip(ftype)
8639
      else:
8640
        iprot.skip(ftype)
8641
      iprot.readFieldEnd()
8642
    iprot.readStructEnd()
8643
 
8644
  def write(self, oprot):
8645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8647
      return
8648
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8649
    if self.success is not None:
1845 vikas 8650
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8651
      self.success.write(oprot)
8652
      oprot.writeFieldEnd()
3431 rajveer 8653
    if self.utx is not None:
1845 vikas 8654
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8655
      self.utx.write(oprot)
8656
      oprot.writeFieldEnd()
8657
    oprot.writeFieldStop()
8658
    oprot.writeStructEnd()
8659
 
3431 rajveer 8660
  def validate(self):
8661
    return
8662
 
8663
 
1845 vikas 8664
  def __repr__(self):
8665
    L = ['%s=%r' % (key, value)
8666
      for key, value in self.__dict__.iteritems()]
8667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8668
 
8669
  def __eq__(self, other):
8670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8671
 
8672
  def __ne__(self, other):
8673
    return not (self == other)
8674
 
1996 vikas 8675
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8676
  """
8677
  Attributes:
1996 vikas 8678
   - id
1845 vikas 8679
  """
8680
 
8681
  thrift_spec = (
8682
    None, # 0
1996 vikas 8683
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8684
  )
8685
 
1996 vikas 8686
  def __init__(self, id=None,):
8687
    self.id = id
1845 vikas 8688
 
8689
  def read(self, iprot):
8690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8692
      return
8693
    iprot.readStructBegin()
8694
    while True:
8695
      (fname, ftype, fid) = iprot.readFieldBegin()
8696
      if ftype == TType.STOP:
8697
        break
8698
      if fid == 1:
8699
        if ftype == TType.I64:
1996 vikas 8700
          self.id = iprot.readI64();
1845 vikas 8701
        else:
8702
          iprot.skip(ftype)
8703
      else:
8704
        iprot.skip(ftype)
8705
      iprot.readFieldEnd()
8706
    iprot.readStructEnd()
8707
 
8708
  def write(self, oprot):
8709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8711
      return
1996 vikas 8712
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8713
    if self.id is not None:
1996 vikas 8714
      oprot.writeFieldBegin('id', TType.I64, 1)
8715
      oprot.writeI64(self.id)
1845 vikas 8716
      oprot.writeFieldEnd()
8717
    oprot.writeFieldStop()
8718
    oprot.writeStructEnd()
8719
 
3431 rajveer 8720
  def validate(self):
8721
    return
8722
 
8723
 
1845 vikas 8724
  def __repr__(self):
8725
    L = ['%s=%r' % (key, value)
8726
      for key, value in self.__dict__.iteritems()]
8727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8728
 
8729
  def __eq__(self, other):
8730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8731
 
8732
  def __ne__(self, other):
8733
    return not (self == other)
8734
 
1996 vikas 8735
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8736
  """
8737
  Attributes:
8738
   - success
8739
   - utx
8740
  """
8741
 
8742
  thrift_spec = (
1996 vikas 8743
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8744
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8745
  )
8746
 
8747
  def __init__(self, success=None, utx=None,):
8748
    self.success = success
8749
    self.utx = utx
8750
 
8751
  def read(self, iprot):
8752
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8753
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8754
      return
8755
    iprot.readStructBegin()
8756
    while True:
8757
      (fname, ftype, fid) = iprot.readFieldBegin()
8758
      if ftype == TType.STOP:
8759
        break
8760
      if fid == 0:
8761
        if ftype == TType.LIST:
8762
          self.success = []
3554 varun.gupt 8763
          (_etype73, _size70) = iprot.readListBegin()
8764
          for _i74 in xrange(_size70):
8765
            _elem75 = Affiliate()
8766
            _elem75.read(iprot)
8767
            self.success.append(_elem75)
1845 vikas 8768
          iprot.readListEnd()
8769
        else:
8770
          iprot.skip(ftype)
8771
      elif fid == 1:
8772
        if ftype == TType.STRUCT:
1996 vikas 8773
          self.utx = UserAffiliateException()
1845 vikas 8774
          self.utx.read(iprot)
8775
        else:
8776
          iprot.skip(ftype)
8777
      else:
8778
        iprot.skip(ftype)
8779
      iprot.readFieldEnd()
8780
    iprot.readStructEnd()
8781
 
8782
  def write(self, oprot):
8783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8785
      return
1996 vikas 8786
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8787
    if self.success is not None:
1845 vikas 8788
      oprot.writeFieldBegin('success', TType.LIST, 0)
8789
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 8790
      for iter76 in self.success:
8791
        iter76.write(oprot)
1845 vikas 8792
      oprot.writeListEnd()
8793
      oprot.writeFieldEnd()
3431 rajveer 8794
    if self.utx is not None:
1845 vikas 8795
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8796
      self.utx.write(oprot)
8797
      oprot.writeFieldEnd()
8798
    oprot.writeFieldStop()
8799
    oprot.writeStructEnd()
8800
 
3431 rajveer 8801
  def validate(self):
8802
    return
8803
 
8804
 
1845 vikas 8805
  def __repr__(self):
8806
    L = ['%s=%r' % (key, value)
8807
      for key, value in self.__dict__.iteritems()]
8808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8809
 
8810
  def __eq__(self, other):
8811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8812
 
8813
  def __ne__(self, other):
8814
    return not (self == other)
8815
 
8816
class addTrackLog_args:
8817
  """
8818
  Attributes:
1996 vikas 8819
   - affiliateId
1845 vikas 8820
   - userId
8821
   - event
8822
   - url
8823
   - data
1859 vikas 8824
   - addedOn
1845 vikas 8825
  """
8826
 
8827
  thrift_spec = (
8828
    None, # 0
1996 vikas 8829
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8830
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8831
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8832
    (4, TType.STRING, 'url', None, None, ), # 4
8833
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8834
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8835
  )
8836
 
1996 vikas 8837
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8838
    self.affiliateId = affiliateId
1845 vikas 8839
    self.userId = userId
8840
    self.event = event
8841
    self.url = url
8842
    self.data = data
1859 vikas 8843
    self.addedOn = addedOn
1845 vikas 8844
 
8845
  def read(self, iprot):
8846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8848
      return
8849
    iprot.readStructBegin()
8850
    while True:
8851
      (fname, ftype, fid) = iprot.readFieldBegin()
8852
      if ftype == TType.STOP:
8853
        break
8854
      if fid == 1:
8855
        if ftype == TType.I64:
1996 vikas 8856
          self.affiliateId = iprot.readI64();
1845 vikas 8857
        else:
8858
          iprot.skip(ftype)
8859
      elif fid == 2:
8860
        if ftype == TType.I64:
8861
          self.userId = iprot.readI64();
8862
        else:
8863
          iprot.skip(ftype)
8864
      elif fid == 3:
3378 vikas 8865
        if ftype == TType.I32:
8866
          self.event = iprot.readI32();
1845 vikas 8867
        else:
8868
          iprot.skip(ftype)
8869
      elif fid == 4:
8870
        if ftype == TType.STRING:
8871
          self.url = iprot.readString();
8872
        else:
8873
          iprot.skip(ftype)
8874
      elif fid == 5:
8875
        if ftype == TType.STRING:
8876
          self.data = iprot.readString();
8877
        else:
8878
          iprot.skip(ftype)
1859 vikas 8879
      elif fid == 6:
8880
        if ftype == TType.I64:
8881
          self.addedOn = iprot.readI64();
8882
        else:
8883
          iprot.skip(ftype)
1845 vikas 8884
      else:
8885
        iprot.skip(ftype)
8886
      iprot.readFieldEnd()
8887
    iprot.readStructEnd()
8888
 
8889
  def write(self, oprot):
8890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8892
      return
8893
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8894
    if self.affiliateId is not None:
1996 vikas 8895
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8896
      oprot.writeI64(self.affiliateId)
1845 vikas 8897
      oprot.writeFieldEnd()
3431 rajveer 8898
    if self.userId is not None:
1845 vikas 8899
      oprot.writeFieldBegin('userId', TType.I64, 2)
8900
      oprot.writeI64(self.userId)
8901
      oprot.writeFieldEnd()
3431 rajveer 8902
    if self.event is not None:
3378 vikas 8903
      oprot.writeFieldBegin('event', TType.I32, 3)
8904
      oprot.writeI32(self.event)
1845 vikas 8905
      oprot.writeFieldEnd()
3431 rajveer 8906
    if self.url is not None:
1845 vikas 8907
      oprot.writeFieldBegin('url', TType.STRING, 4)
8908
      oprot.writeString(self.url)
8909
      oprot.writeFieldEnd()
3431 rajveer 8910
    if self.data is not None:
1845 vikas 8911
      oprot.writeFieldBegin('data', TType.STRING, 5)
8912
      oprot.writeString(self.data)
8913
      oprot.writeFieldEnd()
3431 rajveer 8914
    if self.addedOn is not None:
1859 vikas 8915
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8916
      oprot.writeI64(self.addedOn)
8917
      oprot.writeFieldEnd()
1845 vikas 8918
    oprot.writeFieldStop()
8919
    oprot.writeStructEnd()
8920
 
3431 rajveer 8921
  def validate(self):
8922
    return
8923
 
8924
 
1845 vikas 8925
  def __repr__(self):
8926
    L = ['%s=%r' % (key, value)
8927
      for key, value in self.__dict__.iteritems()]
8928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8929
 
8930
  def __eq__(self, other):
8931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8932
 
8933
  def __ne__(self, other):
8934
    return not (self == other)
8935
 
8936
class addTrackLog_result:
8937
  """
8938
  Attributes:
8939
   - success
8940
   - utx
8941
  """
8942
 
8943
  thrift_spec = (
8944
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8945
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8946
  )
8947
 
8948
  def __init__(self, success=None, utx=None,):
8949
    self.success = success
8950
    self.utx = utx
8951
 
8952
  def read(self, iprot):
8953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8955
      return
8956
    iprot.readStructBegin()
8957
    while True:
8958
      (fname, ftype, fid) = iprot.readFieldBegin()
8959
      if ftype == TType.STOP:
8960
        break
8961
      if fid == 0:
8962
        if ftype == TType.I64:
8963
          self.success = iprot.readI64();
8964
        else:
8965
          iprot.skip(ftype)
8966
      elif fid == 1:
8967
        if ftype == TType.STRUCT:
1996 vikas 8968
          self.utx = UserAffiliateException()
1845 vikas 8969
          self.utx.read(iprot)
8970
        else:
8971
          iprot.skip(ftype)
8972
      else:
8973
        iprot.skip(ftype)
8974
      iprot.readFieldEnd()
8975
    iprot.readStructEnd()
8976
 
8977
  def write(self, oprot):
8978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8980
      return
8981
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8982
    if self.success is not None:
1845 vikas 8983
      oprot.writeFieldBegin('success', TType.I64, 0)
8984
      oprot.writeI64(self.success)
8985
      oprot.writeFieldEnd()
3431 rajveer 8986
    if self.utx is not None:
1845 vikas 8987
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8988
      self.utx.write(oprot)
8989
      oprot.writeFieldEnd()
8990
    oprot.writeFieldStop()
8991
    oprot.writeStructEnd()
8992
 
3431 rajveer 8993
  def validate(self):
8994
    return
8995
 
8996
 
1845 vikas 8997
  def __repr__(self):
8998
    L = ['%s=%r' % (key, value)
8999
      for key, value in self.__dict__.iteritems()]
9000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9001
 
9002
  def __eq__(self, other):
9003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9004
 
9005
  def __ne__(self, other):
9006
    return not (self == other)
9007
 
9008
class getTrackLogById_args:
9009
  """
9010
  Attributes:
9011
   - id
9012
  """
9013
 
9014
  thrift_spec = (
9015
    None, # 0
9016
    (1, TType.I64, 'id', None, None, ), # 1
9017
  )
9018
 
9019
  def __init__(self, id=None,):
9020
    self.id = id
9021
 
9022
  def read(self, iprot):
9023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9025
      return
9026
    iprot.readStructBegin()
9027
    while True:
9028
      (fname, ftype, fid) = iprot.readFieldBegin()
9029
      if ftype == TType.STOP:
9030
        break
9031
      if fid == 1:
9032
        if ftype == TType.I64:
9033
          self.id = iprot.readI64();
9034
        else:
9035
          iprot.skip(ftype)
9036
      else:
9037
        iprot.skip(ftype)
9038
      iprot.readFieldEnd()
9039
    iprot.readStructEnd()
9040
 
9041
  def write(self, oprot):
9042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9044
      return
9045
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9046
    if self.id is not None:
1845 vikas 9047
      oprot.writeFieldBegin('id', TType.I64, 1)
9048
      oprot.writeI64(self.id)
9049
      oprot.writeFieldEnd()
9050
    oprot.writeFieldStop()
9051
    oprot.writeStructEnd()
9052
 
3431 rajveer 9053
  def validate(self):
9054
    return
9055
 
9056
 
1845 vikas 9057
  def __repr__(self):
9058
    L = ['%s=%r' % (key, value)
9059
      for key, value in self.__dict__.iteritems()]
9060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9061
 
9062
  def __eq__(self, other):
9063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9064
 
9065
  def __ne__(self, other):
9066
    return not (self == other)
9067
 
9068
class getTrackLogById_result:
9069
  """
9070
  Attributes:
9071
   - success
9072
   - utx
9073
  """
9074
 
9075
  thrift_spec = (
9076
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9077
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9078
  )
9079
 
9080
  def __init__(self, success=None, utx=None,):
9081
    self.success = success
9082
    self.utx = utx
9083
 
9084
  def read(self, iprot):
9085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9087
      return
9088
    iprot.readStructBegin()
9089
    while True:
9090
      (fname, ftype, fid) = iprot.readFieldBegin()
9091
      if ftype == TType.STOP:
9092
        break
9093
      if fid == 0:
9094
        if ftype == TType.STRUCT:
9095
          self.success = TrackLog()
9096
          self.success.read(iprot)
9097
        else:
9098
          iprot.skip(ftype)
9099
      elif fid == 1:
9100
        if ftype == TType.STRUCT:
1996 vikas 9101
          self.utx = UserAffiliateException()
1845 vikas 9102
          self.utx.read(iprot)
9103
        else:
9104
          iprot.skip(ftype)
9105
      else:
9106
        iprot.skip(ftype)
9107
      iprot.readFieldEnd()
9108
    iprot.readStructEnd()
9109
 
9110
  def write(self, oprot):
9111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9113
      return
9114
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9115
    if self.success is not None:
1845 vikas 9116
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9117
      self.success.write(oprot)
9118
      oprot.writeFieldEnd()
3431 rajveer 9119
    if self.utx is not None:
1845 vikas 9120
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9121
      self.utx.write(oprot)
9122
      oprot.writeFieldEnd()
9123
    oprot.writeFieldStop()
9124
    oprot.writeStructEnd()
9125
 
3431 rajveer 9126
  def validate(self):
9127
    return
9128
 
9129
 
1845 vikas 9130
  def __repr__(self):
9131
    L = ['%s=%r' % (key, value)
9132
      for key, value in self.__dict__.iteritems()]
9133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9134
 
9135
  def __eq__(self, other):
9136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9137
 
9138
  def __ne__(self, other):
9139
    return not (self == other)
9140
 
1996 vikas 9141
class getTrackLogsByAffiliate_args:
1845 vikas 9142
  """
9143
  Attributes:
1996 vikas 9144
   - affiliateId
3293 vikas 9145
   - startDate
9146
   - endDate
1845 vikas 9147
  """
9148
 
9149
  thrift_spec = (
9150
    None, # 0
1996 vikas 9151
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9152
    (2, TType.I64, 'startDate', None, None, ), # 2
9153
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9154
  )
9155
 
3293 vikas 9156
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9157
    self.affiliateId = affiliateId
3293 vikas 9158
    self.startDate = startDate
9159
    self.endDate = endDate
1845 vikas 9160
 
9161
  def read(self, iprot):
9162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9164
      return
9165
    iprot.readStructBegin()
9166
    while True:
9167
      (fname, ftype, fid) = iprot.readFieldBegin()
9168
      if ftype == TType.STOP:
9169
        break
9170
      if fid == 1:
9171
        if ftype == TType.I64:
1996 vikas 9172
          self.affiliateId = iprot.readI64();
1845 vikas 9173
        else:
9174
          iprot.skip(ftype)
3293 vikas 9175
      elif fid == 2:
9176
        if ftype == TType.I64:
9177
          self.startDate = iprot.readI64();
9178
        else:
9179
          iprot.skip(ftype)
9180
      elif fid == 3:
9181
        if ftype == TType.I64:
9182
          self.endDate = iprot.readI64();
9183
        else:
9184
          iprot.skip(ftype)
1845 vikas 9185
      else:
9186
        iprot.skip(ftype)
9187
      iprot.readFieldEnd()
9188
    iprot.readStructEnd()
9189
 
9190
  def write(self, oprot):
9191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9193
      return
1996 vikas 9194
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9195
    if self.affiliateId is not None:
1996 vikas 9196
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9197
      oprot.writeI64(self.affiliateId)
1845 vikas 9198
      oprot.writeFieldEnd()
3431 rajveer 9199
    if self.startDate is not None:
3293 vikas 9200
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9201
      oprot.writeI64(self.startDate)
9202
      oprot.writeFieldEnd()
3431 rajveer 9203
    if self.endDate is not None:
3293 vikas 9204
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9205
      oprot.writeI64(self.endDate)
9206
      oprot.writeFieldEnd()
1845 vikas 9207
    oprot.writeFieldStop()
9208
    oprot.writeStructEnd()
9209
 
3431 rajveer 9210
  def validate(self):
9211
    return
9212
 
9213
 
1845 vikas 9214
  def __repr__(self):
9215
    L = ['%s=%r' % (key, value)
9216
      for key, value in self.__dict__.iteritems()]
9217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9218
 
9219
  def __eq__(self, other):
9220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9221
 
9222
  def __ne__(self, other):
9223
    return not (self == other)
9224
 
1996 vikas 9225
class getTrackLogsByAffiliate_result:
1845 vikas 9226
  """
9227
  Attributes:
9228
   - success
9229
   - utx
9230
  """
9231
 
9232
  thrift_spec = (
9233
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9234
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9235
  )
9236
 
9237
  def __init__(self, success=None, utx=None,):
9238
    self.success = success
9239
    self.utx = utx
9240
 
9241
  def read(self, iprot):
9242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9244
      return
9245
    iprot.readStructBegin()
9246
    while True:
9247
      (fname, ftype, fid) = iprot.readFieldBegin()
9248
      if ftype == TType.STOP:
9249
        break
9250
      if fid == 0:
9251
        if ftype == TType.LIST:
9252
          self.success = []
3554 varun.gupt 9253
          (_etype80, _size77) = iprot.readListBegin()
9254
          for _i81 in xrange(_size77):
9255
            _elem82 = TrackLog()
9256
            _elem82.read(iprot)
9257
            self.success.append(_elem82)
1845 vikas 9258
          iprot.readListEnd()
9259
        else:
9260
          iprot.skip(ftype)
9261
      elif fid == 1:
9262
        if ftype == TType.STRUCT:
1996 vikas 9263
          self.utx = UserAffiliateException()
1845 vikas 9264
          self.utx.read(iprot)
9265
        else:
9266
          iprot.skip(ftype)
9267
      else:
9268
        iprot.skip(ftype)
9269
      iprot.readFieldEnd()
9270
    iprot.readStructEnd()
9271
 
9272
  def write(self, oprot):
9273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9275
      return
1996 vikas 9276
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9277
    if self.success is not None:
1845 vikas 9278
      oprot.writeFieldBegin('success', TType.LIST, 0)
9279
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9280
      for iter83 in self.success:
9281
        iter83.write(oprot)
1845 vikas 9282
      oprot.writeListEnd()
9283
      oprot.writeFieldEnd()
3431 rajveer 9284
    if self.utx is not None:
1845 vikas 9285
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9286
      self.utx.write(oprot)
9287
      oprot.writeFieldEnd()
9288
    oprot.writeFieldStop()
9289
    oprot.writeStructEnd()
9290
 
3431 rajveer 9291
  def validate(self):
9292
    return
9293
 
9294
 
1845 vikas 9295
  def __repr__(self):
9296
    L = ['%s=%r' % (key, value)
9297
      for key, value in self.__dict__.iteritems()]
9298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9299
 
9300
  def __eq__(self, other):
9301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9302
 
9303
  def __ne__(self, other):
9304
    return not (self == other)
9305
 
9306
class getTrackLogsByUser_args:
9307
  """
9308
  Attributes:
9309
   - userId
9310
  """
9311
 
9312
  thrift_spec = (
9313
    None, # 0
9314
    (1, TType.I64, 'userId', None, None, ), # 1
9315
  )
9316
 
9317
  def __init__(self, userId=None,):
9318
    self.userId = userId
9319
 
9320
  def read(self, iprot):
9321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9323
      return
9324
    iprot.readStructBegin()
9325
    while True:
9326
      (fname, ftype, fid) = iprot.readFieldBegin()
9327
      if ftype == TType.STOP:
9328
        break
9329
      if fid == 1:
9330
        if ftype == TType.I64:
9331
          self.userId = iprot.readI64();
9332
        else:
9333
          iprot.skip(ftype)
9334
      else:
9335
        iprot.skip(ftype)
9336
      iprot.readFieldEnd()
9337
    iprot.readStructEnd()
9338
 
9339
  def write(self, oprot):
9340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9342
      return
9343
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9344
    if self.userId is not None:
1845 vikas 9345
      oprot.writeFieldBegin('userId', TType.I64, 1)
9346
      oprot.writeI64(self.userId)
9347
      oprot.writeFieldEnd()
9348
    oprot.writeFieldStop()
9349
    oprot.writeStructEnd()
9350
 
3431 rajveer 9351
  def validate(self):
9352
    return
9353
 
9354
 
1845 vikas 9355
  def __repr__(self):
9356
    L = ['%s=%r' % (key, value)
9357
      for key, value in self.__dict__.iteritems()]
9358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9359
 
9360
  def __eq__(self, other):
9361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9362
 
9363
  def __ne__(self, other):
9364
    return not (self == other)
9365
 
9366
class getTrackLogsByUser_result:
9367
  """
9368
  Attributes:
9369
   - success
9370
   - utx
9371
  """
9372
 
9373
  thrift_spec = (
9374
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9375
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9376
  )
9377
 
9378
  def __init__(self, success=None, utx=None,):
9379
    self.success = success
9380
    self.utx = utx
9381
 
9382
  def read(self, iprot):
9383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9385
      return
9386
    iprot.readStructBegin()
9387
    while True:
9388
      (fname, ftype, fid) = iprot.readFieldBegin()
9389
      if ftype == TType.STOP:
9390
        break
9391
      if fid == 0:
9392
        if ftype == TType.LIST:
9393
          self.success = []
3554 varun.gupt 9394
          (_etype87, _size84) = iprot.readListBegin()
9395
          for _i88 in xrange(_size84):
9396
            _elem89 = TrackLog()
9397
            _elem89.read(iprot)
9398
            self.success.append(_elem89)
1845 vikas 9399
          iprot.readListEnd()
9400
        else:
9401
          iprot.skip(ftype)
9402
      elif fid == 1:
9403
        if ftype == TType.STRUCT:
1996 vikas 9404
          self.utx = UserAffiliateException()
1845 vikas 9405
          self.utx.read(iprot)
9406
        else:
9407
          iprot.skip(ftype)
9408
      else:
9409
        iprot.skip(ftype)
9410
      iprot.readFieldEnd()
9411
    iprot.readStructEnd()
9412
 
9413
  def write(self, oprot):
9414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9416
      return
9417
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9418
    if self.success is not None:
1845 vikas 9419
      oprot.writeFieldBegin('success', TType.LIST, 0)
9420
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9421
      for iter90 in self.success:
9422
        iter90.write(oprot)
1845 vikas 9423
      oprot.writeListEnd()
9424
      oprot.writeFieldEnd()
3431 rajveer 9425
    if self.utx is not None:
1845 vikas 9426
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9427
      self.utx.write(oprot)
9428
      oprot.writeFieldEnd()
9429
    oprot.writeFieldStop()
9430
    oprot.writeStructEnd()
9431
 
3431 rajveer 9432
  def validate(self):
9433
    return
9434
 
9435
 
1845 vikas 9436
  def __repr__(self):
9437
    L = ['%s=%r' % (key, value)
9438
      for key, value in self.__dict__.iteritems()]
9439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9440
 
9441
  def __eq__(self, other):
9442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9443
 
9444
  def __ne__(self, other):
9445
    return not (self == other)
9446
 
9447
class getTrackLogs_args:
9448
  """
9449
  Attributes:
9450
   - userId
9451
   - event
9452
   - url
9453
  """
9454
 
9455
  thrift_spec = (
9456
    None, # 0
1996 vikas 9457
    (1, TType.I64, 'userId', None, None, ), # 1
9458
    (2, TType.STRING, 'event', None, None, ), # 2
9459
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9460
  )
9461
 
1996 vikas 9462
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9463
    self.userId = userId
9464
    self.event = event
9465
    self.url = url
9466
 
9467
  def read(self, iprot):
9468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9470
      return
9471
    iprot.readStructBegin()
9472
    while True:
9473
      (fname, ftype, fid) = iprot.readFieldBegin()
9474
      if ftype == TType.STOP:
9475
        break
9476
      if fid == 1:
9477
        if ftype == TType.I64:
1996 vikas 9478
          self.userId = iprot.readI64();
1845 vikas 9479
        else:
9480
          iprot.skip(ftype)
9481
      elif fid == 2:
9482
        if ftype == TType.STRING:
9483
          self.event = iprot.readString();
9484
        else:
9485
          iprot.skip(ftype)
1996 vikas 9486
      elif fid == 3:
1845 vikas 9487
        if ftype == TType.STRING:
9488
          self.url = iprot.readString();
9489
        else:
9490
          iprot.skip(ftype)
9491
      else:
9492
        iprot.skip(ftype)
9493
      iprot.readFieldEnd()
9494
    iprot.readStructEnd()
9495
 
9496
  def write(self, oprot):
9497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9499
      return
9500
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9501
    if self.userId is not None:
1996 vikas 9502
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9503
      oprot.writeI64(self.userId)
9504
      oprot.writeFieldEnd()
3431 rajveer 9505
    if self.event is not None:
1996 vikas 9506
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9507
      oprot.writeString(self.event)
9508
      oprot.writeFieldEnd()
3431 rajveer 9509
    if self.url is not None:
1996 vikas 9510
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9511
      oprot.writeString(self.url)
9512
      oprot.writeFieldEnd()
9513
    oprot.writeFieldStop()
9514
    oprot.writeStructEnd()
9515
 
3431 rajveer 9516
  def validate(self):
9517
    return
9518
 
9519
 
1845 vikas 9520
  def __repr__(self):
9521
    L = ['%s=%r' % (key, value)
9522
      for key, value in self.__dict__.iteritems()]
9523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9524
 
9525
  def __eq__(self, other):
9526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9527
 
9528
  def __ne__(self, other):
9529
    return not (self == other)
9530
 
9531
class getTrackLogs_result:
9532
  """
9533
  Attributes:
9534
   - success
9535
   - utx
9536
  """
9537
 
9538
  thrift_spec = (
9539
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9540
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9541
  )
9542
 
9543
  def __init__(self, success=None, utx=None,):
9544
    self.success = success
9545
    self.utx = utx
9546
 
9547
  def read(self, iprot):
9548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9550
      return
9551
    iprot.readStructBegin()
9552
    while True:
9553
      (fname, ftype, fid) = iprot.readFieldBegin()
9554
      if ftype == TType.STOP:
9555
        break
9556
      if fid == 0:
9557
        if ftype == TType.LIST:
9558
          self.success = []
3554 varun.gupt 9559
          (_etype94, _size91) = iprot.readListBegin()
9560
          for _i95 in xrange(_size91):
9561
            _elem96 = TrackLog()
9562
            _elem96.read(iprot)
9563
            self.success.append(_elem96)
1845 vikas 9564
          iprot.readListEnd()
9565
        else:
9566
          iprot.skip(ftype)
9567
      elif fid == 1:
9568
        if ftype == TType.STRUCT:
1996 vikas 9569
          self.utx = UserAffiliateException()
1845 vikas 9570
          self.utx.read(iprot)
9571
        else:
9572
          iprot.skip(ftype)
9573
      else:
9574
        iprot.skip(ftype)
9575
      iprot.readFieldEnd()
9576
    iprot.readStructEnd()
9577
 
9578
  def write(self, oprot):
9579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9581
      return
9582
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9583
    if self.success is not None:
1845 vikas 9584
      oprot.writeFieldBegin('success', TType.LIST, 0)
9585
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9586
      for iter97 in self.success:
9587
        iter97.write(oprot)
1845 vikas 9588
      oprot.writeListEnd()
9589
      oprot.writeFieldEnd()
3431 rajveer 9590
    if self.utx is not None:
1845 vikas 9591
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9592
      self.utx.write(oprot)
9593
      oprot.writeFieldEnd()
9594
    oprot.writeFieldStop()
9595
    oprot.writeStructEnd()
9596
 
3431 rajveer 9597
  def validate(self):
9598
    return
9599
 
9600
 
1845 vikas 9601
  def __repr__(self):
9602
    L = ['%s=%r' % (key, value)
9603
      for key, value in self.__dict__.iteritems()]
9604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9605
 
9606
  def __eq__(self, other):
9607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9608
 
9609
  def __ne__(self, other):
9610
    return not (self == other)
9611
 
559 chandransh 9612
class createCart_args:
94 ashish 9613
  """
9614
  Attributes:
559 chandransh 9615
   - userId
94 ashish 9616
  """
9617
 
9618
  thrift_spec = (
9619
    None, # 0
559 chandransh 9620
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9621
  )
9622
 
559 chandransh 9623
  def __init__(self, userId=None,):
9624
    self.userId = userId
94 ashish 9625
 
9626
  def read(self, iprot):
9627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9629
      return
9630
    iprot.readStructBegin()
9631
    while True:
9632
      (fname, ftype, fid) = iprot.readFieldBegin()
9633
      if ftype == TType.STOP:
9634
        break
9635
      if fid == 1:
9636
        if ftype == TType.I64:
559 chandransh 9637
          self.userId = iprot.readI64();
94 ashish 9638
        else:
9639
          iprot.skip(ftype)
559 chandransh 9640
      else:
9641
        iprot.skip(ftype)
9642
      iprot.readFieldEnd()
9643
    iprot.readStructEnd()
9644
 
9645
  def write(self, oprot):
9646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9648
      return
9649
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9650
    if self.userId is not None:
559 chandransh 9651
      oprot.writeFieldBegin('userId', TType.I64, 1)
9652
      oprot.writeI64(self.userId)
9653
      oprot.writeFieldEnd()
9654
    oprot.writeFieldStop()
9655
    oprot.writeStructEnd()
9656
 
3431 rajveer 9657
  def validate(self):
9658
    return
9659
 
9660
 
559 chandransh 9661
  def __repr__(self):
9662
    L = ['%s=%r' % (key, value)
9663
      for key, value in self.__dict__.iteritems()]
9664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9665
 
9666
  def __eq__(self, other):
9667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9668
 
9669
  def __ne__(self, other):
9670
    return not (self == other)
9671
 
9672
class createCart_result:
9673
  """
9674
  Attributes:
9675
   - success
9676
   - scx
9677
  """
9678
 
9679
  thrift_spec = (
9680
    (0, TType.I64, 'success', None, None, ), # 0
9681
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9682
  )
9683
 
9684
  def __init__(self, success=None, scx=None,):
9685
    self.success = success
9686
    self.scx = scx
9687
 
9688
  def read(self, iprot):
9689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9691
      return
9692
    iprot.readStructBegin()
9693
    while True:
9694
      (fname, ftype, fid) = iprot.readFieldBegin()
9695
      if ftype == TType.STOP:
9696
        break
9697
      if fid == 0:
94 ashish 9698
        if ftype == TType.I64:
559 chandransh 9699
          self.success = iprot.readI64();
94 ashish 9700
        else:
9701
          iprot.skip(ftype)
559 chandransh 9702
      elif fid == 1:
9703
        if ftype == TType.STRUCT:
9704
          self.scx = ShoppingCartException()
9705
          self.scx.read(iprot)
9706
        else:
9707
          iprot.skip(ftype)
94 ashish 9708
      else:
9709
        iprot.skip(ftype)
9710
      iprot.readFieldEnd()
9711
    iprot.readStructEnd()
9712
 
9713
  def write(self, oprot):
9714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9716
      return
559 chandransh 9717
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9718
    if self.success is not None:
559 chandransh 9719
      oprot.writeFieldBegin('success', TType.I64, 0)
9720
      oprot.writeI64(self.success)
94 ashish 9721
      oprot.writeFieldEnd()
3431 rajveer 9722
    if self.scx is not None:
559 chandransh 9723
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9724
      self.scx.write(oprot)
94 ashish 9725
      oprot.writeFieldEnd()
9726
    oprot.writeFieldStop()
9727
    oprot.writeStructEnd()
9728
 
3431 rajveer 9729
  def validate(self):
9730
    return
9731
 
9732
 
94 ashish 9733
  def __repr__(self):
9734
    L = ['%s=%r' % (key, value)
9735
      for key, value in self.__dict__.iteritems()]
9736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9737
 
9738
  def __eq__(self, other):
9739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9740
 
9741
  def __ne__(self, other):
9742
    return not (self == other)
9743
 
559 chandransh 9744
class getCurrentCart_args:
94 ashish 9745
  """
9746
  Attributes:
559 chandransh 9747
   - userId
9748
  """
9749
 
9750
  thrift_spec = (
9751
    None, # 0
9752
    (1, TType.I64, 'userId', None, None, ), # 1
9753
  )
9754
 
9755
  def __init__(self, userId=None,):
9756
    self.userId = userId
9757
 
9758
  def read(self, iprot):
9759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9761
      return
9762
    iprot.readStructBegin()
9763
    while True:
9764
      (fname, ftype, fid) = iprot.readFieldBegin()
9765
      if ftype == TType.STOP:
9766
        break
9767
      if fid == 1:
9768
        if ftype == TType.I64:
9769
          self.userId = iprot.readI64();
9770
        else:
9771
          iprot.skip(ftype)
9772
      else:
9773
        iprot.skip(ftype)
9774
      iprot.readFieldEnd()
9775
    iprot.readStructEnd()
9776
 
9777
  def write(self, oprot):
9778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9780
      return
9781
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9782
    if self.userId is not None:
559 chandransh 9783
      oprot.writeFieldBegin('userId', TType.I64, 1)
9784
      oprot.writeI64(self.userId)
9785
      oprot.writeFieldEnd()
9786
    oprot.writeFieldStop()
9787
    oprot.writeStructEnd()
9788
 
3431 rajveer 9789
  def validate(self):
9790
    return
9791
 
9792
 
559 chandransh 9793
  def __repr__(self):
9794
    L = ['%s=%r' % (key, value)
9795
      for key, value in self.__dict__.iteritems()]
9796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9797
 
9798
  def __eq__(self, other):
9799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9800
 
9801
  def __ne__(self, other):
9802
    return not (self == other)
9803
 
9804
class getCurrentCart_result:
9805
  """
9806
  Attributes:
94 ashish 9807
   - success
559 chandransh 9808
   - scx
94 ashish 9809
  """
9810
 
9811
  thrift_spec = (
559 chandransh 9812
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9813
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9814
  )
9815
 
559 chandransh 9816
  def __init__(self, success=None, scx=None,):
94 ashish 9817
    self.success = success
559 chandransh 9818
    self.scx = scx
94 ashish 9819
 
9820
  def read(self, iprot):
9821
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9822
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9823
      return
9824
    iprot.readStructBegin()
9825
    while True:
9826
      (fname, ftype, fid) = iprot.readFieldBegin()
9827
      if ftype == TType.STOP:
9828
        break
9829
      if fid == 0:
559 chandransh 9830
        if ftype == TType.STRUCT:
9831
          self.success = Cart()
9832
          self.success.read(iprot)
94 ashish 9833
        else:
9834
          iprot.skip(ftype)
9835
      elif fid == 1:
9836
        if ftype == TType.STRUCT:
559 chandransh 9837
          self.scx = ShoppingCartException()
9838
          self.scx.read(iprot)
94 ashish 9839
        else:
9840
          iprot.skip(ftype)
9841
      else:
9842
        iprot.skip(ftype)
9843
      iprot.readFieldEnd()
9844
    iprot.readStructEnd()
9845
 
9846
  def write(self, oprot):
9847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9849
      return
559 chandransh 9850
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9851
    if self.success is not None:
559 chandransh 9852
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9853
      self.success.write(oprot)
94 ashish 9854
      oprot.writeFieldEnd()
3431 rajveer 9855
    if self.scx is not None:
559 chandransh 9856
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9857
      self.scx.write(oprot)
94 ashish 9858
      oprot.writeFieldEnd()
9859
    oprot.writeFieldStop()
9860
    oprot.writeStructEnd()
9861
 
3431 rajveer 9862
  def validate(self):
9863
    return
9864
 
9865
 
94 ashish 9866
  def __repr__(self):
9867
    L = ['%s=%r' % (key, value)
9868
      for key, value in self.__dict__.iteritems()]
9869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9870
 
9871
  def __eq__(self, other):
9872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9873
 
9874
  def __ne__(self, other):
9875
    return not (self == other)
9876
 
559 chandransh 9877
class getCart_args:
504 rajveer 9878
  """
9879
  Attributes:
559 chandransh 9880
   - cartId
504 rajveer 9881
  """
9882
 
9883
  thrift_spec = (
9884
    None, # 0
559 chandransh 9885
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9886
  )
9887
 
559 chandransh 9888
  def __init__(self, cartId=None,):
9889
    self.cartId = cartId
504 rajveer 9890
 
9891
  def read(self, iprot):
9892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9894
      return
9895
    iprot.readStructBegin()
9896
    while True:
9897
      (fname, ftype, fid) = iprot.readFieldBegin()
9898
      if ftype == TType.STOP:
9899
        break
9900
      if fid == 1:
9901
        if ftype == TType.I64:
559 chandransh 9902
          self.cartId = iprot.readI64();
504 rajveer 9903
        else:
9904
          iprot.skip(ftype)
9905
      else:
9906
        iprot.skip(ftype)
9907
      iprot.readFieldEnd()
9908
    iprot.readStructEnd()
9909
 
9910
  def write(self, oprot):
9911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9913
      return
559 chandransh 9914
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9915
    if self.cartId is not None:
559 chandransh 9916
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9917
      oprot.writeI64(self.cartId)
504 rajveer 9918
      oprot.writeFieldEnd()
9919
    oprot.writeFieldStop()
9920
    oprot.writeStructEnd()
9921
 
3431 rajveer 9922
  def validate(self):
9923
    return
9924
 
9925
 
504 rajveer 9926
  def __repr__(self):
9927
    L = ['%s=%r' % (key, value)
9928
      for key, value in self.__dict__.iteritems()]
9929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9930
 
9931
  def __eq__(self, other):
9932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9933
 
9934
  def __ne__(self, other):
9935
    return not (self == other)
9936
 
559 chandransh 9937
class getCart_result:
504 rajveer 9938
  """
9939
  Attributes:
9940
   - success
559 chandransh 9941
   - scx
504 rajveer 9942
  """
9943
 
9944
  thrift_spec = (
559 chandransh 9945
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9946
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9947
  )
9948
 
559 chandransh 9949
  def __init__(self, success=None, scx=None,):
504 rajveer 9950
    self.success = success
559 chandransh 9951
    self.scx = scx
504 rajveer 9952
 
9953
  def read(self, iprot):
9954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9956
      return
9957
    iprot.readStructBegin()
9958
    while True:
9959
      (fname, ftype, fid) = iprot.readFieldBegin()
9960
      if ftype == TType.STOP:
9961
        break
9962
      if fid == 0:
559 chandransh 9963
        if ftype == TType.STRUCT:
9964
          self.success = Cart()
9965
          self.success.read(iprot)
504 rajveer 9966
        else:
9967
          iprot.skip(ftype)
9968
      elif fid == 1:
9969
        if ftype == TType.STRUCT:
559 chandransh 9970
          self.scx = ShoppingCartException()
9971
          self.scx.read(iprot)
504 rajveer 9972
        else:
9973
          iprot.skip(ftype)
9974
      else:
9975
        iprot.skip(ftype)
9976
      iprot.readFieldEnd()
9977
    iprot.readStructEnd()
9978
 
9979
  def write(self, oprot):
9980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9982
      return
559 chandransh 9983
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9984
    if self.success is not None:
559 chandransh 9985
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9986
      self.success.write(oprot)
504 rajveer 9987
      oprot.writeFieldEnd()
3431 rajveer 9988
    if self.scx is not None:
559 chandransh 9989
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9990
      self.scx.write(oprot)
504 rajveer 9991
      oprot.writeFieldEnd()
9992
    oprot.writeFieldStop()
9993
    oprot.writeStructEnd()
9994
 
3431 rajveer 9995
  def validate(self):
9996
    return
9997
 
9998
 
504 rajveer 9999
  def __repr__(self):
10000
    L = ['%s=%r' % (key, value)
10001
      for key, value in self.__dict__.iteritems()]
10002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10003
 
10004
  def __eq__(self, other):
10005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10006
 
10007
  def __ne__(self, other):
10008
    return not (self == other)
10009
 
559 chandransh 10010
class getCartsForUser_args:
94 ashish 10011
  """
10012
  Attributes:
559 chandransh 10013
   - userId
10014
   - status
94 ashish 10015
  """
10016
 
10017
  thrift_spec = (
10018
    None, # 0
559 chandransh 10019
    (1, TType.I64, 'userId', None, None, ), # 1
10020
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10021
  )
10022
 
559 chandransh 10023
  def __init__(self, userId=None, status=None,):
10024
    self.userId = userId
10025
    self.status = status
94 ashish 10026
 
10027
  def read(self, iprot):
10028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10030
      return
10031
    iprot.readStructBegin()
10032
    while True:
10033
      (fname, ftype, fid) = iprot.readFieldBegin()
10034
      if ftype == TType.STOP:
10035
        break
10036
      if fid == 1:
10037
        if ftype == TType.I64:
559 chandransh 10038
          self.userId = iprot.readI64();
94 ashish 10039
        else:
10040
          iprot.skip(ftype)
10041
      elif fid == 2:
559 chandransh 10042
        if ftype == TType.I32:
10043
          self.status = iprot.readI32();
94 ashish 10044
        else:
10045
          iprot.skip(ftype)
10046
      else:
10047
        iprot.skip(ftype)
10048
      iprot.readFieldEnd()
10049
    iprot.readStructEnd()
10050
 
10051
  def write(self, oprot):
10052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10054
      return
559 chandransh 10055
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 10056
    if self.userId is not None:
559 chandransh 10057
      oprot.writeFieldBegin('userId', TType.I64, 1)
10058
      oprot.writeI64(self.userId)
94 ashish 10059
      oprot.writeFieldEnd()
3431 rajveer 10060
    if self.status is not None:
559 chandransh 10061
      oprot.writeFieldBegin('status', TType.I32, 2)
10062
      oprot.writeI32(self.status)
94 ashish 10063
      oprot.writeFieldEnd()
10064
    oprot.writeFieldStop()
10065
    oprot.writeStructEnd()
10066
 
3431 rajveer 10067
  def validate(self):
10068
    return
10069
 
10070
 
94 ashish 10071
  def __repr__(self):
10072
    L = ['%s=%r' % (key, value)
10073
      for key, value in self.__dict__.iteritems()]
10074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10075
 
10076
  def __eq__(self, other):
10077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10078
 
10079
  def __ne__(self, other):
10080
    return not (self == other)
10081
 
559 chandransh 10082
class getCartsForUser_result:
94 ashish 10083
  """
10084
  Attributes:
10085
   - success
559 chandransh 10086
   - scx
94 ashish 10087
  """
10088
 
10089
  thrift_spec = (
559 chandransh 10090
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10091
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10092
  )
10093
 
559 chandransh 10094
  def __init__(self, success=None, scx=None,):
94 ashish 10095
    self.success = success
559 chandransh 10096
    self.scx = scx
94 ashish 10097
 
10098
  def read(self, iprot):
10099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10101
      return
10102
    iprot.readStructBegin()
10103
    while True:
10104
      (fname, ftype, fid) = iprot.readFieldBegin()
10105
      if ftype == TType.STOP:
10106
        break
10107
      if fid == 0:
559 chandransh 10108
        if ftype == TType.LIST:
10109
          self.success = []
3554 varun.gupt 10110
          (_etype101, _size98) = iprot.readListBegin()
10111
          for _i102 in xrange(_size98):
10112
            _elem103 = Cart()
10113
            _elem103.read(iprot)
10114
            self.success.append(_elem103)
559 chandransh 10115
          iprot.readListEnd()
94 ashish 10116
        else:
10117
          iprot.skip(ftype)
10118
      elif fid == 1:
10119
        if ftype == TType.STRUCT:
559 chandransh 10120
          self.scx = ShoppingCartException()
10121
          self.scx.read(iprot)
94 ashish 10122
        else:
10123
          iprot.skip(ftype)
10124
      else:
10125
        iprot.skip(ftype)
10126
      iprot.readFieldEnd()
10127
    iprot.readStructEnd()
10128
 
10129
  def write(self, oprot):
10130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10132
      return
559 chandransh 10133
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 10134
    if self.success is not None:
559 chandransh 10135
      oprot.writeFieldBegin('success', TType.LIST, 0)
10136
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10137
      for iter104 in self.success:
10138
        iter104.write(oprot)
559 chandransh 10139
      oprot.writeListEnd()
94 ashish 10140
      oprot.writeFieldEnd()
3431 rajveer 10141
    if self.scx is not None:
559 chandransh 10142
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10143
      self.scx.write(oprot)
94 ashish 10144
      oprot.writeFieldEnd()
10145
    oprot.writeFieldStop()
10146
    oprot.writeStructEnd()
10147
 
3431 rajveer 10148
  def validate(self):
10149
    return
10150
 
10151
 
94 ashish 10152
  def __repr__(self):
10153
    L = ['%s=%r' % (key, value)
10154
      for key, value in self.__dict__.iteritems()]
10155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10156
 
10157
  def __eq__(self, other):
10158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10159
 
10160
  def __ne__(self, other):
10161
    return not (self == other)
10162
 
559 chandransh 10163
class getCartsByStatus_args:
94 ashish 10164
  """
10165
  Attributes:
559 chandransh 10166
   - status
94 ashish 10167
  """
10168
 
10169
  thrift_spec = (
10170
    None, # 0
559 chandransh 10171
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10172
  )
10173
 
559 chandransh 10174
  def __init__(self, status=None,):
10175
    self.status = status
94 ashish 10176
 
10177
  def read(self, iprot):
10178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10180
      return
10181
    iprot.readStructBegin()
10182
    while True:
10183
      (fname, ftype, fid) = iprot.readFieldBegin()
10184
      if ftype == TType.STOP:
10185
        break
10186
      if fid == 1:
559 chandransh 10187
        if ftype == TType.I32:
10188
          self.status = iprot.readI32();
10189
        else:
10190
          iprot.skip(ftype)
10191
      else:
10192
        iprot.skip(ftype)
10193
      iprot.readFieldEnd()
10194
    iprot.readStructEnd()
10195
 
10196
  def write(self, oprot):
10197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10199
      return
10200
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10201
    if self.status is not None:
559 chandransh 10202
      oprot.writeFieldBegin('status', TType.I32, 1)
10203
      oprot.writeI32(self.status)
10204
      oprot.writeFieldEnd()
10205
    oprot.writeFieldStop()
10206
    oprot.writeStructEnd()
10207
 
3431 rajveer 10208
  def validate(self):
10209
    return
10210
 
10211
 
559 chandransh 10212
  def __repr__(self):
10213
    L = ['%s=%r' % (key, value)
10214
      for key, value in self.__dict__.iteritems()]
10215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10216
 
10217
  def __eq__(self, other):
10218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10219
 
10220
  def __ne__(self, other):
10221
    return not (self == other)
10222
 
10223
class getCartsByStatus_result:
10224
  """
10225
  Attributes:
10226
   - success
10227
   - scx
10228
  """
10229
 
10230
  thrift_spec = (
10231
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10232
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10233
  )
10234
 
10235
  def __init__(self, success=None, scx=None,):
10236
    self.success = success
10237
    self.scx = scx
10238
 
10239
  def read(self, iprot):
10240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10242
      return
10243
    iprot.readStructBegin()
10244
    while True:
10245
      (fname, ftype, fid) = iprot.readFieldBegin()
10246
      if ftype == TType.STOP:
10247
        break
10248
      if fid == 0:
10249
        if ftype == TType.LIST:
10250
          self.success = []
3554 varun.gupt 10251
          (_etype108, _size105) = iprot.readListBegin()
10252
          for _i109 in xrange(_size105):
10253
            _elem110 = Cart()
10254
            _elem110.read(iprot)
10255
            self.success.append(_elem110)
559 chandransh 10256
          iprot.readListEnd()
10257
        else:
10258
          iprot.skip(ftype)
10259
      elif fid == 1:
10260
        if ftype == TType.STRUCT:
10261
          self.scx = ShoppingCartException()
10262
          self.scx.read(iprot)
10263
        else:
10264
          iprot.skip(ftype)
10265
      else:
10266
        iprot.skip(ftype)
10267
      iprot.readFieldEnd()
10268
    iprot.readStructEnd()
10269
 
10270
  def write(self, oprot):
10271
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10272
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10273
      return
10274
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10275
    if self.success is not None:
559 chandransh 10276
      oprot.writeFieldBegin('success', TType.LIST, 0)
10277
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10278
      for iter111 in self.success:
10279
        iter111.write(oprot)
559 chandransh 10280
      oprot.writeListEnd()
10281
      oprot.writeFieldEnd()
3431 rajveer 10282
    if self.scx is not None:
559 chandransh 10283
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10284
      self.scx.write(oprot)
10285
      oprot.writeFieldEnd()
10286
    oprot.writeFieldStop()
10287
    oprot.writeStructEnd()
10288
 
3431 rajveer 10289
  def validate(self):
10290
    return
10291
 
10292
 
559 chandransh 10293
  def __repr__(self):
10294
    L = ['%s=%r' % (key, value)
10295
      for key, value in self.__dict__.iteritems()]
10296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10297
 
10298
  def __eq__(self, other):
10299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10300
 
10301
  def __ne__(self, other):
10302
    return not (self == other)
10303
 
10304
class getCartsByTime_args:
10305
  """
10306
  Attributes:
10307
   - from_time
10308
   - to_time
10309
   - status
10310
  """
10311
 
10312
  thrift_spec = (
10313
    None, # 0
10314
    (1, TType.I64, 'from_time', None, None, ), # 1
10315
    (2, TType.I64, 'to_time', None, None, ), # 2
10316
    (3, TType.I32, 'status', None, None, ), # 3
10317
  )
10318
 
10319
  def __init__(self, from_time=None, to_time=None, status=None,):
10320
    self.from_time = from_time
10321
    self.to_time = to_time
10322
    self.status = status
10323
 
10324
  def read(self, iprot):
10325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10327
      return
10328
    iprot.readStructBegin()
10329
    while True:
10330
      (fname, ftype, fid) = iprot.readFieldBegin()
10331
      if ftype == TType.STOP:
10332
        break
10333
      if fid == 1:
94 ashish 10334
        if ftype == TType.I64:
559 chandransh 10335
          self.from_time = iprot.readI64();
94 ashish 10336
        else:
10337
          iprot.skip(ftype)
122 ashish 10338
      elif fid == 2:
559 chandransh 10339
        if ftype == TType.I64:
10340
          self.to_time = iprot.readI64();
122 ashish 10341
        else:
10342
          iprot.skip(ftype)
559 chandransh 10343
      elif fid == 3:
10344
        if ftype == TType.I32:
10345
          self.status = iprot.readI32();
10346
        else:
10347
          iprot.skip(ftype)
94 ashish 10348
      else:
10349
        iprot.skip(ftype)
10350
      iprot.readFieldEnd()
10351
    iprot.readStructEnd()
10352
 
10353
  def write(self, oprot):
10354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10356
      return
559 chandransh 10357
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10358
    if self.from_time is not None:
559 chandransh 10359
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10360
      oprot.writeI64(self.from_time)
94 ashish 10361
      oprot.writeFieldEnd()
3431 rajveer 10362
    if self.to_time is not None:
559 chandransh 10363
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10364
      oprot.writeI64(self.to_time)
122 ashish 10365
      oprot.writeFieldEnd()
3431 rajveer 10366
    if self.status is not None:
559 chandransh 10367
      oprot.writeFieldBegin('status', TType.I32, 3)
10368
      oprot.writeI32(self.status)
10369
      oprot.writeFieldEnd()
94 ashish 10370
    oprot.writeFieldStop()
10371
    oprot.writeStructEnd()
10372
 
3431 rajveer 10373
  def validate(self):
10374
    return
10375
 
10376
 
94 ashish 10377
  def __repr__(self):
10378
    L = ['%s=%r' % (key, value)
10379
      for key, value in self.__dict__.iteritems()]
10380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10381
 
10382
  def __eq__(self, other):
10383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10384
 
10385
  def __ne__(self, other):
10386
    return not (self == other)
10387
 
559 chandransh 10388
class getCartsByTime_result:
94 ashish 10389
  """
10390
  Attributes:
10391
   - success
559 chandransh 10392
   - scx
94 ashish 10393
  """
10394
 
10395
  thrift_spec = (
559 chandransh 10396
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10397
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10398
  )
10399
 
559 chandransh 10400
  def __init__(self, success=None, scx=None,):
94 ashish 10401
    self.success = success
559 chandransh 10402
    self.scx = scx
94 ashish 10403
 
10404
  def read(self, iprot):
10405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10407
      return
10408
    iprot.readStructBegin()
10409
    while True:
10410
      (fname, ftype, fid) = iprot.readFieldBegin()
10411
      if ftype == TType.STOP:
10412
        break
10413
      if fid == 0:
559 chandransh 10414
        if ftype == TType.LIST:
10415
          self.success = []
3554 varun.gupt 10416
          (_etype115, _size112) = iprot.readListBegin()
10417
          for _i116 in xrange(_size112):
10418
            _elem117 = Cart()
10419
            _elem117.read(iprot)
10420
            self.success.append(_elem117)
559 chandransh 10421
          iprot.readListEnd()
94 ashish 10422
        else:
10423
          iprot.skip(ftype)
10424
      elif fid == 1:
10425
        if ftype == TType.STRUCT:
559 chandransh 10426
          self.scx = ShoppingCartException()
10427
          self.scx.read(iprot)
94 ashish 10428
        else:
10429
          iprot.skip(ftype)
10430
      else:
10431
        iprot.skip(ftype)
10432
      iprot.readFieldEnd()
10433
    iprot.readStructEnd()
10434
 
10435
  def write(self, oprot):
10436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10438
      return
559 chandransh 10439
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10440
    if self.success is not None:
559 chandransh 10441
      oprot.writeFieldBegin('success', TType.LIST, 0)
10442
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10443
      for iter118 in self.success:
10444
        iter118.write(oprot)
559 chandransh 10445
      oprot.writeListEnd()
94 ashish 10446
      oprot.writeFieldEnd()
3431 rajveer 10447
    if self.scx is not None:
559 chandransh 10448
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10449
      self.scx.write(oprot)
94 ashish 10450
      oprot.writeFieldEnd()
10451
    oprot.writeFieldStop()
10452
    oprot.writeStructEnd()
10453
 
3431 rajveer 10454
  def validate(self):
10455
    return
10456
 
10457
 
94 ashish 10458
  def __repr__(self):
10459
    L = ['%s=%r' % (key, value)
10460
      for key, value in self.__dict__.iteritems()]
10461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10462
 
10463
  def __eq__(self, other):
10464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10465
 
10466
  def __ne__(self, other):
10467
    return not (self == other)
10468
 
559 chandransh 10469
class changeCartStatus_args:
94 ashish 10470
  """
10471
  Attributes:
559 chandransh 10472
   - cartId
10473
   - status
94 ashish 10474
  """
10475
 
10476
  thrift_spec = (
10477
    None, # 0
559 chandransh 10478
    (1, TType.I64, 'cartId', None, None, ), # 1
10479
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10480
  )
10481
 
559 chandransh 10482
  def __init__(self, cartId=None, status=None,):
10483
    self.cartId = cartId
10484
    self.status = status
94 ashish 10485
 
10486
  def read(self, iprot):
10487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10489
      return
10490
    iprot.readStructBegin()
10491
    while True:
10492
      (fname, ftype, fid) = iprot.readFieldBegin()
10493
      if ftype == TType.STOP:
10494
        break
10495
      if fid == 1:
10496
        if ftype == TType.I64:
559 chandransh 10497
          self.cartId = iprot.readI64();
94 ashish 10498
        else:
10499
          iprot.skip(ftype)
559 chandransh 10500
      elif fid == 2:
10501
        if ftype == TType.I32:
10502
          self.status = iprot.readI32();
10503
        else:
10504
          iprot.skip(ftype)
94 ashish 10505
      else:
10506
        iprot.skip(ftype)
10507
      iprot.readFieldEnd()
10508
    iprot.readStructEnd()
10509
 
10510
  def write(self, oprot):
10511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10513
      return
559 chandransh 10514
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10515
    if self.cartId is not None:
559 chandransh 10516
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10517
      oprot.writeI64(self.cartId)
94 ashish 10518
      oprot.writeFieldEnd()
3431 rajveer 10519
    if self.status is not None:
559 chandransh 10520
      oprot.writeFieldBegin('status', TType.I32, 2)
10521
      oprot.writeI32(self.status)
10522
      oprot.writeFieldEnd()
94 ashish 10523
    oprot.writeFieldStop()
10524
    oprot.writeStructEnd()
10525
 
3431 rajveer 10526
  def validate(self):
10527
    return
10528
 
10529
 
94 ashish 10530
  def __repr__(self):
10531
    L = ['%s=%r' % (key, value)
10532
      for key, value in self.__dict__.iteritems()]
10533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10534
 
10535
  def __eq__(self, other):
10536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10537
 
10538
  def __ne__(self, other):
10539
    return not (self == other)
10540
 
559 chandransh 10541
class changeCartStatus_result:
94 ashish 10542
  """
10543
  Attributes:
559 chandransh 10544
   - scx
10545
  """
10546
 
10547
  thrift_spec = (
10548
    None, # 0
10549
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10550
  )
10551
 
10552
  def __init__(self, scx=None,):
10553
    self.scx = scx
10554
 
10555
  def read(self, iprot):
10556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10558
      return
10559
    iprot.readStructBegin()
10560
    while True:
10561
      (fname, ftype, fid) = iprot.readFieldBegin()
10562
      if ftype == TType.STOP:
10563
        break
10564
      if fid == 1:
10565
        if ftype == TType.STRUCT:
10566
          self.scx = ShoppingCartException()
10567
          self.scx.read(iprot)
10568
        else:
10569
          iprot.skip(ftype)
10570
      else:
10571
        iprot.skip(ftype)
10572
      iprot.readFieldEnd()
10573
    iprot.readStructEnd()
10574
 
10575
  def write(self, oprot):
10576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10578
      return
10579
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10580
    if self.scx is not None:
559 chandransh 10581
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10582
      self.scx.write(oprot)
10583
      oprot.writeFieldEnd()
10584
    oprot.writeFieldStop()
10585
    oprot.writeStructEnd()
10586
 
3431 rajveer 10587
  def validate(self):
10588
    return
10589
 
10590
 
559 chandransh 10591
  def __repr__(self):
10592
    L = ['%s=%r' % (key, value)
10593
      for key, value in self.__dict__.iteritems()]
10594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10595
 
10596
  def __eq__(self, other):
10597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10598
 
10599
  def __ne__(self, other):
10600
    return not (self == other)
10601
 
10602
class addItemToCart_args:
10603
  """
10604
  Attributes:
10605
   - cartId
10606
   - itemId
10607
   - quantity
10608
  """
10609
 
10610
  thrift_spec = (
10611
    None, # 0
10612
    (1, TType.I64, 'cartId', None, None, ), # 1
10613
    (2, TType.I64, 'itemId', None, None, ), # 2
10614
    (3, TType.I64, 'quantity', None, None, ), # 3
10615
  )
10616
 
10617
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10618
    self.cartId = cartId
10619
    self.itemId = itemId
10620
    self.quantity = quantity
10621
 
10622
  def read(self, iprot):
10623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10625
      return
10626
    iprot.readStructBegin()
10627
    while True:
10628
      (fname, ftype, fid) = iprot.readFieldBegin()
10629
      if ftype == TType.STOP:
10630
        break
10631
      if fid == 1:
10632
        if ftype == TType.I64:
10633
          self.cartId = iprot.readI64();
10634
        else:
10635
          iprot.skip(ftype)
10636
      elif fid == 2:
10637
        if ftype == TType.I64:
10638
          self.itemId = iprot.readI64();
10639
        else:
10640
          iprot.skip(ftype)
10641
      elif fid == 3:
10642
        if ftype == TType.I64:
10643
          self.quantity = iprot.readI64();
10644
        else:
10645
          iprot.skip(ftype)
10646
      else:
10647
        iprot.skip(ftype)
10648
      iprot.readFieldEnd()
10649
    iprot.readStructEnd()
10650
 
10651
  def write(self, oprot):
10652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10654
      return
10655
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10656
    if self.cartId is not None:
559 chandransh 10657
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10658
      oprot.writeI64(self.cartId)
10659
      oprot.writeFieldEnd()
3431 rajveer 10660
    if self.itemId is not None:
559 chandransh 10661
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10662
      oprot.writeI64(self.itemId)
10663
      oprot.writeFieldEnd()
3431 rajveer 10664
    if self.quantity is not None:
559 chandransh 10665
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10666
      oprot.writeI64(self.quantity)
10667
      oprot.writeFieldEnd()
10668
    oprot.writeFieldStop()
10669
    oprot.writeStructEnd()
10670
 
3431 rajveer 10671
  def validate(self):
10672
    return
10673
 
10674
 
559 chandransh 10675
  def __repr__(self):
10676
    L = ['%s=%r' % (key, value)
10677
      for key, value in self.__dict__.iteritems()]
10678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10679
 
10680
  def __eq__(self, other):
10681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10682
 
10683
  def __ne__(self, other):
10684
    return not (self == other)
10685
 
10686
class addItemToCart_result:
10687
  """
10688
  Attributes:
2035 rajveer 10689
   - success
559 chandransh 10690
   - scx
10691
  """
10692
 
10693
  thrift_spec = (
2035 rajveer 10694
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10695
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10696
  )
10697
 
2035 rajveer 10698
  def __init__(self, success=None, scx=None,):
10699
    self.success = success
559 chandransh 10700
    self.scx = scx
10701
 
10702
  def read(self, iprot):
10703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10705
      return
10706
    iprot.readStructBegin()
10707
    while True:
10708
      (fname, ftype, fid) = iprot.readFieldBegin()
10709
      if ftype == TType.STOP:
10710
        break
2035 rajveer 10711
      if fid == 0:
10712
        if ftype == TType.STRING:
10713
          self.success = iprot.readString();
10714
        else:
10715
          iprot.skip(ftype)
10716
      elif fid == 1:
559 chandransh 10717
        if ftype == TType.STRUCT:
10718
          self.scx = ShoppingCartException()
10719
          self.scx.read(iprot)
10720
        else:
10721
          iprot.skip(ftype)
10722
      else:
10723
        iprot.skip(ftype)
10724
      iprot.readFieldEnd()
10725
    iprot.readStructEnd()
10726
 
10727
  def write(self, oprot):
10728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10730
      return
10731
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10732
    if self.success is not None:
2035 rajveer 10733
      oprot.writeFieldBegin('success', TType.STRING, 0)
10734
      oprot.writeString(self.success)
10735
      oprot.writeFieldEnd()
3431 rajveer 10736
    if self.scx is not None:
559 chandransh 10737
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10738
      self.scx.write(oprot)
10739
      oprot.writeFieldEnd()
10740
    oprot.writeFieldStop()
10741
    oprot.writeStructEnd()
10742
 
3431 rajveer 10743
  def validate(self):
10744
    return
10745
 
10746
 
559 chandransh 10747
  def __repr__(self):
10748
    L = ['%s=%r' % (key, value)
10749
      for key, value in self.__dict__.iteritems()]
10750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10751
 
10752
  def __eq__(self, other):
10753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10754
 
10755
  def __ne__(self, other):
10756
    return not (self == other)
10757
 
10758
class deleteItemFromCart_args:
10759
  """
10760
  Attributes:
10761
   - cartId
10762
   - itemId
10763
  """
10764
 
10765
  thrift_spec = (
10766
    None, # 0
10767
    (1, TType.I64, 'cartId', None, None, ), # 1
10768
    (2, TType.I64, 'itemId', None, None, ), # 2
10769
  )
10770
 
10771
  def __init__(self, cartId=None, itemId=None,):
10772
    self.cartId = cartId
10773
    self.itemId = itemId
10774
 
10775
  def read(self, iprot):
10776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10778
      return
10779
    iprot.readStructBegin()
10780
    while True:
10781
      (fname, ftype, fid) = iprot.readFieldBegin()
10782
      if ftype == TType.STOP:
10783
        break
10784
      if fid == 1:
10785
        if ftype == TType.I64:
10786
          self.cartId = iprot.readI64();
10787
        else:
10788
          iprot.skip(ftype)
10789
      elif fid == 2:
10790
        if ftype == TType.I64:
10791
          self.itemId = iprot.readI64();
10792
        else:
10793
          iprot.skip(ftype)
10794
      else:
10795
        iprot.skip(ftype)
10796
      iprot.readFieldEnd()
10797
    iprot.readStructEnd()
10798
 
10799
  def write(self, oprot):
10800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10802
      return
10803
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10804
    if self.cartId is not None:
559 chandransh 10805
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10806
      oprot.writeI64(self.cartId)
10807
      oprot.writeFieldEnd()
3431 rajveer 10808
    if self.itemId is not None:
559 chandransh 10809
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10810
      oprot.writeI64(self.itemId)
10811
      oprot.writeFieldEnd()
10812
    oprot.writeFieldStop()
10813
    oprot.writeStructEnd()
10814
 
3431 rajveer 10815
  def validate(self):
10816
    return
10817
 
10818
 
559 chandransh 10819
  def __repr__(self):
10820
    L = ['%s=%r' % (key, value)
10821
      for key, value in self.__dict__.iteritems()]
10822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10823
 
10824
  def __eq__(self, other):
10825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10826
 
10827
  def __ne__(self, other):
10828
    return not (self == other)
10829
 
10830
class deleteItemFromCart_result:
10831
  """
10832
  Attributes:
10833
   - scx
10834
  """
10835
 
10836
  thrift_spec = (
10837
    None, # 0
10838
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10839
  )
10840
 
10841
  def __init__(self, scx=None,):
10842
    self.scx = scx
10843
 
10844
  def read(self, iprot):
10845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10847
      return
10848
    iprot.readStructBegin()
10849
    while True:
10850
      (fname, ftype, fid) = iprot.readFieldBegin()
10851
      if ftype == TType.STOP:
10852
        break
10853
      if fid == 1:
10854
        if ftype == TType.STRUCT:
10855
          self.scx = ShoppingCartException()
10856
          self.scx.read(iprot)
10857
        else:
10858
          iprot.skip(ftype)
10859
      else:
10860
        iprot.skip(ftype)
10861
      iprot.readFieldEnd()
10862
    iprot.readStructEnd()
10863
 
10864
  def write(self, oprot):
10865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10867
      return
10868
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10869
    if self.scx is not None:
559 chandransh 10870
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10871
      self.scx.write(oprot)
10872
      oprot.writeFieldEnd()
10873
    oprot.writeFieldStop()
10874
    oprot.writeStructEnd()
10875
 
3431 rajveer 10876
  def validate(self):
10877
    return
10878
 
10879
 
559 chandransh 10880
  def __repr__(self):
10881
    L = ['%s=%r' % (key, value)
10882
      for key, value in self.__dict__.iteritems()]
10883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10884
 
10885
  def __eq__(self, other):
10886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10887
 
10888
  def __ne__(self, other):
10889
    return not (self == other)
10890
 
10891
class changeQuantity_args:
10892
  """
10893
  Attributes:
10894
   - cartId
10895
   - itemId
10896
   - quantity
10897
  """
10898
 
10899
  thrift_spec = (
10900
    None, # 0
10901
    (1, TType.I64, 'cartId', None, None, ), # 1
10902
    (2, TType.I64, 'itemId', None, None, ), # 2
10903
    (3, TType.I64, 'quantity', None, None, ), # 3
10904
  )
10905
 
10906
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10907
    self.cartId = cartId
10908
    self.itemId = itemId
10909
    self.quantity = quantity
10910
 
10911
  def read(self, iprot):
10912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10914
      return
10915
    iprot.readStructBegin()
10916
    while True:
10917
      (fname, ftype, fid) = iprot.readFieldBegin()
10918
      if ftype == TType.STOP:
10919
        break
10920
      if fid == 1:
10921
        if ftype == TType.I64:
10922
          self.cartId = iprot.readI64();
10923
        else:
10924
          iprot.skip(ftype)
10925
      elif fid == 2:
10926
        if ftype == TType.I64:
10927
          self.itemId = iprot.readI64();
10928
        else:
10929
          iprot.skip(ftype)
10930
      elif fid == 3:
10931
        if ftype == TType.I64:
10932
          self.quantity = iprot.readI64();
10933
        else:
10934
          iprot.skip(ftype)
10935
      else:
10936
        iprot.skip(ftype)
10937
      iprot.readFieldEnd()
10938
    iprot.readStructEnd()
10939
 
10940
  def write(self, oprot):
10941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10943
      return
10944
    oprot.writeStructBegin('changeQuantity_args')
3431 rajveer 10945
    if self.cartId is not None:
559 chandransh 10946
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10947
      oprot.writeI64(self.cartId)
10948
      oprot.writeFieldEnd()
3431 rajveer 10949
    if self.itemId is not None:
559 chandransh 10950
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10951
      oprot.writeI64(self.itemId)
10952
      oprot.writeFieldEnd()
3431 rajveer 10953
    if self.quantity is not None:
559 chandransh 10954
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10955
      oprot.writeI64(self.quantity)
10956
      oprot.writeFieldEnd()
10957
    oprot.writeFieldStop()
10958
    oprot.writeStructEnd()
10959
 
3431 rajveer 10960
  def validate(self):
10961
    return
10962
 
10963
 
559 chandransh 10964
  def __repr__(self):
10965
    L = ['%s=%r' % (key, value)
10966
      for key, value in self.__dict__.iteritems()]
10967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10968
 
10969
  def __eq__(self, other):
10970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10971
 
10972
  def __ne__(self, other):
10973
    return not (self == other)
10974
 
10975
class changeQuantity_result:
10976
  """
10977
  Attributes:
10978
   - scx
10979
  """
10980
 
10981
  thrift_spec = (
10982
    None, # 0
10983
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10984
  )
10985
 
10986
  def __init__(self, scx=None,):
10987
    self.scx = scx
10988
 
10989
  def read(self, iprot):
10990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10992
      return
10993
    iprot.readStructBegin()
10994
    while True:
10995
      (fname, ftype, fid) = iprot.readFieldBegin()
10996
      if ftype == TType.STOP:
10997
        break
10998
      if fid == 1:
10999
        if ftype == TType.STRUCT:
11000
          self.scx = ShoppingCartException()
11001
          self.scx.read(iprot)
11002
        else:
11003
          iprot.skip(ftype)
11004
      else:
11005
        iprot.skip(ftype)
11006
      iprot.readFieldEnd()
11007
    iprot.readStructEnd()
11008
 
11009
  def write(self, oprot):
11010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11012
      return
11013
    oprot.writeStructBegin('changeQuantity_result')
3431 rajveer 11014
    if self.scx is not None:
559 chandransh 11015
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11016
      self.scx.write(oprot)
11017
      oprot.writeFieldEnd()
11018
    oprot.writeFieldStop()
11019
    oprot.writeStructEnd()
11020
 
3431 rajveer 11021
  def validate(self):
11022
    return
11023
 
11024
 
559 chandransh 11025
  def __repr__(self):
11026
    L = ['%s=%r' % (key, value)
11027
      for key, value in self.__dict__.iteritems()]
11028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11029
 
11030
  def __eq__(self, other):
11031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11032
 
11033
  def __ne__(self, other):
11034
    return not (self == other)
11035
 
11036
class changeItemStatus_args:
11037
  """
11038
  Attributes:
11039
   - cartId
11040
   - itemId
11041
   - status
11042
  """
11043
 
11044
  thrift_spec = (
11045
    None, # 0
11046
    (1, TType.I64, 'cartId', None, None, ), # 1
11047
    (2, TType.I64, 'itemId', None, None, ), # 2
11048
    (3, TType.I32, 'status', None, None, ), # 3
11049
  )
11050
 
11051
  def __init__(self, cartId=None, itemId=None, status=None,):
11052
    self.cartId = cartId
11053
    self.itemId = itemId
11054
    self.status = status
11055
 
11056
  def read(self, iprot):
11057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11059
      return
11060
    iprot.readStructBegin()
11061
    while True:
11062
      (fname, ftype, fid) = iprot.readFieldBegin()
11063
      if ftype == TType.STOP:
11064
        break
11065
      if fid == 1:
11066
        if ftype == TType.I64:
11067
          self.cartId = iprot.readI64();
11068
        else:
11069
          iprot.skip(ftype)
11070
      elif fid == 2:
11071
        if ftype == TType.I64:
11072
          self.itemId = iprot.readI64();
11073
        else:
11074
          iprot.skip(ftype)
11075
      elif fid == 3:
11076
        if ftype == TType.I32:
11077
          self.status = iprot.readI32();
11078
        else:
11079
          iprot.skip(ftype)
11080
      else:
11081
        iprot.skip(ftype)
11082
      iprot.readFieldEnd()
11083
    iprot.readStructEnd()
11084
 
11085
  def write(self, oprot):
11086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11088
      return
11089
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 11090
    if self.cartId is not None:
559 chandransh 11091
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11092
      oprot.writeI64(self.cartId)
11093
      oprot.writeFieldEnd()
3431 rajveer 11094
    if self.itemId is not None:
559 chandransh 11095
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11096
      oprot.writeI64(self.itemId)
11097
      oprot.writeFieldEnd()
3431 rajveer 11098
    if self.status is not None:
559 chandransh 11099
      oprot.writeFieldBegin('status', TType.I32, 3)
11100
      oprot.writeI32(self.status)
11101
      oprot.writeFieldEnd()
11102
    oprot.writeFieldStop()
11103
    oprot.writeStructEnd()
11104
 
3431 rajveer 11105
  def validate(self):
11106
    return
11107
 
11108
 
559 chandransh 11109
  def __repr__(self):
11110
    L = ['%s=%r' % (key, value)
11111
      for key, value in self.__dict__.iteritems()]
11112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11113
 
11114
  def __eq__(self, other):
11115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11116
 
11117
  def __ne__(self, other):
11118
    return not (self == other)
11119
 
11120
class changeItemStatus_result:
11121
  """
11122
  Attributes:
11123
   - scx
11124
  """
11125
 
11126
  thrift_spec = (
11127
    None, # 0
11128
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11129
  )
11130
 
11131
  def __init__(self, scx=None,):
11132
    self.scx = scx
11133
 
11134
  def read(self, iprot):
11135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11137
      return
11138
    iprot.readStructBegin()
11139
    while True:
11140
      (fname, ftype, fid) = iprot.readFieldBegin()
11141
      if ftype == TType.STOP:
11142
        break
11143
      if fid == 1:
11144
        if ftype == TType.STRUCT:
11145
          self.scx = ShoppingCartException()
11146
          self.scx.read(iprot)
11147
        else:
11148
          iprot.skip(ftype)
11149
      else:
11150
        iprot.skip(ftype)
11151
      iprot.readFieldEnd()
11152
    iprot.readStructEnd()
11153
 
11154
  def write(self, oprot):
11155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11157
      return
11158
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 11159
    if self.scx is not None:
559 chandransh 11160
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11161
      self.scx.write(oprot)
11162
      oprot.writeFieldEnd()
11163
    oprot.writeFieldStop()
11164
    oprot.writeStructEnd()
11165
 
3431 rajveer 11166
  def validate(self):
11167
    return
11168
 
11169
 
559 chandransh 11170
  def __repr__(self):
11171
    L = ['%s=%r' % (key, value)
11172
      for key, value in self.__dict__.iteritems()]
11173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11174
 
11175
  def __eq__(self, other):
11176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11177
 
11178
  def __ne__(self, other):
11179
    return not (self == other)
11180
 
11181
class addAddressToCart_args:
11182
  """
11183
  Attributes:
11184
   - cartId
11185
   - addressId
11186
  """
11187
 
11188
  thrift_spec = (
11189
    None, # 0
11190
    (1, TType.I64, 'cartId', None, None, ), # 1
11191
    (2, TType.I64, 'addressId', None, None, ), # 2
11192
  )
11193
 
11194
  def __init__(self, cartId=None, addressId=None,):
11195
    self.cartId = cartId
11196
    self.addressId = addressId
11197
 
11198
  def read(self, iprot):
11199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11201
      return
11202
    iprot.readStructBegin()
11203
    while True:
11204
      (fname, ftype, fid) = iprot.readFieldBegin()
11205
      if ftype == TType.STOP:
11206
        break
11207
      if fid == 1:
11208
        if ftype == TType.I64:
11209
          self.cartId = iprot.readI64();
11210
        else:
11211
          iprot.skip(ftype)
11212
      elif fid == 2:
11213
        if ftype == TType.I64:
11214
          self.addressId = iprot.readI64();
11215
        else:
11216
          iprot.skip(ftype)
11217
      else:
11218
        iprot.skip(ftype)
11219
      iprot.readFieldEnd()
11220
    iprot.readStructEnd()
11221
 
11222
  def write(self, oprot):
11223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11225
      return
11226
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11227
    if self.cartId is not None:
559 chandransh 11228
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11229
      oprot.writeI64(self.cartId)
11230
      oprot.writeFieldEnd()
3431 rajveer 11231
    if self.addressId is not None:
559 chandransh 11232
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11233
      oprot.writeI64(self.addressId)
11234
      oprot.writeFieldEnd()
11235
    oprot.writeFieldStop()
11236
    oprot.writeStructEnd()
11237
 
3431 rajveer 11238
  def validate(self):
11239
    return
11240
 
11241
 
559 chandransh 11242
  def __repr__(self):
11243
    L = ['%s=%r' % (key, value)
11244
      for key, value in self.__dict__.iteritems()]
11245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11246
 
11247
  def __eq__(self, other):
11248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11249
 
11250
  def __ne__(self, other):
11251
    return not (self == other)
11252
 
11253
class addAddressToCart_result:
575 chandransh 11254
  """
11255
  Attributes:
11256
   - scx
11257
  """
559 chandransh 11258
 
11259
  thrift_spec = (
575 chandransh 11260
    None, # 0
11261
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11262
  )
11263
 
575 chandransh 11264
  def __init__(self, scx=None,):
11265
    self.scx = scx
11266
 
559 chandransh 11267
  def read(self, iprot):
11268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11270
      return
11271
    iprot.readStructBegin()
11272
    while True:
11273
      (fname, ftype, fid) = iprot.readFieldBegin()
11274
      if ftype == TType.STOP:
11275
        break
575 chandransh 11276
      if fid == 1:
11277
        if ftype == TType.STRUCT:
11278
          self.scx = ShoppingCartException()
11279
          self.scx.read(iprot)
11280
        else:
11281
          iprot.skip(ftype)
559 chandransh 11282
      else:
11283
        iprot.skip(ftype)
11284
      iprot.readFieldEnd()
11285
    iprot.readStructEnd()
11286
 
11287
  def write(self, oprot):
11288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11290
      return
11291
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11292
    if self.scx is not None:
575 chandransh 11293
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11294
      self.scx.write(oprot)
11295
      oprot.writeFieldEnd()
559 chandransh 11296
    oprot.writeFieldStop()
11297
    oprot.writeStructEnd()
11298
 
3431 rajveer 11299
  def validate(self):
11300
    return
11301
 
11302
 
559 chandransh 11303
  def __repr__(self):
11304
    L = ['%s=%r' % (key, value)
11305
      for key, value in self.__dict__.iteritems()]
11306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11307
 
11308
  def __eq__(self, other):
11309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11310
 
11311
  def __ne__(self, other):
11312
    return not (self == other)
11313
 
1976 varun.gupt 11314
class applyCouponToCart_args:
11315
  """
11316
  Attributes:
11317
   - cartId
11318
   - couponCode
11319
   - totalPrice
11320
   - discountedPrice
11321
  """
11322
 
11323
  thrift_spec = (
11324
    None, # 0
11325
    (1, TType.I64, 'cartId', None, None, ), # 1
11326
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11327
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11328
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11329
  )
11330
 
11331
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11332
    self.cartId = cartId
11333
    self.couponCode = couponCode
11334
    self.totalPrice = totalPrice
11335
    self.discountedPrice = discountedPrice
11336
 
11337
  def read(self, iprot):
11338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11340
      return
11341
    iprot.readStructBegin()
11342
    while True:
11343
      (fname, ftype, fid) = iprot.readFieldBegin()
11344
      if ftype == TType.STOP:
11345
        break
11346
      if fid == 1:
11347
        if ftype == TType.I64:
11348
          self.cartId = iprot.readI64();
11349
        else:
11350
          iprot.skip(ftype)
11351
      elif fid == 2:
11352
        if ftype == TType.STRING:
11353
          self.couponCode = iprot.readString();
11354
        else:
11355
          iprot.skip(ftype)
11356
      elif fid == 3:
11357
        if ftype == TType.DOUBLE:
11358
          self.totalPrice = iprot.readDouble();
11359
        else:
11360
          iprot.skip(ftype)
11361
      elif fid == 4:
11362
        if ftype == TType.DOUBLE:
11363
          self.discountedPrice = iprot.readDouble();
11364
        else:
11365
          iprot.skip(ftype)
11366
      else:
11367
        iprot.skip(ftype)
11368
      iprot.readFieldEnd()
11369
    iprot.readStructEnd()
11370
 
11371
  def write(self, oprot):
11372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11374
      return
11375
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11376
    if self.cartId is not None:
1976 varun.gupt 11377
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11378
      oprot.writeI64(self.cartId)
11379
      oprot.writeFieldEnd()
3431 rajveer 11380
    if self.couponCode is not None:
1976 varun.gupt 11381
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11382
      oprot.writeString(self.couponCode)
11383
      oprot.writeFieldEnd()
3431 rajveer 11384
    if self.totalPrice is not None:
1976 varun.gupt 11385
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11386
      oprot.writeDouble(self.totalPrice)
11387
      oprot.writeFieldEnd()
3431 rajveer 11388
    if self.discountedPrice is not None:
1976 varun.gupt 11389
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11390
      oprot.writeDouble(self.discountedPrice)
11391
      oprot.writeFieldEnd()
11392
    oprot.writeFieldStop()
11393
    oprot.writeStructEnd()
11394
 
3431 rajveer 11395
  def validate(self):
11396
    return
11397
 
11398
 
1976 varun.gupt 11399
  def __repr__(self):
11400
    L = ['%s=%r' % (key, value)
11401
      for key, value in self.__dict__.iteritems()]
11402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11403
 
11404
  def __eq__(self, other):
11405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11406
 
11407
  def __ne__(self, other):
11408
    return not (self == other)
11409
 
11410
class applyCouponToCart_result:
11411
  """
11412
  Attributes:
11413
   - scx
11414
  """
11415
 
11416
  thrift_spec = (
11417
    None, # 0
11418
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11419
  )
11420
 
11421
  def __init__(self, scx=None,):
11422
    self.scx = scx
11423
 
11424
  def read(self, iprot):
11425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11427
      return
11428
    iprot.readStructBegin()
11429
    while True:
11430
      (fname, ftype, fid) = iprot.readFieldBegin()
11431
      if ftype == TType.STOP:
11432
        break
11433
      if fid == 1:
11434
        if ftype == TType.STRUCT:
11435
          self.scx = ShoppingCartException()
11436
          self.scx.read(iprot)
11437
        else:
11438
          iprot.skip(ftype)
11439
      else:
11440
        iprot.skip(ftype)
11441
      iprot.readFieldEnd()
11442
    iprot.readStructEnd()
11443
 
11444
  def write(self, oprot):
11445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11447
      return
11448
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11449
    if self.scx is not None:
1976 varun.gupt 11450
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11451
      self.scx.write(oprot)
11452
      oprot.writeFieldEnd()
11453
    oprot.writeFieldStop()
11454
    oprot.writeStructEnd()
11455
 
3431 rajveer 11456
  def validate(self):
11457
    return
11458
 
11459
 
1976 varun.gupt 11460
  def __repr__(self):
11461
    L = ['%s=%r' % (key, value)
11462
      for key, value in self.__dict__.iteritems()]
11463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11464
 
11465
  def __eq__(self, other):
11466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11467
 
11468
  def __ne__(self, other):
11469
    return not (self == other)
11470
 
11471
class removeCoupon_args:
11472
  """
11473
  Attributes:
11474
   - cartId
11475
  """
11476
 
11477
  thrift_spec = (
11478
    None, # 0
11479
    (1, TType.I64, 'cartId', None, None, ), # 1
11480
  )
11481
 
11482
  def __init__(self, cartId=None,):
11483
    self.cartId = cartId
11484
 
11485
  def read(self, iprot):
11486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11488
      return
11489
    iprot.readStructBegin()
11490
    while True:
11491
      (fname, ftype, fid) = iprot.readFieldBegin()
11492
      if ftype == TType.STOP:
11493
        break
11494
      if fid == 1:
11495
        if ftype == TType.I64:
11496
          self.cartId = iprot.readI64();
11497
        else:
11498
          iprot.skip(ftype)
11499
      else:
11500
        iprot.skip(ftype)
11501
      iprot.readFieldEnd()
11502
    iprot.readStructEnd()
11503
 
11504
  def write(self, oprot):
11505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11507
      return
11508
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11509
    if self.cartId is not None:
1976 varun.gupt 11510
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11511
      oprot.writeI64(self.cartId)
11512
      oprot.writeFieldEnd()
11513
    oprot.writeFieldStop()
11514
    oprot.writeStructEnd()
11515
 
3431 rajveer 11516
  def validate(self):
11517
    return
11518
 
11519
 
1976 varun.gupt 11520
  def __repr__(self):
11521
    L = ['%s=%r' % (key, value)
11522
      for key, value in self.__dict__.iteritems()]
11523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11524
 
11525
  def __eq__(self, other):
11526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11527
 
11528
  def __ne__(self, other):
11529
    return not (self == other)
11530
 
11531
class removeCoupon_result:
11532
  """
11533
  Attributes:
11534
   - scx
11535
  """
11536
 
11537
  thrift_spec = (
11538
    None, # 0
11539
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11540
  )
11541
 
11542
  def __init__(self, scx=None,):
11543
    self.scx = scx
11544
 
11545
  def read(self, iprot):
11546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11548
      return
11549
    iprot.readStructBegin()
11550
    while True:
11551
      (fname, ftype, fid) = iprot.readFieldBegin()
11552
      if ftype == TType.STOP:
11553
        break
11554
      if fid == 1:
11555
        if ftype == TType.STRUCT:
11556
          self.scx = ShoppingCartException()
11557
          self.scx.read(iprot)
11558
        else:
11559
          iprot.skip(ftype)
11560
      else:
11561
        iprot.skip(ftype)
11562
      iprot.readFieldEnd()
11563
    iprot.readStructEnd()
11564
 
11565
  def write(self, oprot):
11566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11568
      return
11569
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11570
    if self.scx is not None:
1976 varun.gupt 11571
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11572
      self.scx.write(oprot)
11573
      oprot.writeFieldEnd()
11574
    oprot.writeFieldStop()
11575
    oprot.writeStructEnd()
11576
 
3431 rajveer 11577
  def validate(self):
11578
    return
11579
 
11580
 
1976 varun.gupt 11581
  def __repr__(self):
11582
    L = ['%s=%r' % (key, value)
11583
      for key, value in self.__dict__.iteritems()]
11584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11585
 
11586
  def __eq__(self, other):
11587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11588
 
11589
  def __ne__(self, other):
11590
    return not (self == other)
11591
 
3554 varun.gupt 11592
class deleteDiscountsFromCart_args:
11593
  """
11594
  Attributes:
11595
   - cartId
11596
  """
11597
 
11598
  thrift_spec = (
11599
    None, # 0
11600
    (1, TType.I64, 'cartId', None, None, ), # 1
11601
  )
11602
 
11603
  def __init__(self, cartId=None,):
11604
    self.cartId = cartId
11605
 
11606
  def read(self, iprot):
11607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11609
      return
11610
    iprot.readStructBegin()
11611
    while True:
11612
      (fname, ftype, fid) = iprot.readFieldBegin()
11613
      if ftype == TType.STOP:
11614
        break
11615
      if fid == 1:
11616
        if ftype == TType.I64:
11617
          self.cartId = iprot.readI64();
11618
        else:
11619
          iprot.skip(ftype)
11620
      else:
11621
        iprot.skip(ftype)
11622
      iprot.readFieldEnd()
11623
    iprot.readStructEnd()
11624
 
11625
  def write(self, oprot):
11626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11628
      return
11629
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
11630
    if self.cartId is not None:
11631
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11632
      oprot.writeI64(self.cartId)
11633
      oprot.writeFieldEnd()
11634
    oprot.writeFieldStop()
11635
    oprot.writeStructEnd()
11636
 
11637
  def validate(self):
11638
    return
11639
 
11640
 
11641
  def __repr__(self):
11642
    L = ['%s=%r' % (key, value)
11643
      for key, value in self.__dict__.iteritems()]
11644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11645
 
11646
  def __eq__(self, other):
11647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11648
 
11649
  def __ne__(self, other):
11650
    return not (self == other)
11651
 
11652
class deleteDiscountsFromCart_result:
11653
  """
11654
  Attributes:
11655
   - scx
11656
  """
11657
 
11658
  thrift_spec = (
11659
    None, # 0
11660
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11661
  )
11662
 
11663
  def __init__(self, scx=None,):
11664
    self.scx = scx
11665
 
11666
  def read(self, iprot):
11667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11669
      return
11670
    iprot.readStructBegin()
11671
    while True:
11672
      (fname, ftype, fid) = iprot.readFieldBegin()
11673
      if ftype == TType.STOP:
11674
        break
11675
      if fid == 1:
11676
        if ftype == TType.STRUCT:
11677
          self.scx = ShoppingCartException()
11678
          self.scx.read(iprot)
11679
        else:
11680
          iprot.skip(ftype)
11681
      else:
11682
        iprot.skip(ftype)
11683
      iprot.readFieldEnd()
11684
    iprot.readStructEnd()
11685
 
11686
  def write(self, oprot):
11687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11689
      return
11690
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11691
    if self.scx is not None:
11692
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11693
      self.scx.write(oprot)
11694
      oprot.writeFieldEnd()
11695
    oprot.writeFieldStop()
11696
    oprot.writeStructEnd()
11697
 
11698
  def validate(self):
11699
    return
11700
 
11701
 
11702
  def __repr__(self):
11703
    L = ['%s=%r' % (key, value)
11704
      for key, value in self.__dict__.iteritems()]
11705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11706
 
11707
  def __eq__(self, other):
11708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11709
 
11710
  def __ne__(self, other):
11711
    return not (self == other)
11712
 
11713
class saveDiscounts_args:
11714
  """
11715
  Attributes:
11716
   - discounts
11717
  """
11718
 
11719
  thrift_spec = (
11720
    None, # 0
11721
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11722
  )
11723
 
11724
  def __init__(self, discounts=None,):
11725
    self.discounts = discounts
11726
 
11727
  def read(self, iprot):
11728
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11729
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11730
      return
11731
    iprot.readStructBegin()
11732
    while True:
11733
      (fname, ftype, fid) = iprot.readFieldBegin()
11734
      if ftype == TType.STOP:
11735
        break
11736
      if fid == 1:
11737
        if ftype == TType.LIST:
11738
          self.discounts = []
11739
          (_etype122, _size119) = iprot.readListBegin()
11740
          for _i123 in xrange(_size119):
11741
            _elem124 = Discount()
11742
            _elem124.read(iprot)
11743
            self.discounts.append(_elem124)
11744
          iprot.readListEnd()
11745
        else:
11746
          iprot.skip(ftype)
11747
      else:
11748
        iprot.skip(ftype)
11749
      iprot.readFieldEnd()
11750
    iprot.readStructEnd()
11751
 
11752
  def write(self, oprot):
11753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11755
      return
11756
    oprot.writeStructBegin('saveDiscounts_args')
11757
    if self.discounts is not None:
11758
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11759
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11760
      for iter125 in self.discounts:
11761
        iter125.write(oprot)
11762
      oprot.writeListEnd()
11763
      oprot.writeFieldEnd()
11764
    oprot.writeFieldStop()
11765
    oprot.writeStructEnd()
11766
 
11767
  def validate(self):
11768
    return
11769
 
11770
 
11771
  def __repr__(self):
11772
    L = ['%s=%r' % (key, value)
11773
      for key, value in self.__dict__.iteritems()]
11774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11775
 
11776
  def __eq__(self, other):
11777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11778
 
11779
  def __ne__(self, other):
11780
    return not (self == other)
11781
 
11782
class saveDiscounts_result:
11783
  """
11784
  Attributes:
11785
   - scx
11786
  """
11787
 
11788
  thrift_spec = (
11789
    None, # 0
11790
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11791
  )
11792
 
11793
  def __init__(self, scx=None,):
11794
    self.scx = scx
11795
 
11796
  def read(self, iprot):
11797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11799
      return
11800
    iprot.readStructBegin()
11801
    while True:
11802
      (fname, ftype, fid) = iprot.readFieldBegin()
11803
      if ftype == TType.STOP:
11804
        break
11805
      if fid == 1:
11806
        if ftype == TType.STRUCT:
11807
          self.scx = ShoppingCartException()
11808
          self.scx.read(iprot)
11809
        else:
11810
          iprot.skip(ftype)
11811
      else:
11812
        iprot.skip(ftype)
11813
      iprot.readFieldEnd()
11814
    iprot.readStructEnd()
11815
 
11816
  def write(self, oprot):
11817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11819
      return
11820
    oprot.writeStructBegin('saveDiscounts_result')
11821
    if self.scx is not None:
11822
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11823
      self.scx.write(oprot)
11824
      oprot.writeFieldEnd()
11825
    oprot.writeFieldStop()
11826
    oprot.writeStructEnd()
11827
 
11828
  def validate(self):
11829
    return
11830
 
11831
 
11832
  def __repr__(self):
11833
    L = ['%s=%r' % (key, value)
11834
      for key, value in self.__dict__.iteritems()]
11835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11836
 
11837
  def __eq__(self, other):
11838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11839
 
11840
  def __ne__(self, other):
11841
    return not (self == other)
11842
 
690 chandransh 11843
class createOrders_args:
559 chandransh 11844
  """
11845
  Attributes:
11846
   - cartId
2815 vikas 11847
   - sessionSource
11848
   - sessionStartTime
559 chandransh 11849
  """
11850
 
11851
  thrift_spec = (
11852
    None, # 0
11853
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11854
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11855
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
559 chandransh 11856
  )
11857
 
2815 vikas 11858
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None,):
559 chandransh 11859
    self.cartId = cartId
2815 vikas 11860
    self.sessionSource = sessionSource
11861
    self.sessionStartTime = sessionStartTime
559 chandransh 11862
 
11863
  def read(self, iprot):
11864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11866
      return
11867
    iprot.readStructBegin()
11868
    while True:
11869
      (fname, ftype, fid) = iprot.readFieldBegin()
11870
      if ftype == TType.STOP:
11871
        break
11872
      if fid == 1:
11873
        if ftype == TType.I64:
11874
          self.cartId = iprot.readI64();
11875
        else:
11876
          iprot.skip(ftype)
2815 vikas 11877
      elif fid == 2:
11878
        if ftype == TType.STRING:
11879
          self.sessionSource = iprot.readString();
11880
        else:
11881
          iprot.skip(ftype)
11882
      elif fid == 3:
11883
        if ftype == TType.I64:
11884
          self.sessionStartTime = iprot.readI64();
11885
        else:
11886
          iprot.skip(ftype)
559 chandransh 11887
      else:
11888
        iprot.skip(ftype)
11889
      iprot.readFieldEnd()
11890
    iprot.readStructEnd()
11891
 
11892
  def write(self, oprot):
11893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11895
      return
690 chandransh 11896
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11897
    if self.cartId is not None:
559 chandransh 11898
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11899
      oprot.writeI64(self.cartId)
11900
      oprot.writeFieldEnd()
3431 rajveer 11901
    if self.sessionSource is not None:
2815 vikas 11902
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11903
      oprot.writeString(self.sessionSource)
11904
      oprot.writeFieldEnd()
3431 rajveer 11905
    if self.sessionStartTime is not None:
2815 vikas 11906
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11907
      oprot.writeI64(self.sessionStartTime)
11908
      oprot.writeFieldEnd()
559 chandransh 11909
    oprot.writeFieldStop()
11910
    oprot.writeStructEnd()
11911
 
3431 rajveer 11912
  def validate(self):
11913
    return
11914
 
11915
 
559 chandransh 11916
  def __repr__(self):
11917
    L = ['%s=%r' % (key, value)
11918
      for key, value in self.__dict__.iteritems()]
11919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11920
 
11921
  def __eq__(self, other):
11922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11923
 
11924
  def __ne__(self, other):
11925
    return not (self == other)
11926
 
690 chandransh 11927
class createOrders_result:
559 chandransh 11928
  """
11929
  Attributes:
94 ashish 11930
   - success
559 chandransh 11931
   - scx
94 ashish 11932
  """
11933
 
11934
  thrift_spec = (
575 chandransh 11935
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11936
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11937
  )
11938
 
559 chandransh 11939
  def __init__(self, success=None, scx=None,):
94 ashish 11940
    self.success = success
559 chandransh 11941
    self.scx = scx
94 ashish 11942
 
11943
  def read(self, iprot):
11944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11946
      return
11947
    iprot.readStructBegin()
11948
    while True:
11949
      (fname, ftype, fid) = iprot.readFieldBegin()
11950
      if ftype == TType.STOP:
11951
        break
11952
      if fid == 0:
575 chandransh 11953
        if ftype == TType.I64:
11954
          self.success = iprot.readI64();
94 ashish 11955
        else:
11956
          iprot.skip(ftype)
11957
      elif fid == 1:
11958
        if ftype == TType.STRUCT:
559 chandransh 11959
          self.scx = ShoppingCartException()
11960
          self.scx.read(iprot)
94 ashish 11961
        else:
11962
          iprot.skip(ftype)
11963
      else:
11964
        iprot.skip(ftype)
11965
      iprot.readFieldEnd()
11966
    iprot.readStructEnd()
11967
 
11968
  def write(self, oprot):
11969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11971
      return
690 chandransh 11972
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11973
    if self.success is not None:
575 chandransh 11974
      oprot.writeFieldBegin('success', TType.I64, 0)
11975
      oprot.writeI64(self.success)
94 ashish 11976
      oprot.writeFieldEnd()
3431 rajveer 11977
    if self.scx is not None:
559 chandransh 11978
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11979
      self.scx.write(oprot)
94 ashish 11980
      oprot.writeFieldEnd()
11981
    oprot.writeFieldStop()
11982
    oprot.writeStructEnd()
11983
 
3431 rajveer 11984
  def validate(self):
11985
    return
11986
 
11987
 
94 ashish 11988
  def __repr__(self):
11989
    L = ['%s=%r' % (key, value)
11990
      for key, value in self.__dict__.iteritems()]
11991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11992
 
11993
  def __eq__(self, other):
11994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11995
 
11996
  def __ne__(self, other):
11997
    return not (self == other)
11998
 
559 chandransh 11999
class validateCart_args:
94 ashish 12000
  """
12001
  Attributes:
559 chandransh 12002
   - cartId
94 ashish 12003
  """
12004
 
12005
  thrift_spec = (
12006
    None, # 0
559 chandransh 12007
    (1, TType.I64, 'cartId', None, None, ), # 1
94 ashish 12008
  )
12009
 
559 chandransh 12010
  def __init__(self, cartId=None,):
12011
    self.cartId = cartId
94 ashish 12012
 
12013
  def read(self, iprot):
12014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12016
      return
12017
    iprot.readStructBegin()
12018
    while True:
12019
      (fname, ftype, fid) = iprot.readFieldBegin()
12020
      if ftype == TType.STOP:
12021
        break
12022
      if fid == 1:
12023
        if ftype == TType.I64:
559 chandransh 12024
          self.cartId = iprot.readI64();
94 ashish 12025
        else:
12026
          iprot.skip(ftype)
12027
      else:
12028
        iprot.skip(ftype)
12029
      iprot.readFieldEnd()
12030
    iprot.readStructEnd()
12031
 
12032
  def write(self, oprot):
12033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12035
      return
559 chandransh 12036
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 12037
    if self.cartId is not None:
559 chandransh 12038
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12039
      oprot.writeI64(self.cartId)
94 ashish 12040
      oprot.writeFieldEnd()
12041
    oprot.writeFieldStop()
12042
    oprot.writeStructEnd()
12043
 
3431 rajveer 12044
  def validate(self):
12045
    return
12046
 
12047
 
94 ashish 12048
  def __repr__(self):
12049
    L = ['%s=%r' % (key, value)
12050
      for key, value in self.__dict__.iteritems()]
12051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12052
 
12053
  def __eq__(self, other):
12054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12055
 
12056
  def __ne__(self, other):
12057
    return not (self == other)
12058
 
559 chandransh 12059
class validateCart_result:
94 ashish 12060
  """
12061
  Attributes:
12062
   - success
575 chandransh 12063
   - scex
94 ashish 12064
  """
12065
 
12066
  thrift_spec = (
1466 ankur.sing 12067
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 12068
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 12069
  )
12070
 
575 chandransh 12071
  def __init__(self, success=None, scex=None,):
94 ashish 12072
    self.success = success
575 chandransh 12073
    self.scex = scex
94 ashish 12074
 
12075
  def read(self, iprot):
12076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12078
      return
12079
    iprot.readStructBegin()
12080
    while True:
12081
      (fname, ftype, fid) = iprot.readFieldBegin()
12082
      if ftype == TType.STOP:
12083
        break
12084
      if fid == 0:
1466 ankur.sing 12085
        if ftype == TType.STRING:
12086
          self.success = iprot.readString();
94 ashish 12087
        else:
12088
          iprot.skip(ftype)
575 chandransh 12089
      elif fid == 1:
12090
        if ftype == TType.STRUCT:
12091
          self.scex = ShoppingCartException()
12092
          self.scex.read(iprot)
12093
        else:
12094
          iprot.skip(ftype)
94 ashish 12095
      else:
12096
        iprot.skip(ftype)
12097
      iprot.readFieldEnd()
12098
    iprot.readStructEnd()
12099
 
12100
  def write(self, oprot):
12101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12103
      return
559 chandransh 12104
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 12105
    if self.success is not None:
1466 ankur.sing 12106
      oprot.writeFieldBegin('success', TType.STRING, 0)
12107
      oprot.writeString(self.success)
94 ashish 12108
      oprot.writeFieldEnd()
3431 rajveer 12109
    if self.scex is not None:
575 chandransh 12110
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12111
      self.scex.write(oprot)
12112
      oprot.writeFieldEnd()
559 chandransh 12113
    oprot.writeFieldStop()
12114
    oprot.writeStructEnd()
12115
 
3431 rajveer 12116
  def validate(self):
12117
    return
12118
 
12119
 
559 chandransh 12120
  def __repr__(self):
12121
    L = ['%s=%r' % (key, value)
12122
      for key, value in self.__dict__.iteritems()]
12123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12124
 
12125
  def __eq__(self, other):
12126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12127
 
12128
  def __ne__(self, other):
12129
    return not (self == other)
12130
 
690 chandransh 12131
class mergeCart_args:
575 chandransh 12132
  """
12133
  Attributes:
690 chandransh 12134
   - fromCartId
12135
   - toCartId
12136
  """
12137
 
12138
  thrift_spec = (
12139
    None, # 0
12140
    (1, TType.I64, 'fromCartId', None, None, ), # 1
12141
    (2, TType.I64, 'toCartId', None, None, ), # 2
12142
  )
12143
 
12144
  def __init__(self, fromCartId=None, toCartId=None,):
12145
    self.fromCartId = fromCartId
12146
    self.toCartId = toCartId
12147
 
12148
  def read(self, iprot):
12149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12151
      return
12152
    iprot.readStructBegin()
12153
    while True:
12154
      (fname, ftype, fid) = iprot.readFieldBegin()
12155
      if ftype == TType.STOP:
12156
        break
12157
      if fid == 1:
12158
        if ftype == TType.I64:
12159
          self.fromCartId = iprot.readI64();
12160
        else:
12161
          iprot.skip(ftype)
12162
      elif fid == 2:
12163
        if ftype == TType.I64:
12164
          self.toCartId = iprot.readI64();
12165
        else:
12166
          iprot.skip(ftype)
12167
      else:
12168
        iprot.skip(ftype)
12169
      iprot.readFieldEnd()
12170
    iprot.readStructEnd()
12171
 
12172
  def write(self, oprot):
12173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12175
      return
12176
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 12177
    if self.fromCartId is not None:
690 chandransh 12178
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
12179
      oprot.writeI64(self.fromCartId)
12180
      oprot.writeFieldEnd()
3431 rajveer 12181
    if self.toCartId is not None:
690 chandransh 12182
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
12183
      oprot.writeI64(self.toCartId)
12184
      oprot.writeFieldEnd()
12185
    oprot.writeFieldStop()
12186
    oprot.writeStructEnd()
12187
 
3431 rajveer 12188
  def validate(self):
12189
    return
12190
 
12191
 
690 chandransh 12192
  def __repr__(self):
12193
    L = ['%s=%r' % (key, value)
12194
      for key, value in self.__dict__.iteritems()]
12195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12196
 
12197
  def __eq__(self, other):
12198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12199
 
12200
  def __ne__(self, other):
12201
    return not (self == other)
12202
 
12203
class mergeCart_result:
12204
 
12205
  thrift_spec = (
12206
  )
12207
 
12208
  def read(self, iprot):
12209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12211
      return
12212
    iprot.readStructBegin()
12213
    while True:
12214
      (fname, ftype, fid) = iprot.readFieldBegin()
12215
      if ftype == TType.STOP:
12216
        break
12217
      else:
12218
        iprot.skip(ftype)
12219
      iprot.readFieldEnd()
12220
    iprot.readStructEnd()
12221
 
12222
  def write(self, oprot):
12223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12225
      return
12226
    oprot.writeStructBegin('mergeCart_result')
12227
    oprot.writeFieldStop()
12228
    oprot.writeStructEnd()
12229
 
3431 rajveer 12230
  def validate(self):
12231
    return
12232
 
12233
 
690 chandransh 12234
  def __repr__(self):
12235
    L = ['%s=%r' % (key, value)
12236
      for key, value in self.__dict__.iteritems()]
12237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12238
 
12239
  def __eq__(self, other):
12240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12241
 
12242
  def __ne__(self, other):
12243
    return not (self == other)
12244
 
12245
class checkOut_args:
12246
  """
12247
  Attributes:
575 chandransh 12248
   - cartId
12249
  """
12250
 
12251
  thrift_spec = (
12252
    None, # 0
12253
    (1, TType.I64, 'cartId', None, None, ), # 1
12254
  )
12255
 
12256
  def __init__(self, cartId=None,):
12257
    self.cartId = cartId
12258
 
12259
  def read(self, iprot):
12260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12262
      return
12263
    iprot.readStructBegin()
12264
    while True:
12265
      (fname, ftype, fid) = iprot.readFieldBegin()
12266
      if ftype == TType.STOP:
12267
        break
12268
      if fid == 1:
12269
        if ftype == TType.I64:
12270
          self.cartId = iprot.readI64();
12271
        else:
12272
          iprot.skip(ftype)
12273
      else:
12274
        iprot.skip(ftype)
12275
      iprot.readFieldEnd()
12276
    iprot.readStructEnd()
12277
 
12278
  def write(self, oprot):
12279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12281
      return
690 chandransh 12282
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 12283
    if self.cartId is not None:
575 chandransh 12284
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12285
      oprot.writeI64(self.cartId)
12286
      oprot.writeFieldEnd()
12287
    oprot.writeFieldStop()
12288
    oprot.writeStructEnd()
12289
 
3431 rajveer 12290
  def validate(self):
12291
    return
12292
 
12293
 
575 chandransh 12294
  def __repr__(self):
12295
    L = ['%s=%r' % (key, value)
12296
      for key, value in self.__dict__.iteritems()]
12297
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12298
 
12299
  def __eq__(self, other):
12300
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12301
 
12302
  def __ne__(self, other):
12303
    return not (self == other)
12304
 
690 chandransh 12305
class checkOut_result:
575 chandransh 12306
  """
12307
  Attributes:
12308
   - success
12309
   - scex
12310
  """
12311
 
12312
  thrift_spec = (
12313
    (0, TType.BOOL, 'success', None, None, ), # 0
12314
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
12315
  )
12316
 
12317
  def __init__(self, success=None, scex=None,):
12318
    self.success = success
12319
    self.scex = scex
12320
 
12321
  def read(self, iprot):
12322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12324
      return
12325
    iprot.readStructBegin()
12326
    while True:
12327
      (fname, ftype, fid) = iprot.readFieldBegin()
12328
      if ftype == TType.STOP:
12329
        break
12330
      if fid == 0:
12331
        if ftype == TType.BOOL:
12332
          self.success = iprot.readBool();
12333
        else:
12334
          iprot.skip(ftype)
12335
      elif fid == 1:
12336
        if ftype == TType.STRUCT:
12337
          self.scex = ShoppingCartException()
12338
          self.scex.read(iprot)
12339
        else:
12340
          iprot.skip(ftype)
12341
      else:
12342
        iprot.skip(ftype)
12343
      iprot.readFieldEnd()
12344
    iprot.readStructEnd()
12345
 
12346
  def write(self, oprot):
12347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12349
      return
690 chandransh 12350
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 12351
    if self.success is not None:
575 chandransh 12352
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12353
      oprot.writeBool(self.success)
12354
      oprot.writeFieldEnd()
3431 rajveer 12355
    if self.scex is not None:
575 chandransh 12356
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12357
      self.scex.write(oprot)
12358
      oprot.writeFieldEnd()
12359
    oprot.writeFieldStop()
12360
    oprot.writeStructEnd()
12361
 
3431 rajveer 12362
  def validate(self):
12363
    return
12364
 
12365
 
575 chandransh 12366
  def __repr__(self):
12367
    L = ['%s=%r' % (key, value)
12368
      for key, value in self.__dict__.iteritems()]
12369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12370
 
12371
  def __eq__(self, other):
12372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12373
 
12374
  def __ne__(self, other):
12375
    return not (self == other)
12376
 
690 chandransh 12377
class resetCart_args:
559 chandransh 12378
  """
12379
  Attributes:
690 chandransh 12380
   - cartId
12381
   - items
559 chandransh 12382
  """
12383
 
12384
  thrift_spec = (
12385
    None, # 0
690 chandransh 12386
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 12387
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 12388
  )
12389
 
690 chandransh 12390
  def __init__(self, cartId=None, items=None,):
12391
    self.cartId = cartId
12392
    self.items = items
559 chandransh 12393
 
12394
  def read(self, iprot):
12395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12397
      return
12398
    iprot.readStructBegin()
12399
    while True:
12400
      (fname, ftype, fid) = iprot.readFieldBegin()
12401
      if ftype == TType.STOP:
12402
        break
12403
      if fid == 1:
12404
        if ftype == TType.I64:
690 chandransh 12405
          self.cartId = iprot.readI64();
559 chandransh 12406
        else:
12407
          iprot.skip(ftype)
12408
      elif fid == 2:
690 chandransh 12409
        if ftype == TType.MAP:
12410
          self.items = {}
3554 varun.gupt 12411
          (_ktype127, _vtype128, _size126 ) = iprot.readMapBegin() 
12412
          for _i130 in xrange(_size126):
12413
            _key131 = iprot.readI64();
12414
            _val132 = iprot.readDouble();
12415
            self.items[_key131] = _val132
690 chandransh 12416
          iprot.readMapEnd()
559 chandransh 12417
        else:
12418
          iprot.skip(ftype)
12419
      else:
12420
        iprot.skip(ftype)
12421
      iprot.readFieldEnd()
12422
    iprot.readStructEnd()
12423
 
12424
  def write(self, oprot):
12425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12427
      return
690 chandransh 12428
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12429
    if self.cartId is not None:
690 chandransh 12430
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12431
      oprot.writeI64(self.cartId)
94 ashish 12432
      oprot.writeFieldEnd()
3431 rajveer 12433
    if self.items is not None:
690 chandransh 12434
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12435
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
3554 varun.gupt 12436
      for kiter133,viter134 in self.items.items():
12437
        oprot.writeI64(kiter133)
12438
        oprot.writeDouble(viter134)
690 chandransh 12439
      oprot.writeMapEnd()
559 chandransh 12440
      oprot.writeFieldEnd()
94 ashish 12441
    oprot.writeFieldStop()
12442
    oprot.writeStructEnd()
12443
 
3431 rajveer 12444
  def validate(self):
12445
    return
12446
 
12447
 
94 ashish 12448
  def __repr__(self):
12449
    L = ['%s=%r' % (key, value)
12450
      for key, value in self.__dict__.iteritems()]
12451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12452
 
12453
  def __eq__(self, other):
12454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12455
 
12456
  def __ne__(self, other):
12457
    return not (self == other)
12458
 
690 chandransh 12459
class resetCart_result:
12460
  """
12461
  Attributes:
12462
   - success
12463
   - scex
12464
  """
559 chandransh 12465
 
12466
  thrift_spec = (
690 chandransh 12467
    (0, TType.BOOL, 'success', None, None, ), # 0
12468
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12469
  )
12470
 
690 chandransh 12471
  def __init__(self, success=None, scex=None,):
12472
    self.success = success
12473
    self.scex = scex
12474
 
559 chandransh 12475
  def read(self, iprot):
12476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12478
      return
12479
    iprot.readStructBegin()
12480
    while True:
12481
      (fname, ftype, fid) = iprot.readFieldBegin()
12482
      if ftype == TType.STOP:
12483
        break
690 chandransh 12484
      if fid == 0:
12485
        if ftype == TType.BOOL:
12486
          self.success = iprot.readBool();
12487
        else:
12488
          iprot.skip(ftype)
12489
      elif fid == 1:
12490
        if ftype == TType.STRUCT:
12491
          self.scex = ShoppingCartException()
12492
          self.scex.read(iprot)
12493
        else:
12494
          iprot.skip(ftype)
559 chandransh 12495
      else:
12496
        iprot.skip(ftype)
12497
      iprot.readFieldEnd()
12498
    iprot.readStructEnd()
12499
 
12500
  def write(self, oprot):
12501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12503
      return
690 chandransh 12504
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12505
    if self.success is not None:
690 chandransh 12506
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12507
      oprot.writeBool(self.success)
12508
      oprot.writeFieldEnd()
3431 rajveer 12509
    if self.scex is not None:
690 chandransh 12510
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12511
      self.scex.write(oprot)
12512
      oprot.writeFieldEnd()
559 chandransh 12513
    oprot.writeFieldStop()
12514
    oprot.writeStructEnd()
12515
 
3431 rajveer 12516
  def validate(self):
12517
    return
12518
 
12519
 
559 chandransh 12520
  def __repr__(self):
12521
    L = ['%s=%r' % (key, value)
12522
      for key, value in self.__dict__.iteritems()]
12523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12524
 
12525
  def __eq__(self, other):
12526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12527
 
12528
  def __ne__(self, other):
12529
    return not (self == other)
12530
 
2981 rajveer 12531
class getUserCount_args:
94 ashish 12532
  """
12533
  Attributes:
2981 rajveer 12534
   - userType
559 chandransh 12535
  """
12536
 
12537
  thrift_spec = (
12538
    None, # 0
2981 rajveer 12539
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12540
  )
12541
 
2981 rajveer 12542
  def __init__(self, userType=None,):
12543
    self.userType = userType
559 chandransh 12544
 
12545
  def read(self, iprot):
12546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12548
      return
12549
    iprot.readStructBegin()
12550
    while True:
12551
      (fname, ftype, fid) = iprot.readFieldBegin()
12552
      if ftype == TType.STOP:
12553
        break
12554
      if fid == 1:
2981 rajveer 12555
        if ftype == TType.I32:
12556
          self.userType = iprot.readI32();
559 chandransh 12557
        else:
12558
          iprot.skip(ftype)
12559
      else:
12560
        iprot.skip(ftype)
12561
      iprot.readFieldEnd()
12562
    iprot.readStructEnd()
12563
 
12564
  def write(self, oprot):
12565
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12566
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12567
      return
2981 rajveer 12568
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12569
    if self.userType is not None:
2981 rajveer 12570
      oprot.writeFieldBegin('userType', TType.I32, 1)
12571
      oprot.writeI32(self.userType)
559 chandransh 12572
      oprot.writeFieldEnd()
12573
    oprot.writeFieldStop()
12574
    oprot.writeStructEnd()
12575
 
3431 rajveer 12576
  def validate(self):
12577
    return
12578
 
12579
 
559 chandransh 12580
  def __repr__(self):
12581
    L = ['%s=%r' % (key, value)
12582
      for key, value in self.__dict__.iteritems()]
12583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12584
 
12585
  def __eq__(self, other):
12586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12587
 
12588
  def __ne__(self, other):
12589
    return not (self == other)
12590
 
2981 rajveer 12591
class getUserCount_result:
94 ashish 12592
  """
12593
  Attributes:
12594
   - success
12595
  """
12596
 
12597
  thrift_spec = (
2981 rajveer 12598
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12599
  )
12600
 
2981 rajveer 12601
  def __init__(self, success=None,):
94 ashish 12602
    self.success = success
12603
 
12604
  def read(self, iprot):
12605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12607
      return
12608
    iprot.readStructBegin()
12609
    while True:
12610
      (fname, ftype, fid) = iprot.readFieldBegin()
12611
      if ftype == TType.STOP:
12612
        break
12613
      if fid == 0:
2981 rajveer 12614
        if ftype == TType.I64:
12615
          self.success = iprot.readI64();
94 ashish 12616
        else:
12617
          iprot.skip(ftype)
12618
      else:
12619
        iprot.skip(ftype)
12620
      iprot.readFieldEnd()
12621
    iprot.readStructEnd()
12622
 
12623
  def write(self, oprot):
12624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12626
      return
2981 rajveer 12627
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12628
    if self.success is not None:
2981 rajveer 12629
      oprot.writeFieldBegin('success', TType.I64, 0)
12630
      oprot.writeI64(self.success)
94 ashish 12631
      oprot.writeFieldEnd()
12632
    oprot.writeFieldStop()
12633
    oprot.writeStructEnd()
12634
 
3431 rajveer 12635
  def validate(self):
12636
    return
12637
 
12638
 
94 ashish 12639
  def __repr__(self):
12640
    L = ['%s=%r' % (key, value)
12641
      for key, value in self.__dict__.iteritems()]
12642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12643
 
12644
  def __eq__(self, other):
12645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12646
 
12647
  def __ne__(self, other):
12648
    return not (self == other)
12649
 
2981 rajveer 12650
class getAllUsers_args:
94 ashish 12651
  """
12652
  Attributes:
2981 rajveer 12653
   - userType
12654
   - startDate
12655
   - endDate
94 ashish 12656
  """
12657
 
12658
  thrift_spec = (
12659
    None, # 0
2981 rajveer 12660
    (1, TType.I32, 'userType', None, None, ), # 1
12661
    (2, TType.I64, 'startDate', None, None, ), # 2
12662
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12663
  )
12664
 
2981 rajveer 12665
  def __init__(self, userType=None, startDate=None, endDate=None,):
12666
    self.userType = userType
12667
    self.startDate = startDate
12668
    self.endDate = endDate
94 ashish 12669
 
12670
  def read(self, iprot):
12671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12673
      return
12674
    iprot.readStructBegin()
12675
    while True:
12676
      (fname, ftype, fid) = iprot.readFieldBegin()
12677
      if ftype == TType.STOP:
12678
        break
12679
      if fid == 1:
2981 rajveer 12680
        if ftype == TType.I32:
12681
          self.userType = iprot.readI32();
94 ashish 12682
        else:
12683
          iprot.skip(ftype)
12684
      elif fid == 2:
559 chandransh 12685
        if ftype == TType.I64:
2981 rajveer 12686
          self.startDate = iprot.readI64();
94 ashish 12687
        else:
12688
          iprot.skip(ftype)
2981 rajveer 12689
      elif fid == 3:
12690
        if ftype == TType.I64:
12691
          self.endDate = iprot.readI64();
12692
        else:
12693
          iprot.skip(ftype)
94 ashish 12694
      else:
12695
        iprot.skip(ftype)
12696
      iprot.readFieldEnd()
12697
    iprot.readStructEnd()
12698
 
12699
  def write(self, oprot):
12700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12702
      return
2981 rajveer 12703
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12704
    if self.userType is not None:
2981 rajveer 12705
      oprot.writeFieldBegin('userType', TType.I32, 1)
12706
      oprot.writeI32(self.userType)
94 ashish 12707
      oprot.writeFieldEnd()
3431 rajveer 12708
    if self.startDate is not None:
2981 rajveer 12709
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12710
      oprot.writeI64(self.startDate)
94 ashish 12711
      oprot.writeFieldEnd()
3431 rajveer 12712
    if self.endDate is not None:
2981 rajveer 12713
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12714
      oprot.writeI64(self.endDate)
12715
      oprot.writeFieldEnd()
94 ashish 12716
    oprot.writeFieldStop()
12717
    oprot.writeStructEnd()
12718
 
3431 rajveer 12719
  def validate(self):
12720
    return
12721
 
12722
 
94 ashish 12723
  def __repr__(self):
12724
    L = ['%s=%r' % (key, value)
12725
      for key, value in self.__dict__.iteritems()]
12726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12727
 
12728
  def __eq__(self, other):
12729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12730
 
12731
  def __ne__(self, other):
12732
    return not (self == other)
12733
 
2981 rajveer 12734
class getAllUsers_result:
94 ashish 12735
  """
12736
  Attributes:
12737
   - success
12738
  """
12739
 
12740
  thrift_spec = (
2981 rajveer 12741
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12742
  )
12743
 
2981 rajveer 12744
  def __init__(self, success=None,):
94 ashish 12745
    self.success = success
12746
 
12747
  def read(self, iprot):
12748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12750
      return
12751
    iprot.readStructBegin()
12752
    while True:
12753
      (fname, ftype, fid) = iprot.readFieldBegin()
12754
      if ftype == TType.STOP:
12755
        break
12756
      if fid == 0:
2981 rajveer 12757
        if ftype == TType.LIST:
12758
          self.success = []
3554 varun.gupt 12759
          (_etype138, _size135) = iprot.readListBegin()
12760
          for _i139 in xrange(_size135):
12761
            _elem140 = User()
12762
            _elem140.read(iprot)
12763
            self.success.append(_elem140)
2981 rajveer 12764
          iprot.readListEnd()
94 ashish 12765
        else:
12766
          iprot.skip(ftype)
12767
      else:
12768
        iprot.skip(ftype)
12769
      iprot.readFieldEnd()
12770
    iprot.readStructEnd()
12771
 
12772
  def write(self, oprot):
12773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12775
      return
2981 rajveer 12776
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12777
    if self.success is not None:
2981 rajveer 12778
      oprot.writeFieldBegin('success', TType.LIST, 0)
12779
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 12780
      for iter141 in self.success:
12781
        iter141.write(oprot)
2981 rajveer 12782
      oprot.writeListEnd()
94 ashish 12783
      oprot.writeFieldEnd()
12784
    oprot.writeFieldStop()
12785
    oprot.writeStructEnd()
12786
 
3431 rajveer 12787
  def validate(self):
12788
    return
12789
 
12790
 
94 ashish 12791
  def __repr__(self):
12792
    L = ['%s=%r' % (key, value)
12793
      for key, value in self.__dict__.iteritems()]
12794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12795
 
12796
  def __eq__(self, other):
12797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12798
 
12799
  def __ne__(self, other):
12800
    return not (self == other)
12801
 
2981 rajveer 12802
class putUserNote_args:
130 ashish 12803
  """
12804
  Attributes:
2981 rajveer 12805
   - user_id
12806
   - entity_id
12807
   - slide
12808
   - note
130 ashish 12809
  """
94 ashish 12810
 
130 ashish 12811
  thrift_spec = (
12812
    None, # 0
2981 rajveer 12813
    (1, TType.I64, 'user_id', None, None, ), # 1
12814
    (2, TType.I64, 'entity_id', None, None, ), # 2
12815
    (3, TType.STRING, 'slide', None, None, ), # 3
12816
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12817
  )
12818
 
2981 rajveer 12819
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12820
    self.user_id = user_id
12821
    self.entity_id = entity_id
12822
    self.slide = slide
12823
    self.note = note
130 ashish 12824
 
12825
  def read(self, iprot):
12826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12828
      return
12829
    iprot.readStructBegin()
12830
    while True:
12831
      (fname, ftype, fid) = iprot.readFieldBegin()
12832
      if ftype == TType.STOP:
12833
        break
12834
      if fid == 1:
12835
        if ftype == TType.I64:
2981 rajveer 12836
          self.user_id = iprot.readI64();
130 ashish 12837
        else:
12838
          iprot.skip(ftype)
559 chandransh 12839
      elif fid == 2:
12840
        if ftype == TType.I64:
2981 rajveer 12841
          self.entity_id = iprot.readI64();
559 chandransh 12842
        else:
12843
          iprot.skip(ftype)
2981 rajveer 12844
      elif fid == 3:
12845
        if ftype == TType.STRING:
12846
          self.slide = iprot.readString();
12847
        else:
12848
          iprot.skip(ftype)
12849
      elif fid == 4:
12850
        if ftype == TType.STRING:
12851
          self.note = iprot.readString();
12852
        else:
12853
          iprot.skip(ftype)
130 ashish 12854
      else:
12855
        iprot.skip(ftype)
12856
      iprot.readFieldEnd()
12857
    iprot.readStructEnd()
12858
 
12859
  def write(self, oprot):
12860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12862
      return
2981 rajveer 12863
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12864
    if self.user_id is not None:
2981 rajveer 12865
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12866
      oprot.writeI64(self.user_id)
130 ashish 12867
      oprot.writeFieldEnd()
3431 rajveer 12868
    if self.entity_id is not None:
2981 rajveer 12869
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12870
      oprot.writeI64(self.entity_id)
559 chandransh 12871
      oprot.writeFieldEnd()
3431 rajveer 12872
    if self.slide is not None:
2981 rajveer 12873
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12874
      oprot.writeString(self.slide)
12875
      oprot.writeFieldEnd()
3431 rajveer 12876
    if self.note is not None:
2981 rajveer 12877
      oprot.writeFieldBegin('note', TType.STRING, 4)
12878
      oprot.writeString(self.note)
12879
      oprot.writeFieldEnd()
130 ashish 12880
    oprot.writeFieldStop()
12881
    oprot.writeStructEnd()
12882
 
3431 rajveer 12883
  def validate(self):
12884
    return
12885
 
12886
 
130 ashish 12887
  def __repr__(self):
12888
    L = ['%s=%r' % (key, value)
12889
      for key, value in self.__dict__.iteritems()]
12890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12891
 
12892
  def __eq__(self, other):
12893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12894
 
12895
  def __ne__(self, other):
12896
    return not (self == other)
12897
 
2981 rajveer 12898
class putUserNote_result:
559 chandransh 12899
 
12900
  thrift_spec = (
12901
  )
12902
 
12903
  def read(self, iprot):
12904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12906
      return
12907
    iprot.readStructBegin()
12908
    while True:
12909
      (fname, ftype, fid) = iprot.readFieldBegin()
12910
      if ftype == TType.STOP:
12911
        break
12912
      else:
12913
        iprot.skip(ftype)
12914
      iprot.readFieldEnd()
12915
    iprot.readStructEnd()
12916
 
12917
  def write(self, oprot):
12918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12920
      return
2981 rajveer 12921
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12922
    oprot.writeFieldStop()
12923
    oprot.writeStructEnd()
12924
 
3431 rajveer 12925
  def validate(self):
12926
    return
12927
 
12928
 
559 chandransh 12929
  def __repr__(self):
12930
    L = ['%s=%r' % (key, value)
12931
      for key, value in self.__dict__.iteritems()]
12932
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12933
 
12934
  def __eq__(self, other):
12935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12936
 
12937
  def __ne__(self, other):
12938
    return not (self == other)
12939
 
2981 rajveer 12940
class getUserNotes_args:
559 chandransh 12941
  """
12942
  Attributes:
2981 rajveer 12943
   - user_id
12944
   - entity_id
559 chandransh 12945
  """
12946
 
12947
  thrift_spec = (
12948
    None, # 0
2981 rajveer 12949
    (1, TType.I64, 'user_id', None, None, ), # 1
12950
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12951
  )
12952
 
2981 rajveer 12953
  def __init__(self, user_id=None, entity_id=None,):
12954
    self.user_id = user_id
12955
    self.entity_id = entity_id
559 chandransh 12956
 
12957
  def read(self, iprot):
12958
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12959
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12960
      return
12961
    iprot.readStructBegin()
12962
    while True:
12963
      (fname, ftype, fid) = iprot.readFieldBegin()
12964
      if ftype == TType.STOP:
12965
        break
12966
      if fid == 1:
12967
        if ftype == TType.I64:
2981 rajveer 12968
          self.user_id = iprot.readI64();
559 chandransh 12969
        else:
12970
          iprot.skip(ftype)
12971
      elif fid == 2:
12972
        if ftype == TType.I64:
2981 rajveer 12973
          self.entity_id = iprot.readI64();
559 chandransh 12974
        else:
12975
          iprot.skip(ftype)
12976
      else:
12977
        iprot.skip(ftype)
12978
      iprot.readFieldEnd()
12979
    iprot.readStructEnd()
12980
 
12981
  def write(self, oprot):
12982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12984
      return
2981 rajveer 12985
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12986
    if self.user_id is not None:
2981 rajveer 12987
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12988
      oprot.writeI64(self.user_id)
559 chandransh 12989
      oprot.writeFieldEnd()
3431 rajveer 12990
    if self.entity_id is not None:
2981 rajveer 12991
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12992
      oprot.writeI64(self.entity_id)
559 chandransh 12993
      oprot.writeFieldEnd()
12994
    oprot.writeFieldStop()
12995
    oprot.writeStructEnd()
12996
 
3431 rajveer 12997
  def validate(self):
12998
    return
12999
 
13000
 
559 chandransh 13001
  def __repr__(self):
13002
    L = ['%s=%r' % (key, value)
13003
      for key, value in self.__dict__.iteritems()]
13004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13005
 
13006
  def __eq__(self, other):
13007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13008
 
13009
  def __ne__(self, other):
13010
    return not (self == other)
13011
 
2981 rajveer 13012
class getUserNotes_result:
13013
  """
13014
  Attributes:
13015
   - success
13016
  """
559 chandransh 13017
 
13018
  thrift_spec = (
2981 rajveer 13019
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 13020
  )
13021
 
2981 rajveer 13022
  def __init__(self, success=None,):
13023
    self.success = success
13024
 
559 chandransh 13025
  def read(self, iprot):
13026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13028
      return
13029
    iprot.readStructBegin()
13030
    while True:
13031
      (fname, ftype, fid) = iprot.readFieldBegin()
13032
      if ftype == TType.STOP:
13033
        break
2981 rajveer 13034
      if fid == 0:
13035
        if ftype == TType.LIST:
13036
          self.success = []
3554 varun.gupt 13037
          (_etype145, _size142) = iprot.readListBegin()
13038
          for _i146 in xrange(_size142):
13039
            _elem147 = UserNote()
13040
            _elem147.read(iprot)
13041
            self.success.append(_elem147)
2981 rajveer 13042
          iprot.readListEnd()
13043
        else:
13044
          iprot.skip(ftype)
559 chandransh 13045
      else:
13046
        iprot.skip(ftype)
13047
      iprot.readFieldEnd()
13048
    iprot.readStructEnd()
13049
 
13050
  def write(self, oprot):
13051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13053
      return
2981 rajveer 13054
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 13055
    if self.success is not None:
2981 rajveer 13056
      oprot.writeFieldBegin('success', TType.LIST, 0)
13057
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 13058
      for iter148 in self.success:
13059
        iter148.write(oprot)
2981 rajveer 13060
      oprot.writeListEnd()
13061
      oprot.writeFieldEnd()
559 chandransh 13062
    oprot.writeFieldStop()
13063
    oprot.writeStructEnd()
13064
 
3431 rajveer 13065
  def validate(self):
13066
    return
13067
 
13068
 
559 chandransh 13069
  def __repr__(self):
13070
    L = ['%s=%r' % (key, value)
13071
      for key, value in self.__dict__.iteritems()]
13072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13073
 
13074
  def __eq__(self, other):
13075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13076
 
13077
  def __ne__(self, other):
13078
    return not (self == other)
13079
 
2981 rajveer 13080
class getMyResearchItems_args:
559 chandransh 13081
  """
13082
  Attributes:
772 rajveer 13083
   - userId
559 chandransh 13084
  """
13085
 
13086
  thrift_spec = (
13087
    None, # 0
772 rajveer 13088
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 13089
  )
13090
 
772 rajveer 13091
  def __init__(self, userId=None,):
13092
    self.userId = userId
559 chandransh 13093
 
13094
  def read(self, iprot):
13095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13097
      return
13098
    iprot.readStructBegin()
13099
    while True:
13100
      (fname, ftype, fid) = iprot.readFieldBegin()
13101
      if ftype == TType.STOP:
13102
        break
13103
      if fid == 1:
13104
        if ftype == TType.I64:
772 rajveer 13105
          self.userId = iprot.readI64();
559 chandransh 13106
        else:
13107
          iprot.skip(ftype)
13108
      else:
13109
        iprot.skip(ftype)
13110
      iprot.readFieldEnd()
13111
    iprot.readStructEnd()
13112
 
13113
  def write(self, oprot):
13114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13116
      return
2981 rajveer 13117
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 13118
    if self.userId is not None:
772 rajveer 13119
      oprot.writeFieldBegin('userId', TType.I64, 1)
13120
      oprot.writeI64(self.userId)
559 chandransh 13121
      oprot.writeFieldEnd()
13122
    oprot.writeFieldStop()
13123
    oprot.writeStructEnd()
13124
 
3431 rajveer 13125
  def validate(self):
13126
    return
13127
 
13128
 
559 chandransh 13129
  def __repr__(self):
13130
    L = ['%s=%r' % (key, value)
13131
      for key, value in self.__dict__.iteritems()]
13132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13133
 
13134
  def __eq__(self, other):
13135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13136
 
13137
  def __ne__(self, other):
13138
    return not (self == other)
13139
 
2981 rajveer 13140
class getMyResearchItems_result:
559 chandransh 13141
  """
13142
  Attributes:
130 ashish 13143
   - success
559 chandransh 13144
   - scx
130 ashish 13145
  """
13146
 
13147
  thrift_spec = (
2981 rajveer 13148
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 13149
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 13150
  )
13151
 
559 chandransh 13152
  def __init__(self, success=None, scx=None,):
130 ashish 13153
    self.success = success
559 chandransh 13154
    self.scx = scx
130 ashish 13155
 
13156
  def read(self, iprot):
13157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13159
      return
13160
    iprot.readStructBegin()
13161
    while True:
13162
      (fname, ftype, fid) = iprot.readFieldBegin()
13163
      if ftype == TType.STOP:
13164
        break
13165
      if fid == 0:
2981 rajveer 13166
        if ftype == TType.LIST:
13167
          self.success = []
3554 varun.gupt 13168
          (_etype152, _size149) = iprot.readListBegin()
13169
          for _i153 in xrange(_size149):
13170
            _elem154 = iprot.readI64();
13171
            self.success.append(_elem154)
2981 rajveer 13172
          iprot.readListEnd()
130 ashish 13173
        else:
13174
          iprot.skip(ftype)
13175
      elif fid == 1:
13176
        if ftype == TType.STRUCT:
559 chandransh 13177
          self.scx = WidgetException()
13178
          self.scx.read(iprot)
130 ashish 13179
        else:
13180
          iprot.skip(ftype)
13181
      else:
13182
        iprot.skip(ftype)
13183
      iprot.readFieldEnd()
13184
    iprot.readStructEnd()
13185
 
13186
  def write(self, oprot):
13187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13189
      return
2981 rajveer 13190
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 13191
    if self.success is not None:
2981 rajveer 13192
      oprot.writeFieldBegin('success', TType.LIST, 0)
13193
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13194
      for iter155 in self.success:
13195
        oprot.writeI64(iter155)
2981 rajveer 13196
      oprot.writeListEnd()
130 ashish 13197
      oprot.writeFieldEnd()
3431 rajveer 13198
    if self.scx is not None:
559 chandransh 13199
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13200
      self.scx.write(oprot)
130 ashish 13201
      oprot.writeFieldEnd()
13202
    oprot.writeFieldStop()
13203
    oprot.writeStructEnd()
13204
 
3431 rajveer 13205
  def validate(self):
13206
    return
13207
 
13208
 
130 ashish 13209
  def __repr__(self):
13210
    L = ['%s=%r' % (key, value)
13211
      for key, value in self.__dict__.iteritems()]
13212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13213
 
13214
  def __eq__(self, other):
13215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13216
 
13217
  def __ne__(self, other):
13218
    return not (self == other)
13219
 
2981 rajveer 13220
class updateMyResearch_args:
130 ashish 13221
  """
13222
  Attributes:
2981 rajveer 13223
   - userId
13224
   - itemId
130 ashish 13225
  """
13226
 
13227
  thrift_spec = (
13228
    None, # 0
2981 rajveer 13229
    (1, TType.I64, 'userId', None, None, ), # 1
13230
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 13231
  )
13232
 
2981 rajveer 13233
  def __init__(self, userId=None, itemId=None,):
13234
    self.userId = userId
13235
    self.itemId = itemId
130 ashish 13236
 
13237
  def read(self, iprot):
13238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13240
      return
13241
    iprot.readStructBegin()
13242
    while True:
13243
      (fname, ftype, fid) = iprot.readFieldBegin()
13244
      if ftype == TType.STOP:
13245
        break
13246
      if fid == 1:
559 chandransh 13247
        if ftype == TType.I64:
2981 rajveer 13248
          self.userId = iprot.readI64();
130 ashish 13249
        else:
13250
          iprot.skip(ftype)
13251
      elif fid == 2:
559 chandransh 13252
        if ftype == TType.I64:
2981 rajveer 13253
          self.itemId = iprot.readI64();
559 chandransh 13254
        else:
13255
          iprot.skip(ftype)
130 ashish 13256
      else:
13257
        iprot.skip(ftype)
13258
      iprot.readFieldEnd()
13259
    iprot.readStructEnd()
13260
 
13261
  def write(self, oprot):
13262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13264
      return
2981 rajveer 13265
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 13266
    if self.userId is not None:
2981 rajveer 13267
      oprot.writeFieldBegin('userId', TType.I64, 1)
13268
      oprot.writeI64(self.userId)
130 ashish 13269
      oprot.writeFieldEnd()
3431 rajveer 13270
    if self.itemId is not None:
2981 rajveer 13271
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13272
      oprot.writeI64(self.itemId)
130 ashish 13273
      oprot.writeFieldEnd()
13274
    oprot.writeFieldStop()
13275
    oprot.writeStructEnd()
13276
 
3431 rajveer 13277
  def validate(self):
13278
    return
13279
 
13280
 
130 ashish 13281
  def __repr__(self):
13282
    L = ['%s=%r' % (key, value)
13283
      for key, value in self.__dict__.iteritems()]
13284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13285
 
13286
  def __eq__(self, other):
13287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13288
 
13289
  def __ne__(self, other):
13290
    return not (self == other)
13291
 
2981 rajveer 13292
class updateMyResearch_result:
13293
  """
13294
  Attributes:
13295
   - success
13296
   - scx
13297
  """
559 chandransh 13298
 
13299
  thrift_spec = (
2981 rajveer 13300
    (0, TType.BOOL, 'success', None, None, ), # 0
13301
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 13302
  )
13303
 
2981 rajveer 13304
  def __init__(self, success=None, scx=None,):
13305
    self.success = success
13306
    self.scx = scx
13307
 
559 chandransh 13308
  def read(self, iprot):
13309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13311
      return
13312
    iprot.readStructBegin()
13313
    while True:
13314
      (fname, ftype, fid) = iprot.readFieldBegin()
13315
      if ftype == TType.STOP:
13316
        break
2981 rajveer 13317
      if fid == 0:
13318
        if ftype == TType.BOOL:
13319
          self.success = iprot.readBool();
13320
        else:
13321
          iprot.skip(ftype)
13322
      elif fid == 1:
13323
        if ftype == TType.STRUCT:
13324
          self.scx = WidgetException()
13325
          self.scx.read(iprot)
13326
        else:
13327
          iprot.skip(ftype)
559 chandransh 13328
      else:
13329
        iprot.skip(ftype)
13330
      iprot.readFieldEnd()
13331
    iprot.readStructEnd()
13332
 
13333
  def write(self, oprot):
13334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13336
      return
2981 rajveer 13337
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 13338
    if self.success is not None:
2981 rajveer 13339
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13340
      oprot.writeBool(self.success)
13341
      oprot.writeFieldEnd()
3431 rajveer 13342
    if self.scx is not None:
2981 rajveer 13343
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13344
      self.scx.write(oprot)
13345
      oprot.writeFieldEnd()
559 chandransh 13346
    oprot.writeFieldStop()
13347
    oprot.writeStructEnd()
13348
 
3431 rajveer 13349
  def validate(self):
13350
    return
13351
 
13352
 
559 chandransh 13353
  def __repr__(self):
13354
    L = ['%s=%r' % (key, value)
13355
      for key, value in self.__dict__.iteritems()]
13356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13357
 
13358
  def __eq__(self, other):
13359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13360
 
13361
  def __ne__(self, other):
13362
    return not (self == other)
13363
 
2981 rajveer 13364
class deleteItemFromMyResearch_args:
1596 ankur.sing 13365
  """
13366
  Attributes:
2981 rajveer 13367
   - userId
13368
   - itemId
1596 ankur.sing 13369
  """
559 chandransh 13370
 
1596 ankur.sing 13371
  thrift_spec = (
13372
    None, # 0
2981 rajveer 13373
    (1, TType.I64, 'userId', None, None, ), # 1
13374
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 13375
  )
13376
 
2981 rajveer 13377
  def __init__(self, userId=None, itemId=None,):
13378
    self.userId = userId
13379
    self.itemId = itemId
1596 ankur.sing 13380
 
13381
  def read(self, iprot):
13382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13384
      return
13385
    iprot.readStructBegin()
13386
    while True:
13387
      (fname, ftype, fid) = iprot.readFieldBegin()
13388
      if ftype == TType.STOP:
13389
        break
13390
      if fid == 1:
2981 rajveer 13391
        if ftype == TType.I64:
13392
          self.userId = iprot.readI64();
1596 ankur.sing 13393
        else:
13394
          iprot.skip(ftype)
2981 rajveer 13395
      elif fid == 2:
13396
        if ftype == TType.I64:
13397
          self.itemId = iprot.readI64();
13398
        else:
13399
          iprot.skip(ftype)
1596 ankur.sing 13400
      else:
13401
        iprot.skip(ftype)
13402
      iprot.readFieldEnd()
13403
    iprot.readStructEnd()
13404
 
13405
  def write(self, oprot):
13406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13408
      return
2981 rajveer 13409
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13410
    if self.userId is not None:
2981 rajveer 13411
      oprot.writeFieldBegin('userId', TType.I64, 1)
13412
      oprot.writeI64(self.userId)
1596 ankur.sing 13413
      oprot.writeFieldEnd()
3431 rajveer 13414
    if self.itemId is not None:
2981 rajveer 13415
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13416
      oprot.writeI64(self.itemId)
13417
      oprot.writeFieldEnd()
1596 ankur.sing 13418
    oprot.writeFieldStop()
13419
    oprot.writeStructEnd()
13420
 
3431 rajveer 13421
  def validate(self):
13422
    return
13423
 
13424
 
1596 ankur.sing 13425
  def __repr__(self):
13426
    L = ['%s=%r' % (key, value)
13427
      for key, value in self.__dict__.iteritems()]
13428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13429
 
13430
  def __eq__(self, other):
13431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13432
 
13433
  def __ne__(self, other):
13434
    return not (self == other)
13435
 
2981 rajveer 13436
class deleteItemFromMyResearch_result:
1596 ankur.sing 13437
  """
13438
  Attributes:
2981 rajveer 13439
   - scx
1596 ankur.sing 13440
  """
13441
 
13442
  thrift_spec = (
2981 rajveer 13443
    None, # 0
13444
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13445
  )
13446
 
2981 rajveer 13447
  def __init__(self, scx=None,):
13448
    self.scx = scx
1596 ankur.sing 13449
 
13450
  def read(self, iprot):
13451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13453
      return
13454
    iprot.readStructBegin()
13455
    while True:
13456
      (fname, ftype, fid) = iprot.readFieldBegin()
13457
      if ftype == TType.STOP:
13458
        break
2981 rajveer 13459
      if fid == 1:
13460
        if ftype == TType.STRUCT:
13461
          self.scx = WidgetException()
13462
          self.scx.read(iprot)
1596 ankur.sing 13463
        else:
13464
          iprot.skip(ftype)
13465
      else:
13466
        iprot.skip(ftype)
13467
      iprot.readFieldEnd()
13468
    iprot.readStructEnd()
13469
 
13470
  def write(self, oprot):
13471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13473
      return
2981 rajveer 13474
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13475
    if self.scx is not None:
2981 rajveer 13476
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13477
      self.scx.write(oprot)
1596 ankur.sing 13478
      oprot.writeFieldEnd()
13479
    oprot.writeFieldStop()
13480
    oprot.writeStructEnd()
13481
 
3431 rajveer 13482
  def validate(self):
13483
    return
13484
 
13485
 
1596 ankur.sing 13486
  def __repr__(self):
13487
    L = ['%s=%r' % (key, value)
13488
      for key, value in self.__dict__.iteritems()]
13489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13490
 
13491
  def __eq__(self, other):
13492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13493
 
13494
  def __ne__(self, other):
13495
    return not (self == other)
13496
 
2981 rajveer 13497
class getBrowseHistoryItems_args:
1673 ankur.sing 13498
  """
13499
  Attributes:
2981 rajveer 13500
   - userId
1673 ankur.sing 13501
  """
1596 ankur.sing 13502
 
1673 ankur.sing 13503
  thrift_spec = (
13504
    None, # 0
2981 rajveer 13505
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13506
  )
13507
 
2981 rajveer 13508
  def __init__(self, userId=None,):
13509
    self.userId = userId
1673 ankur.sing 13510
 
13511
  def read(self, iprot):
13512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13514
      return
13515
    iprot.readStructBegin()
13516
    while True:
13517
      (fname, ftype, fid) = iprot.readFieldBegin()
13518
      if ftype == TType.STOP:
13519
        break
13520
      if fid == 1:
1891 ankur.sing 13521
        if ftype == TType.I64:
2981 rajveer 13522
          self.userId = iprot.readI64();
1891 ankur.sing 13523
        else:
13524
          iprot.skip(ftype)
1673 ankur.sing 13525
      else:
13526
        iprot.skip(ftype)
13527
      iprot.readFieldEnd()
13528
    iprot.readStructEnd()
13529
 
13530
  def write(self, oprot):
13531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13533
      return
2981 rajveer 13534
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13535
    if self.userId is not None:
2981 rajveer 13536
      oprot.writeFieldBegin('userId', TType.I64, 1)
13537
      oprot.writeI64(self.userId)
1673 ankur.sing 13538
      oprot.writeFieldEnd()
13539
    oprot.writeFieldStop()
13540
    oprot.writeStructEnd()
13541
 
3431 rajveer 13542
  def validate(self):
13543
    return
13544
 
13545
 
1673 ankur.sing 13546
  def __repr__(self):
13547
    L = ['%s=%r' % (key, value)
13548
      for key, value in self.__dict__.iteritems()]
13549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13550
 
13551
  def __eq__(self, other):
13552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13553
 
13554
  def __ne__(self, other):
13555
    return not (self == other)
13556
 
2981 rajveer 13557
class getBrowseHistoryItems_result:
1673 ankur.sing 13558
  """
13559
  Attributes:
13560
   - success
2981 rajveer 13561
   - scx
1673 ankur.sing 13562
  """
13563
 
13564
  thrift_spec = (
2981 rajveer 13565
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13566
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13567
  )
13568
 
2981 rajveer 13569
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13570
    self.success = success
2981 rajveer 13571
    self.scx = scx
1673 ankur.sing 13572
 
13573
  def read(self, iprot):
13574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13576
      return
13577
    iprot.readStructBegin()
13578
    while True:
13579
      (fname, ftype, fid) = iprot.readFieldBegin()
13580
      if ftype == TType.STOP:
13581
        break
13582
      if fid == 0:
13583
        if ftype == TType.LIST:
13584
          self.success = []
3554 varun.gupt 13585
          (_etype159, _size156) = iprot.readListBegin()
13586
          for _i160 in xrange(_size156):
13587
            _elem161 = iprot.readI64();
13588
            self.success.append(_elem161)
1673 ankur.sing 13589
          iprot.readListEnd()
13590
        else:
13591
          iprot.skip(ftype)
2981 rajveer 13592
      elif fid == 1:
13593
        if ftype == TType.STRUCT:
13594
          self.scx = WidgetException()
13595
          self.scx.read(iprot)
13596
        else:
13597
          iprot.skip(ftype)
1673 ankur.sing 13598
      else:
13599
        iprot.skip(ftype)
13600
      iprot.readFieldEnd()
13601
    iprot.readStructEnd()
13602
 
13603
  def write(self, oprot):
13604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13606
      return
2981 rajveer 13607
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13608
    if self.success is not None:
1673 ankur.sing 13609
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13610
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13611
      for iter162 in self.success:
13612
        oprot.writeI64(iter162)
1673 ankur.sing 13613
      oprot.writeListEnd()
13614
      oprot.writeFieldEnd()
3431 rajveer 13615
    if self.scx is not None:
2981 rajveer 13616
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13617
      self.scx.write(oprot)
2642 varun.gupt 13618
      oprot.writeFieldEnd()
13619
    oprot.writeFieldStop()
13620
    oprot.writeStructEnd()
13621
 
3431 rajveer 13622
  def validate(self):
13623
    return
13624
 
13625
 
2642 varun.gupt 13626
  def __repr__(self):
13627
    L = ['%s=%r' % (key, value)
13628
      for key, value in self.__dict__.iteritems()]
13629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13630
 
13631
  def __eq__(self, other):
13632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13633
 
13634
  def __ne__(self, other):
13635
    return not (self == other)
13636
 
2981 rajveer 13637
class updateBrowseHistory_args:
2642 varun.gupt 13638
  """
13639
  Attributes:
2981 rajveer 13640
   - userId
13641
   - itemId
2642 varun.gupt 13642
  """
13643
 
13644
  thrift_spec = (
13645
    None, # 0
2981 rajveer 13646
    (1, TType.I64, 'userId', None, None, ), # 1
13647
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13648
  )
13649
 
2981 rajveer 13650
  def __init__(self, userId=None, itemId=None,):
13651
    self.userId = userId
13652
    self.itemId = itemId
2642 varun.gupt 13653
 
13654
  def read(self, iprot):
13655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13657
      return
13658
    iprot.readStructBegin()
13659
    while True:
13660
      (fname, ftype, fid) = iprot.readFieldBegin()
13661
      if ftype == TType.STOP:
13662
        break
13663
      if fid == 1:
13664
        if ftype == TType.I64:
2981 rajveer 13665
          self.userId = iprot.readI64();
2642 varun.gupt 13666
        else:
13667
          iprot.skip(ftype)
13668
      elif fid == 2:
13669
        if ftype == TType.I64:
2981 rajveer 13670
          self.itemId = iprot.readI64();
2642 varun.gupt 13671
        else:
13672
          iprot.skip(ftype)
13673
      else:
13674
        iprot.skip(ftype)
13675
      iprot.readFieldEnd()
13676
    iprot.readStructEnd()
13677
 
13678
  def write(self, oprot):
13679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13681
      return
2981 rajveer 13682
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13683
    if self.userId is not None:
2981 rajveer 13684
      oprot.writeFieldBegin('userId', TType.I64, 1)
13685
      oprot.writeI64(self.userId)
2642 varun.gupt 13686
      oprot.writeFieldEnd()
3431 rajveer 13687
    if self.itemId is not None:
2981 rajveer 13688
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13689
      oprot.writeI64(self.itemId)
2642 varun.gupt 13690
      oprot.writeFieldEnd()
13691
    oprot.writeFieldStop()
13692
    oprot.writeStructEnd()
13693
 
3431 rajveer 13694
  def validate(self):
13695
    return
13696
 
13697
 
2642 varun.gupt 13698
  def __repr__(self):
13699
    L = ['%s=%r' % (key, value)
13700
      for key, value in self.__dict__.iteritems()]
13701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13702
 
13703
  def __eq__(self, other):
13704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13705
 
13706
  def __ne__(self, other):
13707
    return not (self == other)
13708
 
2981 rajveer 13709
class updateBrowseHistory_result:
2642 varun.gupt 13710
 
13711
  thrift_spec = (
13712
  )
13713
 
13714
  def read(self, iprot):
13715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13717
      return
13718
    iprot.readStructBegin()
13719
    while True:
13720
      (fname, ftype, fid) = iprot.readFieldBegin()
13721
      if ftype == TType.STOP:
13722
        break
13723
      else:
13724
        iprot.skip(ftype)
13725
      iprot.readFieldEnd()
13726
    iprot.readStructEnd()
13727
 
13728
  def write(self, oprot):
13729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13731
      return
2981 rajveer 13732
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13733
    oprot.writeFieldStop()
13734
    oprot.writeStructEnd()
13735
 
3431 rajveer 13736
  def validate(self):
13737
    return
13738
 
13739
 
2642 varun.gupt 13740
  def __repr__(self):
13741
    L = ['%s=%r' % (key, value)
13742
      for key, value in self.__dict__.iteritems()]
13743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13744
 
13745
  def __eq__(self, other):
13746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13747
 
13748
  def __ne__(self, other):
13749
    return not (self == other)
13750
 
3385 varun.gupt 13751
class getCartsWithCouponCount_args:
13752
  """
13753
  Attributes:
13754
   - couponCode
13755
  """
2642 varun.gupt 13756
 
3385 varun.gupt 13757
  thrift_spec = (
13758
    None, # 0
13759
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13760
  )
13761
 
13762
  def __init__(self, couponCode=None,):
13763
    self.couponCode = couponCode
13764
 
13765
  def read(self, iprot):
13766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13768
      return
13769
    iprot.readStructBegin()
13770
    while True:
13771
      (fname, ftype, fid) = iprot.readFieldBegin()
13772
      if ftype == TType.STOP:
13773
        break
13774
      if fid == 1:
13775
        if ftype == TType.STRING:
13776
          self.couponCode = iprot.readString();
13777
        else:
13778
          iprot.skip(ftype)
13779
      else:
13780
        iprot.skip(ftype)
13781
      iprot.readFieldEnd()
13782
    iprot.readStructEnd()
13783
 
13784
  def write(self, oprot):
13785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13787
      return
13788
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13789
    if self.couponCode is not None:
3385 varun.gupt 13790
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13791
      oprot.writeString(self.couponCode)
13792
      oprot.writeFieldEnd()
13793
    oprot.writeFieldStop()
13794
    oprot.writeStructEnd()
13795
 
3431 rajveer 13796
  def validate(self):
13797
    return
13798
 
13799
 
3385 varun.gupt 13800
  def __repr__(self):
13801
    L = ['%s=%r' % (key, value)
13802
      for key, value in self.__dict__.iteritems()]
13803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13804
 
13805
  def __eq__(self, other):
13806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13807
 
13808
  def __ne__(self, other):
13809
    return not (self == other)
13810
 
13811
class getCartsWithCouponCount_result:
13812
  """
13813
  Attributes:
13814
   - success
13815
  """
13816
 
13817
  thrift_spec = (
13818
    (0, TType.I64, 'success', None, None, ), # 0
13819
  )
13820
 
13821
  def __init__(self, success=None,):
13822
    self.success = success
13823
 
13824
  def read(self, iprot):
13825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13827
      return
13828
    iprot.readStructBegin()
13829
    while True:
13830
      (fname, ftype, fid) = iprot.readFieldBegin()
13831
      if ftype == TType.STOP:
13832
        break
13833
      if fid == 0:
13834
        if ftype == TType.I64:
13835
          self.success = iprot.readI64();
13836
        else:
13837
          iprot.skip(ftype)
13838
      else:
13839
        iprot.skip(ftype)
13840
      iprot.readFieldEnd()
13841
    iprot.readStructEnd()
13842
 
13843
  def write(self, oprot):
13844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13846
      return
13847
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13848
    if self.success is not None:
3385 varun.gupt 13849
      oprot.writeFieldBegin('success', TType.I64, 0)
13850
      oprot.writeI64(self.success)
13851
      oprot.writeFieldEnd()
13852
    oprot.writeFieldStop()
13853
    oprot.writeStructEnd()
13854
 
3431 rajveer 13855
  def validate(self):
13856
    return
13857
 
13858
 
3385 varun.gupt 13859
  def __repr__(self):
13860
    L = ['%s=%r' % (key, value)
13861
      for key, value in self.__dict__.iteritems()]
13862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13863
 
13864
  def __eq__(self, other):
13865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13866
 
13867
  def __ne__(self, other):
13868
    return not (self == other)
3499 mandeep.dh 13869
 
13870
class increaseTrustLevel_args:
13871
  """
13872
  Attributes:
13873
   - userId
13874
   - trustLevelDelta
13875
  """
13876
 
13877
  thrift_spec = (
13878
    None, # 0
13879
    (1, TType.I64, 'userId', None, None, ), # 1
13880
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13881
  )
13882
 
13883
  def __init__(self, userId=None, trustLevelDelta=None,):
13884
    self.userId = userId
13885
    self.trustLevelDelta = trustLevelDelta
13886
 
13887
  def read(self, iprot):
13888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13890
      return
13891
    iprot.readStructBegin()
13892
    while True:
13893
      (fname, ftype, fid) = iprot.readFieldBegin()
13894
      if ftype == TType.STOP:
13895
        break
13896
      if fid == 1:
13897
        if ftype == TType.I64:
13898
          self.userId = iprot.readI64();
13899
        else:
13900
          iprot.skip(ftype)
13901
      elif fid == 2:
13902
        if ftype == TType.DOUBLE:
13903
          self.trustLevelDelta = iprot.readDouble();
13904
        else:
13905
          iprot.skip(ftype)
13906
      else:
13907
        iprot.skip(ftype)
13908
      iprot.readFieldEnd()
13909
    iprot.readStructEnd()
13910
 
13911
  def write(self, oprot):
13912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13914
      return
13915
    oprot.writeStructBegin('increaseTrustLevel_args')
13916
    if self.userId is not None:
13917
      oprot.writeFieldBegin('userId', TType.I64, 1)
13918
      oprot.writeI64(self.userId)
13919
      oprot.writeFieldEnd()
13920
    if self.trustLevelDelta is not None:
13921
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13922
      oprot.writeDouble(self.trustLevelDelta)
13923
      oprot.writeFieldEnd()
13924
    oprot.writeFieldStop()
13925
    oprot.writeStructEnd()
13926
 
13927
  def validate(self):
13928
    return
13929
 
13930
 
13931
  def __repr__(self):
13932
    L = ['%s=%r' % (key, value)
13933
      for key, value in self.__dict__.iteritems()]
13934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13935
 
13936
  def __eq__(self, other):
13937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13938
 
13939
  def __ne__(self, other):
13940
    return not (self == other)