Subversion Repositories SmartDukaan

Rev

Rev 7746 | Rev 9791 | 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
 
5326 rajveer 37
  def getUserByCartId(self, cartId):
38
    """
39
    Parameters:
40
     - cartId
41
    """
42
    pass
43
 
1491 vikas 44
  def getUserByEmail(self, email):
45
    """
46
    Parameters:
47
     - email
48
    """
49
    pass
50
 
3032 mandeep.dh 51
  def getUserByMobileNumber(self, mobileNumber):
52
    """
53
    Parameters:
54
     - mobileNumber
55
    """
56
    pass
57
 
559 chandransh 58
  def createUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def updateUser(self, user):
94 ashish 66
    """
67
    Parameters:
559 chandransh 68
     - user
94 ashish 69
    """
70
    pass
71
 
559 chandransh 72
  def authenticateUser(self, email, password):
94 ashish 73
    """
74
    Parameters:
75
     - email
76
     - password
77
    """
78
    pass
79
 
80
  def userExists(self, email):
81
    """
82
    Parameters:
83
     - email
84
    """
85
    pass
86
 
567 rajveer 87
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 88
    """
89
    Parameters:
90
     - userId
91
     - address
513 rajveer 92
     - setDefault
94 ashish 93
    """
94
    pass
95
 
96
  def removeAddressForUser(self, userid, addressId):
97
    """
98
    Parameters:
99
     - userid
100
     - addressId
101
    """
102
    pass
103
 
104
  def setUserAsLoggedIn(self, userId, timestamp):
105
    """
106
    Parameters:
107
     - userId
108
     - timestamp
109
    """
110
    pass
111
 
112
  def setUserAsLoggedOut(self, userid, timestamp):
113
    """
114
    Parameters:
115
     - userid
116
     - timestamp
117
    """
118
    pass
119
 
504 rajveer 120
  def setDefaultAddress(self, userid, addressId):
121
    """
122
    Parameters:
123
     - userid
124
     - addressId
125
    """
126
    pass
127
 
594 rajveer 128
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 129
    """
130
    Parameters:
131
     - userid
594 rajveer 132
     - oldPassword
133
     - newPassword
94 ashish 134
    """
135
    pass
136
 
884 rajveer 137
  def forgotPassword(self, email, newPassword):
581 rajveer 138
    """
139
    Parameters:
140
     - email
884 rajveer 141
     - newPassword
581 rajveer 142
    """
143
    pass
144
 
594 rajveer 145
  def getAllAddressesForUser(self, userId):
146
    """
147
    Parameters:
148
     - userId
149
    """
150
    pass
151
 
1894 vikas 152
  def getAddressById(self, addressId):
153
    """
154
    Parameters:
155
     - addressId
156
    """
157
    pass
158
 
594 rajveer 159
  def getDefaultAddressId(self, userId):
160
    """
161
    Parameters:
162
     - userId
163
    """
164
    pass
165
 
785 rajveer 166
  def getDefaultPincode(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
1274 varun.gupt 173
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
174
    """
175
    Parameters:
176
     - userId
177
     - replyTo
178
     - communicationType
179
     - orderId
180
     - airwaybillNo
181
     - productName
182
     - subject
183
     - message
184
    """
185
    pass
186
 
1590 varun.gupt 187
  def getUserCommunicationById(self, id):
188
    """
189
    Parameters:
190
     - id
191
    """
192
    pass
193
 
194
  def getUserCommunicationByUser(self, userId):
195
    """
196
    Parameters:
197
     - userId
198
    """
199
    pass
200
 
201
  def getAllUserCommunications(self, ):
202
    pass
203
 
5407 amar.kumar 204
  def removeUserCommunication(self, id):
205
    """
206
    Parameters:
207
     - id
208
    """
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 getCurrentCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCart(self, cartId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - cartId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - from_time
336
     - to_time
337
     - status
94 ashish 338
    """
339
    pass
340
 
3557 rajveer 341
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 342
    """
343
    Parameters:
559 chandransh 344
     - cartId
345
     - itemId
346
     - quantity
3557 rajveer 347
     - sourceId
130 ashish 348
    """
349
    pass
350
 
559 chandransh 351
  def deleteItemFromCart(self, cartId, itemId):
352
    """
353
    Parameters:
354
     - cartId
355
     - itemId
356
    """
357
    pass
130 ashish 358
 
559 chandransh 359
  def addAddressToCart(self, cartId, addressId):
360
    """
361
    Parameters:
362
     - cartId
363
     - addressId
364
    """
365
    pass
366
 
5553 rajveer 367
  def addStoreToCart(self, cartId, storeId):
368
    """
369
    Parameters:
370
     - cartId
371
     - storeId
372
    """
373
    pass
374
 
6922 anupam.sin 375
  def applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 376
    """
377
    Parameters:
6922 anupam.sin 378
     - cart
1976 varun.gupt 379
     - couponCode
380
    """
381
    pass
382
 
383
  def removeCoupon(self, cartId):
384
    """
385
    Parameters:
386
     - cartId
387
    """
388
    pass
389
 
3554 varun.gupt 390
  def deleteDiscountsFromCart(self, cartId):
391
    """
392
    Deletes all the discounts associated with the cart
393
 
394
    Parameters:
395
     - cartId
396
    """
397
    pass
398
 
399
  def saveDiscounts(self, discounts):
400
    """
401
    Accepts a list of thrift objects of Discount type and saves them
402
 
403
    Parameters:
404
     - discounts
405
    """
406
    pass
407
 
6389 rajveer 408
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 409
    """
690 chandransh 410
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 411
 
559 chandransh 412
    Parameters:
413
     - cartId
2815 vikas 414
     - sessionSource
415
     - sessionStartTime
3858 vikas 416
     - firstSource
417
     - firstSourceTime
5326 rajveer 418
     - userId
6389 rajveer 419
     - schemeId
559 chandransh 420
    """
421
    pass
422
 
3557 rajveer 423
  def validateCart(self, cartId, sourceId):
559 chandransh 424
    """
690 chandransh 425
    Validates that:
426
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 427
    2. All of the lines in the cart are active items.
690 chandransh 428
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 429
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 430
 
559 chandransh 431
    Parameters:
432
     - cartId
3557 rajveer 433
     - sourceId
559 chandransh 434
    """
435
    pass
436
 
690 chandransh 437
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 438
    """
690 chandransh 439
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 440
 
575 chandransh 441
    Parameters:
690 chandransh 442
     - fromCartId
443
     - toCartId
444
    """
445
    pass
446
 
447
  def checkOut(self, cartId):
448
    """
449
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 450
 
690 chandransh 451
    Parameters:
575 chandransh 452
     - cartId
453
    """
454
    pass
455
 
690 chandransh 456
  def resetCart(self, cartId, items):
559 chandransh 457
    """
690 chandransh 458
    The second parameter is a map of item ids and their quantities which have been successfully processed.
459
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 460
 
559 chandransh 461
    Parameters:
690 chandransh 462
     - cartId
463
     - items
559 chandransh 464
    """
465
    pass
466
 
2981 rajveer 467
  def getUserCount(self, userType):
559 chandransh 468
    """
2981 rajveer 469
    Returns number of registered users.
470
    If userType = null, then it returns count of all users, including anonymous
471
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
472
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 473
 
559 chandransh 474
    Parameters:
2981 rajveer 475
     - userType
559 chandransh 476
    """
477
    pass
478
 
2981 rajveer 479
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 480
    """
2981 rajveer 481
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
482
    If any of startDate or endDate is -1, then that filter is ignored.
483
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 484
 
485
 
559 chandransh 486
    Parameters:
2981 rajveer 487
     - userType
488
     - startDate
489
     - endDate
559 chandransh 490
    """
491
    pass
492
 
2981 rajveer 493
  def getMyResearchItems(self, userId):
559 chandransh 494
    """
2981 rajveer 495
    Returns list of item ids in myresearch for the user
3431 rajveer 496
 
559 chandransh 497
    Parameters:
498
     - userId
499
    """
500
    pass
501
 
2981 rajveer 502
  def updateMyResearch(self, userId, itemId):
559 chandransh 503
    """
2981 rajveer 504
    add item to my research for a user
3431 rajveer 505
 
559 chandransh 506
    Parameters:
2981 rajveer 507
     - userId
508
     - itemId
559 chandransh 509
    """
510
    pass
511
 
2981 rajveer 512
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 513
    """
2981 rajveer 514
    delete item from my research for a user
3431 rajveer 515
 
1596 ankur.sing 516
    Parameters:
2981 rajveer 517
     - userId
518
     - itemId
1596 ankur.sing 519
    """
520
    pass
559 chandransh 521
 
2981 rajveer 522
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 523
    """
2981 rajveer 524
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 525
 
1673 ankur.sing 526
    Parameters:
2981 rajveer 527
     - userId
1673 ankur.sing 528
    """
529
    pass
1596 ankur.sing 530
 
2981 rajveer 531
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 532
    """
2981 rajveer 533
    add item to browse history for a user
3431 rajveer 534
 
2642 varun.gupt 535
    Parameters:
2981 rajveer 536
     - userId
537
     - itemId
2642 varun.gupt 538
    """
539
    pass
1673 ankur.sing 540
 
3385 varun.gupt 541
  def getCartsWithCouponCount(self, couponCode):
542
    """
543
    Returns count of Carts with given coupon applied
3431 rajveer 544
 
3385 varun.gupt 545
    Parameters:
546
     - couponCode
547
    """
548
    pass
2642 varun.gupt 549
 
3499 mandeep.dh 550
  def increaseTrustLevel(self, userId, trustLevelDelta):
551
    """
552
    Updates COD trust level of a user
3385 varun.gupt 553
 
3499 mandeep.dh 554
    Parameters:
555
     - userId
556
     - trustLevelDelta
557
    """
558
    pass
559
 
5407 amar.kumar 560
  def getTrustLevel(self, userId):
561
    """
562
    Get trust level of a user
563
 
564
    Parameters:
565
     - userId
566
    """
567
    pass
568
 
4668 varun.gupt 569
  def showCODOption(self, cartId, sourceId, pincode):
570
    """
571
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 572
 
4668 varun.gupt 573
    Parameters:
574
     - cartId
575
     - sourceId
576
     - pincode
577
    """
578
    pass
579
 
5623 anupam.sin 580
  def getUserEmails(self, startDate, endDate):
581
    """
582
    Get email addresses for users activated within a given date range
4668 varun.gupt 583
 
5623 anupam.sin 584
    Parameters:
585
     - startDate
586
     - endDate
587
    """
588
    pass
589
 
9299 kshitij.so 590
  def insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 591
    """
592
    Mark a cart lineitem as insured. Returns true/false.
593
 
594
    Parameters:
595
     - itemId
596
     - cartId
597
     - toInsure
9299 kshitij.so 598
     - insurerType
6903 anupam.sin 599
    """
600
    pass
601
 
602
  def cancelInsurance(self, cartId):
603
    """
604
    Cancel insurance for all items in the cart
605
 
606
    Parameters:
607
     - cartId
608
    """
609
    pass
610
 
611
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
612
    """
613
    Stores insurance specific details like date of birth and guardianName
614
 
615
    Parameters:
616
     - addressId
617
     - dob
618
     - guardianName
619
    """
620
    pass
621
 
622
  def isInsuranceDetailPresent(self, addressId):
623
    """
624
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
625
 
626
    Parameters:
627
     - addressId
628
    """
629
    pass
630
 
6821 amar.kumar 631
  def isProductAddedToCart(self, itemId, startDate, endDate):
632
    """
633
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 634
 
6821 amar.kumar 635
    Parameters:
636
     - itemId
637
     - startDate
638
     - endDate
639
    """
640
    pass
641
 
642
 
3376 rajveer 643
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 644
  """
645
  service
646
  """
647
  def __init__(self, iprot, oprot=None):
3376 rajveer 648
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 649
 
559 chandransh 650
  def createAnonymousUser(self, jsessionId):
94 ashish 651
    """
652
    Parameters:
559 chandransh 653
     - jsessionId
94 ashish 654
    """
559 chandransh 655
    self.send_createAnonymousUser(jsessionId)
656
    return self.recv_createAnonymousUser()
94 ashish 657
 
559 chandransh 658
  def send_createAnonymousUser(self, jsessionId):
659
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
660
    args = createAnonymousUser_args()
661
    args.jsessionId = jsessionId
94 ashish 662
    args.write(self._oprot)
663
    self._oprot.writeMessageEnd()
664
    self._oprot.trans.flush()
665
 
559 chandransh 666
  def recv_createAnonymousUser(self, ):
94 ashish 667
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
668
    if mtype == TMessageType.EXCEPTION:
669
      x = TApplicationException()
670
      x.read(self._iprot)
671
      self._iprot.readMessageEnd()
672
      raise x
559 chandransh 673
    result = createAnonymousUser_result()
94 ashish 674
    result.read(self._iprot)
675
    self._iprot.readMessageEnd()
3431 rajveer 676
    if result.success is not None:
94 ashish 677
      return result.success
3431 rajveer 678
    if result.ucex is not None:
559 chandransh 679
      raise result.ucex
680
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 681
 
559 chandransh 682
  def getUserById(self, userId):
94 ashish 683
    """
684
    Parameters:
685
     - userId
686
    """
559 chandransh 687
    self.send_getUserById(userId)
688
    return self.recv_getUserById()
94 ashish 689
 
559 chandransh 690
  def send_getUserById(self, userId):
691
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
692
    args = getUserById_args()
94 ashish 693
    args.userId = userId
694
    args.write(self._oprot)
695
    self._oprot.writeMessageEnd()
696
    self._oprot.trans.flush()
697
 
559 chandransh 698
  def recv_getUserById(self, ):
94 ashish 699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
700
    if mtype == TMessageType.EXCEPTION:
701
      x = TApplicationException()
702
      x.read(self._iprot)
703
      self._iprot.readMessageEnd()
704
      raise x
559 chandransh 705
    result = getUserById_result()
94 ashish 706
    result.read(self._iprot)
707
    self._iprot.readMessageEnd()
3431 rajveer 708
    if result.success is not None:
94 ashish 709
      return result.success
3431 rajveer 710
    if result.ucex is not None:
559 chandransh 711
      raise result.ucex
712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 713
 
5326 rajveer 714
  def getUserByCartId(self, cartId):
715
    """
716
    Parameters:
717
     - cartId
718
    """
719
    self.send_getUserByCartId(cartId)
720
    return self.recv_getUserByCartId()
721
 
722
  def send_getUserByCartId(self, cartId):
723
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
724
    args = getUserByCartId_args()
725
    args.cartId = cartId
726
    args.write(self._oprot)
727
    self._oprot.writeMessageEnd()
728
    self._oprot.trans.flush()
729
 
730
  def recv_getUserByCartId(self, ):
731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
732
    if mtype == TMessageType.EXCEPTION:
733
      x = TApplicationException()
734
      x.read(self._iprot)
735
      self._iprot.readMessageEnd()
736
      raise x
737
    result = getUserByCartId_result()
738
    result.read(self._iprot)
739
    self._iprot.readMessageEnd()
740
    if result.success is not None:
741
      return result.success
742
    if result.ucex is not None:
743
      raise result.ucex
744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
745
 
1491 vikas 746
  def getUserByEmail(self, email):
747
    """
748
    Parameters:
749
     - email
750
    """
751
    self.send_getUserByEmail(email)
752
    return self.recv_getUserByEmail()
753
 
754
  def send_getUserByEmail(self, email):
755
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
756
    args = getUserByEmail_args()
757
    args.email = email
758
    args.write(self._oprot)
759
    self._oprot.writeMessageEnd()
760
    self._oprot.trans.flush()
761
 
762
  def recv_getUserByEmail(self, ):
763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
764
    if mtype == TMessageType.EXCEPTION:
765
      x = TApplicationException()
766
      x.read(self._iprot)
767
      self._iprot.readMessageEnd()
768
      raise x
769
    result = getUserByEmail_result()
770
    result.read(self._iprot)
771
    self._iprot.readMessageEnd()
3431 rajveer 772
    if result.success is not None:
1491 vikas 773
      return result.success
3431 rajveer 774
    if result.ucex is not None:
1491 vikas 775
      raise result.ucex
776
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
777
 
3032 mandeep.dh 778
  def getUserByMobileNumber(self, mobileNumber):
779
    """
780
    Parameters:
781
     - mobileNumber
782
    """
783
    self.send_getUserByMobileNumber(mobileNumber)
784
    return self.recv_getUserByMobileNumber()
785
 
786
  def send_getUserByMobileNumber(self, mobileNumber):
787
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
788
    args = getUserByMobileNumber_args()
789
    args.mobileNumber = mobileNumber
790
    args.write(self._oprot)
791
    self._oprot.writeMessageEnd()
792
    self._oprot.trans.flush()
793
 
794
  def recv_getUserByMobileNumber(self, ):
795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
796
    if mtype == TMessageType.EXCEPTION:
797
      x = TApplicationException()
798
      x.read(self._iprot)
799
      self._iprot.readMessageEnd()
800
      raise x
801
    result = getUserByMobileNumber_result()
802
    result.read(self._iprot)
803
    self._iprot.readMessageEnd()
3431 rajveer 804
    if result.success is not None:
3032 mandeep.dh 805
      return result.success
3431 rajveer 806
    if result.ucex is not None:
3032 mandeep.dh 807
      raise result.ucex
808
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
809
 
559 chandransh 810
  def createUser(self, user):
94 ashish 811
    """
812
    Parameters:
559 chandransh 813
     - user
94 ashish 814
    """
559 chandransh 815
    self.send_createUser(user)
816
    return self.recv_createUser()
94 ashish 817
 
559 chandransh 818
  def send_createUser(self, user):
819
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
820
    args = createUser_args()
821
    args.user = user
94 ashish 822
    args.write(self._oprot)
823
    self._oprot.writeMessageEnd()
824
    self._oprot.trans.flush()
825
 
559 chandransh 826
  def recv_createUser(self, ):
94 ashish 827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
828
    if mtype == TMessageType.EXCEPTION:
829
      x = TApplicationException()
830
      x.read(self._iprot)
831
      self._iprot.readMessageEnd()
832
      raise x
559 chandransh 833
    result = createUser_result()
94 ashish 834
    result.read(self._iprot)
835
    self._iprot.readMessageEnd()
3431 rajveer 836
    if result.success is not None:
94 ashish 837
      return result.success
3431 rajveer 838
    if result.ucex is not None:
559 chandransh 839
      raise result.ucex
840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 841
 
559 chandransh 842
  def updateUser(self, user):
94 ashish 843
    """
844
    Parameters:
559 chandransh 845
     - user
94 ashish 846
    """
559 chandransh 847
    self.send_updateUser(user)
848
    return self.recv_updateUser()
94 ashish 849
 
559 chandransh 850
  def send_updateUser(self, user):
851
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
852
    args = updateUser_args()
853
    args.user = user
94 ashish 854
    args.write(self._oprot)
855
    self._oprot.writeMessageEnd()
856
    self._oprot.trans.flush()
857
 
559 chandransh 858
  def recv_updateUser(self, ):
94 ashish 859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
860
    if mtype == TMessageType.EXCEPTION:
861
      x = TApplicationException()
862
      x.read(self._iprot)
863
      self._iprot.readMessageEnd()
864
      raise x
559 chandransh 865
    result = updateUser_result()
94 ashish 866
    result.read(self._iprot)
867
    self._iprot.readMessageEnd()
3431 rajveer 868
    if result.success is not None:
94 ashish 869
      return result.success
3431 rajveer 870
    if result.ucex is not None:
559 chandransh 871
      raise result.ucex
872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 873
 
559 chandransh 874
  def authenticateUser(self, email, password):
94 ashish 875
    """
876
    Parameters:
877
     - email
878
     - password
879
    """
559 chandransh 880
    self.send_authenticateUser(email, password)
122 ashish 881
    return self.recv_authenticateUser()
882
 
559 chandransh 883
  def send_authenticateUser(self, email, password):
122 ashish 884
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
885
    args = authenticateUser_args()
559 chandransh 886
    args.email = email
122 ashish 887
    args.password = password
888
    args.write(self._oprot)
889
    self._oprot.writeMessageEnd()
890
    self._oprot.trans.flush()
891
 
892
  def recv_authenticateUser(self, ):
893
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
894
    if mtype == TMessageType.EXCEPTION:
895
      x = TApplicationException()
896
      x.read(self._iprot)
897
      self._iprot.readMessageEnd()
898
      raise x
899
    result = authenticateUser_result()
900
    result.read(self._iprot)
901
    self._iprot.readMessageEnd()
3431 rajveer 902
    if result.success is not None:
122 ashish 903
      return result.success
3431 rajveer 904
    if result.auex is not None:
559 chandransh 905
      raise result.auex
122 ashish 906
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
907
 
94 ashish 908
  def userExists(self, email):
909
    """
910
    Parameters:
911
     - email
912
    """
913
    self.send_userExists(email)
914
    return self.recv_userExists()
915
 
916
  def send_userExists(self, email):
917
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
918
    args = userExists_args()
919
    args.email = email
920
    args.write(self._oprot)
921
    self._oprot.writeMessageEnd()
922
    self._oprot.trans.flush()
923
 
924
  def recv_userExists(self, ):
925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
926
    if mtype == TMessageType.EXCEPTION:
927
      x = TApplicationException()
928
      x.read(self._iprot)
929
      self._iprot.readMessageEnd()
930
      raise x
931
    result = userExists_result()
932
    result.read(self._iprot)
933
    self._iprot.readMessageEnd()
3431 rajveer 934
    if result.success is not None:
94 ashish 935
      return result.success
3431 rajveer 936
    if result.ucx is not None:
94 ashish 937
      raise result.ucx
938
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
939
 
567 rajveer 940
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 941
    """
942
    Parameters:
943
     - userId
944
     - address
513 rajveer 945
     - setDefault
94 ashish 946
    """
567 rajveer 947
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 948
    return self.recv_addAddressForUser()
949
 
567 rajveer 950
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 951
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
952
    args = addAddressForUser_args()
559 chandransh 953
    args.userId = userId
94 ashish 954
    args.address = address
513 rajveer 955
    args.setDefault = setDefault
94 ashish 956
    args.write(self._oprot)
957
    self._oprot.writeMessageEnd()
958
    self._oprot.trans.flush()
959
 
960
  def recv_addAddressForUser(self, ):
961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
962
    if mtype == TMessageType.EXCEPTION:
963
      x = TApplicationException()
964
      x.read(self._iprot)
965
      self._iprot.readMessageEnd()
966
      raise x
967
    result = addAddressForUser_result()
968
    result.read(self._iprot)
969
    self._iprot.readMessageEnd()
3431 rajveer 970
    if result.success is not None:
94 ashish 971
      return result.success
3431 rajveer 972
    if result.ucx is not None:
94 ashish 973
      raise result.ucx
974
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
975
 
976
  def removeAddressForUser(self, userid, addressId):
977
    """
978
    Parameters:
979
     - userid
980
     - addressId
981
    """
982
    self.send_removeAddressForUser(userid, addressId)
983
    return self.recv_removeAddressForUser()
984
 
985
  def send_removeAddressForUser(self, userid, addressId):
986
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
987
    args = removeAddressForUser_args()
988
    args.userid = userid
989
    args.addressId = addressId
990
    args.write(self._oprot)
991
    self._oprot.writeMessageEnd()
992
    self._oprot.trans.flush()
993
 
994
  def recv_removeAddressForUser(self, ):
995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
996
    if mtype == TMessageType.EXCEPTION:
997
      x = TApplicationException()
998
      x.read(self._iprot)
999
      self._iprot.readMessageEnd()
1000
      raise x
1001
    result = removeAddressForUser_result()
1002
    result.read(self._iprot)
1003
    self._iprot.readMessageEnd()
3431 rajveer 1004
    if result.success is not None:
94 ashish 1005
      return result.success
3431 rajveer 1006
    if result.ucx is not None:
94 ashish 1007
      raise result.ucx
1008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1009
 
1010
  def setUserAsLoggedIn(self, userId, timestamp):
1011
    """
1012
    Parameters:
1013
     - userId
1014
     - timestamp
1015
    """
1016
    self.send_setUserAsLoggedIn(userId, timestamp)
1017
    return self.recv_setUserAsLoggedIn()
1018
 
1019
  def send_setUserAsLoggedIn(self, userId, timestamp):
1020
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1021
    args = setUserAsLoggedIn_args()
1022
    args.userId = userId
1023
    args.timestamp = timestamp
1024
    args.write(self._oprot)
1025
    self._oprot.writeMessageEnd()
1026
    self._oprot.trans.flush()
1027
 
1028
  def recv_setUserAsLoggedIn(self, ):
1029
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1030
    if mtype == TMessageType.EXCEPTION:
1031
      x = TApplicationException()
1032
      x.read(self._iprot)
1033
      self._iprot.readMessageEnd()
1034
      raise x
1035
    result = setUserAsLoggedIn_result()
1036
    result.read(self._iprot)
1037
    self._iprot.readMessageEnd()
3431 rajveer 1038
    if result.success is not None:
94 ashish 1039
      return result.success
3431 rajveer 1040
    if result.ucx is not None:
94 ashish 1041
      raise result.ucx
1042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1043
 
1044
  def setUserAsLoggedOut(self, userid, timestamp):
1045
    """
1046
    Parameters:
1047
     - userid
1048
     - timestamp
1049
    """
1050
    self.send_setUserAsLoggedOut(userid, timestamp)
1051
    return self.recv_setUserAsLoggedOut()
1052
 
1053
  def send_setUserAsLoggedOut(self, userid, timestamp):
1054
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1055
    args = setUserAsLoggedOut_args()
1056
    args.userid = userid
1057
    args.timestamp = timestamp
1058
    args.write(self._oprot)
1059
    self._oprot.writeMessageEnd()
1060
    self._oprot.trans.flush()
1061
 
1062
  def recv_setUserAsLoggedOut(self, ):
1063
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1064
    if mtype == TMessageType.EXCEPTION:
1065
      x = TApplicationException()
1066
      x.read(self._iprot)
1067
      self._iprot.readMessageEnd()
1068
      raise x
1069
    result = setUserAsLoggedOut_result()
1070
    result.read(self._iprot)
1071
    self._iprot.readMessageEnd()
3431 rajveer 1072
    if result.success is not None:
94 ashish 1073
      return result.success
3431 rajveer 1074
    if result.ucx is not None:
94 ashish 1075
      raise result.ucx
1076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1077
 
504 rajveer 1078
  def setDefaultAddress(self, userid, addressId):
1079
    """
1080
    Parameters:
1081
     - userid
1082
     - addressId
1083
    """
1084
    self.send_setDefaultAddress(userid, addressId)
1085
    return self.recv_setDefaultAddress()
1086
 
1087
  def send_setDefaultAddress(self, userid, addressId):
1088
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1089
    args = setDefaultAddress_args()
1090
    args.userid = userid
1091
    args.addressId = addressId
1092
    args.write(self._oprot)
1093
    self._oprot.writeMessageEnd()
1094
    self._oprot.trans.flush()
1095
 
1096
  def recv_setDefaultAddress(self, ):
1097
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1098
    if mtype == TMessageType.EXCEPTION:
1099
      x = TApplicationException()
1100
      x.read(self._iprot)
1101
      self._iprot.readMessageEnd()
1102
      raise x
1103
    result = setDefaultAddress_result()
1104
    result.read(self._iprot)
1105
    self._iprot.readMessageEnd()
3431 rajveer 1106
    if result.success is not None:
504 rajveer 1107
      return result.success
3431 rajveer 1108
    if result.ucx is not None:
504 rajveer 1109
      raise result.ucx
1110
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1111
 
594 rajveer 1112
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1113
    """
1114
    Parameters:
1115
     - userid
594 rajveer 1116
     - oldPassword
1117
     - newPassword
94 ashish 1118
    """
594 rajveer 1119
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1120
    return self.recv_updatePassword()
1121
 
594 rajveer 1122
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1123
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1124
    args = updatePassword_args()
1125
    args.userid = userid
594 rajveer 1126
    args.oldPassword = oldPassword
1127
    args.newPassword = newPassword
94 ashish 1128
    args.write(self._oprot)
1129
    self._oprot.writeMessageEnd()
1130
    self._oprot.trans.flush()
1131
 
1132
  def recv_updatePassword(self, ):
1133
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1134
    if mtype == TMessageType.EXCEPTION:
1135
      x = TApplicationException()
1136
      x.read(self._iprot)
1137
      self._iprot.readMessageEnd()
1138
      raise x
1139
    result = updatePassword_result()
1140
    result.read(self._iprot)
1141
    self._iprot.readMessageEnd()
3431 rajveer 1142
    if result.success is not None:
94 ashish 1143
      return result.success
3431 rajveer 1144
    if result.ucx is not None:
94 ashish 1145
      raise result.ucx
1146
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1147
 
884 rajveer 1148
  def forgotPassword(self, email, newPassword):
581 rajveer 1149
    """
1150
    Parameters:
1151
     - email
884 rajveer 1152
     - newPassword
581 rajveer 1153
    """
884 rajveer 1154
    self.send_forgotPassword(email, newPassword)
581 rajveer 1155
    return self.recv_forgotPassword()
1156
 
884 rajveer 1157
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1158
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1159
    args = forgotPassword_args()
1160
    args.email = email
884 rajveer 1161
    args.newPassword = newPassword
581 rajveer 1162
    args.write(self._oprot)
1163
    self._oprot.writeMessageEnd()
1164
    self._oprot.trans.flush()
1165
 
1166
  def recv_forgotPassword(self, ):
1167
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1168
    if mtype == TMessageType.EXCEPTION:
1169
      x = TApplicationException()
1170
      x.read(self._iprot)
1171
      self._iprot.readMessageEnd()
1172
      raise x
1173
    result = forgotPassword_result()
1174
    result.read(self._iprot)
1175
    self._iprot.readMessageEnd()
3431 rajveer 1176
    if result.success is not None:
581 rajveer 1177
      return result.success
3431 rajveer 1178
    if result.ucx is not None:
581 rajveer 1179
      raise result.ucx
1180
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1181
 
594 rajveer 1182
  def getAllAddressesForUser(self, userId):
1183
    """
1184
    Parameters:
1185
     - userId
1186
    """
1187
    self.send_getAllAddressesForUser(userId)
1188
    return self.recv_getAllAddressesForUser()
1189
 
1190
  def send_getAllAddressesForUser(self, userId):
1191
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1192
    args = getAllAddressesForUser_args()
1193
    args.userId = userId
1194
    args.write(self._oprot)
1195
    self._oprot.writeMessageEnd()
1196
    self._oprot.trans.flush()
1197
 
1198
  def recv_getAllAddressesForUser(self, ):
1199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1200
    if mtype == TMessageType.EXCEPTION:
1201
      x = TApplicationException()
1202
      x.read(self._iprot)
1203
      self._iprot.readMessageEnd()
1204
      raise x
1205
    result = getAllAddressesForUser_result()
1206
    result.read(self._iprot)
1207
    self._iprot.readMessageEnd()
3431 rajveer 1208
    if result.success is not None:
594 rajveer 1209
      return result.success
3431 rajveer 1210
    if result.ucx is not None:
594 rajveer 1211
      raise result.ucx
1212
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1213
 
1894 vikas 1214
  def getAddressById(self, addressId):
1215
    """
1216
    Parameters:
1217
     - addressId
1218
    """
1219
    self.send_getAddressById(addressId)
1220
    return self.recv_getAddressById()
1221
 
1222
  def send_getAddressById(self, addressId):
1223
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1224
    args = getAddressById_args()
1225
    args.addressId = addressId
1226
    args.write(self._oprot)
1227
    self._oprot.writeMessageEnd()
1228
    self._oprot.trans.flush()
1229
 
1230
  def recv_getAddressById(self, ):
1231
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1232
    if mtype == TMessageType.EXCEPTION:
1233
      x = TApplicationException()
1234
      x.read(self._iprot)
1235
      self._iprot.readMessageEnd()
1236
      raise x
1237
    result = getAddressById_result()
1238
    result.read(self._iprot)
1239
    self._iprot.readMessageEnd()
3431 rajveer 1240
    if result.success is not None:
1894 vikas 1241
      return result.success
3431 rajveer 1242
    if result.ucx is not None:
1894 vikas 1243
      raise result.ucx
1244
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1245
 
594 rajveer 1246
  def getDefaultAddressId(self, userId):
1247
    """
1248
    Parameters:
1249
     - userId
1250
    """
1251
    self.send_getDefaultAddressId(userId)
1252
    return self.recv_getDefaultAddressId()
1253
 
1254
  def send_getDefaultAddressId(self, userId):
1255
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1256
    args = getDefaultAddressId_args()
1257
    args.userId = userId
1258
    args.write(self._oprot)
1259
    self._oprot.writeMessageEnd()
1260
    self._oprot.trans.flush()
1261
 
1262
  def recv_getDefaultAddressId(self, ):
1263
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1264
    if mtype == TMessageType.EXCEPTION:
1265
      x = TApplicationException()
1266
      x.read(self._iprot)
1267
      self._iprot.readMessageEnd()
1268
      raise x
1269
    result = getDefaultAddressId_result()
1270
    result.read(self._iprot)
1271
    self._iprot.readMessageEnd()
3431 rajveer 1272
    if result.success is not None:
594 rajveer 1273
      return result.success
3431 rajveer 1274
    if result.ucx is not None:
594 rajveer 1275
      raise result.ucx
1276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1277
 
785 rajveer 1278
  def getDefaultPincode(self, userId):
1279
    """
1280
    Parameters:
1281
     - userId
1282
    """
1283
    self.send_getDefaultPincode(userId)
1284
    return self.recv_getDefaultPincode()
1285
 
1286
  def send_getDefaultPincode(self, userId):
1287
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1288
    args = getDefaultPincode_args()
1289
    args.userId = userId
1290
    args.write(self._oprot)
1291
    self._oprot.writeMessageEnd()
1292
    self._oprot.trans.flush()
1293
 
1294
  def recv_getDefaultPincode(self, ):
1295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1296
    if mtype == TMessageType.EXCEPTION:
1297
      x = TApplicationException()
1298
      x.read(self._iprot)
1299
      self._iprot.readMessageEnd()
1300
      raise x
1301
    result = getDefaultPincode_result()
1302
    result.read(self._iprot)
1303
    self._iprot.readMessageEnd()
3431 rajveer 1304
    if result.success is not None:
785 rajveer 1305
      return result.success
3431 rajveer 1306
    if result.ucx is not None:
785 rajveer 1307
      raise result.ucx
1308
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1309
 
1274 varun.gupt 1310
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1311
    """
1312
    Parameters:
1313
     - userId
1314
     - replyTo
1315
     - communicationType
1316
     - orderId
1317
     - airwaybillNo
1318
     - productName
1319
     - subject
1320
     - message
1321
    """
1322
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1323
    return self.recv_saveUserCommunication()
1324
 
1325
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1326
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1327
    args = saveUserCommunication_args()
1328
    args.userId = userId
1329
    args.replyTo = replyTo
1330
    args.communicationType = communicationType
1331
    args.orderId = orderId
1332
    args.airwaybillNo = airwaybillNo
1333
    args.productName = productName
1334
    args.subject = subject
1335
    args.message = message
1336
    args.write(self._oprot)
1337
    self._oprot.writeMessageEnd()
1338
    self._oprot.trans.flush()
1339
 
1340
  def recv_saveUserCommunication(self, ):
1341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1342
    if mtype == TMessageType.EXCEPTION:
1343
      x = TApplicationException()
1344
      x.read(self._iprot)
1345
      self._iprot.readMessageEnd()
1346
      raise x
1347
    result = saveUserCommunication_result()
1348
    result.read(self._iprot)
1349
    self._iprot.readMessageEnd()
3431 rajveer 1350
    if result.success is not None:
1274 varun.gupt 1351
      return result.success
3431 rajveer 1352
    if result.ucx is not None:
1274 varun.gupt 1353
      raise result.ucx
1354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1355
 
1590 varun.gupt 1356
  def getUserCommunicationById(self, id):
1357
    """
1358
    Parameters:
1359
     - id
1360
    """
1361
    self.send_getUserCommunicationById(id)
1362
    return self.recv_getUserCommunicationById()
1363
 
1364
  def send_getUserCommunicationById(self, id):
1365
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1366
    args = getUserCommunicationById_args()
1367
    args.id = id
1368
    args.write(self._oprot)
1369
    self._oprot.writeMessageEnd()
1370
    self._oprot.trans.flush()
1371
 
1372
  def recv_getUserCommunicationById(self, ):
1373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1374
    if mtype == TMessageType.EXCEPTION:
1375
      x = TApplicationException()
1376
      x.read(self._iprot)
1377
      self._iprot.readMessageEnd()
1378
      raise x
1379
    result = getUserCommunicationById_result()
1380
    result.read(self._iprot)
1381
    self._iprot.readMessageEnd()
3431 rajveer 1382
    if result.success is not None:
1590 varun.gupt 1383
      return result.success
3431 rajveer 1384
    if result.ucx is not None:
1590 varun.gupt 1385
      raise result.ucx
1386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1387
 
1388
  def getUserCommunicationByUser(self, userId):
1389
    """
1390
    Parameters:
1391
     - userId
1392
    """
1393
    self.send_getUserCommunicationByUser(userId)
1394
    return self.recv_getUserCommunicationByUser()
1395
 
1396
  def send_getUserCommunicationByUser(self, userId):
1397
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1398
    args = getUserCommunicationByUser_args()
1399
    args.userId = userId
1400
    args.write(self._oprot)
1401
    self._oprot.writeMessageEnd()
1402
    self._oprot.trans.flush()
1403
 
1404
  def recv_getUserCommunicationByUser(self, ):
1405
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1406
    if mtype == TMessageType.EXCEPTION:
1407
      x = TApplicationException()
1408
      x.read(self._iprot)
1409
      self._iprot.readMessageEnd()
1410
      raise x
1411
    result = getUserCommunicationByUser_result()
1412
    result.read(self._iprot)
1413
    self._iprot.readMessageEnd()
3431 rajveer 1414
    if result.success is not None:
1590 varun.gupt 1415
      return result.success
3431 rajveer 1416
    if result.ucx is not None:
1590 varun.gupt 1417
      raise result.ucx
1418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1419
 
1420
  def getAllUserCommunications(self, ):
1421
    self.send_getAllUserCommunications()
1422
    return self.recv_getAllUserCommunications()
1423
 
1424
  def send_getAllUserCommunications(self, ):
1425
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1426
    args = getAllUserCommunications_args()
1427
    args.write(self._oprot)
1428
    self._oprot.writeMessageEnd()
1429
    self._oprot.trans.flush()
1430
 
1431
  def recv_getAllUserCommunications(self, ):
1432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1433
    if mtype == TMessageType.EXCEPTION:
1434
      x = TApplicationException()
1435
      x.read(self._iprot)
1436
      self._iprot.readMessageEnd()
1437
      raise x
1438
    result = getAllUserCommunications_result()
1439
    result.read(self._iprot)
1440
    self._iprot.readMessageEnd()
3431 rajveer 1441
    if result.success is not None:
1590 varun.gupt 1442
      return result.success
3431 rajveer 1443
    if result.ucx is not None:
1590 varun.gupt 1444
      raise result.ucx
1445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1446
 
5407 amar.kumar 1447
  def removeUserCommunication(self, id):
1448
    """
1449
    Parameters:
1450
     - id
1451
    """
1452
    self.send_removeUserCommunication(id)
1453
    self.recv_removeUserCommunication()
1454
 
1455
  def send_removeUserCommunication(self, id):
1456
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1457
    args = removeUserCommunication_args()
1458
    args.id = id
1459
    args.write(self._oprot)
1460
    self._oprot.writeMessageEnd()
1461
    self._oprot.trans.flush()
1462
 
1463
  def recv_removeUserCommunication(self, ):
1464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1465
    if mtype == TMessageType.EXCEPTION:
1466
      x = TApplicationException()
1467
      x.read(self._iprot)
1468
      self._iprot.readMessageEnd()
1469
      raise x
1470
    result = removeUserCommunication_result()
1471
    result.read(self._iprot)
1472
    self._iprot.readMessageEnd()
1473
    if result.ucx is not None:
1474
      raise result.ucx
1475
    return
1476
 
1859 vikas 1477
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1478
    """
1479
    Parameters:
1480
     - name
1859 vikas 1481
     - addedOn
1845 vikas 1482
    """
1859 vikas 1483
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1484
    return self.recv_createMasterAffiliate()
1485
 
1859 vikas 1486
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1487
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1488
    args = createMasterAffiliate_args()
1489
    args.name = name
1859 vikas 1490
    args.addedOn = addedOn
1845 vikas 1491
    args.write(self._oprot)
1492
    self._oprot.writeMessageEnd()
1493
    self._oprot.trans.flush()
1494
 
1495
  def recv_createMasterAffiliate(self, ):
1496
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1497
    if mtype == TMessageType.EXCEPTION:
1498
      x = TApplicationException()
1499
      x.read(self._iprot)
1500
      self._iprot.readMessageEnd()
1501
      raise x
1502
    result = createMasterAffiliate_result()
1503
    result.read(self._iprot)
1504
    self._iprot.readMessageEnd()
3431 rajveer 1505
    if result.success is not None:
1845 vikas 1506
      return result.success
3431 rajveer 1507
    if result.utx is not None:
1845 vikas 1508
      raise result.utx
1509
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1510
 
1899 vikas 1511
  def getAllMasterAffiliates(self, ):
1512
    self.send_getAllMasterAffiliates()
1513
    return self.recv_getAllMasterAffiliates()
1514
 
1515
  def send_getAllMasterAffiliates(self, ):
1516
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1517
    args = getAllMasterAffiliates_args()
1518
    args.write(self._oprot)
1519
    self._oprot.writeMessageEnd()
1520
    self._oprot.trans.flush()
1521
 
1522
  def recv_getAllMasterAffiliates(self, ):
1523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1524
    if mtype == TMessageType.EXCEPTION:
1525
      x = TApplicationException()
1526
      x.read(self._iprot)
1527
      self._iprot.readMessageEnd()
1528
      raise x
1529
    result = getAllMasterAffiliates_result()
1530
    result.read(self._iprot)
1531
    self._iprot.readMessageEnd()
3431 rajveer 1532
    if result.success is not None:
1899 vikas 1533
      return result.success
3431 rajveer 1534
    if result.utx is not None:
1899 vikas 1535
      raise result.utx
1536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1537
 
1845 vikas 1538
  def getMasterAffiliateById(self, id):
1539
    """
1540
    Parameters:
1541
     - id
1542
    """
1543
    self.send_getMasterAffiliateById(id)
1544
    return self.recv_getMasterAffiliateById()
1545
 
1546
  def send_getMasterAffiliateById(self, id):
1547
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1548
    args = getMasterAffiliateById_args()
1549
    args.id = id
1550
    args.write(self._oprot)
1551
    self._oprot.writeMessageEnd()
1552
    self._oprot.trans.flush()
1553
 
1554
  def recv_getMasterAffiliateById(self, ):
1555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1556
    if mtype == TMessageType.EXCEPTION:
1557
      x = TApplicationException()
1558
      x.read(self._iprot)
1559
      self._iprot.readMessageEnd()
1560
      raise x
1561
    result = getMasterAffiliateById_result()
1562
    result.read(self._iprot)
1563
    self._iprot.readMessageEnd()
3431 rajveer 1564
    if result.success is not None:
1845 vikas 1565
      return result.success
3431 rajveer 1566
    if result.utx is not None:
1845 vikas 1567
      raise result.utx
1568
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1569
 
1570
  def getMasterAffiliateByName(self, name):
1571
    """
1572
    Parameters:
1573
     - name
1574
    """
1575
    self.send_getMasterAffiliateByName(name)
1576
    return self.recv_getMasterAffiliateByName()
1577
 
1578
  def send_getMasterAffiliateByName(self, name):
1579
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1580
    args = getMasterAffiliateByName_args()
1581
    args.name = name
1582
    args.write(self._oprot)
1583
    self._oprot.writeMessageEnd()
1584
    self._oprot.trans.flush()
1585
 
1586
  def recv_getMasterAffiliateByName(self, ):
1587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1588
    if mtype == TMessageType.EXCEPTION:
1589
      x = TApplicationException()
1590
      x.read(self._iprot)
1591
      self._iprot.readMessageEnd()
1592
      raise x
1593
    result = getMasterAffiliateByName_result()
1594
    result.read(self._iprot)
1595
    self._iprot.readMessageEnd()
3431 rajveer 1596
    if result.success is not None:
1845 vikas 1597
      return result.success
3431 rajveer 1598
    if result.utx is not None:
1845 vikas 1599
      raise result.utx
1600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1601
 
1859 vikas 1602
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1603
    """
1604
    Parameters:
1605
     - name
1606
     - url
1607
     - masterAffiliateId
1859 vikas 1608
     - addedOn
1845 vikas 1609
    """
1859 vikas 1610
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1611
    return self.recv_createAffiliate()
1612
 
1859 vikas 1613
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1614
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1615
    args = createAffiliate_args()
1616
    args.name = name
1617
    args.url = url
1618
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1619
    args.addedOn = addedOn
1845 vikas 1620
    args.write(self._oprot)
1621
    self._oprot.writeMessageEnd()
1622
    self._oprot.trans.flush()
1623
 
1624
  def recv_createAffiliate(self, ):
1625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1626
    if mtype == TMessageType.EXCEPTION:
1627
      x = TApplicationException()
1628
      x.read(self._iprot)
1629
      self._iprot.readMessageEnd()
1630
      raise x
1631
    result = createAffiliate_result()
1632
    result.read(self._iprot)
1633
    self._iprot.readMessageEnd()
3431 rajveer 1634
    if result.success is not None:
1845 vikas 1635
      return result.success
3431 rajveer 1636
    if result.utx is not None:
1845 vikas 1637
      raise result.utx
1638
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1639
 
1640
  def getAffiliateById(self, id):
1641
    """
1642
    Parameters:
1643
     - id
1644
    """
1645
    self.send_getAffiliateById(id)
1646
    return self.recv_getAffiliateById()
1647
 
1648
  def send_getAffiliateById(self, id):
1649
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1650
    args = getAffiliateById_args()
1651
    args.id = id
1652
    args.write(self._oprot)
1653
    self._oprot.writeMessageEnd()
1654
    self._oprot.trans.flush()
1655
 
1656
  def recv_getAffiliateById(self, ):
1657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1658
    if mtype == TMessageType.EXCEPTION:
1659
      x = TApplicationException()
1660
      x.read(self._iprot)
1661
      self._iprot.readMessageEnd()
1662
      raise x
1663
    result = getAffiliateById_result()
1664
    result.read(self._iprot)
1665
    self._iprot.readMessageEnd()
3431 rajveer 1666
    if result.success is not None:
1845 vikas 1667
      return result.success
3431 rajveer 1668
    if result.utx is not None:
1845 vikas 1669
      raise result.utx
1670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1671
 
1672
  def getAffiliateByName(self, name):
1673
    """
1674
    Parameters:
1675
     - name
1676
    """
1677
    self.send_getAffiliateByName(name)
1678
    return self.recv_getAffiliateByName()
1679
 
1680
  def send_getAffiliateByName(self, name):
1681
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1682
    args = getAffiliateByName_args()
1683
    args.name = name
1684
    args.write(self._oprot)
1685
    self._oprot.writeMessageEnd()
1686
    self._oprot.trans.flush()
1687
 
1688
  def recv_getAffiliateByName(self, ):
1689
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1690
    if mtype == TMessageType.EXCEPTION:
1691
      x = TApplicationException()
1692
      x.read(self._iprot)
1693
      self._iprot.readMessageEnd()
1694
      raise x
1695
    result = getAffiliateByName_result()
1696
    result.read(self._iprot)
1697
    self._iprot.readMessageEnd()
3431 rajveer 1698
    if result.success is not None:
1845 vikas 1699
      return result.success
3431 rajveer 1700
    if result.utx is not None:
1845 vikas 1701
      raise result.utx
1702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1703
 
1996 vikas 1704
  def getTrackerById(self, id):
1845 vikas 1705
    """
1706
    Parameters:
1707
     - id
1708
    """
1996 vikas 1709
    self.send_getTrackerById(id)
1845 vikas 1710
    return self.recv_getTrackerById()
1711
 
1996 vikas 1712
  def send_getTrackerById(self, id):
1845 vikas 1713
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1714
    args = getTrackerById_args()
1996 vikas 1715
    args.id = id
1845 vikas 1716
    args.write(self._oprot)
1717
    self._oprot.writeMessageEnd()
1718
    self._oprot.trans.flush()
1719
 
1720
  def recv_getTrackerById(self, ):
1721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1722
    if mtype == TMessageType.EXCEPTION:
1723
      x = TApplicationException()
1724
      x.read(self._iprot)
1725
      self._iprot.readMessageEnd()
1726
      raise x
1727
    result = getTrackerById_result()
1728
    result.read(self._iprot)
1729
    self._iprot.readMessageEnd()
3431 rajveer 1730
    if result.success is not None:
1845 vikas 1731
      return result.success
3431 rajveer 1732
    if result.utx is not None:
1845 vikas 1733
      raise result.utx
1734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1735
 
1996 vikas 1736
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1737
    """
1738
    Parameters:
1996 vikas 1739
     - id
1845 vikas 1740
    """
1996 vikas 1741
    self.send_getAffiliatesByMasterAffiliate(id)
1742
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1743
 
1996 vikas 1744
  def send_getAffiliatesByMasterAffiliate(self, id):
1745
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1746
    args = getAffiliatesByMasterAffiliate_args()
1747
    args.id = id
1845 vikas 1748
    args.write(self._oprot)
1749
    self._oprot.writeMessageEnd()
1750
    self._oprot.trans.flush()
1751
 
1996 vikas 1752
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1754
    if mtype == TMessageType.EXCEPTION:
1755
      x = TApplicationException()
1756
      x.read(self._iprot)
1757
      self._iprot.readMessageEnd()
1758
      raise x
1996 vikas 1759
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1760
    result.read(self._iprot)
1761
    self._iprot.readMessageEnd()
3431 rajveer 1762
    if result.success is not None:
1845 vikas 1763
      return result.success
3431 rajveer 1764
    if result.utx is not None:
1845 vikas 1765
      raise result.utx
1996 vikas 1766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1767
 
1996 vikas 1768
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1769
    """
1770
    Parameters:
1996 vikas 1771
     - affiliateId
1845 vikas 1772
     - userId
1773
     - event
1774
     - url
1775
     - data
1859 vikas 1776
     - addedOn
1845 vikas 1777
    """
1996 vikas 1778
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1779
    return self.recv_addTrackLog()
1780
 
1996 vikas 1781
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1782
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1783
    args = addTrackLog_args()
1996 vikas 1784
    args.affiliateId = affiliateId
1845 vikas 1785
    args.userId = userId
1786
    args.event = event
1787
    args.url = url
1788
    args.data = data
1859 vikas 1789
    args.addedOn = addedOn
1845 vikas 1790
    args.write(self._oprot)
1791
    self._oprot.writeMessageEnd()
1792
    self._oprot.trans.flush()
1793
 
1794
  def recv_addTrackLog(self, ):
1795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1796
    if mtype == TMessageType.EXCEPTION:
1797
      x = TApplicationException()
1798
      x.read(self._iprot)
1799
      self._iprot.readMessageEnd()
1800
      raise x
1801
    result = addTrackLog_result()
1802
    result.read(self._iprot)
1803
    self._iprot.readMessageEnd()
3431 rajveer 1804
    if result.success is not None:
1845 vikas 1805
      return result.success
3431 rajveer 1806
    if result.utx is not None:
1845 vikas 1807
      raise result.utx
1808
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1809
 
1810
  def getTrackLogById(self, id):
1811
    """
1812
    Parameters:
1813
     - id
1814
    """
1815
    self.send_getTrackLogById(id)
1816
    return self.recv_getTrackLogById()
1817
 
1818
  def send_getTrackLogById(self, id):
1819
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1820
    args = getTrackLogById_args()
1821
    args.id = id
1822
    args.write(self._oprot)
1823
    self._oprot.writeMessageEnd()
1824
    self._oprot.trans.flush()
1825
 
1826
  def recv_getTrackLogById(self, ):
1827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1828
    if mtype == TMessageType.EXCEPTION:
1829
      x = TApplicationException()
1830
      x.read(self._iprot)
1831
      self._iprot.readMessageEnd()
1832
      raise x
1833
    result = getTrackLogById_result()
1834
    result.read(self._iprot)
1835
    self._iprot.readMessageEnd()
3431 rajveer 1836
    if result.success is not None:
1845 vikas 1837
      return result.success
3431 rajveer 1838
    if result.utx is not None:
1845 vikas 1839
      raise result.utx
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1841
 
3293 vikas 1842
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1843
    """
1844
    Parameters:
1996 vikas 1845
     - affiliateId
3293 vikas 1846
     - startDate
1847
     - endDate
1845 vikas 1848
    """
3293 vikas 1849
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1850
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1851
 
3293 vikas 1852
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1853
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1854
    args = getTrackLogsByAffiliate_args()
1855
    args.affiliateId = affiliateId
3293 vikas 1856
    args.startDate = startDate
1857
    args.endDate = endDate
1845 vikas 1858
    args.write(self._oprot)
1859
    self._oprot.writeMessageEnd()
1860
    self._oprot.trans.flush()
1861
 
1996 vikas 1862
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1864
    if mtype == TMessageType.EXCEPTION:
1865
      x = TApplicationException()
1866
      x.read(self._iprot)
1867
      self._iprot.readMessageEnd()
1868
      raise x
1996 vikas 1869
    result = getTrackLogsByAffiliate_result()
1845 vikas 1870
    result.read(self._iprot)
1871
    self._iprot.readMessageEnd()
3431 rajveer 1872
    if result.success is not None:
1845 vikas 1873
      return result.success
3431 rajveer 1874
    if result.utx is not None:
1845 vikas 1875
      raise result.utx
1996 vikas 1876
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1877
 
1878
  def getTrackLogsByUser(self, userId):
1879
    """
1880
    Parameters:
1881
     - userId
1882
    """
1883
    self.send_getTrackLogsByUser(userId)
1884
    return self.recv_getTrackLogsByUser()
1885
 
1886
  def send_getTrackLogsByUser(self, userId):
1887
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1888
    args = getTrackLogsByUser_args()
1889
    args.userId = userId
1890
    args.write(self._oprot)
1891
    self._oprot.writeMessageEnd()
1892
    self._oprot.trans.flush()
1893
 
1894
  def recv_getTrackLogsByUser(self, ):
1895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1896
    if mtype == TMessageType.EXCEPTION:
1897
      x = TApplicationException()
1898
      x.read(self._iprot)
1899
      self._iprot.readMessageEnd()
1900
      raise x
1901
    result = getTrackLogsByUser_result()
1902
    result.read(self._iprot)
1903
    self._iprot.readMessageEnd()
3431 rajveer 1904
    if result.success is not None:
1845 vikas 1905
      return result.success
3431 rajveer 1906
    if result.utx is not None:
1845 vikas 1907
      raise result.utx
1908
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1909
 
1996 vikas 1910
  def getTrackLogs(self, userId, event, url):
1845 vikas 1911
    """
1912
    Parameters:
1913
     - userId
1914
     - event
1915
     - url
1916
    """
1996 vikas 1917
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1918
    return self.recv_getTrackLogs()
1919
 
1996 vikas 1920
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1921
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1922
    args = getTrackLogs_args()
1923
    args.userId = userId
1924
    args.event = event
1925
    args.url = url
1926
    args.write(self._oprot)
1927
    self._oprot.writeMessageEnd()
1928
    self._oprot.trans.flush()
1929
 
1930
  def recv_getTrackLogs(self, ):
1931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1932
    if mtype == TMessageType.EXCEPTION:
1933
      x = TApplicationException()
1934
      x.read(self._iprot)
1935
      self._iprot.readMessageEnd()
1936
      raise x
1937
    result = getTrackLogs_result()
1938
    result.read(self._iprot)
1939
    self._iprot.readMessageEnd()
3431 rajveer 1940
    if result.success is not None:
1845 vikas 1941
      return result.success
3431 rajveer 1942
    if result.utx is not None:
1845 vikas 1943
      raise result.utx
1944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1945
 
559 chandransh 1946
  def getCurrentCart(self, userId):
94 ashish 1947
    """
1948
    Parameters:
559 chandransh 1949
     - userId
94 ashish 1950
    """
559 chandransh 1951
    self.send_getCurrentCart(userId)
1952
    return self.recv_getCurrentCart()
94 ashish 1953
 
559 chandransh 1954
  def send_getCurrentCart(self, userId):
1955
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1956
    args = getCurrentCart_args()
1957
    args.userId = userId
94 ashish 1958
    args.write(self._oprot)
1959
    self._oprot.writeMessageEnd()
1960
    self._oprot.trans.flush()
1961
 
559 chandransh 1962
  def recv_getCurrentCart(self, ):
94 ashish 1963
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1964
    if mtype == TMessageType.EXCEPTION:
1965
      x = TApplicationException()
1966
      x.read(self._iprot)
1967
      self._iprot.readMessageEnd()
1968
      raise x
559 chandransh 1969
    result = getCurrentCart_result()
94 ashish 1970
    result.read(self._iprot)
1971
    self._iprot.readMessageEnd()
3431 rajveer 1972
    if result.success is not None:
94 ashish 1973
      return result.success
3431 rajveer 1974
    if result.scx is not None:
559 chandransh 1975
      raise result.scx
1976
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1977
 
559 chandransh 1978
  def getCart(self, cartId):
94 ashish 1979
    """
1980
    Parameters:
559 chandransh 1981
     - cartId
94 ashish 1982
    """
559 chandransh 1983
    self.send_getCart(cartId)
1984
    return self.recv_getCart()
94 ashish 1985
 
559 chandransh 1986
  def send_getCart(self, cartId):
1987
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1988
    args = getCart_args()
1989
    args.cartId = cartId
94 ashish 1990
    args.write(self._oprot)
1991
    self._oprot.writeMessageEnd()
1992
    self._oprot.trans.flush()
1993
 
559 chandransh 1994
  def recv_getCart(self, ):
94 ashish 1995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1996
    if mtype == TMessageType.EXCEPTION:
1997
      x = TApplicationException()
1998
      x.read(self._iprot)
1999
      self._iprot.readMessageEnd()
2000
      raise x
559 chandransh 2001
    result = getCart_result()
94 ashish 2002
    result.read(self._iprot)
2003
    self._iprot.readMessageEnd()
3431 rajveer 2004
    if result.success is not None:
94 ashish 2005
      return result.success
3431 rajveer 2006
    if result.scx is not None:
559 chandransh 2007
      raise result.scx
2008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2009
 
559 chandransh 2010
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2011
    """
2012
    Parameters:
559 chandransh 2013
     - from_time
2014
     - to_time
2015
     - status
94 ashish 2016
    """
559 chandransh 2017
    self.send_getCartsByTime(from_time, to_time, status)
2018
    return self.recv_getCartsByTime()
94 ashish 2019
 
559 chandransh 2020
  def send_getCartsByTime(self, from_time, to_time, status):
2021
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2022
    args = getCartsByTime_args()
2023
    args.from_time = from_time
2024
    args.to_time = to_time
2025
    args.status = status
94 ashish 2026
    args.write(self._oprot)
2027
    self._oprot.writeMessageEnd()
2028
    self._oprot.trans.flush()
2029
 
559 chandransh 2030
  def recv_getCartsByTime(self, ):
94 ashish 2031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2032
    if mtype == TMessageType.EXCEPTION:
2033
      x = TApplicationException()
2034
      x.read(self._iprot)
2035
      self._iprot.readMessageEnd()
2036
      raise x
559 chandransh 2037
    result = getCartsByTime_result()
94 ashish 2038
    result.read(self._iprot)
2039
    self._iprot.readMessageEnd()
3431 rajveer 2040
    if result.success is not None:
94 ashish 2041
      return result.success
3431 rajveer 2042
    if result.scx is not None:
559 chandransh 2043
      raise result.scx
2044
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2045
 
3557 rajveer 2046
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2047
    """
2048
    Parameters:
2049
     - cartId
2050
     - itemId
2051
     - quantity
3557 rajveer 2052
     - sourceId
559 chandransh 2053
    """
3557 rajveer 2054
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2055
    return self.recv_addItemToCart()
559 chandransh 2056
 
3557 rajveer 2057
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2058
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2059
    args = addItemToCart_args()
2060
    args.cartId = cartId
2061
    args.itemId = itemId
2062
    args.quantity = quantity
3557 rajveer 2063
    args.sourceId = sourceId
559 chandransh 2064
    args.write(self._oprot)
2065
    self._oprot.writeMessageEnd()
2066
    self._oprot.trans.flush()
2067
 
2068
  def recv_addItemToCart(self, ):
2069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2070
    if mtype == TMessageType.EXCEPTION:
2071
      x = TApplicationException()
2072
      x.read(self._iprot)
2073
      self._iprot.readMessageEnd()
2074
      raise x
2075
    result = addItemToCart_result()
2076
    result.read(self._iprot)
2077
    self._iprot.readMessageEnd()
3431 rajveer 2078
    if result.success is not None:
2035 rajveer 2079
      return result.success
3431 rajveer 2080
    if result.scx is not None:
559 chandransh 2081
      raise result.scx
2035 rajveer 2082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2083
 
2084
  def deleteItemFromCart(self, cartId, itemId):
2085
    """
2086
    Parameters:
2087
     - cartId
2088
     - itemId
2089
    """
2090
    self.send_deleteItemFromCart(cartId, itemId)
2091
    self.recv_deleteItemFromCart()
2092
 
2093
  def send_deleteItemFromCart(self, cartId, itemId):
2094
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2095
    args = deleteItemFromCart_args()
2096
    args.cartId = cartId
2097
    args.itemId = itemId
2098
    args.write(self._oprot)
2099
    self._oprot.writeMessageEnd()
2100
    self._oprot.trans.flush()
2101
 
2102
  def recv_deleteItemFromCart(self, ):
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
2109
    result = deleteItemFromCart_result()
2110
    result.read(self._iprot)
2111
    self._iprot.readMessageEnd()
3431 rajveer 2112
    if result.scx is not None:
559 chandransh 2113
      raise result.scx
2114
    return
2115
 
2116
  def addAddressToCart(self, cartId, addressId):
2117
    """
2118
    Parameters:
2119
     - cartId
2120
     - addressId
2121
    """
2122
    self.send_addAddressToCart(cartId, addressId)
2123
    self.recv_addAddressToCart()
2124
 
2125
  def send_addAddressToCart(self, cartId, addressId):
2126
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2127
    args = addAddressToCart_args()
2128
    args.cartId = cartId
2129
    args.addressId = addressId
2130
    args.write(self._oprot)
2131
    self._oprot.writeMessageEnd()
2132
    self._oprot.trans.flush()
2133
 
2134
  def recv_addAddressToCart(self, ):
2135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2136
    if mtype == TMessageType.EXCEPTION:
2137
      x = TApplicationException()
2138
      x.read(self._iprot)
2139
      self._iprot.readMessageEnd()
2140
      raise x
2141
    result = addAddressToCart_result()
2142
    result.read(self._iprot)
2143
    self._iprot.readMessageEnd()
3431 rajveer 2144
    if result.scx is not None:
575 chandransh 2145
      raise result.scx
559 chandransh 2146
    return
2147
 
5553 rajveer 2148
  def addStoreToCart(self, cartId, storeId):
2149
    """
2150
    Parameters:
2151
     - cartId
2152
     - storeId
2153
    """
2154
    self.send_addStoreToCart(cartId, storeId)
2155
    self.recv_addStoreToCart()
2156
 
2157
  def send_addStoreToCart(self, cartId, storeId):
2158
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2159
    args = addStoreToCart_args()
2160
    args.cartId = cartId
2161
    args.storeId = storeId
2162
    args.write(self._oprot)
2163
    self._oprot.writeMessageEnd()
2164
    self._oprot.trans.flush()
2165
 
2166
  def recv_addStoreToCart(self, ):
2167
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2168
    if mtype == TMessageType.EXCEPTION:
2169
      x = TApplicationException()
2170
      x.read(self._iprot)
2171
      self._iprot.readMessageEnd()
2172
      raise x
2173
    result = addStoreToCart_result()
2174
    result.read(self._iprot)
2175
    self._iprot.readMessageEnd()
2176
    if result.scx is not None:
2177
      raise result.scx
2178
    return
2179
 
6922 anupam.sin 2180
  def applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2181
    """
2182
    Parameters:
6922 anupam.sin 2183
     - cart
1976 varun.gupt 2184
     - couponCode
2185
    """
6922 anupam.sin 2186
    self.send_applyCouponToCart(cart, couponCode)
1976 varun.gupt 2187
    self.recv_applyCouponToCart()
2188
 
6922 anupam.sin 2189
  def send_applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2190
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2191
    args = applyCouponToCart_args()
6922 anupam.sin 2192
    args.cart = cart
1976 varun.gupt 2193
    args.couponCode = couponCode
2194
    args.write(self._oprot)
2195
    self._oprot.writeMessageEnd()
2196
    self._oprot.trans.flush()
2197
 
2198
  def recv_applyCouponToCart(self, ):
2199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2200
    if mtype == TMessageType.EXCEPTION:
2201
      x = TApplicationException()
2202
      x.read(self._iprot)
2203
      self._iprot.readMessageEnd()
2204
      raise x
2205
    result = applyCouponToCart_result()
2206
    result.read(self._iprot)
2207
    self._iprot.readMessageEnd()
3431 rajveer 2208
    if result.scx is not None:
1976 varun.gupt 2209
      raise result.scx
2210
    return
2211
 
2212
  def removeCoupon(self, cartId):
2213
    """
2214
    Parameters:
2215
     - cartId
2216
    """
2217
    self.send_removeCoupon(cartId)
2218
    self.recv_removeCoupon()
2219
 
2220
  def send_removeCoupon(self, cartId):
2221
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2222
    args = removeCoupon_args()
2223
    args.cartId = cartId
2224
    args.write(self._oprot)
2225
    self._oprot.writeMessageEnd()
2226
    self._oprot.trans.flush()
2227
 
2228
  def recv_removeCoupon(self, ):
2229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2230
    if mtype == TMessageType.EXCEPTION:
2231
      x = TApplicationException()
2232
      x.read(self._iprot)
2233
      self._iprot.readMessageEnd()
2234
      raise x
2235
    result = removeCoupon_result()
2236
    result.read(self._iprot)
2237
    self._iprot.readMessageEnd()
3431 rajveer 2238
    if result.scx is not None:
1976 varun.gupt 2239
      raise result.scx
2240
    return
2241
 
3554 varun.gupt 2242
  def deleteDiscountsFromCart(self, cartId):
2243
    """
2244
    Deletes all the discounts associated with the cart
2245
 
2246
    Parameters:
2247
     - cartId
2248
    """
2249
    self.send_deleteDiscountsFromCart(cartId)
2250
    self.recv_deleteDiscountsFromCart()
2251
 
2252
  def send_deleteDiscountsFromCart(self, cartId):
2253
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2254
    args = deleteDiscountsFromCart_args()
2255
    args.cartId = cartId
2256
    args.write(self._oprot)
2257
    self._oprot.writeMessageEnd()
2258
    self._oprot.trans.flush()
2259
 
2260
  def recv_deleteDiscountsFromCart(self, ):
2261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2262
    if mtype == TMessageType.EXCEPTION:
2263
      x = TApplicationException()
2264
      x.read(self._iprot)
2265
      self._iprot.readMessageEnd()
2266
      raise x
2267
    result = deleteDiscountsFromCart_result()
2268
    result.read(self._iprot)
2269
    self._iprot.readMessageEnd()
2270
    if result.scx is not None:
2271
      raise result.scx
2272
    return
2273
 
2274
  def saveDiscounts(self, discounts):
2275
    """
2276
    Accepts a list of thrift objects of Discount type and saves them
2277
 
2278
    Parameters:
2279
     - discounts
2280
    """
2281
    self.send_saveDiscounts(discounts)
2282
    self.recv_saveDiscounts()
2283
 
2284
  def send_saveDiscounts(self, discounts):
2285
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2286
    args = saveDiscounts_args()
2287
    args.discounts = discounts
2288
    args.write(self._oprot)
2289
    self._oprot.writeMessageEnd()
2290
    self._oprot.trans.flush()
2291
 
2292
  def recv_saveDiscounts(self, ):
2293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2294
    if mtype == TMessageType.EXCEPTION:
2295
      x = TApplicationException()
2296
      x.read(self._iprot)
2297
      self._iprot.readMessageEnd()
2298
      raise x
2299
    result = saveDiscounts_result()
2300
    result.read(self._iprot)
2301
    self._iprot.readMessageEnd()
2302
    if result.scx is not None:
2303
      raise result.scx
2304
    return
2305
 
6389 rajveer 2306
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 2307
    """
690 chandransh 2308
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2309
 
559 chandransh 2310
    Parameters:
2311
     - cartId
2815 vikas 2312
     - sessionSource
2313
     - sessionStartTime
3858 vikas 2314
     - firstSource
2315
     - firstSourceTime
5326 rajveer 2316
     - userId
6389 rajveer 2317
     - schemeId
559 chandransh 2318
    """
6389 rajveer 2319
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId)
690 chandransh 2320
    return self.recv_createOrders()
559 chandransh 2321
 
6389 rajveer 2322
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
690 chandransh 2323
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2324
    args = createOrders_args()
559 chandransh 2325
    args.cartId = cartId
2815 vikas 2326
    args.sessionSource = sessionSource
2327
    args.sessionStartTime = sessionStartTime
3858 vikas 2328
    args.firstSource = firstSource
2329
    args.firstSourceTime = firstSourceTime
5326 rajveer 2330
    args.userId = userId
6389 rajveer 2331
    args.schemeId = schemeId
559 chandransh 2332
    args.write(self._oprot)
2333
    self._oprot.writeMessageEnd()
2334
    self._oprot.trans.flush()
2335
 
690 chandransh 2336
  def recv_createOrders(self, ):
559 chandransh 2337
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2338
    if mtype == TMessageType.EXCEPTION:
2339
      x = TApplicationException()
2340
      x.read(self._iprot)
2341
      self._iprot.readMessageEnd()
2342
      raise x
690 chandransh 2343
    result = createOrders_result()
559 chandransh 2344
    result.read(self._iprot)
2345
    self._iprot.readMessageEnd()
3431 rajveer 2346
    if result.success is not None:
130 ashish 2347
      return result.success
3431 rajveer 2348
    if result.scx is not None:
559 chandransh 2349
      raise result.scx
690 chandransh 2350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2351
 
3557 rajveer 2352
  def validateCart(self, cartId, sourceId):
130 ashish 2353
    """
690 chandransh 2354
    Validates that:
2355
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2356
    2. All of the lines in the cart are active items.
690 chandransh 2357
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2358
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2359
 
130 ashish 2360
    Parameters:
559 chandransh 2361
     - cartId
3557 rajveer 2362
     - sourceId
130 ashish 2363
    """
3557 rajveer 2364
    self.send_validateCart(cartId, sourceId)
559 chandransh 2365
    return self.recv_validateCart()
130 ashish 2366
 
3557 rajveer 2367
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2368
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2369
    args = validateCart_args()
2370
    args.cartId = cartId
3557 rajveer 2371
    args.sourceId = sourceId
130 ashish 2372
    args.write(self._oprot)
2373
    self._oprot.writeMessageEnd()
2374
    self._oprot.trans.flush()
2375
 
559 chandransh 2376
  def recv_validateCart(self, ):
130 ashish 2377
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2378
    if mtype == TMessageType.EXCEPTION:
2379
      x = TApplicationException()
2380
      x.read(self._iprot)
2381
      self._iprot.readMessageEnd()
2382
      raise x
559 chandransh 2383
    result = validateCart_result()
130 ashish 2384
    result.read(self._iprot)
2385
    self._iprot.readMessageEnd()
3431 rajveer 2386
    if result.success is not None:
130 ashish 2387
      return result.success
3431 rajveer 2388
    if result.scex is not None:
575 chandransh 2389
      raise result.scex
559 chandransh 2390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2391
 
690 chandransh 2392
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2393
    """
690 chandransh 2394
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2395
 
575 chandransh 2396
    Parameters:
690 chandransh 2397
     - fromCartId
2398
     - toCartId
2399
    """
2400
    self.send_mergeCart(fromCartId, toCartId)
2401
    self.recv_mergeCart()
2402
 
2403
  def send_mergeCart(self, fromCartId, toCartId):
2404
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2405
    args = mergeCart_args()
2406
    args.fromCartId = fromCartId
2407
    args.toCartId = toCartId
2408
    args.write(self._oprot)
2409
    self._oprot.writeMessageEnd()
2410
    self._oprot.trans.flush()
2411
 
2412
  def recv_mergeCart(self, ):
2413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2414
    if mtype == TMessageType.EXCEPTION:
2415
      x = TApplicationException()
2416
      x.read(self._iprot)
2417
      self._iprot.readMessageEnd()
2418
      raise x
2419
    result = mergeCart_result()
2420
    result.read(self._iprot)
2421
    self._iprot.readMessageEnd()
2422
    return
2423
 
2424
  def checkOut(self, cartId):
2425
    """
2426
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2427
 
690 chandransh 2428
    Parameters:
575 chandransh 2429
     - cartId
2430
    """
690 chandransh 2431
    self.send_checkOut(cartId)
2432
    return self.recv_checkOut()
575 chandransh 2433
 
690 chandransh 2434
  def send_checkOut(self, cartId):
2435
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2436
    args = checkOut_args()
575 chandransh 2437
    args.cartId = cartId
2438
    args.write(self._oprot)
2439
    self._oprot.writeMessageEnd()
2440
    self._oprot.trans.flush()
2441
 
690 chandransh 2442
  def recv_checkOut(self, ):
575 chandransh 2443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2444
    if mtype == TMessageType.EXCEPTION:
2445
      x = TApplicationException()
2446
      x.read(self._iprot)
2447
      self._iprot.readMessageEnd()
2448
      raise x
690 chandransh 2449
    result = checkOut_result()
575 chandransh 2450
    result.read(self._iprot)
2451
    self._iprot.readMessageEnd()
3431 rajveer 2452
    if result.success is not None:
575 chandransh 2453
      return result.success
3431 rajveer 2454
    if result.scex is not None:
575 chandransh 2455
      raise result.scex
690 chandransh 2456
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2457
 
690 chandransh 2458
  def resetCart(self, cartId, items):
559 chandransh 2459
    """
690 chandransh 2460
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2461
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2462
 
559 chandransh 2463
    Parameters:
690 chandransh 2464
     - cartId
2465
     - items
559 chandransh 2466
    """
690 chandransh 2467
    self.send_resetCart(cartId, items)
2468
    return self.recv_resetCart()
130 ashish 2469
 
690 chandransh 2470
  def send_resetCart(self, cartId, items):
2471
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2472
    args = resetCart_args()
2473
    args.cartId = cartId
2474
    args.items = items
559 chandransh 2475
    args.write(self._oprot)
2476
    self._oprot.writeMessageEnd()
2477
    self._oprot.trans.flush()
2478
 
690 chandransh 2479
  def recv_resetCart(self, ):
559 chandransh 2480
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2481
    if mtype == TMessageType.EXCEPTION:
2482
      x = TApplicationException()
2483
      x.read(self._iprot)
2484
      self._iprot.readMessageEnd()
2485
      raise x
690 chandransh 2486
    result = resetCart_result()
559 chandransh 2487
    result.read(self._iprot)
2488
    self._iprot.readMessageEnd()
3431 rajveer 2489
    if result.success is not None:
690 chandransh 2490
      return result.success
3431 rajveer 2491
    if result.scex is not None:
690 chandransh 2492
      raise result.scex
2493
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2494
 
2981 rajveer 2495
  def getUserCount(self, userType):
559 chandransh 2496
    """
2981 rajveer 2497
    Returns number of registered users.
2498
    If userType = null, then it returns count of all users, including anonymous
2499
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2500
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2501
 
559 chandransh 2502
    Parameters:
2981 rajveer 2503
     - userType
559 chandransh 2504
    """
2981 rajveer 2505
    self.send_getUserCount(userType)
2506
    return self.recv_getUserCount()
559 chandransh 2507
 
2981 rajveer 2508
  def send_getUserCount(self, userType):
2509
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2510
    args = getUserCount_args()
2511
    args.userType = userType
559 chandransh 2512
    args.write(self._oprot)
2513
    self._oprot.writeMessageEnd()
2514
    self._oprot.trans.flush()
2515
 
2981 rajveer 2516
  def recv_getUserCount(self, ):
559 chandransh 2517
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2518
    if mtype == TMessageType.EXCEPTION:
2519
      x = TApplicationException()
2520
      x.read(self._iprot)
2521
      self._iprot.readMessageEnd()
2522
      raise x
2981 rajveer 2523
    result = getUserCount_result()
559 chandransh 2524
    result.read(self._iprot)
2525
    self._iprot.readMessageEnd()
3431 rajveer 2526
    if result.success is not None:
559 chandransh 2527
      return result.success
2981 rajveer 2528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2529
 
2981 rajveer 2530
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2531
    """
2981 rajveer 2532
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2533
    If any of startDate or endDate is -1, then that filter is ignored.
2534
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2535
 
2536
 
559 chandransh 2537
    Parameters:
2981 rajveer 2538
     - userType
2539
     - startDate
2540
     - endDate
559 chandransh 2541
    """
2981 rajveer 2542
    self.send_getAllUsers(userType, startDate, endDate)
2543
    return self.recv_getAllUsers()
559 chandransh 2544
 
2981 rajveer 2545
  def send_getAllUsers(self, userType, startDate, endDate):
2546
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2547
    args = getAllUsers_args()
2548
    args.userType = userType
2549
    args.startDate = startDate
2550
    args.endDate = endDate
559 chandransh 2551
    args.write(self._oprot)
2552
    self._oprot.writeMessageEnd()
2553
    self._oprot.trans.flush()
2554
 
2981 rajveer 2555
  def recv_getAllUsers(self, ):
559 chandransh 2556
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2557
    if mtype == TMessageType.EXCEPTION:
2558
      x = TApplicationException()
2559
      x.read(self._iprot)
2560
      self._iprot.readMessageEnd()
2561
      raise x
2981 rajveer 2562
    result = getAllUsers_result()
559 chandransh 2563
    result.read(self._iprot)
2564
    self._iprot.readMessageEnd()
3431 rajveer 2565
    if result.success is not None:
559 chandransh 2566
      return result.success
2981 rajveer 2567
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2568
 
2981 rajveer 2569
  def getMyResearchItems(self, userId):
559 chandransh 2570
    """
2981 rajveer 2571
    Returns list of item ids in myresearch for the user
3431 rajveer 2572
 
559 chandransh 2573
    Parameters:
772 rajveer 2574
     - userId
559 chandransh 2575
    """
2981 rajveer 2576
    self.send_getMyResearchItems(userId)
2577
    return self.recv_getMyResearchItems()
559 chandransh 2578
 
2981 rajveer 2579
  def send_getMyResearchItems(self, userId):
2580
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2581
    args = getMyResearchItems_args()
772 rajveer 2582
    args.userId = userId
559 chandransh 2583
    args.write(self._oprot)
2584
    self._oprot.writeMessageEnd()
2585
    self._oprot.trans.flush()
2586
 
2981 rajveer 2587
  def recv_getMyResearchItems(self, ):
559 chandransh 2588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2589
    if mtype == TMessageType.EXCEPTION:
2590
      x = TApplicationException()
2591
      x.read(self._iprot)
2592
      self._iprot.readMessageEnd()
2593
      raise x
2981 rajveer 2594
    result = getMyResearchItems_result()
559 chandransh 2595
    result.read(self._iprot)
2596
    self._iprot.readMessageEnd()
3431 rajveer 2597
    if result.success is not None:
559 chandransh 2598
      return result.success
3431 rajveer 2599
    if result.scx is not None:
559 chandransh 2600
      raise result.scx
2981 rajveer 2601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2602
 
2981 rajveer 2603
  def updateMyResearch(self, userId, itemId):
559 chandransh 2604
    """
2981 rajveer 2605
    add item to my research for a user
3431 rajveer 2606
 
559 chandransh 2607
    Parameters:
2981 rajveer 2608
     - userId
2609
     - itemId
559 chandransh 2610
    """
2981 rajveer 2611
    self.send_updateMyResearch(userId, itemId)
2612
    return self.recv_updateMyResearch()
559 chandransh 2613
 
2981 rajveer 2614
  def send_updateMyResearch(self, userId, itemId):
2615
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2616
    args = updateMyResearch_args()
2617
    args.userId = userId
2618
    args.itemId = itemId
559 chandransh 2619
    args.write(self._oprot)
2620
    self._oprot.writeMessageEnd()
2621
    self._oprot.trans.flush()
2622
 
2981 rajveer 2623
  def recv_updateMyResearch(self, ):
559 chandransh 2624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2625
    if mtype == TMessageType.EXCEPTION:
2626
      x = TApplicationException()
2627
      x.read(self._iprot)
2628
      self._iprot.readMessageEnd()
2629
      raise x
2981 rajveer 2630
    result = updateMyResearch_result()
559 chandransh 2631
    result.read(self._iprot)
2632
    self._iprot.readMessageEnd()
3431 rajveer 2633
    if result.success is not None:
2981 rajveer 2634
      return result.success
3431 rajveer 2635
    if result.scx is not None:
2981 rajveer 2636
      raise result.scx
2637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2638
 
2981 rajveer 2639
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2640
    """
2981 rajveer 2641
    delete item from my research for a user
3431 rajveer 2642
 
1596 ankur.sing 2643
    Parameters:
2981 rajveer 2644
     - userId
2645
     - itemId
1596 ankur.sing 2646
    """
2981 rajveer 2647
    self.send_deleteItemFromMyResearch(userId, itemId)
2648
    self.recv_deleteItemFromMyResearch()
559 chandransh 2649
 
2981 rajveer 2650
  def send_deleteItemFromMyResearch(self, userId, itemId):
2651
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2652
    args = deleteItemFromMyResearch_args()
2653
    args.userId = userId
2654
    args.itemId = itemId
1596 ankur.sing 2655
    args.write(self._oprot)
2656
    self._oprot.writeMessageEnd()
2657
    self._oprot.trans.flush()
2658
 
2981 rajveer 2659
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2660
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2661
    if mtype == TMessageType.EXCEPTION:
2662
      x = TApplicationException()
2663
      x.read(self._iprot)
2664
      self._iprot.readMessageEnd()
2665
      raise x
2981 rajveer 2666
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2667
    result.read(self._iprot)
2668
    self._iprot.readMessageEnd()
3431 rajveer 2669
    if result.scx is not None:
2981 rajveer 2670
      raise result.scx
2671
    return
1596 ankur.sing 2672
 
2981 rajveer 2673
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2674
    """
2981 rajveer 2675
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2676
 
1673 ankur.sing 2677
    Parameters:
2981 rajveer 2678
     - userId
1673 ankur.sing 2679
    """
2981 rajveer 2680
    self.send_getBrowseHistoryItems(userId)
2681
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2682
 
2981 rajveer 2683
  def send_getBrowseHistoryItems(self, userId):
2684
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2685
    args = getBrowseHistoryItems_args()
2686
    args.userId = userId
1673 ankur.sing 2687
    args.write(self._oprot)
2688
    self._oprot.writeMessageEnd()
2689
    self._oprot.trans.flush()
2690
 
2981 rajveer 2691
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2692
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2693
    if mtype == TMessageType.EXCEPTION:
2694
      x = TApplicationException()
2695
      x.read(self._iprot)
2696
      self._iprot.readMessageEnd()
2697
      raise x
2981 rajveer 2698
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2699
    result.read(self._iprot)
2700
    self._iprot.readMessageEnd()
3431 rajveer 2701
    if result.success is not None:
1673 ankur.sing 2702
      return result.success
3431 rajveer 2703
    if result.scx is not None:
2981 rajveer 2704
      raise result.scx
2705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2706
 
2981 rajveer 2707
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2708
    """
2981 rajveer 2709
    add item to browse history for a user
3431 rajveer 2710
 
2642 varun.gupt 2711
    Parameters:
2981 rajveer 2712
     - userId
2713
     - itemId
2642 varun.gupt 2714
    """
2981 rajveer 2715
    self.send_updateBrowseHistory(userId, itemId)
2716
    self.recv_updateBrowseHistory()
1673 ankur.sing 2717
 
2981 rajveer 2718
  def send_updateBrowseHistory(self, userId, itemId):
2719
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2720
    args = updateBrowseHistory_args()
2721
    args.userId = userId
2722
    args.itemId = itemId
2642 varun.gupt 2723
    args.write(self._oprot)
2724
    self._oprot.writeMessageEnd()
2725
    self._oprot.trans.flush()
2726
 
2981 rajveer 2727
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2728
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2729
    if mtype == TMessageType.EXCEPTION:
2730
      x = TApplicationException()
2731
      x.read(self._iprot)
2732
      self._iprot.readMessageEnd()
2733
      raise x
2981 rajveer 2734
    result = updateBrowseHistory_result()
2642 varun.gupt 2735
    result.read(self._iprot)
2736
    self._iprot.readMessageEnd()
2737
    return
2738
 
3385 varun.gupt 2739
  def getCartsWithCouponCount(self, couponCode):
2740
    """
2741
    Returns count of Carts with given coupon applied
3431 rajveer 2742
 
3385 varun.gupt 2743
    Parameters:
2744
     - couponCode
2745
    """
2746
    self.send_getCartsWithCouponCount(couponCode)
2747
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2748
 
3385 varun.gupt 2749
  def send_getCartsWithCouponCount(self, couponCode):
2750
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2751
    args = getCartsWithCouponCount_args()
2752
    args.couponCode = couponCode
2753
    args.write(self._oprot)
2754
    self._oprot.writeMessageEnd()
2755
    self._oprot.trans.flush()
2756
 
2757
  def recv_getCartsWithCouponCount(self, ):
2758
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2759
    if mtype == TMessageType.EXCEPTION:
2760
      x = TApplicationException()
2761
      x.read(self._iprot)
2762
      self._iprot.readMessageEnd()
2763
      raise x
2764
    result = getCartsWithCouponCount_result()
2765
    result.read(self._iprot)
2766
    self._iprot.readMessageEnd()
3431 rajveer 2767
    if result.success is not None:
3385 varun.gupt 2768
      return result.success
2769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2770
 
3499 mandeep.dh 2771
  def increaseTrustLevel(self, userId, trustLevelDelta):
2772
    """
2773
    Updates COD trust level of a user
3385 varun.gupt 2774
 
3499 mandeep.dh 2775
    Parameters:
2776
     - userId
2777
     - trustLevelDelta
2778
    """
2779
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2780
 
2781
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2782
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2783
    args = increaseTrustLevel_args()
2784
    args.userId = userId
2785
    args.trustLevelDelta = trustLevelDelta
2786
    args.write(self._oprot)
2787
    self._oprot.writeMessageEnd()
2788
    self._oprot.trans.flush()
5407 amar.kumar 2789
  def getTrustLevel(self, userId):
2790
    """
2791
    Get trust level of a user
2792
 
2793
    Parameters:
2794
     - userId
2795
    """
2796
    self.send_getTrustLevel(userId)
2797
    return self.recv_getTrustLevel()
2798
 
2799
  def send_getTrustLevel(self, userId):
2800
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2801
    args = getTrustLevel_args()
2802
    args.userId = userId
2803
    args.write(self._oprot)
2804
    self._oprot.writeMessageEnd()
2805
    self._oprot.trans.flush()
2806
 
2807
  def recv_getTrustLevel(self, ):
2808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2809
    if mtype == TMessageType.EXCEPTION:
2810
      x = TApplicationException()
2811
      x.read(self._iprot)
2812
      self._iprot.readMessageEnd()
2813
      raise x
2814
    result = getTrustLevel_result()
2815
    result.read(self._iprot)
2816
    self._iprot.readMessageEnd()
2817
    if result.success is not None:
2818
      return result.success
2819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2820
 
4668 varun.gupt 2821
  def showCODOption(self, cartId, sourceId, pincode):
2822
    """
2823
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2824
 
4668 varun.gupt 2825
    Parameters:
2826
     - cartId
2827
     - sourceId
2828
     - pincode
2829
    """
2830
    self.send_showCODOption(cartId, sourceId, pincode)
2831
    return self.recv_showCODOption()
2832
 
2833
  def send_showCODOption(self, cartId, sourceId, pincode):
2834
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2835
    args = showCODOption_args()
2836
    args.cartId = cartId
2837
    args.sourceId = sourceId
2838
    args.pincode = pincode
2839
    args.write(self._oprot)
2840
    self._oprot.writeMessageEnd()
2841
    self._oprot.trans.flush()
2842
 
2843
  def recv_showCODOption(self, ):
2844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2845
    if mtype == TMessageType.EXCEPTION:
2846
      x = TApplicationException()
2847
      x.read(self._iprot)
2848
      self._iprot.readMessageEnd()
2849
      raise x
2850
    result = showCODOption_result()
2851
    result.read(self._iprot)
2852
    self._iprot.readMessageEnd()
2853
    if result.success is not None:
2854
      return result.success
2855
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2856
 
5623 anupam.sin 2857
  def getUserEmails(self, startDate, endDate):
2858
    """
2859
    Get email addresses for users activated within a given date range
4668 varun.gupt 2860
 
5623 anupam.sin 2861
    Parameters:
2862
     - startDate
2863
     - endDate
2864
    """
2865
    self.send_getUserEmails(startDate, endDate)
2866
    return self.recv_getUserEmails()
2867
 
2868
  def send_getUserEmails(self, startDate, endDate):
2869
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2870
    args = getUserEmails_args()
2871
    args.startDate = startDate
2872
    args.endDate = endDate
2873
    args.write(self._oprot)
2874
    self._oprot.writeMessageEnd()
2875
    self._oprot.trans.flush()
2876
 
2877
  def recv_getUserEmails(self, ):
2878
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2879
    if mtype == TMessageType.EXCEPTION:
2880
      x = TApplicationException()
2881
      x.read(self._iprot)
2882
      self._iprot.readMessageEnd()
2883
      raise x
2884
    result = getUserEmails_result()
2885
    result.read(self._iprot)
2886
    self._iprot.readMessageEnd()
2887
    if result.success is not None:
2888
      return result.success
2889
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2890
 
9299 kshitij.so 2891
  def insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 2892
    """
2893
    Mark a cart lineitem as insured. Returns true/false.
2894
 
2895
    Parameters:
2896
     - itemId
2897
     - cartId
2898
     - toInsure
9299 kshitij.so 2899
     - insurerType
6903 anupam.sin 2900
    """
9299 kshitij.so 2901
    self.send_insureItem(itemId, cartId, toInsure, insurerType)
6903 anupam.sin 2902
    return self.recv_insureItem()
2903
 
9299 kshitij.so 2904
  def send_insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 2905
    self._oprot.writeMessageBegin('insureItem', TMessageType.CALL, self._seqid)
2906
    args = insureItem_args()
2907
    args.itemId = itemId
2908
    args.cartId = cartId
2909
    args.toInsure = toInsure
9299 kshitij.so 2910
    args.insurerType = insurerType
6903 anupam.sin 2911
    args.write(self._oprot)
2912
    self._oprot.writeMessageEnd()
2913
    self._oprot.trans.flush()
2914
 
2915
  def recv_insureItem(self, ):
2916
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2917
    if mtype == TMessageType.EXCEPTION:
2918
      x = TApplicationException()
2919
      x.read(self._iprot)
2920
      self._iprot.readMessageEnd()
2921
      raise x
2922
    result = insureItem_result()
2923
    result.read(self._iprot)
2924
    self._iprot.readMessageEnd()
2925
    if result.success is not None:
2926
      return result.success
2927
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insureItem failed: unknown result");
2928
 
2929
  def cancelInsurance(self, cartId):
2930
    """
2931
    Cancel insurance for all items in the cart
2932
 
2933
    Parameters:
2934
     - cartId
2935
    """
2936
    self.send_cancelInsurance(cartId)
2937
    return self.recv_cancelInsurance()
2938
 
2939
  def send_cancelInsurance(self, cartId):
2940
    self._oprot.writeMessageBegin('cancelInsurance', TMessageType.CALL, self._seqid)
2941
    args = cancelInsurance_args()
2942
    args.cartId = cartId
2943
    args.write(self._oprot)
2944
    self._oprot.writeMessageEnd()
2945
    self._oprot.trans.flush()
2946
 
2947
  def recv_cancelInsurance(self, ):
2948
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2949
    if mtype == TMessageType.EXCEPTION:
2950
      x = TApplicationException()
2951
      x.read(self._iprot)
2952
      self._iprot.readMessageEnd()
2953
      raise x
2954
    result = cancelInsurance_result()
2955
    result.read(self._iprot)
2956
    self._iprot.readMessageEnd()
2957
    if result.success is not None:
2958
      return result.success
2959
    raise TApplicationException(TApplicationException.MISSING_RESULT, "cancelInsurance failed: unknown result");
2960
 
2961
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2962
    """
2963
    Stores insurance specific details like date of birth and guardianName
2964
 
2965
    Parameters:
2966
     - addressId
2967
     - dob
2968
     - guardianName
2969
    """
2970
    self.send_storeInsuranceSpecificDetails(addressId, dob, guardianName)
2971
    return self.recv_storeInsuranceSpecificDetails()
2972
 
2973
  def send_storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2974
    self._oprot.writeMessageBegin('storeInsuranceSpecificDetails', TMessageType.CALL, self._seqid)
2975
    args = storeInsuranceSpecificDetails_args()
2976
    args.addressId = addressId
2977
    args.dob = dob
2978
    args.guardianName = guardianName
2979
    args.write(self._oprot)
2980
    self._oprot.writeMessageEnd()
2981
    self._oprot.trans.flush()
2982
 
2983
  def recv_storeInsuranceSpecificDetails(self, ):
2984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2985
    if mtype == TMessageType.EXCEPTION:
2986
      x = TApplicationException()
2987
      x.read(self._iprot)
2988
      self._iprot.readMessageEnd()
2989
      raise x
2990
    result = storeInsuranceSpecificDetails_result()
2991
    result.read(self._iprot)
2992
    self._iprot.readMessageEnd()
2993
    if result.success is not None:
2994
      return result.success
2995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "storeInsuranceSpecificDetails failed: unknown result");
2996
 
2997
  def isInsuranceDetailPresent(self, addressId):
2998
    """
2999
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
3000
 
3001
    Parameters:
3002
     - addressId
3003
    """
3004
    self.send_isInsuranceDetailPresent(addressId)
3005
    return self.recv_isInsuranceDetailPresent()
3006
 
3007
  def send_isInsuranceDetailPresent(self, addressId):
3008
    self._oprot.writeMessageBegin('isInsuranceDetailPresent', TMessageType.CALL, self._seqid)
3009
    args = isInsuranceDetailPresent_args()
3010
    args.addressId = addressId
3011
    args.write(self._oprot)
3012
    self._oprot.writeMessageEnd()
3013
    self._oprot.trans.flush()
3014
 
3015
  def recv_isInsuranceDetailPresent(self, ):
3016
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3017
    if mtype == TMessageType.EXCEPTION:
3018
      x = TApplicationException()
3019
      x.read(self._iprot)
3020
      self._iprot.readMessageEnd()
3021
      raise x
3022
    result = isInsuranceDetailPresent_result()
3023
    result.read(self._iprot)
3024
    self._iprot.readMessageEnd()
3025
    if result.success is not None:
3026
      return result.success
3027
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
3028
 
6821 amar.kumar 3029
  def isProductAddedToCart(self, itemId, startDate, endDate):
3030
    """
3031
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 3032
 
6821 amar.kumar 3033
    Parameters:
3034
     - itemId
3035
     - startDate
3036
     - endDate
3037
    """
3038
    self.send_isProductAddedToCart(itemId, startDate, endDate)
3039
    return self.recv_isProductAddedToCart()
3040
 
3041
  def send_isProductAddedToCart(self, itemId, startDate, endDate):
3042
    self._oprot.writeMessageBegin('isProductAddedToCart', TMessageType.CALL, self._seqid)
3043
    args = isProductAddedToCart_args()
3044
    args.itemId = itemId
3045
    args.startDate = startDate
3046
    args.endDate = endDate
3047
    args.write(self._oprot)
3048
    self._oprot.writeMessageEnd()
3049
    self._oprot.trans.flush()
3050
 
3051
  def recv_isProductAddedToCart(self, ):
3052
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3053
    if mtype == TMessageType.EXCEPTION:
3054
      x = TApplicationException()
3055
      x.read(self._iprot)
3056
      self._iprot.readMessageEnd()
3057
      raise x
3058
    result = isProductAddedToCart_result()
3059
    result.read(self._iprot)
3060
    self._iprot.readMessageEnd()
3061
    if result.success is not None:
3062
      return result.success
3063
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isProductAddedToCart failed: unknown result");
3064
 
3065
 
3376 rajveer 3066
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 3067
  def __init__(self, handler):
3376 rajveer 3068
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 3069
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3070
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 3071
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 3072
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 3073
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 3074
    self._processMap["createUser"] = Processor.process_createUser
3075
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 3076
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3077
    self._processMap["userExists"] = Processor.process_userExists
3078
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3079
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3080
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3081
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3082
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3083
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3084
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3085
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3086
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3087
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3088
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3089
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3090
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3091
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3092
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 3093
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 3094
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3095
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3096
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3097
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3098
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3099
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3100
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3101
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3102
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3103
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3104
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3105
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3106
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3107
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3108
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3109
    self._processMap["getCart"] = Processor.process_getCart
3110
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3111
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3112
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3113
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 3114
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 3115
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3116
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3117
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3118
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3119
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3120
    self._processMap["validateCart"] = Processor.process_validateCart
3121
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3122
    self._processMap["checkOut"] = Processor.process_checkOut
3123
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3124
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3125
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2981 rajveer 3126
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3127
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3128
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3129
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3130
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3131
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3132
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 3133
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 3134
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 3135
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
6903 anupam.sin 3136
    self._processMap["insureItem"] = Processor.process_insureItem
3137
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3138
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3139
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
6821 amar.kumar 3140
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
94 ashish 3141
 
3142
  def process(self, iprot, oprot):
3143
    (name, type, seqid) = iprot.readMessageBegin()
3144
    if name not in self._processMap:
3145
      iprot.skip(TType.STRUCT)
3146
      iprot.readMessageEnd()
3147
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3148
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3149
      x.write(oprot)
3150
      oprot.writeMessageEnd()
3151
      oprot.trans.flush()
3152
      return
3153
    else:
3154
      self._processMap[name](self, seqid, iprot, oprot)
3155
    return True
3156
 
559 chandransh 3157
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3158
    args = createAnonymousUser_args()
94 ashish 3159
    args.read(iprot)
3160
    iprot.readMessageEnd()
559 chandransh 3161
    result = createAnonymousUser_result()
94 ashish 3162
    try:
559 chandransh 3163
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3164
    except UserContextException, ucex:
3165
      result.ucex = ucex
3166
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3167
    result.write(oprot)
3168
    oprot.writeMessageEnd()
3169
    oprot.trans.flush()
3170
 
559 chandransh 3171
  def process_getUserById(self, seqid, iprot, oprot):
3172
    args = getUserById_args()
94 ashish 3173
    args.read(iprot)
3174
    iprot.readMessageEnd()
559 chandransh 3175
    result = getUserById_result()
94 ashish 3176
    try:
559 chandransh 3177
      result.success = self._handler.getUserById(args.userId)
3178
    except UserContextException, ucex:
3179
      result.ucex = ucex
3180
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3181
    result.write(oprot)
3182
    oprot.writeMessageEnd()
3183
    oprot.trans.flush()
3184
 
5326 rajveer 3185
  def process_getUserByCartId(self, seqid, iprot, oprot):
3186
    args = getUserByCartId_args()
3187
    args.read(iprot)
3188
    iprot.readMessageEnd()
3189
    result = getUserByCartId_result()
3190
    try:
3191
      result.success = self._handler.getUserByCartId(args.cartId)
3192
    except UserContextException, ucex:
3193
      result.ucex = ucex
3194
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3195
    result.write(oprot)
3196
    oprot.writeMessageEnd()
3197
    oprot.trans.flush()
3198
 
1491 vikas 3199
  def process_getUserByEmail(self, seqid, iprot, oprot):
3200
    args = getUserByEmail_args()
3201
    args.read(iprot)
3202
    iprot.readMessageEnd()
3203
    result = getUserByEmail_result()
3204
    try:
3205
      result.success = self._handler.getUserByEmail(args.email)
3206
    except UserContextException, ucex:
3207
      result.ucex = ucex
3208
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3209
    result.write(oprot)
3210
    oprot.writeMessageEnd()
3211
    oprot.trans.flush()
3212
 
3032 mandeep.dh 3213
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3214
    args = getUserByMobileNumber_args()
3215
    args.read(iprot)
3216
    iprot.readMessageEnd()
3217
    result = getUserByMobileNumber_result()
3218
    try:
3219
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3220
    except UserContextException, ucex:
3221
      result.ucex = ucex
3222
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3223
    result.write(oprot)
3224
    oprot.writeMessageEnd()
3225
    oprot.trans.flush()
3226
 
559 chandransh 3227
  def process_createUser(self, seqid, iprot, oprot):
3228
    args = createUser_args()
94 ashish 3229
    args.read(iprot)
3230
    iprot.readMessageEnd()
559 chandransh 3231
    result = createUser_result()
94 ashish 3232
    try:
559 chandransh 3233
      result.success = self._handler.createUser(args.user)
3234
    except UserContextException, ucex:
3235
      result.ucex = ucex
3236
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3237
    result.write(oprot)
3238
    oprot.writeMessageEnd()
3239
    oprot.trans.flush()
3240
 
559 chandransh 3241
  def process_updateUser(self, seqid, iprot, oprot):
3242
    args = updateUser_args()
94 ashish 3243
    args.read(iprot)
3244
    iprot.readMessageEnd()
559 chandransh 3245
    result = updateUser_result()
94 ashish 3246
    try:
559 chandransh 3247
      result.success = self._handler.updateUser(args.user)
3248
    except UserContextException, ucex:
3249
      result.ucex = ucex
3250
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3251
    result.write(oprot)
3252
    oprot.writeMessageEnd()
3253
    oprot.trans.flush()
3254
 
122 ashish 3255
  def process_authenticateUser(self, seqid, iprot, oprot):
3256
    args = authenticateUser_args()
3257
    args.read(iprot)
3258
    iprot.readMessageEnd()
3259
    result = authenticateUser_result()
3260
    try:
559 chandransh 3261
      result.success = self._handler.authenticateUser(args.email, args.password)
3262
    except AuthenticationException, auex:
3263
      result.auex = auex
122 ashish 3264
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3265
    result.write(oprot)
3266
    oprot.writeMessageEnd()
3267
    oprot.trans.flush()
3268
 
94 ashish 3269
  def process_userExists(self, seqid, iprot, oprot):
3270
    args = userExists_args()
3271
    args.read(iprot)
3272
    iprot.readMessageEnd()
3273
    result = userExists_result()
3274
    try:
3275
      result.success = self._handler.userExists(args.email)
3276
    except UserContextException, ucx:
3277
      result.ucx = ucx
3278
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3279
    result.write(oprot)
3280
    oprot.writeMessageEnd()
3281
    oprot.trans.flush()
3282
 
3283
  def process_addAddressForUser(self, seqid, iprot, oprot):
3284
    args = addAddressForUser_args()
3285
    args.read(iprot)
3286
    iprot.readMessageEnd()
3287
    result = addAddressForUser_result()
3288
    try:
567 rajveer 3289
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3290
    except UserContextException, ucx:
3291
      result.ucx = ucx
3292
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3293
    result.write(oprot)
3294
    oprot.writeMessageEnd()
3295
    oprot.trans.flush()
3296
 
3297
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3298
    args = removeAddressForUser_args()
3299
    args.read(iprot)
3300
    iprot.readMessageEnd()
3301
    result = removeAddressForUser_result()
3302
    try:
3303
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3304
    except UserContextException, ucx:
3305
      result.ucx = ucx
3306
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3307
    result.write(oprot)
3308
    oprot.writeMessageEnd()
3309
    oprot.trans.flush()
3310
 
3311
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3312
    args = setUserAsLoggedIn_args()
3313
    args.read(iprot)
3314
    iprot.readMessageEnd()
3315
    result = setUserAsLoggedIn_result()
3316
    try:
3317
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3318
    except UserContextException, ucx:
3319
      result.ucx = ucx
3320
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3321
    result.write(oprot)
3322
    oprot.writeMessageEnd()
3323
    oprot.trans.flush()
3324
 
3325
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3326
    args = setUserAsLoggedOut_args()
3327
    args.read(iprot)
3328
    iprot.readMessageEnd()
3329
    result = setUserAsLoggedOut_result()
3330
    try:
3331
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3332
    except UserContextException, ucx:
3333
      result.ucx = ucx
3334
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3335
    result.write(oprot)
3336
    oprot.writeMessageEnd()
3337
    oprot.trans.flush()
3338
 
504 rajveer 3339
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3340
    args = setDefaultAddress_args()
3341
    args.read(iprot)
3342
    iprot.readMessageEnd()
3343
    result = setDefaultAddress_result()
3344
    try:
3345
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3346
    except UserContextException, ucx:
3347
      result.ucx = ucx
3348
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3349
    result.write(oprot)
3350
    oprot.writeMessageEnd()
3351
    oprot.trans.flush()
3352
 
94 ashish 3353
  def process_updatePassword(self, seqid, iprot, oprot):
3354
    args = updatePassword_args()
3355
    args.read(iprot)
3356
    iprot.readMessageEnd()
3357
    result = updatePassword_result()
3358
    try:
594 rajveer 3359
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3360
    except UserContextException, ucx:
3361
      result.ucx = ucx
3362
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3363
    result.write(oprot)
3364
    oprot.writeMessageEnd()
3365
    oprot.trans.flush()
3366
 
581 rajveer 3367
  def process_forgotPassword(self, seqid, iprot, oprot):
3368
    args = forgotPassword_args()
3369
    args.read(iprot)
3370
    iprot.readMessageEnd()
3371
    result = forgotPassword_result()
3372
    try:
884 rajveer 3373
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3374
    except UserContextException, ucx:
3375
      result.ucx = ucx
3376
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
594 rajveer 3381
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3382
    args = getAllAddressesForUser_args()
3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
3385
    result = getAllAddressesForUser_result()
3386
    try:
3387
      result.success = self._handler.getAllAddressesForUser(args.userId)
3388
    except UserContextException, ucx:
3389
      result.ucx = ucx
3390
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3391
    result.write(oprot)
3392
    oprot.writeMessageEnd()
3393
    oprot.trans.flush()
3394
 
1894 vikas 3395
  def process_getAddressById(self, seqid, iprot, oprot):
3396
    args = getAddressById_args()
3397
    args.read(iprot)
3398
    iprot.readMessageEnd()
3399
    result = getAddressById_result()
3400
    try:
3401
      result.success = self._handler.getAddressById(args.addressId)
3402
    except UserContextException, ucx:
3403
      result.ucx = ucx
3404
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3405
    result.write(oprot)
3406
    oprot.writeMessageEnd()
3407
    oprot.trans.flush()
3408
 
594 rajveer 3409
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3410
    args = getDefaultAddressId_args()
3411
    args.read(iprot)
3412
    iprot.readMessageEnd()
3413
    result = getDefaultAddressId_result()
3414
    try:
3415
      result.success = self._handler.getDefaultAddressId(args.userId)
3416
    except UserContextException, ucx:
3417
      result.ucx = ucx
3418
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3419
    result.write(oprot)
3420
    oprot.writeMessageEnd()
3421
    oprot.trans.flush()
3422
 
785 rajveer 3423
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3424
    args = getDefaultPincode_args()
3425
    args.read(iprot)
3426
    iprot.readMessageEnd()
3427
    result = getDefaultPincode_result()
3428
    try:
3429
      result.success = self._handler.getDefaultPincode(args.userId)
3430
    except UserContextException, ucx:
3431
      result.ucx = ucx
3432
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3433
    result.write(oprot)
3434
    oprot.writeMessageEnd()
3435
    oprot.trans.flush()
3436
 
1274 varun.gupt 3437
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3438
    args = saveUserCommunication_args()
3439
    args.read(iprot)
3440
    iprot.readMessageEnd()
3441
    result = saveUserCommunication_result()
3442
    try:
3443
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3444
    except UserCommunicationException, ucx:
3445
      result.ucx = ucx
3446
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3447
    result.write(oprot)
3448
    oprot.writeMessageEnd()
3449
    oprot.trans.flush()
3450
 
1590 varun.gupt 3451
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3452
    args = getUserCommunicationById_args()
3453
    args.read(iprot)
3454
    iprot.readMessageEnd()
3455
    result = getUserCommunicationById_result()
3456
    try:
3457
      result.success = self._handler.getUserCommunicationById(args.id)
3458
    except UserCommunicationException, ucx:
3459
      result.ucx = ucx
3460
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3461
    result.write(oprot)
3462
    oprot.writeMessageEnd()
3463
    oprot.trans.flush()
3464
 
3465
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3466
    args = getUserCommunicationByUser_args()
3467
    args.read(iprot)
3468
    iprot.readMessageEnd()
3469
    result = getUserCommunicationByUser_result()
3470
    try:
3471
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3472
    except UserCommunicationException, ucx:
3473
      result.ucx = ucx
3474
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3475
    result.write(oprot)
3476
    oprot.writeMessageEnd()
3477
    oprot.trans.flush()
3478
 
3479
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3480
    args = getAllUserCommunications_args()
3481
    args.read(iprot)
3482
    iprot.readMessageEnd()
3483
    result = getAllUserCommunications_result()
3484
    try:
3485
      result.success = self._handler.getAllUserCommunications()
3486
    except UserCommunicationException, ucx:
3487
      result.ucx = ucx
3488
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3489
    result.write(oprot)
3490
    oprot.writeMessageEnd()
3491
    oprot.trans.flush()
3492
 
5407 amar.kumar 3493
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3494
    args = removeUserCommunication_args()
3495
    args.read(iprot)
3496
    iprot.readMessageEnd()
3497
    result = removeUserCommunication_result()
3498
    try:
3499
      self._handler.removeUserCommunication(args.id)
3500
    except UserCommunicationException, ucx:
3501
      result.ucx = ucx
3502
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
1845 vikas 3507
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3508
    args = createMasterAffiliate_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = createMasterAffiliate_result()
3512
    try:
1859 vikas 3513
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3514
    except UserAffiliateException, utx:
1845 vikas 3515
      result.utx = utx
3516
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3517
    result.write(oprot)
3518
    oprot.writeMessageEnd()
3519
    oprot.trans.flush()
3520
 
1899 vikas 3521
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3522
    args = getAllMasterAffiliates_args()
3523
    args.read(iprot)
3524
    iprot.readMessageEnd()
3525
    result = getAllMasterAffiliates_result()
3526
    try:
3527
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3528
    except UserAffiliateException, utx:
1899 vikas 3529
      result.utx = utx
3530
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3531
    result.write(oprot)
3532
    oprot.writeMessageEnd()
3533
    oprot.trans.flush()
3534
 
1845 vikas 3535
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3536
    args = getMasterAffiliateById_args()
3537
    args.read(iprot)
3538
    iprot.readMessageEnd()
3539
    result = getMasterAffiliateById_result()
3540
    try:
3541
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3542
    except UserAffiliateException, utx:
1845 vikas 3543
      result.utx = utx
3544
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3545
    result.write(oprot)
3546
    oprot.writeMessageEnd()
3547
    oprot.trans.flush()
3548
 
3549
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3550
    args = getMasterAffiliateByName_args()
3551
    args.read(iprot)
3552
    iprot.readMessageEnd()
3553
    result = getMasterAffiliateByName_result()
3554
    try:
3555
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3556
    except UserAffiliateException, utx:
1845 vikas 3557
      result.utx = utx
3558
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3559
    result.write(oprot)
3560
    oprot.writeMessageEnd()
3561
    oprot.trans.flush()
3562
 
3563
  def process_createAffiliate(self, seqid, iprot, oprot):
3564
    args = createAffiliate_args()
3565
    args.read(iprot)
3566
    iprot.readMessageEnd()
3567
    result = createAffiliate_result()
3568
    try:
1859 vikas 3569
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3570
    except UserAffiliateException, utx:
1845 vikas 3571
      result.utx = utx
3572
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3573
    result.write(oprot)
3574
    oprot.writeMessageEnd()
3575
    oprot.trans.flush()
3576
 
3577
  def process_getAffiliateById(self, seqid, iprot, oprot):
3578
    args = getAffiliateById_args()
3579
    args.read(iprot)
3580
    iprot.readMessageEnd()
3581
    result = getAffiliateById_result()
3582
    try:
3583
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3584
    except UserAffiliateException, utx:
1845 vikas 3585
      result.utx = utx
3586
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3587
    result.write(oprot)
3588
    oprot.writeMessageEnd()
3589
    oprot.trans.flush()
3590
 
3591
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3592
    args = getAffiliateByName_args()
3593
    args.read(iprot)
3594
    iprot.readMessageEnd()
3595
    result = getAffiliateByName_result()
3596
    try:
3597
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3598
    except UserAffiliateException, utx:
1845 vikas 3599
      result.utx = utx
3600
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_getTrackerById(self, seqid, iprot, oprot):
3606
    args = getTrackerById_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = getTrackerById_result()
3610
    try:
1996 vikas 3611
      result.success = self._handler.getTrackerById(args.id)
3612
    except UserAffiliateException, utx:
1845 vikas 3613
      result.utx = utx
3614
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3615
    result.write(oprot)
3616
    oprot.writeMessageEnd()
3617
    oprot.trans.flush()
3618
 
1996 vikas 3619
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3620
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3621
    args.read(iprot)
3622
    iprot.readMessageEnd()
1996 vikas 3623
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3624
    try:
1996 vikas 3625
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3626
    except UserAffiliateException, utx:
1845 vikas 3627
      result.utx = utx
1996 vikas 3628
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3629
    result.write(oprot)
3630
    oprot.writeMessageEnd()
3631
    oprot.trans.flush()
3632
 
3633
  def process_addTrackLog(self, seqid, iprot, oprot):
3634
    args = addTrackLog_args()
3635
    args.read(iprot)
3636
    iprot.readMessageEnd()
3637
    result = addTrackLog_result()
3638
    try:
1996 vikas 3639
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3640
    except UserAffiliateException, utx:
1845 vikas 3641
      result.utx = utx
3642
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3643
    result.write(oprot)
3644
    oprot.writeMessageEnd()
3645
    oprot.trans.flush()
3646
 
3647
  def process_getTrackLogById(self, seqid, iprot, oprot):
3648
    args = getTrackLogById_args()
3649
    args.read(iprot)
3650
    iprot.readMessageEnd()
3651
    result = getTrackLogById_result()
3652
    try:
3653
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3654
    except UserAffiliateException, utx:
1845 vikas 3655
      result.utx = utx
3656
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3657
    result.write(oprot)
3658
    oprot.writeMessageEnd()
3659
    oprot.trans.flush()
3660
 
1996 vikas 3661
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3662
    args = getTrackLogsByAffiliate_args()
1845 vikas 3663
    args.read(iprot)
3664
    iprot.readMessageEnd()
1996 vikas 3665
    result = getTrackLogsByAffiliate_result()
1845 vikas 3666
    try:
3293 vikas 3667
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3668
    except UserAffiliateException, utx:
1845 vikas 3669
      result.utx = utx
1996 vikas 3670
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
3674
 
3675
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3676
    args = getTrackLogsByUser_args()
3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
3679
    result = getTrackLogsByUser_result()
3680
    try:
3681
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3682
    except UserAffiliateException, utx:
1845 vikas 3683
      result.utx = utx
3684
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_getTrackLogs(self, seqid, iprot, oprot):
3690
    args = getTrackLogs_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = getTrackLogs_result()
3694
    try:
1996 vikas 3695
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3696
    except UserAffiliateException, utx:
1845 vikas 3697
      result.utx = utx
3698
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3699
    result.write(oprot)
3700
    oprot.writeMessageEnd()
3701
    oprot.trans.flush()
3702
 
559 chandransh 3703
  def process_getCurrentCart(self, seqid, iprot, oprot):
3704
    args = getCurrentCart_args()
94 ashish 3705
    args.read(iprot)
3706
    iprot.readMessageEnd()
559 chandransh 3707
    result = getCurrentCart_result()
94 ashish 3708
    try:
559 chandransh 3709
      result.success = self._handler.getCurrentCart(args.userId)
3710
    except ShoppingCartException, scx:
3711
      result.scx = scx
3712
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3713
    result.write(oprot)
3714
    oprot.writeMessageEnd()
3715
    oprot.trans.flush()
3716
 
559 chandransh 3717
  def process_getCart(self, seqid, iprot, oprot):
3718
    args = getCart_args()
94 ashish 3719
    args.read(iprot)
3720
    iprot.readMessageEnd()
559 chandransh 3721
    result = getCart_result()
94 ashish 3722
    try:
559 chandransh 3723
      result.success = self._handler.getCart(args.cartId)
3724
    except ShoppingCartException, scx:
3725
      result.scx = scx
3726
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3727
    result.write(oprot)
3728
    oprot.writeMessageEnd()
3729
    oprot.trans.flush()
3730
 
559 chandransh 3731
  def process_getCartsByTime(self, seqid, iprot, oprot):
3732
    args = getCartsByTime_args()
94 ashish 3733
    args.read(iprot)
3734
    iprot.readMessageEnd()
559 chandransh 3735
    result = getCartsByTime_result()
94 ashish 3736
    try:
559 chandransh 3737
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3738
    except ShoppingCartException, scx:
3739
      result.scx = scx
3740
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3741
    result.write(oprot)
3742
    oprot.writeMessageEnd()
3743
    oprot.trans.flush()
3744
 
559 chandransh 3745
  def process_addItemToCart(self, seqid, iprot, oprot):
3746
    args = addItemToCart_args()
130 ashish 3747
    args.read(iprot)
3748
    iprot.readMessageEnd()
559 chandransh 3749
    result = addItemToCart_result()
130 ashish 3750
    try:
3557 rajveer 3751
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3752
    except ShoppingCartException, scx:
3753
      result.scx = scx
3754
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3755
    result.write(oprot)
3756
    oprot.writeMessageEnd()
3757
    oprot.trans.flush()
3758
 
559 chandransh 3759
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3760
    args = deleteItemFromCart_args()
3761
    args.read(iprot)
3762
    iprot.readMessageEnd()
3763
    result = deleteItemFromCart_result()
3764
    try:
3765
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3766
    except ShoppingCartException, scx:
3767
      result.scx = scx
3768
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3769
    result.write(oprot)
3770
    oprot.writeMessageEnd()
3771
    oprot.trans.flush()
130 ashish 3772
 
559 chandransh 3773
  def process_addAddressToCart(self, seqid, iprot, oprot):
3774
    args = addAddressToCart_args()
3775
    args.read(iprot)
3776
    iprot.readMessageEnd()
3777
    result = addAddressToCart_result()
575 chandransh 3778
    try:
3779
      self._handler.addAddressToCart(args.cartId, args.addressId)
3780
    except ShoppingCartException, scx:
3781
      result.scx = scx
559 chandransh 3782
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3783
    result.write(oprot)
3784
    oprot.writeMessageEnd()
3785
    oprot.trans.flush()
3786
 
5553 rajveer 3787
  def process_addStoreToCart(self, seqid, iprot, oprot):
3788
    args = addStoreToCart_args()
3789
    args.read(iprot)
3790
    iprot.readMessageEnd()
3791
    result = addStoreToCart_result()
3792
    try:
3793
      self._handler.addStoreToCart(args.cartId, args.storeId)
3794
    except ShoppingCartException, scx:
3795
      result.scx = scx
3796
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3797
    result.write(oprot)
3798
    oprot.writeMessageEnd()
3799
    oprot.trans.flush()
3800
 
1976 varun.gupt 3801
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3802
    args = applyCouponToCart_args()
3803
    args.read(iprot)
3804
    iprot.readMessageEnd()
3805
    result = applyCouponToCart_result()
3806
    try:
6922 anupam.sin 3807
      self._handler.applyCouponToCart(args.cart, args.couponCode)
1976 varun.gupt 3808
    except ShoppingCartException, scx:
3809
      result.scx = scx
3810
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3811
    result.write(oprot)
3812
    oprot.writeMessageEnd()
3813
    oprot.trans.flush()
3814
 
3815
  def process_removeCoupon(self, seqid, iprot, oprot):
3816
    args = removeCoupon_args()
3817
    args.read(iprot)
3818
    iprot.readMessageEnd()
3819
    result = removeCoupon_result()
3820
    try:
3821
      self._handler.removeCoupon(args.cartId)
3822
    except ShoppingCartException, scx:
3823
      result.scx = scx
3824
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3825
    result.write(oprot)
3826
    oprot.writeMessageEnd()
3827
    oprot.trans.flush()
3828
 
3554 varun.gupt 3829
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3830
    args = deleteDiscountsFromCart_args()
3831
    args.read(iprot)
3832
    iprot.readMessageEnd()
3833
    result = deleteDiscountsFromCart_result()
3834
    try:
3835
      self._handler.deleteDiscountsFromCart(args.cartId)
3836
    except ShoppingCartException, scx:
3837
      result.scx = scx
3838
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3839
    result.write(oprot)
3840
    oprot.writeMessageEnd()
3841
    oprot.trans.flush()
3842
 
3843
  def process_saveDiscounts(self, seqid, iprot, oprot):
3844
    args = saveDiscounts_args()
3845
    args.read(iprot)
3846
    iprot.readMessageEnd()
3847
    result = saveDiscounts_result()
3848
    try:
3849
      self._handler.saveDiscounts(args.discounts)
3850
    except ShoppingCartException, scx:
3851
      result.scx = scx
3852
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3853
    result.write(oprot)
3854
    oprot.writeMessageEnd()
3855
    oprot.trans.flush()
3856
 
690 chandransh 3857
  def process_createOrders(self, seqid, iprot, oprot):
3858
    args = createOrders_args()
559 chandransh 3859
    args.read(iprot)
3860
    iprot.readMessageEnd()
690 chandransh 3861
    result = createOrders_result()
559 chandransh 3862
    try:
6389 rajveer 3863
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId)
559 chandransh 3864
    except ShoppingCartException, scx:
3865
      result.scx = scx
690 chandransh 3866
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3867
    result.write(oprot)
3868
    oprot.writeMessageEnd()
3869
    oprot.trans.flush()
3870
 
3871
  def process_validateCart(self, seqid, iprot, oprot):
3872
    args = validateCart_args()
3873
    args.read(iprot)
3874
    iprot.readMessageEnd()
3875
    result = validateCart_result()
575 chandransh 3876
    try:
3557 rajveer 3877
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3878
    except ShoppingCartException, scex:
3879
      result.scex = scex
559 chandransh 3880
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3881
    result.write(oprot)
3882
    oprot.writeMessageEnd()
3883
    oprot.trans.flush()
3884
 
690 chandransh 3885
  def process_mergeCart(self, seqid, iprot, oprot):
3886
    args = mergeCart_args()
575 chandransh 3887
    args.read(iprot)
3888
    iprot.readMessageEnd()
690 chandransh 3889
    result = mergeCart_result()
3890
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3891
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3892
    result.write(oprot)
3893
    oprot.writeMessageEnd()
3894
    oprot.trans.flush()
3895
 
3896
  def process_checkOut(self, seqid, iprot, oprot):
3897
    args = checkOut_args()
3898
    args.read(iprot)
3899
    iprot.readMessageEnd()
3900
    result = checkOut_result()
575 chandransh 3901
    try:
690 chandransh 3902
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3903
    except ShoppingCartException, scex:
3904
      result.scex = scex
690 chandransh 3905
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3906
    result.write(oprot)
3907
    oprot.writeMessageEnd()
3908
    oprot.trans.flush()
3909
 
690 chandransh 3910
  def process_resetCart(self, seqid, iprot, oprot):
3911
    args = resetCart_args()
559 chandransh 3912
    args.read(iprot)
3913
    iprot.readMessageEnd()
690 chandransh 3914
    result = resetCart_result()
3915
    try:
3916
      result.success = self._handler.resetCart(args.cartId, args.items)
3917
    except ShoppingCartException, scex:
3918
      result.scex = scex
3919
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3920
    result.write(oprot)
3921
    oprot.writeMessageEnd()
3922
    oprot.trans.flush()
3923
 
2981 rajveer 3924
  def process_getUserCount(self, seqid, iprot, oprot):
3925
    args = getUserCount_args()
559 chandransh 3926
    args.read(iprot)
3927
    iprot.readMessageEnd()
2981 rajveer 3928
    result = getUserCount_result()
3929
    result.success = self._handler.getUserCount(args.userType)
3930
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3931
    result.write(oprot)
3932
    oprot.writeMessageEnd()
3933
    oprot.trans.flush()
3934
 
2981 rajveer 3935
  def process_getAllUsers(self, seqid, iprot, oprot):
3936
    args = getAllUsers_args()
559 chandransh 3937
    args.read(iprot)
3938
    iprot.readMessageEnd()
2981 rajveer 3939
    result = getAllUsers_result()
3940
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3941
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3942
    result.write(oprot)
3943
    oprot.writeMessageEnd()
3944
    oprot.trans.flush()
3945
 
2981 rajveer 3946
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3947
    args = getMyResearchItems_args()
559 chandransh 3948
    args.read(iprot)
3949
    iprot.readMessageEnd()
2981 rajveer 3950
    result = getMyResearchItems_result()
559 chandransh 3951
    try:
2981 rajveer 3952
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3953
    except WidgetException, scx:
3954
      result.scx = scx
2981 rajveer 3955
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3956
    result.write(oprot)
3957
    oprot.writeMessageEnd()
3958
    oprot.trans.flush()
3959
 
2981 rajveer 3960
  def process_updateMyResearch(self, seqid, iprot, oprot):
3961
    args = updateMyResearch_args()
772 rajveer 3962
    args.read(iprot)
3963
    iprot.readMessageEnd()
2981 rajveer 3964
    result = updateMyResearch_result()
3965
    try:
3966
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3967
    except WidgetException, scx:
3968
      result.scx = scx
3969
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3970
    result.write(oprot)
3971
    oprot.writeMessageEnd()
3972
    oprot.trans.flush()
559 chandransh 3973
 
2981 rajveer 3974
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3975
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3976
    args.read(iprot)
3977
    iprot.readMessageEnd()
2981 rajveer 3978
    result = deleteItemFromMyResearch_result()
3979
    try:
3980
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3981
    except WidgetException, scx:
3982
      result.scx = scx
3983
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3984
    result.write(oprot)
3985
    oprot.writeMessageEnd()
3986
    oprot.trans.flush()
772 rajveer 3987
 
2981 rajveer 3988
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3989
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3990
    args.read(iprot)
3991
    iprot.readMessageEnd()
2981 rajveer 3992
    result = getBrowseHistoryItems_result()
3993
    try:
3994
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3995
    except WidgetException, scx:
3996
      result.scx = scx
3997
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3998
    result.write(oprot)
3999
    oprot.writeMessageEnd()
4000
    oprot.trans.flush()
1596 ankur.sing 4001
 
2981 rajveer 4002
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4003
    args = updateBrowseHistory_args()
2642 varun.gupt 4004
    args.read(iprot)
4005
    iprot.readMessageEnd()
2981 rajveer 4006
    result = updateBrowseHistory_result()
4007
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4008
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4009
    result.write(oprot)
4010
    oprot.writeMessageEnd()
4011
    oprot.trans.flush()
1673 ankur.sing 4012
 
3385 varun.gupt 4013
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4014
    args = getCartsWithCouponCount_args()
4015
    args.read(iprot)
4016
    iprot.readMessageEnd()
4017
    result = getCartsWithCouponCount_result()
4018
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4019
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4020
    result.write(oprot)
4021
    oprot.writeMessageEnd()
4022
    oprot.trans.flush()
2642 varun.gupt 4023
 
3499 mandeep.dh 4024
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4025
    args = increaseTrustLevel_args()
4026
    args.read(iprot)
4027
    iprot.readMessageEnd()
4028
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4029
    return
3385 varun.gupt 4030
 
5407 amar.kumar 4031
  def process_getTrustLevel(self, seqid, iprot, oprot):
4032
    args = getTrustLevel_args()
4033
    args.read(iprot)
4034
    iprot.readMessageEnd()
4035
    result = getTrustLevel_result()
4036
    result.success = self._handler.getTrustLevel(args.userId)
4037
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
4038
    result.write(oprot)
4039
    oprot.writeMessageEnd()
4040
    oprot.trans.flush()
4041
 
4668 varun.gupt 4042
  def process_showCODOption(self, seqid, iprot, oprot):
4043
    args = showCODOption_args()
4044
    args.read(iprot)
4045
    iprot.readMessageEnd()
4046
    result = showCODOption_result()
4047
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
4048
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
4049
    result.write(oprot)
4050
    oprot.writeMessageEnd()
4051
    oprot.trans.flush()
3499 mandeep.dh 4052
 
5623 anupam.sin 4053
  def process_getUserEmails(self, seqid, iprot, oprot):
4054
    args = getUserEmails_args()
4055
    args.read(iprot)
4056
    iprot.readMessageEnd()
4057
    result = getUserEmails_result()
4058
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
4059
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
4060
    result.write(oprot)
4061
    oprot.writeMessageEnd()
4062
    oprot.trans.flush()
4668 varun.gupt 4063
 
6903 anupam.sin 4064
  def process_insureItem(self, seqid, iprot, oprot):
4065
    args = insureItem_args()
4066
    args.read(iprot)
4067
    iprot.readMessageEnd()
4068
    result = insureItem_result()
9299 kshitij.so 4069
    result.success = self._handler.insureItem(args.itemId, args.cartId, args.toInsure, args.insurerType)
6903 anupam.sin 4070
    oprot.writeMessageBegin("insureItem", TMessageType.REPLY, seqid)
4071
    result.write(oprot)
4072
    oprot.writeMessageEnd()
4073
    oprot.trans.flush()
4074
 
4075
  def process_cancelInsurance(self, seqid, iprot, oprot):
4076
    args = cancelInsurance_args()
4077
    args.read(iprot)
4078
    iprot.readMessageEnd()
4079
    result = cancelInsurance_result()
4080
    result.success = self._handler.cancelInsurance(args.cartId)
4081
    oprot.writeMessageBegin("cancelInsurance", TMessageType.REPLY, seqid)
4082
    result.write(oprot)
4083
    oprot.writeMessageEnd()
4084
    oprot.trans.flush()
4085
 
4086
  def process_storeInsuranceSpecificDetails(self, seqid, iprot, oprot):
4087
    args = storeInsuranceSpecificDetails_args()
4088
    args.read(iprot)
4089
    iprot.readMessageEnd()
4090
    result = storeInsuranceSpecificDetails_result()
4091
    result.success = self._handler.storeInsuranceSpecificDetails(args.addressId, args.dob, args.guardianName)
4092
    oprot.writeMessageBegin("storeInsuranceSpecificDetails", TMessageType.REPLY, seqid)
4093
    result.write(oprot)
4094
    oprot.writeMessageEnd()
4095
    oprot.trans.flush()
4096
 
4097
  def process_isInsuranceDetailPresent(self, seqid, iprot, oprot):
4098
    args = isInsuranceDetailPresent_args()
4099
    args.read(iprot)
4100
    iprot.readMessageEnd()
4101
    result = isInsuranceDetailPresent_result()
4102
    result.success = self._handler.isInsuranceDetailPresent(args.addressId)
4103
    oprot.writeMessageBegin("isInsuranceDetailPresent", TMessageType.REPLY, seqid)
4104
    result.write(oprot)
4105
    oprot.writeMessageEnd()
4106
    oprot.trans.flush()
4107
 
6821 amar.kumar 4108
  def process_isProductAddedToCart(self, seqid, iprot, oprot):
4109
    args = isProductAddedToCart_args()
4110
    args.read(iprot)
4111
    iprot.readMessageEnd()
4112
    result = isProductAddedToCart_result()
4113
    result.success = self._handler.isProductAddedToCart(args.itemId, args.startDate, args.endDate)
4114
    oprot.writeMessageBegin("isProductAddedToCart", TMessageType.REPLY, seqid)
4115
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
5623 anupam.sin 4118
 
6821 amar.kumar 4119
 
94 ashish 4120
# HELPER FUNCTIONS AND STRUCTURES
4121
 
559 chandransh 4122
class createAnonymousUser_args:
94 ashish 4123
  """
4124
  Attributes:
559 chandransh 4125
   - jsessionId
94 ashish 4126
  """
4127
 
4128
  thrift_spec = (
4129
    None, # 0
559 chandransh 4130
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4131
  )
4132
 
559 chandransh 4133
  def __init__(self, jsessionId=None,):
4134
    self.jsessionId = jsessionId
94 ashish 4135
 
4136
  def read(self, iprot):
4137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4139
      return
4140
    iprot.readStructBegin()
4141
    while True:
4142
      (fname, ftype, fid) = iprot.readFieldBegin()
4143
      if ftype == TType.STOP:
4144
        break
4145
      if fid == 1:
559 chandransh 4146
        if ftype == TType.STRING:
4147
          self.jsessionId = iprot.readString();
94 ashish 4148
        else:
4149
          iprot.skip(ftype)
4150
      else:
4151
        iprot.skip(ftype)
4152
      iprot.readFieldEnd()
4153
    iprot.readStructEnd()
4154
 
4155
  def write(self, oprot):
4156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4158
      return
559 chandransh 4159
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4160
    if self.jsessionId is not None:
559 chandransh 4161
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4162
      oprot.writeString(self.jsessionId)
94 ashish 4163
      oprot.writeFieldEnd()
4164
    oprot.writeFieldStop()
4165
    oprot.writeStructEnd()
4166
 
3431 rajveer 4167
  def validate(self):
4168
    return
4169
 
4170
 
94 ashish 4171
  def __repr__(self):
4172
    L = ['%s=%r' % (key, value)
4173
      for key, value in self.__dict__.iteritems()]
4174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4175
 
4176
  def __eq__(self, other):
4177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4178
 
4179
  def __ne__(self, other):
4180
    return not (self == other)
4181
 
559 chandransh 4182
class createAnonymousUser_result:
94 ashish 4183
  """
4184
  Attributes:
4185
   - success
559 chandransh 4186
   - ucex
94 ashish 4187
  """
4188
 
4189
  thrift_spec = (
559 chandransh 4190
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4191
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4192
  )
4193
 
559 chandransh 4194
  def __init__(self, success=None, ucex=None,):
94 ashish 4195
    self.success = success
559 chandransh 4196
    self.ucex = ucex
94 ashish 4197
 
4198
  def read(self, iprot):
4199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4201
      return
4202
    iprot.readStructBegin()
4203
    while True:
4204
      (fname, ftype, fid) = iprot.readFieldBegin()
4205
      if ftype == TType.STOP:
4206
        break
4207
      if fid == 0:
4208
        if ftype == TType.STRUCT:
559 chandransh 4209
          self.success = User()
94 ashish 4210
          self.success.read(iprot)
4211
        else:
4212
          iprot.skip(ftype)
4213
      elif fid == 1:
4214
        if ftype == TType.STRUCT:
559 chandransh 4215
          self.ucex = UserContextException()
4216
          self.ucex.read(iprot)
94 ashish 4217
        else:
4218
          iprot.skip(ftype)
4219
      else:
4220
        iprot.skip(ftype)
4221
      iprot.readFieldEnd()
4222
    iprot.readStructEnd()
4223
 
4224
  def write(self, oprot):
4225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4227
      return
559 chandransh 4228
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4229
    if self.success is not None:
94 ashish 4230
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4231
      self.success.write(oprot)
4232
      oprot.writeFieldEnd()
3431 rajveer 4233
    if self.ucex is not None:
559 chandransh 4234
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4235
      self.ucex.write(oprot)
94 ashish 4236
      oprot.writeFieldEnd()
4237
    oprot.writeFieldStop()
4238
    oprot.writeStructEnd()
4239
 
3431 rajveer 4240
  def validate(self):
4241
    return
4242
 
4243
 
94 ashish 4244
  def __repr__(self):
4245
    L = ['%s=%r' % (key, value)
4246
      for key, value in self.__dict__.iteritems()]
4247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4248
 
4249
  def __eq__(self, other):
4250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4251
 
4252
  def __ne__(self, other):
4253
    return not (self == other)
4254
 
559 chandransh 4255
class getUserById_args:
94 ashish 4256
  """
4257
  Attributes:
4258
   - userId
4259
  """
4260
 
4261
  thrift_spec = (
4262
    None, # 0
4263
    (1, TType.I64, 'userId', None, None, ), # 1
4264
  )
4265
 
559 chandransh 4266
  def __init__(self, userId=None,):
94 ashish 4267
    self.userId = userId
4268
 
4269
  def read(self, iprot):
4270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4272
      return
4273
    iprot.readStructBegin()
4274
    while True:
4275
      (fname, ftype, fid) = iprot.readFieldBegin()
4276
      if ftype == TType.STOP:
4277
        break
4278
      if fid == 1:
4279
        if ftype == TType.I64:
4280
          self.userId = iprot.readI64();
4281
        else:
4282
          iprot.skip(ftype)
4283
      else:
4284
        iprot.skip(ftype)
4285
      iprot.readFieldEnd()
4286
    iprot.readStructEnd()
4287
 
4288
  def write(self, oprot):
4289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4291
      return
559 chandransh 4292
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4293
    if self.userId is not None:
94 ashish 4294
      oprot.writeFieldBegin('userId', TType.I64, 1)
4295
      oprot.writeI64(self.userId)
4296
      oprot.writeFieldEnd()
4297
    oprot.writeFieldStop()
4298
    oprot.writeStructEnd()
4299
 
3431 rajveer 4300
  def validate(self):
4301
    return
4302
 
4303
 
94 ashish 4304
  def __repr__(self):
4305
    L = ['%s=%r' % (key, value)
4306
      for key, value in self.__dict__.iteritems()]
4307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4308
 
4309
  def __eq__(self, other):
4310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4311
 
4312
  def __ne__(self, other):
4313
    return not (self == other)
4314
 
559 chandransh 4315
class getUserById_result:
94 ashish 4316
  """
4317
  Attributes:
4318
   - success
559 chandransh 4319
   - ucex
94 ashish 4320
  """
4321
 
4322
  thrift_spec = (
559 chandransh 4323
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4324
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4325
  )
4326
 
559 chandransh 4327
  def __init__(self, success=None, ucex=None,):
94 ashish 4328
    self.success = success
559 chandransh 4329
    self.ucex = ucex
94 ashish 4330
 
4331
  def read(self, iprot):
4332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4334
      return
4335
    iprot.readStructBegin()
4336
    while True:
4337
      (fname, ftype, fid) = iprot.readFieldBegin()
4338
      if ftype == TType.STOP:
4339
        break
4340
      if fid == 0:
4341
        if ftype == TType.STRUCT:
559 chandransh 4342
          self.success = User()
94 ashish 4343
          self.success.read(iprot)
4344
        else:
4345
          iprot.skip(ftype)
4346
      elif fid == 1:
4347
        if ftype == TType.STRUCT:
559 chandransh 4348
          self.ucex = UserContextException()
4349
          self.ucex.read(iprot)
94 ashish 4350
        else:
4351
          iprot.skip(ftype)
4352
      else:
4353
        iprot.skip(ftype)
4354
      iprot.readFieldEnd()
4355
    iprot.readStructEnd()
4356
 
4357
  def write(self, oprot):
4358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4360
      return
559 chandransh 4361
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4362
    if self.success is not None:
94 ashish 4363
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4364
      self.success.write(oprot)
4365
      oprot.writeFieldEnd()
3431 rajveer 4366
    if self.ucex is not None:
559 chandransh 4367
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4368
      self.ucex.write(oprot)
94 ashish 4369
      oprot.writeFieldEnd()
4370
    oprot.writeFieldStop()
4371
    oprot.writeStructEnd()
4372
 
3431 rajveer 4373
  def validate(self):
4374
    return
4375
 
4376
 
94 ashish 4377
  def __repr__(self):
4378
    L = ['%s=%r' % (key, value)
4379
      for key, value in self.__dict__.iteritems()]
4380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4381
 
4382
  def __eq__(self, other):
4383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4384
 
4385
  def __ne__(self, other):
4386
    return not (self == other)
4387
 
5326 rajveer 4388
class getUserByCartId_args:
1491 vikas 4389
  """
4390
  Attributes:
5326 rajveer 4391
   - cartId
1491 vikas 4392
  """
4393
 
4394
  thrift_spec = (
4395
    None, # 0
5326 rajveer 4396
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4397
  )
4398
 
5326 rajveer 4399
  def __init__(self, cartId=None,):
4400
    self.cartId = cartId
1491 vikas 4401
 
4402
  def read(self, iprot):
4403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4405
      return
4406
    iprot.readStructBegin()
4407
    while True:
4408
      (fname, ftype, fid) = iprot.readFieldBegin()
4409
      if ftype == TType.STOP:
4410
        break
4411
      if fid == 1:
5326 rajveer 4412
        if ftype == TType.I64:
4413
          self.cartId = iprot.readI64();
1491 vikas 4414
        else:
4415
          iprot.skip(ftype)
4416
      else:
4417
        iprot.skip(ftype)
4418
      iprot.readFieldEnd()
4419
    iprot.readStructEnd()
4420
 
4421
  def write(self, oprot):
4422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4424
      return
5326 rajveer 4425
    oprot.writeStructBegin('getUserByCartId_args')
4426
    if self.cartId is not None:
4427
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4428
      oprot.writeI64(self.cartId)
1491 vikas 4429
      oprot.writeFieldEnd()
4430
    oprot.writeFieldStop()
4431
    oprot.writeStructEnd()
4432
 
3431 rajveer 4433
  def validate(self):
4434
    return
4435
 
4436
 
1491 vikas 4437
  def __repr__(self):
4438
    L = ['%s=%r' % (key, value)
4439
      for key, value in self.__dict__.iteritems()]
4440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4441
 
4442
  def __eq__(self, other):
4443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4444
 
4445
  def __ne__(self, other):
4446
    return not (self == other)
4447
 
5326 rajveer 4448
class getUserByCartId_result:
1491 vikas 4449
  """
4450
  Attributes:
4451
   - success
4452
   - ucex
4453
  """
4454
 
4455
  thrift_spec = (
4456
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4457
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4458
  )
4459
 
4460
  def __init__(self, success=None, ucex=None,):
4461
    self.success = success
4462
    self.ucex = ucex
4463
 
4464
  def read(self, iprot):
4465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4467
      return
4468
    iprot.readStructBegin()
4469
    while True:
4470
      (fname, ftype, fid) = iprot.readFieldBegin()
4471
      if ftype == TType.STOP:
4472
        break
4473
      if fid == 0:
4474
        if ftype == TType.STRUCT:
4475
          self.success = User()
4476
          self.success.read(iprot)
4477
        else:
4478
          iprot.skip(ftype)
4479
      elif fid == 1:
4480
        if ftype == TType.STRUCT:
4481
          self.ucex = UserContextException()
4482
          self.ucex.read(iprot)
4483
        else:
4484
          iprot.skip(ftype)
4485
      else:
4486
        iprot.skip(ftype)
4487
      iprot.readFieldEnd()
4488
    iprot.readStructEnd()
4489
 
4490
  def write(self, oprot):
4491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4493
      return
5326 rajveer 4494
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4495
    if self.success is not None:
1491 vikas 4496
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4497
      self.success.write(oprot)
4498
      oprot.writeFieldEnd()
3431 rajveer 4499
    if self.ucex is not None:
1491 vikas 4500
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4501
      self.ucex.write(oprot)
4502
      oprot.writeFieldEnd()
4503
    oprot.writeFieldStop()
4504
    oprot.writeStructEnd()
4505
 
3431 rajveer 4506
  def validate(self):
4507
    return
4508
 
4509
 
1491 vikas 4510
  def __repr__(self):
4511
    L = ['%s=%r' % (key, value)
4512
      for key, value in self.__dict__.iteritems()]
4513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4514
 
4515
  def __eq__(self, other):
4516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4517
 
4518
  def __ne__(self, other):
4519
    return not (self == other)
4520
 
5326 rajveer 4521
class getUserByEmail_args:
3032 mandeep.dh 4522
  """
4523
  Attributes:
5326 rajveer 4524
   - email
3032 mandeep.dh 4525
  """
4526
 
4527
  thrift_spec = (
4528
    None, # 0
5326 rajveer 4529
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4530
  )
4531
 
5326 rajveer 4532
  def __init__(self, email=None,):
4533
    self.email = email
3032 mandeep.dh 4534
 
4535
  def read(self, iprot):
4536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4538
      return
4539
    iprot.readStructBegin()
4540
    while True:
4541
      (fname, ftype, fid) = iprot.readFieldBegin()
4542
      if ftype == TType.STOP:
4543
        break
4544
      if fid == 1:
5326 rajveer 4545
        if ftype == TType.STRING:
4546
          self.email = iprot.readString();
3032 mandeep.dh 4547
        else:
4548
          iprot.skip(ftype)
4549
      else:
4550
        iprot.skip(ftype)
4551
      iprot.readFieldEnd()
4552
    iprot.readStructEnd()
4553
 
4554
  def write(self, oprot):
4555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4557
      return
5326 rajveer 4558
    oprot.writeStructBegin('getUserByEmail_args')
4559
    if self.email is not None:
4560
      oprot.writeFieldBegin('email', TType.STRING, 1)
4561
      oprot.writeString(self.email)
3032 mandeep.dh 4562
      oprot.writeFieldEnd()
4563
    oprot.writeFieldStop()
4564
    oprot.writeStructEnd()
4565
 
3431 rajveer 4566
  def validate(self):
4567
    return
4568
 
4569
 
3032 mandeep.dh 4570
  def __repr__(self):
4571
    L = ['%s=%r' % (key, value)
4572
      for key, value in self.__dict__.iteritems()]
4573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4574
 
4575
  def __eq__(self, other):
4576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4577
 
4578
  def __ne__(self, other):
4579
    return not (self == other)
4580
 
5326 rajveer 4581
class getUserByEmail_result:
3032 mandeep.dh 4582
  """
4583
  Attributes:
4584
   - success
4585
   - ucex
4586
  """
4587
 
4588
  thrift_spec = (
4589
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4590
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4591
  )
4592
 
4593
  def __init__(self, success=None, ucex=None,):
4594
    self.success = success
4595
    self.ucex = ucex
4596
 
4597
  def read(self, iprot):
4598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4600
      return
4601
    iprot.readStructBegin()
4602
    while True:
4603
      (fname, ftype, fid) = iprot.readFieldBegin()
4604
      if ftype == TType.STOP:
4605
        break
4606
      if fid == 0:
4607
        if ftype == TType.STRUCT:
4608
          self.success = User()
4609
          self.success.read(iprot)
4610
        else:
4611
          iprot.skip(ftype)
4612
      elif fid == 1:
4613
        if ftype == TType.STRUCT:
4614
          self.ucex = UserContextException()
4615
          self.ucex.read(iprot)
4616
        else:
4617
          iprot.skip(ftype)
4618
      else:
4619
        iprot.skip(ftype)
4620
      iprot.readFieldEnd()
4621
    iprot.readStructEnd()
4622
 
4623
  def write(self, oprot):
4624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4626
      return
5326 rajveer 4627
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4628
    if self.success is not None:
3032 mandeep.dh 4629
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4630
      self.success.write(oprot)
4631
      oprot.writeFieldEnd()
3431 rajveer 4632
    if self.ucex is not None:
3032 mandeep.dh 4633
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4634
      self.ucex.write(oprot)
4635
      oprot.writeFieldEnd()
4636
    oprot.writeFieldStop()
4637
    oprot.writeStructEnd()
4638
 
3431 rajveer 4639
  def validate(self):
4640
    return
4641
 
4642
 
3032 mandeep.dh 4643
  def __repr__(self):
4644
    L = ['%s=%r' % (key, value)
4645
      for key, value in self.__dict__.iteritems()]
4646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4647
 
4648
  def __eq__(self, other):
4649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4650
 
4651
  def __ne__(self, other):
4652
    return not (self == other)
4653
 
5326 rajveer 4654
class getUserByMobileNumber_args:
94 ashish 4655
  """
4656
  Attributes:
5326 rajveer 4657
   - mobileNumber
94 ashish 4658
  """
4659
 
4660
  thrift_spec = (
4661
    None, # 0
5326 rajveer 4662
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4663
  )
4664
 
5326 rajveer 4665
  def __init__(self, mobileNumber=None,):
4666
    self.mobileNumber = mobileNumber
94 ashish 4667
 
4668
  def read(self, iprot):
4669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4671
      return
4672
    iprot.readStructBegin()
4673
    while True:
4674
      (fname, ftype, fid) = iprot.readFieldBegin()
4675
      if ftype == TType.STOP:
4676
        break
4677
      if fid == 1:
5326 rajveer 4678
        if ftype == TType.I64:
4679
          self.mobileNumber = iprot.readI64();
94 ashish 4680
        else:
4681
          iprot.skip(ftype)
4682
      else:
4683
        iprot.skip(ftype)
4684
      iprot.readFieldEnd()
4685
    iprot.readStructEnd()
4686
 
4687
  def write(self, oprot):
4688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4690
      return
5326 rajveer 4691
    oprot.writeStructBegin('getUserByMobileNumber_args')
4692
    if self.mobileNumber is not None:
4693
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4694
      oprot.writeI64(self.mobileNumber)
94 ashish 4695
      oprot.writeFieldEnd()
4696
    oprot.writeFieldStop()
4697
    oprot.writeStructEnd()
4698
 
3431 rajveer 4699
  def validate(self):
4700
    return
4701
 
4702
 
94 ashish 4703
  def __repr__(self):
4704
    L = ['%s=%r' % (key, value)
4705
      for key, value in self.__dict__.iteritems()]
4706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4707
 
4708
  def __eq__(self, other):
4709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4710
 
4711
  def __ne__(self, other):
4712
    return not (self == other)
4713
 
5326 rajveer 4714
class getUserByMobileNumber_result:
94 ashish 4715
  """
4716
  Attributes:
4717
   - success
559 chandransh 4718
   - ucex
94 ashish 4719
  """
4720
 
4721
  thrift_spec = (
559 chandransh 4722
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4723
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4724
  )
4725
 
559 chandransh 4726
  def __init__(self, success=None, ucex=None,):
94 ashish 4727
    self.success = success
559 chandransh 4728
    self.ucex = ucex
94 ashish 4729
 
4730
  def read(self, iprot):
4731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4733
      return
4734
    iprot.readStructBegin()
4735
    while True:
4736
      (fname, ftype, fid) = iprot.readFieldBegin()
4737
      if ftype == TType.STOP:
4738
        break
4739
      if fid == 0:
4740
        if ftype == TType.STRUCT:
559 chandransh 4741
          self.success = User()
94 ashish 4742
          self.success.read(iprot)
4743
        else:
4744
          iprot.skip(ftype)
4745
      elif fid == 1:
4746
        if ftype == TType.STRUCT:
559 chandransh 4747
          self.ucex = UserContextException()
4748
          self.ucex.read(iprot)
94 ashish 4749
        else:
4750
          iprot.skip(ftype)
4751
      else:
4752
        iprot.skip(ftype)
4753
      iprot.readFieldEnd()
4754
    iprot.readStructEnd()
4755
 
4756
  def write(self, oprot):
4757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4759
      return
5326 rajveer 4760
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4761
    if self.success is not None:
94 ashish 4762
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4763
      self.success.write(oprot)
4764
      oprot.writeFieldEnd()
3431 rajveer 4765
    if self.ucex is not None:
559 chandransh 4766
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4767
      self.ucex.write(oprot)
94 ashish 4768
      oprot.writeFieldEnd()
4769
    oprot.writeFieldStop()
4770
    oprot.writeStructEnd()
4771
 
3431 rajveer 4772
  def validate(self):
4773
    return
4774
 
4775
 
94 ashish 4776
  def __repr__(self):
4777
    L = ['%s=%r' % (key, value)
4778
      for key, value in self.__dict__.iteritems()]
4779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4780
 
4781
  def __eq__(self, other):
4782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4783
 
4784
  def __ne__(self, other):
4785
    return not (self == other)
4786
 
5326 rajveer 4787
class createUser_args:
94 ashish 4788
  """
4789
  Attributes:
559 chandransh 4790
   - user
94 ashish 4791
  """
4792
 
4793
  thrift_spec = (
4794
    None, # 0
559 chandransh 4795
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4796
  )
4797
 
559 chandransh 4798
  def __init__(self, user=None,):
4799
    self.user = user
94 ashish 4800
 
4801
  def read(self, iprot):
4802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4804
      return
4805
    iprot.readStructBegin()
4806
    while True:
4807
      (fname, ftype, fid) = iprot.readFieldBegin()
4808
      if ftype == TType.STOP:
4809
        break
4810
      if fid == 1:
559 chandransh 4811
        if ftype == TType.STRUCT:
4812
          self.user = User()
4813
          self.user.read(iprot)
94 ashish 4814
        else:
4815
          iprot.skip(ftype)
4816
      else:
4817
        iprot.skip(ftype)
4818
      iprot.readFieldEnd()
4819
    iprot.readStructEnd()
4820
 
4821
  def write(self, oprot):
4822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4824
      return
5326 rajveer 4825
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4826
    if self.user is not None:
559 chandransh 4827
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4828
      self.user.write(oprot)
94 ashish 4829
      oprot.writeFieldEnd()
4830
    oprot.writeFieldStop()
4831
    oprot.writeStructEnd()
4832
 
3431 rajveer 4833
  def validate(self):
4834
    return
4835
 
4836
 
94 ashish 4837
  def __repr__(self):
4838
    L = ['%s=%r' % (key, value)
4839
      for key, value in self.__dict__.iteritems()]
4840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4841
 
4842
  def __eq__(self, other):
4843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4844
 
4845
  def __ne__(self, other):
4846
    return not (self == other)
4847
 
5326 rajveer 4848
class createUser_result:
94 ashish 4849
  """
4850
  Attributes:
4851
   - success
559 chandransh 4852
   - ucex
94 ashish 4853
  """
4854
 
4855
  thrift_spec = (
559 chandransh 4856
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4857
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4858
  )
4859
 
559 chandransh 4860
  def __init__(self, success=None, ucex=None,):
94 ashish 4861
    self.success = success
559 chandransh 4862
    self.ucex = ucex
94 ashish 4863
 
4864
  def read(self, iprot):
4865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4867
      return
4868
    iprot.readStructBegin()
4869
    while True:
4870
      (fname, ftype, fid) = iprot.readFieldBegin()
4871
      if ftype == TType.STOP:
4872
        break
4873
      if fid == 0:
4874
        if ftype == TType.STRUCT:
559 chandransh 4875
          self.success = User()
94 ashish 4876
          self.success.read(iprot)
4877
        else:
4878
          iprot.skip(ftype)
4879
      elif fid == 1:
4880
        if ftype == TType.STRUCT:
559 chandransh 4881
          self.ucex = UserContextException()
4882
          self.ucex.read(iprot)
94 ashish 4883
        else:
4884
          iprot.skip(ftype)
4885
      else:
4886
        iprot.skip(ftype)
4887
      iprot.readFieldEnd()
4888
    iprot.readStructEnd()
4889
 
4890
  def write(self, oprot):
4891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4893
      return
5326 rajveer 4894
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4895
    if self.success is not None:
94 ashish 4896
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4897
      self.success.write(oprot)
4898
      oprot.writeFieldEnd()
3431 rajveer 4899
    if self.ucex is not None:
559 chandransh 4900
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4901
      self.ucex.write(oprot)
94 ashish 4902
      oprot.writeFieldEnd()
4903
    oprot.writeFieldStop()
4904
    oprot.writeStructEnd()
4905
 
3431 rajveer 4906
  def validate(self):
4907
    return
4908
 
4909
 
94 ashish 4910
  def __repr__(self):
4911
    L = ['%s=%r' % (key, value)
4912
      for key, value in self.__dict__.iteritems()]
4913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4914
 
4915
  def __eq__(self, other):
4916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4917
 
4918
  def __ne__(self, other):
4919
    return not (self == other)
4920
 
5326 rajveer 4921
class updateUser_args:
94 ashish 4922
  """
4923
  Attributes:
5326 rajveer 4924
   - user
94 ashish 4925
  """
4926
 
4927
  thrift_spec = (
4928
    None, # 0
5326 rajveer 4929
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4930
  )
4931
 
5326 rajveer 4932
  def __init__(self, user=None,):
4933
    self.user = user
94 ashish 4934
 
4935
  def read(self, iprot):
4936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4938
      return
4939
    iprot.readStructBegin()
4940
    while True:
4941
      (fname, ftype, fid) = iprot.readFieldBegin()
4942
      if ftype == TType.STOP:
4943
        break
4944
      if fid == 1:
5326 rajveer 4945
        if ftype == TType.STRUCT:
4946
          self.user = User()
4947
          self.user.read(iprot)
94 ashish 4948
        else:
4949
          iprot.skip(ftype)
4950
      else:
4951
        iprot.skip(ftype)
4952
      iprot.readFieldEnd()
4953
    iprot.readStructEnd()
4954
 
4955
  def write(self, oprot):
4956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4958
      return
5326 rajveer 4959
    oprot.writeStructBegin('updateUser_args')
4960
    if self.user is not None:
4961
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4962
      self.user.write(oprot)
94 ashish 4963
      oprot.writeFieldEnd()
4964
    oprot.writeFieldStop()
4965
    oprot.writeStructEnd()
4966
 
3431 rajveer 4967
  def validate(self):
4968
    return
4969
 
4970
 
94 ashish 4971
  def __repr__(self):
4972
    L = ['%s=%r' % (key, value)
4973
      for key, value in self.__dict__.iteritems()]
4974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4975
 
4976
  def __eq__(self, other):
4977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4978
 
4979
  def __ne__(self, other):
4980
    return not (self == other)
4981
 
5326 rajveer 4982
class updateUser_result:
94 ashish 4983
  """
4984
  Attributes:
4985
   - success
559 chandransh 4986
   - ucex
94 ashish 4987
  """
4988
 
4989
  thrift_spec = (
5326 rajveer 4990
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4991
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4992
  )
4993
 
559 chandransh 4994
  def __init__(self, success=None, ucex=None,):
94 ashish 4995
    self.success = success
559 chandransh 4996
    self.ucex = ucex
94 ashish 4997
 
4998
  def read(self, iprot):
4999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5001
      return
5002
    iprot.readStructBegin()
5003
    while True:
5004
      (fname, ftype, fid) = iprot.readFieldBegin()
5005
      if ftype == TType.STOP:
5006
        break
5007
      if fid == 0:
5326 rajveer 5008
        if ftype == TType.STRUCT:
5009
          self.success = User()
5010
          self.success.read(iprot)
94 ashish 5011
        else:
5012
          iprot.skip(ftype)
5013
      elif fid == 1:
5014
        if ftype == TType.STRUCT:
559 chandransh 5015
          self.ucex = UserContextException()
5016
          self.ucex.read(iprot)
94 ashish 5017
        else:
5018
          iprot.skip(ftype)
5019
      else:
5020
        iprot.skip(ftype)
5021
      iprot.readFieldEnd()
5022
    iprot.readStructEnd()
5023
 
5024
  def write(self, oprot):
5025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5027
      return
5326 rajveer 5028
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 5029
    if self.success is not None:
5326 rajveer 5030
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5031
      self.success.write(oprot)
94 ashish 5032
      oprot.writeFieldEnd()
3431 rajveer 5033
    if self.ucex is not None:
559 chandransh 5034
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5035
      self.ucex.write(oprot)
94 ashish 5036
      oprot.writeFieldEnd()
5037
    oprot.writeFieldStop()
5038
    oprot.writeStructEnd()
5039
 
3431 rajveer 5040
  def validate(self):
5041
    return
5042
 
5043
 
94 ashish 5044
  def __repr__(self):
5045
    L = ['%s=%r' % (key, value)
5046
      for key, value in self.__dict__.iteritems()]
5047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5048
 
5049
  def __eq__(self, other):
5050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5051
 
5052
  def __ne__(self, other):
5053
    return not (self == other)
5054
 
559 chandransh 5055
class authenticateUser_args:
94 ashish 5056
  """
5057
  Attributes:
5058
   - email
5059
   - password
5060
  """
5061
 
5062
  thrift_spec = (
5063
    None, # 0
5064
    (1, TType.STRING, 'email', None, None, ), # 1
5065
    (2, TType.STRING, 'password', None, None, ), # 2
5066
  )
5067
 
5068
  def __init__(self, email=None, password=None,):
5069
    self.email = email
5070
    self.password = password
5071
 
5072
  def read(self, iprot):
5073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5075
      return
5076
    iprot.readStructBegin()
5077
    while True:
5078
      (fname, ftype, fid) = iprot.readFieldBegin()
5079
      if ftype == TType.STOP:
5080
        break
5081
      if fid == 1:
5082
        if ftype == TType.STRING:
5083
          self.email = iprot.readString();
5084
        else:
5085
          iprot.skip(ftype)
5086
      elif fid == 2:
5087
        if ftype == TType.STRING:
5088
          self.password = iprot.readString();
5089
        else:
5090
          iprot.skip(ftype)
5091
      else:
5092
        iprot.skip(ftype)
5093
      iprot.readFieldEnd()
5094
    iprot.readStructEnd()
5095
 
5096
  def write(self, oprot):
5097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5099
      return
559 chandransh 5100
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5101
    if self.email is not None:
94 ashish 5102
      oprot.writeFieldBegin('email', TType.STRING, 1)
5103
      oprot.writeString(self.email)
5104
      oprot.writeFieldEnd()
3431 rajveer 5105
    if self.password is not None:
94 ashish 5106
      oprot.writeFieldBegin('password', TType.STRING, 2)
5107
      oprot.writeString(self.password)
5108
      oprot.writeFieldEnd()
5109
    oprot.writeFieldStop()
5110
    oprot.writeStructEnd()
5111
 
3431 rajveer 5112
  def validate(self):
5113
    return
5114
 
5115
 
94 ashish 5116
  def __repr__(self):
5117
    L = ['%s=%r' % (key, value)
5118
      for key, value in self.__dict__.iteritems()]
5119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5120
 
5121
  def __eq__(self, other):
5122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5123
 
5124
  def __ne__(self, other):
5125
    return not (self == other)
5126
 
559 chandransh 5127
class authenticateUser_result:
94 ashish 5128
  """
5129
  Attributes:
5130
   - success
559 chandransh 5131
   - auex
94 ashish 5132
  """
5133
 
5134
  thrift_spec = (
559 chandransh 5135
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5136
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5137
  )
5138
 
559 chandransh 5139
  def __init__(self, success=None, auex=None,):
94 ashish 5140
    self.success = success
559 chandransh 5141
    self.auex = auex
94 ashish 5142
 
5143
  def read(self, iprot):
5144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5146
      return
5147
    iprot.readStructBegin()
5148
    while True:
5149
      (fname, ftype, fid) = iprot.readFieldBegin()
5150
      if ftype == TType.STOP:
5151
        break
5152
      if fid == 0:
5153
        if ftype == TType.STRUCT:
559 chandransh 5154
          self.success = User()
94 ashish 5155
          self.success.read(iprot)
5156
        else:
5157
          iprot.skip(ftype)
5158
      elif fid == 1:
5159
        if ftype == TType.STRUCT:
559 chandransh 5160
          self.auex = AuthenticationException()
5161
          self.auex.read(iprot)
94 ashish 5162
        else:
5163
          iprot.skip(ftype)
5164
      else:
5165
        iprot.skip(ftype)
5166
      iprot.readFieldEnd()
5167
    iprot.readStructEnd()
5168
 
5169
  def write(self, oprot):
5170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5172
      return
559 chandransh 5173
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5174
    if self.success is not None:
94 ashish 5175
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5176
      self.success.write(oprot)
5177
      oprot.writeFieldEnd()
3431 rajveer 5178
    if self.auex is not None:
559 chandransh 5179
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5180
      self.auex.write(oprot)
94 ashish 5181
      oprot.writeFieldEnd()
5182
    oprot.writeFieldStop()
5183
    oprot.writeStructEnd()
5184
 
3431 rajveer 5185
  def validate(self):
5186
    return
5187
 
5188
 
94 ashish 5189
  def __repr__(self):
5190
    L = ['%s=%r' % (key, value)
5191
      for key, value in self.__dict__.iteritems()]
5192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5193
 
5194
  def __eq__(self, other):
5195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5196
 
5197
  def __ne__(self, other):
5198
    return not (self == other)
5199
 
559 chandransh 5200
class userExists_args:
122 ashish 5201
  """
5202
  Attributes:
559 chandransh 5203
   - email
122 ashish 5204
  """
5205
 
5206
  thrift_spec = (
5207
    None, # 0
559 chandransh 5208
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5209
  )
5210
 
559 chandransh 5211
  def __init__(self, email=None,):
5212
    self.email = email
122 ashish 5213
 
5214
  def read(self, iprot):
5215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5217
      return
5218
    iprot.readStructBegin()
5219
    while True:
5220
      (fname, ftype, fid) = iprot.readFieldBegin()
5221
      if ftype == TType.STOP:
5222
        break
5223
      if fid == 1:
5224
        if ftype == TType.STRING:
559 chandransh 5225
          self.email = iprot.readString();
122 ashish 5226
        else:
5227
          iprot.skip(ftype)
559 chandransh 5228
      else:
5229
        iprot.skip(ftype)
5230
      iprot.readFieldEnd()
5231
    iprot.readStructEnd()
5232
 
5233
  def write(self, oprot):
5234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5236
      return
5237
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5238
    if self.email is not None:
559 chandransh 5239
      oprot.writeFieldBegin('email', TType.STRING, 1)
5240
      oprot.writeString(self.email)
5241
      oprot.writeFieldEnd()
5242
    oprot.writeFieldStop()
5243
    oprot.writeStructEnd()
5244
 
3431 rajveer 5245
  def validate(self):
5246
    return
5247
 
5248
 
559 chandransh 5249
  def __repr__(self):
5250
    L = ['%s=%r' % (key, value)
5251
      for key, value in self.__dict__.iteritems()]
5252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5253
 
5254
  def __eq__(self, other):
5255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5256
 
5257
  def __ne__(self, other):
5258
    return not (self == other)
5259
 
5260
class userExists_result:
5261
  """
5262
  Attributes:
5263
   - success
5264
   - ucx
5265
  """
5266
 
5267
  thrift_spec = (
5268
    (0, TType.BOOL, 'success', None, None, ), # 0
5269
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5270
  )
5271
 
5272
  def __init__(self, success=None, ucx=None,):
5273
    self.success = success
5274
    self.ucx = ucx
5275
 
5276
  def read(self, iprot):
5277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5279
      return
5280
    iprot.readStructBegin()
5281
    while True:
5282
      (fname, ftype, fid) = iprot.readFieldBegin()
5283
      if ftype == TType.STOP:
5284
        break
5285
      if fid == 0:
5286
        if ftype == TType.BOOL:
5287
          self.success = iprot.readBool();
5288
        else:
5289
          iprot.skip(ftype)
5290
      elif fid == 1:
5291
        if ftype == TType.STRUCT:
5292
          self.ucx = UserContextException()
5293
          self.ucx.read(iprot)
5294
        else:
5295
          iprot.skip(ftype)
5296
      else:
5297
        iprot.skip(ftype)
5298
      iprot.readFieldEnd()
5299
    iprot.readStructEnd()
5300
 
5301
  def write(self, oprot):
5302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5304
      return
5305
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5306
    if self.success is not None:
559 chandransh 5307
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5308
      oprot.writeBool(self.success)
5309
      oprot.writeFieldEnd()
3431 rajveer 5310
    if self.ucx is not None:
559 chandransh 5311
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5312
      self.ucx.write(oprot)
5313
      oprot.writeFieldEnd()
5314
    oprot.writeFieldStop()
5315
    oprot.writeStructEnd()
5316
 
3431 rajveer 5317
  def validate(self):
5318
    return
5319
 
5320
 
559 chandransh 5321
  def __repr__(self):
5322
    L = ['%s=%r' % (key, value)
5323
      for key, value in self.__dict__.iteritems()]
5324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5325
 
5326
  def __eq__(self, other):
5327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5328
 
5329
  def __ne__(self, other):
5330
    return not (self == other)
5331
 
5332
class addAddressForUser_args:
5333
  """
5334
  Attributes:
5335
   - userId
5336
   - address
5337
   - setDefault
5338
  """
5339
 
5340
  thrift_spec = (
5341
    None, # 0
5342
    (1, TType.I64, 'userId', None, None, ), # 1
5343
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5344
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5345
  )
5346
 
567 rajveer 5347
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5348
    self.userId = userId
5349
    self.address = address
5350
    self.setDefault = setDefault
5351
 
5352
  def read(self, iprot):
5353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5355
      return
5356
    iprot.readStructBegin()
5357
    while True:
5358
      (fname, ftype, fid) = iprot.readFieldBegin()
5359
      if ftype == TType.STOP:
5360
        break
5361
      if fid == 1:
5362
        if ftype == TType.I64:
5363
          self.userId = iprot.readI64();
5364
        else:
5365
          iprot.skip(ftype)
122 ashish 5366
      elif fid == 2:
559 chandransh 5367
        if ftype == TType.STRUCT:
5368
          self.address = Address()
5369
          self.address.read(iprot)
122 ashish 5370
        else:
5371
          iprot.skip(ftype)
5372
      elif fid == 3:
5373
        if ftype == TType.BOOL:
559 chandransh 5374
          self.setDefault = iprot.readBool();
122 ashish 5375
        else:
5376
          iprot.skip(ftype)
5377
      else:
5378
        iprot.skip(ftype)
5379
      iprot.readFieldEnd()
5380
    iprot.readStructEnd()
5381
 
5382
  def write(self, oprot):
5383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5385
      return
559 chandransh 5386
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5387
    if self.userId is not None:
559 chandransh 5388
      oprot.writeFieldBegin('userId', TType.I64, 1)
5389
      oprot.writeI64(self.userId)
122 ashish 5390
      oprot.writeFieldEnd()
3431 rajveer 5391
    if self.address is not None:
559 chandransh 5392
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5393
      self.address.write(oprot)
122 ashish 5394
      oprot.writeFieldEnd()
3431 rajveer 5395
    if self.setDefault is not None:
567 rajveer 5396
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5397
      oprot.writeBool(self.setDefault)
5398
      oprot.writeFieldEnd()
122 ashish 5399
    oprot.writeFieldStop()
5400
    oprot.writeStructEnd()
5401
 
3431 rajveer 5402
  def validate(self):
5403
    return
5404
 
5405
 
122 ashish 5406
  def __repr__(self):
5407
    L = ['%s=%r' % (key, value)
5408
      for key, value in self.__dict__.iteritems()]
5409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5410
 
5411
  def __eq__(self, other):
5412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5413
 
5414
  def __ne__(self, other):
5415
    return not (self == other)
5416
 
559 chandransh 5417
class addAddressForUser_result:
122 ashish 5418
  """
5419
  Attributes:
5420
   - success
559 chandransh 5421
   - ucx
122 ashish 5422
  """
5423
 
5424
  thrift_spec = (
567 rajveer 5425
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5426
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5427
  )
5428
 
559 chandransh 5429
  def __init__(self, success=None, ucx=None,):
122 ashish 5430
    self.success = success
559 chandransh 5431
    self.ucx = ucx
122 ashish 5432
 
5433
  def read(self, iprot):
5434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5436
      return
5437
    iprot.readStructBegin()
5438
    while True:
5439
      (fname, ftype, fid) = iprot.readFieldBegin()
5440
      if ftype == TType.STOP:
5441
        break
5442
      if fid == 0:
567 rajveer 5443
        if ftype == TType.I64:
5444
          self.success = iprot.readI64();
122 ashish 5445
        else:
5446
          iprot.skip(ftype)
5447
      elif fid == 1:
5448
        if ftype == TType.STRUCT:
559 chandransh 5449
          self.ucx = UserContextException()
5450
          self.ucx.read(iprot)
122 ashish 5451
        else:
5452
          iprot.skip(ftype)
5453
      else:
5454
        iprot.skip(ftype)
5455
      iprot.readFieldEnd()
5456
    iprot.readStructEnd()
5457
 
5458
  def write(self, oprot):
5459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5461
      return
559 chandransh 5462
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5463
    if self.success is not None:
567 rajveer 5464
      oprot.writeFieldBegin('success', TType.I64, 0)
5465
      oprot.writeI64(self.success)
122 ashish 5466
      oprot.writeFieldEnd()
3431 rajveer 5467
    if self.ucx is not None:
559 chandransh 5468
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5469
      self.ucx.write(oprot)
122 ashish 5470
      oprot.writeFieldEnd()
5471
    oprot.writeFieldStop()
5472
    oprot.writeStructEnd()
5473
 
3431 rajveer 5474
  def validate(self):
5475
    return
5476
 
5477
 
122 ashish 5478
  def __repr__(self):
5479
    L = ['%s=%r' % (key, value)
5480
      for key, value in self.__dict__.iteritems()]
5481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5482
 
5483
  def __eq__(self, other):
5484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5485
 
5486
  def __ne__(self, other):
5487
    return not (self == other)
5488
 
559 chandransh 5489
class removeAddressForUser_args:
94 ashish 5490
  """
5491
  Attributes:
559 chandransh 5492
   - userid
5493
   - addressId
94 ashish 5494
  """
5495
 
5496
  thrift_spec = (
5497
    None, # 0
559 chandransh 5498
    (1, TType.I64, 'userid', None, None, ), # 1
5499
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5500
  )
5501
 
559 chandransh 5502
  def __init__(self, userid=None, addressId=None,):
5503
    self.userid = userid
5504
    self.addressId = addressId
94 ashish 5505
 
5506
  def read(self, iprot):
5507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5509
      return
5510
    iprot.readStructBegin()
5511
    while True:
5512
      (fname, ftype, fid) = iprot.readFieldBegin()
5513
      if ftype == TType.STOP:
5514
        break
5515
      if fid == 1:
559 chandransh 5516
        if ftype == TType.I64:
5517
          self.userid = iprot.readI64();
94 ashish 5518
        else:
5519
          iprot.skip(ftype)
559 chandransh 5520
      elif fid == 2:
5521
        if ftype == TType.I64:
5522
          self.addressId = iprot.readI64();
5523
        else:
5524
          iprot.skip(ftype)
94 ashish 5525
      else:
5526
        iprot.skip(ftype)
5527
      iprot.readFieldEnd()
5528
    iprot.readStructEnd()
5529
 
5530
  def write(self, oprot):
5531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5533
      return
559 chandransh 5534
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5535
    if self.userid is not None:
559 chandransh 5536
      oprot.writeFieldBegin('userid', TType.I64, 1)
5537
      oprot.writeI64(self.userid)
94 ashish 5538
      oprot.writeFieldEnd()
3431 rajveer 5539
    if self.addressId is not None:
559 chandransh 5540
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5541
      oprot.writeI64(self.addressId)
5542
      oprot.writeFieldEnd()
94 ashish 5543
    oprot.writeFieldStop()
5544
    oprot.writeStructEnd()
5545
 
3431 rajveer 5546
  def validate(self):
5547
    return
5548
 
5549
 
94 ashish 5550
  def __repr__(self):
5551
    L = ['%s=%r' % (key, value)
5552
      for key, value in self.__dict__.iteritems()]
5553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5554
 
5555
  def __eq__(self, other):
5556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5557
 
5558
  def __ne__(self, other):
5559
    return not (self == other)
5560
 
559 chandransh 5561
class removeAddressForUser_result:
94 ashish 5562
  """
5563
  Attributes:
5564
   - success
5565
   - ucx
5566
  """
5567
 
5568
  thrift_spec = (
5569
    (0, TType.BOOL, 'success', None, None, ), # 0
5570
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5571
  )
5572
 
5573
  def __init__(self, success=None, ucx=None,):
5574
    self.success = success
5575
    self.ucx = ucx
5576
 
5577
  def read(self, iprot):
5578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5580
      return
5581
    iprot.readStructBegin()
5582
    while True:
5583
      (fname, ftype, fid) = iprot.readFieldBegin()
5584
      if ftype == TType.STOP:
5585
        break
5586
      if fid == 0:
5587
        if ftype == TType.BOOL:
5588
          self.success = iprot.readBool();
5589
        else:
5590
          iprot.skip(ftype)
5591
      elif fid == 1:
5592
        if ftype == TType.STRUCT:
5593
          self.ucx = UserContextException()
5594
          self.ucx.read(iprot)
5595
        else:
5596
          iprot.skip(ftype)
5597
      else:
5598
        iprot.skip(ftype)
5599
      iprot.readFieldEnd()
5600
    iprot.readStructEnd()
5601
 
5602
  def write(self, oprot):
5603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5605
      return
559 chandransh 5606
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5607
    if self.success is not None:
94 ashish 5608
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5609
      oprot.writeBool(self.success)
5610
      oprot.writeFieldEnd()
3431 rajveer 5611
    if self.ucx is not None:
94 ashish 5612
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5613
      self.ucx.write(oprot)
5614
      oprot.writeFieldEnd()
5615
    oprot.writeFieldStop()
5616
    oprot.writeStructEnd()
5617
 
3431 rajveer 5618
  def validate(self):
5619
    return
5620
 
5621
 
94 ashish 5622
  def __repr__(self):
5623
    L = ['%s=%r' % (key, value)
5624
      for key, value in self.__dict__.iteritems()]
5625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5626
 
5627
  def __eq__(self, other):
5628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5629
 
5630
  def __ne__(self, other):
5631
    return not (self == other)
5632
 
559 chandransh 5633
class setUserAsLoggedIn_args:
94 ashish 5634
  """
5635
  Attributes:
559 chandransh 5636
   - userId
94 ashish 5637
   - timestamp
5638
  """
5639
 
5640
  thrift_spec = (
5641
    None, # 0
559 chandransh 5642
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5643
    (2, TType.I64, 'timestamp', None, None, ), # 2
5644
  )
5645
 
559 chandransh 5646
  def __init__(self, userId=None, timestamp=None,):
5647
    self.userId = userId
94 ashish 5648
    self.timestamp = timestamp
5649
 
5650
  def read(self, iprot):
5651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5653
      return
5654
    iprot.readStructBegin()
5655
    while True:
5656
      (fname, ftype, fid) = iprot.readFieldBegin()
5657
      if ftype == TType.STOP:
5658
        break
5659
      if fid == 1:
559 chandransh 5660
        if ftype == TType.I64:
5661
          self.userId = iprot.readI64();
94 ashish 5662
        else:
5663
          iprot.skip(ftype)
5664
      elif fid == 2:
5665
        if ftype == TType.I64:
5666
          self.timestamp = iprot.readI64();
5667
        else:
5668
          iprot.skip(ftype)
5669
      else:
5670
        iprot.skip(ftype)
5671
      iprot.readFieldEnd()
5672
    iprot.readStructEnd()
5673
 
5674
  def write(self, oprot):
5675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5677
      return
559 chandransh 5678
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5679
    if self.userId is not None:
559 chandransh 5680
      oprot.writeFieldBegin('userId', TType.I64, 1)
5681
      oprot.writeI64(self.userId)
94 ashish 5682
      oprot.writeFieldEnd()
3431 rajveer 5683
    if self.timestamp is not None:
94 ashish 5684
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5685
      oprot.writeI64(self.timestamp)
5686
      oprot.writeFieldEnd()
5687
    oprot.writeFieldStop()
5688
    oprot.writeStructEnd()
5689
 
3431 rajveer 5690
  def validate(self):
5691
    return
5692
 
5693
 
94 ashish 5694
  def __repr__(self):
5695
    L = ['%s=%r' % (key, value)
5696
      for key, value in self.__dict__.iteritems()]
5697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5698
 
5699
  def __eq__(self, other):
5700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5701
 
5702
  def __ne__(self, other):
5703
    return not (self == other)
5704
 
559 chandransh 5705
class setUserAsLoggedIn_result:
94 ashish 5706
  """
5707
  Attributes:
5708
   - success
5709
   - ucx
5710
  """
5711
 
5712
  thrift_spec = (
5713
    (0, TType.BOOL, 'success', None, None, ), # 0
5714
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5715
  )
5716
 
5717
  def __init__(self, success=None, ucx=None,):
5718
    self.success = success
5719
    self.ucx = ucx
5720
 
5721
  def read(self, iprot):
5722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5724
      return
5725
    iprot.readStructBegin()
5726
    while True:
5727
      (fname, ftype, fid) = iprot.readFieldBegin()
5728
      if ftype == TType.STOP:
5729
        break
5730
      if fid == 0:
5731
        if ftype == TType.BOOL:
5732
          self.success = iprot.readBool();
5733
        else:
5734
          iprot.skip(ftype)
5735
      elif fid == 1:
5736
        if ftype == TType.STRUCT:
5737
          self.ucx = UserContextException()
5738
          self.ucx.read(iprot)
5739
        else:
5740
          iprot.skip(ftype)
5741
      else:
5742
        iprot.skip(ftype)
5743
      iprot.readFieldEnd()
5744
    iprot.readStructEnd()
5745
 
5746
  def write(self, oprot):
5747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5749
      return
559 chandransh 5750
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5751
    if self.success is not None:
94 ashish 5752
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5753
      oprot.writeBool(self.success)
5754
      oprot.writeFieldEnd()
3431 rajveer 5755
    if self.ucx is not None:
94 ashish 5756
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5757
      self.ucx.write(oprot)
5758
      oprot.writeFieldEnd()
5759
    oprot.writeFieldStop()
5760
    oprot.writeStructEnd()
5761
 
3431 rajveer 5762
  def validate(self):
5763
    return
5764
 
5765
 
94 ashish 5766
  def __repr__(self):
5767
    L = ['%s=%r' % (key, value)
5768
      for key, value in self.__dict__.iteritems()]
5769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5770
 
5771
  def __eq__(self, other):
5772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5773
 
5774
  def __ne__(self, other):
5775
    return not (self == other)
5776
 
559 chandransh 5777
class setUserAsLoggedOut_args:
94 ashish 5778
  """
5779
  Attributes:
5780
   - userid
5781
   - timestamp
5782
  """
5783
 
5784
  thrift_spec = (
5785
    None, # 0
559 chandransh 5786
    (1, TType.I64, 'userid', None, None, ), # 1
5787
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5788
  )
5789
 
559 chandransh 5790
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5791
    self.userid = userid
5792
    self.timestamp = timestamp
5793
 
5794
  def read(self, iprot):
5795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5797
      return
5798
    iprot.readStructBegin()
5799
    while True:
5800
      (fname, ftype, fid) = iprot.readFieldBegin()
5801
      if ftype == TType.STOP:
5802
        break
5803
      if fid == 1:
5804
        if ftype == TType.I64:
5805
          self.userid = iprot.readI64();
5806
        else:
5807
          iprot.skip(ftype)
559 chandransh 5808
      elif fid == 2:
94 ashish 5809
        if ftype == TType.I64:
5810
          self.timestamp = iprot.readI64();
5811
        else:
5812
          iprot.skip(ftype)
5813
      else:
5814
        iprot.skip(ftype)
5815
      iprot.readFieldEnd()
5816
    iprot.readStructEnd()
5817
 
5818
  def write(self, oprot):
5819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5821
      return
559 chandransh 5822
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5823
    if self.userid is not None:
559 chandransh 5824
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5825
      oprot.writeI64(self.userid)
5826
      oprot.writeFieldEnd()
3431 rajveer 5827
    if self.timestamp is not None:
559 chandransh 5828
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5829
      oprot.writeI64(self.timestamp)
5830
      oprot.writeFieldEnd()
5831
    oprot.writeFieldStop()
5832
    oprot.writeStructEnd()
5833
 
3431 rajveer 5834
  def validate(self):
5835
    return
5836
 
5837
 
94 ashish 5838
  def __repr__(self):
5839
    L = ['%s=%r' % (key, value)
5840
      for key, value in self.__dict__.iteritems()]
5841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5842
 
5843
  def __eq__(self, other):
5844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5845
 
5846
  def __ne__(self, other):
5847
    return not (self == other)
5848
 
559 chandransh 5849
class setUserAsLoggedOut_result:
94 ashish 5850
  """
5851
  Attributes:
5852
   - success
5853
   - ucx
5854
  """
5855
 
5856
  thrift_spec = (
5857
    (0, TType.BOOL, 'success', None, None, ), # 0
5858
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5859
  )
5860
 
5861
  def __init__(self, success=None, ucx=None,):
5862
    self.success = success
5863
    self.ucx = ucx
5864
 
5865
  def read(self, iprot):
5866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5868
      return
5869
    iprot.readStructBegin()
5870
    while True:
5871
      (fname, ftype, fid) = iprot.readFieldBegin()
5872
      if ftype == TType.STOP:
5873
        break
5874
      if fid == 0:
5875
        if ftype == TType.BOOL:
5876
          self.success = iprot.readBool();
5877
        else:
5878
          iprot.skip(ftype)
5879
      elif fid == 1:
5880
        if ftype == TType.STRUCT:
5881
          self.ucx = UserContextException()
5882
          self.ucx.read(iprot)
5883
        else:
5884
          iprot.skip(ftype)
5885
      else:
5886
        iprot.skip(ftype)
5887
      iprot.readFieldEnd()
5888
    iprot.readStructEnd()
5889
 
5890
  def write(self, oprot):
5891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5893
      return
559 chandransh 5894
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5895
    if self.success is not None:
94 ashish 5896
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5897
      oprot.writeBool(self.success)
5898
      oprot.writeFieldEnd()
3431 rajveer 5899
    if self.ucx is not None:
94 ashish 5900
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5901
      self.ucx.write(oprot)
5902
      oprot.writeFieldEnd()
5903
    oprot.writeFieldStop()
5904
    oprot.writeStructEnd()
5905
 
3431 rajveer 5906
  def validate(self):
5907
    return
5908
 
5909
 
94 ashish 5910
  def __repr__(self):
5911
    L = ['%s=%r' % (key, value)
5912
      for key, value in self.__dict__.iteritems()]
5913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5914
 
5915
  def __eq__(self, other):
5916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5917
 
5918
  def __ne__(self, other):
5919
    return not (self == other)
5920
 
559 chandransh 5921
class setDefaultAddress_args:
94 ashish 5922
  """
5923
  Attributes:
5924
   - userid
5925
   - addressId
5926
  """
5927
 
5928
  thrift_spec = (
5929
    None, # 0
5930
    (1, TType.I64, 'userid', None, None, ), # 1
5931
    (2, TType.I64, 'addressId', None, None, ), # 2
5932
  )
5933
 
5934
  def __init__(self, userid=None, addressId=None,):
5935
    self.userid = userid
5936
    self.addressId = addressId
5937
 
5938
  def read(self, iprot):
5939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5941
      return
5942
    iprot.readStructBegin()
5943
    while True:
5944
      (fname, ftype, fid) = iprot.readFieldBegin()
5945
      if ftype == TType.STOP:
5946
        break
5947
      if fid == 1:
5948
        if ftype == TType.I64:
5949
          self.userid = iprot.readI64();
5950
        else:
5951
          iprot.skip(ftype)
5952
      elif fid == 2:
5953
        if ftype == TType.I64:
5954
          self.addressId = iprot.readI64();
5955
        else:
5956
          iprot.skip(ftype)
5957
      else:
5958
        iprot.skip(ftype)
5959
      iprot.readFieldEnd()
5960
    iprot.readStructEnd()
5961
 
5962
  def write(self, oprot):
5963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5965
      return
559 chandransh 5966
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5967
    if self.userid is not None:
94 ashish 5968
      oprot.writeFieldBegin('userid', TType.I64, 1)
5969
      oprot.writeI64(self.userid)
5970
      oprot.writeFieldEnd()
3431 rajveer 5971
    if self.addressId is not None:
94 ashish 5972
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5973
      oprot.writeI64(self.addressId)
5974
      oprot.writeFieldEnd()
5975
    oprot.writeFieldStop()
5976
    oprot.writeStructEnd()
5977
 
3431 rajveer 5978
  def validate(self):
5979
    return
5980
 
5981
 
94 ashish 5982
  def __repr__(self):
5983
    L = ['%s=%r' % (key, value)
5984
      for key, value in self.__dict__.iteritems()]
5985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5986
 
5987
  def __eq__(self, other):
5988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5989
 
5990
  def __ne__(self, other):
5991
    return not (self == other)
5992
 
559 chandransh 5993
class setDefaultAddress_result:
94 ashish 5994
  """
5995
  Attributes:
5996
   - success
5997
   - ucx
5998
  """
5999
 
6000
  thrift_spec = (
6001
    (0, TType.BOOL, 'success', None, None, ), # 0
6002
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6003
  )
6004
 
6005
  def __init__(self, success=None, ucx=None,):
6006
    self.success = success
6007
    self.ucx = ucx
6008
 
6009
  def read(self, iprot):
6010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6012
      return
6013
    iprot.readStructBegin()
6014
    while True:
6015
      (fname, ftype, fid) = iprot.readFieldBegin()
6016
      if ftype == TType.STOP:
6017
        break
6018
      if fid == 0:
6019
        if ftype == TType.BOOL:
6020
          self.success = iprot.readBool();
6021
        else:
6022
          iprot.skip(ftype)
6023
      elif fid == 1:
6024
        if ftype == TType.STRUCT:
6025
          self.ucx = UserContextException()
6026
          self.ucx.read(iprot)
6027
        else:
6028
          iprot.skip(ftype)
6029
      else:
6030
        iprot.skip(ftype)
6031
      iprot.readFieldEnd()
6032
    iprot.readStructEnd()
6033
 
6034
  def write(self, oprot):
6035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6037
      return
559 chandransh 6038
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6039
    if self.success is not None:
94 ashish 6040
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6041
      oprot.writeBool(self.success)
6042
      oprot.writeFieldEnd()
3431 rajveer 6043
    if self.ucx is not None:
94 ashish 6044
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6045
      self.ucx.write(oprot)
6046
      oprot.writeFieldEnd()
6047
    oprot.writeFieldStop()
6048
    oprot.writeStructEnd()
6049
 
3431 rajveer 6050
  def validate(self):
6051
    return
6052
 
6053
 
94 ashish 6054
  def __repr__(self):
6055
    L = ['%s=%r' % (key, value)
6056
      for key, value in self.__dict__.iteritems()]
6057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6058
 
6059
  def __eq__(self, other):
6060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6061
 
6062
  def __ne__(self, other):
6063
    return not (self == other)
6064
 
559 chandransh 6065
class updatePassword_args:
94 ashish 6066
  """
6067
  Attributes:
559 chandransh 6068
   - userid
594 rajveer 6069
   - oldPassword
6070
   - newPassword
94 ashish 6071
  """
6072
 
6073
  thrift_spec = (
6074
    None, # 0
559 chandransh 6075
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6076
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6077
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6078
  )
6079
 
594 rajveer 6080
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6081
    self.userid = userid
594 rajveer 6082
    self.oldPassword = oldPassword
6083
    self.newPassword = newPassword
94 ashish 6084
 
6085
  def read(self, iprot):
6086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6088
      return
6089
    iprot.readStructBegin()
6090
    while True:
6091
      (fname, ftype, fid) = iprot.readFieldBegin()
6092
      if ftype == TType.STOP:
6093
        break
6094
      if fid == 1:
6095
        if ftype == TType.I64:
559 chandransh 6096
          self.userid = iprot.readI64();
94 ashish 6097
        else:
6098
          iprot.skip(ftype)
6099
      elif fid == 2:
559 chandransh 6100
        if ftype == TType.STRING:
594 rajveer 6101
          self.oldPassword = iprot.readString();
94 ashish 6102
        else:
6103
          iprot.skip(ftype)
594 rajveer 6104
      elif fid == 3:
6105
        if ftype == TType.STRING:
6106
          self.newPassword = iprot.readString();
6107
        else:
6108
          iprot.skip(ftype)
94 ashish 6109
      else:
6110
        iprot.skip(ftype)
6111
      iprot.readFieldEnd()
6112
    iprot.readStructEnd()
6113
 
6114
  def write(self, oprot):
6115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6117
      return
559 chandransh 6118
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6119
    if self.userid is not None:
559 chandransh 6120
      oprot.writeFieldBegin('userid', TType.I64, 1)
6121
      oprot.writeI64(self.userid)
94 ashish 6122
      oprot.writeFieldEnd()
3431 rajveer 6123
    if self.oldPassword is not None:
594 rajveer 6124
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6125
      oprot.writeString(self.oldPassword)
94 ashish 6126
      oprot.writeFieldEnd()
3431 rajveer 6127
    if self.newPassword is not None:
594 rajveer 6128
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6129
      oprot.writeString(self.newPassword)
6130
      oprot.writeFieldEnd()
94 ashish 6131
    oprot.writeFieldStop()
6132
    oprot.writeStructEnd()
6133
 
3431 rajveer 6134
  def validate(self):
6135
    return
6136
 
6137
 
94 ashish 6138
  def __repr__(self):
6139
    L = ['%s=%r' % (key, value)
6140
      for key, value in self.__dict__.iteritems()]
6141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6142
 
6143
  def __eq__(self, other):
6144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6145
 
6146
  def __ne__(self, other):
6147
    return not (self == other)
6148
 
559 chandransh 6149
class updatePassword_result:
94 ashish 6150
  """
6151
  Attributes:
6152
   - success
6153
   - ucx
6154
  """
6155
 
6156
  thrift_spec = (
6157
    (0, TType.BOOL, 'success', None, None, ), # 0
6158
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6159
  )
6160
 
6161
  def __init__(self, success=None, ucx=None,):
6162
    self.success = success
6163
    self.ucx = ucx
6164
 
6165
  def read(self, iprot):
6166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6168
      return
6169
    iprot.readStructBegin()
6170
    while True:
6171
      (fname, ftype, fid) = iprot.readFieldBegin()
6172
      if ftype == TType.STOP:
6173
        break
6174
      if fid == 0:
6175
        if ftype == TType.BOOL:
6176
          self.success = iprot.readBool();
6177
        else:
6178
          iprot.skip(ftype)
6179
      elif fid == 1:
6180
        if ftype == TType.STRUCT:
6181
          self.ucx = UserContextException()
6182
          self.ucx.read(iprot)
6183
        else:
6184
          iprot.skip(ftype)
6185
      else:
6186
        iprot.skip(ftype)
6187
      iprot.readFieldEnd()
6188
    iprot.readStructEnd()
6189
 
6190
  def write(self, oprot):
6191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6193
      return
559 chandransh 6194
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6195
    if self.success is not None:
94 ashish 6196
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6197
      oprot.writeBool(self.success)
6198
      oprot.writeFieldEnd()
3431 rajveer 6199
    if self.ucx is not None:
94 ashish 6200
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6201
      self.ucx.write(oprot)
6202
      oprot.writeFieldEnd()
6203
    oprot.writeFieldStop()
6204
    oprot.writeStructEnd()
6205
 
3431 rajveer 6206
  def validate(self):
6207
    return
6208
 
6209
 
94 ashish 6210
  def __repr__(self):
6211
    L = ['%s=%r' % (key, value)
6212
      for key, value in self.__dict__.iteritems()]
6213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6214
 
6215
  def __eq__(self, other):
6216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6217
 
6218
  def __ne__(self, other):
6219
    return not (self == other)
6220
 
581 rajveer 6221
class forgotPassword_args:
6222
  """
6223
  Attributes:
6224
   - email
884 rajveer 6225
   - newPassword
581 rajveer 6226
  """
6227
 
6228
  thrift_spec = (
6229
    None, # 0
6230
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6231
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6232
  )
6233
 
884 rajveer 6234
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6235
    self.email = email
884 rajveer 6236
    self.newPassword = newPassword
581 rajveer 6237
 
6238
  def read(self, iprot):
6239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6241
      return
6242
    iprot.readStructBegin()
6243
    while True:
6244
      (fname, ftype, fid) = iprot.readFieldBegin()
6245
      if ftype == TType.STOP:
6246
        break
6247
      if fid == 1:
6248
        if ftype == TType.STRING:
6249
          self.email = iprot.readString();
6250
        else:
6251
          iprot.skip(ftype)
884 rajveer 6252
      elif fid == 2:
6253
        if ftype == TType.STRING:
6254
          self.newPassword = iprot.readString();
6255
        else:
6256
          iprot.skip(ftype)
581 rajveer 6257
      else:
6258
        iprot.skip(ftype)
6259
      iprot.readFieldEnd()
6260
    iprot.readStructEnd()
6261
 
6262
  def write(self, oprot):
6263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6265
      return
6266
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6267
    if self.email is not None:
581 rajveer 6268
      oprot.writeFieldBegin('email', TType.STRING, 1)
6269
      oprot.writeString(self.email)
6270
      oprot.writeFieldEnd()
3431 rajveer 6271
    if self.newPassword is not None:
884 rajveer 6272
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6273
      oprot.writeString(self.newPassword)
6274
      oprot.writeFieldEnd()
581 rajveer 6275
    oprot.writeFieldStop()
6276
    oprot.writeStructEnd()
6277
 
3431 rajveer 6278
  def validate(self):
6279
    return
6280
 
6281
 
581 rajveer 6282
  def __repr__(self):
6283
    L = ['%s=%r' % (key, value)
6284
      for key, value in self.__dict__.iteritems()]
6285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6286
 
6287
  def __eq__(self, other):
6288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6289
 
6290
  def __ne__(self, other):
6291
    return not (self == other)
6292
 
6293
class forgotPassword_result:
6294
  """
6295
  Attributes:
6296
   - success
6297
   - ucx
6298
  """
6299
 
6300
  thrift_spec = (
6301
    (0, TType.BOOL, 'success', None, None, ), # 0
6302
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6303
  )
6304
 
6305
  def __init__(self, success=None, ucx=None,):
6306
    self.success = success
6307
    self.ucx = ucx
6308
 
6309
  def read(self, iprot):
6310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6312
      return
6313
    iprot.readStructBegin()
6314
    while True:
6315
      (fname, ftype, fid) = iprot.readFieldBegin()
6316
      if ftype == TType.STOP:
6317
        break
6318
      if fid == 0:
6319
        if ftype == TType.BOOL:
6320
          self.success = iprot.readBool();
6321
        else:
6322
          iprot.skip(ftype)
6323
      elif fid == 1:
6324
        if ftype == TType.STRUCT:
6325
          self.ucx = UserContextException()
6326
          self.ucx.read(iprot)
6327
        else:
6328
          iprot.skip(ftype)
6329
      else:
6330
        iprot.skip(ftype)
6331
      iprot.readFieldEnd()
6332
    iprot.readStructEnd()
6333
 
6334
  def write(self, oprot):
6335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6337
      return
6338
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6339
    if self.success is not None:
581 rajveer 6340
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6341
      oprot.writeBool(self.success)
6342
      oprot.writeFieldEnd()
3431 rajveer 6343
    if self.ucx is not None:
581 rajveer 6344
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6345
      self.ucx.write(oprot)
6346
      oprot.writeFieldEnd()
6347
    oprot.writeFieldStop()
6348
    oprot.writeStructEnd()
6349
 
3431 rajveer 6350
  def validate(self):
6351
    return
6352
 
6353
 
581 rajveer 6354
  def __repr__(self):
6355
    L = ['%s=%r' % (key, value)
6356
      for key, value in self.__dict__.iteritems()]
6357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6358
 
6359
  def __eq__(self, other):
6360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6361
 
6362
  def __ne__(self, other):
6363
    return not (self == other)
6364
 
594 rajveer 6365
class getAllAddressesForUser_args:
6366
  """
6367
  Attributes:
6368
   - userId
6369
  """
6370
 
6371
  thrift_spec = (
6372
    None, # 0
6373
    (1, TType.I64, 'userId', None, None, ), # 1
6374
  )
6375
 
6376
  def __init__(self, userId=None,):
6377
    self.userId = userId
6378
 
6379
  def read(self, iprot):
6380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6382
      return
6383
    iprot.readStructBegin()
6384
    while True:
6385
      (fname, ftype, fid) = iprot.readFieldBegin()
6386
      if ftype == TType.STOP:
6387
        break
6388
      if fid == 1:
6389
        if ftype == TType.I64:
6390
          self.userId = iprot.readI64();
6391
        else:
6392
          iprot.skip(ftype)
6393
      else:
6394
        iprot.skip(ftype)
6395
      iprot.readFieldEnd()
6396
    iprot.readStructEnd()
6397
 
6398
  def write(self, oprot):
6399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6401
      return
6402
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6403
    if self.userId is not None:
594 rajveer 6404
      oprot.writeFieldBegin('userId', TType.I64, 1)
6405
      oprot.writeI64(self.userId)
6406
      oprot.writeFieldEnd()
6407
    oprot.writeFieldStop()
6408
    oprot.writeStructEnd()
6409
 
3431 rajveer 6410
  def validate(self):
6411
    return
6412
 
6413
 
594 rajveer 6414
  def __repr__(self):
6415
    L = ['%s=%r' % (key, value)
6416
      for key, value in self.__dict__.iteritems()]
6417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6418
 
6419
  def __eq__(self, other):
6420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6421
 
6422
  def __ne__(self, other):
6423
    return not (self == other)
6424
 
6425
class getAllAddressesForUser_result:
6426
  """
6427
  Attributes:
6428
   - success
6429
   - ucx
6430
  """
6431
 
6432
  thrift_spec = (
6433
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6434
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6435
  )
6436
 
6437
  def __init__(self, success=None, ucx=None,):
6438
    self.success = success
6439
    self.ucx = ucx
6440
 
6441
  def read(self, iprot):
6442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6444
      return
6445
    iprot.readStructBegin()
6446
    while True:
6447
      (fname, ftype, fid) = iprot.readFieldBegin()
6448
      if ftype == TType.STOP:
6449
        break
6450
      if fid == 0:
6451
        if ftype == TType.LIST:
6452
          self.success = []
7746 amit.gupta 6453
          (_etype93, _size90) = iprot.readListBegin()
6454
          for _i94 in xrange(_size90):
6455
            _elem95 = Address()
6456
            _elem95.read(iprot)
6457
            self.success.append(_elem95)
594 rajveer 6458
          iprot.readListEnd()
6459
        else:
6460
          iprot.skip(ftype)
6461
      elif fid == 1:
6462
        if ftype == TType.STRUCT:
6463
          self.ucx = UserContextException()
6464
          self.ucx.read(iprot)
6465
        else:
6466
          iprot.skip(ftype)
6467
      else:
6468
        iprot.skip(ftype)
6469
      iprot.readFieldEnd()
6470
    iprot.readStructEnd()
6471
 
6472
  def write(self, oprot):
6473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6475
      return
6476
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6477
    if self.success is not None:
594 rajveer 6478
      oprot.writeFieldBegin('success', TType.LIST, 0)
6479
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 6480
      for iter96 in self.success:
6481
        iter96.write(oprot)
594 rajveer 6482
      oprot.writeListEnd()
6483
      oprot.writeFieldEnd()
3431 rajveer 6484
    if self.ucx is not None:
594 rajveer 6485
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6486
      self.ucx.write(oprot)
6487
      oprot.writeFieldEnd()
6488
    oprot.writeFieldStop()
6489
    oprot.writeStructEnd()
6490
 
3431 rajveer 6491
  def validate(self):
6492
    return
6493
 
6494
 
594 rajveer 6495
  def __repr__(self):
6496
    L = ['%s=%r' % (key, value)
6497
      for key, value in self.__dict__.iteritems()]
6498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6499
 
6500
  def __eq__(self, other):
6501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6502
 
6503
  def __ne__(self, other):
6504
    return not (self == other)
6505
 
1894 vikas 6506
class getAddressById_args:
6507
  """
6508
  Attributes:
6509
   - addressId
6510
  """
6511
 
6512
  thrift_spec = (
6513
    None, # 0
6514
    (1, TType.I64, 'addressId', None, None, ), # 1
6515
  )
6516
 
6517
  def __init__(self, addressId=None,):
6518
    self.addressId = addressId
6519
 
6520
  def read(self, iprot):
6521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6523
      return
6524
    iprot.readStructBegin()
6525
    while True:
6526
      (fname, ftype, fid) = iprot.readFieldBegin()
6527
      if ftype == TType.STOP:
6528
        break
6529
      if fid == 1:
6530
        if ftype == TType.I64:
6531
          self.addressId = iprot.readI64();
6532
        else:
6533
          iprot.skip(ftype)
6534
      else:
6535
        iprot.skip(ftype)
6536
      iprot.readFieldEnd()
6537
    iprot.readStructEnd()
6538
 
6539
  def write(self, oprot):
6540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6542
      return
6543
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6544
    if self.addressId is not None:
1894 vikas 6545
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6546
      oprot.writeI64(self.addressId)
6547
      oprot.writeFieldEnd()
6548
    oprot.writeFieldStop()
6549
    oprot.writeStructEnd()
6550
 
3431 rajveer 6551
  def validate(self):
6552
    return
6553
 
6554
 
1894 vikas 6555
  def __repr__(self):
6556
    L = ['%s=%r' % (key, value)
6557
      for key, value in self.__dict__.iteritems()]
6558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6559
 
6560
  def __eq__(self, other):
6561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6562
 
6563
  def __ne__(self, other):
6564
    return not (self == other)
6565
 
6566
class getAddressById_result:
6567
  """
6568
  Attributes:
6569
   - success
6570
   - ucx
6571
  """
6572
 
6573
  thrift_spec = (
6574
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6575
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6576
  )
6577
 
6578
  def __init__(self, success=None, ucx=None,):
6579
    self.success = success
6580
    self.ucx = ucx
6581
 
6582
  def read(self, iprot):
6583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6585
      return
6586
    iprot.readStructBegin()
6587
    while True:
6588
      (fname, ftype, fid) = iprot.readFieldBegin()
6589
      if ftype == TType.STOP:
6590
        break
6591
      if fid == 0:
6592
        if ftype == TType.STRUCT:
6593
          self.success = Address()
6594
          self.success.read(iprot)
6595
        else:
6596
          iprot.skip(ftype)
6597
      elif fid == 1:
6598
        if ftype == TType.STRUCT:
6599
          self.ucx = UserContextException()
6600
          self.ucx.read(iprot)
6601
        else:
6602
          iprot.skip(ftype)
6603
      else:
6604
        iprot.skip(ftype)
6605
      iprot.readFieldEnd()
6606
    iprot.readStructEnd()
6607
 
6608
  def write(self, oprot):
6609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6611
      return
6612
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6613
    if self.success is not None:
1894 vikas 6614
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6615
      self.success.write(oprot)
6616
      oprot.writeFieldEnd()
3431 rajveer 6617
    if self.ucx is not None:
1894 vikas 6618
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6619
      self.ucx.write(oprot)
6620
      oprot.writeFieldEnd()
6621
    oprot.writeFieldStop()
6622
    oprot.writeStructEnd()
6623
 
3431 rajveer 6624
  def validate(self):
6625
    return
6626
 
6627
 
1894 vikas 6628
  def __repr__(self):
6629
    L = ['%s=%r' % (key, value)
6630
      for key, value in self.__dict__.iteritems()]
6631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6632
 
6633
  def __eq__(self, other):
6634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6635
 
6636
  def __ne__(self, other):
6637
    return not (self == other)
6638
 
594 rajveer 6639
class getDefaultAddressId_args:
6640
  """
6641
  Attributes:
6642
   - userId
6643
  """
6644
 
6645
  thrift_spec = (
6646
    None, # 0
6647
    (1, TType.I64, 'userId', None, None, ), # 1
6648
  )
6649
 
6650
  def __init__(self, userId=None,):
6651
    self.userId = userId
6652
 
6653
  def read(self, iprot):
6654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6656
      return
6657
    iprot.readStructBegin()
6658
    while True:
6659
      (fname, ftype, fid) = iprot.readFieldBegin()
6660
      if ftype == TType.STOP:
6661
        break
6662
      if fid == 1:
6663
        if ftype == TType.I64:
6664
          self.userId = iprot.readI64();
6665
        else:
6666
          iprot.skip(ftype)
6667
      else:
6668
        iprot.skip(ftype)
6669
      iprot.readFieldEnd()
6670
    iprot.readStructEnd()
6671
 
6672
  def write(self, oprot):
6673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6675
      return
6676
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6677
    if self.userId is not None:
594 rajveer 6678
      oprot.writeFieldBegin('userId', TType.I64, 1)
6679
      oprot.writeI64(self.userId)
6680
      oprot.writeFieldEnd()
6681
    oprot.writeFieldStop()
6682
    oprot.writeStructEnd()
6683
 
3431 rajveer 6684
  def validate(self):
6685
    return
6686
 
6687
 
594 rajveer 6688
  def __repr__(self):
6689
    L = ['%s=%r' % (key, value)
6690
      for key, value in self.__dict__.iteritems()]
6691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6692
 
6693
  def __eq__(self, other):
6694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6695
 
6696
  def __ne__(self, other):
6697
    return not (self == other)
6698
 
6699
class getDefaultAddressId_result:
6700
  """
6701
  Attributes:
6702
   - success
6703
   - ucx
6704
  """
6705
 
6706
  thrift_spec = (
6707
    (0, TType.I64, 'success', None, None, ), # 0
6708
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6709
  )
6710
 
6711
  def __init__(self, success=None, ucx=None,):
6712
    self.success = success
6713
    self.ucx = ucx
6714
 
6715
  def read(self, iprot):
6716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6718
      return
6719
    iprot.readStructBegin()
6720
    while True:
6721
      (fname, ftype, fid) = iprot.readFieldBegin()
6722
      if ftype == TType.STOP:
6723
        break
6724
      if fid == 0:
6725
        if ftype == TType.I64:
6726
          self.success = iprot.readI64();
6727
        else:
6728
          iprot.skip(ftype)
6729
      elif fid == 1:
6730
        if ftype == TType.STRUCT:
6731
          self.ucx = UserContextException()
6732
          self.ucx.read(iprot)
6733
        else:
6734
          iprot.skip(ftype)
6735
      else:
6736
        iprot.skip(ftype)
6737
      iprot.readFieldEnd()
6738
    iprot.readStructEnd()
6739
 
6740
  def write(self, oprot):
6741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6743
      return
6744
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6745
    if self.success is not None:
594 rajveer 6746
      oprot.writeFieldBegin('success', TType.I64, 0)
6747
      oprot.writeI64(self.success)
6748
      oprot.writeFieldEnd()
3431 rajveer 6749
    if self.ucx is not None:
594 rajveer 6750
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6751
      self.ucx.write(oprot)
6752
      oprot.writeFieldEnd()
6753
    oprot.writeFieldStop()
6754
    oprot.writeStructEnd()
6755
 
3431 rajveer 6756
  def validate(self):
6757
    return
6758
 
6759
 
594 rajveer 6760
  def __repr__(self):
6761
    L = ['%s=%r' % (key, value)
6762
      for key, value in self.__dict__.iteritems()]
6763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6764
 
6765
  def __eq__(self, other):
6766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6767
 
6768
  def __ne__(self, other):
6769
    return not (self == other)
6770
 
785 rajveer 6771
class getDefaultPincode_args:
6772
  """
6773
  Attributes:
6774
   - userId
6775
  """
6776
 
6777
  thrift_spec = (
6778
    None, # 0
6779
    (1, TType.I64, 'userId', None, None, ), # 1
6780
  )
6781
 
6782
  def __init__(self, userId=None,):
6783
    self.userId = userId
6784
 
6785
  def read(self, iprot):
6786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6788
      return
6789
    iprot.readStructBegin()
6790
    while True:
6791
      (fname, ftype, fid) = iprot.readFieldBegin()
6792
      if ftype == TType.STOP:
6793
        break
6794
      if fid == 1:
6795
        if ftype == TType.I64:
6796
          self.userId = iprot.readI64();
6797
        else:
6798
          iprot.skip(ftype)
6799
      else:
6800
        iprot.skip(ftype)
6801
      iprot.readFieldEnd()
6802
    iprot.readStructEnd()
6803
 
6804
  def write(self, oprot):
6805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6807
      return
6808
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6809
    if self.userId is not None:
785 rajveer 6810
      oprot.writeFieldBegin('userId', TType.I64, 1)
6811
      oprot.writeI64(self.userId)
6812
      oprot.writeFieldEnd()
6813
    oprot.writeFieldStop()
6814
    oprot.writeStructEnd()
6815
 
3431 rajveer 6816
  def validate(self):
6817
    return
6818
 
6819
 
785 rajveer 6820
  def __repr__(self):
6821
    L = ['%s=%r' % (key, value)
6822
      for key, value in self.__dict__.iteritems()]
6823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6824
 
6825
  def __eq__(self, other):
6826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6827
 
6828
  def __ne__(self, other):
6829
    return not (self == other)
6830
 
6831
class getDefaultPincode_result:
6832
  """
6833
  Attributes:
6834
   - success
6835
   - ucx
6836
  """
6837
 
6838
  thrift_spec = (
6839
    (0, TType.STRING, 'success', None, None, ), # 0
6840
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6841
  )
6842
 
6843
  def __init__(self, success=None, ucx=None,):
6844
    self.success = success
6845
    self.ucx = ucx
6846
 
6847
  def read(self, iprot):
6848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6850
      return
6851
    iprot.readStructBegin()
6852
    while True:
6853
      (fname, ftype, fid) = iprot.readFieldBegin()
6854
      if ftype == TType.STOP:
6855
        break
6856
      if fid == 0:
6857
        if ftype == TType.STRING:
6858
          self.success = iprot.readString();
6859
        else:
6860
          iprot.skip(ftype)
6861
      elif fid == 1:
6862
        if ftype == TType.STRUCT:
6863
          self.ucx = UserContextException()
6864
          self.ucx.read(iprot)
6865
        else:
6866
          iprot.skip(ftype)
6867
      else:
6868
        iprot.skip(ftype)
6869
      iprot.readFieldEnd()
6870
    iprot.readStructEnd()
6871
 
6872
  def write(self, oprot):
6873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6875
      return
6876
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6877
    if self.success is not None:
785 rajveer 6878
      oprot.writeFieldBegin('success', TType.STRING, 0)
6879
      oprot.writeString(self.success)
6880
      oprot.writeFieldEnd()
3431 rajveer 6881
    if self.ucx is not None:
785 rajveer 6882
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6883
      self.ucx.write(oprot)
6884
      oprot.writeFieldEnd()
6885
    oprot.writeFieldStop()
6886
    oprot.writeStructEnd()
6887
 
3431 rajveer 6888
  def validate(self):
6889
    return
6890
 
6891
 
785 rajveer 6892
  def __repr__(self):
6893
    L = ['%s=%r' % (key, value)
6894
      for key, value in self.__dict__.iteritems()]
6895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6896
 
6897
  def __eq__(self, other):
6898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6899
 
6900
  def __ne__(self, other):
6901
    return not (self == other)
6902
 
1274 varun.gupt 6903
class saveUserCommunication_args:
6904
  """
6905
  Attributes:
6906
   - userId
6907
   - replyTo
6908
   - communicationType
6909
   - orderId
6910
   - airwaybillNo
6911
   - productName
6912
   - subject
6913
   - message
6914
  """
6915
 
6916
  thrift_spec = (
6917
    None, # 0
6918
    (1, TType.I64, 'userId', None, None, ), # 1
6919
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6920
    (3, TType.I64, 'communicationType', None, None, ), # 3
6921
    (4, TType.I64, 'orderId', None, None, ), # 4
6922
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6923
    (6, TType.STRING, 'productName', None, None, ), # 6
6924
    (7, TType.STRING, 'subject', None, None, ), # 7
6925
    (8, TType.STRING, 'message', None, None, ), # 8
6926
  )
6927
 
6928
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6929
    self.userId = userId
6930
    self.replyTo = replyTo
6931
    self.communicationType = communicationType
6932
    self.orderId = orderId
6933
    self.airwaybillNo = airwaybillNo
6934
    self.productName = productName
6935
    self.subject = subject
6936
    self.message = message
6937
 
6938
  def read(self, iprot):
6939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6941
      return
6942
    iprot.readStructBegin()
6943
    while True:
6944
      (fname, ftype, fid) = iprot.readFieldBegin()
6945
      if ftype == TType.STOP:
6946
        break
6947
      if fid == 1:
6948
        if ftype == TType.I64:
6949
          self.userId = iprot.readI64();
6950
        else:
6951
          iprot.skip(ftype)
6952
      elif fid == 2:
6953
        if ftype == TType.STRING:
6954
          self.replyTo = iprot.readString();
6955
        else:
6956
          iprot.skip(ftype)
6957
      elif fid == 3:
6958
        if ftype == TType.I64:
6959
          self.communicationType = iprot.readI64();
6960
        else:
6961
          iprot.skip(ftype)
6962
      elif fid == 4:
6963
        if ftype == TType.I64:
6964
          self.orderId = iprot.readI64();
6965
        else:
6966
          iprot.skip(ftype)
6967
      elif fid == 5:
6968
        if ftype == TType.STRING:
6969
          self.airwaybillNo = iprot.readString();
6970
        else:
6971
          iprot.skip(ftype)
6972
      elif fid == 6:
6973
        if ftype == TType.STRING:
6974
          self.productName = iprot.readString();
6975
        else:
6976
          iprot.skip(ftype)
6977
      elif fid == 7:
6978
        if ftype == TType.STRING:
6979
          self.subject = iprot.readString();
6980
        else:
6981
          iprot.skip(ftype)
6982
      elif fid == 8:
6983
        if ftype == TType.STRING:
6984
          self.message = iprot.readString();
6985
        else:
6986
          iprot.skip(ftype)
6987
      else:
6988
        iprot.skip(ftype)
6989
      iprot.readFieldEnd()
6990
    iprot.readStructEnd()
6991
 
6992
  def write(self, oprot):
6993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6995
      return
6996
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6997
    if self.userId is not None:
1274 varun.gupt 6998
      oprot.writeFieldBegin('userId', TType.I64, 1)
6999
      oprot.writeI64(self.userId)
7000
      oprot.writeFieldEnd()
3431 rajveer 7001
    if self.replyTo is not None:
1274 varun.gupt 7002
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7003
      oprot.writeString(self.replyTo)
7004
      oprot.writeFieldEnd()
3431 rajveer 7005
    if self.communicationType is not None:
1274 varun.gupt 7006
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7007
      oprot.writeI64(self.communicationType)
7008
      oprot.writeFieldEnd()
3431 rajveer 7009
    if self.orderId is not None:
1274 varun.gupt 7010
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7011
      oprot.writeI64(self.orderId)
7012
      oprot.writeFieldEnd()
3431 rajveer 7013
    if self.airwaybillNo is not None:
1274 varun.gupt 7014
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7015
      oprot.writeString(self.airwaybillNo)
7016
      oprot.writeFieldEnd()
3431 rajveer 7017
    if self.productName is not None:
1274 varun.gupt 7018
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7019
      oprot.writeString(self.productName)
7020
      oprot.writeFieldEnd()
3431 rajveer 7021
    if self.subject is not None:
1274 varun.gupt 7022
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7023
      oprot.writeString(self.subject)
7024
      oprot.writeFieldEnd()
3431 rajveer 7025
    if self.message is not None:
1274 varun.gupt 7026
      oprot.writeFieldBegin('message', TType.STRING, 8)
7027
      oprot.writeString(self.message)
7028
      oprot.writeFieldEnd()
7029
    oprot.writeFieldStop()
7030
    oprot.writeStructEnd()
7031
 
3431 rajveer 7032
  def validate(self):
7033
    return
7034
 
7035
 
1274 varun.gupt 7036
  def __repr__(self):
7037
    L = ['%s=%r' % (key, value)
7038
      for key, value in self.__dict__.iteritems()]
7039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7040
 
7041
  def __eq__(self, other):
7042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7043
 
7044
  def __ne__(self, other):
7045
    return not (self == other)
7046
 
7047
class saveUserCommunication_result:
7048
  """
7049
  Attributes:
7050
   - success
7051
   - ucx
7052
  """
7053
 
7054
  thrift_spec = (
7055
    (0, TType.BOOL, 'success', None, None, ), # 0
7056
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7057
  )
7058
 
7059
  def __init__(self, success=None, ucx=None,):
7060
    self.success = success
7061
    self.ucx = ucx
7062
 
7063
  def read(self, iprot):
7064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7066
      return
7067
    iprot.readStructBegin()
7068
    while True:
7069
      (fname, ftype, fid) = iprot.readFieldBegin()
7070
      if ftype == TType.STOP:
7071
        break
7072
      if fid == 0:
7073
        if ftype == TType.BOOL:
7074
          self.success = iprot.readBool();
7075
        else:
7076
          iprot.skip(ftype)
7077
      elif fid == 1:
7078
        if ftype == TType.STRUCT:
7079
          self.ucx = UserCommunicationException()
7080
          self.ucx.read(iprot)
7081
        else:
7082
          iprot.skip(ftype)
7083
      else:
7084
        iprot.skip(ftype)
7085
      iprot.readFieldEnd()
7086
    iprot.readStructEnd()
7087
 
7088
  def write(self, oprot):
7089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7091
      return
7092
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7093
    if self.success is not None:
1274 varun.gupt 7094
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7095
      oprot.writeBool(self.success)
7096
      oprot.writeFieldEnd()
3431 rajveer 7097
    if self.ucx is not None:
1274 varun.gupt 7098
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7099
      self.ucx.write(oprot)
7100
      oprot.writeFieldEnd()
7101
    oprot.writeFieldStop()
7102
    oprot.writeStructEnd()
7103
 
3431 rajveer 7104
  def validate(self):
7105
    return
7106
 
7107
 
1274 varun.gupt 7108
  def __repr__(self):
7109
    L = ['%s=%r' % (key, value)
7110
      for key, value in self.__dict__.iteritems()]
7111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7112
 
7113
  def __eq__(self, other):
7114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7115
 
7116
  def __ne__(self, other):
7117
    return not (self == other)
7118
 
1590 varun.gupt 7119
class getUserCommunicationById_args:
7120
  """
7121
  Attributes:
7122
   - id
7123
  """
7124
 
7125
  thrift_spec = (
7126
    None, # 0
7127
    (1, TType.I64, 'id', None, None, ), # 1
7128
  )
7129
 
7130
  def __init__(self, id=None,):
7131
    self.id = id
7132
 
7133
  def read(self, iprot):
7134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7136
      return
7137
    iprot.readStructBegin()
7138
    while True:
7139
      (fname, ftype, fid) = iprot.readFieldBegin()
7140
      if ftype == TType.STOP:
7141
        break
7142
      if fid == 1:
7143
        if ftype == TType.I64:
7144
          self.id = iprot.readI64();
7145
        else:
7146
          iprot.skip(ftype)
7147
      else:
7148
        iprot.skip(ftype)
7149
      iprot.readFieldEnd()
7150
    iprot.readStructEnd()
7151
 
7152
  def write(self, oprot):
7153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7155
      return
7156
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7157
    if self.id is not None:
1590 varun.gupt 7158
      oprot.writeFieldBegin('id', TType.I64, 1)
7159
      oprot.writeI64(self.id)
7160
      oprot.writeFieldEnd()
7161
    oprot.writeFieldStop()
7162
    oprot.writeStructEnd()
7163
 
3431 rajveer 7164
  def validate(self):
7165
    return
7166
 
7167
 
1590 varun.gupt 7168
  def __repr__(self):
7169
    L = ['%s=%r' % (key, value)
7170
      for key, value in self.__dict__.iteritems()]
7171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7172
 
7173
  def __eq__(self, other):
7174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7175
 
7176
  def __ne__(self, other):
7177
    return not (self == other)
7178
 
7179
class getUserCommunicationById_result:
7180
  """
7181
  Attributes:
7182
   - success
7183
   - ucx
7184
  """
7185
 
7186
  thrift_spec = (
7187
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7188
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7189
  )
7190
 
7191
  def __init__(self, success=None, ucx=None,):
7192
    self.success = success
7193
    self.ucx = ucx
7194
 
7195
  def read(self, iprot):
7196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7198
      return
7199
    iprot.readStructBegin()
7200
    while True:
7201
      (fname, ftype, fid) = iprot.readFieldBegin()
7202
      if ftype == TType.STOP:
7203
        break
7204
      if fid == 0:
7205
        if ftype == TType.STRUCT:
7206
          self.success = UserCommunication()
7207
          self.success.read(iprot)
7208
        else:
7209
          iprot.skip(ftype)
7210
      elif fid == 1:
7211
        if ftype == TType.STRUCT:
7212
          self.ucx = UserCommunicationException()
7213
          self.ucx.read(iprot)
7214
        else:
7215
          iprot.skip(ftype)
7216
      else:
7217
        iprot.skip(ftype)
7218
      iprot.readFieldEnd()
7219
    iprot.readStructEnd()
7220
 
7221
  def write(self, oprot):
7222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7224
      return
7225
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7226
    if self.success is not None:
1590 varun.gupt 7227
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7228
      self.success.write(oprot)
7229
      oprot.writeFieldEnd()
3431 rajveer 7230
    if self.ucx is not None:
1590 varun.gupt 7231
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7232
      self.ucx.write(oprot)
7233
      oprot.writeFieldEnd()
7234
    oprot.writeFieldStop()
7235
    oprot.writeStructEnd()
7236
 
3431 rajveer 7237
  def validate(self):
7238
    return
7239
 
7240
 
1590 varun.gupt 7241
  def __repr__(self):
7242
    L = ['%s=%r' % (key, value)
7243
      for key, value in self.__dict__.iteritems()]
7244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7245
 
7246
  def __eq__(self, other):
7247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7248
 
7249
  def __ne__(self, other):
7250
    return not (self == other)
7251
 
7252
class getUserCommunicationByUser_args:
7253
  """
7254
  Attributes:
7255
   - userId
7256
  """
7257
 
7258
  thrift_spec = (
7259
    None, # 0
7260
    (1, TType.I64, 'userId', None, None, ), # 1
7261
  )
7262
 
7263
  def __init__(self, userId=None,):
7264
    self.userId = userId
7265
 
7266
  def read(self, iprot):
7267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7269
      return
7270
    iprot.readStructBegin()
7271
    while True:
7272
      (fname, ftype, fid) = iprot.readFieldBegin()
7273
      if ftype == TType.STOP:
7274
        break
7275
      if fid == 1:
7276
        if ftype == TType.I64:
7277
          self.userId = iprot.readI64();
7278
        else:
7279
          iprot.skip(ftype)
7280
      else:
7281
        iprot.skip(ftype)
7282
      iprot.readFieldEnd()
7283
    iprot.readStructEnd()
7284
 
7285
  def write(self, oprot):
7286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7288
      return
7289
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7290
    if self.userId is not None:
1590 varun.gupt 7291
      oprot.writeFieldBegin('userId', TType.I64, 1)
7292
      oprot.writeI64(self.userId)
7293
      oprot.writeFieldEnd()
7294
    oprot.writeFieldStop()
7295
    oprot.writeStructEnd()
7296
 
3431 rajveer 7297
  def validate(self):
7298
    return
7299
 
7300
 
1590 varun.gupt 7301
  def __repr__(self):
7302
    L = ['%s=%r' % (key, value)
7303
      for key, value in self.__dict__.iteritems()]
7304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7305
 
7306
  def __eq__(self, other):
7307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7308
 
7309
  def __ne__(self, other):
7310
    return not (self == other)
7311
 
7312
class getUserCommunicationByUser_result:
7313
  """
7314
  Attributes:
7315
   - success
7316
   - ucx
7317
  """
7318
 
7319
  thrift_spec = (
7320
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7321
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7322
  )
7323
 
7324
  def __init__(self, success=None, ucx=None,):
7325
    self.success = success
7326
    self.ucx = ucx
7327
 
7328
  def read(self, iprot):
7329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7331
      return
7332
    iprot.readStructBegin()
7333
    while True:
7334
      (fname, ftype, fid) = iprot.readFieldBegin()
7335
      if ftype == TType.STOP:
7336
        break
7337
      if fid == 0:
7338
        if ftype == TType.LIST:
7339
          self.success = []
7746 amit.gupta 7340
          (_etype100, _size97) = iprot.readListBegin()
7341
          for _i101 in xrange(_size97):
7342
            _elem102 = UserCommunication()
7343
            _elem102.read(iprot)
7344
            self.success.append(_elem102)
1590 varun.gupt 7345
          iprot.readListEnd()
7346
        else:
7347
          iprot.skip(ftype)
7348
      elif fid == 1:
7349
        if ftype == TType.STRUCT:
7350
          self.ucx = UserCommunicationException()
7351
          self.ucx.read(iprot)
7352
        else:
7353
          iprot.skip(ftype)
7354
      else:
7355
        iprot.skip(ftype)
7356
      iprot.readFieldEnd()
7357
    iprot.readStructEnd()
7358
 
7359
  def write(self, oprot):
7360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7362
      return
7363
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7364
    if self.success is not None:
1590 varun.gupt 7365
      oprot.writeFieldBegin('success', TType.LIST, 0)
7366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 7367
      for iter103 in self.success:
7368
        iter103.write(oprot)
1590 varun.gupt 7369
      oprot.writeListEnd()
7370
      oprot.writeFieldEnd()
3431 rajveer 7371
    if self.ucx is not None:
1590 varun.gupt 7372
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7373
      self.ucx.write(oprot)
7374
      oprot.writeFieldEnd()
7375
    oprot.writeFieldStop()
7376
    oprot.writeStructEnd()
7377
 
3431 rajveer 7378
  def validate(self):
7379
    return
7380
 
7381
 
1590 varun.gupt 7382
  def __repr__(self):
7383
    L = ['%s=%r' % (key, value)
7384
      for key, value in self.__dict__.iteritems()]
7385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7386
 
7387
  def __eq__(self, other):
7388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7389
 
7390
  def __ne__(self, other):
7391
    return not (self == other)
7392
 
7393
class getAllUserCommunications_args:
7394
 
7395
  thrift_spec = (
7396
  )
7397
 
7398
  def read(self, iprot):
7399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7401
      return
7402
    iprot.readStructBegin()
7403
    while True:
7404
      (fname, ftype, fid) = iprot.readFieldBegin()
7405
      if ftype == TType.STOP:
7406
        break
7407
      else:
7408
        iprot.skip(ftype)
7409
      iprot.readFieldEnd()
7410
    iprot.readStructEnd()
7411
 
7412
  def write(self, oprot):
7413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7415
      return
7416
    oprot.writeStructBegin('getAllUserCommunications_args')
7417
    oprot.writeFieldStop()
7418
    oprot.writeStructEnd()
7419
 
3431 rajveer 7420
  def validate(self):
7421
    return
7422
 
7423
 
1590 varun.gupt 7424
  def __repr__(self):
7425
    L = ['%s=%r' % (key, value)
7426
      for key, value in self.__dict__.iteritems()]
7427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7428
 
7429
  def __eq__(self, other):
7430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7431
 
7432
  def __ne__(self, other):
7433
    return not (self == other)
7434
 
7435
class getAllUserCommunications_result:
7436
  """
7437
  Attributes:
7438
   - success
7439
   - ucx
7440
  """
7441
 
7442
  thrift_spec = (
7443
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7444
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7445
  )
7446
 
7447
  def __init__(self, success=None, ucx=None,):
7448
    self.success = success
7449
    self.ucx = ucx
7450
 
7451
  def read(self, iprot):
7452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7454
      return
7455
    iprot.readStructBegin()
7456
    while True:
7457
      (fname, ftype, fid) = iprot.readFieldBegin()
7458
      if ftype == TType.STOP:
7459
        break
7460
      if fid == 0:
7461
        if ftype == TType.LIST:
7462
          self.success = []
7746 amit.gupta 7463
          (_etype107, _size104) = iprot.readListBegin()
7464
          for _i108 in xrange(_size104):
7465
            _elem109 = UserCommunication()
7466
            _elem109.read(iprot)
7467
            self.success.append(_elem109)
1590 varun.gupt 7468
          iprot.readListEnd()
7469
        else:
7470
          iprot.skip(ftype)
7471
      elif fid == 1:
7472
        if ftype == TType.STRUCT:
7473
          self.ucx = UserCommunicationException()
7474
          self.ucx.read(iprot)
7475
        else:
7476
          iprot.skip(ftype)
7477
      else:
7478
        iprot.skip(ftype)
7479
      iprot.readFieldEnd()
7480
    iprot.readStructEnd()
7481
 
7482
  def write(self, oprot):
7483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7485
      return
7486
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7487
    if self.success is not None:
1590 varun.gupt 7488
      oprot.writeFieldBegin('success', TType.LIST, 0)
7489
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 7490
      for iter110 in self.success:
7491
        iter110.write(oprot)
1590 varun.gupt 7492
      oprot.writeListEnd()
7493
      oprot.writeFieldEnd()
3431 rajveer 7494
    if self.ucx is not None:
1590 varun.gupt 7495
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7496
      self.ucx.write(oprot)
7497
      oprot.writeFieldEnd()
7498
    oprot.writeFieldStop()
7499
    oprot.writeStructEnd()
7500
 
3431 rajveer 7501
  def validate(self):
7502
    return
7503
 
7504
 
1590 varun.gupt 7505
  def __repr__(self):
7506
    L = ['%s=%r' % (key, value)
7507
      for key, value in self.__dict__.iteritems()]
7508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7509
 
7510
  def __eq__(self, other):
7511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7512
 
7513
  def __ne__(self, other):
7514
    return not (self == other)
7515
 
5407 amar.kumar 7516
class removeUserCommunication_args:
7517
  """
7518
  Attributes:
7519
   - id
7520
  """
7521
 
7522
  thrift_spec = (
7523
    None, # 0
7524
    (1, TType.I64, 'id', None, None, ), # 1
7525
  )
7526
 
7527
  def __init__(self, id=None,):
7528
    self.id = id
7529
 
7530
  def read(self, iprot):
7531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7533
      return
7534
    iprot.readStructBegin()
7535
    while True:
7536
      (fname, ftype, fid) = iprot.readFieldBegin()
7537
      if ftype == TType.STOP:
7538
        break
7539
      if fid == 1:
7540
        if ftype == TType.I64:
7541
          self.id = iprot.readI64();
7542
        else:
7543
          iprot.skip(ftype)
7544
      else:
7545
        iprot.skip(ftype)
7546
      iprot.readFieldEnd()
7547
    iprot.readStructEnd()
7548
 
7549
  def write(self, oprot):
7550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7552
      return
7553
    oprot.writeStructBegin('removeUserCommunication_args')
7554
    if self.id is not None:
7555
      oprot.writeFieldBegin('id', TType.I64, 1)
7556
      oprot.writeI64(self.id)
7557
      oprot.writeFieldEnd()
7558
    oprot.writeFieldStop()
7559
    oprot.writeStructEnd()
7560
 
7561
  def validate(self):
7562
    return
7563
 
7564
 
7565
  def __repr__(self):
7566
    L = ['%s=%r' % (key, value)
7567
      for key, value in self.__dict__.iteritems()]
7568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7569
 
7570
  def __eq__(self, other):
7571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7572
 
7573
  def __ne__(self, other):
7574
    return not (self == other)
7575
 
7576
class removeUserCommunication_result:
7577
  """
7578
  Attributes:
7579
   - ucx
7580
  """
7581
 
7582
  thrift_spec = (
7583
    None, # 0
7584
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7585
  )
7586
 
7587
  def __init__(self, ucx=None,):
7588
    self.ucx = ucx
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.STRUCT:
7601
          self.ucx = UserCommunicationException()
7602
          self.ucx.read(iprot)
7603
        else:
7604
          iprot.skip(ftype)
7605
      else:
7606
        iprot.skip(ftype)
7607
      iprot.readFieldEnd()
7608
    iprot.readStructEnd()
7609
 
7610
  def write(self, oprot):
7611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7613
      return
7614
    oprot.writeStructBegin('removeUserCommunication_result')
7615
    if self.ucx is not None:
7616
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7617
      self.ucx.write(oprot)
7618
      oprot.writeFieldEnd()
7619
    oprot.writeFieldStop()
7620
    oprot.writeStructEnd()
7621
 
7622
  def validate(self):
7623
    return
7624
 
7625
 
7626
  def __repr__(self):
7627
    L = ['%s=%r' % (key, value)
7628
      for key, value in self.__dict__.iteritems()]
7629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7630
 
7631
  def __eq__(self, other):
7632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7633
 
7634
  def __ne__(self, other):
7635
    return not (self == other)
7636
 
1845 vikas 7637
class createMasterAffiliate_args:
7638
  """
7639
  Attributes:
7640
   - name
1859 vikas 7641
   - addedOn
1845 vikas 7642
  """
7643
 
7644
  thrift_spec = (
7645
    None, # 0
7646
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7647
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7648
  )
7649
 
1859 vikas 7650
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7651
    self.name = name
1859 vikas 7652
    self.addedOn = addedOn
1845 vikas 7653
 
7654
  def read(self, iprot):
7655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7657
      return
7658
    iprot.readStructBegin()
7659
    while True:
7660
      (fname, ftype, fid) = iprot.readFieldBegin()
7661
      if ftype == TType.STOP:
7662
        break
7663
      if fid == 1:
7664
        if ftype == TType.STRING:
7665
          self.name = iprot.readString();
7666
        else:
7667
          iprot.skip(ftype)
1859 vikas 7668
      elif fid == 2:
7669
        if ftype == TType.I64:
7670
          self.addedOn = iprot.readI64();
7671
        else:
7672
          iprot.skip(ftype)
1845 vikas 7673
      else:
7674
        iprot.skip(ftype)
7675
      iprot.readFieldEnd()
7676
    iprot.readStructEnd()
7677
 
7678
  def write(self, oprot):
7679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7681
      return
7682
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7683
    if self.name is not None:
1845 vikas 7684
      oprot.writeFieldBegin('name', TType.STRING, 1)
7685
      oprot.writeString(self.name)
7686
      oprot.writeFieldEnd()
3431 rajveer 7687
    if self.addedOn is not None:
1859 vikas 7688
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7689
      oprot.writeI64(self.addedOn)
7690
      oprot.writeFieldEnd()
1845 vikas 7691
    oprot.writeFieldStop()
7692
    oprot.writeStructEnd()
7693
 
3431 rajveer 7694
  def validate(self):
7695
    return
7696
 
7697
 
1845 vikas 7698
  def __repr__(self):
7699
    L = ['%s=%r' % (key, value)
7700
      for key, value in self.__dict__.iteritems()]
7701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7702
 
7703
  def __eq__(self, other):
7704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7705
 
7706
  def __ne__(self, other):
7707
    return not (self == other)
7708
 
7709
class createMasterAffiliate_result:
7710
  """
7711
  Attributes:
7712
   - success
7713
   - utx
7714
  """
7715
 
7716
  thrift_spec = (
7717
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7718
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7719
  )
7720
 
7721
  def __init__(self, success=None, utx=None,):
7722
    self.success = success
7723
    self.utx = utx
7724
 
7725
  def read(self, iprot):
7726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7728
      return
7729
    iprot.readStructBegin()
7730
    while True:
7731
      (fname, ftype, fid) = iprot.readFieldBegin()
7732
      if ftype == TType.STOP:
7733
        break
7734
      if fid == 0:
7735
        if ftype == TType.STRUCT:
7736
          self.success = MasterAffiliate()
7737
          self.success.read(iprot)
7738
        else:
7739
          iprot.skip(ftype)
7740
      elif fid == 1:
7741
        if ftype == TType.STRUCT:
1996 vikas 7742
          self.utx = UserAffiliateException()
1845 vikas 7743
          self.utx.read(iprot)
7744
        else:
7745
          iprot.skip(ftype)
7746
      else:
7747
        iprot.skip(ftype)
7748
      iprot.readFieldEnd()
7749
    iprot.readStructEnd()
7750
 
7751
  def write(self, oprot):
7752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7754
      return
7755
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7756
    if self.success is not None:
1845 vikas 7757
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7758
      self.success.write(oprot)
7759
      oprot.writeFieldEnd()
3431 rajveer 7760
    if self.utx is not None:
1845 vikas 7761
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7762
      self.utx.write(oprot)
7763
      oprot.writeFieldEnd()
7764
    oprot.writeFieldStop()
7765
    oprot.writeStructEnd()
7766
 
3431 rajveer 7767
  def validate(self):
7768
    return
7769
 
7770
 
1845 vikas 7771
  def __repr__(self):
7772
    L = ['%s=%r' % (key, value)
7773
      for key, value in self.__dict__.iteritems()]
7774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7775
 
7776
  def __eq__(self, other):
7777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7778
 
7779
  def __ne__(self, other):
7780
    return not (self == other)
7781
 
1899 vikas 7782
class getAllMasterAffiliates_args:
7783
 
7784
  thrift_spec = (
7785
  )
7786
 
7787
  def read(self, iprot):
7788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7790
      return
7791
    iprot.readStructBegin()
7792
    while True:
7793
      (fname, ftype, fid) = iprot.readFieldBegin()
7794
      if ftype == TType.STOP:
7795
        break
7796
      else:
7797
        iprot.skip(ftype)
7798
      iprot.readFieldEnd()
7799
    iprot.readStructEnd()
7800
 
7801
  def write(self, oprot):
7802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7804
      return
7805
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7806
    oprot.writeFieldStop()
7807
    oprot.writeStructEnd()
7808
 
3431 rajveer 7809
  def validate(self):
7810
    return
7811
 
7812
 
1899 vikas 7813
  def __repr__(self):
7814
    L = ['%s=%r' % (key, value)
7815
      for key, value in self.__dict__.iteritems()]
7816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7817
 
7818
  def __eq__(self, other):
7819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7820
 
7821
  def __ne__(self, other):
7822
    return not (self == other)
7823
 
7824
class getAllMasterAffiliates_result:
7825
  """
7826
  Attributes:
7827
   - success
7828
   - utx
7829
  """
7830
 
7831
  thrift_spec = (
7832
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7833
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7834
  )
7835
 
7836
  def __init__(self, success=None, utx=None,):
7837
    self.success = success
7838
    self.utx = utx
7839
 
7840
  def read(self, iprot):
7841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7843
      return
7844
    iprot.readStructBegin()
7845
    while True:
7846
      (fname, ftype, fid) = iprot.readFieldBegin()
7847
      if ftype == TType.STOP:
7848
        break
7849
      if fid == 0:
7850
        if ftype == TType.LIST:
7851
          self.success = []
7746 amit.gupta 7852
          (_etype114, _size111) = iprot.readListBegin()
7853
          for _i115 in xrange(_size111):
7854
            _elem116 = MasterAffiliate()
7855
            _elem116.read(iprot)
7856
            self.success.append(_elem116)
1899 vikas 7857
          iprot.readListEnd()
7858
        else:
7859
          iprot.skip(ftype)
7860
      elif fid == 1:
7861
        if ftype == TType.STRUCT:
1996 vikas 7862
          self.utx = UserAffiliateException()
1899 vikas 7863
          self.utx.read(iprot)
7864
        else:
7865
          iprot.skip(ftype)
7866
      else:
7867
        iprot.skip(ftype)
7868
      iprot.readFieldEnd()
7869
    iprot.readStructEnd()
7870
 
7871
  def write(self, oprot):
7872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7874
      return
7875
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7876
    if self.success is not None:
1899 vikas 7877
      oprot.writeFieldBegin('success', TType.LIST, 0)
7878
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 7879
      for iter117 in self.success:
7880
        iter117.write(oprot)
1899 vikas 7881
      oprot.writeListEnd()
7882
      oprot.writeFieldEnd()
3431 rajveer 7883
    if self.utx is not None:
1899 vikas 7884
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7885
      self.utx.write(oprot)
7886
      oprot.writeFieldEnd()
7887
    oprot.writeFieldStop()
7888
    oprot.writeStructEnd()
7889
 
3431 rajveer 7890
  def validate(self):
7891
    return
7892
 
7893
 
1899 vikas 7894
  def __repr__(self):
7895
    L = ['%s=%r' % (key, value)
7896
      for key, value in self.__dict__.iteritems()]
7897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7898
 
7899
  def __eq__(self, other):
7900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7901
 
7902
  def __ne__(self, other):
7903
    return not (self == other)
7904
 
1845 vikas 7905
class getMasterAffiliateById_args:
7906
  """
7907
  Attributes:
7908
   - id
7909
  """
7910
 
7911
  thrift_spec = (
7912
    None, # 0
7913
    (1, TType.I64, 'id', None, None, ), # 1
7914
  )
7915
 
7916
  def __init__(self, id=None,):
7917
    self.id = id
7918
 
7919
  def read(self, iprot):
7920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7922
      return
7923
    iprot.readStructBegin()
7924
    while True:
7925
      (fname, ftype, fid) = iprot.readFieldBegin()
7926
      if ftype == TType.STOP:
7927
        break
7928
      if fid == 1:
7929
        if ftype == TType.I64:
7930
          self.id = iprot.readI64();
7931
        else:
7932
          iprot.skip(ftype)
7933
      else:
7934
        iprot.skip(ftype)
7935
      iprot.readFieldEnd()
7936
    iprot.readStructEnd()
7937
 
7938
  def write(self, oprot):
7939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7941
      return
7942
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7943
    if self.id is not None:
1845 vikas 7944
      oprot.writeFieldBegin('id', TType.I64, 1)
7945
      oprot.writeI64(self.id)
7946
      oprot.writeFieldEnd()
7947
    oprot.writeFieldStop()
7948
    oprot.writeStructEnd()
7949
 
3431 rajveer 7950
  def validate(self):
7951
    return
7952
 
7953
 
1845 vikas 7954
  def __repr__(self):
7955
    L = ['%s=%r' % (key, value)
7956
      for key, value in self.__dict__.iteritems()]
7957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7958
 
7959
  def __eq__(self, other):
7960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7961
 
7962
  def __ne__(self, other):
7963
    return not (self == other)
7964
 
7965
class getMasterAffiliateById_result:
7966
  """
7967
  Attributes:
7968
   - success
7969
   - utx
7970
  """
7971
 
7972
  thrift_spec = (
7973
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7974
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7975
  )
7976
 
7977
  def __init__(self, success=None, utx=None,):
7978
    self.success = success
7979
    self.utx = utx
7980
 
7981
  def read(self, iprot):
7982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7984
      return
7985
    iprot.readStructBegin()
7986
    while True:
7987
      (fname, ftype, fid) = iprot.readFieldBegin()
7988
      if ftype == TType.STOP:
7989
        break
7990
      if fid == 0:
7991
        if ftype == TType.STRUCT:
7992
          self.success = MasterAffiliate()
7993
          self.success.read(iprot)
7994
        else:
7995
          iprot.skip(ftype)
7996
      elif fid == 1:
7997
        if ftype == TType.STRUCT:
1996 vikas 7998
          self.utx = UserAffiliateException()
1845 vikas 7999
          self.utx.read(iprot)
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('getMasterAffiliateById_result')
3431 rajveer 8012
    if self.success is not None:
1845 vikas 8013
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8014
      self.success.write(oprot)
8015
      oprot.writeFieldEnd()
3431 rajveer 8016
    if self.utx is not None:
1845 vikas 8017
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8018
      self.utx.write(oprot)
8019
      oprot.writeFieldEnd()
8020
    oprot.writeFieldStop()
8021
    oprot.writeStructEnd()
8022
 
3431 rajveer 8023
  def validate(self):
8024
    return
8025
 
8026
 
1845 vikas 8027
  def __repr__(self):
8028
    L = ['%s=%r' % (key, value)
8029
      for key, value in self.__dict__.iteritems()]
8030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8031
 
8032
  def __eq__(self, other):
8033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8034
 
8035
  def __ne__(self, other):
8036
    return not (self == other)
8037
 
8038
class getMasterAffiliateByName_args:
8039
  """
8040
  Attributes:
8041
   - name
8042
  """
8043
 
8044
  thrift_spec = (
8045
    None, # 0
8046
    (1, TType.STRING, 'name', None, None, ), # 1
8047
  )
8048
 
8049
  def __init__(self, name=None,):
8050
    self.name = name
8051
 
8052
  def read(self, iprot):
8053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8055
      return
8056
    iprot.readStructBegin()
8057
    while True:
8058
      (fname, ftype, fid) = iprot.readFieldBegin()
8059
      if ftype == TType.STOP:
8060
        break
8061
      if fid == 1:
8062
        if ftype == TType.STRING:
8063
          self.name = iprot.readString();
8064
        else:
8065
          iprot.skip(ftype)
8066
      else:
8067
        iprot.skip(ftype)
8068
      iprot.readFieldEnd()
8069
    iprot.readStructEnd()
8070
 
8071
  def write(self, oprot):
8072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8074
      return
8075
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8076
    if self.name is not None:
1845 vikas 8077
      oprot.writeFieldBegin('name', TType.STRING, 1)
8078
      oprot.writeString(self.name)
8079
      oprot.writeFieldEnd()
8080
    oprot.writeFieldStop()
8081
    oprot.writeStructEnd()
8082
 
3431 rajveer 8083
  def validate(self):
8084
    return
8085
 
8086
 
1845 vikas 8087
  def __repr__(self):
8088
    L = ['%s=%r' % (key, value)
8089
      for key, value in self.__dict__.iteritems()]
8090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8091
 
8092
  def __eq__(self, other):
8093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8094
 
8095
  def __ne__(self, other):
8096
    return not (self == other)
8097
 
8098
class getMasterAffiliateByName_result:
8099
  """
8100
  Attributes:
8101
   - success
8102
   - utx
8103
  """
8104
 
8105
  thrift_spec = (
8106
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8107
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8108
  )
8109
 
8110
  def __init__(self, success=None, utx=None,):
8111
    self.success = success
8112
    self.utx = utx
8113
 
8114
  def read(self, iprot):
8115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8117
      return
8118
    iprot.readStructBegin()
8119
    while True:
8120
      (fname, ftype, fid) = iprot.readFieldBegin()
8121
      if ftype == TType.STOP:
8122
        break
8123
      if fid == 0:
8124
        if ftype == TType.STRUCT:
8125
          self.success = MasterAffiliate()
8126
          self.success.read(iprot)
8127
        else:
8128
          iprot.skip(ftype)
8129
      elif fid == 1:
8130
        if ftype == TType.STRUCT:
1996 vikas 8131
          self.utx = UserAffiliateException()
1845 vikas 8132
          self.utx.read(iprot)
8133
        else:
8134
          iprot.skip(ftype)
8135
      else:
8136
        iprot.skip(ftype)
8137
      iprot.readFieldEnd()
8138
    iprot.readStructEnd()
8139
 
8140
  def write(self, oprot):
8141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8143
      return
8144
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8145
    if self.success is not None:
1845 vikas 8146
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8147
      self.success.write(oprot)
8148
      oprot.writeFieldEnd()
3431 rajveer 8149
    if self.utx is not None:
1845 vikas 8150
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8151
      self.utx.write(oprot)
8152
      oprot.writeFieldEnd()
8153
    oprot.writeFieldStop()
8154
    oprot.writeStructEnd()
8155
 
3431 rajveer 8156
  def validate(self):
8157
    return
8158
 
8159
 
1845 vikas 8160
  def __repr__(self):
8161
    L = ['%s=%r' % (key, value)
8162
      for key, value in self.__dict__.iteritems()]
8163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8164
 
8165
  def __eq__(self, other):
8166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8167
 
8168
  def __ne__(self, other):
8169
    return not (self == other)
8170
 
8171
class createAffiliate_args:
8172
  """
8173
  Attributes:
8174
   - name
8175
   - url
8176
   - masterAffiliateId
1859 vikas 8177
   - addedOn
1845 vikas 8178
  """
8179
 
8180
  thrift_spec = (
8181
    None, # 0
8182
    (1, TType.STRING, 'name', None, None, ), # 1
8183
    (2, TType.STRING, 'url', None, None, ), # 2
8184
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8185
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8186
  )
8187
 
1859 vikas 8188
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8189
    self.name = name
8190
    self.url = url
8191
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8192
    self.addedOn = addedOn
1845 vikas 8193
 
8194
  def read(self, iprot):
8195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8197
      return
8198
    iprot.readStructBegin()
8199
    while True:
8200
      (fname, ftype, fid) = iprot.readFieldBegin()
8201
      if ftype == TType.STOP:
8202
        break
8203
      if fid == 1:
8204
        if ftype == TType.STRING:
8205
          self.name = iprot.readString();
8206
        else:
8207
          iprot.skip(ftype)
8208
      elif fid == 2:
8209
        if ftype == TType.STRING:
8210
          self.url = iprot.readString();
8211
        else:
8212
          iprot.skip(ftype)
8213
      elif fid == 3:
8214
        if ftype == TType.I64:
8215
          self.masterAffiliateId = iprot.readI64();
8216
        else:
8217
          iprot.skip(ftype)
1859 vikas 8218
      elif fid == 4:
8219
        if ftype == TType.I64:
8220
          self.addedOn = iprot.readI64();
8221
        else:
8222
          iprot.skip(ftype)
1845 vikas 8223
      else:
8224
        iprot.skip(ftype)
8225
      iprot.readFieldEnd()
8226
    iprot.readStructEnd()
8227
 
8228
  def write(self, oprot):
8229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8231
      return
8232
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8233
    if self.name is not None:
1845 vikas 8234
      oprot.writeFieldBegin('name', TType.STRING, 1)
8235
      oprot.writeString(self.name)
8236
      oprot.writeFieldEnd()
3431 rajveer 8237
    if self.url is not None:
1845 vikas 8238
      oprot.writeFieldBegin('url', TType.STRING, 2)
8239
      oprot.writeString(self.url)
8240
      oprot.writeFieldEnd()
3431 rajveer 8241
    if self.masterAffiliateId is not None:
1845 vikas 8242
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8243
      oprot.writeI64(self.masterAffiliateId)
8244
      oprot.writeFieldEnd()
3431 rajveer 8245
    if self.addedOn is not None:
1859 vikas 8246
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8247
      oprot.writeI64(self.addedOn)
8248
      oprot.writeFieldEnd()
1845 vikas 8249
    oprot.writeFieldStop()
8250
    oprot.writeStructEnd()
8251
 
3431 rajveer 8252
  def validate(self):
8253
    return
8254
 
8255
 
1845 vikas 8256
  def __repr__(self):
8257
    L = ['%s=%r' % (key, value)
8258
      for key, value in self.__dict__.iteritems()]
8259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8260
 
8261
  def __eq__(self, other):
8262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8263
 
8264
  def __ne__(self, other):
8265
    return not (self == other)
8266
 
8267
class createAffiliate_result:
8268
  """
8269
  Attributes:
8270
   - success
8271
   - utx
8272
  """
8273
 
8274
  thrift_spec = (
8275
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8276
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8277
  )
8278
 
8279
  def __init__(self, success=None, utx=None,):
8280
    self.success = success
8281
    self.utx = utx
8282
 
8283
  def read(self, iprot):
8284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8286
      return
8287
    iprot.readStructBegin()
8288
    while True:
8289
      (fname, ftype, fid) = iprot.readFieldBegin()
8290
      if ftype == TType.STOP:
8291
        break
8292
      if fid == 0:
8293
        if ftype == TType.STRUCT:
8294
          self.success = Affiliate()
8295
          self.success.read(iprot)
8296
        else:
8297
          iprot.skip(ftype)
8298
      elif fid == 1:
8299
        if ftype == TType.STRUCT:
1996 vikas 8300
          self.utx = UserAffiliateException()
1845 vikas 8301
          self.utx.read(iprot)
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('createAffiliate_result')
3431 rajveer 8314
    if self.success is not None:
1845 vikas 8315
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8316
      self.success.write(oprot)
8317
      oprot.writeFieldEnd()
3431 rajveer 8318
    if self.utx is not None:
1845 vikas 8319
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8320
      self.utx.write(oprot)
8321
      oprot.writeFieldEnd()
8322
    oprot.writeFieldStop()
8323
    oprot.writeStructEnd()
8324
 
3431 rajveer 8325
  def validate(self):
8326
    return
8327
 
8328
 
1845 vikas 8329
  def __repr__(self):
8330
    L = ['%s=%r' % (key, value)
8331
      for key, value in self.__dict__.iteritems()]
8332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8333
 
8334
  def __eq__(self, other):
8335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8336
 
8337
  def __ne__(self, other):
8338
    return not (self == other)
8339
 
8340
class getAffiliateById_args:
8341
  """
8342
  Attributes:
8343
   - id
8344
  """
8345
 
8346
  thrift_spec = (
8347
    None, # 0
8348
    (1, TType.I64, 'id', None, None, ), # 1
8349
  )
8350
 
8351
  def __init__(self, id=None,):
8352
    self.id = id
8353
 
8354
  def read(self, iprot):
8355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8357
      return
8358
    iprot.readStructBegin()
8359
    while True:
8360
      (fname, ftype, fid) = iprot.readFieldBegin()
8361
      if ftype == TType.STOP:
8362
        break
8363
      if fid == 1:
8364
        if ftype == TType.I64:
8365
          self.id = iprot.readI64();
8366
        else:
8367
          iprot.skip(ftype)
8368
      else:
8369
        iprot.skip(ftype)
8370
      iprot.readFieldEnd()
8371
    iprot.readStructEnd()
8372
 
8373
  def write(self, oprot):
8374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8376
      return
8377
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8378
    if self.id is not None:
1845 vikas 8379
      oprot.writeFieldBegin('id', TType.I64, 1)
8380
      oprot.writeI64(self.id)
8381
      oprot.writeFieldEnd()
8382
    oprot.writeFieldStop()
8383
    oprot.writeStructEnd()
8384
 
3431 rajveer 8385
  def validate(self):
8386
    return
8387
 
8388
 
1845 vikas 8389
  def __repr__(self):
8390
    L = ['%s=%r' % (key, value)
8391
      for key, value in self.__dict__.iteritems()]
8392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8393
 
8394
  def __eq__(self, other):
8395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8396
 
8397
  def __ne__(self, other):
8398
    return not (self == other)
8399
 
8400
class getAffiliateById_result:
8401
  """
8402
  Attributes:
8403
   - success
8404
   - utx
8405
  """
8406
 
8407
  thrift_spec = (
8408
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8409
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8410
  )
8411
 
8412
  def __init__(self, success=None, utx=None,):
8413
    self.success = success
8414
    self.utx = utx
8415
 
8416
  def read(self, iprot):
8417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8419
      return
8420
    iprot.readStructBegin()
8421
    while True:
8422
      (fname, ftype, fid) = iprot.readFieldBegin()
8423
      if ftype == TType.STOP:
8424
        break
8425
      if fid == 0:
8426
        if ftype == TType.STRUCT:
8427
          self.success = Affiliate()
8428
          self.success.read(iprot)
8429
        else:
8430
          iprot.skip(ftype)
8431
      elif fid == 1:
8432
        if ftype == TType.STRUCT:
1996 vikas 8433
          self.utx = UserAffiliateException()
1845 vikas 8434
          self.utx.read(iprot)
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('getAffiliateById_result')
3431 rajveer 8447
    if self.success is not None:
1845 vikas 8448
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8449
      self.success.write(oprot)
8450
      oprot.writeFieldEnd()
3431 rajveer 8451
    if self.utx is not None:
1845 vikas 8452
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8453
      self.utx.write(oprot)
8454
      oprot.writeFieldEnd()
8455
    oprot.writeFieldStop()
8456
    oprot.writeStructEnd()
8457
 
3431 rajveer 8458
  def validate(self):
8459
    return
8460
 
8461
 
1845 vikas 8462
  def __repr__(self):
8463
    L = ['%s=%r' % (key, value)
8464
      for key, value in self.__dict__.iteritems()]
8465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8466
 
8467
  def __eq__(self, other):
8468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8469
 
8470
  def __ne__(self, other):
8471
    return not (self == other)
8472
 
8473
class getAffiliateByName_args:
8474
  """
8475
  Attributes:
8476
   - name
8477
  """
8478
 
8479
  thrift_spec = (
8480
    None, # 0
8481
    (1, TType.STRING, 'name', None, None, ), # 1
8482
  )
8483
 
8484
  def __init__(self, name=None,):
8485
    self.name = name
8486
 
8487
  def read(self, iprot):
8488
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8489
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8490
      return
8491
    iprot.readStructBegin()
8492
    while True:
8493
      (fname, ftype, fid) = iprot.readFieldBegin()
8494
      if ftype == TType.STOP:
8495
        break
8496
      if fid == 1:
8497
        if ftype == TType.STRING:
8498
          self.name = iprot.readString();
8499
        else:
8500
          iprot.skip(ftype)
8501
      else:
8502
        iprot.skip(ftype)
8503
      iprot.readFieldEnd()
8504
    iprot.readStructEnd()
8505
 
8506
  def write(self, oprot):
8507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8509
      return
8510
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8511
    if self.name is not None:
1845 vikas 8512
      oprot.writeFieldBegin('name', TType.STRING, 1)
8513
      oprot.writeString(self.name)
8514
      oprot.writeFieldEnd()
8515
    oprot.writeFieldStop()
8516
    oprot.writeStructEnd()
8517
 
3431 rajveer 8518
  def validate(self):
8519
    return
8520
 
8521
 
1845 vikas 8522
  def __repr__(self):
8523
    L = ['%s=%r' % (key, value)
8524
      for key, value in self.__dict__.iteritems()]
8525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8526
 
8527
  def __eq__(self, other):
8528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8529
 
8530
  def __ne__(self, other):
8531
    return not (self == other)
8532
 
8533
class getAffiliateByName_result:
8534
  """
8535
  Attributes:
8536
   - success
8537
   - utx
8538
  """
8539
 
8540
  thrift_spec = (
8541
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8542
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8543
  )
8544
 
8545
  def __init__(self, success=None, utx=None,):
8546
    self.success = success
8547
    self.utx = utx
8548
 
8549
  def read(self, iprot):
8550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8552
      return
8553
    iprot.readStructBegin()
8554
    while True:
8555
      (fname, ftype, fid) = iprot.readFieldBegin()
8556
      if ftype == TType.STOP:
8557
        break
8558
      if fid == 0:
8559
        if ftype == TType.STRUCT:
8560
          self.success = Affiliate()
8561
          self.success.read(iprot)
8562
        else:
8563
          iprot.skip(ftype)
8564
      elif fid == 1:
8565
        if ftype == TType.STRUCT:
1996 vikas 8566
          self.utx = UserAffiliateException()
1845 vikas 8567
          self.utx.read(iprot)
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
8579
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8580
    if self.success is not None:
1845 vikas 8581
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8582
      self.success.write(oprot)
8583
      oprot.writeFieldEnd()
3431 rajveer 8584
    if self.utx is not None:
1845 vikas 8585
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8586
      self.utx.write(oprot)
8587
      oprot.writeFieldEnd()
8588
    oprot.writeFieldStop()
8589
    oprot.writeStructEnd()
8590
 
3431 rajveer 8591
  def validate(self):
8592
    return
8593
 
8594
 
1845 vikas 8595
  def __repr__(self):
8596
    L = ['%s=%r' % (key, value)
8597
      for key, value in self.__dict__.iteritems()]
8598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8599
 
8600
  def __eq__(self, other):
8601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8602
 
8603
  def __ne__(self, other):
8604
    return not (self == other)
8605
 
1996 vikas 8606
class getTrackerById_args:
1845 vikas 8607
  """
8608
  Attributes:
8609
   - id
8610
  """
8611
 
8612
  thrift_spec = (
8613
    None, # 0
8614
    (1, TType.I64, 'id', None, None, ), # 1
8615
  )
8616
 
8617
  def __init__(self, id=None,):
8618
    self.id = id
8619
 
8620
  def read(self, iprot):
8621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8623
      return
8624
    iprot.readStructBegin()
8625
    while True:
8626
      (fname, ftype, fid) = iprot.readFieldBegin()
8627
      if ftype == TType.STOP:
8628
        break
8629
      if fid == 1:
8630
        if ftype == TType.I64:
8631
          self.id = iprot.readI64();
8632
        else:
8633
          iprot.skip(ftype)
8634
      else:
8635
        iprot.skip(ftype)
8636
      iprot.readFieldEnd()
8637
    iprot.readStructEnd()
8638
 
8639
  def write(self, oprot):
8640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8642
      return
1996 vikas 8643
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8644
    if self.id is not None:
1845 vikas 8645
      oprot.writeFieldBegin('id', TType.I64, 1)
8646
      oprot.writeI64(self.id)
8647
      oprot.writeFieldEnd()
8648
    oprot.writeFieldStop()
8649
    oprot.writeStructEnd()
8650
 
3431 rajveer 8651
  def validate(self):
8652
    return
8653
 
8654
 
1845 vikas 8655
  def __repr__(self):
8656
    L = ['%s=%r' % (key, value)
8657
      for key, value in self.__dict__.iteritems()]
8658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8659
 
8660
  def __eq__(self, other):
8661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8662
 
8663
  def __ne__(self, other):
8664
    return not (self == other)
8665
 
8666
class getTrackerById_result:
8667
  """
8668
  Attributes:
8669
   - success
8670
   - utx
8671
  """
8672
 
8673
  thrift_spec = (
8674
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8675
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8676
  )
8677
 
8678
  def __init__(self, success=None, utx=None,):
8679
    self.success = success
8680
    self.utx = utx
8681
 
8682
  def read(self, iprot):
8683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8685
      return
8686
    iprot.readStructBegin()
8687
    while True:
8688
      (fname, ftype, fid) = iprot.readFieldBegin()
8689
      if ftype == TType.STOP:
8690
        break
8691
      if fid == 0:
8692
        if ftype == TType.STRUCT:
8693
          self.success = Tracker()
8694
          self.success.read(iprot)
8695
        else:
8696
          iprot.skip(ftype)
8697
      elif fid == 1:
8698
        if ftype == TType.STRUCT:
1996 vikas 8699
          self.utx = UserAffiliateException()
1845 vikas 8700
          self.utx.read(iprot)
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
8712
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8713
    if self.success is not None:
1845 vikas 8714
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8715
      self.success.write(oprot)
8716
      oprot.writeFieldEnd()
3431 rajveer 8717
    if self.utx is not None:
1845 vikas 8718
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8719
      self.utx.write(oprot)
8720
      oprot.writeFieldEnd()
8721
    oprot.writeFieldStop()
8722
    oprot.writeStructEnd()
8723
 
3431 rajveer 8724
  def validate(self):
8725
    return
8726
 
8727
 
1845 vikas 8728
  def __repr__(self):
8729
    L = ['%s=%r' % (key, value)
8730
      for key, value in self.__dict__.iteritems()]
8731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8732
 
8733
  def __eq__(self, other):
8734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8735
 
8736
  def __ne__(self, other):
8737
    return not (self == other)
8738
 
1996 vikas 8739
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8740
  """
8741
  Attributes:
1996 vikas 8742
   - id
1845 vikas 8743
  """
8744
 
8745
  thrift_spec = (
8746
    None, # 0
1996 vikas 8747
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8748
  )
8749
 
1996 vikas 8750
  def __init__(self, id=None,):
8751
    self.id = id
1845 vikas 8752
 
8753
  def read(self, iprot):
8754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8756
      return
8757
    iprot.readStructBegin()
8758
    while True:
8759
      (fname, ftype, fid) = iprot.readFieldBegin()
8760
      if ftype == TType.STOP:
8761
        break
8762
      if fid == 1:
8763
        if ftype == TType.I64:
1996 vikas 8764
          self.id = iprot.readI64();
1845 vikas 8765
        else:
8766
          iprot.skip(ftype)
8767
      else:
8768
        iprot.skip(ftype)
8769
      iprot.readFieldEnd()
8770
    iprot.readStructEnd()
8771
 
8772
  def write(self, oprot):
8773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8775
      return
1996 vikas 8776
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8777
    if self.id is not None:
1996 vikas 8778
      oprot.writeFieldBegin('id', TType.I64, 1)
8779
      oprot.writeI64(self.id)
1845 vikas 8780
      oprot.writeFieldEnd()
8781
    oprot.writeFieldStop()
8782
    oprot.writeStructEnd()
8783
 
3431 rajveer 8784
  def validate(self):
8785
    return
8786
 
8787
 
1845 vikas 8788
  def __repr__(self):
8789
    L = ['%s=%r' % (key, value)
8790
      for key, value in self.__dict__.iteritems()]
8791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8792
 
8793
  def __eq__(self, other):
8794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8795
 
8796
  def __ne__(self, other):
8797
    return not (self == other)
8798
 
1996 vikas 8799
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8800
  """
8801
  Attributes:
8802
   - success
8803
   - utx
8804
  """
8805
 
8806
  thrift_spec = (
1996 vikas 8807
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8808
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8809
  )
8810
 
8811
  def __init__(self, success=None, utx=None,):
8812
    self.success = success
8813
    self.utx = utx
8814
 
8815
  def read(self, iprot):
8816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8818
      return
8819
    iprot.readStructBegin()
8820
    while True:
8821
      (fname, ftype, fid) = iprot.readFieldBegin()
8822
      if ftype == TType.STOP:
8823
        break
8824
      if fid == 0:
8825
        if ftype == TType.LIST:
8826
          self.success = []
7746 amit.gupta 8827
          (_etype121, _size118) = iprot.readListBegin()
8828
          for _i122 in xrange(_size118):
8829
            _elem123 = Affiliate()
8830
            _elem123.read(iprot)
8831
            self.success.append(_elem123)
1845 vikas 8832
          iprot.readListEnd()
8833
        else:
8834
          iprot.skip(ftype)
8835
      elif fid == 1:
8836
        if ftype == TType.STRUCT:
1996 vikas 8837
          self.utx = UserAffiliateException()
1845 vikas 8838
          self.utx.read(iprot)
8839
        else:
8840
          iprot.skip(ftype)
8841
      else:
8842
        iprot.skip(ftype)
8843
      iprot.readFieldEnd()
8844
    iprot.readStructEnd()
8845
 
8846
  def write(self, oprot):
8847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8849
      return
1996 vikas 8850
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8851
    if self.success is not None:
1845 vikas 8852
      oprot.writeFieldBegin('success', TType.LIST, 0)
8853
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 8854
      for iter124 in self.success:
8855
        iter124.write(oprot)
1845 vikas 8856
      oprot.writeListEnd()
8857
      oprot.writeFieldEnd()
3431 rajveer 8858
    if self.utx is not None:
1845 vikas 8859
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8860
      self.utx.write(oprot)
8861
      oprot.writeFieldEnd()
8862
    oprot.writeFieldStop()
8863
    oprot.writeStructEnd()
8864
 
3431 rajveer 8865
  def validate(self):
8866
    return
8867
 
8868
 
1845 vikas 8869
  def __repr__(self):
8870
    L = ['%s=%r' % (key, value)
8871
      for key, value in self.__dict__.iteritems()]
8872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8873
 
8874
  def __eq__(self, other):
8875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8876
 
8877
  def __ne__(self, other):
8878
    return not (self == other)
8879
 
8880
class addTrackLog_args:
8881
  """
8882
  Attributes:
1996 vikas 8883
   - affiliateId
1845 vikas 8884
   - userId
8885
   - event
8886
   - url
8887
   - data
1859 vikas 8888
   - addedOn
1845 vikas 8889
  """
8890
 
8891
  thrift_spec = (
8892
    None, # 0
1996 vikas 8893
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8894
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8895
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8896
    (4, TType.STRING, 'url', None, None, ), # 4
8897
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8898
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8899
  )
8900
 
1996 vikas 8901
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8902
    self.affiliateId = affiliateId
1845 vikas 8903
    self.userId = userId
8904
    self.event = event
8905
    self.url = url
8906
    self.data = data
1859 vikas 8907
    self.addedOn = addedOn
1845 vikas 8908
 
8909
  def read(self, iprot):
8910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8912
      return
8913
    iprot.readStructBegin()
8914
    while True:
8915
      (fname, ftype, fid) = iprot.readFieldBegin()
8916
      if ftype == TType.STOP:
8917
        break
8918
      if fid == 1:
8919
        if ftype == TType.I64:
1996 vikas 8920
          self.affiliateId = iprot.readI64();
1845 vikas 8921
        else:
8922
          iprot.skip(ftype)
8923
      elif fid == 2:
8924
        if ftype == TType.I64:
8925
          self.userId = iprot.readI64();
8926
        else:
8927
          iprot.skip(ftype)
8928
      elif fid == 3:
3378 vikas 8929
        if ftype == TType.I32:
8930
          self.event = iprot.readI32();
1845 vikas 8931
        else:
8932
          iprot.skip(ftype)
8933
      elif fid == 4:
8934
        if ftype == TType.STRING:
8935
          self.url = iprot.readString();
8936
        else:
8937
          iprot.skip(ftype)
8938
      elif fid == 5:
8939
        if ftype == TType.STRING:
8940
          self.data = iprot.readString();
8941
        else:
8942
          iprot.skip(ftype)
1859 vikas 8943
      elif fid == 6:
8944
        if ftype == TType.I64:
8945
          self.addedOn = iprot.readI64();
8946
        else:
8947
          iprot.skip(ftype)
1845 vikas 8948
      else:
8949
        iprot.skip(ftype)
8950
      iprot.readFieldEnd()
8951
    iprot.readStructEnd()
8952
 
8953
  def write(self, oprot):
8954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8956
      return
8957
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8958
    if self.affiliateId is not None:
1996 vikas 8959
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8960
      oprot.writeI64(self.affiliateId)
1845 vikas 8961
      oprot.writeFieldEnd()
3431 rajveer 8962
    if self.userId is not None:
1845 vikas 8963
      oprot.writeFieldBegin('userId', TType.I64, 2)
8964
      oprot.writeI64(self.userId)
8965
      oprot.writeFieldEnd()
3431 rajveer 8966
    if self.event is not None:
3378 vikas 8967
      oprot.writeFieldBegin('event', TType.I32, 3)
8968
      oprot.writeI32(self.event)
1845 vikas 8969
      oprot.writeFieldEnd()
3431 rajveer 8970
    if self.url is not None:
1845 vikas 8971
      oprot.writeFieldBegin('url', TType.STRING, 4)
8972
      oprot.writeString(self.url)
8973
      oprot.writeFieldEnd()
3431 rajveer 8974
    if self.data is not None:
1845 vikas 8975
      oprot.writeFieldBegin('data', TType.STRING, 5)
8976
      oprot.writeString(self.data)
8977
      oprot.writeFieldEnd()
3431 rajveer 8978
    if self.addedOn is not None:
1859 vikas 8979
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8980
      oprot.writeI64(self.addedOn)
8981
      oprot.writeFieldEnd()
1845 vikas 8982
    oprot.writeFieldStop()
8983
    oprot.writeStructEnd()
8984
 
3431 rajveer 8985
  def validate(self):
8986
    return
8987
 
8988
 
1845 vikas 8989
  def __repr__(self):
8990
    L = ['%s=%r' % (key, value)
8991
      for key, value in self.__dict__.iteritems()]
8992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8993
 
8994
  def __eq__(self, other):
8995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8996
 
8997
  def __ne__(self, other):
8998
    return not (self == other)
8999
 
9000
class addTrackLog_result:
9001
  """
9002
  Attributes:
9003
   - success
9004
   - utx
9005
  """
9006
 
9007
  thrift_spec = (
9008
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 9009
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9010
  )
9011
 
9012
  def __init__(self, success=None, utx=None,):
9013
    self.success = success
9014
    self.utx = utx
9015
 
9016
  def read(self, iprot):
9017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9019
      return
9020
    iprot.readStructBegin()
9021
    while True:
9022
      (fname, ftype, fid) = iprot.readFieldBegin()
9023
      if ftype == TType.STOP:
9024
        break
9025
      if fid == 0:
9026
        if ftype == TType.I64:
9027
          self.success = iprot.readI64();
9028
        else:
9029
          iprot.skip(ftype)
9030
      elif fid == 1:
9031
        if ftype == TType.STRUCT:
1996 vikas 9032
          self.utx = UserAffiliateException()
1845 vikas 9033
          self.utx.read(iprot)
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('addTrackLog_result')
3431 rajveer 9046
    if self.success is not None:
1845 vikas 9047
      oprot.writeFieldBegin('success', TType.I64, 0)
9048
      oprot.writeI64(self.success)
9049
      oprot.writeFieldEnd()
3431 rajveer 9050
    if self.utx is not None:
1845 vikas 9051
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9052
      self.utx.write(oprot)
9053
      oprot.writeFieldEnd()
9054
    oprot.writeFieldStop()
9055
    oprot.writeStructEnd()
9056
 
3431 rajveer 9057
  def validate(self):
9058
    return
9059
 
9060
 
1845 vikas 9061
  def __repr__(self):
9062
    L = ['%s=%r' % (key, value)
9063
      for key, value in self.__dict__.iteritems()]
9064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9065
 
9066
  def __eq__(self, other):
9067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9068
 
9069
  def __ne__(self, other):
9070
    return not (self == other)
9071
 
9072
class getTrackLogById_args:
9073
  """
9074
  Attributes:
9075
   - id
9076
  """
9077
 
9078
  thrift_spec = (
9079
    None, # 0
9080
    (1, TType.I64, 'id', None, None, ), # 1
9081
  )
9082
 
9083
  def __init__(self, id=None,):
9084
    self.id = id
9085
 
9086
  def read(self, iprot):
9087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9089
      return
9090
    iprot.readStructBegin()
9091
    while True:
9092
      (fname, ftype, fid) = iprot.readFieldBegin()
9093
      if ftype == TType.STOP:
9094
        break
9095
      if fid == 1:
9096
        if ftype == TType.I64:
9097
          self.id = iprot.readI64();
9098
        else:
9099
          iprot.skip(ftype)
9100
      else:
9101
        iprot.skip(ftype)
9102
      iprot.readFieldEnd()
9103
    iprot.readStructEnd()
9104
 
9105
  def write(self, oprot):
9106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9108
      return
9109
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9110
    if self.id is not None:
1845 vikas 9111
      oprot.writeFieldBegin('id', TType.I64, 1)
9112
      oprot.writeI64(self.id)
9113
      oprot.writeFieldEnd()
9114
    oprot.writeFieldStop()
9115
    oprot.writeStructEnd()
9116
 
3431 rajveer 9117
  def validate(self):
9118
    return
9119
 
9120
 
1845 vikas 9121
  def __repr__(self):
9122
    L = ['%s=%r' % (key, value)
9123
      for key, value in self.__dict__.iteritems()]
9124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9125
 
9126
  def __eq__(self, other):
9127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9128
 
9129
  def __ne__(self, other):
9130
    return not (self == other)
9131
 
9132
class getTrackLogById_result:
9133
  """
9134
  Attributes:
9135
   - success
9136
   - utx
9137
  """
9138
 
9139
  thrift_spec = (
9140
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9141
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9142
  )
9143
 
9144
  def __init__(self, success=None, utx=None,):
9145
    self.success = success
9146
    self.utx = utx
9147
 
9148
  def read(self, iprot):
9149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9151
      return
9152
    iprot.readStructBegin()
9153
    while True:
9154
      (fname, ftype, fid) = iprot.readFieldBegin()
9155
      if ftype == TType.STOP:
9156
        break
9157
      if fid == 0:
9158
        if ftype == TType.STRUCT:
9159
          self.success = TrackLog()
9160
          self.success.read(iprot)
9161
        else:
9162
          iprot.skip(ftype)
9163
      elif fid == 1:
9164
        if ftype == TType.STRUCT:
1996 vikas 9165
          self.utx = UserAffiliateException()
1845 vikas 9166
          self.utx.read(iprot)
9167
        else:
9168
          iprot.skip(ftype)
9169
      else:
9170
        iprot.skip(ftype)
9171
      iprot.readFieldEnd()
9172
    iprot.readStructEnd()
9173
 
9174
  def write(self, oprot):
9175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9177
      return
9178
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9179
    if self.success is not None:
1845 vikas 9180
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9181
      self.success.write(oprot)
9182
      oprot.writeFieldEnd()
3431 rajveer 9183
    if self.utx is not None:
1845 vikas 9184
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9185
      self.utx.write(oprot)
9186
      oprot.writeFieldEnd()
9187
    oprot.writeFieldStop()
9188
    oprot.writeStructEnd()
9189
 
3431 rajveer 9190
  def validate(self):
9191
    return
9192
 
9193
 
1845 vikas 9194
  def __repr__(self):
9195
    L = ['%s=%r' % (key, value)
9196
      for key, value in self.__dict__.iteritems()]
9197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9198
 
9199
  def __eq__(self, other):
9200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9201
 
9202
  def __ne__(self, other):
9203
    return not (self == other)
9204
 
1996 vikas 9205
class getTrackLogsByAffiliate_args:
1845 vikas 9206
  """
9207
  Attributes:
1996 vikas 9208
   - affiliateId
3293 vikas 9209
   - startDate
9210
   - endDate
1845 vikas 9211
  """
9212
 
9213
  thrift_spec = (
9214
    None, # 0
1996 vikas 9215
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9216
    (2, TType.I64, 'startDate', None, None, ), # 2
9217
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9218
  )
9219
 
3293 vikas 9220
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9221
    self.affiliateId = affiliateId
3293 vikas 9222
    self.startDate = startDate
9223
    self.endDate = endDate
1845 vikas 9224
 
9225
  def read(self, iprot):
9226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9228
      return
9229
    iprot.readStructBegin()
9230
    while True:
9231
      (fname, ftype, fid) = iprot.readFieldBegin()
9232
      if ftype == TType.STOP:
9233
        break
9234
      if fid == 1:
9235
        if ftype == TType.I64:
1996 vikas 9236
          self.affiliateId = iprot.readI64();
1845 vikas 9237
        else:
9238
          iprot.skip(ftype)
3293 vikas 9239
      elif fid == 2:
9240
        if ftype == TType.I64:
9241
          self.startDate = iprot.readI64();
9242
        else:
9243
          iprot.skip(ftype)
9244
      elif fid == 3:
9245
        if ftype == TType.I64:
9246
          self.endDate = iprot.readI64();
9247
        else:
9248
          iprot.skip(ftype)
1845 vikas 9249
      else:
9250
        iprot.skip(ftype)
9251
      iprot.readFieldEnd()
9252
    iprot.readStructEnd()
9253
 
9254
  def write(self, oprot):
9255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9257
      return
1996 vikas 9258
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9259
    if self.affiliateId is not None:
1996 vikas 9260
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9261
      oprot.writeI64(self.affiliateId)
1845 vikas 9262
      oprot.writeFieldEnd()
3431 rajveer 9263
    if self.startDate is not None:
3293 vikas 9264
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9265
      oprot.writeI64(self.startDate)
9266
      oprot.writeFieldEnd()
3431 rajveer 9267
    if self.endDate is not None:
3293 vikas 9268
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9269
      oprot.writeI64(self.endDate)
9270
      oprot.writeFieldEnd()
1845 vikas 9271
    oprot.writeFieldStop()
9272
    oprot.writeStructEnd()
9273
 
3431 rajveer 9274
  def validate(self):
9275
    return
9276
 
9277
 
1845 vikas 9278
  def __repr__(self):
9279
    L = ['%s=%r' % (key, value)
9280
      for key, value in self.__dict__.iteritems()]
9281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9282
 
9283
  def __eq__(self, other):
9284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9285
 
9286
  def __ne__(self, other):
9287
    return not (self == other)
9288
 
1996 vikas 9289
class getTrackLogsByAffiliate_result:
1845 vikas 9290
  """
9291
  Attributes:
9292
   - success
9293
   - utx
9294
  """
9295
 
9296
  thrift_spec = (
9297
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9298
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9299
  )
9300
 
9301
  def __init__(self, success=None, utx=None,):
9302
    self.success = success
9303
    self.utx = utx
9304
 
9305
  def read(self, iprot):
9306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9308
      return
9309
    iprot.readStructBegin()
9310
    while True:
9311
      (fname, ftype, fid) = iprot.readFieldBegin()
9312
      if ftype == TType.STOP:
9313
        break
9314
      if fid == 0:
9315
        if ftype == TType.LIST:
9316
          self.success = []
7746 amit.gupta 9317
          (_etype128, _size125) = iprot.readListBegin()
9318
          for _i129 in xrange(_size125):
9319
            _elem130 = TrackLog()
9320
            _elem130.read(iprot)
9321
            self.success.append(_elem130)
1845 vikas 9322
          iprot.readListEnd()
9323
        else:
9324
          iprot.skip(ftype)
9325
      elif fid == 1:
9326
        if ftype == TType.STRUCT:
1996 vikas 9327
          self.utx = UserAffiliateException()
1845 vikas 9328
          self.utx.read(iprot)
9329
        else:
9330
          iprot.skip(ftype)
9331
      else:
9332
        iprot.skip(ftype)
9333
      iprot.readFieldEnd()
9334
    iprot.readStructEnd()
9335
 
9336
  def write(self, oprot):
9337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9339
      return
1996 vikas 9340
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9341
    if self.success is not None:
1845 vikas 9342
      oprot.writeFieldBegin('success', TType.LIST, 0)
9343
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 9344
      for iter131 in self.success:
9345
        iter131.write(oprot)
1845 vikas 9346
      oprot.writeListEnd()
9347
      oprot.writeFieldEnd()
3431 rajveer 9348
    if self.utx is not None:
1845 vikas 9349
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9350
      self.utx.write(oprot)
9351
      oprot.writeFieldEnd()
9352
    oprot.writeFieldStop()
9353
    oprot.writeStructEnd()
9354
 
3431 rajveer 9355
  def validate(self):
9356
    return
9357
 
9358
 
1845 vikas 9359
  def __repr__(self):
9360
    L = ['%s=%r' % (key, value)
9361
      for key, value in self.__dict__.iteritems()]
9362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9363
 
9364
  def __eq__(self, other):
9365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9366
 
9367
  def __ne__(self, other):
9368
    return not (self == other)
9369
 
9370
class getTrackLogsByUser_args:
9371
  """
9372
  Attributes:
9373
   - userId
9374
  """
9375
 
9376
  thrift_spec = (
9377
    None, # 0
9378
    (1, TType.I64, 'userId', None, None, ), # 1
9379
  )
9380
 
9381
  def __init__(self, userId=None,):
9382
    self.userId = userId
9383
 
9384
  def read(self, iprot):
9385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9387
      return
9388
    iprot.readStructBegin()
9389
    while True:
9390
      (fname, ftype, fid) = iprot.readFieldBegin()
9391
      if ftype == TType.STOP:
9392
        break
9393
      if fid == 1:
9394
        if ftype == TType.I64:
9395
          self.userId = iprot.readI64();
9396
        else:
9397
          iprot.skip(ftype)
9398
      else:
9399
        iprot.skip(ftype)
9400
      iprot.readFieldEnd()
9401
    iprot.readStructEnd()
9402
 
9403
  def write(self, oprot):
9404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9406
      return
9407
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9408
    if self.userId is not None:
1845 vikas 9409
      oprot.writeFieldBegin('userId', TType.I64, 1)
9410
      oprot.writeI64(self.userId)
9411
      oprot.writeFieldEnd()
9412
    oprot.writeFieldStop()
9413
    oprot.writeStructEnd()
9414
 
3431 rajveer 9415
  def validate(self):
9416
    return
9417
 
9418
 
1845 vikas 9419
  def __repr__(self):
9420
    L = ['%s=%r' % (key, value)
9421
      for key, value in self.__dict__.iteritems()]
9422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9423
 
9424
  def __eq__(self, other):
9425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9426
 
9427
  def __ne__(self, other):
9428
    return not (self == other)
9429
 
9430
class getTrackLogsByUser_result:
9431
  """
9432
  Attributes:
9433
   - success
9434
   - utx
9435
  """
9436
 
9437
  thrift_spec = (
9438
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9439
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9440
  )
9441
 
9442
  def __init__(self, success=None, utx=None,):
9443
    self.success = success
9444
    self.utx = utx
9445
 
9446
  def read(self, iprot):
9447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9449
      return
9450
    iprot.readStructBegin()
9451
    while True:
9452
      (fname, ftype, fid) = iprot.readFieldBegin()
9453
      if ftype == TType.STOP:
9454
        break
9455
      if fid == 0:
9456
        if ftype == TType.LIST:
9457
          self.success = []
7746 amit.gupta 9458
          (_etype135, _size132) = iprot.readListBegin()
9459
          for _i136 in xrange(_size132):
9460
            _elem137 = TrackLog()
9461
            _elem137.read(iprot)
9462
            self.success.append(_elem137)
1845 vikas 9463
          iprot.readListEnd()
9464
        else:
9465
          iprot.skip(ftype)
9466
      elif fid == 1:
9467
        if ftype == TType.STRUCT:
1996 vikas 9468
          self.utx = UserAffiliateException()
1845 vikas 9469
          self.utx.read(iprot)
9470
        else:
9471
          iprot.skip(ftype)
9472
      else:
9473
        iprot.skip(ftype)
9474
      iprot.readFieldEnd()
9475
    iprot.readStructEnd()
9476
 
9477
  def write(self, oprot):
9478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9480
      return
9481
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9482
    if self.success is not None:
1845 vikas 9483
      oprot.writeFieldBegin('success', TType.LIST, 0)
9484
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 9485
      for iter138 in self.success:
9486
        iter138.write(oprot)
1845 vikas 9487
      oprot.writeListEnd()
9488
      oprot.writeFieldEnd()
3431 rajveer 9489
    if self.utx is not None:
1845 vikas 9490
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9491
      self.utx.write(oprot)
9492
      oprot.writeFieldEnd()
9493
    oprot.writeFieldStop()
9494
    oprot.writeStructEnd()
9495
 
3431 rajveer 9496
  def validate(self):
9497
    return
9498
 
9499
 
1845 vikas 9500
  def __repr__(self):
9501
    L = ['%s=%r' % (key, value)
9502
      for key, value in self.__dict__.iteritems()]
9503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9504
 
9505
  def __eq__(self, other):
9506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9507
 
9508
  def __ne__(self, other):
9509
    return not (self == other)
9510
 
9511
class getTrackLogs_args:
9512
  """
9513
  Attributes:
9514
   - userId
9515
   - event
9516
   - url
9517
  """
9518
 
9519
  thrift_spec = (
9520
    None, # 0
1996 vikas 9521
    (1, TType.I64, 'userId', None, None, ), # 1
9522
    (2, TType.STRING, 'event', None, None, ), # 2
9523
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9524
  )
9525
 
1996 vikas 9526
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9527
    self.userId = userId
9528
    self.event = event
9529
    self.url = url
9530
 
9531
  def read(self, iprot):
9532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9534
      return
9535
    iprot.readStructBegin()
9536
    while True:
9537
      (fname, ftype, fid) = iprot.readFieldBegin()
9538
      if ftype == TType.STOP:
9539
        break
9540
      if fid == 1:
9541
        if ftype == TType.I64:
1996 vikas 9542
          self.userId = iprot.readI64();
1845 vikas 9543
        else:
9544
          iprot.skip(ftype)
9545
      elif fid == 2:
9546
        if ftype == TType.STRING:
9547
          self.event = iprot.readString();
9548
        else:
9549
          iprot.skip(ftype)
1996 vikas 9550
      elif fid == 3:
1845 vikas 9551
        if ftype == TType.STRING:
9552
          self.url = iprot.readString();
9553
        else:
9554
          iprot.skip(ftype)
9555
      else:
9556
        iprot.skip(ftype)
9557
      iprot.readFieldEnd()
9558
    iprot.readStructEnd()
9559
 
9560
  def write(self, oprot):
9561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9563
      return
9564
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9565
    if self.userId is not None:
1996 vikas 9566
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9567
      oprot.writeI64(self.userId)
9568
      oprot.writeFieldEnd()
3431 rajveer 9569
    if self.event is not None:
1996 vikas 9570
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9571
      oprot.writeString(self.event)
9572
      oprot.writeFieldEnd()
3431 rajveer 9573
    if self.url is not None:
1996 vikas 9574
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9575
      oprot.writeString(self.url)
9576
      oprot.writeFieldEnd()
9577
    oprot.writeFieldStop()
9578
    oprot.writeStructEnd()
9579
 
3431 rajveer 9580
  def validate(self):
9581
    return
9582
 
9583
 
1845 vikas 9584
  def __repr__(self):
9585
    L = ['%s=%r' % (key, value)
9586
      for key, value in self.__dict__.iteritems()]
9587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9588
 
9589
  def __eq__(self, other):
9590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9591
 
9592
  def __ne__(self, other):
9593
    return not (self == other)
9594
 
9595
class getTrackLogs_result:
9596
  """
9597
  Attributes:
9598
   - success
9599
   - utx
9600
  """
9601
 
9602
  thrift_spec = (
9603
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9604
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9605
  )
9606
 
9607
  def __init__(self, success=None, utx=None,):
9608
    self.success = success
9609
    self.utx = utx
9610
 
9611
  def read(self, iprot):
9612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9614
      return
9615
    iprot.readStructBegin()
9616
    while True:
9617
      (fname, ftype, fid) = iprot.readFieldBegin()
9618
      if ftype == TType.STOP:
9619
        break
9620
      if fid == 0:
9621
        if ftype == TType.LIST:
9622
          self.success = []
7746 amit.gupta 9623
          (_etype142, _size139) = iprot.readListBegin()
9624
          for _i143 in xrange(_size139):
9625
            _elem144 = TrackLog()
9626
            _elem144.read(iprot)
9627
            self.success.append(_elem144)
1845 vikas 9628
          iprot.readListEnd()
9629
        else:
9630
          iprot.skip(ftype)
9631
      elif fid == 1:
9632
        if ftype == TType.STRUCT:
1996 vikas 9633
          self.utx = UserAffiliateException()
1845 vikas 9634
          self.utx.read(iprot)
9635
        else:
9636
          iprot.skip(ftype)
9637
      else:
9638
        iprot.skip(ftype)
9639
      iprot.readFieldEnd()
9640
    iprot.readStructEnd()
9641
 
9642
  def write(self, oprot):
9643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9645
      return
9646
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9647
    if self.success is not None:
1845 vikas 9648
      oprot.writeFieldBegin('success', TType.LIST, 0)
9649
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 9650
      for iter145 in self.success:
9651
        iter145.write(oprot)
1845 vikas 9652
      oprot.writeListEnd()
9653
      oprot.writeFieldEnd()
3431 rajveer 9654
    if self.utx is not None:
1845 vikas 9655
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9656
      self.utx.write(oprot)
9657
      oprot.writeFieldEnd()
9658
    oprot.writeFieldStop()
9659
    oprot.writeStructEnd()
9660
 
3431 rajveer 9661
  def validate(self):
9662
    return
9663
 
9664
 
1845 vikas 9665
  def __repr__(self):
9666
    L = ['%s=%r' % (key, value)
9667
      for key, value in self.__dict__.iteritems()]
9668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9669
 
9670
  def __eq__(self, other):
9671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9672
 
9673
  def __ne__(self, other):
9674
    return not (self == other)
9675
 
559 chandransh 9676
class getCurrentCart_args:
94 ashish 9677
  """
9678
  Attributes:
559 chandransh 9679
   - userId
9680
  """
9681
 
9682
  thrift_spec = (
9683
    None, # 0
9684
    (1, TType.I64, 'userId', None, None, ), # 1
9685
  )
9686
 
9687
  def __init__(self, userId=None,):
9688
    self.userId = userId
9689
 
9690
  def read(self, iprot):
9691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9693
      return
9694
    iprot.readStructBegin()
9695
    while True:
9696
      (fname, ftype, fid) = iprot.readFieldBegin()
9697
      if ftype == TType.STOP:
9698
        break
9699
      if fid == 1:
9700
        if ftype == TType.I64:
9701
          self.userId = iprot.readI64();
9702
        else:
9703
          iprot.skip(ftype)
9704
      else:
9705
        iprot.skip(ftype)
9706
      iprot.readFieldEnd()
9707
    iprot.readStructEnd()
9708
 
9709
  def write(self, oprot):
9710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9712
      return
9713
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9714
    if self.userId is not None:
559 chandransh 9715
      oprot.writeFieldBegin('userId', TType.I64, 1)
9716
      oprot.writeI64(self.userId)
9717
      oprot.writeFieldEnd()
9718
    oprot.writeFieldStop()
9719
    oprot.writeStructEnd()
9720
 
3431 rajveer 9721
  def validate(self):
9722
    return
9723
 
9724
 
559 chandransh 9725
  def __repr__(self):
9726
    L = ['%s=%r' % (key, value)
9727
      for key, value in self.__dict__.iteritems()]
9728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9729
 
9730
  def __eq__(self, other):
9731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9732
 
9733
  def __ne__(self, other):
9734
    return not (self == other)
9735
 
9736
class getCurrentCart_result:
9737
  """
9738
  Attributes:
94 ashish 9739
   - success
559 chandransh 9740
   - scx
94 ashish 9741
  """
9742
 
9743
  thrift_spec = (
559 chandransh 9744
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9745
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9746
  )
9747
 
559 chandransh 9748
  def __init__(self, success=None, scx=None,):
94 ashish 9749
    self.success = success
559 chandransh 9750
    self.scx = scx
94 ashish 9751
 
9752
  def read(self, iprot):
9753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9755
      return
9756
    iprot.readStructBegin()
9757
    while True:
9758
      (fname, ftype, fid) = iprot.readFieldBegin()
9759
      if ftype == TType.STOP:
9760
        break
9761
      if fid == 0:
559 chandransh 9762
        if ftype == TType.STRUCT:
9763
          self.success = Cart()
9764
          self.success.read(iprot)
94 ashish 9765
        else:
9766
          iprot.skip(ftype)
9767
      elif fid == 1:
9768
        if ftype == TType.STRUCT:
559 chandransh 9769
          self.scx = ShoppingCartException()
9770
          self.scx.read(iprot)
94 ashish 9771
        else:
9772
          iprot.skip(ftype)
9773
      else:
9774
        iprot.skip(ftype)
9775
      iprot.readFieldEnd()
9776
    iprot.readStructEnd()
9777
 
9778
  def write(self, oprot):
9779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9781
      return
559 chandransh 9782
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9783
    if self.success is not None:
559 chandransh 9784
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9785
      self.success.write(oprot)
94 ashish 9786
      oprot.writeFieldEnd()
3431 rajveer 9787
    if self.scx is not None:
559 chandransh 9788
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9789
      self.scx.write(oprot)
94 ashish 9790
      oprot.writeFieldEnd()
9791
    oprot.writeFieldStop()
9792
    oprot.writeStructEnd()
9793
 
3431 rajveer 9794
  def validate(self):
9795
    return
9796
 
9797
 
94 ashish 9798
  def __repr__(self):
9799
    L = ['%s=%r' % (key, value)
9800
      for key, value in self.__dict__.iteritems()]
9801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9802
 
9803
  def __eq__(self, other):
9804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9805
 
9806
  def __ne__(self, other):
9807
    return not (self == other)
9808
 
559 chandransh 9809
class getCart_args:
504 rajveer 9810
  """
9811
  Attributes:
559 chandransh 9812
   - cartId
504 rajveer 9813
  """
9814
 
9815
  thrift_spec = (
9816
    None, # 0
559 chandransh 9817
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9818
  )
9819
 
559 chandransh 9820
  def __init__(self, cartId=None,):
9821
    self.cartId = cartId
504 rajveer 9822
 
9823
  def read(self, iprot):
9824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9826
      return
9827
    iprot.readStructBegin()
9828
    while True:
9829
      (fname, ftype, fid) = iprot.readFieldBegin()
9830
      if ftype == TType.STOP:
9831
        break
9832
      if fid == 1:
9833
        if ftype == TType.I64:
559 chandransh 9834
          self.cartId = iprot.readI64();
504 rajveer 9835
        else:
9836
          iprot.skip(ftype)
9837
      else:
9838
        iprot.skip(ftype)
9839
      iprot.readFieldEnd()
9840
    iprot.readStructEnd()
9841
 
9842
  def write(self, oprot):
9843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9845
      return
559 chandransh 9846
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9847
    if self.cartId is not None:
559 chandransh 9848
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9849
      oprot.writeI64(self.cartId)
504 rajveer 9850
      oprot.writeFieldEnd()
9851
    oprot.writeFieldStop()
9852
    oprot.writeStructEnd()
9853
 
3431 rajveer 9854
  def validate(self):
9855
    return
9856
 
9857
 
504 rajveer 9858
  def __repr__(self):
9859
    L = ['%s=%r' % (key, value)
9860
      for key, value in self.__dict__.iteritems()]
9861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9862
 
9863
  def __eq__(self, other):
9864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9865
 
9866
  def __ne__(self, other):
9867
    return not (self == other)
9868
 
559 chandransh 9869
class getCart_result:
504 rajveer 9870
  """
9871
  Attributes:
9872
   - success
559 chandransh 9873
   - scx
504 rajveer 9874
  """
9875
 
9876
  thrift_spec = (
559 chandransh 9877
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9878
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9879
  )
9880
 
559 chandransh 9881
  def __init__(self, success=None, scx=None,):
504 rajveer 9882
    self.success = success
559 chandransh 9883
    self.scx = scx
504 rajveer 9884
 
9885
  def read(self, iprot):
9886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9888
      return
9889
    iprot.readStructBegin()
9890
    while True:
9891
      (fname, ftype, fid) = iprot.readFieldBegin()
9892
      if ftype == TType.STOP:
9893
        break
9894
      if fid == 0:
559 chandransh 9895
        if ftype == TType.STRUCT:
9896
          self.success = Cart()
9897
          self.success.read(iprot)
504 rajveer 9898
        else:
9899
          iprot.skip(ftype)
9900
      elif fid == 1:
9901
        if ftype == TType.STRUCT:
559 chandransh 9902
          self.scx = ShoppingCartException()
9903
          self.scx.read(iprot)
504 rajveer 9904
        else:
9905
          iprot.skip(ftype)
9906
      else:
9907
        iprot.skip(ftype)
9908
      iprot.readFieldEnd()
9909
    iprot.readStructEnd()
9910
 
9911
  def write(self, oprot):
9912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9914
      return
559 chandransh 9915
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9916
    if self.success is not None:
559 chandransh 9917
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9918
      self.success.write(oprot)
504 rajveer 9919
      oprot.writeFieldEnd()
3431 rajveer 9920
    if self.scx is not None:
559 chandransh 9921
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9922
      self.scx.write(oprot)
504 rajveer 9923
      oprot.writeFieldEnd()
9924
    oprot.writeFieldStop()
9925
    oprot.writeStructEnd()
9926
 
3431 rajveer 9927
  def validate(self):
9928
    return
9929
 
9930
 
504 rajveer 9931
  def __repr__(self):
9932
    L = ['%s=%r' % (key, value)
9933
      for key, value in self.__dict__.iteritems()]
9934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9935
 
9936
  def __eq__(self, other):
9937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9938
 
9939
  def __ne__(self, other):
9940
    return not (self == other)
9941
 
559 chandransh 9942
class getCartsByTime_args:
9943
  """
9944
  Attributes:
9945
   - from_time
9946
   - to_time
9947
   - status
9948
  """
9949
 
9950
  thrift_spec = (
9951
    None, # 0
9952
    (1, TType.I64, 'from_time', None, None, ), # 1
9953
    (2, TType.I64, 'to_time', None, None, ), # 2
9954
    (3, TType.I32, 'status', None, None, ), # 3
9955
  )
9956
 
9957
  def __init__(self, from_time=None, to_time=None, status=None,):
9958
    self.from_time = from_time
9959
    self.to_time = to_time
9960
    self.status = status
9961
 
9962
  def read(self, iprot):
9963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9965
      return
9966
    iprot.readStructBegin()
9967
    while True:
9968
      (fname, ftype, fid) = iprot.readFieldBegin()
9969
      if ftype == TType.STOP:
9970
        break
9971
      if fid == 1:
94 ashish 9972
        if ftype == TType.I64:
559 chandransh 9973
          self.from_time = iprot.readI64();
94 ashish 9974
        else:
9975
          iprot.skip(ftype)
122 ashish 9976
      elif fid == 2:
559 chandransh 9977
        if ftype == TType.I64:
9978
          self.to_time = iprot.readI64();
122 ashish 9979
        else:
9980
          iprot.skip(ftype)
559 chandransh 9981
      elif fid == 3:
9982
        if ftype == TType.I32:
9983
          self.status = iprot.readI32();
9984
        else:
9985
          iprot.skip(ftype)
94 ashish 9986
      else:
9987
        iprot.skip(ftype)
9988
      iprot.readFieldEnd()
9989
    iprot.readStructEnd()
9990
 
9991
  def write(self, oprot):
9992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9994
      return
559 chandransh 9995
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9996
    if self.from_time is not None:
559 chandransh 9997
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9998
      oprot.writeI64(self.from_time)
94 ashish 9999
      oprot.writeFieldEnd()
3431 rajveer 10000
    if self.to_time is not None:
559 chandransh 10001
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10002
      oprot.writeI64(self.to_time)
122 ashish 10003
      oprot.writeFieldEnd()
3431 rajveer 10004
    if self.status is not None:
559 chandransh 10005
      oprot.writeFieldBegin('status', TType.I32, 3)
10006
      oprot.writeI32(self.status)
10007
      oprot.writeFieldEnd()
94 ashish 10008
    oprot.writeFieldStop()
10009
    oprot.writeStructEnd()
10010
 
3431 rajveer 10011
  def validate(self):
10012
    return
10013
 
10014
 
94 ashish 10015
  def __repr__(self):
10016
    L = ['%s=%r' % (key, value)
10017
      for key, value in self.__dict__.iteritems()]
10018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10019
 
10020
  def __eq__(self, other):
10021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10022
 
10023
  def __ne__(self, other):
10024
    return not (self == other)
10025
 
559 chandransh 10026
class getCartsByTime_result:
94 ashish 10027
  """
10028
  Attributes:
10029
   - success
559 chandransh 10030
   - scx
94 ashish 10031
  """
10032
 
10033
  thrift_spec = (
559 chandransh 10034
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10035
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10036
  )
10037
 
559 chandransh 10038
  def __init__(self, success=None, scx=None,):
94 ashish 10039
    self.success = success
559 chandransh 10040
    self.scx = scx
94 ashish 10041
 
10042
  def read(self, iprot):
10043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10045
      return
10046
    iprot.readStructBegin()
10047
    while True:
10048
      (fname, ftype, fid) = iprot.readFieldBegin()
10049
      if ftype == TType.STOP:
10050
        break
10051
      if fid == 0:
559 chandransh 10052
        if ftype == TType.LIST:
10053
          self.success = []
7746 amit.gupta 10054
          (_etype149, _size146) = iprot.readListBegin()
10055
          for _i150 in xrange(_size146):
10056
            _elem151 = Cart()
10057
            _elem151.read(iprot)
10058
            self.success.append(_elem151)
559 chandransh 10059
          iprot.readListEnd()
94 ashish 10060
        else:
10061
          iprot.skip(ftype)
10062
      elif fid == 1:
10063
        if ftype == TType.STRUCT:
559 chandransh 10064
          self.scx = ShoppingCartException()
10065
          self.scx.read(iprot)
94 ashish 10066
        else:
10067
          iprot.skip(ftype)
10068
      else:
10069
        iprot.skip(ftype)
10070
      iprot.readFieldEnd()
10071
    iprot.readStructEnd()
10072
 
10073
  def write(self, oprot):
10074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10076
      return
559 chandransh 10077
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10078
    if self.success is not None:
559 chandransh 10079
      oprot.writeFieldBegin('success', TType.LIST, 0)
10080
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 10081
      for iter152 in self.success:
10082
        iter152.write(oprot)
559 chandransh 10083
      oprot.writeListEnd()
94 ashish 10084
      oprot.writeFieldEnd()
3431 rajveer 10085
    if self.scx is not None:
559 chandransh 10086
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10087
      self.scx.write(oprot)
94 ashish 10088
      oprot.writeFieldEnd()
10089
    oprot.writeFieldStop()
10090
    oprot.writeStructEnd()
10091
 
3431 rajveer 10092
  def validate(self):
10093
    return
10094
 
10095
 
94 ashish 10096
  def __repr__(self):
10097
    L = ['%s=%r' % (key, value)
10098
      for key, value in self.__dict__.iteritems()]
10099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10100
 
10101
  def __eq__(self, other):
10102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10103
 
10104
  def __ne__(self, other):
10105
    return not (self == other)
10106
 
559 chandransh 10107
class addItemToCart_args:
10108
  """
10109
  Attributes:
10110
   - cartId
10111
   - itemId
10112
   - quantity
3557 rajveer 10113
   - sourceId
559 chandransh 10114
  """
10115
 
10116
  thrift_spec = (
10117
    None, # 0
10118
    (1, TType.I64, 'cartId', None, None, ), # 1
10119
    (2, TType.I64, 'itemId', None, None, ), # 2
10120
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10121
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10122
  )
10123
 
3557 rajveer 10124
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10125
    self.cartId = cartId
10126
    self.itemId = itemId
10127
    self.quantity = quantity
3557 rajveer 10128
    self.sourceId = sourceId
559 chandransh 10129
 
10130
  def read(self, iprot):
10131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10133
      return
10134
    iprot.readStructBegin()
10135
    while True:
10136
      (fname, ftype, fid) = iprot.readFieldBegin()
10137
      if ftype == TType.STOP:
10138
        break
10139
      if fid == 1:
10140
        if ftype == TType.I64:
10141
          self.cartId = iprot.readI64();
10142
        else:
10143
          iprot.skip(ftype)
10144
      elif fid == 2:
10145
        if ftype == TType.I64:
10146
          self.itemId = iprot.readI64();
10147
        else:
10148
          iprot.skip(ftype)
10149
      elif fid == 3:
10150
        if ftype == TType.I64:
10151
          self.quantity = iprot.readI64();
10152
        else:
10153
          iprot.skip(ftype)
3557 rajveer 10154
      elif fid == 4:
10155
        if ftype == TType.I64:
10156
          self.sourceId = iprot.readI64();
10157
        else:
10158
          iprot.skip(ftype)
559 chandransh 10159
      else:
10160
        iprot.skip(ftype)
10161
      iprot.readFieldEnd()
10162
    iprot.readStructEnd()
10163
 
10164
  def write(self, oprot):
10165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10167
      return
10168
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10169
    if self.cartId is not None:
559 chandransh 10170
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10171
      oprot.writeI64(self.cartId)
10172
      oprot.writeFieldEnd()
3431 rajveer 10173
    if self.itemId is not None:
559 chandransh 10174
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10175
      oprot.writeI64(self.itemId)
10176
      oprot.writeFieldEnd()
3431 rajveer 10177
    if self.quantity is not None:
559 chandransh 10178
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10179
      oprot.writeI64(self.quantity)
10180
      oprot.writeFieldEnd()
3557 rajveer 10181
    if self.sourceId is not None:
10182
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10183
      oprot.writeI64(self.sourceId)
10184
      oprot.writeFieldEnd()
559 chandransh 10185
    oprot.writeFieldStop()
10186
    oprot.writeStructEnd()
10187
 
3431 rajveer 10188
  def validate(self):
10189
    return
10190
 
10191
 
559 chandransh 10192
  def __repr__(self):
10193
    L = ['%s=%r' % (key, value)
10194
      for key, value in self.__dict__.iteritems()]
10195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10196
 
10197
  def __eq__(self, other):
10198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10199
 
10200
  def __ne__(self, other):
10201
    return not (self == other)
10202
 
10203
class addItemToCart_result:
10204
  """
10205
  Attributes:
2035 rajveer 10206
   - success
559 chandransh 10207
   - scx
10208
  """
10209
 
10210
  thrift_spec = (
2035 rajveer 10211
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10212
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10213
  )
10214
 
2035 rajveer 10215
  def __init__(self, success=None, scx=None,):
10216
    self.success = success
559 chandransh 10217
    self.scx = scx
10218
 
10219
  def read(self, iprot):
10220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10222
      return
10223
    iprot.readStructBegin()
10224
    while True:
10225
      (fname, ftype, fid) = iprot.readFieldBegin()
10226
      if ftype == TType.STOP:
10227
        break
2035 rajveer 10228
      if fid == 0:
10229
        if ftype == TType.STRING:
10230
          self.success = iprot.readString();
10231
        else:
10232
          iprot.skip(ftype)
10233
      elif fid == 1:
559 chandransh 10234
        if ftype == TType.STRUCT:
10235
          self.scx = ShoppingCartException()
10236
          self.scx.read(iprot)
10237
        else:
10238
          iprot.skip(ftype)
10239
      else:
10240
        iprot.skip(ftype)
10241
      iprot.readFieldEnd()
10242
    iprot.readStructEnd()
10243
 
10244
  def write(self, oprot):
10245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10247
      return
10248
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10249
    if self.success is not None:
2035 rajveer 10250
      oprot.writeFieldBegin('success', TType.STRING, 0)
10251
      oprot.writeString(self.success)
10252
      oprot.writeFieldEnd()
3431 rajveer 10253
    if self.scx is not None:
559 chandransh 10254
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10255
      self.scx.write(oprot)
10256
      oprot.writeFieldEnd()
10257
    oprot.writeFieldStop()
10258
    oprot.writeStructEnd()
10259
 
3431 rajveer 10260
  def validate(self):
10261
    return
10262
 
10263
 
559 chandransh 10264
  def __repr__(self):
10265
    L = ['%s=%r' % (key, value)
10266
      for key, value in self.__dict__.iteritems()]
10267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10268
 
10269
  def __eq__(self, other):
10270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10271
 
10272
  def __ne__(self, other):
10273
    return not (self == other)
10274
 
10275
class deleteItemFromCart_args:
10276
  """
10277
  Attributes:
10278
   - cartId
10279
   - itemId
10280
  """
10281
 
10282
  thrift_spec = (
10283
    None, # 0
10284
    (1, TType.I64, 'cartId', None, None, ), # 1
10285
    (2, TType.I64, 'itemId', None, None, ), # 2
10286
  )
10287
 
10288
  def __init__(self, cartId=None, itemId=None,):
10289
    self.cartId = cartId
10290
    self.itemId = itemId
10291
 
10292
  def read(self, iprot):
10293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10295
      return
10296
    iprot.readStructBegin()
10297
    while True:
10298
      (fname, ftype, fid) = iprot.readFieldBegin()
10299
      if ftype == TType.STOP:
10300
        break
10301
      if fid == 1:
10302
        if ftype == TType.I64:
10303
          self.cartId = iprot.readI64();
10304
        else:
10305
          iprot.skip(ftype)
10306
      elif fid == 2:
10307
        if ftype == TType.I64:
10308
          self.itemId = iprot.readI64();
10309
        else:
10310
          iprot.skip(ftype)
10311
      else:
10312
        iprot.skip(ftype)
10313
      iprot.readFieldEnd()
10314
    iprot.readStructEnd()
10315
 
10316
  def write(self, oprot):
10317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10319
      return
10320
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10321
    if self.cartId is not None:
559 chandransh 10322
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10323
      oprot.writeI64(self.cartId)
10324
      oprot.writeFieldEnd()
3431 rajveer 10325
    if self.itemId is not None:
559 chandransh 10326
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10327
      oprot.writeI64(self.itemId)
10328
      oprot.writeFieldEnd()
10329
    oprot.writeFieldStop()
10330
    oprot.writeStructEnd()
10331
 
3431 rajveer 10332
  def validate(self):
10333
    return
10334
 
10335
 
559 chandransh 10336
  def __repr__(self):
10337
    L = ['%s=%r' % (key, value)
10338
      for key, value in self.__dict__.iteritems()]
10339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10340
 
10341
  def __eq__(self, other):
10342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10343
 
10344
  def __ne__(self, other):
10345
    return not (self == other)
10346
 
10347
class deleteItemFromCart_result:
10348
  """
10349
  Attributes:
10350
   - scx
10351
  """
10352
 
10353
  thrift_spec = (
10354
    None, # 0
10355
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10356
  )
10357
 
10358
  def __init__(self, scx=None,):
10359
    self.scx = scx
10360
 
10361
  def read(self, iprot):
10362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10364
      return
10365
    iprot.readStructBegin()
10366
    while True:
10367
      (fname, ftype, fid) = iprot.readFieldBegin()
10368
      if ftype == TType.STOP:
10369
        break
10370
      if fid == 1:
10371
        if ftype == TType.STRUCT:
10372
          self.scx = ShoppingCartException()
10373
          self.scx.read(iprot)
10374
        else:
10375
          iprot.skip(ftype)
10376
      else:
10377
        iprot.skip(ftype)
10378
      iprot.readFieldEnd()
10379
    iprot.readStructEnd()
10380
 
10381
  def write(self, oprot):
10382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10384
      return
10385
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10386
    if self.scx is not None:
559 chandransh 10387
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10388
      self.scx.write(oprot)
10389
      oprot.writeFieldEnd()
10390
    oprot.writeFieldStop()
10391
    oprot.writeStructEnd()
10392
 
3431 rajveer 10393
  def validate(self):
10394
    return
10395
 
10396
 
559 chandransh 10397
  def __repr__(self):
10398
    L = ['%s=%r' % (key, value)
10399
      for key, value in self.__dict__.iteritems()]
10400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10401
 
10402
  def __eq__(self, other):
10403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10404
 
10405
  def __ne__(self, other):
10406
    return not (self == other)
10407
 
10408
class addAddressToCart_args:
10409
  """
10410
  Attributes:
10411
   - cartId
10412
   - addressId
10413
  """
10414
 
10415
  thrift_spec = (
10416
    None, # 0
10417
    (1, TType.I64, 'cartId', None, None, ), # 1
10418
    (2, TType.I64, 'addressId', None, None, ), # 2
10419
  )
10420
 
10421
  def __init__(self, cartId=None, addressId=None,):
10422
    self.cartId = cartId
10423
    self.addressId = addressId
10424
 
10425
  def read(self, iprot):
10426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10428
      return
10429
    iprot.readStructBegin()
10430
    while True:
10431
      (fname, ftype, fid) = iprot.readFieldBegin()
10432
      if ftype == TType.STOP:
10433
        break
10434
      if fid == 1:
10435
        if ftype == TType.I64:
10436
          self.cartId = iprot.readI64();
10437
        else:
10438
          iprot.skip(ftype)
10439
      elif fid == 2:
10440
        if ftype == TType.I64:
10441
          self.addressId = iprot.readI64();
10442
        else:
10443
          iprot.skip(ftype)
10444
      else:
10445
        iprot.skip(ftype)
10446
      iprot.readFieldEnd()
10447
    iprot.readStructEnd()
10448
 
10449
  def write(self, oprot):
10450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10452
      return
10453
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10454
    if self.cartId is not None:
559 chandransh 10455
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10456
      oprot.writeI64(self.cartId)
10457
      oprot.writeFieldEnd()
3431 rajveer 10458
    if self.addressId is not None:
559 chandransh 10459
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10460
      oprot.writeI64(self.addressId)
10461
      oprot.writeFieldEnd()
10462
    oprot.writeFieldStop()
10463
    oprot.writeStructEnd()
10464
 
3431 rajveer 10465
  def validate(self):
10466
    return
10467
 
10468
 
559 chandransh 10469
  def __repr__(self):
10470
    L = ['%s=%r' % (key, value)
10471
      for key, value in self.__dict__.iteritems()]
10472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10473
 
10474
  def __eq__(self, other):
10475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10476
 
10477
  def __ne__(self, other):
10478
    return not (self == other)
10479
 
10480
class addAddressToCart_result:
575 chandransh 10481
  """
10482
  Attributes:
10483
   - scx
10484
  """
559 chandransh 10485
 
10486
  thrift_spec = (
575 chandransh 10487
    None, # 0
10488
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10489
  )
10490
 
575 chandransh 10491
  def __init__(self, scx=None,):
10492
    self.scx = scx
10493
 
559 chandransh 10494
  def read(self, iprot):
10495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10497
      return
10498
    iprot.readStructBegin()
10499
    while True:
10500
      (fname, ftype, fid) = iprot.readFieldBegin()
10501
      if ftype == TType.STOP:
10502
        break
575 chandransh 10503
      if fid == 1:
10504
        if ftype == TType.STRUCT:
10505
          self.scx = ShoppingCartException()
10506
          self.scx.read(iprot)
10507
        else:
10508
          iprot.skip(ftype)
559 chandransh 10509
      else:
10510
        iprot.skip(ftype)
10511
      iprot.readFieldEnd()
10512
    iprot.readStructEnd()
10513
 
10514
  def write(self, oprot):
10515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10517
      return
10518
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10519
    if self.scx is not None:
575 chandransh 10520
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10521
      self.scx.write(oprot)
10522
      oprot.writeFieldEnd()
559 chandransh 10523
    oprot.writeFieldStop()
10524
    oprot.writeStructEnd()
10525
 
3431 rajveer 10526
  def validate(self):
10527
    return
10528
 
10529
 
559 chandransh 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
 
5553 rajveer 10541
class addStoreToCart_args:
10542
  """
10543
  Attributes:
10544
   - cartId
10545
   - storeId
10546
  """
10547
 
10548
  thrift_spec = (
10549
    None, # 0
10550
    (1, TType.I64, 'cartId', None, None, ), # 1
10551
    (2, TType.I64, 'storeId', None, None, ), # 2
10552
  )
10553
 
10554
  def __init__(self, cartId=None, storeId=None,):
10555
    self.cartId = cartId
10556
    self.storeId = storeId
10557
 
10558
  def read(self, iprot):
10559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10561
      return
10562
    iprot.readStructBegin()
10563
    while True:
10564
      (fname, ftype, fid) = iprot.readFieldBegin()
10565
      if ftype == TType.STOP:
10566
        break
10567
      if fid == 1:
10568
        if ftype == TType.I64:
10569
          self.cartId = iprot.readI64();
10570
        else:
10571
          iprot.skip(ftype)
10572
      elif fid == 2:
10573
        if ftype == TType.I64:
10574
          self.storeId = iprot.readI64();
10575
        else:
10576
          iprot.skip(ftype)
10577
      else:
10578
        iprot.skip(ftype)
10579
      iprot.readFieldEnd()
10580
    iprot.readStructEnd()
10581
 
10582
  def write(self, oprot):
10583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10585
      return
10586
    oprot.writeStructBegin('addStoreToCart_args')
10587
    if self.cartId is not None:
10588
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10589
      oprot.writeI64(self.cartId)
10590
      oprot.writeFieldEnd()
10591
    if self.storeId is not None:
10592
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10593
      oprot.writeI64(self.storeId)
10594
      oprot.writeFieldEnd()
10595
    oprot.writeFieldStop()
10596
    oprot.writeStructEnd()
10597
 
10598
  def validate(self):
10599
    return
10600
 
10601
 
10602
  def __repr__(self):
10603
    L = ['%s=%r' % (key, value)
10604
      for key, value in self.__dict__.iteritems()]
10605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10606
 
10607
  def __eq__(self, other):
10608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10609
 
10610
  def __ne__(self, other):
10611
    return not (self == other)
10612
 
10613
class addStoreToCart_result:
10614
  """
10615
  Attributes:
10616
   - scx
10617
  """
10618
 
10619
  thrift_spec = (
10620
    None, # 0
10621
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10622
  )
10623
 
10624
  def __init__(self, scx=None,):
10625
    self.scx = scx
10626
 
10627
  def read(self, iprot):
10628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10630
      return
10631
    iprot.readStructBegin()
10632
    while True:
10633
      (fname, ftype, fid) = iprot.readFieldBegin()
10634
      if ftype == TType.STOP:
10635
        break
10636
      if fid == 1:
10637
        if ftype == TType.STRUCT:
10638
          self.scx = ShoppingCartException()
10639
          self.scx.read(iprot)
10640
        else:
10641
          iprot.skip(ftype)
10642
      else:
10643
        iprot.skip(ftype)
10644
      iprot.readFieldEnd()
10645
    iprot.readStructEnd()
10646
 
10647
  def write(self, oprot):
10648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10650
      return
10651
    oprot.writeStructBegin('addStoreToCart_result')
10652
    if self.scx is not None:
10653
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10654
      self.scx.write(oprot)
10655
      oprot.writeFieldEnd()
10656
    oprot.writeFieldStop()
10657
    oprot.writeStructEnd()
10658
 
10659
  def validate(self):
10660
    return
10661
 
10662
 
10663
  def __repr__(self):
10664
    L = ['%s=%r' % (key, value)
10665
      for key, value in self.__dict__.iteritems()]
10666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10667
 
10668
  def __eq__(self, other):
10669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10670
 
10671
  def __ne__(self, other):
10672
    return not (self == other)
10673
 
1976 varun.gupt 10674
class applyCouponToCart_args:
10675
  """
10676
  Attributes:
6922 anupam.sin 10677
   - cart
1976 varun.gupt 10678
   - couponCode
10679
  """
10680
 
10681
  thrift_spec = (
10682
    None, # 0
6922 anupam.sin 10683
    (1, TType.STRUCT, 'cart', (Cart, Cart.thrift_spec), None, ), # 1
1976 varun.gupt 10684
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10685
  )
10686
 
6922 anupam.sin 10687
  def __init__(self, cart=None, couponCode=None,):
10688
    self.cart = cart
1976 varun.gupt 10689
    self.couponCode = couponCode
10690
 
10691
  def read(self, iprot):
10692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10694
      return
10695
    iprot.readStructBegin()
10696
    while True:
10697
      (fname, ftype, fid) = iprot.readFieldBegin()
10698
      if ftype == TType.STOP:
10699
        break
10700
      if fid == 1:
6922 anupam.sin 10701
        if ftype == TType.STRUCT:
10702
          self.cart = Cart()
10703
          self.cart.read(iprot)
1976 varun.gupt 10704
        else:
10705
          iprot.skip(ftype)
10706
      elif fid == 2:
10707
        if ftype == TType.STRING:
10708
          self.couponCode = iprot.readString();
10709
        else:
10710
          iprot.skip(ftype)
10711
      else:
10712
        iprot.skip(ftype)
10713
      iprot.readFieldEnd()
10714
    iprot.readStructEnd()
10715
 
10716
  def write(self, oprot):
10717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10719
      return
10720
    oprot.writeStructBegin('applyCouponToCart_args')
6922 anupam.sin 10721
    if self.cart is not None:
10722
      oprot.writeFieldBegin('cart', TType.STRUCT, 1)
10723
      self.cart.write(oprot)
1976 varun.gupt 10724
      oprot.writeFieldEnd()
3431 rajveer 10725
    if self.couponCode is not None:
1976 varun.gupt 10726
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10727
      oprot.writeString(self.couponCode)
10728
      oprot.writeFieldEnd()
10729
    oprot.writeFieldStop()
10730
    oprot.writeStructEnd()
10731
 
3431 rajveer 10732
  def validate(self):
10733
    return
10734
 
10735
 
1976 varun.gupt 10736
  def __repr__(self):
10737
    L = ['%s=%r' % (key, value)
10738
      for key, value in self.__dict__.iteritems()]
10739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10740
 
10741
  def __eq__(self, other):
10742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10743
 
10744
  def __ne__(self, other):
10745
    return not (self == other)
10746
 
10747
class applyCouponToCart_result:
10748
  """
10749
  Attributes:
10750
   - scx
10751
  """
10752
 
10753
  thrift_spec = (
10754
    None, # 0
10755
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10756
  )
10757
 
10758
  def __init__(self, scx=None,):
10759
    self.scx = scx
10760
 
10761
  def read(self, iprot):
10762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10764
      return
10765
    iprot.readStructBegin()
10766
    while True:
10767
      (fname, ftype, fid) = iprot.readFieldBegin()
10768
      if ftype == TType.STOP:
10769
        break
10770
      if fid == 1:
10771
        if ftype == TType.STRUCT:
10772
          self.scx = ShoppingCartException()
10773
          self.scx.read(iprot)
10774
        else:
10775
          iprot.skip(ftype)
10776
      else:
10777
        iprot.skip(ftype)
10778
      iprot.readFieldEnd()
10779
    iprot.readStructEnd()
10780
 
10781
  def write(self, oprot):
10782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10784
      return
10785
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10786
    if self.scx is not None:
1976 varun.gupt 10787
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10788
      self.scx.write(oprot)
10789
      oprot.writeFieldEnd()
10790
    oprot.writeFieldStop()
10791
    oprot.writeStructEnd()
10792
 
3431 rajveer 10793
  def validate(self):
10794
    return
10795
 
10796
 
1976 varun.gupt 10797
  def __repr__(self):
10798
    L = ['%s=%r' % (key, value)
10799
      for key, value in self.__dict__.iteritems()]
10800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10801
 
10802
  def __eq__(self, other):
10803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10804
 
10805
  def __ne__(self, other):
10806
    return not (self == other)
10807
 
10808
class removeCoupon_args:
10809
  """
10810
  Attributes:
10811
   - cartId
10812
  """
10813
 
10814
  thrift_spec = (
10815
    None, # 0
10816
    (1, TType.I64, 'cartId', None, None, ), # 1
10817
  )
10818
 
10819
  def __init__(self, cartId=None,):
10820
    self.cartId = cartId
10821
 
10822
  def read(self, iprot):
10823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10825
      return
10826
    iprot.readStructBegin()
10827
    while True:
10828
      (fname, ftype, fid) = iprot.readFieldBegin()
10829
      if ftype == TType.STOP:
10830
        break
10831
      if fid == 1:
10832
        if ftype == TType.I64:
10833
          self.cartId = iprot.readI64();
10834
        else:
10835
          iprot.skip(ftype)
10836
      else:
10837
        iprot.skip(ftype)
10838
      iprot.readFieldEnd()
10839
    iprot.readStructEnd()
10840
 
10841
  def write(self, oprot):
10842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10844
      return
10845
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10846
    if self.cartId is not None:
1976 varun.gupt 10847
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10848
      oprot.writeI64(self.cartId)
10849
      oprot.writeFieldEnd()
10850
    oprot.writeFieldStop()
10851
    oprot.writeStructEnd()
10852
 
3431 rajveer 10853
  def validate(self):
10854
    return
10855
 
10856
 
1976 varun.gupt 10857
  def __repr__(self):
10858
    L = ['%s=%r' % (key, value)
10859
      for key, value in self.__dict__.iteritems()]
10860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10861
 
10862
  def __eq__(self, other):
10863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10864
 
10865
  def __ne__(self, other):
10866
    return not (self == other)
10867
 
10868
class removeCoupon_result:
10869
  """
10870
  Attributes:
10871
   - scx
10872
  """
10873
 
10874
  thrift_spec = (
10875
    None, # 0
10876
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10877
  )
10878
 
10879
  def __init__(self, scx=None,):
10880
    self.scx = scx
10881
 
10882
  def read(self, iprot):
10883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10885
      return
10886
    iprot.readStructBegin()
10887
    while True:
10888
      (fname, ftype, fid) = iprot.readFieldBegin()
10889
      if ftype == TType.STOP:
10890
        break
10891
      if fid == 1:
10892
        if ftype == TType.STRUCT:
10893
          self.scx = ShoppingCartException()
10894
          self.scx.read(iprot)
10895
        else:
10896
          iprot.skip(ftype)
10897
      else:
10898
        iprot.skip(ftype)
10899
      iprot.readFieldEnd()
10900
    iprot.readStructEnd()
10901
 
10902
  def write(self, oprot):
10903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10905
      return
10906
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10907
    if self.scx is not None:
1976 varun.gupt 10908
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10909
      self.scx.write(oprot)
10910
      oprot.writeFieldEnd()
10911
    oprot.writeFieldStop()
10912
    oprot.writeStructEnd()
10913
 
3431 rajveer 10914
  def validate(self):
10915
    return
10916
 
10917
 
1976 varun.gupt 10918
  def __repr__(self):
10919
    L = ['%s=%r' % (key, value)
10920
      for key, value in self.__dict__.iteritems()]
10921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10922
 
10923
  def __eq__(self, other):
10924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10925
 
10926
  def __ne__(self, other):
10927
    return not (self == other)
10928
 
3554 varun.gupt 10929
class deleteDiscountsFromCart_args:
10930
  """
10931
  Attributes:
10932
   - cartId
10933
  """
10934
 
10935
  thrift_spec = (
10936
    None, # 0
10937
    (1, TType.I64, 'cartId', None, None, ), # 1
10938
  )
10939
 
10940
  def __init__(self, cartId=None,):
10941
    self.cartId = cartId
10942
 
10943
  def read(self, iprot):
10944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10946
      return
10947
    iprot.readStructBegin()
10948
    while True:
10949
      (fname, ftype, fid) = iprot.readFieldBegin()
10950
      if ftype == TType.STOP:
10951
        break
10952
      if fid == 1:
10953
        if ftype == TType.I64:
10954
          self.cartId = iprot.readI64();
10955
        else:
10956
          iprot.skip(ftype)
10957
      else:
10958
        iprot.skip(ftype)
10959
      iprot.readFieldEnd()
10960
    iprot.readStructEnd()
10961
 
10962
  def write(self, oprot):
10963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10965
      return
10966
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10967
    if self.cartId is not None:
10968
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10969
      oprot.writeI64(self.cartId)
10970
      oprot.writeFieldEnd()
10971
    oprot.writeFieldStop()
10972
    oprot.writeStructEnd()
10973
 
10974
  def validate(self):
10975
    return
10976
 
10977
 
10978
  def __repr__(self):
10979
    L = ['%s=%r' % (key, value)
10980
      for key, value in self.__dict__.iteritems()]
10981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10982
 
10983
  def __eq__(self, other):
10984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10985
 
10986
  def __ne__(self, other):
10987
    return not (self == other)
10988
 
10989
class deleteDiscountsFromCart_result:
10990
  """
10991
  Attributes:
10992
   - scx
10993
  """
10994
 
10995
  thrift_spec = (
10996
    None, # 0
10997
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10998
  )
10999
 
11000
  def __init__(self, scx=None,):
11001
    self.scx = scx
11002
 
11003
  def read(self, iprot):
11004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11006
      return
11007
    iprot.readStructBegin()
11008
    while True:
11009
      (fname, ftype, fid) = iprot.readFieldBegin()
11010
      if ftype == TType.STOP:
11011
        break
11012
      if fid == 1:
11013
        if ftype == TType.STRUCT:
11014
          self.scx = ShoppingCartException()
11015
          self.scx.read(iprot)
11016
        else:
11017
          iprot.skip(ftype)
11018
      else:
11019
        iprot.skip(ftype)
11020
      iprot.readFieldEnd()
11021
    iprot.readStructEnd()
11022
 
11023
  def write(self, oprot):
11024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11026
      return
11027
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11028
    if self.scx is not None:
11029
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11030
      self.scx.write(oprot)
11031
      oprot.writeFieldEnd()
11032
    oprot.writeFieldStop()
11033
    oprot.writeStructEnd()
11034
 
11035
  def validate(self):
11036
    return
11037
 
11038
 
11039
  def __repr__(self):
11040
    L = ['%s=%r' % (key, value)
11041
      for key, value in self.__dict__.iteritems()]
11042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11043
 
11044
  def __eq__(self, other):
11045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11046
 
11047
  def __ne__(self, other):
11048
    return not (self == other)
11049
 
11050
class saveDiscounts_args:
11051
  """
11052
  Attributes:
11053
   - discounts
11054
  """
11055
 
11056
  thrift_spec = (
11057
    None, # 0
11058
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11059
  )
11060
 
11061
  def __init__(self, discounts=None,):
11062
    self.discounts = discounts
11063
 
11064
  def read(self, iprot):
11065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11067
      return
11068
    iprot.readStructBegin()
11069
    while True:
11070
      (fname, ftype, fid) = iprot.readFieldBegin()
11071
      if ftype == TType.STOP:
11072
        break
11073
      if fid == 1:
11074
        if ftype == TType.LIST:
11075
          self.discounts = []
7746 amit.gupta 11076
          (_etype156, _size153) = iprot.readListBegin()
11077
          for _i157 in xrange(_size153):
11078
            _elem158 = Discount()
11079
            _elem158.read(iprot)
11080
            self.discounts.append(_elem158)
3554 varun.gupt 11081
          iprot.readListEnd()
11082
        else:
11083
          iprot.skip(ftype)
11084
      else:
11085
        iprot.skip(ftype)
11086
      iprot.readFieldEnd()
11087
    iprot.readStructEnd()
11088
 
11089
  def write(self, oprot):
11090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11092
      return
11093
    oprot.writeStructBegin('saveDiscounts_args')
11094
    if self.discounts is not None:
11095
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11096
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
7746 amit.gupta 11097
      for iter159 in self.discounts:
11098
        iter159.write(oprot)
3554 varun.gupt 11099
      oprot.writeListEnd()
11100
      oprot.writeFieldEnd()
11101
    oprot.writeFieldStop()
11102
    oprot.writeStructEnd()
11103
 
11104
  def validate(self):
11105
    return
11106
 
11107
 
11108
  def __repr__(self):
11109
    L = ['%s=%r' % (key, value)
11110
      for key, value in self.__dict__.iteritems()]
11111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11112
 
11113
  def __eq__(self, other):
11114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11115
 
11116
  def __ne__(self, other):
11117
    return not (self == other)
11118
 
11119
class saveDiscounts_result:
11120
  """
11121
  Attributes:
11122
   - scx
11123
  """
11124
 
11125
  thrift_spec = (
11126
    None, # 0
11127
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11128
  )
11129
 
11130
  def __init__(self, scx=None,):
11131
    self.scx = scx
11132
 
11133
  def read(self, iprot):
11134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11136
      return
11137
    iprot.readStructBegin()
11138
    while True:
11139
      (fname, ftype, fid) = iprot.readFieldBegin()
11140
      if ftype == TType.STOP:
11141
        break
11142
      if fid == 1:
11143
        if ftype == TType.STRUCT:
11144
          self.scx = ShoppingCartException()
11145
          self.scx.read(iprot)
11146
        else:
11147
          iprot.skip(ftype)
11148
      else:
11149
        iprot.skip(ftype)
11150
      iprot.readFieldEnd()
11151
    iprot.readStructEnd()
11152
 
11153
  def write(self, oprot):
11154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11156
      return
11157
    oprot.writeStructBegin('saveDiscounts_result')
11158
    if self.scx is not None:
11159
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11160
      self.scx.write(oprot)
11161
      oprot.writeFieldEnd()
11162
    oprot.writeFieldStop()
11163
    oprot.writeStructEnd()
11164
 
11165
  def validate(self):
11166
    return
11167
 
11168
 
11169
  def __repr__(self):
11170
    L = ['%s=%r' % (key, value)
11171
      for key, value in self.__dict__.iteritems()]
11172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11173
 
11174
  def __eq__(self, other):
11175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11176
 
11177
  def __ne__(self, other):
11178
    return not (self == other)
11179
 
690 chandransh 11180
class createOrders_args:
559 chandransh 11181
  """
11182
  Attributes:
11183
   - cartId
2815 vikas 11184
   - sessionSource
11185
   - sessionStartTime
3858 vikas 11186
   - firstSource
11187
   - firstSourceTime
5326 rajveer 11188
   - userId
6389 rajveer 11189
   - schemeId
559 chandransh 11190
  """
11191
 
11192
  thrift_spec = (
11193
    None, # 0
11194
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11195
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11196
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11197
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11198
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11199
    (6, TType.I64, 'userId', None, None, ), # 6
6389 rajveer 11200
    (7, TType.I64, 'schemeId', None, None, ), # 7
559 chandransh 11201
  )
11202
 
6389 rajveer 11203
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None,):
559 chandransh 11204
    self.cartId = cartId
2815 vikas 11205
    self.sessionSource = sessionSource
11206
    self.sessionStartTime = sessionStartTime
3858 vikas 11207
    self.firstSource = firstSource
11208
    self.firstSourceTime = firstSourceTime
5326 rajveer 11209
    self.userId = userId
6389 rajveer 11210
    self.schemeId = schemeId
559 chandransh 11211
 
11212
  def read(self, iprot):
11213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11215
      return
11216
    iprot.readStructBegin()
11217
    while True:
11218
      (fname, ftype, fid) = iprot.readFieldBegin()
11219
      if ftype == TType.STOP:
11220
        break
11221
      if fid == 1:
11222
        if ftype == TType.I64:
11223
          self.cartId = iprot.readI64();
11224
        else:
11225
          iprot.skip(ftype)
2815 vikas 11226
      elif fid == 2:
11227
        if ftype == TType.STRING:
11228
          self.sessionSource = iprot.readString();
11229
        else:
11230
          iprot.skip(ftype)
11231
      elif fid == 3:
11232
        if ftype == TType.I64:
11233
          self.sessionStartTime = iprot.readI64();
11234
        else:
11235
          iprot.skip(ftype)
3858 vikas 11236
      elif fid == 4:
11237
        if ftype == TType.STRING:
11238
          self.firstSource = iprot.readString();
11239
        else:
11240
          iprot.skip(ftype)
11241
      elif fid == 5:
11242
        if ftype == TType.I64:
11243
          self.firstSourceTime = iprot.readI64();
11244
        else:
11245
          iprot.skip(ftype)
5326 rajveer 11246
      elif fid == 6:
11247
        if ftype == TType.I64:
11248
          self.userId = iprot.readI64();
11249
        else:
11250
          iprot.skip(ftype)
6389 rajveer 11251
      elif fid == 7:
11252
        if ftype == TType.I64:
11253
          self.schemeId = iprot.readI64();
11254
        else:
11255
          iprot.skip(ftype)
559 chandransh 11256
      else:
11257
        iprot.skip(ftype)
11258
      iprot.readFieldEnd()
11259
    iprot.readStructEnd()
11260
 
11261
  def write(self, oprot):
11262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11264
      return
690 chandransh 11265
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11266
    if self.cartId is not None:
559 chandransh 11267
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11268
      oprot.writeI64(self.cartId)
11269
      oprot.writeFieldEnd()
3431 rajveer 11270
    if self.sessionSource is not None:
2815 vikas 11271
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11272
      oprot.writeString(self.sessionSource)
11273
      oprot.writeFieldEnd()
3431 rajveer 11274
    if self.sessionStartTime is not None:
2815 vikas 11275
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11276
      oprot.writeI64(self.sessionStartTime)
11277
      oprot.writeFieldEnd()
3858 vikas 11278
    if self.firstSource is not None:
11279
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11280
      oprot.writeString(self.firstSource)
11281
      oprot.writeFieldEnd()
11282
    if self.firstSourceTime is not None:
11283
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11284
      oprot.writeI64(self.firstSourceTime)
11285
      oprot.writeFieldEnd()
5326 rajveer 11286
    if self.userId is not None:
11287
      oprot.writeFieldBegin('userId', TType.I64, 6)
11288
      oprot.writeI64(self.userId)
11289
      oprot.writeFieldEnd()
6389 rajveer 11290
    if self.schemeId is not None:
11291
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
11292
      oprot.writeI64(self.schemeId)
11293
      oprot.writeFieldEnd()
559 chandransh 11294
    oprot.writeFieldStop()
11295
    oprot.writeStructEnd()
11296
 
3431 rajveer 11297
  def validate(self):
11298
    return
11299
 
11300
 
559 chandransh 11301
  def __repr__(self):
11302
    L = ['%s=%r' % (key, value)
11303
      for key, value in self.__dict__.iteritems()]
11304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11305
 
11306
  def __eq__(self, other):
11307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11308
 
11309
  def __ne__(self, other):
11310
    return not (self == other)
11311
 
690 chandransh 11312
class createOrders_result:
559 chandransh 11313
  """
11314
  Attributes:
94 ashish 11315
   - success
559 chandransh 11316
   - scx
94 ashish 11317
  """
11318
 
11319
  thrift_spec = (
575 chandransh 11320
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11321
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11322
  )
11323
 
559 chandransh 11324
  def __init__(self, success=None, scx=None,):
94 ashish 11325
    self.success = success
559 chandransh 11326
    self.scx = scx
94 ashish 11327
 
11328
  def read(self, iprot):
11329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11331
      return
11332
    iprot.readStructBegin()
11333
    while True:
11334
      (fname, ftype, fid) = iprot.readFieldBegin()
11335
      if ftype == TType.STOP:
11336
        break
11337
      if fid == 0:
575 chandransh 11338
        if ftype == TType.I64:
11339
          self.success = iprot.readI64();
94 ashish 11340
        else:
11341
          iprot.skip(ftype)
11342
      elif fid == 1:
11343
        if ftype == TType.STRUCT:
559 chandransh 11344
          self.scx = ShoppingCartException()
11345
          self.scx.read(iprot)
94 ashish 11346
        else:
11347
          iprot.skip(ftype)
11348
      else:
11349
        iprot.skip(ftype)
11350
      iprot.readFieldEnd()
11351
    iprot.readStructEnd()
11352
 
11353
  def write(self, oprot):
11354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11356
      return
690 chandransh 11357
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11358
    if self.success is not None:
575 chandransh 11359
      oprot.writeFieldBegin('success', TType.I64, 0)
11360
      oprot.writeI64(self.success)
94 ashish 11361
      oprot.writeFieldEnd()
3431 rajveer 11362
    if self.scx is not None:
559 chandransh 11363
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11364
      self.scx.write(oprot)
94 ashish 11365
      oprot.writeFieldEnd()
11366
    oprot.writeFieldStop()
11367
    oprot.writeStructEnd()
11368
 
3431 rajveer 11369
  def validate(self):
11370
    return
11371
 
11372
 
94 ashish 11373
  def __repr__(self):
11374
    L = ['%s=%r' % (key, value)
11375
      for key, value in self.__dict__.iteritems()]
11376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11377
 
11378
  def __eq__(self, other):
11379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11380
 
11381
  def __ne__(self, other):
11382
    return not (self == other)
11383
 
559 chandransh 11384
class validateCart_args:
94 ashish 11385
  """
11386
  Attributes:
559 chandransh 11387
   - cartId
3557 rajveer 11388
   - sourceId
94 ashish 11389
  """
11390
 
11391
  thrift_spec = (
11392
    None, # 0
559 chandransh 11393
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11394
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11395
  )
11396
 
3557 rajveer 11397
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11398
    self.cartId = cartId
3557 rajveer 11399
    self.sourceId = sourceId
94 ashish 11400
 
11401
  def read(self, iprot):
11402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11404
      return
11405
    iprot.readStructBegin()
11406
    while True:
11407
      (fname, ftype, fid) = iprot.readFieldBegin()
11408
      if ftype == TType.STOP:
11409
        break
11410
      if fid == 1:
11411
        if ftype == TType.I64:
559 chandransh 11412
          self.cartId = iprot.readI64();
94 ashish 11413
        else:
11414
          iprot.skip(ftype)
3557 rajveer 11415
      elif fid == 2:
11416
        if ftype == TType.I64:
11417
          self.sourceId = iprot.readI64();
11418
        else:
11419
          iprot.skip(ftype)
94 ashish 11420
      else:
11421
        iprot.skip(ftype)
11422
      iprot.readFieldEnd()
11423
    iprot.readStructEnd()
11424
 
11425
  def write(self, oprot):
11426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11428
      return
559 chandransh 11429
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11430
    if self.cartId is not None:
559 chandransh 11431
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11432
      oprot.writeI64(self.cartId)
94 ashish 11433
      oprot.writeFieldEnd()
3557 rajveer 11434
    if self.sourceId is not None:
11435
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11436
      oprot.writeI64(self.sourceId)
11437
      oprot.writeFieldEnd()
94 ashish 11438
    oprot.writeFieldStop()
11439
    oprot.writeStructEnd()
11440
 
3431 rajveer 11441
  def validate(self):
11442
    return
11443
 
11444
 
94 ashish 11445
  def __repr__(self):
11446
    L = ['%s=%r' % (key, value)
11447
      for key, value in self.__dict__.iteritems()]
11448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11449
 
11450
  def __eq__(self, other):
11451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11452
 
11453
  def __ne__(self, other):
11454
    return not (self == other)
11455
 
559 chandransh 11456
class validateCart_result:
94 ashish 11457
  """
11458
  Attributes:
11459
   - success
575 chandransh 11460
   - scex
94 ashish 11461
  """
11462
 
11463
  thrift_spec = (
6736 amit.gupta 11464
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
575 chandransh 11465
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11466
  )
11467
 
575 chandransh 11468
  def __init__(self, success=None, scex=None,):
94 ashish 11469
    self.success = success
575 chandransh 11470
    self.scex = scex
94 ashish 11471
 
11472
  def read(self, iprot):
11473
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11474
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11475
      return
11476
    iprot.readStructBegin()
11477
    while True:
11478
      (fname, ftype, fid) = iprot.readFieldBegin()
11479
      if ftype == TType.STOP:
11480
        break
11481
      if fid == 0:
6736 amit.gupta 11482
        if ftype == TType.LIST:
11483
          self.success = []
7746 amit.gupta 11484
          (_etype163, _size160) = iprot.readListBegin()
11485
          for _i164 in xrange(_size160):
11486
            _elem165 = iprot.readString();
11487
            self.success.append(_elem165)
6736 amit.gupta 11488
          iprot.readListEnd()
94 ashish 11489
        else:
11490
          iprot.skip(ftype)
575 chandransh 11491
      elif fid == 1:
11492
        if ftype == TType.STRUCT:
11493
          self.scex = ShoppingCartException()
11494
          self.scex.read(iprot)
11495
        else:
11496
          iprot.skip(ftype)
94 ashish 11497
      else:
11498
        iprot.skip(ftype)
11499
      iprot.readFieldEnd()
11500
    iprot.readStructEnd()
11501
 
11502
  def write(self, oprot):
11503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11505
      return
559 chandransh 11506
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11507
    if self.success is not None:
6736 amit.gupta 11508
      oprot.writeFieldBegin('success', TType.LIST, 0)
11509
      oprot.writeListBegin(TType.STRING, len(self.success))
7746 amit.gupta 11510
      for iter166 in self.success:
11511
        oprot.writeString(iter166)
6736 amit.gupta 11512
      oprot.writeListEnd()
94 ashish 11513
      oprot.writeFieldEnd()
3431 rajveer 11514
    if self.scex is not None:
575 chandransh 11515
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11516
      self.scex.write(oprot)
11517
      oprot.writeFieldEnd()
559 chandransh 11518
    oprot.writeFieldStop()
11519
    oprot.writeStructEnd()
11520
 
3431 rajveer 11521
  def validate(self):
11522
    return
11523
 
11524
 
559 chandransh 11525
  def __repr__(self):
11526
    L = ['%s=%r' % (key, value)
11527
      for key, value in self.__dict__.iteritems()]
11528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11529
 
11530
  def __eq__(self, other):
11531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11532
 
11533
  def __ne__(self, other):
11534
    return not (self == other)
11535
 
690 chandransh 11536
class mergeCart_args:
575 chandransh 11537
  """
11538
  Attributes:
690 chandransh 11539
   - fromCartId
11540
   - toCartId
11541
  """
11542
 
11543
  thrift_spec = (
11544
    None, # 0
11545
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11546
    (2, TType.I64, 'toCartId', None, None, ), # 2
11547
  )
11548
 
11549
  def __init__(self, fromCartId=None, toCartId=None,):
11550
    self.fromCartId = fromCartId
11551
    self.toCartId = toCartId
11552
 
11553
  def read(self, iprot):
11554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11556
      return
11557
    iprot.readStructBegin()
11558
    while True:
11559
      (fname, ftype, fid) = iprot.readFieldBegin()
11560
      if ftype == TType.STOP:
11561
        break
11562
      if fid == 1:
11563
        if ftype == TType.I64:
11564
          self.fromCartId = iprot.readI64();
11565
        else:
11566
          iprot.skip(ftype)
11567
      elif fid == 2:
11568
        if ftype == TType.I64:
11569
          self.toCartId = iprot.readI64();
11570
        else:
11571
          iprot.skip(ftype)
11572
      else:
11573
        iprot.skip(ftype)
11574
      iprot.readFieldEnd()
11575
    iprot.readStructEnd()
11576
 
11577
  def write(self, oprot):
11578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11580
      return
11581
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11582
    if self.fromCartId is not None:
690 chandransh 11583
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11584
      oprot.writeI64(self.fromCartId)
11585
      oprot.writeFieldEnd()
3431 rajveer 11586
    if self.toCartId is not None:
690 chandransh 11587
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11588
      oprot.writeI64(self.toCartId)
11589
      oprot.writeFieldEnd()
11590
    oprot.writeFieldStop()
11591
    oprot.writeStructEnd()
11592
 
3431 rajveer 11593
  def validate(self):
11594
    return
11595
 
11596
 
690 chandransh 11597
  def __repr__(self):
11598
    L = ['%s=%r' % (key, value)
11599
      for key, value in self.__dict__.iteritems()]
11600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11601
 
11602
  def __eq__(self, other):
11603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11604
 
11605
  def __ne__(self, other):
11606
    return not (self == other)
11607
 
11608
class mergeCart_result:
11609
 
11610
  thrift_spec = (
11611
  )
11612
 
11613
  def read(self, iprot):
11614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11616
      return
11617
    iprot.readStructBegin()
11618
    while True:
11619
      (fname, ftype, fid) = iprot.readFieldBegin()
11620
      if ftype == TType.STOP:
11621
        break
11622
      else:
11623
        iprot.skip(ftype)
11624
      iprot.readFieldEnd()
11625
    iprot.readStructEnd()
11626
 
11627
  def write(self, oprot):
11628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11630
      return
11631
    oprot.writeStructBegin('mergeCart_result')
11632
    oprot.writeFieldStop()
11633
    oprot.writeStructEnd()
11634
 
3431 rajveer 11635
  def validate(self):
11636
    return
11637
 
11638
 
690 chandransh 11639
  def __repr__(self):
11640
    L = ['%s=%r' % (key, value)
11641
      for key, value in self.__dict__.iteritems()]
11642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11643
 
11644
  def __eq__(self, other):
11645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11646
 
11647
  def __ne__(self, other):
11648
    return not (self == other)
11649
 
11650
class checkOut_args:
11651
  """
11652
  Attributes:
575 chandransh 11653
   - cartId
11654
  """
11655
 
11656
  thrift_spec = (
11657
    None, # 0
11658
    (1, TType.I64, 'cartId', None, None, ), # 1
11659
  )
11660
 
11661
  def __init__(self, cartId=None,):
11662
    self.cartId = cartId
11663
 
11664
  def read(self, iprot):
11665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11667
      return
11668
    iprot.readStructBegin()
11669
    while True:
11670
      (fname, ftype, fid) = iprot.readFieldBegin()
11671
      if ftype == TType.STOP:
11672
        break
11673
      if fid == 1:
11674
        if ftype == TType.I64:
11675
          self.cartId = iprot.readI64();
11676
        else:
11677
          iprot.skip(ftype)
11678
      else:
11679
        iprot.skip(ftype)
11680
      iprot.readFieldEnd()
11681
    iprot.readStructEnd()
11682
 
11683
  def write(self, oprot):
11684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11686
      return
690 chandransh 11687
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11688
    if self.cartId is not None:
575 chandransh 11689
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11690
      oprot.writeI64(self.cartId)
11691
      oprot.writeFieldEnd()
11692
    oprot.writeFieldStop()
11693
    oprot.writeStructEnd()
11694
 
3431 rajveer 11695
  def validate(self):
11696
    return
11697
 
11698
 
575 chandransh 11699
  def __repr__(self):
11700
    L = ['%s=%r' % (key, value)
11701
      for key, value in self.__dict__.iteritems()]
11702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11703
 
11704
  def __eq__(self, other):
11705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11706
 
11707
  def __ne__(self, other):
11708
    return not (self == other)
11709
 
690 chandransh 11710
class checkOut_result:
575 chandransh 11711
  """
11712
  Attributes:
11713
   - success
11714
   - scex
11715
  """
11716
 
11717
  thrift_spec = (
11718
    (0, TType.BOOL, 'success', None, None, ), # 0
11719
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11720
  )
11721
 
11722
  def __init__(self, success=None, scex=None,):
11723
    self.success = success
11724
    self.scex = scex
11725
 
11726
  def read(self, iprot):
11727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11729
      return
11730
    iprot.readStructBegin()
11731
    while True:
11732
      (fname, ftype, fid) = iprot.readFieldBegin()
11733
      if ftype == TType.STOP:
11734
        break
11735
      if fid == 0:
11736
        if ftype == TType.BOOL:
11737
          self.success = iprot.readBool();
11738
        else:
11739
          iprot.skip(ftype)
11740
      elif fid == 1:
11741
        if ftype == TType.STRUCT:
11742
          self.scex = ShoppingCartException()
11743
          self.scex.read(iprot)
11744
        else:
11745
          iprot.skip(ftype)
11746
      else:
11747
        iprot.skip(ftype)
11748
      iprot.readFieldEnd()
11749
    iprot.readStructEnd()
11750
 
11751
  def write(self, oprot):
11752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11754
      return
690 chandransh 11755
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11756
    if self.success is not None:
575 chandransh 11757
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11758
      oprot.writeBool(self.success)
11759
      oprot.writeFieldEnd()
3431 rajveer 11760
    if self.scex is not None:
575 chandransh 11761
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11762
      self.scex.write(oprot)
11763
      oprot.writeFieldEnd()
11764
    oprot.writeFieldStop()
11765
    oprot.writeStructEnd()
11766
 
3431 rajveer 11767
  def validate(self):
11768
    return
11769
 
11770
 
575 chandransh 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
 
690 chandransh 11782
class resetCart_args:
559 chandransh 11783
  """
11784
  Attributes:
690 chandransh 11785
   - cartId
11786
   - items
559 chandransh 11787
  """
11788
 
11789
  thrift_spec = (
11790
    None, # 0
690 chandransh 11791
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11792
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11793
  )
11794
 
690 chandransh 11795
  def __init__(self, cartId=None, items=None,):
11796
    self.cartId = cartId
11797
    self.items = items
559 chandransh 11798
 
11799
  def read(self, iprot):
11800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11802
      return
11803
    iprot.readStructBegin()
11804
    while True:
11805
      (fname, ftype, fid) = iprot.readFieldBegin()
11806
      if ftype == TType.STOP:
11807
        break
11808
      if fid == 1:
11809
        if ftype == TType.I64:
690 chandransh 11810
          self.cartId = iprot.readI64();
559 chandransh 11811
        else:
11812
          iprot.skip(ftype)
11813
      elif fid == 2:
690 chandransh 11814
        if ftype == TType.MAP:
11815
          self.items = {}
7746 amit.gupta 11816
          (_ktype168, _vtype169, _size167 ) = iprot.readMapBegin() 
11817
          for _i171 in xrange(_size167):
11818
            _key172 = iprot.readI64();
11819
            _val173 = iprot.readDouble();
11820
            self.items[_key172] = _val173
690 chandransh 11821
          iprot.readMapEnd()
559 chandransh 11822
        else:
11823
          iprot.skip(ftype)
11824
      else:
11825
        iprot.skip(ftype)
11826
      iprot.readFieldEnd()
11827
    iprot.readStructEnd()
11828
 
11829
  def write(self, oprot):
11830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11832
      return
690 chandransh 11833
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11834
    if self.cartId is not None:
690 chandransh 11835
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11836
      oprot.writeI64(self.cartId)
94 ashish 11837
      oprot.writeFieldEnd()
3431 rajveer 11838
    if self.items is not None:
690 chandransh 11839
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11840
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
7746 amit.gupta 11841
      for kiter174,viter175 in self.items.items():
11842
        oprot.writeI64(kiter174)
11843
        oprot.writeDouble(viter175)
690 chandransh 11844
      oprot.writeMapEnd()
559 chandransh 11845
      oprot.writeFieldEnd()
94 ashish 11846
    oprot.writeFieldStop()
11847
    oprot.writeStructEnd()
11848
 
3431 rajveer 11849
  def validate(self):
11850
    return
11851
 
11852
 
94 ashish 11853
  def __repr__(self):
11854
    L = ['%s=%r' % (key, value)
11855
      for key, value in self.__dict__.iteritems()]
11856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11857
 
11858
  def __eq__(self, other):
11859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11860
 
11861
  def __ne__(self, other):
11862
    return not (self == other)
11863
 
690 chandransh 11864
class resetCart_result:
11865
  """
11866
  Attributes:
11867
   - success
11868
   - scex
11869
  """
559 chandransh 11870
 
11871
  thrift_spec = (
690 chandransh 11872
    (0, TType.BOOL, 'success', None, None, ), # 0
11873
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11874
  )
11875
 
690 chandransh 11876
  def __init__(self, success=None, scex=None,):
11877
    self.success = success
11878
    self.scex = scex
11879
 
559 chandransh 11880
  def read(self, iprot):
11881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11883
      return
11884
    iprot.readStructBegin()
11885
    while True:
11886
      (fname, ftype, fid) = iprot.readFieldBegin()
11887
      if ftype == TType.STOP:
11888
        break
690 chandransh 11889
      if fid == 0:
11890
        if ftype == TType.BOOL:
11891
          self.success = iprot.readBool();
11892
        else:
11893
          iprot.skip(ftype)
11894
      elif fid == 1:
11895
        if ftype == TType.STRUCT:
11896
          self.scex = ShoppingCartException()
11897
          self.scex.read(iprot)
11898
        else:
11899
          iprot.skip(ftype)
559 chandransh 11900
      else:
11901
        iprot.skip(ftype)
11902
      iprot.readFieldEnd()
11903
    iprot.readStructEnd()
11904
 
11905
  def write(self, oprot):
11906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11908
      return
690 chandransh 11909
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11910
    if self.success is not None:
690 chandransh 11911
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11912
      oprot.writeBool(self.success)
11913
      oprot.writeFieldEnd()
3431 rajveer 11914
    if self.scex is not None:
690 chandransh 11915
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11916
      self.scex.write(oprot)
11917
      oprot.writeFieldEnd()
559 chandransh 11918
    oprot.writeFieldStop()
11919
    oprot.writeStructEnd()
11920
 
3431 rajveer 11921
  def validate(self):
11922
    return
11923
 
11924
 
559 chandransh 11925
  def __repr__(self):
11926
    L = ['%s=%r' % (key, value)
11927
      for key, value in self.__dict__.iteritems()]
11928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11929
 
11930
  def __eq__(self, other):
11931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11932
 
11933
  def __ne__(self, other):
11934
    return not (self == other)
11935
 
2981 rajveer 11936
class getUserCount_args:
94 ashish 11937
  """
11938
  Attributes:
2981 rajveer 11939
   - userType
559 chandransh 11940
  """
11941
 
11942
  thrift_spec = (
11943
    None, # 0
2981 rajveer 11944
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11945
  )
11946
 
2981 rajveer 11947
  def __init__(self, userType=None,):
11948
    self.userType = userType
559 chandransh 11949
 
11950
  def read(self, iprot):
11951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11953
      return
11954
    iprot.readStructBegin()
11955
    while True:
11956
      (fname, ftype, fid) = iprot.readFieldBegin()
11957
      if ftype == TType.STOP:
11958
        break
11959
      if fid == 1:
2981 rajveer 11960
        if ftype == TType.I32:
11961
          self.userType = iprot.readI32();
559 chandransh 11962
        else:
11963
          iprot.skip(ftype)
11964
      else:
11965
        iprot.skip(ftype)
11966
      iprot.readFieldEnd()
11967
    iprot.readStructEnd()
11968
 
11969
  def write(self, oprot):
11970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11972
      return
2981 rajveer 11973
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11974
    if self.userType is not None:
2981 rajveer 11975
      oprot.writeFieldBegin('userType', TType.I32, 1)
11976
      oprot.writeI32(self.userType)
559 chandransh 11977
      oprot.writeFieldEnd()
11978
    oprot.writeFieldStop()
11979
    oprot.writeStructEnd()
11980
 
3431 rajveer 11981
  def validate(self):
11982
    return
11983
 
11984
 
559 chandransh 11985
  def __repr__(self):
11986
    L = ['%s=%r' % (key, value)
11987
      for key, value in self.__dict__.iteritems()]
11988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11989
 
11990
  def __eq__(self, other):
11991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11992
 
11993
  def __ne__(self, other):
11994
    return not (self == other)
11995
 
2981 rajveer 11996
class getUserCount_result:
94 ashish 11997
  """
11998
  Attributes:
11999
   - success
12000
  """
12001
 
12002
  thrift_spec = (
2981 rajveer 12003
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12004
  )
12005
 
2981 rajveer 12006
  def __init__(self, success=None,):
94 ashish 12007
    self.success = success
12008
 
12009
  def read(self, iprot):
12010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12012
      return
12013
    iprot.readStructBegin()
12014
    while True:
12015
      (fname, ftype, fid) = iprot.readFieldBegin()
12016
      if ftype == TType.STOP:
12017
        break
12018
      if fid == 0:
2981 rajveer 12019
        if ftype == TType.I64:
12020
          self.success = iprot.readI64();
94 ashish 12021
        else:
12022
          iprot.skip(ftype)
12023
      else:
12024
        iprot.skip(ftype)
12025
      iprot.readFieldEnd()
12026
    iprot.readStructEnd()
12027
 
12028
  def write(self, oprot):
12029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12031
      return
2981 rajveer 12032
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12033
    if self.success is not None:
2981 rajveer 12034
      oprot.writeFieldBegin('success', TType.I64, 0)
12035
      oprot.writeI64(self.success)
94 ashish 12036
      oprot.writeFieldEnd()
12037
    oprot.writeFieldStop()
12038
    oprot.writeStructEnd()
12039
 
3431 rajveer 12040
  def validate(self):
12041
    return
12042
 
12043
 
94 ashish 12044
  def __repr__(self):
12045
    L = ['%s=%r' % (key, value)
12046
      for key, value in self.__dict__.iteritems()]
12047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12048
 
12049
  def __eq__(self, other):
12050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12051
 
12052
  def __ne__(self, other):
12053
    return not (self == other)
12054
 
2981 rajveer 12055
class getAllUsers_args:
94 ashish 12056
  """
12057
  Attributes:
2981 rajveer 12058
   - userType
12059
   - startDate
12060
   - endDate
94 ashish 12061
  """
12062
 
12063
  thrift_spec = (
12064
    None, # 0
2981 rajveer 12065
    (1, TType.I32, 'userType', None, None, ), # 1
12066
    (2, TType.I64, 'startDate', None, None, ), # 2
12067
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12068
  )
12069
 
2981 rajveer 12070
  def __init__(self, userType=None, startDate=None, endDate=None,):
12071
    self.userType = userType
12072
    self.startDate = startDate
12073
    self.endDate = endDate
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 == 1:
2981 rajveer 12085
        if ftype == TType.I32:
12086
          self.userType = iprot.readI32();
94 ashish 12087
        else:
12088
          iprot.skip(ftype)
12089
      elif fid == 2:
559 chandransh 12090
        if ftype == TType.I64:
2981 rajveer 12091
          self.startDate = iprot.readI64();
94 ashish 12092
        else:
12093
          iprot.skip(ftype)
2981 rajveer 12094
      elif fid == 3:
12095
        if ftype == TType.I64:
12096
          self.endDate = iprot.readI64();
12097
        else:
12098
          iprot.skip(ftype)
94 ashish 12099
      else:
12100
        iprot.skip(ftype)
12101
      iprot.readFieldEnd()
12102
    iprot.readStructEnd()
12103
 
12104
  def write(self, oprot):
12105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12107
      return
2981 rajveer 12108
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12109
    if self.userType is not None:
2981 rajveer 12110
      oprot.writeFieldBegin('userType', TType.I32, 1)
12111
      oprot.writeI32(self.userType)
94 ashish 12112
      oprot.writeFieldEnd()
3431 rajveer 12113
    if self.startDate is not None:
2981 rajveer 12114
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12115
      oprot.writeI64(self.startDate)
94 ashish 12116
      oprot.writeFieldEnd()
3431 rajveer 12117
    if self.endDate is not None:
2981 rajveer 12118
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12119
      oprot.writeI64(self.endDate)
12120
      oprot.writeFieldEnd()
94 ashish 12121
    oprot.writeFieldStop()
12122
    oprot.writeStructEnd()
12123
 
3431 rajveer 12124
  def validate(self):
12125
    return
12126
 
12127
 
94 ashish 12128
  def __repr__(self):
12129
    L = ['%s=%r' % (key, value)
12130
      for key, value in self.__dict__.iteritems()]
12131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12132
 
12133
  def __eq__(self, other):
12134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12135
 
12136
  def __ne__(self, other):
12137
    return not (self == other)
12138
 
2981 rajveer 12139
class getAllUsers_result:
94 ashish 12140
  """
12141
  Attributes:
12142
   - success
12143
  """
12144
 
12145
  thrift_spec = (
2981 rajveer 12146
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12147
  )
12148
 
2981 rajveer 12149
  def __init__(self, success=None,):
94 ashish 12150
    self.success = success
12151
 
12152
  def read(self, iprot):
12153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12155
      return
12156
    iprot.readStructBegin()
12157
    while True:
12158
      (fname, ftype, fid) = iprot.readFieldBegin()
12159
      if ftype == TType.STOP:
12160
        break
12161
      if fid == 0:
2981 rajveer 12162
        if ftype == TType.LIST:
12163
          self.success = []
7746 amit.gupta 12164
          (_etype179, _size176) = iprot.readListBegin()
12165
          for _i180 in xrange(_size176):
12166
            _elem181 = User()
12167
            _elem181.read(iprot)
12168
            self.success.append(_elem181)
2981 rajveer 12169
          iprot.readListEnd()
94 ashish 12170
        else:
12171
          iprot.skip(ftype)
12172
      else:
12173
        iprot.skip(ftype)
12174
      iprot.readFieldEnd()
12175
    iprot.readStructEnd()
12176
 
12177
  def write(self, oprot):
12178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12180
      return
2981 rajveer 12181
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12182
    if self.success is not None:
2981 rajveer 12183
      oprot.writeFieldBegin('success', TType.LIST, 0)
12184
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 12185
      for iter182 in self.success:
12186
        iter182.write(oprot)
2981 rajveer 12187
      oprot.writeListEnd()
94 ashish 12188
      oprot.writeFieldEnd()
12189
    oprot.writeFieldStop()
12190
    oprot.writeStructEnd()
12191
 
3431 rajveer 12192
  def validate(self):
12193
    return
12194
 
12195
 
94 ashish 12196
  def __repr__(self):
12197
    L = ['%s=%r' % (key, value)
12198
      for key, value in self.__dict__.iteritems()]
12199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12200
 
12201
  def __eq__(self, other):
12202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12203
 
12204
  def __ne__(self, other):
12205
    return not (self == other)
12206
 
2981 rajveer 12207
class getMyResearchItems_args:
559 chandransh 12208
  """
12209
  Attributes:
772 rajveer 12210
   - userId
559 chandransh 12211
  """
12212
 
12213
  thrift_spec = (
12214
    None, # 0
772 rajveer 12215
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12216
  )
12217
 
772 rajveer 12218
  def __init__(self, userId=None,):
12219
    self.userId = userId
559 chandransh 12220
 
12221
  def read(self, iprot):
12222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12224
      return
12225
    iprot.readStructBegin()
12226
    while True:
12227
      (fname, ftype, fid) = iprot.readFieldBegin()
12228
      if ftype == TType.STOP:
12229
        break
12230
      if fid == 1:
12231
        if ftype == TType.I64:
772 rajveer 12232
          self.userId = iprot.readI64();
559 chandransh 12233
        else:
12234
          iprot.skip(ftype)
12235
      else:
12236
        iprot.skip(ftype)
12237
      iprot.readFieldEnd()
12238
    iprot.readStructEnd()
12239
 
12240
  def write(self, oprot):
12241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12243
      return
2981 rajveer 12244
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12245
    if self.userId is not None:
772 rajveer 12246
      oprot.writeFieldBegin('userId', TType.I64, 1)
12247
      oprot.writeI64(self.userId)
559 chandransh 12248
      oprot.writeFieldEnd()
12249
    oprot.writeFieldStop()
12250
    oprot.writeStructEnd()
12251
 
3431 rajveer 12252
  def validate(self):
12253
    return
12254
 
12255
 
559 chandransh 12256
  def __repr__(self):
12257
    L = ['%s=%r' % (key, value)
12258
      for key, value in self.__dict__.iteritems()]
12259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12260
 
12261
  def __eq__(self, other):
12262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12263
 
12264
  def __ne__(self, other):
12265
    return not (self == other)
12266
 
2981 rajveer 12267
class getMyResearchItems_result:
559 chandransh 12268
  """
12269
  Attributes:
130 ashish 12270
   - success
559 chandransh 12271
   - scx
130 ashish 12272
  """
12273
 
12274
  thrift_spec = (
2981 rajveer 12275
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12276
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12277
  )
12278
 
559 chandransh 12279
  def __init__(self, success=None, scx=None,):
130 ashish 12280
    self.success = success
559 chandransh 12281
    self.scx = scx
130 ashish 12282
 
12283
  def read(self, iprot):
12284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12286
      return
12287
    iprot.readStructBegin()
12288
    while True:
12289
      (fname, ftype, fid) = iprot.readFieldBegin()
12290
      if ftype == TType.STOP:
12291
        break
12292
      if fid == 0:
2981 rajveer 12293
        if ftype == TType.LIST:
12294
          self.success = []
7746 amit.gupta 12295
          (_etype186, _size183) = iprot.readListBegin()
12296
          for _i187 in xrange(_size183):
12297
            _elem188 = iprot.readI64();
12298
            self.success.append(_elem188)
2981 rajveer 12299
          iprot.readListEnd()
130 ashish 12300
        else:
12301
          iprot.skip(ftype)
12302
      elif fid == 1:
12303
        if ftype == TType.STRUCT:
559 chandransh 12304
          self.scx = WidgetException()
12305
          self.scx.read(iprot)
130 ashish 12306
        else:
12307
          iprot.skip(ftype)
12308
      else:
12309
        iprot.skip(ftype)
12310
      iprot.readFieldEnd()
12311
    iprot.readStructEnd()
12312
 
12313
  def write(self, oprot):
12314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12316
      return
2981 rajveer 12317
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12318
    if self.success is not None:
2981 rajveer 12319
      oprot.writeFieldBegin('success', TType.LIST, 0)
12320
      oprot.writeListBegin(TType.I64, len(self.success))
7746 amit.gupta 12321
      for iter189 in self.success:
12322
        oprot.writeI64(iter189)
2981 rajveer 12323
      oprot.writeListEnd()
130 ashish 12324
      oprot.writeFieldEnd()
3431 rajveer 12325
    if self.scx is not None:
559 chandransh 12326
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12327
      self.scx.write(oprot)
130 ashish 12328
      oprot.writeFieldEnd()
12329
    oprot.writeFieldStop()
12330
    oprot.writeStructEnd()
12331
 
3431 rajveer 12332
  def validate(self):
12333
    return
12334
 
12335
 
130 ashish 12336
  def __repr__(self):
12337
    L = ['%s=%r' % (key, value)
12338
      for key, value in self.__dict__.iteritems()]
12339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12340
 
12341
  def __eq__(self, other):
12342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12343
 
12344
  def __ne__(self, other):
12345
    return not (self == other)
12346
 
2981 rajveer 12347
class updateMyResearch_args:
130 ashish 12348
  """
12349
  Attributes:
2981 rajveer 12350
   - userId
12351
   - itemId
130 ashish 12352
  """
12353
 
12354
  thrift_spec = (
12355
    None, # 0
2981 rajveer 12356
    (1, TType.I64, 'userId', None, None, ), # 1
12357
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12358
  )
12359
 
2981 rajveer 12360
  def __init__(self, userId=None, itemId=None,):
12361
    self.userId = userId
12362
    self.itemId = itemId
130 ashish 12363
 
12364
  def read(self, iprot):
12365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12367
      return
12368
    iprot.readStructBegin()
12369
    while True:
12370
      (fname, ftype, fid) = iprot.readFieldBegin()
12371
      if ftype == TType.STOP:
12372
        break
12373
      if fid == 1:
559 chandransh 12374
        if ftype == TType.I64:
2981 rajveer 12375
          self.userId = iprot.readI64();
130 ashish 12376
        else:
12377
          iprot.skip(ftype)
12378
      elif fid == 2:
559 chandransh 12379
        if ftype == TType.I64:
2981 rajveer 12380
          self.itemId = iprot.readI64();
559 chandransh 12381
        else:
12382
          iprot.skip(ftype)
130 ashish 12383
      else:
12384
        iprot.skip(ftype)
12385
      iprot.readFieldEnd()
12386
    iprot.readStructEnd()
12387
 
12388
  def write(self, oprot):
12389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12391
      return
2981 rajveer 12392
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12393
    if self.userId is not None:
2981 rajveer 12394
      oprot.writeFieldBegin('userId', TType.I64, 1)
12395
      oprot.writeI64(self.userId)
130 ashish 12396
      oprot.writeFieldEnd()
3431 rajveer 12397
    if self.itemId is not None:
2981 rajveer 12398
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12399
      oprot.writeI64(self.itemId)
130 ashish 12400
      oprot.writeFieldEnd()
12401
    oprot.writeFieldStop()
12402
    oprot.writeStructEnd()
12403
 
3431 rajveer 12404
  def validate(self):
12405
    return
12406
 
12407
 
130 ashish 12408
  def __repr__(self):
12409
    L = ['%s=%r' % (key, value)
12410
      for key, value in self.__dict__.iteritems()]
12411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12412
 
12413
  def __eq__(self, other):
12414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12415
 
12416
  def __ne__(self, other):
12417
    return not (self == other)
12418
 
2981 rajveer 12419
class updateMyResearch_result:
12420
  """
12421
  Attributes:
12422
   - success
12423
   - scx
12424
  """
559 chandransh 12425
 
12426
  thrift_spec = (
2981 rajveer 12427
    (0, TType.BOOL, 'success', None, None, ), # 0
12428
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12429
  )
12430
 
2981 rajveer 12431
  def __init__(self, success=None, scx=None,):
12432
    self.success = success
12433
    self.scx = scx
12434
 
559 chandransh 12435
  def read(self, iprot):
12436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12438
      return
12439
    iprot.readStructBegin()
12440
    while True:
12441
      (fname, ftype, fid) = iprot.readFieldBegin()
12442
      if ftype == TType.STOP:
12443
        break
2981 rajveer 12444
      if fid == 0:
12445
        if ftype == TType.BOOL:
12446
          self.success = iprot.readBool();
12447
        else:
12448
          iprot.skip(ftype)
12449
      elif fid == 1:
12450
        if ftype == TType.STRUCT:
12451
          self.scx = WidgetException()
12452
          self.scx.read(iprot)
12453
        else:
12454
          iprot.skip(ftype)
559 chandransh 12455
      else:
12456
        iprot.skip(ftype)
12457
      iprot.readFieldEnd()
12458
    iprot.readStructEnd()
12459
 
12460
  def write(self, oprot):
12461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12463
      return
2981 rajveer 12464
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12465
    if self.success is not None:
2981 rajveer 12466
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12467
      oprot.writeBool(self.success)
12468
      oprot.writeFieldEnd()
3431 rajveer 12469
    if self.scx is not None:
2981 rajveer 12470
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12471
      self.scx.write(oprot)
12472
      oprot.writeFieldEnd()
559 chandransh 12473
    oprot.writeFieldStop()
12474
    oprot.writeStructEnd()
12475
 
3431 rajveer 12476
  def validate(self):
12477
    return
12478
 
12479
 
559 chandransh 12480
  def __repr__(self):
12481
    L = ['%s=%r' % (key, value)
12482
      for key, value in self.__dict__.iteritems()]
12483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12484
 
12485
  def __eq__(self, other):
12486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12487
 
12488
  def __ne__(self, other):
12489
    return not (self == other)
12490
 
2981 rajveer 12491
class deleteItemFromMyResearch_args:
1596 ankur.sing 12492
  """
12493
  Attributes:
2981 rajveer 12494
   - userId
12495
   - itemId
1596 ankur.sing 12496
  """
559 chandransh 12497
 
1596 ankur.sing 12498
  thrift_spec = (
12499
    None, # 0
2981 rajveer 12500
    (1, TType.I64, 'userId', None, None, ), # 1
12501
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12502
  )
12503
 
2981 rajveer 12504
  def __init__(self, userId=None, itemId=None,):
12505
    self.userId = userId
12506
    self.itemId = itemId
1596 ankur.sing 12507
 
12508
  def read(self, iprot):
12509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12511
      return
12512
    iprot.readStructBegin()
12513
    while True:
12514
      (fname, ftype, fid) = iprot.readFieldBegin()
12515
      if ftype == TType.STOP:
12516
        break
12517
      if fid == 1:
2981 rajveer 12518
        if ftype == TType.I64:
12519
          self.userId = iprot.readI64();
1596 ankur.sing 12520
        else:
12521
          iprot.skip(ftype)
2981 rajveer 12522
      elif fid == 2:
12523
        if ftype == TType.I64:
12524
          self.itemId = iprot.readI64();
12525
        else:
12526
          iprot.skip(ftype)
1596 ankur.sing 12527
      else:
12528
        iprot.skip(ftype)
12529
      iprot.readFieldEnd()
12530
    iprot.readStructEnd()
12531
 
12532
  def write(self, oprot):
12533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12535
      return
2981 rajveer 12536
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12537
    if self.userId is not None:
2981 rajveer 12538
      oprot.writeFieldBegin('userId', TType.I64, 1)
12539
      oprot.writeI64(self.userId)
1596 ankur.sing 12540
      oprot.writeFieldEnd()
3431 rajveer 12541
    if self.itemId is not None:
2981 rajveer 12542
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12543
      oprot.writeI64(self.itemId)
12544
      oprot.writeFieldEnd()
1596 ankur.sing 12545
    oprot.writeFieldStop()
12546
    oprot.writeStructEnd()
12547
 
3431 rajveer 12548
  def validate(self):
12549
    return
12550
 
12551
 
1596 ankur.sing 12552
  def __repr__(self):
12553
    L = ['%s=%r' % (key, value)
12554
      for key, value in self.__dict__.iteritems()]
12555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12556
 
12557
  def __eq__(self, other):
12558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12559
 
12560
  def __ne__(self, other):
12561
    return not (self == other)
12562
 
2981 rajveer 12563
class deleteItemFromMyResearch_result:
1596 ankur.sing 12564
  """
12565
  Attributes:
2981 rajveer 12566
   - scx
1596 ankur.sing 12567
  """
12568
 
12569
  thrift_spec = (
2981 rajveer 12570
    None, # 0
12571
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12572
  )
12573
 
2981 rajveer 12574
  def __init__(self, scx=None,):
12575
    self.scx = scx
1596 ankur.sing 12576
 
12577
  def read(self, iprot):
12578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12580
      return
12581
    iprot.readStructBegin()
12582
    while True:
12583
      (fname, ftype, fid) = iprot.readFieldBegin()
12584
      if ftype == TType.STOP:
12585
        break
2981 rajveer 12586
      if fid == 1:
12587
        if ftype == TType.STRUCT:
12588
          self.scx = WidgetException()
12589
          self.scx.read(iprot)
1596 ankur.sing 12590
        else:
12591
          iprot.skip(ftype)
12592
      else:
12593
        iprot.skip(ftype)
12594
      iprot.readFieldEnd()
12595
    iprot.readStructEnd()
12596
 
12597
  def write(self, oprot):
12598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12600
      return
2981 rajveer 12601
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12602
    if self.scx is not None:
2981 rajveer 12603
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12604
      self.scx.write(oprot)
1596 ankur.sing 12605
      oprot.writeFieldEnd()
12606
    oprot.writeFieldStop()
12607
    oprot.writeStructEnd()
12608
 
3431 rajveer 12609
  def validate(self):
12610
    return
12611
 
12612
 
1596 ankur.sing 12613
  def __repr__(self):
12614
    L = ['%s=%r' % (key, value)
12615
      for key, value in self.__dict__.iteritems()]
12616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12617
 
12618
  def __eq__(self, other):
12619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12620
 
12621
  def __ne__(self, other):
12622
    return not (self == other)
12623
 
2981 rajveer 12624
class getBrowseHistoryItems_args:
1673 ankur.sing 12625
  """
12626
  Attributes:
2981 rajveer 12627
   - userId
1673 ankur.sing 12628
  """
1596 ankur.sing 12629
 
1673 ankur.sing 12630
  thrift_spec = (
12631
    None, # 0
2981 rajveer 12632
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12633
  )
12634
 
2981 rajveer 12635
  def __init__(self, userId=None,):
12636
    self.userId = userId
1673 ankur.sing 12637
 
12638
  def read(self, iprot):
12639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12641
      return
12642
    iprot.readStructBegin()
12643
    while True:
12644
      (fname, ftype, fid) = iprot.readFieldBegin()
12645
      if ftype == TType.STOP:
12646
        break
12647
      if fid == 1:
1891 ankur.sing 12648
        if ftype == TType.I64:
2981 rajveer 12649
          self.userId = iprot.readI64();
1891 ankur.sing 12650
        else:
12651
          iprot.skip(ftype)
1673 ankur.sing 12652
      else:
12653
        iprot.skip(ftype)
12654
      iprot.readFieldEnd()
12655
    iprot.readStructEnd()
12656
 
12657
  def write(self, oprot):
12658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12660
      return
2981 rajveer 12661
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12662
    if self.userId is not None:
2981 rajveer 12663
      oprot.writeFieldBegin('userId', TType.I64, 1)
12664
      oprot.writeI64(self.userId)
1673 ankur.sing 12665
      oprot.writeFieldEnd()
12666
    oprot.writeFieldStop()
12667
    oprot.writeStructEnd()
12668
 
3431 rajveer 12669
  def validate(self):
12670
    return
12671
 
12672
 
1673 ankur.sing 12673
  def __repr__(self):
12674
    L = ['%s=%r' % (key, value)
12675
      for key, value in self.__dict__.iteritems()]
12676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12677
 
12678
  def __eq__(self, other):
12679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12680
 
12681
  def __ne__(self, other):
12682
    return not (self == other)
12683
 
2981 rajveer 12684
class getBrowseHistoryItems_result:
1673 ankur.sing 12685
  """
12686
  Attributes:
12687
   - success
2981 rajveer 12688
   - scx
1673 ankur.sing 12689
  """
12690
 
12691
  thrift_spec = (
2981 rajveer 12692
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12693
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12694
  )
12695
 
2981 rajveer 12696
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12697
    self.success = success
2981 rajveer 12698
    self.scx = scx
1673 ankur.sing 12699
 
12700
  def read(self, iprot):
12701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12703
      return
12704
    iprot.readStructBegin()
12705
    while True:
12706
      (fname, ftype, fid) = iprot.readFieldBegin()
12707
      if ftype == TType.STOP:
12708
        break
12709
      if fid == 0:
12710
        if ftype == TType.LIST:
12711
          self.success = []
7746 amit.gupta 12712
          (_etype193, _size190) = iprot.readListBegin()
12713
          for _i194 in xrange(_size190):
12714
            _elem195 = iprot.readI64();
12715
            self.success.append(_elem195)
1673 ankur.sing 12716
          iprot.readListEnd()
12717
        else:
12718
          iprot.skip(ftype)
2981 rajveer 12719
      elif fid == 1:
12720
        if ftype == TType.STRUCT:
12721
          self.scx = WidgetException()
12722
          self.scx.read(iprot)
12723
        else:
12724
          iprot.skip(ftype)
1673 ankur.sing 12725
      else:
12726
        iprot.skip(ftype)
12727
      iprot.readFieldEnd()
12728
    iprot.readStructEnd()
12729
 
12730
  def write(self, oprot):
12731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12733
      return
2981 rajveer 12734
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12735
    if self.success is not None:
1673 ankur.sing 12736
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12737
      oprot.writeListBegin(TType.I64, len(self.success))
7746 amit.gupta 12738
      for iter196 in self.success:
12739
        oprot.writeI64(iter196)
1673 ankur.sing 12740
      oprot.writeListEnd()
12741
      oprot.writeFieldEnd()
3431 rajveer 12742
    if self.scx is not None:
2981 rajveer 12743
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12744
      self.scx.write(oprot)
2642 varun.gupt 12745
      oprot.writeFieldEnd()
12746
    oprot.writeFieldStop()
12747
    oprot.writeStructEnd()
12748
 
3431 rajveer 12749
  def validate(self):
12750
    return
12751
 
12752
 
2642 varun.gupt 12753
  def __repr__(self):
12754
    L = ['%s=%r' % (key, value)
12755
      for key, value in self.__dict__.iteritems()]
12756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12757
 
12758
  def __eq__(self, other):
12759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12760
 
12761
  def __ne__(self, other):
12762
    return not (self == other)
12763
 
2981 rajveer 12764
class updateBrowseHistory_args:
2642 varun.gupt 12765
  """
12766
  Attributes:
2981 rajveer 12767
   - userId
12768
   - itemId
2642 varun.gupt 12769
  """
12770
 
12771
  thrift_spec = (
12772
    None, # 0
2981 rajveer 12773
    (1, TType.I64, 'userId', None, None, ), # 1
12774
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12775
  )
12776
 
2981 rajveer 12777
  def __init__(self, userId=None, itemId=None,):
12778
    self.userId = userId
12779
    self.itemId = itemId
2642 varun.gupt 12780
 
12781
  def read(self, iprot):
12782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12784
      return
12785
    iprot.readStructBegin()
12786
    while True:
12787
      (fname, ftype, fid) = iprot.readFieldBegin()
12788
      if ftype == TType.STOP:
12789
        break
12790
      if fid == 1:
12791
        if ftype == TType.I64:
2981 rajveer 12792
          self.userId = iprot.readI64();
2642 varun.gupt 12793
        else:
12794
          iprot.skip(ftype)
12795
      elif fid == 2:
12796
        if ftype == TType.I64:
2981 rajveer 12797
          self.itemId = iprot.readI64();
2642 varun.gupt 12798
        else:
12799
          iprot.skip(ftype)
12800
      else:
12801
        iprot.skip(ftype)
12802
      iprot.readFieldEnd()
12803
    iprot.readStructEnd()
12804
 
12805
  def write(self, oprot):
12806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12808
      return
2981 rajveer 12809
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12810
    if self.userId is not None:
2981 rajveer 12811
      oprot.writeFieldBegin('userId', TType.I64, 1)
12812
      oprot.writeI64(self.userId)
2642 varun.gupt 12813
      oprot.writeFieldEnd()
3431 rajveer 12814
    if self.itemId is not None:
2981 rajveer 12815
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12816
      oprot.writeI64(self.itemId)
2642 varun.gupt 12817
      oprot.writeFieldEnd()
12818
    oprot.writeFieldStop()
12819
    oprot.writeStructEnd()
12820
 
3431 rajveer 12821
  def validate(self):
12822
    return
12823
 
12824
 
2642 varun.gupt 12825
  def __repr__(self):
12826
    L = ['%s=%r' % (key, value)
12827
      for key, value in self.__dict__.iteritems()]
12828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12829
 
12830
  def __eq__(self, other):
12831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12832
 
12833
  def __ne__(self, other):
12834
    return not (self == other)
12835
 
2981 rajveer 12836
class updateBrowseHistory_result:
2642 varun.gupt 12837
 
12838
  thrift_spec = (
12839
  )
12840
 
12841
  def read(self, iprot):
12842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12844
      return
12845
    iprot.readStructBegin()
12846
    while True:
12847
      (fname, ftype, fid) = iprot.readFieldBegin()
12848
      if ftype == TType.STOP:
12849
        break
12850
      else:
12851
        iprot.skip(ftype)
12852
      iprot.readFieldEnd()
12853
    iprot.readStructEnd()
12854
 
12855
  def write(self, oprot):
12856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12858
      return
2981 rajveer 12859
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12860
    oprot.writeFieldStop()
12861
    oprot.writeStructEnd()
12862
 
3431 rajveer 12863
  def validate(self):
12864
    return
12865
 
12866
 
2642 varun.gupt 12867
  def __repr__(self):
12868
    L = ['%s=%r' % (key, value)
12869
      for key, value in self.__dict__.iteritems()]
12870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12871
 
12872
  def __eq__(self, other):
12873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12874
 
12875
  def __ne__(self, other):
12876
    return not (self == other)
12877
 
3385 varun.gupt 12878
class getCartsWithCouponCount_args:
12879
  """
12880
  Attributes:
12881
   - couponCode
12882
  """
2642 varun.gupt 12883
 
3385 varun.gupt 12884
  thrift_spec = (
12885
    None, # 0
12886
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12887
  )
12888
 
12889
  def __init__(self, couponCode=None,):
12890
    self.couponCode = couponCode
12891
 
12892
  def read(self, iprot):
12893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12895
      return
12896
    iprot.readStructBegin()
12897
    while True:
12898
      (fname, ftype, fid) = iprot.readFieldBegin()
12899
      if ftype == TType.STOP:
12900
        break
12901
      if fid == 1:
12902
        if ftype == TType.STRING:
12903
          self.couponCode = iprot.readString();
12904
        else:
12905
          iprot.skip(ftype)
12906
      else:
12907
        iprot.skip(ftype)
12908
      iprot.readFieldEnd()
12909
    iprot.readStructEnd()
12910
 
12911
  def write(self, oprot):
12912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12914
      return
12915
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12916
    if self.couponCode is not None:
3385 varun.gupt 12917
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12918
      oprot.writeString(self.couponCode)
12919
      oprot.writeFieldEnd()
12920
    oprot.writeFieldStop()
12921
    oprot.writeStructEnd()
12922
 
3431 rajveer 12923
  def validate(self):
12924
    return
12925
 
12926
 
3385 varun.gupt 12927
  def __repr__(self):
12928
    L = ['%s=%r' % (key, value)
12929
      for key, value in self.__dict__.iteritems()]
12930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12931
 
12932
  def __eq__(self, other):
12933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12934
 
12935
  def __ne__(self, other):
12936
    return not (self == other)
12937
 
12938
class getCartsWithCouponCount_result:
12939
  """
12940
  Attributes:
12941
   - success
12942
  """
12943
 
12944
  thrift_spec = (
12945
    (0, TType.I64, 'success', None, None, ), # 0
12946
  )
12947
 
12948
  def __init__(self, success=None,):
12949
    self.success = success
12950
 
12951
  def read(self, iprot):
12952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12954
      return
12955
    iprot.readStructBegin()
12956
    while True:
12957
      (fname, ftype, fid) = iprot.readFieldBegin()
12958
      if ftype == TType.STOP:
12959
        break
12960
      if fid == 0:
12961
        if ftype == TType.I64:
12962
          self.success = iprot.readI64();
12963
        else:
12964
          iprot.skip(ftype)
12965
      else:
12966
        iprot.skip(ftype)
12967
      iprot.readFieldEnd()
12968
    iprot.readStructEnd()
12969
 
12970
  def write(self, oprot):
12971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12973
      return
12974
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 12975
    if self.success is not None:
3385 varun.gupt 12976
      oprot.writeFieldBegin('success', TType.I64, 0)
12977
      oprot.writeI64(self.success)
12978
      oprot.writeFieldEnd()
12979
    oprot.writeFieldStop()
12980
    oprot.writeStructEnd()
12981
 
3431 rajveer 12982
  def validate(self):
12983
    return
12984
 
12985
 
3385 varun.gupt 12986
  def __repr__(self):
12987
    L = ['%s=%r' % (key, value)
12988
      for key, value in self.__dict__.iteritems()]
12989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12990
 
12991
  def __eq__(self, other):
12992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12993
 
12994
  def __ne__(self, other):
12995
    return not (self == other)
3499 mandeep.dh 12996
 
12997
class increaseTrustLevel_args:
12998
  """
12999
  Attributes:
13000
   - userId
13001
   - trustLevelDelta
13002
  """
13003
 
13004
  thrift_spec = (
13005
    None, # 0
13006
    (1, TType.I64, 'userId', None, None, ), # 1
13007
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13008
  )
13009
 
13010
  def __init__(self, userId=None, trustLevelDelta=None,):
13011
    self.userId = userId
13012
    self.trustLevelDelta = trustLevelDelta
13013
 
13014
  def read(self, iprot):
13015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13017
      return
13018
    iprot.readStructBegin()
13019
    while True:
13020
      (fname, ftype, fid) = iprot.readFieldBegin()
13021
      if ftype == TType.STOP:
13022
        break
13023
      if fid == 1:
13024
        if ftype == TType.I64:
13025
          self.userId = iprot.readI64();
13026
        else:
13027
          iprot.skip(ftype)
13028
      elif fid == 2:
13029
        if ftype == TType.DOUBLE:
13030
          self.trustLevelDelta = iprot.readDouble();
13031
        else:
13032
          iprot.skip(ftype)
13033
      else:
13034
        iprot.skip(ftype)
13035
      iprot.readFieldEnd()
13036
    iprot.readStructEnd()
13037
 
13038
  def write(self, oprot):
13039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13041
      return
13042
    oprot.writeStructBegin('increaseTrustLevel_args')
13043
    if self.userId is not None:
13044
      oprot.writeFieldBegin('userId', TType.I64, 1)
13045
      oprot.writeI64(self.userId)
13046
      oprot.writeFieldEnd()
13047
    if self.trustLevelDelta is not None:
13048
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13049
      oprot.writeDouble(self.trustLevelDelta)
13050
      oprot.writeFieldEnd()
13051
    oprot.writeFieldStop()
13052
    oprot.writeStructEnd()
13053
 
13054
  def validate(self):
13055
    return
13056
 
13057
 
13058
  def __repr__(self):
13059
    L = ['%s=%r' % (key, value)
13060
      for key, value in self.__dict__.iteritems()]
13061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13062
 
13063
  def __eq__(self, other):
13064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13065
 
13066
  def __ne__(self, other):
13067
    return not (self == other)
4668 varun.gupt 13068
 
5407 amar.kumar 13069
class getTrustLevel_args:
13070
  """
13071
  Attributes:
13072
   - userId
13073
  """
13074
 
13075
  thrift_spec = (
13076
    None, # 0
13077
    (1, TType.I64, 'userId', None, None, ), # 1
13078
  )
13079
 
13080
  def __init__(self, userId=None,):
13081
    self.userId = userId
13082
 
13083
  def read(self, iprot):
13084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13086
      return
13087
    iprot.readStructBegin()
13088
    while True:
13089
      (fname, ftype, fid) = iprot.readFieldBegin()
13090
      if ftype == TType.STOP:
13091
        break
13092
      if fid == 1:
13093
        if ftype == TType.I64:
13094
          self.userId = iprot.readI64();
13095
        else:
13096
          iprot.skip(ftype)
13097
      else:
13098
        iprot.skip(ftype)
13099
      iprot.readFieldEnd()
13100
    iprot.readStructEnd()
13101
 
13102
  def write(self, oprot):
13103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13105
      return
13106
    oprot.writeStructBegin('getTrustLevel_args')
13107
    if self.userId is not None:
13108
      oprot.writeFieldBegin('userId', TType.I64, 1)
13109
      oprot.writeI64(self.userId)
13110
      oprot.writeFieldEnd()
13111
    oprot.writeFieldStop()
13112
    oprot.writeStructEnd()
13113
 
13114
  def validate(self):
13115
    return
13116
 
13117
 
13118
  def __repr__(self):
13119
    L = ['%s=%r' % (key, value)
13120
      for key, value in self.__dict__.iteritems()]
13121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13122
 
13123
  def __eq__(self, other):
13124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13125
 
13126
  def __ne__(self, other):
13127
    return not (self == other)
13128
 
13129
class getTrustLevel_result:
13130
  """
13131
  Attributes:
13132
   - success
13133
  """
13134
 
13135
  thrift_spec = (
13136
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13137
  )
13138
 
13139
  def __init__(self, success=None,):
13140
    self.success = success
13141
 
13142
  def read(self, iprot):
13143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13145
      return
13146
    iprot.readStructBegin()
13147
    while True:
13148
      (fname, ftype, fid) = iprot.readFieldBegin()
13149
      if ftype == TType.STOP:
13150
        break
13151
      if fid == 0:
13152
        if ftype == TType.DOUBLE:
13153
          self.success = iprot.readDouble();
13154
        else:
13155
          iprot.skip(ftype)
13156
      else:
13157
        iprot.skip(ftype)
13158
      iprot.readFieldEnd()
13159
    iprot.readStructEnd()
13160
 
13161
  def write(self, oprot):
13162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13164
      return
13165
    oprot.writeStructBegin('getTrustLevel_result')
13166
    if self.success is not None:
13167
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13168
      oprot.writeDouble(self.success)
13169
      oprot.writeFieldEnd()
13170
    oprot.writeFieldStop()
13171
    oprot.writeStructEnd()
13172
 
13173
  def validate(self):
13174
    return
13175
 
13176
 
13177
  def __repr__(self):
13178
    L = ['%s=%r' % (key, value)
13179
      for key, value in self.__dict__.iteritems()]
13180
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13181
 
13182
  def __eq__(self, other):
13183
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13184
 
13185
  def __ne__(self, other):
13186
    return not (self == other)
13187
 
4668 varun.gupt 13188
class showCODOption_args:
13189
  """
13190
  Attributes:
13191
   - cartId
13192
   - sourceId
13193
   - pincode
13194
  """
13195
 
13196
  thrift_spec = (
13197
    None, # 0
13198
    (1, TType.I64, 'cartId', None, None, ), # 1
13199
    (2, TType.I64, 'sourceId', None, None, ), # 2
13200
    (3, TType.STRING, 'pincode', None, None, ), # 3
13201
  )
13202
 
13203
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13204
    self.cartId = cartId
13205
    self.sourceId = sourceId
13206
    self.pincode = pincode
13207
 
13208
  def read(self, iprot):
13209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13211
      return
13212
    iprot.readStructBegin()
13213
    while True:
13214
      (fname, ftype, fid) = iprot.readFieldBegin()
13215
      if ftype == TType.STOP:
13216
        break
13217
      if fid == 1:
13218
        if ftype == TType.I64:
13219
          self.cartId = iprot.readI64();
13220
        else:
13221
          iprot.skip(ftype)
13222
      elif fid == 2:
13223
        if ftype == TType.I64:
13224
          self.sourceId = iprot.readI64();
13225
        else:
13226
          iprot.skip(ftype)
13227
      elif fid == 3:
13228
        if ftype == TType.STRING:
13229
          self.pincode = iprot.readString();
13230
        else:
13231
          iprot.skip(ftype)
13232
      else:
13233
        iprot.skip(ftype)
13234
      iprot.readFieldEnd()
13235
    iprot.readStructEnd()
13236
 
13237
  def write(self, oprot):
13238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13240
      return
13241
    oprot.writeStructBegin('showCODOption_args')
13242
    if self.cartId is not None:
13243
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13244
      oprot.writeI64(self.cartId)
13245
      oprot.writeFieldEnd()
13246
    if self.sourceId is not None:
13247
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13248
      oprot.writeI64(self.sourceId)
13249
      oprot.writeFieldEnd()
13250
    if self.pincode is not None:
13251
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13252
      oprot.writeString(self.pincode)
13253
      oprot.writeFieldEnd()
13254
    oprot.writeFieldStop()
13255
    oprot.writeStructEnd()
13256
 
13257
  def validate(self):
13258
    return
13259
 
13260
 
13261
  def __repr__(self):
13262
    L = ['%s=%r' % (key, value)
13263
      for key, value in self.__dict__.iteritems()]
13264
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13265
 
13266
  def __eq__(self, other):
13267
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13268
 
13269
  def __ne__(self, other):
13270
    return not (self == other)
13271
 
13272
class showCODOption_result:
13273
  """
13274
  Attributes:
13275
   - success
13276
  """
13277
 
13278
  thrift_spec = (
13279
    (0, TType.BOOL, 'success', None, None, ), # 0
13280
  )
13281
 
13282
  def __init__(self, success=None,):
13283
    self.success = success
13284
 
13285
  def read(self, iprot):
13286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13288
      return
13289
    iprot.readStructBegin()
13290
    while True:
13291
      (fname, ftype, fid) = iprot.readFieldBegin()
13292
      if ftype == TType.STOP:
13293
        break
13294
      if fid == 0:
13295
        if ftype == TType.BOOL:
13296
          self.success = iprot.readBool();
13297
        else:
13298
          iprot.skip(ftype)
13299
      else:
13300
        iprot.skip(ftype)
13301
      iprot.readFieldEnd()
13302
    iprot.readStructEnd()
13303
 
13304
  def write(self, oprot):
13305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13307
      return
13308
    oprot.writeStructBegin('showCODOption_result')
13309
    if self.success is not None:
13310
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13311
      oprot.writeBool(self.success)
13312
      oprot.writeFieldEnd()
13313
    oprot.writeFieldStop()
13314
    oprot.writeStructEnd()
13315
 
13316
  def validate(self):
13317
    return
13318
 
13319
 
13320
  def __repr__(self):
13321
    L = ['%s=%r' % (key, value)
13322
      for key, value in self.__dict__.iteritems()]
13323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13324
 
13325
  def __eq__(self, other):
13326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13327
 
13328
  def __ne__(self, other):
13329
    return not (self == other)
5623 anupam.sin 13330
 
13331
class getUserEmails_args:
13332
  """
13333
  Attributes:
13334
   - startDate
13335
   - endDate
13336
  """
13337
 
13338
  thrift_spec = (
13339
    None, # 0
13340
    (1, TType.I64, 'startDate', None, None, ), # 1
13341
    (2, TType.I64, 'endDate', None, None, ), # 2
13342
  )
13343
 
13344
  def __init__(self, startDate=None, endDate=None,):
13345
    self.startDate = startDate
13346
    self.endDate = endDate
13347
 
13348
  def read(self, iprot):
13349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13351
      return
13352
    iprot.readStructBegin()
13353
    while True:
13354
      (fname, ftype, fid) = iprot.readFieldBegin()
13355
      if ftype == TType.STOP:
13356
        break
13357
      if fid == 1:
13358
        if ftype == TType.I64:
13359
          self.startDate = iprot.readI64();
13360
        else:
13361
          iprot.skip(ftype)
13362
      elif fid == 2:
13363
        if ftype == TType.I64:
13364
          self.endDate = iprot.readI64();
13365
        else:
13366
          iprot.skip(ftype)
13367
      else:
13368
        iprot.skip(ftype)
13369
      iprot.readFieldEnd()
13370
    iprot.readStructEnd()
13371
 
13372
  def write(self, oprot):
13373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13375
      return
13376
    oprot.writeStructBegin('getUserEmails_args')
13377
    if self.startDate is not None:
13378
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13379
      oprot.writeI64(self.startDate)
13380
      oprot.writeFieldEnd()
13381
    if self.endDate is not None:
13382
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13383
      oprot.writeI64(self.endDate)
13384
      oprot.writeFieldEnd()
13385
    oprot.writeFieldStop()
13386
    oprot.writeStructEnd()
13387
 
13388
  def validate(self):
13389
    return
13390
 
13391
 
13392
  def __repr__(self):
13393
    L = ['%s=%r' % (key, value)
13394
      for key, value in self.__dict__.iteritems()]
13395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13396
 
13397
  def __eq__(self, other):
13398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13399
 
13400
  def __ne__(self, other):
13401
    return not (self == other)
13402
 
13403
class getUserEmails_result:
13404
  """
13405
  Attributes:
13406
   - success
13407
  """
13408
 
13409
  thrift_spec = (
13410
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13411
  )
13412
 
13413
  def __init__(self, success=None,):
13414
    self.success = success
13415
 
13416
  def read(self, iprot):
13417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13419
      return
13420
    iprot.readStructBegin()
13421
    while True:
13422
      (fname, ftype, fid) = iprot.readFieldBegin()
13423
      if ftype == TType.STOP:
13424
        break
13425
      if fid == 0:
13426
        if ftype == TType.LIST:
13427
          self.success = []
7746 amit.gupta 13428
          (_etype200, _size197) = iprot.readListBegin()
13429
          for _i201 in xrange(_size197):
13430
            _elem202 = iprot.readString();
13431
            self.success.append(_elem202)
5623 anupam.sin 13432
          iprot.readListEnd()
13433
        else:
13434
          iprot.skip(ftype)
13435
      else:
13436
        iprot.skip(ftype)
13437
      iprot.readFieldEnd()
13438
    iprot.readStructEnd()
13439
 
13440
  def write(self, oprot):
13441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13443
      return
13444
    oprot.writeStructBegin('getUserEmails_result')
13445
    if self.success is not None:
13446
      oprot.writeFieldBegin('success', TType.LIST, 0)
13447
      oprot.writeListBegin(TType.STRING, len(self.success))
7746 amit.gupta 13448
      for iter203 in self.success:
13449
        oprot.writeString(iter203)
5623 anupam.sin 13450
      oprot.writeListEnd()
13451
      oprot.writeFieldEnd()
13452
    oprot.writeFieldStop()
13453
    oprot.writeStructEnd()
13454
 
13455
  def validate(self):
13456
    return
13457
 
13458
 
13459
  def __repr__(self):
13460
    L = ['%s=%r' % (key, value)
13461
      for key, value in self.__dict__.iteritems()]
13462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13463
 
13464
  def __eq__(self, other):
13465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13466
 
13467
  def __ne__(self, other):
13468
    return not (self == other)
6821 amar.kumar 13469
 
6903 anupam.sin 13470
class insureItem_args:
13471
  """
13472
  Attributes:
13473
   - itemId
13474
   - cartId
13475
   - toInsure
9299 kshitij.so 13476
   - insurerType
6903 anupam.sin 13477
  """
13478
 
13479
  thrift_spec = (
13480
    None, # 0
13481
    (1, TType.I64, 'itemId', None, None, ), # 1
13482
    (2, TType.I64, 'cartId', None, None, ), # 2
13483
    (3, TType.BOOL, 'toInsure', None, None, ), # 3
9299 kshitij.so 13484
    (4, TType.I32, 'insurerType', None, None, ), # 4
6903 anupam.sin 13485
  )
13486
 
9299 kshitij.so 13487
  def __init__(self, itemId=None, cartId=None, toInsure=None, insurerType=None,):
6903 anupam.sin 13488
    self.itemId = itemId
13489
    self.cartId = cartId
13490
    self.toInsure = toInsure
9299 kshitij.so 13491
    self.insurerType = insurerType
6903 anupam.sin 13492
 
13493
  def read(self, iprot):
13494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13496
      return
13497
    iprot.readStructBegin()
13498
    while True:
13499
      (fname, ftype, fid) = iprot.readFieldBegin()
13500
      if ftype == TType.STOP:
13501
        break
13502
      if fid == 1:
13503
        if ftype == TType.I64:
13504
          self.itemId = iprot.readI64();
13505
        else:
13506
          iprot.skip(ftype)
13507
      elif fid == 2:
13508
        if ftype == TType.I64:
13509
          self.cartId = iprot.readI64();
13510
        else:
13511
          iprot.skip(ftype)
13512
      elif fid == 3:
13513
        if ftype == TType.BOOL:
13514
          self.toInsure = iprot.readBool();
13515
        else:
13516
          iprot.skip(ftype)
9299 kshitij.so 13517
      elif fid == 4:
13518
        if ftype == TType.I32:
13519
          self.insurerType = iprot.readI32();
13520
        else:
13521
          iprot.skip(ftype)
6903 anupam.sin 13522
      else:
13523
        iprot.skip(ftype)
13524
      iprot.readFieldEnd()
13525
    iprot.readStructEnd()
13526
 
13527
  def write(self, oprot):
13528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13530
      return
13531
    oprot.writeStructBegin('insureItem_args')
13532
    if self.itemId is not None:
13533
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13534
      oprot.writeI64(self.itemId)
13535
      oprot.writeFieldEnd()
13536
    if self.cartId is not None:
13537
      oprot.writeFieldBegin('cartId', TType.I64, 2)
13538
      oprot.writeI64(self.cartId)
13539
      oprot.writeFieldEnd()
13540
    if self.toInsure is not None:
13541
      oprot.writeFieldBegin('toInsure', TType.BOOL, 3)
13542
      oprot.writeBool(self.toInsure)
13543
      oprot.writeFieldEnd()
9299 kshitij.so 13544
    if self.insurerType is not None:
13545
      oprot.writeFieldBegin('insurerType', TType.I32, 4)
13546
      oprot.writeI32(self.insurerType)
13547
      oprot.writeFieldEnd()
6903 anupam.sin 13548
    oprot.writeFieldStop()
13549
    oprot.writeStructEnd()
13550
 
13551
  def validate(self):
13552
    return
13553
 
13554
 
13555
  def __repr__(self):
13556
    L = ['%s=%r' % (key, value)
13557
      for key, value in self.__dict__.iteritems()]
13558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13559
 
13560
  def __eq__(self, other):
13561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13562
 
13563
  def __ne__(self, other):
13564
    return not (self == other)
13565
 
13566
class insureItem_result:
13567
  """
13568
  Attributes:
13569
   - success
13570
  """
13571
 
13572
  thrift_spec = (
13573
    (0, TType.BOOL, 'success', None, None, ), # 0
13574
  )
13575
 
13576
  def __init__(self, success=None,):
13577
    self.success = success
13578
 
13579
  def read(self, iprot):
13580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13582
      return
13583
    iprot.readStructBegin()
13584
    while True:
13585
      (fname, ftype, fid) = iprot.readFieldBegin()
13586
      if ftype == TType.STOP:
13587
        break
13588
      if fid == 0:
13589
        if ftype == TType.BOOL:
13590
          self.success = iprot.readBool();
13591
        else:
13592
          iprot.skip(ftype)
13593
      else:
13594
        iprot.skip(ftype)
13595
      iprot.readFieldEnd()
13596
    iprot.readStructEnd()
13597
 
13598
  def write(self, oprot):
13599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13601
      return
13602
    oprot.writeStructBegin('insureItem_result')
13603
    if self.success is not None:
13604
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13605
      oprot.writeBool(self.success)
13606
      oprot.writeFieldEnd()
13607
    oprot.writeFieldStop()
13608
    oprot.writeStructEnd()
13609
 
13610
  def validate(self):
13611
    return
13612
 
13613
 
13614
  def __repr__(self):
13615
    L = ['%s=%r' % (key, value)
13616
      for key, value in self.__dict__.iteritems()]
13617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13618
 
13619
  def __eq__(self, other):
13620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13621
 
13622
  def __ne__(self, other):
13623
    return not (self == other)
13624
 
13625
class cancelInsurance_args:
13626
  """
13627
  Attributes:
13628
   - cartId
13629
  """
13630
 
13631
  thrift_spec = (
13632
    None, # 0
13633
    (1, TType.I64, 'cartId', None, None, ), # 1
13634
  )
13635
 
13636
  def __init__(self, cartId=None,):
13637
    self.cartId = cartId
13638
 
13639
  def read(self, iprot):
13640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13642
      return
13643
    iprot.readStructBegin()
13644
    while True:
13645
      (fname, ftype, fid) = iprot.readFieldBegin()
13646
      if ftype == TType.STOP:
13647
        break
13648
      if fid == 1:
13649
        if ftype == TType.I64:
13650
          self.cartId = iprot.readI64();
13651
        else:
13652
          iprot.skip(ftype)
13653
      else:
13654
        iprot.skip(ftype)
13655
      iprot.readFieldEnd()
13656
    iprot.readStructEnd()
13657
 
13658
  def write(self, oprot):
13659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13661
      return
13662
    oprot.writeStructBegin('cancelInsurance_args')
13663
    if self.cartId is not None:
13664
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13665
      oprot.writeI64(self.cartId)
13666
      oprot.writeFieldEnd()
13667
    oprot.writeFieldStop()
13668
    oprot.writeStructEnd()
13669
 
13670
  def validate(self):
13671
    return
13672
 
13673
 
13674
  def __repr__(self):
13675
    L = ['%s=%r' % (key, value)
13676
      for key, value in self.__dict__.iteritems()]
13677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13678
 
13679
  def __eq__(self, other):
13680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13681
 
13682
  def __ne__(self, other):
13683
    return not (self == other)
13684
 
13685
class cancelInsurance_result:
13686
  """
13687
  Attributes:
13688
   - success
13689
  """
13690
 
13691
  thrift_spec = (
13692
    (0, TType.BOOL, 'success', None, None, ), # 0
13693
  )
13694
 
13695
  def __init__(self, success=None,):
13696
    self.success = success
13697
 
13698
  def read(self, iprot):
13699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13701
      return
13702
    iprot.readStructBegin()
13703
    while True:
13704
      (fname, ftype, fid) = iprot.readFieldBegin()
13705
      if ftype == TType.STOP:
13706
        break
13707
      if fid == 0:
13708
        if ftype == TType.BOOL:
13709
          self.success = iprot.readBool();
13710
        else:
13711
          iprot.skip(ftype)
13712
      else:
13713
        iprot.skip(ftype)
13714
      iprot.readFieldEnd()
13715
    iprot.readStructEnd()
13716
 
13717
  def write(self, oprot):
13718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13720
      return
13721
    oprot.writeStructBegin('cancelInsurance_result')
13722
    if self.success is not None:
13723
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13724
      oprot.writeBool(self.success)
13725
      oprot.writeFieldEnd()
13726
    oprot.writeFieldStop()
13727
    oprot.writeStructEnd()
13728
 
13729
  def validate(self):
13730
    return
13731
 
13732
 
13733
  def __repr__(self):
13734
    L = ['%s=%r' % (key, value)
13735
      for key, value in self.__dict__.iteritems()]
13736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13737
 
13738
  def __eq__(self, other):
13739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13740
 
13741
  def __ne__(self, other):
13742
    return not (self == other)
13743
 
13744
class storeInsuranceSpecificDetails_args:
13745
  """
13746
  Attributes:
13747
   - addressId
13748
   - dob
13749
   - guardianName
13750
  """
13751
 
13752
  thrift_spec = (
13753
    None, # 0
13754
    (1, TType.I64, 'addressId', None, None, ), # 1
13755
    (2, TType.STRING, 'dob', None, None, ), # 2
13756
    (3, TType.STRING, 'guardianName', None, None, ), # 3
13757
  )
13758
 
13759
  def __init__(self, addressId=None, dob=None, guardianName=None,):
13760
    self.addressId = addressId
13761
    self.dob = dob
13762
    self.guardianName = guardianName
13763
 
13764
  def read(self, iprot):
13765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13767
      return
13768
    iprot.readStructBegin()
13769
    while True:
13770
      (fname, ftype, fid) = iprot.readFieldBegin()
13771
      if ftype == TType.STOP:
13772
        break
13773
      if fid == 1:
13774
        if ftype == TType.I64:
13775
          self.addressId = iprot.readI64();
13776
        else:
13777
          iprot.skip(ftype)
13778
      elif fid == 2:
13779
        if ftype == TType.STRING:
13780
          self.dob = iprot.readString();
13781
        else:
13782
          iprot.skip(ftype)
13783
      elif fid == 3:
13784
        if ftype == TType.STRING:
13785
          self.guardianName = iprot.readString();
13786
        else:
13787
          iprot.skip(ftype)
13788
      else:
13789
        iprot.skip(ftype)
13790
      iprot.readFieldEnd()
13791
    iprot.readStructEnd()
13792
 
13793
  def write(self, oprot):
13794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13796
      return
13797
    oprot.writeStructBegin('storeInsuranceSpecificDetails_args')
13798
    if self.addressId is not None:
13799
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13800
      oprot.writeI64(self.addressId)
13801
      oprot.writeFieldEnd()
13802
    if self.dob is not None:
13803
      oprot.writeFieldBegin('dob', TType.STRING, 2)
13804
      oprot.writeString(self.dob)
13805
      oprot.writeFieldEnd()
13806
    if self.guardianName is not None:
13807
      oprot.writeFieldBegin('guardianName', TType.STRING, 3)
13808
      oprot.writeString(self.guardianName)
13809
      oprot.writeFieldEnd()
13810
    oprot.writeFieldStop()
13811
    oprot.writeStructEnd()
13812
 
13813
  def validate(self):
13814
    return
13815
 
13816
 
13817
  def __repr__(self):
13818
    L = ['%s=%r' % (key, value)
13819
      for key, value in self.__dict__.iteritems()]
13820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13821
 
13822
  def __eq__(self, other):
13823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13824
 
13825
  def __ne__(self, other):
13826
    return not (self == other)
13827
 
13828
class storeInsuranceSpecificDetails_result:
13829
  """
13830
  Attributes:
13831
   - success
13832
  """
13833
 
13834
  thrift_spec = (
13835
    (0, TType.BOOL, 'success', None, None, ), # 0
13836
  )
13837
 
13838
  def __init__(self, success=None,):
13839
    self.success = success
13840
 
13841
  def read(self, iprot):
13842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13844
      return
13845
    iprot.readStructBegin()
13846
    while True:
13847
      (fname, ftype, fid) = iprot.readFieldBegin()
13848
      if ftype == TType.STOP:
13849
        break
13850
      if fid == 0:
13851
        if ftype == TType.BOOL:
13852
          self.success = iprot.readBool();
13853
        else:
13854
          iprot.skip(ftype)
13855
      else:
13856
        iprot.skip(ftype)
13857
      iprot.readFieldEnd()
13858
    iprot.readStructEnd()
13859
 
13860
  def write(self, oprot):
13861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13863
      return
13864
    oprot.writeStructBegin('storeInsuranceSpecificDetails_result')
13865
    if self.success is not None:
13866
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13867
      oprot.writeBool(self.success)
13868
      oprot.writeFieldEnd()
13869
    oprot.writeFieldStop()
13870
    oprot.writeStructEnd()
13871
 
13872
  def validate(self):
13873
    return
13874
 
13875
 
13876
  def __repr__(self):
13877
    L = ['%s=%r' % (key, value)
13878
      for key, value in self.__dict__.iteritems()]
13879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13880
 
13881
  def __eq__(self, other):
13882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13883
 
13884
  def __ne__(self, other):
13885
    return not (self == other)
13886
 
13887
class isInsuranceDetailPresent_args:
13888
  """
13889
  Attributes:
13890
   - addressId
13891
  """
13892
 
13893
  thrift_spec = (
13894
    None, # 0
13895
    (1, TType.I64, 'addressId', None, None, ), # 1
13896
  )
13897
 
13898
  def __init__(self, addressId=None,):
13899
    self.addressId = addressId
13900
 
13901
  def read(self, iprot):
13902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13904
      return
13905
    iprot.readStructBegin()
13906
    while True:
13907
      (fname, ftype, fid) = iprot.readFieldBegin()
13908
      if ftype == TType.STOP:
13909
        break
13910
      if fid == 1:
13911
        if ftype == TType.I64:
13912
          self.addressId = iprot.readI64();
13913
        else:
13914
          iprot.skip(ftype)
13915
      else:
13916
        iprot.skip(ftype)
13917
      iprot.readFieldEnd()
13918
    iprot.readStructEnd()
13919
 
13920
  def write(self, oprot):
13921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13923
      return
13924
    oprot.writeStructBegin('isInsuranceDetailPresent_args')
13925
    if self.addressId is not None:
13926
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13927
      oprot.writeI64(self.addressId)
13928
      oprot.writeFieldEnd()
13929
    oprot.writeFieldStop()
13930
    oprot.writeStructEnd()
13931
 
13932
  def validate(self):
13933
    return
13934
 
13935
 
13936
  def __repr__(self):
13937
    L = ['%s=%r' % (key, value)
13938
      for key, value in self.__dict__.iteritems()]
13939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13940
 
13941
  def __eq__(self, other):
13942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13943
 
13944
  def __ne__(self, other):
13945
    return not (self == other)
13946
 
13947
class isInsuranceDetailPresent_result:
13948
  """
13949
  Attributes:
13950
   - success
13951
  """
13952
 
13953
  thrift_spec = (
13954
    (0, TType.BOOL, 'success', None, None, ), # 0
13955
  )
13956
 
13957
  def __init__(self, success=None,):
13958
    self.success = success
13959
 
13960
  def read(self, iprot):
13961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13963
      return
13964
    iprot.readStructBegin()
13965
    while True:
13966
      (fname, ftype, fid) = iprot.readFieldBegin()
13967
      if ftype == TType.STOP:
13968
        break
13969
      if fid == 0:
13970
        if ftype == TType.BOOL:
13971
          self.success = iprot.readBool();
13972
        else:
13973
          iprot.skip(ftype)
13974
      else:
13975
        iprot.skip(ftype)
13976
      iprot.readFieldEnd()
13977
    iprot.readStructEnd()
13978
 
13979
  def write(self, oprot):
13980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13982
      return
13983
    oprot.writeStructBegin('isInsuranceDetailPresent_result')
13984
    if self.success is not None:
13985
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13986
      oprot.writeBool(self.success)
13987
      oprot.writeFieldEnd()
13988
    oprot.writeFieldStop()
13989
    oprot.writeStructEnd()
13990
 
13991
  def validate(self):
13992
    return
13993
 
13994
 
13995
  def __repr__(self):
13996
    L = ['%s=%r' % (key, value)
13997
      for key, value in self.__dict__.iteritems()]
13998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13999
 
14000
  def __eq__(self, other):
14001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14002
 
14003
  def __ne__(self, other):
14004
    return not (self == other)
14005
 
6821 amar.kumar 14006
class isProductAddedToCart_args:
14007
  """
14008
  Attributes:
14009
   - itemId
14010
   - startDate
14011
   - endDate
14012
  """
14013
 
14014
  thrift_spec = (
14015
    None, # 0
14016
    (1, TType.I64, 'itemId', None, None, ), # 1
14017
    (2, TType.I64, 'startDate', None, None, ), # 2
14018
    (3, TType.I64, 'endDate', None, None, ), # 3
14019
  )
14020
 
14021
  def __init__(self, itemId=None, startDate=None, endDate=None,):
14022
    self.itemId = itemId
14023
    self.startDate = startDate
14024
    self.endDate = endDate
14025
 
14026
  def read(self, iprot):
14027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14029
      return
14030
    iprot.readStructBegin()
14031
    while True:
14032
      (fname, ftype, fid) = iprot.readFieldBegin()
14033
      if ftype == TType.STOP:
14034
        break
14035
      if fid == 1:
14036
        if ftype == TType.I64:
14037
          self.itemId = iprot.readI64();
14038
        else:
14039
          iprot.skip(ftype)
14040
      elif fid == 2:
14041
        if ftype == TType.I64:
14042
          self.startDate = iprot.readI64();
14043
        else:
14044
          iprot.skip(ftype)
14045
      elif fid == 3:
14046
        if ftype == TType.I64:
14047
          self.endDate = iprot.readI64();
14048
        else:
14049
          iprot.skip(ftype)
14050
      else:
14051
        iprot.skip(ftype)
14052
      iprot.readFieldEnd()
14053
    iprot.readStructEnd()
14054
 
14055
  def write(self, oprot):
14056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14058
      return
14059
    oprot.writeStructBegin('isProductAddedToCart_args')
14060
    if self.itemId is not None:
14061
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14062
      oprot.writeI64(self.itemId)
14063
      oprot.writeFieldEnd()
14064
    if self.startDate is not None:
14065
      oprot.writeFieldBegin('startDate', TType.I64, 2)
14066
      oprot.writeI64(self.startDate)
14067
      oprot.writeFieldEnd()
14068
    if self.endDate is not None:
14069
      oprot.writeFieldBegin('endDate', TType.I64, 3)
14070
      oprot.writeI64(self.endDate)
14071
      oprot.writeFieldEnd()
14072
    oprot.writeFieldStop()
14073
    oprot.writeStructEnd()
14074
 
14075
  def validate(self):
14076
    return
14077
 
14078
 
14079
  def __repr__(self):
14080
    L = ['%s=%r' % (key, value)
14081
      for key, value in self.__dict__.iteritems()]
14082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14083
 
14084
  def __eq__(self, other):
14085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14086
 
14087
  def __ne__(self, other):
14088
    return not (self == other)
14089
 
14090
class isProductAddedToCart_result:
14091
  """
14092
  Attributes:
14093
   - success
14094
  """
14095
 
14096
  thrift_spec = (
14097
    (0, TType.BOOL, 'success', None, None, ), # 0
14098
  )
14099
 
14100
  def __init__(self, success=None,):
14101
    self.success = success
14102
 
14103
  def read(self, iprot):
14104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14106
      return
14107
    iprot.readStructBegin()
14108
    while True:
14109
      (fname, ftype, fid) = iprot.readFieldBegin()
14110
      if ftype == TType.STOP:
14111
        break
14112
      if fid == 0:
14113
        if ftype == TType.BOOL:
14114
          self.success = iprot.readBool();
14115
        else:
14116
          iprot.skip(ftype)
14117
      else:
14118
        iprot.skip(ftype)
14119
      iprot.readFieldEnd()
14120
    iprot.readStructEnd()
14121
 
14122
  def write(self, oprot):
14123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14125
      return
14126
    oprot.writeStructBegin('isProductAddedToCart_result')
14127
    if self.success is not None:
14128
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14129
      oprot.writeBool(self.success)
14130
      oprot.writeFieldEnd()
14131
    oprot.writeFieldStop()
14132
    oprot.writeStructEnd()
14133
 
14134
  def validate(self):
14135
    return
14136
 
14137
 
14138
  def __repr__(self):
14139
    L = ['%s=%r' % (key, value)
14140
      for key, value in self.__dict__.iteritems()]
14141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14142
 
14143
  def __eq__(self, other):
14144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14145
 
14146
  def __ne__(self, other):
14147
    return not (self == other)