Subversion Repositories SmartDukaan

Rev

Rev 6821 | Rev 6922 | 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
 
1976 varun.gupt 375
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
376
    """
377
    Parameters:
378
     - cartId
379
     - couponCode
380
     - totalPrice
381
     - discountedPrice
382
    """
383
    pass
384
 
385
  def removeCoupon(self, cartId):
386
    """
387
    Parameters:
388
     - cartId
389
    """
390
    pass
391
 
3554 varun.gupt 392
  def deleteDiscountsFromCart(self, cartId):
393
    """
394
    Deletes all the discounts associated with the cart
395
 
396
    Parameters:
397
     - cartId
398
    """
399
    pass
400
 
401
  def saveDiscounts(self, discounts):
402
    """
403
    Accepts a list of thrift objects of Discount type and saves them
404
 
405
    Parameters:
406
     - discounts
407
    """
408
    pass
409
 
6389 rajveer 410
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 411
    """
690 chandransh 412
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 413
 
559 chandransh 414
    Parameters:
415
     - cartId
2815 vikas 416
     - sessionSource
417
     - sessionStartTime
3858 vikas 418
     - firstSource
419
     - firstSourceTime
5326 rajveer 420
     - userId
6389 rajveer 421
     - schemeId
559 chandransh 422
    """
423
    pass
424
 
3557 rajveer 425
  def validateCart(self, cartId, sourceId):
559 chandransh 426
    """
690 chandransh 427
    Validates that:
428
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 429
    2. All of the lines in the cart are active items.
690 chandransh 430
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 431
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 432
 
559 chandransh 433
    Parameters:
434
     - cartId
3557 rajveer 435
     - sourceId
559 chandransh 436
    """
437
    pass
438
 
690 chandransh 439
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 440
    """
690 chandransh 441
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 442
 
575 chandransh 443
    Parameters:
690 chandransh 444
     - fromCartId
445
     - toCartId
446
    """
447
    pass
448
 
449
  def checkOut(self, cartId):
450
    """
451
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 452
 
690 chandransh 453
    Parameters:
575 chandransh 454
     - cartId
455
    """
456
    pass
457
 
690 chandransh 458
  def resetCart(self, cartId, items):
559 chandransh 459
    """
690 chandransh 460
    The second parameter is a map of item ids and their quantities which have been successfully processed.
461
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 462
 
559 chandransh 463
    Parameters:
690 chandransh 464
     - cartId
465
     - items
559 chandransh 466
    """
467
    pass
468
 
2981 rajveer 469
  def getUserCount(self, userType):
559 chandransh 470
    """
2981 rajveer 471
    Returns number of registered users.
472
    If userType = null, then it returns count of all users, including anonymous
473
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
474
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 475
 
559 chandransh 476
    Parameters:
2981 rajveer 477
     - userType
559 chandransh 478
    """
479
    pass
480
 
2981 rajveer 481
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 482
    """
2981 rajveer 483
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
484
    If any of startDate or endDate is -1, then that filter is ignored.
485
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 486
 
487
 
559 chandransh 488
    Parameters:
2981 rajveer 489
     - userType
490
     - startDate
491
     - endDate
559 chandransh 492
    """
493
    pass
494
 
2981 rajveer 495
  def getMyResearchItems(self, userId):
559 chandransh 496
    """
2981 rajveer 497
    Returns list of item ids in myresearch for the user
3431 rajveer 498
 
559 chandransh 499
    Parameters:
500
     - userId
501
    """
502
    pass
503
 
2981 rajveer 504
  def updateMyResearch(self, userId, itemId):
559 chandransh 505
    """
2981 rajveer 506
    add item to my research for a user
3431 rajveer 507
 
559 chandransh 508
    Parameters:
2981 rajveer 509
     - userId
510
     - itemId
559 chandransh 511
    """
512
    pass
513
 
2981 rajveer 514
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 515
    """
2981 rajveer 516
    delete item from my research for a user
3431 rajveer 517
 
1596 ankur.sing 518
    Parameters:
2981 rajveer 519
     - userId
520
     - itemId
1596 ankur.sing 521
    """
522
    pass
559 chandransh 523
 
2981 rajveer 524
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 525
    """
2981 rajveer 526
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 527
 
1673 ankur.sing 528
    Parameters:
2981 rajveer 529
     - userId
1673 ankur.sing 530
    """
531
    pass
1596 ankur.sing 532
 
2981 rajveer 533
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 534
    """
2981 rajveer 535
    add item to browse history for a user
3431 rajveer 536
 
2642 varun.gupt 537
    Parameters:
2981 rajveer 538
     - userId
539
     - itemId
2642 varun.gupt 540
    """
541
    pass
1673 ankur.sing 542
 
3385 varun.gupt 543
  def getCartsWithCouponCount(self, couponCode):
544
    """
545
    Returns count of Carts with given coupon applied
3431 rajveer 546
 
3385 varun.gupt 547
    Parameters:
548
     - couponCode
549
    """
550
    pass
2642 varun.gupt 551
 
3499 mandeep.dh 552
  def increaseTrustLevel(self, userId, trustLevelDelta):
553
    """
554
    Updates COD trust level of a user
3385 varun.gupt 555
 
3499 mandeep.dh 556
    Parameters:
557
     - userId
558
     - trustLevelDelta
559
    """
560
    pass
561
 
5407 amar.kumar 562
  def getTrustLevel(self, userId):
563
    """
564
    Get trust level of a user
565
 
566
    Parameters:
567
     - userId
568
    """
569
    pass
570
 
4668 varun.gupt 571
  def showCODOption(self, cartId, sourceId, pincode):
572
    """
573
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 574
 
4668 varun.gupt 575
    Parameters:
576
     - cartId
577
     - sourceId
578
     - pincode
579
    """
580
    pass
581
 
5623 anupam.sin 582
  def getUserEmails(self, startDate, endDate):
583
    """
584
    Get email addresses for users activated within a given date range
4668 varun.gupt 585
 
5623 anupam.sin 586
    Parameters:
587
     - startDate
588
     - endDate
589
    """
590
    pass
591
 
6903 anupam.sin 592
  def insureItem(self, itemId, cartId, toInsure):
593
    """
594
    Mark a cart lineitem as insured. Returns true/false.
595
 
596
    Parameters:
597
     - itemId
598
     - cartId
599
     - toInsure
600
    """
601
    pass
602
 
603
  def cancelInsurance(self, cartId):
604
    """
605
    Cancel insurance for all items in the cart
606
 
607
    Parameters:
608
     - cartId
609
    """
610
    pass
611
 
612
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
613
    """
614
    Stores insurance specific details like date of birth and guardianName
615
 
616
    Parameters:
617
     - addressId
618
     - dob
619
     - guardianName
620
    """
621
    pass
622
 
623
  def isInsuranceDetailPresent(self, addressId):
624
    """
625
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
626
 
627
    Parameters:
628
     - addressId
629
    """
630
    pass
631
 
6821 amar.kumar 632
  def isProductAddedToCart(self, itemId, startDate, endDate):
633
    """
634
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 635
 
6821 amar.kumar 636
    Parameters:
637
     - itemId
638
     - startDate
639
     - endDate
640
    """
641
    pass
642
 
643
 
3376 rajveer 644
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 645
  """
646
  service
647
  """
648
  def __init__(self, iprot, oprot=None):
3376 rajveer 649
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 650
 
559 chandransh 651
  def createAnonymousUser(self, jsessionId):
94 ashish 652
    """
653
    Parameters:
559 chandransh 654
     - jsessionId
94 ashish 655
    """
559 chandransh 656
    self.send_createAnonymousUser(jsessionId)
657
    return self.recv_createAnonymousUser()
94 ashish 658
 
559 chandransh 659
  def send_createAnonymousUser(self, jsessionId):
660
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
661
    args = createAnonymousUser_args()
662
    args.jsessionId = jsessionId
94 ashish 663
    args.write(self._oprot)
664
    self._oprot.writeMessageEnd()
665
    self._oprot.trans.flush()
666
 
559 chandransh 667
  def recv_createAnonymousUser(self, ):
94 ashish 668
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
669
    if mtype == TMessageType.EXCEPTION:
670
      x = TApplicationException()
671
      x.read(self._iprot)
672
      self._iprot.readMessageEnd()
673
      raise x
559 chandransh 674
    result = createAnonymousUser_result()
94 ashish 675
    result.read(self._iprot)
676
    self._iprot.readMessageEnd()
3431 rajveer 677
    if result.success is not None:
94 ashish 678
      return result.success
3431 rajveer 679
    if result.ucex is not None:
559 chandransh 680
      raise result.ucex
681
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 682
 
559 chandransh 683
  def getUserById(self, userId):
94 ashish 684
    """
685
    Parameters:
686
     - userId
687
    """
559 chandransh 688
    self.send_getUserById(userId)
689
    return self.recv_getUserById()
94 ashish 690
 
559 chandransh 691
  def send_getUserById(self, userId):
692
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
693
    args = getUserById_args()
94 ashish 694
    args.userId = userId
695
    args.write(self._oprot)
696
    self._oprot.writeMessageEnd()
697
    self._oprot.trans.flush()
698
 
559 chandransh 699
  def recv_getUserById(self, ):
94 ashish 700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
701
    if mtype == TMessageType.EXCEPTION:
702
      x = TApplicationException()
703
      x.read(self._iprot)
704
      self._iprot.readMessageEnd()
705
      raise x
559 chandransh 706
    result = getUserById_result()
94 ashish 707
    result.read(self._iprot)
708
    self._iprot.readMessageEnd()
3431 rajveer 709
    if result.success is not None:
94 ashish 710
      return result.success
3431 rajveer 711
    if result.ucex is not None:
559 chandransh 712
      raise result.ucex
713
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 714
 
5326 rajveer 715
  def getUserByCartId(self, cartId):
716
    """
717
    Parameters:
718
     - cartId
719
    """
720
    self.send_getUserByCartId(cartId)
721
    return self.recv_getUserByCartId()
722
 
723
  def send_getUserByCartId(self, cartId):
724
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
725
    args = getUserByCartId_args()
726
    args.cartId = cartId
727
    args.write(self._oprot)
728
    self._oprot.writeMessageEnd()
729
    self._oprot.trans.flush()
730
 
731
  def recv_getUserByCartId(self, ):
732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
733
    if mtype == TMessageType.EXCEPTION:
734
      x = TApplicationException()
735
      x.read(self._iprot)
736
      self._iprot.readMessageEnd()
737
      raise x
738
    result = getUserByCartId_result()
739
    result.read(self._iprot)
740
    self._iprot.readMessageEnd()
741
    if result.success is not None:
742
      return result.success
743
    if result.ucex is not None:
744
      raise result.ucex
745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
746
 
1491 vikas 747
  def getUserByEmail(self, email):
748
    """
749
    Parameters:
750
     - email
751
    """
752
    self.send_getUserByEmail(email)
753
    return self.recv_getUserByEmail()
754
 
755
  def send_getUserByEmail(self, email):
756
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
757
    args = getUserByEmail_args()
758
    args.email = email
759
    args.write(self._oprot)
760
    self._oprot.writeMessageEnd()
761
    self._oprot.trans.flush()
762
 
763
  def recv_getUserByEmail(self, ):
764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
765
    if mtype == TMessageType.EXCEPTION:
766
      x = TApplicationException()
767
      x.read(self._iprot)
768
      self._iprot.readMessageEnd()
769
      raise x
770
    result = getUserByEmail_result()
771
    result.read(self._iprot)
772
    self._iprot.readMessageEnd()
3431 rajveer 773
    if result.success is not None:
1491 vikas 774
      return result.success
3431 rajveer 775
    if result.ucex is not None:
1491 vikas 776
      raise result.ucex
777
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
778
 
3032 mandeep.dh 779
  def getUserByMobileNumber(self, mobileNumber):
780
    """
781
    Parameters:
782
     - mobileNumber
783
    """
784
    self.send_getUserByMobileNumber(mobileNumber)
785
    return self.recv_getUserByMobileNumber()
786
 
787
  def send_getUserByMobileNumber(self, mobileNumber):
788
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
789
    args = getUserByMobileNumber_args()
790
    args.mobileNumber = mobileNumber
791
    args.write(self._oprot)
792
    self._oprot.writeMessageEnd()
793
    self._oprot.trans.flush()
794
 
795
  def recv_getUserByMobileNumber(self, ):
796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
797
    if mtype == TMessageType.EXCEPTION:
798
      x = TApplicationException()
799
      x.read(self._iprot)
800
      self._iprot.readMessageEnd()
801
      raise x
802
    result = getUserByMobileNumber_result()
803
    result.read(self._iprot)
804
    self._iprot.readMessageEnd()
3431 rajveer 805
    if result.success is not None:
3032 mandeep.dh 806
      return result.success
3431 rajveer 807
    if result.ucex is not None:
3032 mandeep.dh 808
      raise result.ucex
809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
810
 
559 chandransh 811
  def createUser(self, user):
94 ashish 812
    """
813
    Parameters:
559 chandransh 814
     - user
94 ashish 815
    """
559 chandransh 816
    self.send_createUser(user)
817
    return self.recv_createUser()
94 ashish 818
 
559 chandransh 819
  def send_createUser(self, user):
820
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
821
    args = createUser_args()
822
    args.user = user
94 ashish 823
    args.write(self._oprot)
824
    self._oprot.writeMessageEnd()
825
    self._oprot.trans.flush()
826
 
559 chandransh 827
  def recv_createUser(self, ):
94 ashish 828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
829
    if mtype == TMessageType.EXCEPTION:
830
      x = TApplicationException()
831
      x.read(self._iprot)
832
      self._iprot.readMessageEnd()
833
      raise x
559 chandransh 834
    result = createUser_result()
94 ashish 835
    result.read(self._iprot)
836
    self._iprot.readMessageEnd()
3431 rajveer 837
    if result.success is not None:
94 ashish 838
      return result.success
3431 rajveer 839
    if result.ucex is not None:
559 chandransh 840
      raise result.ucex
841
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 842
 
559 chandransh 843
  def updateUser(self, user):
94 ashish 844
    """
845
    Parameters:
559 chandransh 846
     - user
94 ashish 847
    """
559 chandransh 848
    self.send_updateUser(user)
849
    return self.recv_updateUser()
94 ashish 850
 
559 chandransh 851
  def send_updateUser(self, user):
852
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
853
    args = updateUser_args()
854
    args.user = user
94 ashish 855
    args.write(self._oprot)
856
    self._oprot.writeMessageEnd()
857
    self._oprot.trans.flush()
858
 
559 chandransh 859
  def recv_updateUser(self, ):
94 ashish 860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
861
    if mtype == TMessageType.EXCEPTION:
862
      x = TApplicationException()
863
      x.read(self._iprot)
864
      self._iprot.readMessageEnd()
865
      raise x
559 chandransh 866
    result = updateUser_result()
94 ashish 867
    result.read(self._iprot)
868
    self._iprot.readMessageEnd()
3431 rajveer 869
    if result.success is not None:
94 ashish 870
      return result.success
3431 rajveer 871
    if result.ucex is not None:
559 chandransh 872
      raise result.ucex
873
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 874
 
559 chandransh 875
  def authenticateUser(self, email, password):
94 ashish 876
    """
877
    Parameters:
878
     - email
879
     - password
880
    """
559 chandransh 881
    self.send_authenticateUser(email, password)
122 ashish 882
    return self.recv_authenticateUser()
883
 
559 chandransh 884
  def send_authenticateUser(self, email, password):
122 ashish 885
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
886
    args = authenticateUser_args()
559 chandransh 887
    args.email = email
122 ashish 888
    args.password = password
889
    args.write(self._oprot)
890
    self._oprot.writeMessageEnd()
891
    self._oprot.trans.flush()
892
 
893
  def recv_authenticateUser(self, ):
894
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
895
    if mtype == TMessageType.EXCEPTION:
896
      x = TApplicationException()
897
      x.read(self._iprot)
898
      self._iprot.readMessageEnd()
899
      raise x
900
    result = authenticateUser_result()
901
    result.read(self._iprot)
902
    self._iprot.readMessageEnd()
3431 rajveer 903
    if result.success is not None:
122 ashish 904
      return result.success
3431 rajveer 905
    if result.auex is not None:
559 chandransh 906
      raise result.auex
122 ashish 907
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
908
 
94 ashish 909
  def userExists(self, email):
910
    """
911
    Parameters:
912
     - email
913
    """
914
    self.send_userExists(email)
915
    return self.recv_userExists()
916
 
917
  def send_userExists(self, email):
918
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
919
    args = userExists_args()
920
    args.email = email
921
    args.write(self._oprot)
922
    self._oprot.writeMessageEnd()
923
    self._oprot.trans.flush()
924
 
925
  def recv_userExists(self, ):
926
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
927
    if mtype == TMessageType.EXCEPTION:
928
      x = TApplicationException()
929
      x.read(self._iprot)
930
      self._iprot.readMessageEnd()
931
      raise x
932
    result = userExists_result()
933
    result.read(self._iprot)
934
    self._iprot.readMessageEnd()
3431 rajveer 935
    if result.success is not None:
94 ashish 936
      return result.success
3431 rajveer 937
    if result.ucx is not None:
94 ashish 938
      raise result.ucx
939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
940
 
567 rajveer 941
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 942
    """
943
    Parameters:
944
     - userId
945
     - address
513 rajveer 946
     - setDefault
94 ashish 947
    """
567 rajveer 948
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 949
    return self.recv_addAddressForUser()
950
 
567 rajveer 951
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 952
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
953
    args = addAddressForUser_args()
559 chandransh 954
    args.userId = userId
94 ashish 955
    args.address = address
513 rajveer 956
    args.setDefault = setDefault
94 ashish 957
    args.write(self._oprot)
958
    self._oprot.writeMessageEnd()
959
    self._oprot.trans.flush()
960
 
961
  def recv_addAddressForUser(self, ):
962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
963
    if mtype == TMessageType.EXCEPTION:
964
      x = TApplicationException()
965
      x.read(self._iprot)
966
      self._iprot.readMessageEnd()
967
      raise x
968
    result = addAddressForUser_result()
969
    result.read(self._iprot)
970
    self._iprot.readMessageEnd()
3431 rajveer 971
    if result.success is not None:
94 ashish 972
      return result.success
3431 rajveer 973
    if result.ucx is not None:
94 ashish 974
      raise result.ucx
975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
976
 
977
  def removeAddressForUser(self, userid, addressId):
978
    """
979
    Parameters:
980
     - userid
981
     - addressId
982
    """
983
    self.send_removeAddressForUser(userid, addressId)
984
    return self.recv_removeAddressForUser()
985
 
986
  def send_removeAddressForUser(self, userid, addressId):
987
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
988
    args = removeAddressForUser_args()
989
    args.userid = userid
990
    args.addressId = addressId
991
    args.write(self._oprot)
992
    self._oprot.writeMessageEnd()
993
    self._oprot.trans.flush()
994
 
995
  def recv_removeAddressForUser(self, ):
996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
997
    if mtype == TMessageType.EXCEPTION:
998
      x = TApplicationException()
999
      x.read(self._iprot)
1000
      self._iprot.readMessageEnd()
1001
      raise x
1002
    result = removeAddressForUser_result()
1003
    result.read(self._iprot)
1004
    self._iprot.readMessageEnd()
3431 rajveer 1005
    if result.success is not None:
94 ashish 1006
      return result.success
3431 rajveer 1007
    if result.ucx is not None:
94 ashish 1008
      raise result.ucx
1009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1010
 
1011
  def setUserAsLoggedIn(self, userId, timestamp):
1012
    """
1013
    Parameters:
1014
     - userId
1015
     - timestamp
1016
    """
1017
    self.send_setUserAsLoggedIn(userId, timestamp)
1018
    return self.recv_setUserAsLoggedIn()
1019
 
1020
  def send_setUserAsLoggedIn(self, userId, timestamp):
1021
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1022
    args = setUserAsLoggedIn_args()
1023
    args.userId = userId
1024
    args.timestamp = timestamp
1025
    args.write(self._oprot)
1026
    self._oprot.writeMessageEnd()
1027
    self._oprot.trans.flush()
1028
 
1029
  def recv_setUserAsLoggedIn(self, ):
1030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1031
    if mtype == TMessageType.EXCEPTION:
1032
      x = TApplicationException()
1033
      x.read(self._iprot)
1034
      self._iprot.readMessageEnd()
1035
      raise x
1036
    result = setUserAsLoggedIn_result()
1037
    result.read(self._iprot)
1038
    self._iprot.readMessageEnd()
3431 rajveer 1039
    if result.success is not None:
94 ashish 1040
      return result.success
3431 rajveer 1041
    if result.ucx is not None:
94 ashish 1042
      raise result.ucx
1043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1044
 
1045
  def setUserAsLoggedOut(self, userid, timestamp):
1046
    """
1047
    Parameters:
1048
     - userid
1049
     - timestamp
1050
    """
1051
    self.send_setUserAsLoggedOut(userid, timestamp)
1052
    return self.recv_setUserAsLoggedOut()
1053
 
1054
  def send_setUserAsLoggedOut(self, userid, timestamp):
1055
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1056
    args = setUserAsLoggedOut_args()
1057
    args.userid = userid
1058
    args.timestamp = timestamp
1059
    args.write(self._oprot)
1060
    self._oprot.writeMessageEnd()
1061
    self._oprot.trans.flush()
1062
 
1063
  def recv_setUserAsLoggedOut(self, ):
1064
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1065
    if mtype == TMessageType.EXCEPTION:
1066
      x = TApplicationException()
1067
      x.read(self._iprot)
1068
      self._iprot.readMessageEnd()
1069
      raise x
1070
    result = setUserAsLoggedOut_result()
1071
    result.read(self._iprot)
1072
    self._iprot.readMessageEnd()
3431 rajveer 1073
    if result.success is not None:
94 ashish 1074
      return result.success
3431 rajveer 1075
    if result.ucx is not None:
94 ashish 1076
      raise result.ucx
1077
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1078
 
504 rajveer 1079
  def setDefaultAddress(self, userid, addressId):
1080
    """
1081
    Parameters:
1082
     - userid
1083
     - addressId
1084
    """
1085
    self.send_setDefaultAddress(userid, addressId)
1086
    return self.recv_setDefaultAddress()
1087
 
1088
  def send_setDefaultAddress(self, userid, addressId):
1089
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1090
    args = setDefaultAddress_args()
1091
    args.userid = userid
1092
    args.addressId = addressId
1093
    args.write(self._oprot)
1094
    self._oprot.writeMessageEnd()
1095
    self._oprot.trans.flush()
1096
 
1097
  def recv_setDefaultAddress(self, ):
1098
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1099
    if mtype == TMessageType.EXCEPTION:
1100
      x = TApplicationException()
1101
      x.read(self._iprot)
1102
      self._iprot.readMessageEnd()
1103
      raise x
1104
    result = setDefaultAddress_result()
1105
    result.read(self._iprot)
1106
    self._iprot.readMessageEnd()
3431 rajveer 1107
    if result.success is not None:
504 rajveer 1108
      return result.success
3431 rajveer 1109
    if result.ucx is not None:
504 rajveer 1110
      raise result.ucx
1111
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1112
 
594 rajveer 1113
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1114
    """
1115
    Parameters:
1116
     - userid
594 rajveer 1117
     - oldPassword
1118
     - newPassword
94 ashish 1119
    """
594 rajveer 1120
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1121
    return self.recv_updatePassword()
1122
 
594 rajveer 1123
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1124
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1125
    args = updatePassword_args()
1126
    args.userid = userid
594 rajveer 1127
    args.oldPassword = oldPassword
1128
    args.newPassword = newPassword
94 ashish 1129
    args.write(self._oprot)
1130
    self._oprot.writeMessageEnd()
1131
    self._oprot.trans.flush()
1132
 
1133
  def recv_updatePassword(self, ):
1134
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1135
    if mtype == TMessageType.EXCEPTION:
1136
      x = TApplicationException()
1137
      x.read(self._iprot)
1138
      self._iprot.readMessageEnd()
1139
      raise x
1140
    result = updatePassword_result()
1141
    result.read(self._iprot)
1142
    self._iprot.readMessageEnd()
3431 rajveer 1143
    if result.success is not None:
94 ashish 1144
      return result.success
3431 rajveer 1145
    if result.ucx is not None:
94 ashish 1146
      raise result.ucx
1147
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1148
 
884 rajveer 1149
  def forgotPassword(self, email, newPassword):
581 rajveer 1150
    """
1151
    Parameters:
1152
     - email
884 rajveer 1153
     - newPassword
581 rajveer 1154
    """
884 rajveer 1155
    self.send_forgotPassword(email, newPassword)
581 rajveer 1156
    return self.recv_forgotPassword()
1157
 
884 rajveer 1158
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1159
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1160
    args = forgotPassword_args()
1161
    args.email = email
884 rajveer 1162
    args.newPassword = newPassword
581 rajveer 1163
    args.write(self._oprot)
1164
    self._oprot.writeMessageEnd()
1165
    self._oprot.trans.flush()
1166
 
1167
  def recv_forgotPassword(self, ):
1168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1169
    if mtype == TMessageType.EXCEPTION:
1170
      x = TApplicationException()
1171
      x.read(self._iprot)
1172
      self._iprot.readMessageEnd()
1173
      raise x
1174
    result = forgotPassword_result()
1175
    result.read(self._iprot)
1176
    self._iprot.readMessageEnd()
3431 rajveer 1177
    if result.success is not None:
581 rajveer 1178
      return result.success
3431 rajveer 1179
    if result.ucx is not None:
581 rajveer 1180
      raise result.ucx
1181
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1182
 
594 rajveer 1183
  def getAllAddressesForUser(self, userId):
1184
    """
1185
    Parameters:
1186
     - userId
1187
    """
1188
    self.send_getAllAddressesForUser(userId)
1189
    return self.recv_getAllAddressesForUser()
1190
 
1191
  def send_getAllAddressesForUser(self, userId):
1192
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1193
    args = getAllAddressesForUser_args()
1194
    args.userId = userId
1195
    args.write(self._oprot)
1196
    self._oprot.writeMessageEnd()
1197
    self._oprot.trans.flush()
1198
 
1199
  def recv_getAllAddressesForUser(self, ):
1200
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1201
    if mtype == TMessageType.EXCEPTION:
1202
      x = TApplicationException()
1203
      x.read(self._iprot)
1204
      self._iprot.readMessageEnd()
1205
      raise x
1206
    result = getAllAddressesForUser_result()
1207
    result.read(self._iprot)
1208
    self._iprot.readMessageEnd()
3431 rajveer 1209
    if result.success is not None:
594 rajveer 1210
      return result.success
3431 rajveer 1211
    if result.ucx is not None:
594 rajveer 1212
      raise result.ucx
1213
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1214
 
1894 vikas 1215
  def getAddressById(self, addressId):
1216
    """
1217
    Parameters:
1218
     - addressId
1219
    """
1220
    self.send_getAddressById(addressId)
1221
    return self.recv_getAddressById()
1222
 
1223
  def send_getAddressById(self, addressId):
1224
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1225
    args = getAddressById_args()
1226
    args.addressId = addressId
1227
    args.write(self._oprot)
1228
    self._oprot.writeMessageEnd()
1229
    self._oprot.trans.flush()
1230
 
1231
  def recv_getAddressById(self, ):
1232
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1233
    if mtype == TMessageType.EXCEPTION:
1234
      x = TApplicationException()
1235
      x.read(self._iprot)
1236
      self._iprot.readMessageEnd()
1237
      raise x
1238
    result = getAddressById_result()
1239
    result.read(self._iprot)
1240
    self._iprot.readMessageEnd()
3431 rajveer 1241
    if result.success is not None:
1894 vikas 1242
      return result.success
3431 rajveer 1243
    if result.ucx is not None:
1894 vikas 1244
      raise result.ucx
1245
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1246
 
594 rajveer 1247
  def getDefaultAddressId(self, userId):
1248
    """
1249
    Parameters:
1250
     - userId
1251
    """
1252
    self.send_getDefaultAddressId(userId)
1253
    return self.recv_getDefaultAddressId()
1254
 
1255
  def send_getDefaultAddressId(self, userId):
1256
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1257
    args = getDefaultAddressId_args()
1258
    args.userId = userId
1259
    args.write(self._oprot)
1260
    self._oprot.writeMessageEnd()
1261
    self._oprot.trans.flush()
1262
 
1263
  def recv_getDefaultAddressId(self, ):
1264
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1265
    if mtype == TMessageType.EXCEPTION:
1266
      x = TApplicationException()
1267
      x.read(self._iprot)
1268
      self._iprot.readMessageEnd()
1269
      raise x
1270
    result = getDefaultAddressId_result()
1271
    result.read(self._iprot)
1272
    self._iprot.readMessageEnd()
3431 rajveer 1273
    if result.success is not None:
594 rajveer 1274
      return result.success
3431 rajveer 1275
    if result.ucx is not None:
594 rajveer 1276
      raise result.ucx
1277
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1278
 
785 rajveer 1279
  def getDefaultPincode(self, userId):
1280
    """
1281
    Parameters:
1282
     - userId
1283
    """
1284
    self.send_getDefaultPincode(userId)
1285
    return self.recv_getDefaultPincode()
1286
 
1287
  def send_getDefaultPincode(self, userId):
1288
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1289
    args = getDefaultPincode_args()
1290
    args.userId = userId
1291
    args.write(self._oprot)
1292
    self._oprot.writeMessageEnd()
1293
    self._oprot.trans.flush()
1294
 
1295
  def recv_getDefaultPincode(self, ):
1296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1297
    if mtype == TMessageType.EXCEPTION:
1298
      x = TApplicationException()
1299
      x.read(self._iprot)
1300
      self._iprot.readMessageEnd()
1301
      raise x
1302
    result = getDefaultPincode_result()
1303
    result.read(self._iprot)
1304
    self._iprot.readMessageEnd()
3431 rajveer 1305
    if result.success is not None:
785 rajveer 1306
      return result.success
3431 rajveer 1307
    if result.ucx is not None:
785 rajveer 1308
      raise result.ucx
1309
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1310
 
1274 varun.gupt 1311
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1312
    """
1313
    Parameters:
1314
     - userId
1315
     - replyTo
1316
     - communicationType
1317
     - orderId
1318
     - airwaybillNo
1319
     - productName
1320
     - subject
1321
     - message
1322
    """
1323
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1324
    return self.recv_saveUserCommunication()
1325
 
1326
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1327
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1328
    args = saveUserCommunication_args()
1329
    args.userId = userId
1330
    args.replyTo = replyTo
1331
    args.communicationType = communicationType
1332
    args.orderId = orderId
1333
    args.airwaybillNo = airwaybillNo
1334
    args.productName = productName
1335
    args.subject = subject
1336
    args.message = message
1337
    args.write(self._oprot)
1338
    self._oprot.writeMessageEnd()
1339
    self._oprot.trans.flush()
1340
 
1341
  def recv_saveUserCommunication(self, ):
1342
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1343
    if mtype == TMessageType.EXCEPTION:
1344
      x = TApplicationException()
1345
      x.read(self._iprot)
1346
      self._iprot.readMessageEnd()
1347
      raise x
1348
    result = saveUserCommunication_result()
1349
    result.read(self._iprot)
1350
    self._iprot.readMessageEnd()
3431 rajveer 1351
    if result.success is not None:
1274 varun.gupt 1352
      return result.success
3431 rajveer 1353
    if result.ucx is not None:
1274 varun.gupt 1354
      raise result.ucx
1355
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1356
 
1590 varun.gupt 1357
  def getUserCommunicationById(self, id):
1358
    """
1359
    Parameters:
1360
     - id
1361
    """
1362
    self.send_getUserCommunicationById(id)
1363
    return self.recv_getUserCommunicationById()
1364
 
1365
  def send_getUserCommunicationById(self, id):
1366
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1367
    args = getUserCommunicationById_args()
1368
    args.id = id
1369
    args.write(self._oprot)
1370
    self._oprot.writeMessageEnd()
1371
    self._oprot.trans.flush()
1372
 
1373
  def recv_getUserCommunicationById(self, ):
1374
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1375
    if mtype == TMessageType.EXCEPTION:
1376
      x = TApplicationException()
1377
      x.read(self._iprot)
1378
      self._iprot.readMessageEnd()
1379
      raise x
1380
    result = getUserCommunicationById_result()
1381
    result.read(self._iprot)
1382
    self._iprot.readMessageEnd()
3431 rajveer 1383
    if result.success is not None:
1590 varun.gupt 1384
      return result.success
3431 rajveer 1385
    if result.ucx is not None:
1590 varun.gupt 1386
      raise result.ucx
1387
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1388
 
1389
  def getUserCommunicationByUser(self, userId):
1390
    """
1391
    Parameters:
1392
     - userId
1393
    """
1394
    self.send_getUserCommunicationByUser(userId)
1395
    return self.recv_getUserCommunicationByUser()
1396
 
1397
  def send_getUserCommunicationByUser(self, userId):
1398
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1399
    args = getUserCommunicationByUser_args()
1400
    args.userId = userId
1401
    args.write(self._oprot)
1402
    self._oprot.writeMessageEnd()
1403
    self._oprot.trans.flush()
1404
 
1405
  def recv_getUserCommunicationByUser(self, ):
1406
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1407
    if mtype == TMessageType.EXCEPTION:
1408
      x = TApplicationException()
1409
      x.read(self._iprot)
1410
      self._iprot.readMessageEnd()
1411
      raise x
1412
    result = getUserCommunicationByUser_result()
1413
    result.read(self._iprot)
1414
    self._iprot.readMessageEnd()
3431 rajveer 1415
    if result.success is not None:
1590 varun.gupt 1416
      return result.success
3431 rajveer 1417
    if result.ucx is not None:
1590 varun.gupt 1418
      raise result.ucx
1419
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1420
 
1421
  def getAllUserCommunications(self, ):
1422
    self.send_getAllUserCommunications()
1423
    return self.recv_getAllUserCommunications()
1424
 
1425
  def send_getAllUserCommunications(self, ):
1426
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1427
    args = getAllUserCommunications_args()
1428
    args.write(self._oprot)
1429
    self._oprot.writeMessageEnd()
1430
    self._oprot.trans.flush()
1431
 
1432
  def recv_getAllUserCommunications(self, ):
1433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1434
    if mtype == TMessageType.EXCEPTION:
1435
      x = TApplicationException()
1436
      x.read(self._iprot)
1437
      self._iprot.readMessageEnd()
1438
      raise x
1439
    result = getAllUserCommunications_result()
1440
    result.read(self._iprot)
1441
    self._iprot.readMessageEnd()
3431 rajveer 1442
    if result.success is not None:
1590 varun.gupt 1443
      return result.success
3431 rajveer 1444
    if result.ucx is not None:
1590 varun.gupt 1445
      raise result.ucx
1446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1447
 
5407 amar.kumar 1448
  def removeUserCommunication(self, id):
1449
    """
1450
    Parameters:
1451
     - id
1452
    """
1453
    self.send_removeUserCommunication(id)
1454
    self.recv_removeUserCommunication()
1455
 
1456
  def send_removeUserCommunication(self, id):
1457
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1458
    args = removeUserCommunication_args()
1459
    args.id = id
1460
    args.write(self._oprot)
1461
    self._oprot.writeMessageEnd()
1462
    self._oprot.trans.flush()
1463
 
1464
  def recv_removeUserCommunication(self, ):
1465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1466
    if mtype == TMessageType.EXCEPTION:
1467
      x = TApplicationException()
1468
      x.read(self._iprot)
1469
      self._iprot.readMessageEnd()
1470
      raise x
1471
    result = removeUserCommunication_result()
1472
    result.read(self._iprot)
1473
    self._iprot.readMessageEnd()
1474
    if result.ucx is not None:
1475
      raise result.ucx
1476
    return
1477
 
1859 vikas 1478
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1479
    """
1480
    Parameters:
1481
     - name
1859 vikas 1482
     - addedOn
1845 vikas 1483
    """
1859 vikas 1484
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1485
    return self.recv_createMasterAffiliate()
1486
 
1859 vikas 1487
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1488
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1489
    args = createMasterAffiliate_args()
1490
    args.name = name
1859 vikas 1491
    args.addedOn = addedOn
1845 vikas 1492
    args.write(self._oprot)
1493
    self._oprot.writeMessageEnd()
1494
    self._oprot.trans.flush()
1495
 
1496
  def recv_createMasterAffiliate(self, ):
1497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1498
    if mtype == TMessageType.EXCEPTION:
1499
      x = TApplicationException()
1500
      x.read(self._iprot)
1501
      self._iprot.readMessageEnd()
1502
      raise x
1503
    result = createMasterAffiliate_result()
1504
    result.read(self._iprot)
1505
    self._iprot.readMessageEnd()
3431 rajveer 1506
    if result.success is not None:
1845 vikas 1507
      return result.success
3431 rajveer 1508
    if result.utx is not None:
1845 vikas 1509
      raise result.utx
1510
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1511
 
1899 vikas 1512
  def getAllMasterAffiliates(self, ):
1513
    self.send_getAllMasterAffiliates()
1514
    return self.recv_getAllMasterAffiliates()
1515
 
1516
  def send_getAllMasterAffiliates(self, ):
1517
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1518
    args = getAllMasterAffiliates_args()
1519
    args.write(self._oprot)
1520
    self._oprot.writeMessageEnd()
1521
    self._oprot.trans.flush()
1522
 
1523
  def recv_getAllMasterAffiliates(self, ):
1524
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1525
    if mtype == TMessageType.EXCEPTION:
1526
      x = TApplicationException()
1527
      x.read(self._iprot)
1528
      self._iprot.readMessageEnd()
1529
      raise x
1530
    result = getAllMasterAffiliates_result()
1531
    result.read(self._iprot)
1532
    self._iprot.readMessageEnd()
3431 rajveer 1533
    if result.success is not None:
1899 vikas 1534
      return result.success
3431 rajveer 1535
    if result.utx is not None:
1899 vikas 1536
      raise result.utx
1537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1538
 
1845 vikas 1539
  def getMasterAffiliateById(self, id):
1540
    """
1541
    Parameters:
1542
     - id
1543
    """
1544
    self.send_getMasterAffiliateById(id)
1545
    return self.recv_getMasterAffiliateById()
1546
 
1547
  def send_getMasterAffiliateById(self, id):
1548
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1549
    args = getMasterAffiliateById_args()
1550
    args.id = id
1551
    args.write(self._oprot)
1552
    self._oprot.writeMessageEnd()
1553
    self._oprot.trans.flush()
1554
 
1555
  def recv_getMasterAffiliateById(self, ):
1556
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1557
    if mtype == TMessageType.EXCEPTION:
1558
      x = TApplicationException()
1559
      x.read(self._iprot)
1560
      self._iprot.readMessageEnd()
1561
      raise x
1562
    result = getMasterAffiliateById_result()
1563
    result.read(self._iprot)
1564
    self._iprot.readMessageEnd()
3431 rajveer 1565
    if result.success is not None:
1845 vikas 1566
      return result.success
3431 rajveer 1567
    if result.utx is not None:
1845 vikas 1568
      raise result.utx
1569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1570
 
1571
  def getMasterAffiliateByName(self, name):
1572
    """
1573
    Parameters:
1574
     - name
1575
    """
1576
    self.send_getMasterAffiliateByName(name)
1577
    return self.recv_getMasterAffiliateByName()
1578
 
1579
  def send_getMasterAffiliateByName(self, name):
1580
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1581
    args = getMasterAffiliateByName_args()
1582
    args.name = name
1583
    args.write(self._oprot)
1584
    self._oprot.writeMessageEnd()
1585
    self._oprot.trans.flush()
1586
 
1587
  def recv_getMasterAffiliateByName(self, ):
1588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1589
    if mtype == TMessageType.EXCEPTION:
1590
      x = TApplicationException()
1591
      x.read(self._iprot)
1592
      self._iprot.readMessageEnd()
1593
      raise x
1594
    result = getMasterAffiliateByName_result()
1595
    result.read(self._iprot)
1596
    self._iprot.readMessageEnd()
3431 rajveer 1597
    if result.success is not None:
1845 vikas 1598
      return result.success
3431 rajveer 1599
    if result.utx is not None:
1845 vikas 1600
      raise result.utx
1601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1602
 
1859 vikas 1603
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1604
    """
1605
    Parameters:
1606
     - name
1607
     - url
1608
     - masterAffiliateId
1859 vikas 1609
     - addedOn
1845 vikas 1610
    """
1859 vikas 1611
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1612
    return self.recv_createAffiliate()
1613
 
1859 vikas 1614
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1615
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1616
    args = createAffiliate_args()
1617
    args.name = name
1618
    args.url = url
1619
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1620
    args.addedOn = addedOn
1845 vikas 1621
    args.write(self._oprot)
1622
    self._oprot.writeMessageEnd()
1623
    self._oprot.trans.flush()
1624
 
1625
  def recv_createAffiliate(self, ):
1626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1627
    if mtype == TMessageType.EXCEPTION:
1628
      x = TApplicationException()
1629
      x.read(self._iprot)
1630
      self._iprot.readMessageEnd()
1631
      raise x
1632
    result = createAffiliate_result()
1633
    result.read(self._iprot)
1634
    self._iprot.readMessageEnd()
3431 rajveer 1635
    if result.success is not None:
1845 vikas 1636
      return result.success
3431 rajveer 1637
    if result.utx is not None:
1845 vikas 1638
      raise result.utx
1639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1640
 
1641
  def getAffiliateById(self, id):
1642
    """
1643
    Parameters:
1644
     - id
1645
    """
1646
    self.send_getAffiliateById(id)
1647
    return self.recv_getAffiliateById()
1648
 
1649
  def send_getAffiliateById(self, id):
1650
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1651
    args = getAffiliateById_args()
1652
    args.id = id
1653
    args.write(self._oprot)
1654
    self._oprot.writeMessageEnd()
1655
    self._oprot.trans.flush()
1656
 
1657
  def recv_getAffiliateById(self, ):
1658
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1659
    if mtype == TMessageType.EXCEPTION:
1660
      x = TApplicationException()
1661
      x.read(self._iprot)
1662
      self._iprot.readMessageEnd()
1663
      raise x
1664
    result = getAffiliateById_result()
1665
    result.read(self._iprot)
1666
    self._iprot.readMessageEnd()
3431 rajveer 1667
    if result.success is not None:
1845 vikas 1668
      return result.success
3431 rajveer 1669
    if result.utx is not None:
1845 vikas 1670
      raise result.utx
1671
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1672
 
1673
  def getAffiliateByName(self, name):
1674
    """
1675
    Parameters:
1676
     - name
1677
    """
1678
    self.send_getAffiliateByName(name)
1679
    return self.recv_getAffiliateByName()
1680
 
1681
  def send_getAffiliateByName(self, name):
1682
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1683
    args = getAffiliateByName_args()
1684
    args.name = name
1685
    args.write(self._oprot)
1686
    self._oprot.writeMessageEnd()
1687
    self._oprot.trans.flush()
1688
 
1689
  def recv_getAffiliateByName(self, ):
1690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1691
    if mtype == TMessageType.EXCEPTION:
1692
      x = TApplicationException()
1693
      x.read(self._iprot)
1694
      self._iprot.readMessageEnd()
1695
      raise x
1696
    result = getAffiliateByName_result()
1697
    result.read(self._iprot)
1698
    self._iprot.readMessageEnd()
3431 rajveer 1699
    if result.success is not None:
1845 vikas 1700
      return result.success
3431 rajveer 1701
    if result.utx is not None:
1845 vikas 1702
      raise result.utx
1703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1704
 
1996 vikas 1705
  def getTrackerById(self, id):
1845 vikas 1706
    """
1707
    Parameters:
1708
     - id
1709
    """
1996 vikas 1710
    self.send_getTrackerById(id)
1845 vikas 1711
    return self.recv_getTrackerById()
1712
 
1996 vikas 1713
  def send_getTrackerById(self, id):
1845 vikas 1714
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1715
    args = getTrackerById_args()
1996 vikas 1716
    args.id = id
1845 vikas 1717
    args.write(self._oprot)
1718
    self._oprot.writeMessageEnd()
1719
    self._oprot.trans.flush()
1720
 
1721
  def recv_getTrackerById(self, ):
1722
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1723
    if mtype == TMessageType.EXCEPTION:
1724
      x = TApplicationException()
1725
      x.read(self._iprot)
1726
      self._iprot.readMessageEnd()
1727
      raise x
1728
    result = getTrackerById_result()
1729
    result.read(self._iprot)
1730
    self._iprot.readMessageEnd()
3431 rajveer 1731
    if result.success is not None:
1845 vikas 1732
      return result.success
3431 rajveer 1733
    if result.utx is not None:
1845 vikas 1734
      raise result.utx
1735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1736
 
1996 vikas 1737
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1738
    """
1739
    Parameters:
1996 vikas 1740
     - id
1845 vikas 1741
    """
1996 vikas 1742
    self.send_getAffiliatesByMasterAffiliate(id)
1743
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1744
 
1996 vikas 1745
  def send_getAffiliatesByMasterAffiliate(self, id):
1746
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1747
    args = getAffiliatesByMasterAffiliate_args()
1748
    args.id = id
1845 vikas 1749
    args.write(self._oprot)
1750
    self._oprot.writeMessageEnd()
1751
    self._oprot.trans.flush()
1752
 
1996 vikas 1753
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1754
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1755
    if mtype == TMessageType.EXCEPTION:
1756
      x = TApplicationException()
1757
      x.read(self._iprot)
1758
      self._iprot.readMessageEnd()
1759
      raise x
1996 vikas 1760
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1761
    result.read(self._iprot)
1762
    self._iprot.readMessageEnd()
3431 rajveer 1763
    if result.success is not None:
1845 vikas 1764
      return result.success
3431 rajveer 1765
    if result.utx is not None:
1845 vikas 1766
      raise result.utx
1996 vikas 1767
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1768
 
1996 vikas 1769
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1770
    """
1771
    Parameters:
1996 vikas 1772
     - affiliateId
1845 vikas 1773
     - userId
1774
     - event
1775
     - url
1776
     - data
1859 vikas 1777
     - addedOn
1845 vikas 1778
    """
1996 vikas 1779
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1780
    return self.recv_addTrackLog()
1781
 
1996 vikas 1782
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1783
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1784
    args = addTrackLog_args()
1996 vikas 1785
    args.affiliateId = affiliateId
1845 vikas 1786
    args.userId = userId
1787
    args.event = event
1788
    args.url = url
1789
    args.data = data
1859 vikas 1790
    args.addedOn = addedOn
1845 vikas 1791
    args.write(self._oprot)
1792
    self._oprot.writeMessageEnd()
1793
    self._oprot.trans.flush()
1794
 
1795
  def recv_addTrackLog(self, ):
1796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1797
    if mtype == TMessageType.EXCEPTION:
1798
      x = TApplicationException()
1799
      x.read(self._iprot)
1800
      self._iprot.readMessageEnd()
1801
      raise x
1802
    result = addTrackLog_result()
1803
    result.read(self._iprot)
1804
    self._iprot.readMessageEnd()
3431 rajveer 1805
    if result.success is not None:
1845 vikas 1806
      return result.success
3431 rajveer 1807
    if result.utx is not None:
1845 vikas 1808
      raise result.utx
1809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1810
 
1811
  def getTrackLogById(self, id):
1812
    """
1813
    Parameters:
1814
     - id
1815
    """
1816
    self.send_getTrackLogById(id)
1817
    return self.recv_getTrackLogById()
1818
 
1819
  def send_getTrackLogById(self, id):
1820
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1821
    args = getTrackLogById_args()
1822
    args.id = id
1823
    args.write(self._oprot)
1824
    self._oprot.writeMessageEnd()
1825
    self._oprot.trans.flush()
1826
 
1827
  def recv_getTrackLogById(self, ):
1828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1829
    if mtype == TMessageType.EXCEPTION:
1830
      x = TApplicationException()
1831
      x.read(self._iprot)
1832
      self._iprot.readMessageEnd()
1833
      raise x
1834
    result = getTrackLogById_result()
1835
    result.read(self._iprot)
1836
    self._iprot.readMessageEnd()
3431 rajveer 1837
    if result.success is not None:
1845 vikas 1838
      return result.success
3431 rajveer 1839
    if result.utx is not None:
1845 vikas 1840
      raise result.utx
1841
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1842
 
3293 vikas 1843
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1844
    """
1845
    Parameters:
1996 vikas 1846
     - affiliateId
3293 vikas 1847
     - startDate
1848
     - endDate
1845 vikas 1849
    """
3293 vikas 1850
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1851
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1852
 
3293 vikas 1853
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1854
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1855
    args = getTrackLogsByAffiliate_args()
1856
    args.affiliateId = affiliateId
3293 vikas 1857
    args.startDate = startDate
1858
    args.endDate = endDate
1845 vikas 1859
    args.write(self._oprot)
1860
    self._oprot.writeMessageEnd()
1861
    self._oprot.trans.flush()
1862
 
1996 vikas 1863
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1865
    if mtype == TMessageType.EXCEPTION:
1866
      x = TApplicationException()
1867
      x.read(self._iprot)
1868
      self._iprot.readMessageEnd()
1869
      raise x
1996 vikas 1870
    result = getTrackLogsByAffiliate_result()
1845 vikas 1871
    result.read(self._iprot)
1872
    self._iprot.readMessageEnd()
3431 rajveer 1873
    if result.success is not None:
1845 vikas 1874
      return result.success
3431 rajveer 1875
    if result.utx is not None:
1845 vikas 1876
      raise result.utx
1996 vikas 1877
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1878
 
1879
  def getTrackLogsByUser(self, userId):
1880
    """
1881
    Parameters:
1882
     - userId
1883
    """
1884
    self.send_getTrackLogsByUser(userId)
1885
    return self.recv_getTrackLogsByUser()
1886
 
1887
  def send_getTrackLogsByUser(self, userId):
1888
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1889
    args = getTrackLogsByUser_args()
1890
    args.userId = userId
1891
    args.write(self._oprot)
1892
    self._oprot.writeMessageEnd()
1893
    self._oprot.trans.flush()
1894
 
1895
  def recv_getTrackLogsByUser(self, ):
1896
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1897
    if mtype == TMessageType.EXCEPTION:
1898
      x = TApplicationException()
1899
      x.read(self._iprot)
1900
      self._iprot.readMessageEnd()
1901
      raise x
1902
    result = getTrackLogsByUser_result()
1903
    result.read(self._iprot)
1904
    self._iprot.readMessageEnd()
3431 rajveer 1905
    if result.success is not None:
1845 vikas 1906
      return result.success
3431 rajveer 1907
    if result.utx is not None:
1845 vikas 1908
      raise result.utx
1909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1910
 
1996 vikas 1911
  def getTrackLogs(self, userId, event, url):
1845 vikas 1912
    """
1913
    Parameters:
1914
     - userId
1915
     - event
1916
     - url
1917
    """
1996 vikas 1918
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1919
    return self.recv_getTrackLogs()
1920
 
1996 vikas 1921
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1922
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1923
    args = getTrackLogs_args()
1924
    args.userId = userId
1925
    args.event = event
1926
    args.url = url
1927
    args.write(self._oprot)
1928
    self._oprot.writeMessageEnd()
1929
    self._oprot.trans.flush()
1930
 
1931
  def recv_getTrackLogs(self, ):
1932
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1933
    if mtype == TMessageType.EXCEPTION:
1934
      x = TApplicationException()
1935
      x.read(self._iprot)
1936
      self._iprot.readMessageEnd()
1937
      raise x
1938
    result = getTrackLogs_result()
1939
    result.read(self._iprot)
1940
    self._iprot.readMessageEnd()
3431 rajveer 1941
    if result.success is not None:
1845 vikas 1942
      return result.success
3431 rajveer 1943
    if result.utx is not None:
1845 vikas 1944
      raise result.utx
1945
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1946
 
559 chandransh 1947
  def getCurrentCart(self, userId):
94 ashish 1948
    """
1949
    Parameters:
559 chandransh 1950
     - userId
94 ashish 1951
    """
559 chandransh 1952
    self.send_getCurrentCart(userId)
1953
    return self.recv_getCurrentCart()
94 ashish 1954
 
559 chandransh 1955
  def send_getCurrentCart(self, userId):
1956
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1957
    args = getCurrentCart_args()
1958
    args.userId = userId
94 ashish 1959
    args.write(self._oprot)
1960
    self._oprot.writeMessageEnd()
1961
    self._oprot.trans.flush()
1962
 
559 chandransh 1963
  def recv_getCurrentCart(self, ):
94 ashish 1964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1965
    if mtype == TMessageType.EXCEPTION:
1966
      x = TApplicationException()
1967
      x.read(self._iprot)
1968
      self._iprot.readMessageEnd()
1969
      raise x
559 chandransh 1970
    result = getCurrentCart_result()
94 ashish 1971
    result.read(self._iprot)
1972
    self._iprot.readMessageEnd()
3431 rajveer 1973
    if result.success is not None:
94 ashish 1974
      return result.success
3431 rajveer 1975
    if result.scx is not None:
559 chandransh 1976
      raise result.scx
1977
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1978
 
559 chandransh 1979
  def getCart(self, cartId):
94 ashish 1980
    """
1981
    Parameters:
559 chandransh 1982
     - cartId
94 ashish 1983
    """
559 chandransh 1984
    self.send_getCart(cartId)
1985
    return self.recv_getCart()
94 ashish 1986
 
559 chandransh 1987
  def send_getCart(self, cartId):
1988
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1989
    args = getCart_args()
1990
    args.cartId = cartId
94 ashish 1991
    args.write(self._oprot)
1992
    self._oprot.writeMessageEnd()
1993
    self._oprot.trans.flush()
1994
 
559 chandransh 1995
  def recv_getCart(self, ):
94 ashish 1996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1997
    if mtype == TMessageType.EXCEPTION:
1998
      x = TApplicationException()
1999
      x.read(self._iprot)
2000
      self._iprot.readMessageEnd()
2001
      raise x
559 chandransh 2002
    result = getCart_result()
94 ashish 2003
    result.read(self._iprot)
2004
    self._iprot.readMessageEnd()
3431 rajveer 2005
    if result.success is not None:
94 ashish 2006
      return result.success
3431 rajveer 2007
    if result.scx is not None:
559 chandransh 2008
      raise result.scx
2009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2010
 
559 chandransh 2011
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2012
    """
2013
    Parameters:
559 chandransh 2014
     - from_time
2015
     - to_time
2016
     - status
94 ashish 2017
    """
559 chandransh 2018
    self.send_getCartsByTime(from_time, to_time, status)
2019
    return self.recv_getCartsByTime()
94 ashish 2020
 
559 chandransh 2021
  def send_getCartsByTime(self, from_time, to_time, status):
2022
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2023
    args = getCartsByTime_args()
2024
    args.from_time = from_time
2025
    args.to_time = to_time
2026
    args.status = status
94 ashish 2027
    args.write(self._oprot)
2028
    self._oprot.writeMessageEnd()
2029
    self._oprot.trans.flush()
2030
 
559 chandransh 2031
  def recv_getCartsByTime(self, ):
94 ashish 2032
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2033
    if mtype == TMessageType.EXCEPTION:
2034
      x = TApplicationException()
2035
      x.read(self._iprot)
2036
      self._iprot.readMessageEnd()
2037
      raise x
559 chandransh 2038
    result = getCartsByTime_result()
94 ashish 2039
    result.read(self._iprot)
2040
    self._iprot.readMessageEnd()
3431 rajveer 2041
    if result.success is not None:
94 ashish 2042
      return result.success
3431 rajveer 2043
    if result.scx is not None:
559 chandransh 2044
      raise result.scx
2045
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2046
 
3557 rajveer 2047
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2048
    """
2049
    Parameters:
2050
     - cartId
2051
     - itemId
2052
     - quantity
3557 rajveer 2053
     - sourceId
559 chandransh 2054
    """
3557 rajveer 2055
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2056
    return self.recv_addItemToCart()
559 chandransh 2057
 
3557 rajveer 2058
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2059
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2060
    args = addItemToCart_args()
2061
    args.cartId = cartId
2062
    args.itemId = itemId
2063
    args.quantity = quantity
3557 rajveer 2064
    args.sourceId = sourceId
559 chandransh 2065
    args.write(self._oprot)
2066
    self._oprot.writeMessageEnd()
2067
    self._oprot.trans.flush()
2068
 
2069
  def recv_addItemToCart(self, ):
2070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2071
    if mtype == TMessageType.EXCEPTION:
2072
      x = TApplicationException()
2073
      x.read(self._iprot)
2074
      self._iprot.readMessageEnd()
2075
      raise x
2076
    result = addItemToCart_result()
2077
    result.read(self._iprot)
2078
    self._iprot.readMessageEnd()
3431 rajveer 2079
    if result.success is not None:
2035 rajveer 2080
      return result.success
3431 rajveer 2081
    if result.scx is not None:
559 chandransh 2082
      raise result.scx
2035 rajveer 2083
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2084
 
2085
  def deleteItemFromCart(self, cartId, itemId):
2086
    """
2087
    Parameters:
2088
     - cartId
2089
     - itemId
2090
    """
2091
    self.send_deleteItemFromCart(cartId, itemId)
2092
    self.recv_deleteItemFromCart()
2093
 
2094
  def send_deleteItemFromCart(self, cartId, itemId):
2095
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2096
    args = deleteItemFromCart_args()
2097
    args.cartId = cartId
2098
    args.itemId = itemId
2099
    args.write(self._oprot)
2100
    self._oprot.writeMessageEnd()
2101
    self._oprot.trans.flush()
2102
 
2103
  def recv_deleteItemFromCart(self, ):
2104
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2105
    if mtype == TMessageType.EXCEPTION:
2106
      x = TApplicationException()
2107
      x.read(self._iprot)
2108
      self._iprot.readMessageEnd()
2109
      raise x
2110
    result = deleteItemFromCart_result()
2111
    result.read(self._iprot)
2112
    self._iprot.readMessageEnd()
3431 rajveer 2113
    if result.scx is not None:
559 chandransh 2114
      raise result.scx
2115
    return
2116
 
2117
  def addAddressToCart(self, cartId, addressId):
2118
    """
2119
    Parameters:
2120
     - cartId
2121
     - addressId
2122
    """
2123
    self.send_addAddressToCart(cartId, addressId)
2124
    self.recv_addAddressToCart()
2125
 
2126
  def send_addAddressToCart(self, cartId, addressId):
2127
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2128
    args = addAddressToCart_args()
2129
    args.cartId = cartId
2130
    args.addressId = addressId
2131
    args.write(self._oprot)
2132
    self._oprot.writeMessageEnd()
2133
    self._oprot.trans.flush()
2134
 
2135
  def recv_addAddressToCart(self, ):
2136
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2137
    if mtype == TMessageType.EXCEPTION:
2138
      x = TApplicationException()
2139
      x.read(self._iprot)
2140
      self._iprot.readMessageEnd()
2141
      raise x
2142
    result = addAddressToCart_result()
2143
    result.read(self._iprot)
2144
    self._iprot.readMessageEnd()
3431 rajveer 2145
    if result.scx is not None:
575 chandransh 2146
      raise result.scx
559 chandransh 2147
    return
2148
 
5553 rajveer 2149
  def addStoreToCart(self, cartId, storeId):
2150
    """
2151
    Parameters:
2152
     - cartId
2153
     - storeId
2154
    """
2155
    self.send_addStoreToCart(cartId, storeId)
2156
    self.recv_addStoreToCart()
2157
 
2158
  def send_addStoreToCart(self, cartId, storeId):
2159
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2160
    args = addStoreToCart_args()
2161
    args.cartId = cartId
2162
    args.storeId = storeId
2163
    args.write(self._oprot)
2164
    self._oprot.writeMessageEnd()
2165
    self._oprot.trans.flush()
2166
 
2167
  def recv_addStoreToCart(self, ):
2168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2169
    if mtype == TMessageType.EXCEPTION:
2170
      x = TApplicationException()
2171
      x.read(self._iprot)
2172
      self._iprot.readMessageEnd()
2173
      raise x
2174
    result = addStoreToCart_result()
2175
    result.read(self._iprot)
2176
    self._iprot.readMessageEnd()
2177
    if result.scx is not None:
2178
      raise result.scx
2179
    return
2180
 
1976 varun.gupt 2181
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2182
    """
2183
    Parameters:
2184
     - cartId
2185
     - couponCode
2186
     - totalPrice
2187
     - discountedPrice
2188
    """
2189
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2190
    self.recv_applyCouponToCart()
2191
 
2192
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2193
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2194
    args = applyCouponToCart_args()
2195
    args.cartId = cartId
2196
    args.couponCode = couponCode
2197
    args.totalPrice = totalPrice
2198
    args.discountedPrice = discountedPrice
2199
    args.write(self._oprot)
2200
    self._oprot.writeMessageEnd()
2201
    self._oprot.trans.flush()
2202
 
2203
  def recv_applyCouponToCart(self, ):
2204
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2205
    if mtype == TMessageType.EXCEPTION:
2206
      x = TApplicationException()
2207
      x.read(self._iprot)
2208
      self._iprot.readMessageEnd()
2209
      raise x
2210
    result = applyCouponToCart_result()
2211
    result.read(self._iprot)
2212
    self._iprot.readMessageEnd()
3431 rajveer 2213
    if result.scx is not None:
1976 varun.gupt 2214
      raise result.scx
2215
    return
2216
 
2217
  def removeCoupon(self, cartId):
2218
    """
2219
    Parameters:
2220
     - cartId
2221
    """
2222
    self.send_removeCoupon(cartId)
2223
    self.recv_removeCoupon()
2224
 
2225
  def send_removeCoupon(self, cartId):
2226
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2227
    args = removeCoupon_args()
2228
    args.cartId = cartId
2229
    args.write(self._oprot)
2230
    self._oprot.writeMessageEnd()
2231
    self._oprot.trans.flush()
2232
 
2233
  def recv_removeCoupon(self, ):
2234
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2235
    if mtype == TMessageType.EXCEPTION:
2236
      x = TApplicationException()
2237
      x.read(self._iprot)
2238
      self._iprot.readMessageEnd()
2239
      raise x
2240
    result = removeCoupon_result()
2241
    result.read(self._iprot)
2242
    self._iprot.readMessageEnd()
3431 rajveer 2243
    if result.scx is not None:
1976 varun.gupt 2244
      raise result.scx
2245
    return
2246
 
3554 varun.gupt 2247
  def deleteDiscountsFromCart(self, cartId):
2248
    """
2249
    Deletes all the discounts associated with the cart
2250
 
2251
    Parameters:
2252
     - cartId
2253
    """
2254
    self.send_deleteDiscountsFromCart(cartId)
2255
    self.recv_deleteDiscountsFromCart()
2256
 
2257
  def send_deleteDiscountsFromCart(self, cartId):
2258
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2259
    args = deleteDiscountsFromCart_args()
2260
    args.cartId = cartId
2261
    args.write(self._oprot)
2262
    self._oprot.writeMessageEnd()
2263
    self._oprot.trans.flush()
2264
 
2265
  def recv_deleteDiscountsFromCart(self, ):
2266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2267
    if mtype == TMessageType.EXCEPTION:
2268
      x = TApplicationException()
2269
      x.read(self._iprot)
2270
      self._iprot.readMessageEnd()
2271
      raise x
2272
    result = deleteDiscountsFromCart_result()
2273
    result.read(self._iprot)
2274
    self._iprot.readMessageEnd()
2275
    if result.scx is not None:
2276
      raise result.scx
2277
    return
2278
 
2279
  def saveDiscounts(self, discounts):
2280
    """
2281
    Accepts a list of thrift objects of Discount type and saves them
2282
 
2283
    Parameters:
2284
     - discounts
2285
    """
2286
    self.send_saveDiscounts(discounts)
2287
    self.recv_saveDiscounts()
2288
 
2289
  def send_saveDiscounts(self, discounts):
2290
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2291
    args = saveDiscounts_args()
2292
    args.discounts = discounts
2293
    args.write(self._oprot)
2294
    self._oprot.writeMessageEnd()
2295
    self._oprot.trans.flush()
2296
 
2297
  def recv_saveDiscounts(self, ):
2298
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2299
    if mtype == TMessageType.EXCEPTION:
2300
      x = TApplicationException()
2301
      x.read(self._iprot)
2302
      self._iprot.readMessageEnd()
2303
      raise x
2304
    result = saveDiscounts_result()
2305
    result.read(self._iprot)
2306
    self._iprot.readMessageEnd()
2307
    if result.scx is not None:
2308
      raise result.scx
2309
    return
2310
 
6389 rajveer 2311
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 2312
    """
690 chandransh 2313
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2314
 
559 chandransh 2315
    Parameters:
2316
     - cartId
2815 vikas 2317
     - sessionSource
2318
     - sessionStartTime
3858 vikas 2319
     - firstSource
2320
     - firstSourceTime
5326 rajveer 2321
     - userId
6389 rajveer 2322
     - schemeId
559 chandransh 2323
    """
6389 rajveer 2324
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId)
690 chandransh 2325
    return self.recv_createOrders()
559 chandransh 2326
 
6389 rajveer 2327
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
690 chandransh 2328
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2329
    args = createOrders_args()
559 chandransh 2330
    args.cartId = cartId
2815 vikas 2331
    args.sessionSource = sessionSource
2332
    args.sessionStartTime = sessionStartTime
3858 vikas 2333
    args.firstSource = firstSource
2334
    args.firstSourceTime = firstSourceTime
5326 rajveer 2335
    args.userId = userId
6389 rajveer 2336
    args.schemeId = schemeId
559 chandransh 2337
    args.write(self._oprot)
2338
    self._oprot.writeMessageEnd()
2339
    self._oprot.trans.flush()
2340
 
690 chandransh 2341
  def recv_createOrders(self, ):
559 chandransh 2342
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2343
    if mtype == TMessageType.EXCEPTION:
2344
      x = TApplicationException()
2345
      x.read(self._iprot)
2346
      self._iprot.readMessageEnd()
2347
      raise x
690 chandransh 2348
    result = createOrders_result()
559 chandransh 2349
    result.read(self._iprot)
2350
    self._iprot.readMessageEnd()
3431 rajveer 2351
    if result.success is not None:
130 ashish 2352
      return result.success
3431 rajveer 2353
    if result.scx is not None:
559 chandransh 2354
      raise result.scx
690 chandransh 2355
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2356
 
3557 rajveer 2357
  def validateCart(self, cartId, sourceId):
130 ashish 2358
    """
690 chandransh 2359
    Validates that:
2360
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2361
    2. All of the lines in the cart are active items.
690 chandransh 2362
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2363
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2364
 
130 ashish 2365
    Parameters:
559 chandransh 2366
     - cartId
3557 rajveer 2367
     - sourceId
130 ashish 2368
    """
3557 rajveer 2369
    self.send_validateCart(cartId, sourceId)
559 chandransh 2370
    return self.recv_validateCart()
130 ashish 2371
 
3557 rajveer 2372
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2373
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2374
    args = validateCart_args()
2375
    args.cartId = cartId
3557 rajveer 2376
    args.sourceId = sourceId
130 ashish 2377
    args.write(self._oprot)
2378
    self._oprot.writeMessageEnd()
2379
    self._oprot.trans.flush()
2380
 
559 chandransh 2381
  def recv_validateCart(self, ):
130 ashish 2382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2383
    if mtype == TMessageType.EXCEPTION:
2384
      x = TApplicationException()
2385
      x.read(self._iprot)
2386
      self._iprot.readMessageEnd()
2387
      raise x
559 chandransh 2388
    result = validateCart_result()
130 ashish 2389
    result.read(self._iprot)
2390
    self._iprot.readMessageEnd()
3431 rajveer 2391
    if result.success is not None:
130 ashish 2392
      return result.success
3431 rajveer 2393
    if result.scex is not None:
575 chandransh 2394
      raise result.scex
559 chandransh 2395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2396
 
690 chandransh 2397
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2398
    """
690 chandransh 2399
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2400
 
575 chandransh 2401
    Parameters:
690 chandransh 2402
     - fromCartId
2403
     - toCartId
2404
    """
2405
    self.send_mergeCart(fromCartId, toCartId)
2406
    self.recv_mergeCart()
2407
 
2408
  def send_mergeCart(self, fromCartId, toCartId):
2409
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2410
    args = mergeCart_args()
2411
    args.fromCartId = fromCartId
2412
    args.toCartId = toCartId
2413
    args.write(self._oprot)
2414
    self._oprot.writeMessageEnd()
2415
    self._oprot.trans.flush()
2416
 
2417
  def recv_mergeCart(self, ):
2418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2419
    if mtype == TMessageType.EXCEPTION:
2420
      x = TApplicationException()
2421
      x.read(self._iprot)
2422
      self._iprot.readMessageEnd()
2423
      raise x
2424
    result = mergeCart_result()
2425
    result.read(self._iprot)
2426
    self._iprot.readMessageEnd()
2427
    return
2428
 
2429
  def checkOut(self, cartId):
2430
    """
2431
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2432
 
690 chandransh 2433
    Parameters:
575 chandransh 2434
     - cartId
2435
    """
690 chandransh 2436
    self.send_checkOut(cartId)
2437
    return self.recv_checkOut()
575 chandransh 2438
 
690 chandransh 2439
  def send_checkOut(self, cartId):
2440
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2441
    args = checkOut_args()
575 chandransh 2442
    args.cartId = cartId
2443
    args.write(self._oprot)
2444
    self._oprot.writeMessageEnd()
2445
    self._oprot.trans.flush()
2446
 
690 chandransh 2447
  def recv_checkOut(self, ):
575 chandransh 2448
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2449
    if mtype == TMessageType.EXCEPTION:
2450
      x = TApplicationException()
2451
      x.read(self._iprot)
2452
      self._iprot.readMessageEnd()
2453
      raise x
690 chandransh 2454
    result = checkOut_result()
575 chandransh 2455
    result.read(self._iprot)
2456
    self._iprot.readMessageEnd()
3431 rajveer 2457
    if result.success is not None:
575 chandransh 2458
      return result.success
3431 rajveer 2459
    if result.scex is not None:
575 chandransh 2460
      raise result.scex
690 chandransh 2461
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2462
 
690 chandransh 2463
  def resetCart(self, cartId, items):
559 chandransh 2464
    """
690 chandransh 2465
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2466
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2467
 
559 chandransh 2468
    Parameters:
690 chandransh 2469
     - cartId
2470
     - items
559 chandransh 2471
    """
690 chandransh 2472
    self.send_resetCart(cartId, items)
2473
    return self.recv_resetCart()
130 ashish 2474
 
690 chandransh 2475
  def send_resetCart(self, cartId, items):
2476
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2477
    args = resetCart_args()
2478
    args.cartId = cartId
2479
    args.items = items
559 chandransh 2480
    args.write(self._oprot)
2481
    self._oprot.writeMessageEnd()
2482
    self._oprot.trans.flush()
2483
 
690 chandransh 2484
  def recv_resetCart(self, ):
559 chandransh 2485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2486
    if mtype == TMessageType.EXCEPTION:
2487
      x = TApplicationException()
2488
      x.read(self._iprot)
2489
      self._iprot.readMessageEnd()
2490
      raise x
690 chandransh 2491
    result = resetCart_result()
559 chandransh 2492
    result.read(self._iprot)
2493
    self._iprot.readMessageEnd()
3431 rajveer 2494
    if result.success is not None:
690 chandransh 2495
      return result.success
3431 rajveer 2496
    if result.scex is not None:
690 chandransh 2497
      raise result.scex
2498
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2499
 
2981 rajveer 2500
  def getUserCount(self, userType):
559 chandransh 2501
    """
2981 rajveer 2502
    Returns number of registered users.
2503
    If userType = null, then it returns count of all users, including anonymous
2504
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2505
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2506
 
559 chandransh 2507
    Parameters:
2981 rajveer 2508
     - userType
559 chandransh 2509
    """
2981 rajveer 2510
    self.send_getUserCount(userType)
2511
    return self.recv_getUserCount()
559 chandransh 2512
 
2981 rajveer 2513
  def send_getUserCount(self, userType):
2514
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2515
    args = getUserCount_args()
2516
    args.userType = userType
559 chandransh 2517
    args.write(self._oprot)
2518
    self._oprot.writeMessageEnd()
2519
    self._oprot.trans.flush()
2520
 
2981 rajveer 2521
  def recv_getUserCount(self, ):
559 chandransh 2522
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2523
    if mtype == TMessageType.EXCEPTION:
2524
      x = TApplicationException()
2525
      x.read(self._iprot)
2526
      self._iprot.readMessageEnd()
2527
      raise x
2981 rajveer 2528
    result = getUserCount_result()
559 chandransh 2529
    result.read(self._iprot)
2530
    self._iprot.readMessageEnd()
3431 rajveer 2531
    if result.success is not None:
559 chandransh 2532
      return result.success
2981 rajveer 2533
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2534
 
2981 rajveer 2535
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2536
    """
2981 rajveer 2537
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2538
    If any of startDate or endDate is -1, then that filter is ignored.
2539
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2540
 
2541
 
559 chandransh 2542
    Parameters:
2981 rajveer 2543
     - userType
2544
     - startDate
2545
     - endDate
559 chandransh 2546
    """
2981 rajveer 2547
    self.send_getAllUsers(userType, startDate, endDate)
2548
    return self.recv_getAllUsers()
559 chandransh 2549
 
2981 rajveer 2550
  def send_getAllUsers(self, userType, startDate, endDate):
2551
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2552
    args = getAllUsers_args()
2553
    args.userType = userType
2554
    args.startDate = startDate
2555
    args.endDate = endDate
559 chandransh 2556
    args.write(self._oprot)
2557
    self._oprot.writeMessageEnd()
2558
    self._oprot.trans.flush()
2559
 
2981 rajveer 2560
  def recv_getAllUsers(self, ):
559 chandransh 2561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2562
    if mtype == TMessageType.EXCEPTION:
2563
      x = TApplicationException()
2564
      x.read(self._iprot)
2565
      self._iprot.readMessageEnd()
2566
      raise x
2981 rajveer 2567
    result = getAllUsers_result()
559 chandransh 2568
    result.read(self._iprot)
2569
    self._iprot.readMessageEnd()
3431 rajveer 2570
    if result.success is not None:
559 chandransh 2571
      return result.success
2981 rajveer 2572
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2573
 
2981 rajveer 2574
  def getMyResearchItems(self, userId):
559 chandransh 2575
    """
2981 rajveer 2576
    Returns list of item ids in myresearch for the user
3431 rajveer 2577
 
559 chandransh 2578
    Parameters:
772 rajveer 2579
     - userId
559 chandransh 2580
    """
2981 rajveer 2581
    self.send_getMyResearchItems(userId)
2582
    return self.recv_getMyResearchItems()
559 chandransh 2583
 
2981 rajveer 2584
  def send_getMyResearchItems(self, userId):
2585
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2586
    args = getMyResearchItems_args()
772 rajveer 2587
    args.userId = userId
559 chandransh 2588
    args.write(self._oprot)
2589
    self._oprot.writeMessageEnd()
2590
    self._oprot.trans.flush()
2591
 
2981 rajveer 2592
  def recv_getMyResearchItems(self, ):
559 chandransh 2593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2594
    if mtype == TMessageType.EXCEPTION:
2595
      x = TApplicationException()
2596
      x.read(self._iprot)
2597
      self._iprot.readMessageEnd()
2598
      raise x
2981 rajveer 2599
    result = getMyResearchItems_result()
559 chandransh 2600
    result.read(self._iprot)
2601
    self._iprot.readMessageEnd()
3431 rajveer 2602
    if result.success is not None:
559 chandransh 2603
      return result.success
3431 rajveer 2604
    if result.scx is not None:
559 chandransh 2605
      raise result.scx
2981 rajveer 2606
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2607
 
2981 rajveer 2608
  def updateMyResearch(self, userId, itemId):
559 chandransh 2609
    """
2981 rajveer 2610
    add item to my research for a user
3431 rajveer 2611
 
559 chandransh 2612
    Parameters:
2981 rajveer 2613
     - userId
2614
     - itemId
559 chandransh 2615
    """
2981 rajveer 2616
    self.send_updateMyResearch(userId, itemId)
2617
    return self.recv_updateMyResearch()
559 chandransh 2618
 
2981 rajveer 2619
  def send_updateMyResearch(self, userId, itemId):
2620
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2621
    args = updateMyResearch_args()
2622
    args.userId = userId
2623
    args.itemId = itemId
559 chandransh 2624
    args.write(self._oprot)
2625
    self._oprot.writeMessageEnd()
2626
    self._oprot.trans.flush()
2627
 
2981 rajveer 2628
  def recv_updateMyResearch(self, ):
559 chandransh 2629
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2630
    if mtype == TMessageType.EXCEPTION:
2631
      x = TApplicationException()
2632
      x.read(self._iprot)
2633
      self._iprot.readMessageEnd()
2634
      raise x
2981 rajveer 2635
    result = updateMyResearch_result()
559 chandransh 2636
    result.read(self._iprot)
2637
    self._iprot.readMessageEnd()
3431 rajveer 2638
    if result.success is not None:
2981 rajveer 2639
      return result.success
3431 rajveer 2640
    if result.scx is not None:
2981 rajveer 2641
      raise result.scx
2642
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2643
 
2981 rajveer 2644
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2645
    """
2981 rajveer 2646
    delete item from my research for a user
3431 rajveer 2647
 
1596 ankur.sing 2648
    Parameters:
2981 rajveer 2649
     - userId
2650
     - itemId
1596 ankur.sing 2651
    """
2981 rajveer 2652
    self.send_deleteItemFromMyResearch(userId, itemId)
2653
    self.recv_deleteItemFromMyResearch()
559 chandransh 2654
 
2981 rajveer 2655
  def send_deleteItemFromMyResearch(self, userId, itemId):
2656
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2657
    args = deleteItemFromMyResearch_args()
2658
    args.userId = userId
2659
    args.itemId = itemId
1596 ankur.sing 2660
    args.write(self._oprot)
2661
    self._oprot.writeMessageEnd()
2662
    self._oprot.trans.flush()
2663
 
2981 rajveer 2664
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2666
    if mtype == TMessageType.EXCEPTION:
2667
      x = TApplicationException()
2668
      x.read(self._iprot)
2669
      self._iprot.readMessageEnd()
2670
      raise x
2981 rajveer 2671
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2672
    result.read(self._iprot)
2673
    self._iprot.readMessageEnd()
3431 rajveer 2674
    if result.scx is not None:
2981 rajveer 2675
      raise result.scx
2676
    return
1596 ankur.sing 2677
 
2981 rajveer 2678
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2679
    """
2981 rajveer 2680
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2681
 
1673 ankur.sing 2682
    Parameters:
2981 rajveer 2683
     - userId
1673 ankur.sing 2684
    """
2981 rajveer 2685
    self.send_getBrowseHistoryItems(userId)
2686
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2687
 
2981 rajveer 2688
  def send_getBrowseHistoryItems(self, userId):
2689
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2690
    args = getBrowseHistoryItems_args()
2691
    args.userId = userId
1673 ankur.sing 2692
    args.write(self._oprot)
2693
    self._oprot.writeMessageEnd()
2694
    self._oprot.trans.flush()
2695
 
2981 rajveer 2696
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2698
    if mtype == TMessageType.EXCEPTION:
2699
      x = TApplicationException()
2700
      x.read(self._iprot)
2701
      self._iprot.readMessageEnd()
2702
      raise x
2981 rajveer 2703
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2704
    result.read(self._iprot)
2705
    self._iprot.readMessageEnd()
3431 rajveer 2706
    if result.success is not None:
1673 ankur.sing 2707
      return result.success
3431 rajveer 2708
    if result.scx is not None:
2981 rajveer 2709
      raise result.scx
2710
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2711
 
2981 rajveer 2712
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2713
    """
2981 rajveer 2714
    add item to browse history for a user
3431 rajveer 2715
 
2642 varun.gupt 2716
    Parameters:
2981 rajveer 2717
     - userId
2718
     - itemId
2642 varun.gupt 2719
    """
2981 rajveer 2720
    self.send_updateBrowseHistory(userId, itemId)
2721
    self.recv_updateBrowseHistory()
1673 ankur.sing 2722
 
2981 rajveer 2723
  def send_updateBrowseHistory(self, userId, itemId):
2724
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2725
    args = updateBrowseHistory_args()
2726
    args.userId = userId
2727
    args.itemId = itemId
2642 varun.gupt 2728
    args.write(self._oprot)
2729
    self._oprot.writeMessageEnd()
2730
    self._oprot.trans.flush()
2731
 
2981 rajveer 2732
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2733
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2734
    if mtype == TMessageType.EXCEPTION:
2735
      x = TApplicationException()
2736
      x.read(self._iprot)
2737
      self._iprot.readMessageEnd()
2738
      raise x
2981 rajveer 2739
    result = updateBrowseHistory_result()
2642 varun.gupt 2740
    result.read(self._iprot)
2741
    self._iprot.readMessageEnd()
2742
    return
2743
 
3385 varun.gupt 2744
  def getCartsWithCouponCount(self, couponCode):
2745
    """
2746
    Returns count of Carts with given coupon applied
3431 rajveer 2747
 
3385 varun.gupt 2748
    Parameters:
2749
     - couponCode
2750
    """
2751
    self.send_getCartsWithCouponCount(couponCode)
2752
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2753
 
3385 varun.gupt 2754
  def send_getCartsWithCouponCount(self, couponCode):
2755
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2756
    args = getCartsWithCouponCount_args()
2757
    args.couponCode = couponCode
2758
    args.write(self._oprot)
2759
    self._oprot.writeMessageEnd()
2760
    self._oprot.trans.flush()
2761
 
2762
  def recv_getCartsWithCouponCount(self, ):
2763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2764
    if mtype == TMessageType.EXCEPTION:
2765
      x = TApplicationException()
2766
      x.read(self._iprot)
2767
      self._iprot.readMessageEnd()
2768
      raise x
2769
    result = getCartsWithCouponCount_result()
2770
    result.read(self._iprot)
2771
    self._iprot.readMessageEnd()
3431 rajveer 2772
    if result.success is not None:
3385 varun.gupt 2773
      return result.success
2774
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2775
 
3499 mandeep.dh 2776
  def increaseTrustLevel(self, userId, trustLevelDelta):
2777
    """
2778
    Updates COD trust level of a user
3385 varun.gupt 2779
 
3499 mandeep.dh 2780
    Parameters:
2781
     - userId
2782
     - trustLevelDelta
2783
    """
2784
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2785
 
2786
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2787
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2788
    args = increaseTrustLevel_args()
2789
    args.userId = userId
2790
    args.trustLevelDelta = trustLevelDelta
2791
    args.write(self._oprot)
2792
    self._oprot.writeMessageEnd()
2793
    self._oprot.trans.flush()
5407 amar.kumar 2794
  def getTrustLevel(self, userId):
2795
    """
2796
    Get trust level of a user
2797
 
2798
    Parameters:
2799
     - userId
2800
    """
2801
    self.send_getTrustLevel(userId)
2802
    return self.recv_getTrustLevel()
2803
 
2804
  def send_getTrustLevel(self, userId):
2805
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2806
    args = getTrustLevel_args()
2807
    args.userId = userId
2808
    args.write(self._oprot)
2809
    self._oprot.writeMessageEnd()
2810
    self._oprot.trans.flush()
2811
 
2812
  def recv_getTrustLevel(self, ):
2813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2814
    if mtype == TMessageType.EXCEPTION:
2815
      x = TApplicationException()
2816
      x.read(self._iprot)
2817
      self._iprot.readMessageEnd()
2818
      raise x
2819
    result = getTrustLevel_result()
2820
    result.read(self._iprot)
2821
    self._iprot.readMessageEnd()
2822
    if result.success is not None:
2823
      return result.success
2824
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2825
 
4668 varun.gupt 2826
  def showCODOption(self, cartId, sourceId, pincode):
2827
    """
2828
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2829
 
4668 varun.gupt 2830
    Parameters:
2831
     - cartId
2832
     - sourceId
2833
     - pincode
2834
    """
2835
    self.send_showCODOption(cartId, sourceId, pincode)
2836
    return self.recv_showCODOption()
2837
 
2838
  def send_showCODOption(self, cartId, sourceId, pincode):
2839
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2840
    args = showCODOption_args()
2841
    args.cartId = cartId
2842
    args.sourceId = sourceId
2843
    args.pincode = pincode
2844
    args.write(self._oprot)
2845
    self._oprot.writeMessageEnd()
2846
    self._oprot.trans.flush()
2847
 
2848
  def recv_showCODOption(self, ):
2849
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2850
    if mtype == TMessageType.EXCEPTION:
2851
      x = TApplicationException()
2852
      x.read(self._iprot)
2853
      self._iprot.readMessageEnd()
2854
      raise x
2855
    result = showCODOption_result()
2856
    result.read(self._iprot)
2857
    self._iprot.readMessageEnd()
2858
    if result.success is not None:
2859
      return result.success
2860
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2861
 
5623 anupam.sin 2862
  def getUserEmails(self, startDate, endDate):
2863
    """
2864
    Get email addresses for users activated within a given date range
4668 varun.gupt 2865
 
5623 anupam.sin 2866
    Parameters:
2867
     - startDate
2868
     - endDate
2869
    """
2870
    self.send_getUserEmails(startDate, endDate)
2871
    return self.recv_getUserEmails()
2872
 
2873
  def send_getUserEmails(self, startDate, endDate):
2874
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2875
    args = getUserEmails_args()
2876
    args.startDate = startDate
2877
    args.endDate = endDate
2878
    args.write(self._oprot)
2879
    self._oprot.writeMessageEnd()
2880
    self._oprot.trans.flush()
2881
 
2882
  def recv_getUserEmails(self, ):
2883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2884
    if mtype == TMessageType.EXCEPTION:
2885
      x = TApplicationException()
2886
      x.read(self._iprot)
2887
      self._iprot.readMessageEnd()
2888
      raise x
2889
    result = getUserEmails_result()
2890
    result.read(self._iprot)
2891
    self._iprot.readMessageEnd()
2892
    if result.success is not None:
2893
      return result.success
2894
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2895
 
6903 anupam.sin 2896
  def insureItem(self, itemId, cartId, toInsure):
2897
    """
2898
    Mark a cart lineitem as insured. Returns true/false.
2899
 
2900
    Parameters:
2901
     - itemId
2902
     - cartId
2903
     - toInsure
2904
    """
2905
    self.send_insureItem(itemId, cartId, toInsure)
2906
    return self.recv_insureItem()
2907
 
2908
  def send_insureItem(self, itemId, cartId, toInsure):
2909
    self._oprot.writeMessageBegin('insureItem', TMessageType.CALL, self._seqid)
2910
    args = insureItem_args()
2911
    args.itemId = itemId
2912
    args.cartId = cartId
2913
    args.toInsure = toInsure
2914
    args.write(self._oprot)
2915
    self._oprot.writeMessageEnd()
2916
    self._oprot.trans.flush()
2917
 
2918
  def recv_insureItem(self, ):
2919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2920
    if mtype == TMessageType.EXCEPTION:
2921
      x = TApplicationException()
2922
      x.read(self._iprot)
2923
      self._iprot.readMessageEnd()
2924
      raise x
2925
    result = insureItem_result()
2926
    result.read(self._iprot)
2927
    self._iprot.readMessageEnd()
2928
    if result.success is not None:
2929
      return result.success
2930
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insureItem failed: unknown result");
2931
 
2932
  def cancelInsurance(self, cartId):
2933
    """
2934
    Cancel insurance for all items in the cart
2935
 
2936
    Parameters:
2937
     - cartId
2938
    """
2939
    self.send_cancelInsurance(cartId)
2940
    return self.recv_cancelInsurance()
2941
 
2942
  def send_cancelInsurance(self, cartId):
2943
    self._oprot.writeMessageBegin('cancelInsurance', TMessageType.CALL, self._seqid)
2944
    args = cancelInsurance_args()
2945
    args.cartId = cartId
2946
    args.write(self._oprot)
2947
    self._oprot.writeMessageEnd()
2948
    self._oprot.trans.flush()
2949
 
2950
  def recv_cancelInsurance(self, ):
2951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2952
    if mtype == TMessageType.EXCEPTION:
2953
      x = TApplicationException()
2954
      x.read(self._iprot)
2955
      self._iprot.readMessageEnd()
2956
      raise x
2957
    result = cancelInsurance_result()
2958
    result.read(self._iprot)
2959
    self._iprot.readMessageEnd()
2960
    if result.success is not None:
2961
      return result.success
2962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "cancelInsurance failed: unknown result");
2963
 
2964
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2965
    """
2966
    Stores insurance specific details like date of birth and guardianName
2967
 
2968
    Parameters:
2969
     - addressId
2970
     - dob
2971
     - guardianName
2972
    """
2973
    self.send_storeInsuranceSpecificDetails(addressId, dob, guardianName)
2974
    return self.recv_storeInsuranceSpecificDetails()
2975
 
2976
  def send_storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2977
    self._oprot.writeMessageBegin('storeInsuranceSpecificDetails', TMessageType.CALL, self._seqid)
2978
    args = storeInsuranceSpecificDetails_args()
2979
    args.addressId = addressId
2980
    args.dob = dob
2981
    args.guardianName = guardianName
2982
    args.write(self._oprot)
2983
    self._oprot.writeMessageEnd()
2984
    self._oprot.trans.flush()
2985
 
2986
  def recv_storeInsuranceSpecificDetails(self, ):
2987
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2988
    if mtype == TMessageType.EXCEPTION:
2989
      x = TApplicationException()
2990
      x.read(self._iprot)
2991
      self._iprot.readMessageEnd()
2992
      raise x
2993
    result = storeInsuranceSpecificDetails_result()
2994
    result.read(self._iprot)
2995
    self._iprot.readMessageEnd()
2996
    if result.success is not None:
2997
      return result.success
2998
    raise TApplicationException(TApplicationException.MISSING_RESULT, "storeInsuranceSpecificDetails failed: unknown result");
2999
 
3000
  def isInsuranceDetailPresent(self, addressId):
3001
    """
3002
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
3003
 
3004
    Parameters:
3005
     - addressId
3006
    """
3007
    self.send_isInsuranceDetailPresent(addressId)
3008
    return self.recv_isInsuranceDetailPresent()
3009
 
3010
  def send_isInsuranceDetailPresent(self, addressId):
3011
    self._oprot.writeMessageBegin('isInsuranceDetailPresent', TMessageType.CALL, self._seqid)
3012
    args = isInsuranceDetailPresent_args()
3013
    args.addressId = addressId
3014
    args.write(self._oprot)
3015
    self._oprot.writeMessageEnd()
3016
    self._oprot.trans.flush()
3017
 
3018
  def recv_isInsuranceDetailPresent(self, ):
3019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3020
    if mtype == TMessageType.EXCEPTION:
3021
      x = TApplicationException()
3022
      x.read(self._iprot)
3023
      self._iprot.readMessageEnd()
3024
      raise x
3025
    result = isInsuranceDetailPresent_result()
3026
    result.read(self._iprot)
3027
    self._iprot.readMessageEnd()
3028
    if result.success is not None:
3029
      return result.success
3030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
3031
 
6821 amar.kumar 3032
  def isProductAddedToCart(self, itemId, startDate, endDate):
3033
    """
3034
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 3035
 
6821 amar.kumar 3036
    Parameters:
3037
     - itemId
3038
     - startDate
3039
     - endDate
3040
    """
3041
    self.send_isProductAddedToCart(itemId, startDate, endDate)
3042
    return self.recv_isProductAddedToCart()
3043
 
3044
  def send_isProductAddedToCart(self, itemId, startDate, endDate):
3045
    self._oprot.writeMessageBegin('isProductAddedToCart', TMessageType.CALL, self._seqid)
3046
    args = isProductAddedToCart_args()
3047
    args.itemId = itemId
3048
    args.startDate = startDate
3049
    args.endDate = endDate
3050
    args.write(self._oprot)
3051
    self._oprot.writeMessageEnd()
3052
    self._oprot.trans.flush()
3053
 
3054
  def recv_isProductAddedToCart(self, ):
3055
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3056
    if mtype == TMessageType.EXCEPTION:
3057
      x = TApplicationException()
3058
      x.read(self._iprot)
3059
      self._iprot.readMessageEnd()
3060
      raise x
3061
    result = isProductAddedToCart_result()
3062
    result.read(self._iprot)
3063
    self._iprot.readMessageEnd()
3064
    if result.success is not None:
3065
      return result.success
3066
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isProductAddedToCart failed: unknown result");
3067
 
3068
 
3376 rajveer 3069
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 3070
  def __init__(self, handler):
3376 rajveer 3071
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 3072
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3073
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 3074
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 3075
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 3076
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 3077
    self._processMap["createUser"] = Processor.process_createUser
3078
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 3079
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3080
    self._processMap["userExists"] = Processor.process_userExists
3081
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3082
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3083
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3084
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3085
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3086
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3087
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3088
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3089
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3090
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3091
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3092
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3093
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3094
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3095
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 3096
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 3097
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3098
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3099
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3100
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3101
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3102
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3103
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3104
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3105
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3106
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3107
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3108
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3109
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3110
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3111
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3112
    self._processMap["getCart"] = Processor.process_getCart
3113
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3114
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3115
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3116
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 3117
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 3118
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3119
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3120
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3121
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3122
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3123
    self._processMap["validateCart"] = Processor.process_validateCart
3124
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3125
    self._processMap["checkOut"] = Processor.process_checkOut
3126
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3127
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3128
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2981 rajveer 3129
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3130
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3131
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3132
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3133
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3134
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3135
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 3136
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 3137
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 3138
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
6903 anupam.sin 3139
    self._processMap["insureItem"] = Processor.process_insureItem
3140
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3141
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3142
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
6821 amar.kumar 3143
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
94 ashish 3144
 
3145
  def process(self, iprot, oprot):
3146
    (name, type, seqid) = iprot.readMessageBegin()
3147
    if name not in self._processMap:
3148
      iprot.skip(TType.STRUCT)
3149
      iprot.readMessageEnd()
3150
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3151
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3152
      x.write(oprot)
3153
      oprot.writeMessageEnd()
3154
      oprot.trans.flush()
3155
      return
3156
    else:
3157
      self._processMap[name](self, seqid, iprot, oprot)
3158
    return True
3159
 
559 chandransh 3160
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3161
    args = createAnonymousUser_args()
94 ashish 3162
    args.read(iprot)
3163
    iprot.readMessageEnd()
559 chandransh 3164
    result = createAnonymousUser_result()
94 ashish 3165
    try:
559 chandransh 3166
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3167
    except UserContextException, ucex:
3168
      result.ucex = ucex
3169
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3170
    result.write(oprot)
3171
    oprot.writeMessageEnd()
3172
    oprot.trans.flush()
3173
 
559 chandransh 3174
  def process_getUserById(self, seqid, iprot, oprot):
3175
    args = getUserById_args()
94 ashish 3176
    args.read(iprot)
3177
    iprot.readMessageEnd()
559 chandransh 3178
    result = getUserById_result()
94 ashish 3179
    try:
559 chandransh 3180
      result.success = self._handler.getUserById(args.userId)
3181
    except UserContextException, ucex:
3182
      result.ucex = ucex
3183
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3184
    result.write(oprot)
3185
    oprot.writeMessageEnd()
3186
    oprot.trans.flush()
3187
 
5326 rajveer 3188
  def process_getUserByCartId(self, seqid, iprot, oprot):
3189
    args = getUserByCartId_args()
3190
    args.read(iprot)
3191
    iprot.readMessageEnd()
3192
    result = getUserByCartId_result()
3193
    try:
3194
      result.success = self._handler.getUserByCartId(args.cartId)
3195
    except UserContextException, ucex:
3196
      result.ucex = ucex
3197
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3198
    result.write(oprot)
3199
    oprot.writeMessageEnd()
3200
    oprot.trans.flush()
3201
 
1491 vikas 3202
  def process_getUserByEmail(self, seqid, iprot, oprot):
3203
    args = getUserByEmail_args()
3204
    args.read(iprot)
3205
    iprot.readMessageEnd()
3206
    result = getUserByEmail_result()
3207
    try:
3208
      result.success = self._handler.getUserByEmail(args.email)
3209
    except UserContextException, ucex:
3210
      result.ucex = ucex
3211
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3212
    result.write(oprot)
3213
    oprot.writeMessageEnd()
3214
    oprot.trans.flush()
3215
 
3032 mandeep.dh 3216
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3217
    args = getUserByMobileNumber_args()
3218
    args.read(iprot)
3219
    iprot.readMessageEnd()
3220
    result = getUserByMobileNumber_result()
3221
    try:
3222
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3223
    except UserContextException, ucex:
3224
      result.ucex = ucex
3225
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3226
    result.write(oprot)
3227
    oprot.writeMessageEnd()
3228
    oprot.trans.flush()
3229
 
559 chandransh 3230
  def process_createUser(self, seqid, iprot, oprot):
3231
    args = createUser_args()
94 ashish 3232
    args.read(iprot)
3233
    iprot.readMessageEnd()
559 chandransh 3234
    result = createUser_result()
94 ashish 3235
    try:
559 chandransh 3236
      result.success = self._handler.createUser(args.user)
3237
    except UserContextException, ucex:
3238
      result.ucex = ucex
3239
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3240
    result.write(oprot)
3241
    oprot.writeMessageEnd()
3242
    oprot.trans.flush()
3243
 
559 chandransh 3244
  def process_updateUser(self, seqid, iprot, oprot):
3245
    args = updateUser_args()
94 ashish 3246
    args.read(iprot)
3247
    iprot.readMessageEnd()
559 chandransh 3248
    result = updateUser_result()
94 ashish 3249
    try:
559 chandransh 3250
      result.success = self._handler.updateUser(args.user)
3251
    except UserContextException, ucex:
3252
      result.ucex = ucex
3253
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3254
    result.write(oprot)
3255
    oprot.writeMessageEnd()
3256
    oprot.trans.flush()
3257
 
122 ashish 3258
  def process_authenticateUser(self, seqid, iprot, oprot):
3259
    args = authenticateUser_args()
3260
    args.read(iprot)
3261
    iprot.readMessageEnd()
3262
    result = authenticateUser_result()
3263
    try:
559 chandransh 3264
      result.success = self._handler.authenticateUser(args.email, args.password)
3265
    except AuthenticationException, auex:
3266
      result.auex = auex
122 ashish 3267
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3268
    result.write(oprot)
3269
    oprot.writeMessageEnd()
3270
    oprot.trans.flush()
3271
 
94 ashish 3272
  def process_userExists(self, seqid, iprot, oprot):
3273
    args = userExists_args()
3274
    args.read(iprot)
3275
    iprot.readMessageEnd()
3276
    result = userExists_result()
3277
    try:
3278
      result.success = self._handler.userExists(args.email)
3279
    except UserContextException, ucx:
3280
      result.ucx = ucx
3281
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3282
    result.write(oprot)
3283
    oprot.writeMessageEnd()
3284
    oprot.trans.flush()
3285
 
3286
  def process_addAddressForUser(self, seqid, iprot, oprot):
3287
    args = addAddressForUser_args()
3288
    args.read(iprot)
3289
    iprot.readMessageEnd()
3290
    result = addAddressForUser_result()
3291
    try:
567 rajveer 3292
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3293
    except UserContextException, ucx:
3294
      result.ucx = ucx
3295
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3296
    result.write(oprot)
3297
    oprot.writeMessageEnd()
3298
    oprot.trans.flush()
3299
 
3300
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3301
    args = removeAddressForUser_args()
3302
    args.read(iprot)
3303
    iprot.readMessageEnd()
3304
    result = removeAddressForUser_result()
3305
    try:
3306
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3307
    except UserContextException, ucx:
3308
      result.ucx = ucx
3309
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3310
    result.write(oprot)
3311
    oprot.writeMessageEnd()
3312
    oprot.trans.flush()
3313
 
3314
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3315
    args = setUserAsLoggedIn_args()
3316
    args.read(iprot)
3317
    iprot.readMessageEnd()
3318
    result = setUserAsLoggedIn_result()
3319
    try:
3320
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3321
    except UserContextException, ucx:
3322
      result.ucx = ucx
3323
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3324
    result.write(oprot)
3325
    oprot.writeMessageEnd()
3326
    oprot.trans.flush()
3327
 
3328
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3329
    args = setUserAsLoggedOut_args()
3330
    args.read(iprot)
3331
    iprot.readMessageEnd()
3332
    result = setUserAsLoggedOut_result()
3333
    try:
3334
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3335
    except UserContextException, ucx:
3336
      result.ucx = ucx
3337
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3338
    result.write(oprot)
3339
    oprot.writeMessageEnd()
3340
    oprot.trans.flush()
3341
 
504 rajveer 3342
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3343
    args = setDefaultAddress_args()
3344
    args.read(iprot)
3345
    iprot.readMessageEnd()
3346
    result = setDefaultAddress_result()
3347
    try:
3348
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3349
    except UserContextException, ucx:
3350
      result.ucx = ucx
3351
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3352
    result.write(oprot)
3353
    oprot.writeMessageEnd()
3354
    oprot.trans.flush()
3355
 
94 ashish 3356
  def process_updatePassword(self, seqid, iprot, oprot):
3357
    args = updatePassword_args()
3358
    args.read(iprot)
3359
    iprot.readMessageEnd()
3360
    result = updatePassword_result()
3361
    try:
594 rajveer 3362
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3363
    except UserContextException, ucx:
3364
      result.ucx = ucx
3365
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3366
    result.write(oprot)
3367
    oprot.writeMessageEnd()
3368
    oprot.trans.flush()
3369
 
581 rajveer 3370
  def process_forgotPassword(self, seqid, iprot, oprot):
3371
    args = forgotPassword_args()
3372
    args.read(iprot)
3373
    iprot.readMessageEnd()
3374
    result = forgotPassword_result()
3375
    try:
884 rajveer 3376
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3377
    except UserContextException, ucx:
3378
      result.ucx = ucx
3379
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3380
    result.write(oprot)
3381
    oprot.writeMessageEnd()
3382
    oprot.trans.flush()
3383
 
594 rajveer 3384
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3385
    args = getAllAddressesForUser_args()
3386
    args.read(iprot)
3387
    iprot.readMessageEnd()
3388
    result = getAllAddressesForUser_result()
3389
    try:
3390
      result.success = self._handler.getAllAddressesForUser(args.userId)
3391
    except UserContextException, ucx:
3392
      result.ucx = ucx
3393
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3394
    result.write(oprot)
3395
    oprot.writeMessageEnd()
3396
    oprot.trans.flush()
3397
 
1894 vikas 3398
  def process_getAddressById(self, seqid, iprot, oprot):
3399
    args = getAddressById_args()
3400
    args.read(iprot)
3401
    iprot.readMessageEnd()
3402
    result = getAddressById_result()
3403
    try:
3404
      result.success = self._handler.getAddressById(args.addressId)
3405
    except UserContextException, ucx:
3406
      result.ucx = ucx
3407
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3408
    result.write(oprot)
3409
    oprot.writeMessageEnd()
3410
    oprot.trans.flush()
3411
 
594 rajveer 3412
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3413
    args = getDefaultAddressId_args()
3414
    args.read(iprot)
3415
    iprot.readMessageEnd()
3416
    result = getDefaultAddressId_result()
3417
    try:
3418
      result.success = self._handler.getDefaultAddressId(args.userId)
3419
    except UserContextException, ucx:
3420
      result.ucx = ucx
3421
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3422
    result.write(oprot)
3423
    oprot.writeMessageEnd()
3424
    oprot.trans.flush()
3425
 
785 rajveer 3426
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3427
    args = getDefaultPincode_args()
3428
    args.read(iprot)
3429
    iprot.readMessageEnd()
3430
    result = getDefaultPincode_result()
3431
    try:
3432
      result.success = self._handler.getDefaultPincode(args.userId)
3433
    except UserContextException, ucx:
3434
      result.ucx = ucx
3435
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3436
    result.write(oprot)
3437
    oprot.writeMessageEnd()
3438
    oprot.trans.flush()
3439
 
1274 varun.gupt 3440
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3441
    args = saveUserCommunication_args()
3442
    args.read(iprot)
3443
    iprot.readMessageEnd()
3444
    result = saveUserCommunication_result()
3445
    try:
3446
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3447
    except UserCommunicationException, ucx:
3448
      result.ucx = ucx
3449
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3450
    result.write(oprot)
3451
    oprot.writeMessageEnd()
3452
    oprot.trans.flush()
3453
 
1590 varun.gupt 3454
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3455
    args = getUserCommunicationById_args()
3456
    args.read(iprot)
3457
    iprot.readMessageEnd()
3458
    result = getUserCommunicationById_result()
3459
    try:
3460
      result.success = self._handler.getUserCommunicationById(args.id)
3461
    except UserCommunicationException, ucx:
3462
      result.ucx = ucx
3463
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3464
    result.write(oprot)
3465
    oprot.writeMessageEnd()
3466
    oprot.trans.flush()
3467
 
3468
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3469
    args = getUserCommunicationByUser_args()
3470
    args.read(iprot)
3471
    iprot.readMessageEnd()
3472
    result = getUserCommunicationByUser_result()
3473
    try:
3474
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3475
    except UserCommunicationException, ucx:
3476
      result.ucx = ucx
3477
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3478
    result.write(oprot)
3479
    oprot.writeMessageEnd()
3480
    oprot.trans.flush()
3481
 
3482
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3483
    args = getAllUserCommunications_args()
3484
    args.read(iprot)
3485
    iprot.readMessageEnd()
3486
    result = getAllUserCommunications_result()
3487
    try:
3488
      result.success = self._handler.getAllUserCommunications()
3489
    except UserCommunicationException, ucx:
3490
      result.ucx = ucx
3491
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3492
    result.write(oprot)
3493
    oprot.writeMessageEnd()
3494
    oprot.trans.flush()
3495
 
5407 amar.kumar 3496
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3497
    args = removeUserCommunication_args()
3498
    args.read(iprot)
3499
    iprot.readMessageEnd()
3500
    result = removeUserCommunication_result()
3501
    try:
3502
      self._handler.removeUserCommunication(args.id)
3503
    except UserCommunicationException, ucx:
3504
      result.ucx = ucx
3505
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3506
    result.write(oprot)
3507
    oprot.writeMessageEnd()
3508
    oprot.trans.flush()
3509
 
1845 vikas 3510
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3511
    args = createMasterAffiliate_args()
3512
    args.read(iprot)
3513
    iprot.readMessageEnd()
3514
    result = createMasterAffiliate_result()
3515
    try:
1859 vikas 3516
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3517
    except UserAffiliateException, utx:
1845 vikas 3518
      result.utx = utx
3519
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3520
    result.write(oprot)
3521
    oprot.writeMessageEnd()
3522
    oprot.trans.flush()
3523
 
1899 vikas 3524
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3525
    args = getAllMasterAffiliates_args()
3526
    args.read(iprot)
3527
    iprot.readMessageEnd()
3528
    result = getAllMasterAffiliates_result()
3529
    try:
3530
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3531
    except UserAffiliateException, utx:
1899 vikas 3532
      result.utx = utx
3533
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3534
    result.write(oprot)
3535
    oprot.writeMessageEnd()
3536
    oprot.trans.flush()
3537
 
1845 vikas 3538
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3539
    args = getMasterAffiliateById_args()
3540
    args.read(iprot)
3541
    iprot.readMessageEnd()
3542
    result = getMasterAffiliateById_result()
3543
    try:
3544
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3545
    except UserAffiliateException, utx:
1845 vikas 3546
      result.utx = utx
3547
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3548
    result.write(oprot)
3549
    oprot.writeMessageEnd()
3550
    oprot.trans.flush()
3551
 
3552
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3553
    args = getMasterAffiliateByName_args()
3554
    args.read(iprot)
3555
    iprot.readMessageEnd()
3556
    result = getMasterAffiliateByName_result()
3557
    try:
3558
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3559
    except UserAffiliateException, utx:
1845 vikas 3560
      result.utx = utx
3561
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3562
    result.write(oprot)
3563
    oprot.writeMessageEnd()
3564
    oprot.trans.flush()
3565
 
3566
  def process_createAffiliate(self, seqid, iprot, oprot):
3567
    args = createAffiliate_args()
3568
    args.read(iprot)
3569
    iprot.readMessageEnd()
3570
    result = createAffiliate_result()
3571
    try:
1859 vikas 3572
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3573
    except UserAffiliateException, utx:
1845 vikas 3574
      result.utx = utx
3575
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3576
    result.write(oprot)
3577
    oprot.writeMessageEnd()
3578
    oprot.trans.flush()
3579
 
3580
  def process_getAffiliateById(self, seqid, iprot, oprot):
3581
    args = getAffiliateById_args()
3582
    args.read(iprot)
3583
    iprot.readMessageEnd()
3584
    result = getAffiliateById_result()
3585
    try:
3586
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3587
    except UserAffiliateException, utx:
1845 vikas 3588
      result.utx = utx
3589
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3590
    result.write(oprot)
3591
    oprot.writeMessageEnd()
3592
    oprot.trans.flush()
3593
 
3594
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3595
    args = getAffiliateByName_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = getAffiliateByName_result()
3599
    try:
3600
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3601
    except UserAffiliateException, utx:
1845 vikas 3602
      result.utx = utx
3603
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3604
    result.write(oprot)
3605
    oprot.writeMessageEnd()
3606
    oprot.trans.flush()
3607
 
3608
  def process_getTrackerById(self, seqid, iprot, oprot):
3609
    args = getTrackerById_args()
3610
    args.read(iprot)
3611
    iprot.readMessageEnd()
3612
    result = getTrackerById_result()
3613
    try:
1996 vikas 3614
      result.success = self._handler.getTrackerById(args.id)
3615
    except UserAffiliateException, utx:
1845 vikas 3616
      result.utx = utx
3617
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3618
    result.write(oprot)
3619
    oprot.writeMessageEnd()
3620
    oprot.trans.flush()
3621
 
1996 vikas 3622
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3623
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3624
    args.read(iprot)
3625
    iprot.readMessageEnd()
1996 vikas 3626
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3627
    try:
1996 vikas 3628
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3629
    except UserAffiliateException, utx:
1845 vikas 3630
      result.utx = utx
1996 vikas 3631
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3632
    result.write(oprot)
3633
    oprot.writeMessageEnd()
3634
    oprot.trans.flush()
3635
 
3636
  def process_addTrackLog(self, seqid, iprot, oprot):
3637
    args = addTrackLog_args()
3638
    args.read(iprot)
3639
    iprot.readMessageEnd()
3640
    result = addTrackLog_result()
3641
    try:
1996 vikas 3642
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3643
    except UserAffiliateException, utx:
1845 vikas 3644
      result.utx = utx
3645
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3646
    result.write(oprot)
3647
    oprot.writeMessageEnd()
3648
    oprot.trans.flush()
3649
 
3650
  def process_getTrackLogById(self, seqid, iprot, oprot):
3651
    args = getTrackLogById_args()
3652
    args.read(iprot)
3653
    iprot.readMessageEnd()
3654
    result = getTrackLogById_result()
3655
    try:
3656
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3657
    except UserAffiliateException, utx:
1845 vikas 3658
      result.utx = utx
3659
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3660
    result.write(oprot)
3661
    oprot.writeMessageEnd()
3662
    oprot.trans.flush()
3663
 
1996 vikas 3664
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3665
    args = getTrackLogsByAffiliate_args()
1845 vikas 3666
    args.read(iprot)
3667
    iprot.readMessageEnd()
1996 vikas 3668
    result = getTrackLogsByAffiliate_result()
1845 vikas 3669
    try:
3293 vikas 3670
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3671
    except UserAffiliateException, utx:
1845 vikas 3672
      result.utx = utx
1996 vikas 3673
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3674
    result.write(oprot)
3675
    oprot.writeMessageEnd()
3676
    oprot.trans.flush()
3677
 
3678
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3679
    args = getTrackLogsByUser_args()
3680
    args.read(iprot)
3681
    iprot.readMessageEnd()
3682
    result = getTrackLogsByUser_result()
3683
    try:
3684
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3685
    except UserAffiliateException, utx:
1845 vikas 3686
      result.utx = utx
3687
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3688
    result.write(oprot)
3689
    oprot.writeMessageEnd()
3690
    oprot.trans.flush()
3691
 
3692
  def process_getTrackLogs(self, seqid, iprot, oprot):
3693
    args = getTrackLogs_args()
3694
    args.read(iprot)
3695
    iprot.readMessageEnd()
3696
    result = getTrackLogs_result()
3697
    try:
1996 vikas 3698
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3699
    except UserAffiliateException, utx:
1845 vikas 3700
      result.utx = utx
3701
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3702
    result.write(oprot)
3703
    oprot.writeMessageEnd()
3704
    oprot.trans.flush()
3705
 
559 chandransh 3706
  def process_getCurrentCart(self, seqid, iprot, oprot):
3707
    args = getCurrentCart_args()
94 ashish 3708
    args.read(iprot)
3709
    iprot.readMessageEnd()
559 chandransh 3710
    result = getCurrentCart_result()
94 ashish 3711
    try:
559 chandransh 3712
      result.success = self._handler.getCurrentCart(args.userId)
3713
    except ShoppingCartException, scx:
3714
      result.scx = scx
3715
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3716
    result.write(oprot)
3717
    oprot.writeMessageEnd()
3718
    oprot.trans.flush()
3719
 
559 chandransh 3720
  def process_getCart(self, seqid, iprot, oprot):
3721
    args = getCart_args()
94 ashish 3722
    args.read(iprot)
3723
    iprot.readMessageEnd()
559 chandransh 3724
    result = getCart_result()
94 ashish 3725
    try:
559 chandransh 3726
      result.success = self._handler.getCart(args.cartId)
3727
    except ShoppingCartException, scx:
3728
      result.scx = scx
3729
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3730
    result.write(oprot)
3731
    oprot.writeMessageEnd()
3732
    oprot.trans.flush()
3733
 
559 chandransh 3734
  def process_getCartsByTime(self, seqid, iprot, oprot):
3735
    args = getCartsByTime_args()
94 ashish 3736
    args.read(iprot)
3737
    iprot.readMessageEnd()
559 chandransh 3738
    result = getCartsByTime_result()
94 ashish 3739
    try:
559 chandransh 3740
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3741
    except ShoppingCartException, scx:
3742
      result.scx = scx
3743
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3744
    result.write(oprot)
3745
    oprot.writeMessageEnd()
3746
    oprot.trans.flush()
3747
 
559 chandransh 3748
  def process_addItemToCart(self, seqid, iprot, oprot):
3749
    args = addItemToCart_args()
130 ashish 3750
    args.read(iprot)
3751
    iprot.readMessageEnd()
559 chandransh 3752
    result = addItemToCart_result()
130 ashish 3753
    try:
3557 rajveer 3754
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3755
    except ShoppingCartException, scx:
3756
      result.scx = scx
3757
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3758
    result.write(oprot)
3759
    oprot.writeMessageEnd()
3760
    oprot.trans.flush()
3761
 
559 chandransh 3762
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3763
    args = deleteItemFromCart_args()
3764
    args.read(iprot)
3765
    iprot.readMessageEnd()
3766
    result = deleteItemFromCart_result()
3767
    try:
3768
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3769
    except ShoppingCartException, scx:
3770
      result.scx = scx
3771
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3772
    result.write(oprot)
3773
    oprot.writeMessageEnd()
3774
    oprot.trans.flush()
130 ashish 3775
 
559 chandransh 3776
  def process_addAddressToCart(self, seqid, iprot, oprot):
3777
    args = addAddressToCart_args()
3778
    args.read(iprot)
3779
    iprot.readMessageEnd()
3780
    result = addAddressToCart_result()
575 chandransh 3781
    try:
3782
      self._handler.addAddressToCart(args.cartId, args.addressId)
3783
    except ShoppingCartException, scx:
3784
      result.scx = scx
559 chandransh 3785
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3786
    result.write(oprot)
3787
    oprot.writeMessageEnd()
3788
    oprot.trans.flush()
3789
 
5553 rajveer 3790
  def process_addStoreToCart(self, seqid, iprot, oprot):
3791
    args = addStoreToCart_args()
3792
    args.read(iprot)
3793
    iprot.readMessageEnd()
3794
    result = addStoreToCart_result()
3795
    try:
3796
      self._handler.addStoreToCart(args.cartId, args.storeId)
3797
    except ShoppingCartException, scx:
3798
      result.scx = scx
3799
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3800
    result.write(oprot)
3801
    oprot.writeMessageEnd()
3802
    oprot.trans.flush()
3803
 
1976 varun.gupt 3804
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3805
    args = applyCouponToCart_args()
3806
    args.read(iprot)
3807
    iprot.readMessageEnd()
3808
    result = applyCouponToCart_result()
3809
    try:
3810
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3811
    except ShoppingCartException, scx:
3812
      result.scx = scx
3813
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3814
    result.write(oprot)
3815
    oprot.writeMessageEnd()
3816
    oprot.trans.flush()
3817
 
3818
  def process_removeCoupon(self, seqid, iprot, oprot):
3819
    args = removeCoupon_args()
3820
    args.read(iprot)
3821
    iprot.readMessageEnd()
3822
    result = removeCoupon_result()
3823
    try:
3824
      self._handler.removeCoupon(args.cartId)
3825
    except ShoppingCartException, scx:
3826
      result.scx = scx
3827
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3828
    result.write(oprot)
3829
    oprot.writeMessageEnd()
3830
    oprot.trans.flush()
3831
 
3554 varun.gupt 3832
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3833
    args = deleteDiscountsFromCart_args()
3834
    args.read(iprot)
3835
    iprot.readMessageEnd()
3836
    result = deleteDiscountsFromCart_result()
3837
    try:
3838
      self._handler.deleteDiscountsFromCart(args.cartId)
3839
    except ShoppingCartException, scx:
3840
      result.scx = scx
3841
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3842
    result.write(oprot)
3843
    oprot.writeMessageEnd()
3844
    oprot.trans.flush()
3845
 
3846
  def process_saveDiscounts(self, seqid, iprot, oprot):
3847
    args = saveDiscounts_args()
3848
    args.read(iprot)
3849
    iprot.readMessageEnd()
3850
    result = saveDiscounts_result()
3851
    try:
3852
      self._handler.saveDiscounts(args.discounts)
3853
    except ShoppingCartException, scx:
3854
      result.scx = scx
3855
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3856
    result.write(oprot)
3857
    oprot.writeMessageEnd()
3858
    oprot.trans.flush()
3859
 
690 chandransh 3860
  def process_createOrders(self, seqid, iprot, oprot):
3861
    args = createOrders_args()
559 chandransh 3862
    args.read(iprot)
3863
    iprot.readMessageEnd()
690 chandransh 3864
    result = createOrders_result()
559 chandransh 3865
    try:
6389 rajveer 3866
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId)
559 chandransh 3867
    except ShoppingCartException, scx:
3868
      result.scx = scx
690 chandransh 3869
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3870
    result.write(oprot)
3871
    oprot.writeMessageEnd()
3872
    oprot.trans.flush()
3873
 
3874
  def process_validateCart(self, seqid, iprot, oprot):
3875
    args = validateCart_args()
3876
    args.read(iprot)
3877
    iprot.readMessageEnd()
3878
    result = validateCart_result()
575 chandransh 3879
    try:
3557 rajveer 3880
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3881
    except ShoppingCartException, scex:
3882
      result.scex = scex
559 chandransh 3883
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3884
    result.write(oprot)
3885
    oprot.writeMessageEnd()
3886
    oprot.trans.flush()
3887
 
690 chandransh 3888
  def process_mergeCart(self, seqid, iprot, oprot):
3889
    args = mergeCart_args()
575 chandransh 3890
    args.read(iprot)
3891
    iprot.readMessageEnd()
690 chandransh 3892
    result = mergeCart_result()
3893
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3894
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3895
    result.write(oprot)
3896
    oprot.writeMessageEnd()
3897
    oprot.trans.flush()
3898
 
3899
  def process_checkOut(self, seqid, iprot, oprot):
3900
    args = checkOut_args()
3901
    args.read(iprot)
3902
    iprot.readMessageEnd()
3903
    result = checkOut_result()
575 chandransh 3904
    try:
690 chandransh 3905
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3906
    except ShoppingCartException, scex:
3907
      result.scex = scex
690 chandransh 3908
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3909
    result.write(oprot)
3910
    oprot.writeMessageEnd()
3911
    oprot.trans.flush()
3912
 
690 chandransh 3913
  def process_resetCart(self, seqid, iprot, oprot):
3914
    args = resetCart_args()
559 chandransh 3915
    args.read(iprot)
3916
    iprot.readMessageEnd()
690 chandransh 3917
    result = resetCart_result()
3918
    try:
3919
      result.success = self._handler.resetCart(args.cartId, args.items)
3920
    except ShoppingCartException, scex:
3921
      result.scex = scex
3922
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3923
    result.write(oprot)
3924
    oprot.writeMessageEnd()
3925
    oprot.trans.flush()
3926
 
2981 rajveer 3927
  def process_getUserCount(self, seqid, iprot, oprot):
3928
    args = getUserCount_args()
559 chandransh 3929
    args.read(iprot)
3930
    iprot.readMessageEnd()
2981 rajveer 3931
    result = getUserCount_result()
3932
    result.success = self._handler.getUserCount(args.userType)
3933
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3934
    result.write(oprot)
3935
    oprot.writeMessageEnd()
3936
    oprot.trans.flush()
3937
 
2981 rajveer 3938
  def process_getAllUsers(self, seqid, iprot, oprot):
3939
    args = getAllUsers_args()
559 chandransh 3940
    args.read(iprot)
3941
    iprot.readMessageEnd()
2981 rajveer 3942
    result = getAllUsers_result()
3943
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3944
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3945
    result.write(oprot)
3946
    oprot.writeMessageEnd()
3947
    oprot.trans.flush()
3948
 
2981 rajveer 3949
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3950
    args = getMyResearchItems_args()
559 chandransh 3951
    args.read(iprot)
3952
    iprot.readMessageEnd()
2981 rajveer 3953
    result = getMyResearchItems_result()
559 chandransh 3954
    try:
2981 rajveer 3955
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3956
    except WidgetException, scx:
3957
      result.scx = scx
2981 rajveer 3958
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3959
    result.write(oprot)
3960
    oprot.writeMessageEnd()
3961
    oprot.trans.flush()
3962
 
2981 rajveer 3963
  def process_updateMyResearch(self, seqid, iprot, oprot):
3964
    args = updateMyResearch_args()
772 rajveer 3965
    args.read(iprot)
3966
    iprot.readMessageEnd()
2981 rajveer 3967
    result = updateMyResearch_result()
3968
    try:
3969
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3970
    except WidgetException, scx:
3971
      result.scx = scx
3972
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3973
    result.write(oprot)
3974
    oprot.writeMessageEnd()
3975
    oprot.trans.flush()
559 chandransh 3976
 
2981 rajveer 3977
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3978
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3979
    args.read(iprot)
3980
    iprot.readMessageEnd()
2981 rajveer 3981
    result = deleteItemFromMyResearch_result()
3982
    try:
3983
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3984
    except WidgetException, scx:
3985
      result.scx = scx
3986
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3987
    result.write(oprot)
3988
    oprot.writeMessageEnd()
3989
    oprot.trans.flush()
772 rajveer 3990
 
2981 rajveer 3991
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3992
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3993
    args.read(iprot)
3994
    iprot.readMessageEnd()
2981 rajveer 3995
    result = getBrowseHistoryItems_result()
3996
    try:
3997
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3998
    except WidgetException, scx:
3999
      result.scx = scx
4000
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 4001
    result.write(oprot)
4002
    oprot.writeMessageEnd()
4003
    oprot.trans.flush()
1596 ankur.sing 4004
 
2981 rajveer 4005
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4006
    args = updateBrowseHistory_args()
2642 varun.gupt 4007
    args.read(iprot)
4008
    iprot.readMessageEnd()
2981 rajveer 4009
    result = updateBrowseHistory_result()
4010
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4011
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4012
    result.write(oprot)
4013
    oprot.writeMessageEnd()
4014
    oprot.trans.flush()
1673 ankur.sing 4015
 
3385 varun.gupt 4016
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4017
    args = getCartsWithCouponCount_args()
4018
    args.read(iprot)
4019
    iprot.readMessageEnd()
4020
    result = getCartsWithCouponCount_result()
4021
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4022
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4023
    result.write(oprot)
4024
    oprot.writeMessageEnd()
4025
    oprot.trans.flush()
2642 varun.gupt 4026
 
3499 mandeep.dh 4027
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4028
    args = increaseTrustLevel_args()
4029
    args.read(iprot)
4030
    iprot.readMessageEnd()
4031
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4032
    return
3385 varun.gupt 4033
 
5407 amar.kumar 4034
  def process_getTrustLevel(self, seqid, iprot, oprot):
4035
    args = getTrustLevel_args()
4036
    args.read(iprot)
4037
    iprot.readMessageEnd()
4038
    result = getTrustLevel_result()
4039
    result.success = self._handler.getTrustLevel(args.userId)
4040
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
4041
    result.write(oprot)
4042
    oprot.writeMessageEnd()
4043
    oprot.trans.flush()
4044
 
4668 varun.gupt 4045
  def process_showCODOption(self, seqid, iprot, oprot):
4046
    args = showCODOption_args()
4047
    args.read(iprot)
4048
    iprot.readMessageEnd()
4049
    result = showCODOption_result()
4050
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
4051
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
4052
    result.write(oprot)
4053
    oprot.writeMessageEnd()
4054
    oprot.trans.flush()
3499 mandeep.dh 4055
 
5623 anupam.sin 4056
  def process_getUserEmails(self, seqid, iprot, oprot):
4057
    args = getUserEmails_args()
4058
    args.read(iprot)
4059
    iprot.readMessageEnd()
4060
    result = getUserEmails_result()
4061
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
4062
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
4063
    result.write(oprot)
4064
    oprot.writeMessageEnd()
4065
    oprot.trans.flush()
4668 varun.gupt 4066
 
6903 anupam.sin 4067
  def process_insureItem(self, seqid, iprot, oprot):
4068
    args = insureItem_args()
4069
    args.read(iprot)
4070
    iprot.readMessageEnd()
4071
    result = insureItem_result()
4072
    result.success = self._handler.insureItem(args.itemId, args.cartId, args.toInsure)
4073
    oprot.writeMessageBegin("insureItem", TMessageType.REPLY, seqid)
4074
    result.write(oprot)
4075
    oprot.writeMessageEnd()
4076
    oprot.trans.flush()
4077
 
4078
  def process_cancelInsurance(self, seqid, iprot, oprot):
4079
    args = cancelInsurance_args()
4080
    args.read(iprot)
4081
    iprot.readMessageEnd()
4082
    result = cancelInsurance_result()
4083
    result.success = self._handler.cancelInsurance(args.cartId)
4084
    oprot.writeMessageBegin("cancelInsurance", TMessageType.REPLY, seqid)
4085
    result.write(oprot)
4086
    oprot.writeMessageEnd()
4087
    oprot.trans.flush()
4088
 
4089
  def process_storeInsuranceSpecificDetails(self, seqid, iprot, oprot):
4090
    args = storeInsuranceSpecificDetails_args()
4091
    args.read(iprot)
4092
    iprot.readMessageEnd()
4093
    result = storeInsuranceSpecificDetails_result()
4094
    result.success = self._handler.storeInsuranceSpecificDetails(args.addressId, args.dob, args.guardianName)
4095
    oprot.writeMessageBegin("storeInsuranceSpecificDetails", TMessageType.REPLY, seqid)
4096
    result.write(oprot)
4097
    oprot.writeMessageEnd()
4098
    oprot.trans.flush()
4099
 
4100
  def process_isInsuranceDetailPresent(self, seqid, iprot, oprot):
4101
    args = isInsuranceDetailPresent_args()
4102
    args.read(iprot)
4103
    iprot.readMessageEnd()
4104
    result = isInsuranceDetailPresent_result()
4105
    result.success = self._handler.isInsuranceDetailPresent(args.addressId)
4106
    oprot.writeMessageBegin("isInsuranceDetailPresent", TMessageType.REPLY, seqid)
4107
    result.write(oprot)
4108
    oprot.writeMessageEnd()
4109
    oprot.trans.flush()
4110
 
6821 amar.kumar 4111
  def process_isProductAddedToCart(self, seqid, iprot, oprot):
4112
    args = isProductAddedToCart_args()
4113
    args.read(iprot)
4114
    iprot.readMessageEnd()
4115
    result = isProductAddedToCart_result()
4116
    result.success = self._handler.isProductAddedToCart(args.itemId, args.startDate, args.endDate)
4117
    oprot.writeMessageBegin("isProductAddedToCart", TMessageType.REPLY, seqid)
4118
    result.write(oprot)
4119
    oprot.writeMessageEnd()
4120
    oprot.trans.flush()
5623 anupam.sin 4121
 
6821 amar.kumar 4122
 
94 ashish 4123
# HELPER FUNCTIONS AND STRUCTURES
4124
 
559 chandransh 4125
class createAnonymousUser_args:
94 ashish 4126
  """
4127
  Attributes:
559 chandransh 4128
   - jsessionId
94 ashish 4129
  """
4130
 
4131
  thrift_spec = (
4132
    None, # 0
559 chandransh 4133
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4134
  )
4135
 
559 chandransh 4136
  def __init__(self, jsessionId=None,):
4137
    self.jsessionId = jsessionId
94 ashish 4138
 
4139
  def read(self, iprot):
4140
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4141
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4142
      return
4143
    iprot.readStructBegin()
4144
    while True:
4145
      (fname, ftype, fid) = iprot.readFieldBegin()
4146
      if ftype == TType.STOP:
4147
        break
4148
      if fid == 1:
559 chandransh 4149
        if ftype == TType.STRING:
4150
          self.jsessionId = iprot.readString();
94 ashish 4151
        else:
4152
          iprot.skip(ftype)
4153
      else:
4154
        iprot.skip(ftype)
4155
      iprot.readFieldEnd()
4156
    iprot.readStructEnd()
4157
 
4158
  def write(self, oprot):
4159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4161
      return
559 chandransh 4162
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4163
    if self.jsessionId is not None:
559 chandransh 4164
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4165
      oprot.writeString(self.jsessionId)
94 ashish 4166
      oprot.writeFieldEnd()
4167
    oprot.writeFieldStop()
4168
    oprot.writeStructEnd()
4169
 
3431 rajveer 4170
  def validate(self):
4171
    return
4172
 
4173
 
94 ashish 4174
  def __repr__(self):
4175
    L = ['%s=%r' % (key, value)
4176
      for key, value in self.__dict__.iteritems()]
4177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4178
 
4179
  def __eq__(self, other):
4180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4181
 
4182
  def __ne__(self, other):
4183
    return not (self == other)
4184
 
559 chandransh 4185
class createAnonymousUser_result:
94 ashish 4186
  """
4187
  Attributes:
4188
   - success
559 chandransh 4189
   - ucex
94 ashish 4190
  """
4191
 
4192
  thrift_spec = (
559 chandransh 4193
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4194
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4195
  )
4196
 
559 chandransh 4197
  def __init__(self, success=None, ucex=None,):
94 ashish 4198
    self.success = success
559 chandransh 4199
    self.ucex = ucex
94 ashish 4200
 
4201
  def read(self, iprot):
4202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4204
      return
4205
    iprot.readStructBegin()
4206
    while True:
4207
      (fname, ftype, fid) = iprot.readFieldBegin()
4208
      if ftype == TType.STOP:
4209
        break
4210
      if fid == 0:
4211
        if ftype == TType.STRUCT:
559 chandransh 4212
          self.success = User()
94 ashish 4213
          self.success.read(iprot)
4214
        else:
4215
          iprot.skip(ftype)
4216
      elif fid == 1:
4217
        if ftype == TType.STRUCT:
559 chandransh 4218
          self.ucex = UserContextException()
4219
          self.ucex.read(iprot)
94 ashish 4220
        else:
4221
          iprot.skip(ftype)
4222
      else:
4223
        iprot.skip(ftype)
4224
      iprot.readFieldEnd()
4225
    iprot.readStructEnd()
4226
 
4227
  def write(self, oprot):
4228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4230
      return
559 chandransh 4231
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4232
    if self.success is not None:
94 ashish 4233
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4234
      self.success.write(oprot)
4235
      oprot.writeFieldEnd()
3431 rajveer 4236
    if self.ucex is not None:
559 chandransh 4237
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4238
      self.ucex.write(oprot)
94 ashish 4239
      oprot.writeFieldEnd()
4240
    oprot.writeFieldStop()
4241
    oprot.writeStructEnd()
4242
 
3431 rajveer 4243
  def validate(self):
4244
    return
4245
 
4246
 
94 ashish 4247
  def __repr__(self):
4248
    L = ['%s=%r' % (key, value)
4249
      for key, value in self.__dict__.iteritems()]
4250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4251
 
4252
  def __eq__(self, other):
4253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4254
 
4255
  def __ne__(self, other):
4256
    return not (self == other)
4257
 
559 chandransh 4258
class getUserById_args:
94 ashish 4259
  """
4260
  Attributes:
4261
   - userId
4262
  """
4263
 
4264
  thrift_spec = (
4265
    None, # 0
4266
    (1, TType.I64, 'userId', None, None, ), # 1
4267
  )
4268
 
559 chandransh 4269
  def __init__(self, userId=None,):
94 ashish 4270
    self.userId = userId
4271
 
4272
  def read(self, iprot):
4273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4275
      return
4276
    iprot.readStructBegin()
4277
    while True:
4278
      (fname, ftype, fid) = iprot.readFieldBegin()
4279
      if ftype == TType.STOP:
4280
        break
4281
      if fid == 1:
4282
        if ftype == TType.I64:
4283
          self.userId = iprot.readI64();
4284
        else:
4285
          iprot.skip(ftype)
4286
      else:
4287
        iprot.skip(ftype)
4288
      iprot.readFieldEnd()
4289
    iprot.readStructEnd()
4290
 
4291
  def write(self, oprot):
4292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4294
      return
559 chandransh 4295
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4296
    if self.userId is not None:
94 ashish 4297
      oprot.writeFieldBegin('userId', TType.I64, 1)
4298
      oprot.writeI64(self.userId)
4299
      oprot.writeFieldEnd()
4300
    oprot.writeFieldStop()
4301
    oprot.writeStructEnd()
4302
 
3431 rajveer 4303
  def validate(self):
4304
    return
4305
 
4306
 
94 ashish 4307
  def __repr__(self):
4308
    L = ['%s=%r' % (key, value)
4309
      for key, value in self.__dict__.iteritems()]
4310
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4311
 
4312
  def __eq__(self, other):
4313
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4314
 
4315
  def __ne__(self, other):
4316
    return not (self == other)
4317
 
559 chandransh 4318
class getUserById_result:
94 ashish 4319
  """
4320
  Attributes:
4321
   - success
559 chandransh 4322
   - ucex
94 ashish 4323
  """
4324
 
4325
  thrift_spec = (
559 chandransh 4326
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4327
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4328
  )
4329
 
559 chandransh 4330
  def __init__(self, success=None, ucex=None,):
94 ashish 4331
    self.success = success
559 chandransh 4332
    self.ucex = ucex
94 ashish 4333
 
4334
  def read(self, iprot):
4335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4337
      return
4338
    iprot.readStructBegin()
4339
    while True:
4340
      (fname, ftype, fid) = iprot.readFieldBegin()
4341
      if ftype == TType.STOP:
4342
        break
4343
      if fid == 0:
4344
        if ftype == TType.STRUCT:
559 chandransh 4345
          self.success = User()
94 ashish 4346
          self.success.read(iprot)
4347
        else:
4348
          iprot.skip(ftype)
4349
      elif fid == 1:
4350
        if ftype == TType.STRUCT:
559 chandransh 4351
          self.ucex = UserContextException()
4352
          self.ucex.read(iprot)
94 ashish 4353
        else:
4354
          iprot.skip(ftype)
4355
      else:
4356
        iprot.skip(ftype)
4357
      iprot.readFieldEnd()
4358
    iprot.readStructEnd()
4359
 
4360
  def write(self, oprot):
4361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4363
      return
559 chandransh 4364
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4365
    if self.success is not None:
94 ashish 4366
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4367
      self.success.write(oprot)
4368
      oprot.writeFieldEnd()
3431 rajveer 4369
    if self.ucex is not None:
559 chandransh 4370
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4371
      self.ucex.write(oprot)
94 ashish 4372
      oprot.writeFieldEnd()
4373
    oprot.writeFieldStop()
4374
    oprot.writeStructEnd()
4375
 
3431 rajveer 4376
  def validate(self):
4377
    return
4378
 
4379
 
94 ashish 4380
  def __repr__(self):
4381
    L = ['%s=%r' % (key, value)
4382
      for key, value in self.__dict__.iteritems()]
4383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4384
 
4385
  def __eq__(self, other):
4386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4387
 
4388
  def __ne__(self, other):
4389
    return not (self == other)
4390
 
5326 rajveer 4391
class getUserByCartId_args:
1491 vikas 4392
  """
4393
  Attributes:
5326 rajveer 4394
   - cartId
1491 vikas 4395
  """
4396
 
4397
  thrift_spec = (
4398
    None, # 0
5326 rajveer 4399
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4400
  )
4401
 
5326 rajveer 4402
  def __init__(self, cartId=None,):
4403
    self.cartId = cartId
1491 vikas 4404
 
4405
  def read(self, iprot):
4406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4408
      return
4409
    iprot.readStructBegin()
4410
    while True:
4411
      (fname, ftype, fid) = iprot.readFieldBegin()
4412
      if ftype == TType.STOP:
4413
        break
4414
      if fid == 1:
5326 rajveer 4415
        if ftype == TType.I64:
4416
          self.cartId = iprot.readI64();
1491 vikas 4417
        else:
4418
          iprot.skip(ftype)
4419
      else:
4420
        iprot.skip(ftype)
4421
      iprot.readFieldEnd()
4422
    iprot.readStructEnd()
4423
 
4424
  def write(self, oprot):
4425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4427
      return
5326 rajveer 4428
    oprot.writeStructBegin('getUserByCartId_args')
4429
    if self.cartId is not None:
4430
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4431
      oprot.writeI64(self.cartId)
1491 vikas 4432
      oprot.writeFieldEnd()
4433
    oprot.writeFieldStop()
4434
    oprot.writeStructEnd()
4435
 
3431 rajveer 4436
  def validate(self):
4437
    return
4438
 
4439
 
1491 vikas 4440
  def __repr__(self):
4441
    L = ['%s=%r' % (key, value)
4442
      for key, value in self.__dict__.iteritems()]
4443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4444
 
4445
  def __eq__(self, other):
4446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4447
 
4448
  def __ne__(self, other):
4449
    return not (self == other)
4450
 
5326 rajveer 4451
class getUserByCartId_result:
1491 vikas 4452
  """
4453
  Attributes:
4454
   - success
4455
   - ucex
4456
  """
4457
 
4458
  thrift_spec = (
4459
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4460
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4461
  )
4462
 
4463
  def __init__(self, success=None, ucex=None,):
4464
    self.success = success
4465
    self.ucex = ucex
4466
 
4467
  def read(self, iprot):
4468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4470
      return
4471
    iprot.readStructBegin()
4472
    while True:
4473
      (fname, ftype, fid) = iprot.readFieldBegin()
4474
      if ftype == TType.STOP:
4475
        break
4476
      if fid == 0:
4477
        if ftype == TType.STRUCT:
4478
          self.success = User()
4479
          self.success.read(iprot)
4480
        else:
4481
          iprot.skip(ftype)
4482
      elif fid == 1:
4483
        if ftype == TType.STRUCT:
4484
          self.ucex = UserContextException()
4485
          self.ucex.read(iprot)
4486
        else:
4487
          iprot.skip(ftype)
4488
      else:
4489
        iprot.skip(ftype)
4490
      iprot.readFieldEnd()
4491
    iprot.readStructEnd()
4492
 
4493
  def write(self, oprot):
4494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4496
      return
5326 rajveer 4497
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4498
    if self.success is not None:
1491 vikas 4499
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4500
      self.success.write(oprot)
4501
      oprot.writeFieldEnd()
3431 rajveer 4502
    if self.ucex is not None:
1491 vikas 4503
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4504
      self.ucex.write(oprot)
4505
      oprot.writeFieldEnd()
4506
    oprot.writeFieldStop()
4507
    oprot.writeStructEnd()
4508
 
3431 rajveer 4509
  def validate(self):
4510
    return
4511
 
4512
 
1491 vikas 4513
  def __repr__(self):
4514
    L = ['%s=%r' % (key, value)
4515
      for key, value in self.__dict__.iteritems()]
4516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4517
 
4518
  def __eq__(self, other):
4519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4520
 
4521
  def __ne__(self, other):
4522
    return not (self == other)
4523
 
5326 rajveer 4524
class getUserByEmail_args:
3032 mandeep.dh 4525
  """
4526
  Attributes:
5326 rajveer 4527
   - email
3032 mandeep.dh 4528
  """
4529
 
4530
  thrift_spec = (
4531
    None, # 0
5326 rajveer 4532
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4533
  )
4534
 
5326 rajveer 4535
  def __init__(self, email=None,):
4536
    self.email = email
3032 mandeep.dh 4537
 
4538
  def read(self, iprot):
4539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4541
      return
4542
    iprot.readStructBegin()
4543
    while True:
4544
      (fname, ftype, fid) = iprot.readFieldBegin()
4545
      if ftype == TType.STOP:
4546
        break
4547
      if fid == 1:
5326 rajveer 4548
        if ftype == TType.STRING:
4549
          self.email = iprot.readString();
3032 mandeep.dh 4550
        else:
4551
          iprot.skip(ftype)
4552
      else:
4553
        iprot.skip(ftype)
4554
      iprot.readFieldEnd()
4555
    iprot.readStructEnd()
4556
 
4557
  def write(self, oprot):
4558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4560
      return
5326 rajveer 4561
    oprot.writeStructBegin('getUserByEmail_args')
4562
    if self.email is not None:
4563
      oprot.writeFieldBegin('email', TType.STRING, 1)
4564
      oprot.writeString(self.email)
3032 mandeep.dh 4565
      oprot.writeFieldEnd()
4566
    oprot.writeFieldStop()
4567
    oprot.writeStructEnd()
4568
 
3431 rajveer 4569
  def validate(self):
4570
    return
4571
 
4572
 
3032 mandeep.dh 4573
  def __repr__(self):
4574
    L = ['%s=%r' % (key, value)
4575
      for key, value in self.__dict__.iteritems()]
4576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4577
 
4578
  def __eq__(self, other):
4579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4580
 
4581
  def __ne__(self, other):
4582
    return not (self == other)
4583
 
5326 rajveer 4584
class getUserByEmail_result:
3032 mandeep.dh 4585
  """
4586
  Attributes:
4587
   - success
4588
   - ucex
4589
  """
4590
 
4591
  thrift_spec = (
4592
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4593
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4594
  )
4595
 
4596
  def __init__(self, success=None, ucex=None,):
4597
    self.success = success
4598
    self.ucex = ucex
4599
 
4600
  def read(self, iprot):
4601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4603
      return
4604
    iprot.readStructBegin()
4605
    while True:
4606
      (fname, ftype, fid) = iprot.readFieldBegin()
4607
      if ftype == TType.STOP:
4608
        break
4609
      if fid == 0:
4610
        if ftype == TType.STRUCT:
4611
          self.success = User()
4612
          self.success.read(iprot)
4613
        else:
4614
          iprot.skip(ftype)
4615
      elif fid == 1:
4616
        if ftype == TType.STRUCT:
4617
          self.ucex = UserContextException()
4618
          self.ucex.read(iprot)
4619
        else:
4620
          iprot.skip(ftype)
4621
      else:
4622
        iprot.skip(ftype)
4623
      iprot.readFieldEnd()
4624
    iprot.readStructEnd()
4625
 
4626
  def write(self, oprot):
4627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4629
      return
5326 rajveer 4630
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4631
    if self.success is not None:
3032 mandeep.dh 4632
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4633
      self.success.write(oprot)
4634
      oprot.writeFieldEnd()
3431 rajveer 4635
    if self.ucex is not None:
3032 mandeep.dh 4636
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4637
      self.ucex.write(oprot)
4638
      oprot.writeFieldEnd()
4639
    oprot.writeFieldStop()
4640
    oprot.writeStructEnd()
4641
 
3431 rajveer 4642
  def validate(self):
4643
    return
4644
 
4645
 
3032 mandeep.dh 4646
  def __repr__(self):
4647
    L = ['%s=%r' % (key, value)
4648
      for key, value in self.__dict__.iteritems()]
4649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4650
 
4651
  def __eq__(self, other):
4652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4653
 
4654
  def __ne__(self, other):
4655
    return not (self == other)
4656
 
5326 rajveer 4657
class getUserByMobileNumber_args:
94 ashish 4658
  """
4659
  Attributes:
5326 rajveer 4660
   - mobileNumber
94 ashish 4661
  """
4662
 
4663
  thrift_spec = (
4664
    None, # 0
5326 rajveer 4665
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4666
  )
4667
 
5326 rajveer 4668
  def __init__(self, mobileNumber=None,):
4669
    self.mobileNumber = mobileNumber
94 ashish 4670
 
4671
  def read(self, iprot):
4672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4674
      return
4675
    iprot.readStructBegin()
4676
    while True:
4677
      (fname, ftype, fid) = iprot.readFieldBegin()
4678
      if ftype == TType.STOP:
4679
        break
4680
      if fid == 1:
5326 rajveer 4681
        if ftype == TType.I64:
4682
          self.mobileNumber = iprot.readI64();
94 ashish 4683
        else:
4684
          iprot.skip(ftype)
4685
      else:
4686
        iprot.skip(ftype)
4687
      iprot.readFieldEnd()
4688
    iprot.readStructEnd()
4689
 
4690
  def write(self, oprot):
4691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4693
      return
5326 rajveer 4694
    oprot.writeStructBegin('getUserByMobileNumber_args')
4695
    if self.mobileNumber is not None:
4696
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4697
      oprot.writeI64(self.mobileNumber)
94 ashish 4698
      oprot.writeFieldEnd()
4699
    oprot.writeFieldStop()
4700
    oprot.writeStructEnd()
4701
 
3431 rajveer 4702
  def validate(self):
4703
    return
4704
 
4705
 
94 ashish 4706
  def __repr__(self):
4707
    L = ['%s=%r' % (key, value)
4708
      for key, value in self.__dict__.iteritems()]
4709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4710
 
4711
  def __eq__(self, other):
4712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4713
 
4714
  def __ne__(self, other):
4715
    return not (self == other)
4716
 
5326 rajveer 4717
class getUserByMobileNumber_result:
94 ashish 4718
  """
4719
  Attributes:
4720
   - success
559 chandransh 4721
   - ucex
94 ashish 4722
  """
4723
 
4724
  thrift_spec = (
559 chandransh 4725
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4726
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4727
  )
4728
 
559 chandransh 4729
  def __init__(self, success=None, ucex=None,):
94 ashish 4730
    self.success = success
559 chandransh 4731
    self.ucex = ucex
94 ashish 4732
 
4733
  def read(self, iprot):
4734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4736
      return
4737
    iprot.readStructBegin()
4738
    while True:
4739
      (fname, ftype, fid) = iprot.readFieldBegin()
4740
      if ftype == TType.STOP:
4741
        break
4742
      if fid == 0:
4743
        if ftype == TType.STRUCT:
559 chandransh 4744
          self.success = User()
94 ashish 4745
          self.success.read(iprot)
4746
        else:
4747
          iprot.skip(ftype)
4748
      elif fid == 1:
4749
        if ftype == TType.STRUCT:
559 chandransh 4750
          self.ucex = UserContextException()
4751
          self.ucex.read(iprot)
94 ashish 4752
        else:
4753
          iprot.skip(ftype)
4754
      else:
4755
        iprot.skip(ftype)
4756
      iprot.readFieldEnd()
4757
    iprot.readStructEnd()
4758
 
4759
  def write(self, oprot):
4760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4762
      return
5326 rajveer 4763
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4764
    if self.success is not None:
94 ashish 4765
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4766
      self.success.write(oprot)
4767
      oprot.writeFieldEnd()
3431 rajveer 4768
    if self.ucex is not None:
559 chandransh 4769
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4770
      self.ucex.write(oprot)
94 ashish 4771
      oprot.writeFieldEnd()
4772
    oprot.writeFieldStop()
4773
    oprot.writeStructEnd()
4774
 
3431 rajveer 4775
  def validate(self):
4776
    return
4777
 
4778
 
94 ashish 4779
  def __repr__(self):
4780
    L = ['%s=%r' % (key, value)
4781
      for key, value in self.__dict__.iteritems()]
4782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4783
 
4784
  def __eq__(self, other):
4785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4786
 
4787
  def __ne__(self, other):
4788
    return not (self == other)
4789
 
5326 rajveer 4790
class createUser_args:
94 ashish 4791
  """
4792
  Attributes:
559 chandransh 4793
   - user
94 ashish 4794
  """
4795
 
4796
  thrift_spec = (
4797
    None, # 0
559 chandransh 4798
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4799
  )
4800
 
559 chandransh 4801
  def __init__(self, user=None,):
4802
    self.user = user
94 ashish 4803
 
4804
  def read(self, iprot):
4805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4807
      return
4808
    iprot.readStructBegin()
4809
    while True:
4810
      (fname, ftype, fid) = iprot.readFieldBegin()
4811
      if ftype == TType.STOP:
4812
        break
4813
      if fid == 1:
559 chandransh 4814
        if ftype == TType.STRUCT:
4815
          self.user = User()
4816
          self.user.read(iprot)
94 ashish 4817
        else:
4818
          iprot.skip(ftype)
4819
      else:
4820
        iprot.skip(ftype)
4821
      iprot.readFieldEnd()
4822
    iprot.readStructEnd()
4823
 
4824
  def write(self, oprot):
4825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4827
      return
5326 rajveer 4828
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4829
    if self.user is not None:
559 chandransh 4830
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4831
      self.user.write(oprot)
94 ashish 4832
      oprot.writeFieldEnd()
4833
    oprot.writeFieldStop()
4834
    oprot.writeStructEnd()
4835
 
3431 rajveer 4836
  def validate(self):
4837
    return
4838
 
4839
 
94 ashish 4840
  def __repr__(self):
4841
    L = ['%s=%r' % (key, value)
4842
      for key, value in self.__dict__.iteritems()]
4843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4844
 
4845
  def __eq__(self, other):
4846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4847
 
4848
  def __ne__(self, other):
4849
    return not (self == other)
4850
 
5326 rajveer 4851
class createUser_result:
94 ashish 4852
  """
4853
  Attributes:
4854
   - success
559 chandransh 4855
   - ucex
94 ashish 4856
  """
4857
 
4858
  thrift_spec = (
559 chandransh 4859
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4860
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4861
  )
4862
 
559 chandransh 4863
  def __init__(self, success=None, ucex=None,):
94 ashish 4864
    self.success = success
559 chandransh 4865
    self.ucex = ucex
94 ashish 4866
 
4867
  def read(self, iprot):
4868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4870
      return
4871
    iprot.readStructBegin()
4872
    while True:
4873
      (fname, ftype, fid) = iprot.readFieldBegin()
4874
      if ftype == TType.STOP:
4875
        break
4876
      if fid == 0:
4877
        if ftype == TType.STRUCT:
559 chandransh 4878
          self.success = User()
94 ashish 4879
          self.success.read(iprot)
4880
        else:
4881
          iprot.skip(ftype)
4882
      elif fid == 1:
4883
        if ftype == TType.STRUCT:
559 chandransh 4884
          self.ucex = UserContextException()
4885
          self.ucex.read(iprot)
94 ashish 4886
        else:
4887
          iprot.skip(ftype)
4888
      else:
4889
        iprot.skip(ftype)
4890
      iprot.readFieldEnd()
4891
    iprot.readStructEnd()
4892
 
4893
  def write(self, oprot):
4894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4896
      return
5326 rajveer 4897
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4898
    if self.success is not None:
94 ashish 4899
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4900
      self.success.write(oprot)
4901
      oprot.writeFieldEnd()
3431 rajveer 4902
    if self.ucex is not None:
559 chandransh 4903
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4904
      self.ucex.write(oprot)
94 ashish 4905
      oprot.writeFieldEnd()
4906
    oprot.writeFieldStop()
4907
    oprot.writeStructEnd()
4908
 
3431 rajveer 4909
  def validate(self):
4910
    return
4911
 
4912
 
94 ashish 4913
  def __repr__(self):
4914
    L = ['%s=%r' % (key, value)
4915
      for key, value in self.__dict__.iteritems()]
4916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4917
 
4918
  def __eq__(self, other):
4919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4920
 
4921
  def __ne__(self, other):
4922
    return not (self == other)
4923
 
5326 rajveer 4924
class updateUser_args:
94 ashish 4925
  """
4926
  Attributes:
5326 rajveer 4927
   - user
94 ashish 4928
  """
4929
 
4930
  thrift_spec = (
4931
    None, # 0
5326 rajveer 4932
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4933
  )
4934
 
5326 rajveer 4935
  def __init__(self, user=None,):
4936
    self.user = user
94 ashish 4937
 
4938
  def read(self, iprot):
4939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4941
      return
4942
    iprot.readStructBegin()
4943
    while True:
4944
      (fname, ftype, fid) = iprot.readFieldBegin()
4945
      if ftype == TType.STOP:
4946
        break
4947
      if fid == 1:
5326 rajveer 4948
        if ftype == TType.STRUCT:
4949
          self.user = User()
4950
          self.user.read(iprot)
94 ashish 4951
        else:
4952
          iprot.skip(ftype)
4953
      else:
4954
        iprot.skip(ftype)
4955
      iprot.readFieldEnd()
4956
    iprot.readStructEnd()
4957
 
4958
  def write(self, oprot):
4959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4961
      return
5326 rajveer 4962
    oprot.writeStructBegin('updateUser_args')
4963
    if self.user is not None:
4964
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4965
      self.user.write(oprot)
94 ashish 4966
      oprot.writeFieldEnd()
4967
    oprot.writeFieldStop()
4968
    oprot.writeStructEnd()
4969
 
3431 rajveer 4970
  def validate(self):
4971
    return
4972
 
4973
 
94 ashish 4974
  def __repr__(self):
4975
    L = ['%s=%r' % (key, value)
4976
      for key, value in self.__dict__.iteritems()]
4977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4978
 
4979
  def __eq__(self, other):
4980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4981
 
4982
  def __ne__(self, other):
4983
    return not (self == other)
4984
 
5326 rajveer 4985
class updateUser_result:
94 ashish 4986
  """
4987
  Attributes:
4988
   - success
559 chandransh 4989
   - ucex
94 ashish 4990
  """
4991
 
4992
  thrift_spec = (
5326 rajveer 4993
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4994
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4995
  )
4996
 
559 chandransh 4997
  def __init__(self, success=None, ucex=None,):
94 ashish 4998
    self.success = success
559 chandransh 4999
    self.ucex = ucex
94 ashish 5000
 
5001
  def read(self, iprot):
5002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5004
      return
5005
    iprot.readStructBegin()
5006
    while True:
5007
      (fname, ftype, fid) = iprot.readFieldBegin()
5008
      if ftype == TType.STOP:
5009
        break
5010
      if fid == 0:
5326 rajveer 5011
        if ftype == TType.STRUCT:
5012
          self.success = User()
5013
          self.success.read(iprot)
94 ashish 5014
        else:
5015
          iprot.skip(ftype)
5016
      elif fid == 1:
5017
        if ftype == TType.STRUCT:
559 chandransh 5018
          self.ucex = UserContextException()
5019
          self.ucex.read(iprot)
94 ashish 5020
        else:
5021
          iprot.skip(ftype)
5022
      else:
5023
        iprot.skip(ftype)
5024
      iprot.readFieldEnd()
5025
    iprot.readStructEnd()
5026
 
5027
  def write(self, oprot):
5028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5030
      return
5326 rajveer 5031
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 5032
    if self.success is not None:
5326 rajveer 5033
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5034
      self.success.write(oprot)
94 ashish 5035
      oprot.writeFieldEnd()
3431 rajveer 5036
    if self.ucex is not None:
559 chandransh 5037
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5038
      self.ucex.write(oprot)
94 ashish 5039
      oprot.writeFieldEnd()
5040
    oprot.writeFieldStop()
5041
    oprot.writeStructEnd()
5042
 
3431 rajveer 5043
  def validate(self):
5044
    return
5045
 
5046
 
94 ashish 5047
  def __repr__(self):
5048
    L = ['%s=%r' % (key, value)
5049
      for key, value in self.__dict__.iteritems()]
5050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5051
 
5052
  def __eq__(self, other):
5053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5054
 
5055
  def __ne__(self, other):
5056
    return not (self == other)
5057
 
559 chandransh 5058
class authenticateUser_args:
94 ashish 5059
  """
5060
  Attributes:
5061
   - email
5062
   - password
5063
  """
5064
 
5065
  thrift_spec = (
5066
    None, # 0
5067
    (1, TType.STRING, 'email', None, None, ), # 1
5068
    (2, TType.STRING, 'password', None, None, ), # 2
5069
  )
5070
 
5071
  def __init__(self, email=None, password=None,):
5072
    self.email = email
5073
    self.password = password
5074
 
5075
  def read(self, iprot):
5076
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5077
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5078
      return
5079
    iprot.readStructBegin()
5080
    while True:
5081
      (fname, ftype, fid) = iprot.readFieldBegin()
5082
      if ftype == TType.STOP:
5083
        break
5084
      if fid == 1:
5085
        if ftype == TType.STRING:
5086
          self.email = iprot.readString();
5087
        else:
5088
          iprot.skip(ftype)
5089
      elif fid == 2:
5090
        if ftype == TType.STRING:
5091
          self.password = iprot.readString();
5092
        else:
5093
          iprot.skip(ftype)
5094
      else:
5095
        iprot.skip(ftype)
5096
      iprot.readFieldEnd()
5097
    iprot.readStructEnd()
5098
 
5099
  def write(self, oprot):
5100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5102
      return
559 chandransh 5103
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5104
    if self.email is not None:
94 ashish 5105
      oprot.writeFieldBegin('email', TType.STRING, 1)
5106
      oprot.writeString(self.email)
5107
      oprot.writeFieldEnd()
3431 rajveer 5108
    if self.password is not None:
94 ashish 5109
      oprot.writeFieldBegin('password', TType.STRING, 2)
5110
      oprot.writeString(self.password)
5111
      oprot.writeFieldEnd()
5112
    oprot.writeFieldStop()
5113
    oprot.writeStructEnd()
5114
 
3431 rajveer 5115
  def validate(self):
5116
    return
5117
 
5118
 
94 ashish 5119
  def __repr__(self):
5120
    L = ['%s=%r' % (key, value)
5121
      for key, value in self.__dict__.iteritems()]
5122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5123
 
5124
  def __eq__(self, other):
5125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5126
 
5127
  def __ne__(self, other):
5128
    return not (self == other)
5129
 
559 chandransh 5130
class authenticateUser_result:
94 ashish 5131
  """
5132
  Attributes:
5133
   - success
559 chandransh 5134
   - auex
94 ashish 5135
  """
5136
 
5137
  thrift_spec = (
559 chandransh 5138
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5139
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5140
  )
5141
 
559 chandransh 5142
  def __init__(self, success=None, auex=None,):
94 ashish 5143
    self.success = success
559 chandransh 5144
    self.auex = auex
94 ashish 5145
 
5146
  def read(self, iprot):
5147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5149
      return
5150
    iprot.readStructBegin()
5151
    while True:
5152
      (fname, ftype, fid) = iprot.readFieldBegin()
5153
      if ftype == TType.STOP:
5154
        break
5155
      if fid == 0:
5156
        if ftype == TType.STRUCT:
559 chandransh 5157
          self.success = User()
94 ashish 5158
          self.success.read(iprot)
5159
        else:
5160
          iprot.skip(ftype)
5161
      elif fid == 1:
5162
        if ftype == TType.STRUCT:
559 chandransh 5163
          self.auex = AuthenticationException()
5164
          self.auex.read(iprot)
94 ashish 5165
        else:
5166
          iprot.skip(ftype)
5167
      else:
5168
        iprot.skip(ftype)
5169
      iprot.readFieldEnd()
5170
    iprot.readStructEnd()
5171
 
5172
  def write(self, oprot):
5173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5175
      return
559 chandransh 5176
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5177
    if self.success is not None:
94 ashish 5178
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5179
      self.success.write(oprot)
5180
      oprot.writeFieldEnd()
3431 rajveer 5181
    if self.auex is not None:
559 chandransh 5182
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5183
      self.auex.write(oprot)
94 ashish 5184
      oprot.writeFieldEnd()
5185
    oprot.writeFieldStop()
5186
    oprot.writeStructEnd()
5187
 
3431 rajveer 5188
  def validate(self):
5189
    return
5190
 
5191
 
94 ashish 5192
  def __repr__(self):
5193
    L = ['%s=%r' % (key, value)
5194
      for key, value in self.__dict__.iteritems()]
5195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5196
 
5197
  def __eq__(self, other):
5198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5199
 
5200
  def __ne__(self, other):
5201
    return not (self == other)
5202
 
559 chandransh 5203
class userExists_args:
122 ashish 5204
  """
5205
  Attributes:
559 chandransh 5206
   - email
122 ashish 5207
  """
5208
 
5209
  thrift_spec = (
5210
    None, # 0
559 chandransh 5211
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5212
  )
5213
 
559 chandransh 5214
  def __init__(self, email=None,):
5215
    self.email = email
122 ashish 5216
 
5217
  def read(self, iprot):
5218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5220
      return
5221
    iprot.readStructBegin()
5222
    while True:
5223
      (fname, ftype, fid) = iprot.readFieldBegin()
5224
      if ftype == TType.STOP:
5225
        break
5226
      if fid == 1:
5227
        if ftype == TType.STRING:
559 chandransh 5228
          self.email = iprot.readString();
122 ashish 5229
        else:
5230
          iprot.skip(ftype)
559 chandransh 5231
      else:
5232
        iprot.skip(ftype)
5233
      iprot.readFieldEnd()
5234
    iprot.readStructEnd()
5235
 
5236
  def write(self, oprot):
5237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5239
      return
5240
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5241
    if self.email is not None:
559 chandransh 5242
      oprot.writeFieldBegin('email', TType.STRING, 1)
5243
      oprot.writeString(self.email)
5244
      oprot.writeFieldEnd()
5245
    oprot.writeFieldStop()
5246
    oprot.writeStructEnd()
5247
 
3431 rajveer 5248
  def validate(self):
5249
    return
5250
 
5251
 
559 chandransh 5252
  def __repr__(self):
5253
    L = ['%s=%r' % (key, value)
5254
      for key, value in self.__dict__.iteritems()]
5255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5256
 
5257
  def __eq__(self, other):
5258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5259
 
5260
  def __ne__(self, other):
5261
    return not (self == other)
5262
 
5263
class userExists_result:
5264
  """
5265
  Attributes:
5266
   - success
5267
   - ucx
5268
  """
5269
 
5270
  thrift_spec = (
5271
    (0, TType.BOOL, 'success', None, None, ), # 0
5272
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5273
  )
5274
 
5275
  def __init__(self, success=None, ucx=None,):
5276
    self.success = success
5277
    self.ucx = ucx
5278
 
5279
  def read(self, iprot):
5280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5282
      return
5283
    iprot.readStructBegin()
5284
    while True:
5285
      (fname, ftype, fid) = iprot.readFieldBegin()
5286
      if ftype == TType.STOP:
5287
        break
5288
      if fid == 0:
5289
        if ftype == TType.BOOL:
5290
          self.success = iprot.readBool();
5291
        else:
5292
          iprot.skip(ftype)
5293
      elif fid == 1:
5294
        if ftype == TType.STRUCT:
5295
          self.ucx = UserContextException()
5296
          self.ucx.read(iprot)
5297
        else:
5298
          iprot.skip(ftype)
5299
      else:
5300
        iprot.skip(ftype)
5301
      iprot.readFieldEnd()
5302
    iprot.readStructEnd()
5303
 
5304
  def write(self, oprot):
5305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5307
      return
5308
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5309
    if self.success is not None:
559 chandransh 5310
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5311
      oprot.writeBool(self.success)
5312
      oprot.writeFieldEnd()
3431 rajveer 5313
    if self.ucx is not None:
559 chandransh 5314
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5315
      self.ucx.write(oprot)
5316
      oprot.writeFieldEnd()
5317
    oprot.writeFieldStop()
5318
    oprot.writeStructEnd()
5319
 
3431 rajveer 5320
  def validate(self):
5321
    return
5322
 
5323
 
559 chandransh 5324
  def __repr__(self):
5325
    L = ['%s=%r' % (key, value)
5326
      for key, value in self.__dict__.iteritems()]
5327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5328
 
5329
  def __eq__(self, other):
5330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5331
 
5332
  def __ne__(self, other):
5333
    return not (self == other)
5334
 
5335
class addAddressForUser_args:
5336
  """
5337
  Attributes:
5338
   - userId
5339
   - address
5340
   - setDefault
5341
  """
5342
 
5343
  thrift_spec = (
5344
    None, # 0
5345
    (1, TType.I64, 'userId', None, None, ), # 1
5346
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5347
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5348
  )
5349
 
567 rajveer 5350
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5351
    self.userId = userId
5352
    self.address = address
5353
    self.setDefault = setDefault
5354
 
5355
  def read(self, iprot):
5356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5358
      return
5359
    iprot.readStructBegin()
5360
    while True:
5361
      (fname, ftype, fid) = iprot.readFieldBegin()
5362
      if ftype == TType.STOP:
5363
        break
5364
      if fid == 1:
5365
        if ftype == TType.I64:
5366
          self.userId = iprot.readI64();
5367
        else:
5368
          iprot.skip(ftype)
122 ashish 5369
      elif fid == 2:
559 chandransh 5370
        if ftype == TType.STRUCT:
5371
          self.address = Address()
5372
          self.address.read(iprot)
122 ashish 5373
        else:
5374
          iprot.skip(ftype)
5375
      elif fid == 3:
5376
        if ftype == TType.BOOL:
559 chandransh 5377
          self.setDefault = iprot.readBool();
122 ashish 5378
        else:
5379
          iprot.skip(ftype)
5380
      else:
5381
        iprot.skip(ftype)
5382
      iprot.readFieldEnd()
5383
    iprot.readStructEnd()
5384
 
5385
  def write(self, oprot):
5386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5388
      return
559 chandransh 5389
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5390
    if self.userId is not None:
559 chandransh 5391
      oprot.writeFieldBegin('userId', TType.I64, 1)
5392
      oprot.writeI64(self.userId)
122 ashish 5393
      oprot.writeFieldEnd()
3431 rajveer 5394
    if self.address is not None:
559 chandransh 5395
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5396
      self.address.write(oprot)
122 ashish 5397
      oprot.writeFieldEnd()
3431 rajveer 5398
    if self.setDefault is not None:
567 rajveer 5399
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5400
      oprot.writeBool(self.setDefault)
5401
      oprot.writeFieldEnd()
122 ashish 5402
    oprot.writeFieldStop()
5403
    oprot.writeStructEnd()
5404
 
3431 rajveer 5405
  def validate(self):
5406
    return
5407
 
5408
 
122 ashish 5409
  def __repr__(self):
5410
    L = ['%s=%r' % (key, value)
5411
      for key, value in self.__dict__.iteritems()]
5412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5413
 
5414
  def __eq__(self, other):
5415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5416
 
5417
  def __ne__(self, other):
5418
    return not (self == other)
5419
 
559 chandransh 5420
class addAddressForUser_result:
122 ashish 5421
  """
5422
  Attributes:
5423
   - success
559 chandransh 5424
   - ucx
122 ashish 5425
  """
5426
 
5427
  thrift_spec = (
567 rajveer 5428
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5429
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5430
  )
5431
 
559 chandransh 5432
  def __init__(self, success=None, ucx=None,):
122 ashish 5433
    self.success = success
559 chandransh 5434
    self.ucx = ucx
122 ashish 5435
 
5436
  def read(self, iprot):
5437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5439
      return
5440
    iprot.readStructBegin()
5441
    while True:
5442
      (fname, ftype, fid) = iprot.readFieldBegin()
5443
      if ftype == TType.STOP:
5444
        break
5445
      if fid == 0:
567 rajveer 5446
        if ftype == TType.I64:
5447
          self.success = iprot.readI64();
122 ashish 5448
        else:
5449
          iprot.skip(ftype)
5450
      elif fid == 1:
5451
        if ftype == TType.STRUCT:
559 chandransh 5452
          self.ucx = UserContextException()
5453
          self.ucx.read(iprot)
122 ashish 5454
        else:
5455
          iprot.skip(ftype)
5456
      else:
5457
        iprot.skip(ftype)
5458
      iprot.readFieldEnd()
5459
    iprot.readStructEnd()
5460
 
5461
  def write(self, oprot):
5462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5464
      return
559 chandransh 5465
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5466
    if self.success is not None:
567 rajveer 5467
      oprot.writeFieldBegin('success', TType.I64, 0)
5468
      oprot.writeI64(self.success)
122 ashish 5469
      oprot.writeFieldEnd()
3431 rajveer 5470
    if self.ucx is not None:
559 chandransh 5471
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5472
      self.ucx.write(oprot)
122 ashish 5473
      oprot.writeFieldEnd()
5474
    oprot.writeFieldStop()
5475
    oprot.writeStructEnd()
5476
 
3431 rajveer 5477
  def validate(self):
5478
    return
5479
 
5480
 
122 ashish 5481
  def __repr__(self):
5482
    L = ['%s=%r' % (key, value)
5483
      for key, value in self.__dict__.iteritems()]
5484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5485
 
5486
  def __eq__(self, other):
5487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5488
 
5489
  def __ne__(self, other):
5490
    return not (self == other)
5491
 
559 chandransh 5492
class removeAddressForUser_args:
94 ashish 5493
  """
5494
  Attributes:
559 chandransh 5495
   - userid
5496
   - addressId
94 ashish 5497
  """
5498
 
5499
  thrift_spec = (
5500
    None, # 0
559 chandransh 5501
    (1, TType.I64, 'userid', None, None, ), # 1
5502
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5503
  )
5504
 
559 chandransh 5505
  def __init__(self, userid=None, addressId=None,):
5506
    self.userid = userid
5507
    self.addressId = addressId
94 ashish 5508
 
5509
  def read(self, iprot):
5510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5512
      return
5513
    iprot.readStructBegin()
5514
    while True:
5515
      (fname, ftype, fid) = iprot.readFieldBegin()
5516
      if ftype == TType.STOP:
5517
        break
5518
      if fid == 1:
559 chandransh 5519
        if ftype == TType.I64:
5520
          self.userid = iprot.readI64();
94 ashish 5521
        else:
5522
          iprot.skip(ftype)
559 chandransh 5523
      elif fid == 2:
5524
        if ftype == TType.I64:
5525
          self.addressId = iprot.readI64();
5526
        else:
5527
          iprot.skip(ftype)
94 ashish 5528
      else:
5529
        iprot.skip(ftype)
5530
      iprot.readFieldEnd()
5531
    iprot.readStructEnd()
5532
 
5533
  def write(self, oprot):
5534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5536
      return
559 chandransh 5537
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5538
    if self.userid is not None:
559 chandransh 5539
      oprot.writeFieldBegin('userid', TType.I64, 1)
5540
      oprot.writeI64(self.userid)
94 ashish 5541
      oprot.writeFieldEnd()
3431 rajveer 5542
    if self.addressId is not None:
559 chandransh 5543
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5544
      oprot.writeI64(self.addressId)
5545
      oprot.writeFieldEnd()
94 ashish 5546
    oprot.writeFieldStop()
5547
    oprot.writeStructEnd()
5548
 
3431 rajveer 5549
  def validate(self):
5550
    return
5551
 
5552
 
94 ashish 5553
  def __repr__(self):
5554
    L = ['%s=%r' % (key, value)
5555
      for key, value in self.__dict__.iteritems()]
5556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5557
 
5558
  def __eq__(self, other):
5559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5560
 
5561
  def __ne__(self, other):
5562
    return not (self == other)
5563
 
559 chandransh 5564
class removeAddressForUser_result:
94 ashish 5565
  """
5566
  Attributes:
5567
   - success
5568
   - ucx
5569
  """
5570
 
5571
  thrift_spec = (
5572
    (0, TType.BOOL, 'success', None, None, ), # 0
5573
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5574
  )
5575
 
5576
  def __init__(self, success=None, ucx=None,):
5577
    self.success = success
5578
    self.ucx = ucx
5579
 
5580
  def read(self, iprot):
5581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5583
      return
5584
    iprot.readStructBegin()
5585
    while True:
5586
      (fname, ftype, fid) = iprot.readFieldBegin()
5587
      if ftype == TType.STOP:
5588
        break
5589
      if fid == 0:
5590
        if ftype == TType.BOOL:
5591
          self.success = iprot.readBool();
5592
        else:
5593
          iprot.skip(ftype)
5594
      elif fid == 1:
5595
        if ftype == TType.STRUCT:
5596
          self.ucx = UserContextException()
5597
          self.ucx.read(iprot)
5598
        else:
5599
          iprot.skip(ftype)
5600
      else:
5601
        iprot.skip(ftype)
5602
      iprot.readFieldEnd()
5603
    iprot.readStructEnd()
5604
 
5605
  def write(self, oprot):
5606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5608
      return
559 chandransh 5609
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5610
    if self.success is not None:
94 ashish 5611
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5612
      oprot.writeBool(self.success)
5613
      oprot.writeFieldEnd()
3431 rajveer 5614
    if self.ucx is not None:
94 ashish 5615
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5616
      self.ucx.write(oprot)
5617
      oprot.writeFieldEnd()
5618
    oprot.writeFieldStop()
5619
    oprot.writeStructEnd()
5620
 
3431 rajveer 5621
  def validate(self):
5622
    return
5623
 
5624
 
94 ashish 5625
  def __repr__(self):
5626
    L = ['%s=%r' % (key, value)
5627
      for key, value in self.__dict__.iteritems()]
5628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5629
 
5630
  def __eq__(self, other):
5631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5632
 
5633
  def __ne__(self, other):
5634
    return not (self == other)
5635
 
559 chandransh 5636
class setUserAsLoggedIn_args:
94 ashish 5637
  """
5638
  Attributes:
559 chandransh 5639
   - userId
94 ashish 5640
   - timestamp
5641
  """
5642
 
5643
  thrift_spec = (
5644
    None, # 0
559 chandransh 5645
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5646
    (2, TType.I64, 'timestamp', None, None, ), # 2
5647
  )
5648
 
559 chandransh 5649
  def __init__(self, userId=None, timestamp=None,):
5650
    self.userId = userId
94 ashish 5651
    self.timestamp = timestamp
5652
 
5653
  def read(self, iprot):
5654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5656
      return
5657
    iprot.readStructBegin()
5658
    while True:
5659
      (fname, ftype, fid) = iprot.readFieldBegin()
5660
      if ftype == TType.STOP:
5661
        break
5662
      if fid == 1:
559 chandransh 5663
        if ftype == TType.I64:
5664
          self.userId = iprot.readI64();
94 ashish 5665
        else:
5666
          iprot.skip(ftype)
5667
      elif fid == 2:
5668
        if ftype == TType.I64:
5669
          self.timestamp = iprot.readI64();
5670
        else:
5671
          iprot.skip(ftype)
5672
      else:
5673
        iprot.skip(ftype)
5674
      iprot.readFieldEnd()
5675
    iprot.readStructEnd()
5676
 
5677
  def write(self, oprot):
5678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5680
      return
559 chandransh 5681
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5682
    if self.userId is not None:
559 chandransh 5683
      oprot.writeFieldBegin('userId', TType.I64, 1)
5684
      oprot.writeI64(self.userId)
94 ashish 5685
      oprot.writeFieldEnd()
3431 rajveer 5686
    if self.timestamp is not None:
94 ashish 5687
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5688
      oprot.writeI64(self.timestamp)
5689
      oprot.writeFieldEnd()
5690
    oprot.writeFieldStop()
5691
    oprot.writeStructEnd()
5692
 
3431 rajveer 5693
  def validate(self):
5694
    return
5695
 
5696
 
94 ashish 5697
  def __repr__(self):
5698
    L = ['%s=%r' % (key, value)
5699
      for key, value in self.__dict__.iteritems()]
5700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5701
 
5702
  def __eq__(self, other):
5703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5704
 
5705
  def __ne__(self, other):
5706
    return not (self == other)
5707
 
559 chandransh 5708
class setUserAsLoggedIn_result:
94 ashish 5709
  """
5710
  Attributes:
5711
   - success
5712
   - ucx
5713
  """
5714
 
5715
  thrift_spec = (
5716
    (0, TType.BOOL, 'success', None, None, ), # 0
5717
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5718
  )
5719
 
5720
  def __init__(self, success=None, ucx=None,):
5721
    self.success = success
5722
    self.ucx = ucx
5723
 
5724
  def read(self, iprot):
5725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5727
      return
5728
    iprot.readStructBegin()
5729
    while True:
5730
      (fname, ftype, fid) = iprot.readFieldBegin()
5731
      if ftype == TType.STOP:
5732
        break
5733
      if fid == 0:
5734
        if ftype == TType.BOOL:
5735
          self.success = iprot.readBool();
5736
        else:
5737
          iprot.skip(ftype)
5738
      elif fid == 1:
5739
        if ftype == TType.STRUCT:
5740
          self.ucx = UserContextException()
5741
          self.ucx.read(iprot)
5742
        else:
5743
          iprot.skip(ftype)
5744
      else:
5745
        iprot.skip(ftype)
5746
      iprot.readFieldEnd()
5747
    iprot.readStructEnd()
5748
 
5749
  def write(self, oprot):
5750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5752
      return
559 chandransh 5753
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5754
    if self.success is not None:
94 ashish 5755
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5756
      oprot.writeBool(self.success)
5757
      oprot.writeFieldEnd()
3431 rajveer 5758
    if self.ucx is not None:
94 ashish 5759
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5760
      self.ucx.write(oprot)
5761
      oprot.writeFieldEnd()
5762
    oprot.writeFieldStop()
5763
    oprot.writeStructEnd()
5764
 
3431 rajveer 5765
  def validate(self):
5766
    return
5767
 
5768
 
94 ashish 5769
  def __repr__(self):
5770
    L = ['%s=%r' % (key, value)
5771
      for key, value in self.__dict__.iteritems()]
5772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5773
 
5774
  def __eq__(self, other):
5775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5776
 
5777
  def __ne__(self, other):
5778
    return not (self == other)
5779
 
559 chandransh 5780
class setUserAsLoggedOut_args:
94 ashish 5781
  """
5782
  Attributes:
5783
   - userid
5784
   - timestamp
5785
  """
5786
 
5787
  thrift_spec = (
5788
    None, # 0
559 chandransh 5789
    (1, TType.I64, 'userid', None, None, ), # 1
5790
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5791
  )
5792
 
559 chandransh 5793
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5794
    self.userid = userid
5795
    self.timestamp = timestamp
5796
 
5797
  def read(self, iprot):
5798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5800
      return
5801
    iprot.readStructBegin()
5802
    while True:
5803
      (fname, ftype, fid) = iprot.readFieldBegin()
5804
      if ftype == TType.STOP:
5805
        break
5806
      if fid == 1:
5807
        if ftype == TType.I64:
5808
          self.userid = iprot.readI64();
5809
        else:
5810
          iprot.skip(ftype)
559 chandransh 5811
      elif fid == 2:
94 ashish 5812
        if ftype == TType.I64:
5813
          self.timestamp = iprot.readI64();
5814
        else:
5815
          iprot.skip(ftype)
5816
      else:
5817
        iprot.skip(ftype)
5818
      iprot.readFieldEnd()
5819
    iprot.readStructEnd()
5820
 
5821
  def write(self, oprot):
5822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5824
      return
559 chandransh 5825
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5826
    if self.userid is not None:
559 chandransh 5827
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5828
      oprot.writeI64(self.userid)
5829
      oprot.writeFieldEnd()
3431 rajveer 5830
    if self.timestamp is not None:
559 chandransh 5831
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5832
      oprot.writeI64(self.timestamp)
5833
      oprot.writeFieldEnd()
5834
    oprot.writeFieldStop()
5835
    oprot.writeStructEnd()
5836
 
3431 rajveer 5837
  def validate(self):
5838
    return
5839
 
5840
 
94 ashish 5841
  def __repr__(self):
5842
    L = ['%s=%r' % (key, value)
5843
      for key, value in self.__dict__.iteritems()]
5844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5845
 
5846
  def __eq__(self, other):
5847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5848
 
5849
  def __ne__(self, other):
5850
    return not (self == other)
5851
 
559 chandransh 5852
class setUserAsLoggedOut_result:
94 ashish 5853
  """
5854
  Attributes:
5855
   - success
5856
   - ucx
5857
  """
5858
 
5859
  thrift_spec = (
5860
    (0, TType.BOOL, 'success', None, None, ), # 0
5861
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5862
  )
5863
 
5864
  def __init__(self, success=None, ucx=None,):
5865
    self.success = success
5866
    self.ucx = ucx
5867
 
5868
  def read(self, iprot):
5869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5871
      return
5872
    iprot.readStructBegin()
5873
    while True:
5874
      (fname, ftype, fid) = iprot.readFieldBegin()
5875
      if ftype == TType.STOP:
5876
        break
5877
      if fid == 0:
5878
        if ftype == TType.BOOL:
5879
          self.success = iprot.readBool();
5880
        else:
5881
          iprot.skip(ftype)
5882
      elif fid == 1:
5883
        if ftype == TType.STRUCT:
5884
          self.ucx = UserContextException()
5885
          self.ucx.read(iprot)
5886
        else:
5887
          iprot.skip(ftype)
5888
      else:
5889
        iprot.skip(ftype)
5890
      iprot.readFieldEnd()
5891
    iprot.readStructEnd()
5892
 
5893
  def write(self, oprot):
5894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5896
      return
559 chandransh 5897
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5898
    if self.success is not None:
94 ashish 5899
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5900
      oprot.writeBool(self.success)
5901
      oprot.writeFieldEnd()
3431 rajveer 5902
    if self.ucx is not None:
94 ashish 5903
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5904
      self.ucx.write(oprot)
5905
      oprot.writeFieldEnd()
5906
    oprot.writeFieldStop()
5907
    oprot.writeStructEnd()
5908
 
3431 rajveer 5909
  def validate(self):
5910
    return
5911
 
5912
 
94 ashish 5913
  def __repr__(self):
5914
    L = ['%s=%r' % (key, value)
5915
      for key, value in self.__dict__.iteritems()]
5916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5917
 
5918
  def __eq__(self, other):
5919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5920
 
5921
  def __ne__(self, other):
5922
    return not (self == other)
5923
 
559 chandransh 5924
class setDefaultAddress_args:
94 ashish 5925
  """
5926
  Attributes:
5927
   - userid
5928
   - addressId
5929
  """
5930
 
5931
  thrift_spec = (
5932
    None, # 0
5933
    (1, TType.I64, 'userid', None, None, ), # 1
5934
    (2, TType.I64, 'addressId', None, None, ), # 2
5935
  )
5936
 
5937
  def __init__(self, userid=None, addressId=None,):
5938
    self.userid = userid
5939
    self.addressId = addressId
5940
 
5941
  def read(self, iprot):
5942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5944
      return
5945
    iprot.readStructBegin()
5946
    while True:
5947
      (fname, ftype, fid) = iprot.readFieldBegin()
5948
      if ftype == TType.STOP:
5949
        break
5950
      if fid == 1:
5951
        if ftype == TType.I64:
5952
          self.userid = iprot.readI64();
5953
        else:
5954
          iprot.skip(ftype)
5955
      elif fid == 2:
5956
        if ftype == TType.I64:
5957
          self.addressId = iprot.readI64();
5958
        else:
5959
          iprot.skip(ftype)
5960
      else:
5961
        iprot.skip(ftype)
5962
      iprot.readFieldEnd()
5963
    iprot.readStructEnd()
5964
 
5965
  def write(self, oprot):
5966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5968
      return
559 chandransh 5969
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5970
    if self.userid is not None:
94 ashish 5971
      oprot.writeFieldBegin('userid', TType.I64, 1)
5972
      oprot.writeI64(self.userid)
5973
      oprot.writeFieldEnd()
3431 rajveer 5974
    if self.addressId is not None:
94 ashish 5975
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5976
      oprot.writeI64(self.addressId)
5977
      oprot.writeFieldEnd()
5978
    oprot.writeFieldStop()
5979
    oprot.writeStructEnd()
5980
 
3431 rajveer 5981
  def validate(self):
5982
    return
5983
 
5984
 
94 ashish 5985
  def __repr__(self):
5986
    L = ['%s=%r' % (key, value)
5987
      for key, value in self.__dict__.iteritems()]
5988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5989
 
5990
  def __eq__(self, other):
5991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5992
 
5993
  def __ne__(self, other):
5994
    return not (self == other)
5995
 
559 chandransh 5996
class setDefaultAddress_result:
94 ashish 5997
  """
5998
  Attributes:
5999
   - success
6000
   - ucx
6001
  """
6002
 
6003
  thrift_spec = (
6004
    (0, TType.BOOL, 'success', None, None, ), # 0
6005
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6006
  )
6007
 
6008
  def __init__(self, success=None, ucx=None,):
6009
    self.success = success
6010
    self.ucx = ucx
6011
 
6012
  def read(self, iprot):
6013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6015
      return
6016
    iprot.readStructBegin()
6017
    while True:
6018
      (fname, ftype, fid) = iprot.readFieldBegin()
6019
      if ftype == TType.STOP:
6020
        break
6021
      if fid == 0:
6022
        if ftype == TType.BOOL:
6023
          self.success = iprot.readBool();
6024
        else:
6025
          iprot.skip(ftype)
6026
      elif fid == 1:
6027
        if ftype == TType.STRUCT:
6028
          self.ucx = UserContextException()
6029
          self.ucx.read(iprot)
6030
        else:
6031
          iprot.skip(ftype)
6032
      else:
6033
        iprot.skip(ftype)
6034
      iprot.readFieldEnd()
6035
    iprot.readStructEnd()
6036
 
6037
  def write(self, oprot):
6038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6040
      return
559 chandransh 6041
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6042
    if self.success is not None:
94 ashish 6043
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6044
      oprot.writeBool(self.success)
6045
      oprot.writeFieldEnd()
3431 rajveer 6046
    if self.ucx is not None:
94 ashish 6047
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6048
      self.ucx.write(oprot)
6049
      oprot.writeFieldEnd()
6050
    oprot.writeFieldStop()
6051
    oprot.writeStructEnd()
6052
 
3431 rajveer 6053
  def validate(self):
6054
    return
6055
 
6056
 
94 ashish 6057
  def __repr__(self):
6058
    L = ['%s=%r' % (key, value)
6059
      for key, value in self.__dict__.iteritems()]
6060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6061
 
6062
  def __eq__(self, other):
6063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6064
 
6065
  def __ne__(self, other):
6066
    return not (self == other)
6067
 
559 chandransh 6068
class updatePassword_args:
94 ashish 6069
  """
6070
  Attributes:
559 chandransh 6071
   - userid
594 rajveer 6072
   - oldPassword
6073
   - newPassword
94 ashish 6074
  """
6075
 
6076
  thrift_spec = (
6077
    None, # 0
559 chandransh 6078
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6079
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6080
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6081
  )
6082
 
594 rajveer 6083
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6084
    self.userid = userid
594 rajveer 6085
    self.oldPassword = oldPassword
6086
    self.newPassword = newPassword
94 ashish 6087
 
6088
  def read(self, iprot):
6089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6091
      return
6092
    iprot.readStructBegin()
6093
    while True:
6094
      (fname, ftype, fid) = iprot.readFieldBegin()
6095
      if ftype == TType.STOP:
6096
        break
6097
      if fid == 1:
6098
        if ftype == TType.I64:
559 chandransh 6099
          self.userid = iprot.readI64();
94 ashish 6100
        else:
6101
          iprot.skip(ftype)
6102
      elif fid == 2:
559 chandransh 6103
        if ftype == TType.STRING:
594 rajveer 6104
          self.oldPassword = iprot.readString();
94 ashish 6105
        else:
6106
          iprot.skip(ftype)
594 rajveer 6107
      elif fid == 3:
6108
        if ftype == TType.STRING:
6109
          self.newPassword = iprot.readString();
6110
        else:
6111
          iprot.skip(ftype)
94 ashish 6112
      else:
6113
        iprot.skip(ftype)
6114
      iprot.readFieldEnd()
6115
    iprot.readStructEnd()
6116
 
6117
  def write(self, oprot):
6118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6120
      return
559 chandransh 6121
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6122
    if self.userid is not None:
559 chandransh 6123
      oprot.writeFieldBegin('userid', TType.I64, 1)
6124
      oprot.writeI64(self.userid)
94 ashish 6125
      oprot.writeFieldEnd()
3431 rajveer 6126
    if self.oldPassword is not None:
594 rajveer 6127
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6128
      oprot.writeString(self.oldPassword)
94 ashish 6129
      oprot.writeFieldEnd()
3431 rajveer 6130
    if self.newPassword is not None:
594 rajveer 6131
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6132
      oprot.writeString(self.newPassword)
6133
      oprot.writeFieldEnd()
94 ashish 6134
    oprot.writeFieldStop()
6135
    oprot.writeStructEnd()
6136
 
3431 rajveer 6137
  def validate(self):
6138
    return
6139
 
6140
 
94 ashish 6141
  def __repr__(self):
6142
    L = ['%s=%r' % (key, value)
6143
      for key, value in self.__dict__.iteritems()]
6144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6145
 
6146
  def __eq__(self, other):
6147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6148
 
6149
  def __ne__(self, other):
6150
    return not (self == other)
6151
 
559 chandransh 6152
class updatePassword_result:
94 ashish 6153
  """
6154
  Attributes:
6155
   - success
6156
   - ucx
6157
  """
6158
 
6159
  thrift_spec = (
6160
    (0, TType.BOOL, 'success', None, None, ), # 0
6161
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6162
  )
6163
 
6164
  def __init__(self, success=None, ucx=None,):
6165
    self.success = success
6166
    self.ucx = ucx
6167
 
6168
  def read(self, iprot):
6169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6171
      return
6172
    iprot.readStructBegin()
6173
    while True:
6174
      (fname, ftype, fid) = iprot.readFieldBegin()
6175
      if ftype == TType.STOP:
6176
        break
6177
      if fid == 0:
6178
        if ftype == TType.BOOL:
6179
          self.success = iprot.readBool();
6180
        else:
6181
          iprot.skip(ftype)
6182
      elif fid == 1:
6183
        if ftype == TType.STRUCT:
6184
          self.ucx = UserContextException()
6185
          self.ucx.read(iprot)
6186
        else:
6187
          iprot.skip(ftype)
6188
      else:
6189
        iprot.skip(ftype)
6190
      iprot.readFieldEnd()
6191
    iprot.readStructEnd()
6192
 
6193
  def write(self, oprot):
6194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6196
      return
559 chandransh 6197
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6198
    if self.success is not None:
94 ashish 6199
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6200
      oprot.writeBool(self.success)
6201
      oprot.writeFieldEnd()
3431 rajveer 6202
    if self.ucx is not None:
94 ashish 6203
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6204
      self.ucx.write(oprot)
6205
      oprot.writeFieldEnd()
6206
    oprot.writeFieldStop()
6207
    oprot.writeStructEnd()
6208
 
3431 rajveer 6209
  def validate(self):
6210
    return
6211
 
6212
 
94 ashish 6213
  def __repr__(self):
6214
    L = ['%s=%r' % (key, value)
6215
      for key, value in self.__dict__.iteritems()]
6216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6217
 
6218
  def __eq__(self, other):
6219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6220
 
6221
  def __ne__(self, other):
6222
    return not (self == other)
6223
 
581 rajveer 6224
class forgotPassword_args:
6225
  """
6226
  Attributes:
6227
   - email
884 rajveer 6228
   - newPassword
581 rajveer 6229
  """
6230
 
6231
  thrift_spec = (
6232
    None, # 0
6233
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6234
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6235
  )
6236
 
884 rajveer 6237
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6238
    self.email = email
884 rajveer 6239
    self.newPassword = newPassword
581 rajveer 6240
 
6241
  def read(self, iprot):
6242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6244
      return
6245
    iprot.readStructBegin()
6246
    while True:
6247
      (fname, ftype, fid) = iprot.readFieldBegin()
6248
      if ftype == TType.STOP:
6249
        break
6250
      if fid == 1:
6251
        if ftype == TType.STRING:
6252
          self.email = iprot.readString();
6253
        else:
6254
          iprot.skip(ftype)
884 rajveer 6255
      elif fid == 2:
6256
        if ftype == TType.STRING:
6257
          self.newPassword = iprot.readString();
6258
        else:
6259
          iprot.skip(ftype)
581 rajveer 6260
      else:
6261
        iprot.skip(ftype)
6262
      iprot.readFieldEnd()
6263
    iprot.readStructEnd()
6264
 
6265
  def write(self, oprot):
6266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6268
      return
6269
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6270
    if self.email is not None:
581 rajveer 6271
      oprot.writeFieldBegin('email', TType.STRING, 1)
6272
      oprot.writeString(self.email)
6273
      oprot.writeFieldEnd()
3431 rajveer 6274
    if self.newPassword is not None:
884 rajveer 6275
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6276
      oprot.writeString(self.newPassword)
6277
      oprot.writeFieldEnd()
581 rajveer 6278
    oprot.writeFieldStop()
6279
    oprot.writeStructEnd()
6280
 
3431 rajveer 6281
  def validate(self):
6282
    return
6283
 
6284
 
581 rajveer 6285
  def __repr__(self):
6286
    L = ['%s=%r' % (key, value)
6287
      for key, value in self.__dict__.iteritems()]
6288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6289
 
6290
  def __eq__(self, other):
6291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6292
 
6293
  def __ne__(self, other):
6294
    return not (self == other)
6295
 
6296
class forgotPassword_result:
6297
  """
6298
  Attributes:
6299
   - success
6300
   - ucx
6301
  """
6302
 
6303
  thrift_spec = (
6304
    (0, TType.BOOL, 'success', None, None, ), # 0
6305
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6306
  )
6307
 
6308
  def __init__(self, success=None, ucx=None,):
6309
    self.success = success
6310
    self.ucx = ucx
6311
 
6312
  def read(self, iprot):
6313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6315
      return
6316
    iprot.readStructBegin()
6317
    while True:
6318
      (fname, ftype, fid) = iprot.readFieldBegin()
6319
      if ftype == TType.STOP:
6320
        break
6321
      if fid == 0:
6322
        if ftype == TType.BOOL:
6323
          self.success = iprot.readBool();
6324
        else:
6325
          iprot.skip(ftype)
6326
      elif fid == 1:
6327
        if ftype == TType.STRUCT:
6328
          self.ucx = UserContextException()
6329
          self.ucx.read(iprot)
6330
        else:
6331
          iprot.skip(ftype)
6332
      else:
6333
        iprot.skip(ftype)
6334
      iprot.readFieldEnd()
6335
    iprot.readStructEnd()
6336
 
6337
  def write(self, oprot):
6338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6340
      return
6341
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6342
    if self.success is not None:
581 rajveer 6343
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6344
      oprot.writeBool(self.success)
6345
      oprot.writeFieldEnd()
3431 rajveer 6346
    if self.ucx is not None:
581 rajveer 6347
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6348
      self.ucx.write(oprot)
6349
      oprot.writeFieldEnd()
6350
    oprot.writeFieldStop()
6351
    oprot.writeStructEnd()
6352
 
3431 rajveer 6353
  def validate(self):
6354
    return
6355
 
6356
 
581 rajveer 6357
  def __repr__(self):
6358
    L = ['%s=%r' % (key, value)
6359
      for key, value in self.__dict__.iteritems()]
6360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6361
 
6362
  def __eq__(self, other):
6363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6364
 
6365
  def __ne__(self, other):
6366
    return not (self == other)
6367
 
594 rajveer 6368
class getAllAddressesForUser_args:
6369
  """
6370
  Attributes:
6371
   - userId
6372
  """
6373
 
6374
  thrift_spec = (
6375
    None, # 0
6376
    (1, TType.I64, 'userId', None, None, ), # 1
6377
  )
6378
 
6379
  def __init__(self, userId=None,):
6380
    self.userId = userId
6381
 
6382
  def read(self, iprot):
6383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6385
      return
6386
    iprot.readStructBegin()
6387
    while True:
6388
      (fname, ftype, fid) = iprot.readFieldBegin()
6389
      if ftype == TType.STOP:
6390
        break
6391
      if fid == 1:
6392
        if ftype == TType.I64:
6393
          self.userId = iprot.readI64();
6394
        else:
6395
          iprot.skip(ftype)
6396
      else:
6397
        iprot.skip(ftype)
6398
      iprot.readFieldEnd()
6399
    iprot.readStructEnd()
6400
 
6401
  def write(self, oprot):
6402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6404
      return
6405
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6406
    if self.userId is not None:
594 rajveer 6407
      oprot.writeFieldBegin('userId', TType.I64, 1)
6408
      oprot.writeI64(self.userId)
6409
      oprot.writeFieldEnd()
6410
    oprot.writeFieldStop()
6411
    oprot.writeStructEnd()
6412
 
3431 rajveer 6413
  def validate(self):
6414
    return
6415
 
6416
 
594 rajveer 6417
  def __repr__(self):
6418
    L = ['%s=%r' % (key, value)
6419
      for key, value in self.__dict__.iteritems()]
6420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6421
 
6422
  def __eq__(self, other):
6423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6424
 
6425
  def __ne__(self, other):
6426
    return not (self == other)
6427
 
6428
class getAllAddressesForUser_result:
6429
  """
6430
  Attributes:
6431
   - success
6432
   - ucx
6433
  """
6434
 
6435
  thrift_spec = (
6436
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6437
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6438
  )
6439
 
6440
  def __init__(self, success=None, ucx=None,):
6441
    self.success = success
6442
    self.ucx = ucx
6443
 
6444
  def read(self, iprot):
6445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6447
      return
6448
    iprot.readStructBegin()
6449
    while True:
6450
      (fname, ftype, fid) = iprot.readFieldBegin()
6451
      if ftype == TType.STOP:
6452
        break
6453
      if fid == 0:
6454
        if ftype == TType.LIST:
6455
          self.success = []
6736 amit.gupta 6456
          (_etype86, _size83) = iprot.readListBegin()
6457
          for _i87 in xrange(_size83):
6458
            _elem88 = Address()
6459
            _elem88.read(iprot)
6460
            self.success.append(_elem88)
594 rajveer 6461
          iprot.readListEnd()
6462
        else:
6463
          iprot.skip(ftype)
6464
      elif fid == 1:
6465
        if ftype == TType.STRUCT:
6466
          self.ucx = UserContextException()
6467
          self.ucx.read(iprot)
6468
        else:
6469
          iprot.skip(ftype)
6470
      else:
6471
        iprot.skip(ftype)
6472
      iprot.readFieldEnd()
6473
    iprot.readStructEnd()
6474
 
6475
  def write(self, oprot):
6476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6478
      return
6479
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6480
    if self.success is not None:
594 rajveer 6481
      oprot.writeFieldBegin('success', TType.LIST, 0)
6482
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 6483
      for iter89 in self.success:
6484
        iter89.write(oprot)
594 rajveer 6485
      oprot.writeListEnd()
6486
      oprot.writeFieldEnd()
3431 rajveer 6487
    if self.ucx is not None:
594 rajveer 6488
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6489
      self.ucx.write(oprot)
6490
      oprot.writeFieldEnd()
6491
    oprot.writeFieldStop()
6492
    oprot.writeStructEnd()
6493
 
3431 rajveer 6494
  def validate(self):
6495
    return
6496
 
6497
 
594 rajveer 6498
  def __repr__(self):
6499
    L = ['%s=%r' % (key, value)
6500
      for key, value in self.__dict__.iteritems()]
6501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6502
 
6503
  def __eq__(self, other):
6504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6505
 
6506
  def __ne__(self, other):
6507
    return not (self == other)
6508
 
1894 vikas 6509
class getAddressById_args:
6510
  """
6511
  Attributes:
6512
   - addressId
6513
  """
6514
 
6515
  thrift_spec = (
6516
    None, # 0
6517
    (1, TType.I64, 'addressId', None, None, ), # 1
6518
  )
6519
 
6520
  def __init__(self, addressId=None,):
6521
    self.addressId = addressId
6522
 
6523
  def read(self, iprot):
6524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6526
      return
6527
    iprot.readStructBegin()
6528
    while True:
6529
      (fname, ftype, fid) = iprot.readFieldBegin()
6530
      if ftype == TType.STOP:
6531
        break
6532
      if fid == 1:
6533
        if ftype == TType.I64:
6534
          self.addressId = iprot.readI64();
6535
        else:
6536
          iprot.skip(ftype)
6537
      else:
6538
        iprot.skip(ftype)
6539
      iprot.readFieldEnd()
6540
    iprot.readStructEnd()
6541
 
6542
  def write(self, oprot):
6543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6545
      return
6546
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6547
    if self.addressId is not None:
1894 vikas 6548
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6549
      oprot.writeI64(self.addressId)
6550
      oprot.writeFieldEnd()
6551
    oprot.writeFieldStop()
6552
    oprot.writeStructEnd()
6553
 
3431 rajveer 6554
  def validate(self):
6555
    return
6556
 
6557
 
1894 vikas 6558
  def __repr__(self):
6559
    L = ['%s=%r' % (key, value)
6560
      for key, value in self.__dict__.iteritems()]
6561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6562
 
6563
  def __eq__(self, other):
6564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6565
 
6566
  def __ne__(self, other):
6567
    return not (self == other)
6568
 
6569
class getAddressById_result:
6570
  """
6571
  Attributes:
6572
   - success
6573
   - ucx
6574
  """
6575
 
6576
  thrift_spec = (
6577
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6578
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6579
  )
6580
 
6581
  def __init__(self, success=None, ucx=None,):
6582
    self.success = success
6583
    self.ucx = ucx
6584
 
6585
  def read(self, iprot):
6586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6588
      return
6589
    iprot.readStructBegin()
6590
    while True:
6591
      (fname, ftype, fid) = iprot.readFieldBegin()
6592
      if ftype == TType.STOP:
6593
        break
6594
      if fid == 0:
6595
        if ftype == TType.STRUCT:
6596
          self.success = Address()
6597
          self.success.read(iprot)
6598
        else:
6599
          iprot.skip(ftype)
6600
      elif fid == 1:
6601
        if ftype == TType.STRUCT:
6602
          self.ucx = UserContextException()
6603
          self.ucx.read(iprot)
6604
        else:
6605
          iprot.skip(ftype)
6606
      else:
6607
        iprot.skip(ftype)
6608
      iprot.readFieldEnd()
6609
    iprot.readStructEnd()
6610
 
6611
  def write(self, oprot):
6612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6614
      return
6615
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6616
    if self.success is not None:
1894 vikas 6617
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6618
      self.success.write(oprot)
6619
      oprot.writeFieldEnd()
3431 rajveer 6620
    if self.ucx is not None:
1894 vikas 6621
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6622
      self.ucx.write(oprot)
6623
      oprot.writeFieldEnd()
6624
    oprot.writeFieldStop()
6625
    oprot.writeStructEnd()
6626
 
3431 rajveer 6627
  def validate(self):
6628
    return
6629
 
6630
 
1894 vikas 6631
  def __repr__(self):
6632
    L = ['%s=%r' % (key, value)
6633
      for key, value in self.__dict__.iteritems()]
6634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6635
 
6636
  def __eq__(self, other):
6637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6638
 
6639
  def __ne__(self, other):
6640
    return not (self == other)
6641
 
594 rajveer 6642
class getDefaultAddressId_args:
6643
  """
6644
  Attributes:
6645
   - userId
6646
  """
6647
 
6648
  thrift_spec = (
6649
    None, # 0
6650
    (1, TType.I64, 'userId', None, None, ), # 1
6651
  )
6652
 
6653
  def __init__(self, userId=None,):
6654
    self.userId = userId
6655
 
6656
  def read(self, iprot):
6657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6659
      return
6660
    iprot.readStructBegin()
6661
    while True:
6662
      (fname, ftype, fid) = iprot.readFieldBegin()
6663
      if ftype == TType.STOP:
6664
        break
6665
      if fid == 1:
6666
        if ftype == TType.I64:
6667
          self.userId = iprot.readI64();
6668
        else:
6669
          iprot.skip(ftype)
6670
      else:
6671
        iprot.skip(ftype)
6672
      iprot.readFieldEnd()
6673
    iprot.readStructEnd()
6674
 
6675
  def write(self, oprot):
6676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6678
      return
6679
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6680
    if self.userId is not None:
594 rajveer 6681
      oprot.writeFieldBegin('userId', TType.I64, 1)
6682
      oprot.writeI64(self.userId)
6683
      oprot.writeFieldEnd()
6684
    oprot.writeFieldStop()
6685
    oprot.writeStructEnd()
6686
 
3431 rajveer 6687
  def validate(self):
6688
    return
6689
 
6690
 
594 rajveer 6691
  def __repr__(self):
6692
    L = ['%s=%r' % (key, value)
6693
      for key, value in self.__dict__.iteritems()]
6694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6695
 
6696
  def __eq__(self, other):
6697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6698
 
6699
  def __ne__(self, other):
6700
    return not (self == other)
6701
 
6702
class getDefaultAddressId_result:
6703
  """
6704
  Attributes:
6705
   - success
6706
   - ucx
6707
  """
6708
 
6709
  thrift_spec = (
6710
    (0, TType.I64, 'success', None, None, ), # 0
6711
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6712
  )
6713
 
6714
  def __init__(self, success=None, ucx=None,):
6715
    self.success = success
6716
    self.ucx = ucx
6717
 
6718
  def read(self, iprot):
6719
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6720
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6721
      return
6722
    iprot.readStructBegin()
6723
    while True:
6724
      (fname, ftype, fid) = iprot.readFieldBegin()
6725
      if ftype == TType.STOP:
6726
        break
6727
      if fid == 0:
6728
        if ftype == TType.I64:
6729
          self.success = iprot.readI64();
6730
        else:
6731
          iprot.skip(ftype)
6732
      elif fid == 1:
6733
        if ftype == TType.STRUCT:
6734
          self.ucx = UserContextException()
6735
          self.ucx.read(iprot)
6736
        else:
6737
          iprot.skip(ftype)
6738
      else:
6739
        iprot.skip(ftype)
6740
      iprot.readFieldEnd()
6741
    iprot.readStructEnd()
6742
 
6743
  def write(self, oprot):
6744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6746
      return
6747
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6748
    if self.success is not None:
594 rajveer 6749
      oprot.writeFieldBegin('success', TType.I64, 0)
6750
      oprot.writeI64(self.success)
6751
      oprot.writeFieldEnd()
3431 rajveer 6752
    if self.ucx is not None:
594 rajveer 6753
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6754
      self.ucx.write(oprot)
6755
      oprot.writeFieldEnd()
6756
    oprot.writeFieldStop()
6757
    oprot.writeStructEnd()
6758
 
3431 rajveer 6759
  def validate(self):
6760
    return
6761
 
6762
 
594 rajveer 6763
  def __repr__(self):
6764
    L = ['%s=%r' % (key, value)
6765
      for key, value in self.__dict__.iteritems()]
6766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6767
 
6768
  def __eq__(self, other):
6769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6770
 
6771
  def __ne__(self, other):
6772
    return not (self == other)
6773
 
785 rajveer 6774
class getDefaultPincode_args:
6775
  """
6776
  Attributes:
6777
   - userId
6778
  """
6779
 
6780
  thrift_spec = (
6781
    None, # 0
6782
    (1, TType.I64, 'userId', None, None, ), # 1
6783
  )
6784
 
6785
  def __init__(self, userId=None,):
6786
    self.userId = userId
6787
 
6788
  def read(self, iprot):
6789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6791
      return
6792
    iprot.readStructBegin()
6793
    while True:
6794
      (fname, ftype, fid) = iprot.readFieldBegin()
6795
      if ftype == TType.STOP:
6796
        break
6797
      if fid == 1:
6798
        if ftype == TType.I64:
6799
          self.userId = iprot.readI64();
6800
        else:
6801
          iprot.skip(ftype)
6802
      else:
6803
        iprot.skip(ftype)
6804
      iprot.readFieldEnd()
6805
    iprot.readStructEnd()
6806
 
6807
  def write(self, oprot):
6808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6810
      return
6811
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6812
    if self.userId is not None:
785 rajveer 6813
      oprot.writeFieldBegin('userId', TType.I64, 1)
6814
      oprot.writeI64(self.userId)
6815
      oprot.writeFieldEnd()
6816
    oprot.writeFieldStop()
6817
    oprot.writeStructEnd()
6818
 
3431 rajveer 6819
  def validate(self):
6820
    return
6821
 
6822
 
785 rajveer 6823
  def __repr__(self):
6824
    L = ['%s=%r' % (key, value)
6825
      for key, value in self.__dict__.iteritems()]
6826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6827
 
6828
  def __eq__(self, other):
6829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6830
 
6831
  def __ne__(self, other):
6832
    return not (self == other)
6833
 
6834
class getDefaultPincode_result:
6835
  """
6836
  Attributes:
6837
   - success
6838
   - ucx
6839
  """
6840
 
6841
  thrift_spec = (
6842
    (0, TType.STRING, 'success', None, None, ), # 0
6843
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6844
  )
6845
 
6846
  def __init__(self, success=None, ucx=None,):
6847
    self.success = success
6848
    self.ucx = ucx
6849
 
6850
  def read(self, iprot):
6851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6853
      return
6854
    iprot.readStructBegin()
6855
    while True:
6856
      (fname, ftype, fid) = iprot.readFieldBegin()
6857
      if ftype == TType.STOP:
6858
        break
6859
      if fid == 0:
6860
        if ftype == TType.STRING:
6861
          self.success = iprot.readString();
6862
        else:
6863
          iprot.skip(ftype)
6864
      elif fid == 1:
6865
        if ftype == TType.STRUCT:
6866
          self.ucx = UserContextException()
6867
          self.ucx.read(iprot)
6868
        else:
6869
          iprot.skip(ftype)
6870
      else:
6871
        iprot.skip(ftype)
6872
      iprot.readFieldEnd()
6873
    iprot.readStructEnd()
6874
 
6875
  def write(self, oprot):
6876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6878
      return
6879
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6880
    if self.success is not None:
785 rajveer 6881
      oprot.writeFieldBegin('success', TType.STRING, 0)
6882
      oprot.writeString(self.success)
6883
      oprot.writeFieldEnd()
3431 rajveer 6884
    if self.ucx is not None:
785 rajveer 6885
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6886
      self.ucx.write(oprot)
6887
      oprot.writeFieldEnd()
6888
    oprot.writeFieldStop()
6889
    oprot.writeStructEnd()
6890
 
3431 rajveer 6891
  def validate(self):
6892
    return
6893
 
6894
 
785 rajveer 6895
  def __repr__(self):
6896
    L = ['%s=%r' % (key, value)
6897
      for key, value in self.__dict__.iteritems()]
6898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6899
 
6900
  def __eq__(self, other):
6901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6902
 
6903
  def __ne__(self, other):
6904
    return not (self == other)
6905
 
1274 varun.gupt 6906
class saveUserCommunication_args:
6907
  """
6908
  Attributes:
6909
   - userId
6910
   - replyTo
6911
   - communicationType
6912
   - orderId
6913
   - airwaybillNo
6914
   - productName
6915
   - subject
6916
   - message
6917
  """
6918
 
6919
  thrift_spec = (
6920
    None, # 0
6921
    (1, TType.I64, 'userId', None, None, ), # 1
6922
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6923
    (3, TType.I64, 'communicationType', None, None, ), # 3
6924
    (4, TType.I64, 'orderId', None, None, ), # 4
6925
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6926
    (6, TType.STRING, 'productName', None, None, ), # 6
6927
    (7, TType.STRING, 'subject', None, None, ), # 7
6928
    (8, TType.STRING, 'message', None, None, ), # 8
6929
  )
6930
 
6931
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6932
    self.userId = userId
6933
    self.replyTo = replyTo
6934
    self.communicationType = communicationType
6935
    self.orderId = orderId
6936
    self.airwaybillNo = airwaybillNo
6937
    self.productName = productName
6938
    self.subject = subject
6939
    self.message = message
6940
 
6941
  def read(self, iprot):
6942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6944
      return
6945
    iprot.readStructBegin()
6946
    while True:
6947
      (fname, ftype, fid) = iprot.readFieldBegin()
6948
      if ftype == TType.STOP:
6949
        break
6950
      if fid == 1:
6951
        if ftype == TType.I64:
6952
          self.userId = iprot.readI64();
6953
        else:
6954
          iprot.skip(ftype)
6955
      elif fid == 2:
6956
        if ftype == TType.STRING:
6957
          self.replyTo = iprot.readString();
6958
        else:
6959
          iprot.skip(ftype)
6960
      elif fid == 3:
6961
        if ftype == TType.I64:
6962
          self.communicationType = iprot.readI64();
6963
        else:
6964
          iprot.skip(ftype)
6965
      elif fid == 4:
6966
        if ftype == TType.I64:
6967
          self.orderId = iprot.readI64();
6968
        else:
6969
          iprot.skip(ftype)
6970
      elif fid == 5:
6971
        if ftype == TType.STRING:
6972
          self.airwaybillNo = iprot.readString();
6973
        else:
6974
          iprot.skip(ftype)
6975
      elif fid == 6:
6976
        if ftype == TType.STRING:
6977
          self.productName = iprot.readString();
6978
        else:
6979
          iprot.skip(ftype)
6980
      elif fid == 7:
6981
        if ftype == TType.STRING:
6982
          self.subject = iprot.readString();
6983
        else:
6984
          iprot.skip(ftype)
6985
      elif fid == 8:
6986
        if ftype == TType.STRING:
6987
          self.message = iprot.readString();
6988
        else:
6989
          iprot.skip(ftype)
6990
      else:
6991
        iprot.skip(ftype)
6992
      iprot.readFieldEnd()
6993
    iprot.readStructEnd()
6994
 
6995
  def write(self, oprot):
6996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6998
      return
6999
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7000
    if self.userId is not None:
1274 varun.gupt 7001
      oprot.writeFieldBegin('userId', TType.I64, 1)
7002
      oprot.writeI64(self.userId)
7003
      oprot.writeFieldEnd()
3431 rajveer 7004
    if self.replyTo is not None:
1274 varun.gupt 7005
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7006
      oprot.writeString(self.replyTo)
7007
      oprot.writeFieldEnd()
3431 rajveer 7008
    if self.communicationType is not None:
1274 varun.gupt 7009
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7010
      oprot.writeI64(self.communicationType)
7011
      oprot.writeFieldEnd()
3431 rajveer 7012
    if self.orderId is not None:
1274 varun.gupt 7013
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7014
      oprot.writeI64(self.orderId)
7015
      oprot.writeFieldEnd()
3431 rajveer 7016
    if self.airwaybillNo is not None:
1274 varun.gupt 7017
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7018
      oprot.writeString(self.airwaybillNo)
7019
      oprot.writeFieldEnd()
3431 rajveer 7020
    if self.productName is not None:
1274 varun.gupt 7021
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7022
      oprot.writeString(self.productName)
7023
      oprot.writeFieldEnd()
3431 rajveer 7024
    if self.subject is not None:
1274 varun.gupt 7025
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7026
      oprot.writeString(self.subject)
7027
      oprot.writeFieldEnd()
3431 rajveer 7028
    if self.message is not None:
1274 varun.gupt 7029
      oprot.writeFieldBegin('message', TType.STRING, 8)
7030
      oprot.writeString(self.message)
7031
      oprot.writeFieldEnd()
7032
    oprot.writeFieldStop()
7033
    oprot.writeStructEnd()
7034
 
3431 rajveer 7035
  def validate(self):
7036
    return
7037
 
7038
 
1274 varun.gupt 7039
  def __repr__(self):
7040
    L = ['%s=%r' % (key, value)
7041
      for key, value in self.__dict__.iteritems()]
7042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7043
 
7044
  def __eq__(self, other):
7045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7046
 
7047
  def __ne__(self, other):
7048
    return not (self == other)
7049
 
7050
class saveUserCommunication_result:
7051
  """
7052
  Attributes:
7053
   - success
7054
   - ucx
7055
  """
7056
 
7057
  thrift_spec = (
7058
    (0, TType.BOOL, 'success', None, None, ), # 0
7059
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7060
  )
7061
 
7062
  def __init__(self, success=None, ucx=None,):
7063
    self.success = success
7064
    self.ucx = ucx
7065
 
7066
  def read(self, iprot):
7067
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7068
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7069
      return
7070
    iprot.readStructBegin()
7071
    while True:
7072
      (fname, ftype, fid) = iprot.readFieldBegin()
7073
      if ftype == TType.STOP:
7074
        break
7075
      if fid == 0:
7076
        if ftype == TType.BOOL:
7077
          self.success = iprot.readBool();
7078
        else:
7079
          iprot.skip(ftype)
7080
      elif fid == 1:
7081
        if ftype == TType.STRUCT:
7082
          self.ucx = UserCommunicationException()
7083
          self.ucx.read(iprot)
7084
        else:
7085
          iprot.skip(ftype)
7086
      else:
7087
        iprot.skip(ftype)
7088
      iprot.readFieldEnd()
7089
    iprot.readStructEnd()
7090
 
7091
  def write(self, oprot):
7092
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7093
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7094
      return
7095
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7096
    if self.success is not None:
1274 varun.gupt 7097
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7098
      oprot.writeBool(self.success)
7099
      oprot.writeFieldEnd()
3431 rajveer 7100
    if self.ucx is not None:
1274 varun.gupt 7101
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7102
      self.ucx.write(oprot)
7103
      oprot.writeFieldEnd()
7104
    oprot.writeFieldStop()
7105
    oprot.writeStructEnd()
7106
 
3431 rajveer 7107
  def validate(self):
7108
    return
7109
 
7110
 
1274 varun.gupt 7111
  def __repr__(self):
7112
    L = ['%s=%r' % (key, value)
7113
      for key, value in self.__dict__.iteritems()]
7114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7115
 
7116
  def __eq__(self, other):
7117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7118
 
7119
  def __ne__(self, other):
7120
    return not (self == other)
7121
 
1590 varun.gupt 7122
class getUserCommunicationById_args:
7123
  """
7124
  Attributes:
7125
   - id
7126
  """
7127
 
7128
  thrift_spec = (
7129
    None, # 0
7130
    (1, TType.I64, 'id', None, None, ), # 1
7131
  )
7132
 
7133
  def __init__(self, id=None,):
7134
    self.id = id
7135
 
7136
  def read(self, iprot):
7137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7139
      return
7140
    iprot.readStructBegin()
7141
    while True:
7142
      (fname, ftype, fid) = iprot.readFieldBegin()
7143
      if ftype == TType.STOP:
7144
        break
7145
      if fid == 1:
7146
        if ftype == TType.I64:
7147
          self.id = iprot.readI64();
7148
        else:
7149
          iprot.skip(ftype)
7150
      else:
7151
        iprot.skip(ftype)
7152
      iprot.readFieldEnd()
7153
    iprot.readStructEnd()
7154
 
7155
  def write(self, oprot):
7156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7158
      return
7159
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7160
    if self.id is not None:
1590 varun.gupt 7161
      oprot.writeFieldBegin('id', TType.I64, 1)
7162
      oprot.writeI64(self.id)
7163
      oprot.writeFieldEnd()
7164
    oprot.writeFieldStop()
7165
    oprot.writeStructEnd()
7166
 
3431 rajveer 7167
  def validate(self):
7168
    return
7169
 
7170
 
1590 varun.gupt 7171
  def __repr__(self):
7172
    L = ['%s=%r' % (key, value)
7173
      for key, value in self.__dict__.iteritems()]
7174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7175
 
7176
  def __eq__(self, other):
7177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7178
 
7179
  def __ne__(self, other):
7180
    return not (self == other)
7181
 
7182
class getUserCommunicationById_result:
7183
  """
7184
  Attributes:
7185
   - success
7186
   - ucx
7187
  """
7188
 
7189
  thrift_spec = (
7190
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7191
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7192
  )
7193
 
7194
  def __init__(self, success=None, ucx=None,):
7195
    self.success = success
7196
    self.ucx = ucx
7197
 
7198
  def read(self, iprot):
7199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7201
      return
7202
    iprot.readStructBegin()
7203
    while True:
7204
      (fname, ftype, fid) = iprot.readFieldBegin()
7205
      if ftype == TType.STOP:
7206
        break
7207
      if fid == 0:
7208
        if ftype == TType.STRUCT:
7209
          self.success = UserCommunication()
7210
          self.success.read(iprot)
7211
        else:
7212
          iprot.skip(ftype)
7213
      elif fid == 1:
7214
        if ftype == TType.STRUCT:
7215
          self.ucx = UserCommunicationException()
7216
          self.ucx.read(iprot)
7217
        else:
7218
          iprot.skip(ftype)
7219
      else:
7220
        iprot.skip(ftype)
7221
      iprot.readFieldEnd()
7222
    iprot.readStructEnd()
7223
 
7224
  def write(self, oprot):
7225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7227
      return
7228
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7229
    if self.success is not None:
1590 varun.gupt 7230
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7231
      self.success.write(oprot)
7232
      oprot.writeFieldEnd()
3431 rajveer 7233
    if self.ucx is not None:
1590 varun.gupt 7234
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7235
      self.ucx.write(oprot)
7236
      oprot.writeFieldEnd()
7237
    oprot.writeFieldStop()
7238
    oprot.writeStructEnd()
7239
 
3431 rajveer 7240
  def validate(self):
7241
    return
7242
 
7243
 
1590 varun.gupt 7244
  def __repr__(self):
7245
    L = ['%s=%r' % (key, value)
7246
      for key, value in self.__dict__.iteritems()]
7247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7248
 
7249
  def __eq__(self, other):
7250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7251
 
7252
  def __ne__(self, other):
7253
    return not (self == other)
7254
 
7255
class getUserCommunicationByUser_args:
7256
  """
7257
  Attributes:
7258
   - userId
7259
  """
7260
 
7261
  thrift_spec = (
7262
    None, # 0
7263
    (1, TType.I64, 'userId', None, None, ), # 1
7264
  )
7265
 
7266
  def __init__(self, userId=None,):
7267
    self.userId = userId
7268
 
7269
  def read(self, iprot):
7270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7272
      return
7273
    iprot.readStructBegin()
7274
    while True:
7275
      (fname, ftype, fid) = iprot.readFieldBegin()
7276
      if ftype == TType.STOP:
7277
        break
7278
      if fid == 1:
7279
        if ftype == TType.I64:
7280
          self.userId = iprot.readI64();
7281
        else:
7282
          iprot.skip(ftype)
7283
      else:
7284
        iprot.skip(ftype)
7285
      iprot.readFieldEnd()
7286
    iprot.readStructEnd()
7287
 
7288
  def write(self, oprot):
7289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7291
      return
7292
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7293
    if self.userId is not None:
1590 varun.gupt 7294
      oprot.writeFieldBegin('userId', TType.I64, 1)
7295
      oprot.writeI64(self.userId)
7296
      oprot.writeFieldEnd()
7297
    oprot.writeFieldStop()
7298
    oprot.writeStructEnd()
7299
 
3431 rajveer 7300
  def validate(self):
7301
    return
7302
 
7303
 
1590 varun.gupt 7304
  def __repr__(self):
7305
    L = ['%s=%r' % (key, value)
7306
      for key, value in self.__dict__.iteritems()]
7307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7308
 
7309
  def __eq__(self, other):
7310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7311
 
7312
  def __ne__(self, other):
7313
    return not (self == other)
7314
 
7315
class getUserCommunicationByUser_result:
7316
  """
7317
  Attributes:
7318
   - success
7319
   - ucx
7320
  """
7321
 
7322
  thrift_spec = (
7323
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7324
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7325
  )
7326
 
7327
  def __init__(self, success=None, ucx=None,):
7328
    self.success = success
7329
    self.ucx = ucx
7330
 
7331
  def read(self, iprot):
7332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7334
      return
7335
    iprot.readStructBegin()
7336
    while True:
7337
      (fname, ftype, fid) = iprot.readFieldBegin()
7338
      if ftype == TType.STOP:
7339
        break
7340
      if fid == 0:
7341
        if ftype == TType.LIST:
7342
          self.success = []
6736 amit.gupta 7343
          (_etype93, _size90) = iprot.readListBegin()
7344
          for _i94 in xrange(_size90):
7345
            _elem95 = UserCommunication()
7346
            _elem95.read(iprot)
7347
            self.success.append(_elem95)
1590 varun.gupt 7348
          iprot.readListEnd()
7349
        else:
7350
          iprot.skip(ftype)
7351
      elif fid == 1:
7352
        if ftype == TType.STRUCT:
7353
          self.ucx = UserCommunicationException()
7354
          self.ucx.read(iprot)
7355
        else:
7356
          iprot.skip(ftype)
7357
      else:
7358
        iprot.skip(ftype)
7359
      iprot.readFieldEnd()
7360
    iprot.readStructEnd()
7361
 
7362
  def write(self, oprot):
7363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7365
      return
7366
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7367
    if self.success is not None:
1590 varun.gupt 7368
      oprot.writeFieldBegin('success', TType.LIST, 0)
7369
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7370
      for iter96 in self.success:
7371
        iter96.write(oprot)
1590 varun.gupt 7372
      oprot.writeListEnd()
7373
      oprot.writeFieldEnd()
3431 rajveer 7374
    if self.ucx is not None:
1590 varun.gupt 7375
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7376
      self.ucx.write(oprot)
7377
      oprot.writeFieldEnd()
7378
    oprot.writeFieldStop()
7379
    oprot.writeStructEnd()
7380
 
3431 rajveer 7381
  def validate(self):
7382
    return
7383
 
7384
 
1590 varun.gupt 7385
  def __repr__(self):
7386
    L = ['%s=%r' % (key, value)
7387
      for key, value in self.__dict__.iteritems()]
7388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7389
 
7390
  def __eq__(self, other):
7391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7392
 
7393
  def __ne__(self, other):
7394
    return not (self == other)
7395
 
7396
class getAllUserCommunications_args:
7397
 
7398
  thrift_spec = (
7399
  )
7400
 
7401
  def read(self, iprot):
7402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7404
      return
7405
    iprot.readStructBegin()
7406
    while True:
7407
      (fname, ftype, fid) = iprot.readFieldBegin()
7408
      if ftype == TType.STOP:
7409
        break
7410
      else:
7411
        iprot.skip(ftype)
7412
      iprot.readFieldEnd()
7413
    iprot.readStructEnd()
7414
 
7415
  def write(self, oprot):
7416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7418
      return
7419
    oprot.writeStructBegin('getAllUserCommunications_args')
7420
    oprot.writeFieldStop()
7421
    oprot.writeStructEnd()
7422
 
3431 rajveer 7423
  def validate(self):
7424
    return
7425
 
7426
 
1590 varun.gupt 7427
  def __repr__(self):
7428
    L = ['%s=%r' % (key, value)
7429
      for key, value in self.__dict__.iteritems()]
7430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7431
 
7432
  def __eq__(self, other):
7433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7434
 
7435
  def __ne__(self, other):
7436
    return not (self == other)
7437
 
7438
class getAllUserCommunications_result:
7439
  """
7440
  Attributes:
7441
   - success
7442
   - ucx
7443
  """
7444
 
7445
  thrift_spec = (
7446
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7447
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7448
  )
7449
 
7450
  def __init__(self, success=None, ucx=None,):
7451
    self.success = success
7452
    self.ucx = ucx
7453
 
7454
  def read(self, iprot):
7455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7457
      return
7458
    iprot.readStructBegin()
7459
    while True:
7460
      (fname, ftype, fid) = iprot.readFieldBegin()
7461
      if ftype == TType.STOP:
7462
        break
7463
      if fid == 0:
7464
        if ftype == TType.LIST:
7465
          self.success = []
6736 amit.gupta 7466
          (_etype100, _size97) = iprot.readListBegin()
7467
          for _i101 in xrange(_size97):
7468
            _elem102 = UserCommunication()
7469
            _elem102.read(iprot)
7470
            self.success.append(_elem102)
1590 varun.gupt 7471
          iprot.readListEnd()
7472
        else:
7473
          iprot.skip(ftype)
7474
      elif fid == 1:
7475
        if ftype == TType.STRUCT:
7476
          self.ucx = UserCommunicationException()
7477
          self.ucx.read(iprot)
7478
        else:
7479
          iprot.skip(ftype)
7480
      else:
7481
        iprot.skip(ftype)
7482
      iprot.readFieldEnd()
7483
    iprot.readStructEnd()
7484
 
7485
  def write(self, oprot):
7486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7488
      return
7489
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7490
    if self.success is not None:
1590 varun.gupt 7491
      oprot.writeFieldBegin('success', TType.LIST, 0)
7492
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7493
      for iter103 in self.success:
7494
        iter103.write(oprot)
1590 varun.gupt 7495
      oprot.writeListEnd()
7496
      oprot.writeFieldEnd()
3431 rajveer 7497
    if self.ucx is not None:
1590 varun.gupt 7498
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7499
      self.ucx.write(oprot)
7500
      oprot.writeFieldEnd()
7501
    oprot.writeFieldStop()
7502
    oprot.writeStructEnd()
7503
 
3431 rajveer 7504
  def validate(self):
7505
    return
7506
 
7507
 
1590 varun.gupt 7508
  def __repr__(self):
7509
    L = ['%s=%r' % (key, value)
7510
      for key, value in self.__dict__.iteritems()]
7511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7512
 
7513
  def __eq__(self, other):
7514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7515
 
7516
  def __ne__(self, other):
7517
    return not (self == other)
7518
 
5407 amar.kumar 7519
class removeUserCommunication_args:
7520
  """
7521
  Attributes:
7522
   - id
7523
  """
7524
 
7525
  thrift_spec = (
7526
    None, # 0
7527
    (1, TType.I64, 'id', None, None, ), # 1
7528
  )
7529
 
7530
  def __init__(self, id=None,):
7531
    self.id = id
7532
 
7533
  def read(self, iprot):
7534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7536
      return
7537
    iprot.readStructBegin()
7538
    while True:
7539
      (fname, ftype, fid) = iprot.readFieldBegin()
7540
      if ftype == TType.STOP:
7541
        break
7542
      if fid == 1:
7543
        if ftype == TType.I64:
7544
          self.id = iprot.readI64();
7545
        else:
7546
          iprot.skip(ftype)
7547
      else:
7548
        iprot.skip(ftype)
7549
      iprot.readFieldEnd()
7550
    iprot.readStructEnd()
7551
 
7552
  def write(self, oprot):
7553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7555
      return
7556
    oprot.writeStructBegin('removeUserCommunication_args')
7557
    if self.id is not None:
7558
      oprot.writeFieldBegin('id', TType.I64, 1)
7559
      oprot.writeI64(self.id)
7560
      oprot.writeFieldEnd()
7561
    oprot.writeFieldStop()
7562
    oprot.writeStructEnd()
7563
 
7564
  def validate(self):
7565
    return
7566
 
7567
 
7568
  def __repr__(self):
7569
    L = ['%s=%r' % (key, value)
7570
      for key, value in self.__dict__.iteritems()]
7571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7572
 
7573
  def __eq__(self, other):
7574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7575
 
7576
  def __ne__(self, other):
7577
    return not (self == other)
7578
 
7579
class removeUserCommunication_result:
7580
  """
7581
  Attributes:
7582
   - ucx
7583
  """
7584
 
7585
  thrift_spec = (
7586
    None, # 0
7587
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7588
  )
7589
 
7590
  def __init__(self, ucx=None,):
7591
    self.ucx = ucx
7592
 
7593
  def read(self, iprot):
7594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7596
      return
7597
    iprot.readStructBegin()
7598
    while True:
7599
      (fname, ftype, fid) = iprot.readFieldBegin()
7600
      if ftype == TType.STOP:
7601
        break
7602
      if fid == 1:
7603
        if ftype == TType.STRUCT:
7604
          self.ucx = UserCommunicationException()
7605
          self.ucx.read(iprot)
7606
        else:
7607
          iprot.skip(ftype)
7608
      else:
7609
        iprot.skip(ftype)
7610
      iprot.readFieldEnd()
7611
    iprot.readStructEnd()
7612
 
7613
  def write(self, oprot):
7614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7616
      return
7617
    oprot.writeStructBegin('removeUserCommunication_result')
7618
    if self.ucx is not None:
7619
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7620
      self.ucx.write(oprot)
7621
      oprot.writeFieldEnd()
7622
    oprot.writeFieldStop()
7623
    oprot.writeStructEnd()
7624
 
7625
  def validate(self):
7626
    return
7627
 
7628
 
7629
  def __repr__(self):
7630
    L = ['%s=%r' % (key, value)
7631
      for key, value in self.__dict__.iteritems()]
7632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7633
 
7634
  def __eq__(self, other):
7635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7636
 
7637
  def __ne__(self, other):
7638
    return not (self == other)
7639
 
1845 vikas 7640
class createMasterAffiliate_args:
7641
  """
7642
  Attributes:
7643
   - name
1859 vikas 7644
   - addedOn
1845 vikas 7645
  """
7646
 
7647
  thrift_spec = (
7648
    None, # 0
7649
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7650
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7651
  )
7652
 
1859 vikas 7653
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7654
    self.name = name
1859 vikas 7655
    self.addedOn = addedOn
1845 vikas 7656
 
7657
  def read(self, iprot):
7658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7660
      return
7661
    iprot.readStructBegin()
7662
    while True:
7663
      (fname, ftype, fid) = iprot.readFieldBegin()
7664
      if ftype == TType.STOP:
7665
        break
7666
      if fid == 1:
7667
        if ftype == TType.STRING:
7668
          self.name = iprot.readString();
7669
        else:
7670
          iprot.skip(ftype)
1859 vikas 7671
      elif fid == 2:
7672
        if ftype == TType.I64:
7673
          self.addedOn = iprot.readI64();
7674
        else:
7675
          iprot.skip(ftype)
1845 vikas 7676
      else:
7677
        iprot.skip(ftype)
7678
      iprot.readFieldEnd()
7679
    iprot.readStructEnd()
7680
 
7681
  def write(self, oprot):
7682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7684
      return
7685
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7686
    if self.name is not None:
1845 vikas 7687
      oprot.writeFieldBegin('name', TType.STRING, 1)
7688
      oprot.writeString(self.name)
7689
      oprot.writeFieldEnd()
3431 rajveer 7690
    if self.addedOn is not None:
1859 vikas 7691
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7692
      oprot.writeI64(self.addedOn)
7693
      oprot.writeFieldEnd()
1845 vikas 7694
    oprot.writeFieldStop()
7695
    oprot.writeStructEnd()
7696
 
3431 rajveer 7697
  def validate(self):
7698
    return
7699
 
7700
 
1845 vikas 7701
  def __repr__(self):
7702
    L = ['%s=%r' % (key, value)
7703
      for key, value in self.__dict__.iteritems()]
7704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7705
 
7706
  def __eq__(self, other):
7707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7708
 
7709
  def __ne__(self, other):
7710
    return not (self == other)
7711
 
7712
class createMasterAffiliate_result:
7713
  """
7714
  Attributes:
7715
   - success
7716
   - utx
7717
  """
7718
 
7719
  thrift_spec = (
7720
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7721
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7722
  )
7723
 
7724
  def __init__(self, success=None, utx=None,):
7725
    self.success = success
7726
    self.utx = utx
7727
 
7728
  def read(self, iprot):
7729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7731
      return
7732
    iprot.readStructBegin()
7733
    while True:
7734
      (fname, ftype, fid) = iprot.readFieldBegin()
7735
      if ftype == TType.STOP:
7736
        break
7737
      if fid == 0:
7738
        if ftype == TType.STRUCT:
7739
          self.success = MasterAffiliate()
7740
          self.success.read(iprot)
7741
        else:
7742
          iprot.skip(ftype)
7743
      elif fid == 1:
7744
        if ftype == TType.STRUCT:
1996 vikas 7745
          self.utx = UserAffiliateException()
1845 vikas 7746
          self.utx.read(iprot)
7747
        else:
7748
          iprot.skip(ftype)
7749
      else:
7750
        iprot.skip(ftype)
7751
      iprot.readFieldEnd()
7752
    iprot.readStructEnd()
7753
 
7754
  def write(self, oprot):
7755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7757
      return
7758
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7759
    if self.success is not None:
1845 vikas 7760
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7761
      self.success.write(oprot)
7762
      oprot.writeFieldEnd()
3431 rajveer 7763
    if self.utx is not None:
1845 vikas 7764
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7765
      self.utx.write(oprot)
7766
      oprot.writeFieldEnd()
7767
    oprot.writeFieldStop()
7768
    oprot.writeStructEnd()
7769
 
3431 rajveer 7770
  def validate(self):
7771
    return
7772
 
7773
 
1845 vikas 7774
  def __repr__(self):
7775
    L = ['%s=%r' % (key, value)
7776
      for key, value in self.__dict__.iteritems()]
7777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7778
 
7779
  def __eq__(self, other):
7780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7781
 
7782
  def __ne__(self, other):
7783
    return not (self == other)
7784
 
1899 vikas 7785
class getAllMasterAffiliates_args:
7786
 
7787
  thrift_spec = (
7788
  )
7789
 
7790
  def read(self, iprot):
7791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7793
      return
7794
    iprot.readStructBegin()
7795
    while True:
7796
      (fname, ftype, fid) = iprot.readFieldBegin()
7797
      if ftype == TType.STOP:
7798
        break
7799
      else:
7800
        iprot.skip(ftype)
7801
      iprot.readFieldEnd()
7802
    iprot.readStructEnd()
7803
 
7804
  def write(self, oprot):
7805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7807
      return
7808
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7809
    oprot.writeFieldStop()
7810
    oprot.writeStructEnd()
7811
 
3431 rajveer 7812
  def validate(self):
7813
    return
7814
 
7815
 
1899 vikas 7816
  def __repr__(self):
7817
    L = ['%s=%r' % (key, value)
7818
      for key, value in self.__dict__.iteritems()]
7819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7820
 
7821
  def __eq__(self, other):
7822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7823
 
7824
  def __ne__(self, other):
7825
    return not (self == other)
7826
 
7827
class getAllMasterAffiliates_result:
7828
  """
7829
  Attributes:
7830
   - success
7831
   - utx
7832
  """
7833
 
7834
  thrift_spec = (
7835
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7836
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7837
  )
7838
 
7839
  def __init__(self, success=None, utx=None,):
7840
    self.success = success
7841
    self.utx = utx
7842
 
7843
  def read(self, iprot):
7844
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7845
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7846
      return
7847
    iprot.readStructBegin()
7848
    while True:
7849
      (fname, ftype, fid) = iprot.readFieldBegin()
7850
      if ftype == TType.STOP:
7851
        break
7852
      if fid == 0:
7853
        if ftype == TType.LIST:
7854
          self.success = []
6736 amit.gupta 7855
          (_etype107, _size104) = iprot.readListBegin()
7856
          for _i108 in xrange(_size104):
7857
            _elem109 = MasterAffiliate()
7858
            _elem109.read(iprot)
7859
            self.success.append(_elem109)
1899 vikas 7860
          iprot.readListEnd()
7861
        else:
7862
          iprot.skip(ftype)
7863
      elif fid == 1:
7864
        if ftype == TType.STRUCT:
1996 vikas 7865
          self.utx = UserAffiliateException()
1899 vikas 7866
          self.utx.read(iprot)
7867
        else:
7868
          iprot.skip(ftype)
7869
      else:
7870
        iprot.skip(ftype)
7871
      iprot.readFieldEnd()
7872
    iprot.readStructEnd()
7873
 
7874
  def write(self, oprot):
7875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7877
      return
7878
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7879
    if self.success is not None:
1899 vikas 7880
      oprot.writeFieldBegin('success', TType.LIST, 0)
7881
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7882
      for iter110 in self.success:
7883
        iter110.write(oprot)
1899 vikas 7884
      oprot.writeListEnd()
7885
      oprot.writeFieldEnd()
3431 rajveer 7886
    if self.utx is not None:
1899 vikas 7887
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7888
      self.utx.write(oprot)
7889
      oprot.writeFieldEnd()
7890
    oprot.writeFieldStop()
7891
    oprot.writeStructEnd()
7892
 
3431 rajveer 7893
  def validate(self):
7894
    return
7895
 
7896
 
1899 vikas 7897
  def __repr__(self):
7898
    L = ['%s=%r' % (key, value)
7899
      for key, value in self.__dict__.iteritems()]
7900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7901
 
7902
  def __eq__(self, other):
7903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7904
 
7905
  def __ne__(self, other):
7906
    return not (self == other)
7907
 
1845 vikas 7908
class getMasterAffiliateById_args:
7909
  """
7910
  Attributes:
7911
   - id
7912
  """
7913
 
7914
  thrift_spec = (
7915
    None, # 0
7916
    (1, TType.I64, 'id', None, None, ), # 1
7917
  )
7918
 
7919
  def __init__(self, id=None,):
7920
    self.id = id
7921
 
7922
  def read(self, iprot):
7923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7925
      return
7926
    iprot.readStructBegin()
7927
    while True:
7928
      (fname, ftype, fid) = iprot.readFieldBegin()
7929
      if ftype == TType.STOP:
7930
        break
7931
      if fid == 1:
7932
        if ftype == TType.I64:
7933
          self.id = iprot.readI64();
7934
        else:
7935
          iprot.skip(ftype)
7936
      else:
7937
        iprot.skip(ftype)
7938
      iprot.readFieldEnd()
7939
    iprot.readStructEnd()
7940
 
7941
  def write(self, oprot):
7942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7944
      return
7945
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7946
    if self.id is not None:
1845 vikas 7947
      oprot.writeFieldBegin('id', TType.I64, 1)
7948
      oprot.writeI64(self.id)
7949
      oprot.writeFieldEnd()
7950
    oprot.writeFieldStop()
7951
    oprot.writeStructEnd()
7952
 
3431 rajveer 7953
  def validate(self):
7954
    return
7955
 
7956
 
1845 vikas 7957
  def __repr__(self):
7958
    L = ['%s=%r' % (key, value)
7959
      for key, value in self.__dict__.iteritems()]
7960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7961
 
7962
  def __eq__(self, other):
7963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7964
 
7965
  def __ne__(self, other):
7966
    return not (self == other)
7967
 
7968
class getMasterAffiliateById_result:
7969
  """
7970
  Attributes:
7971
   - success
7972
   - utx
7973
  """
7974
 
7975
  thrift_spec = (
7976
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7977
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7978
  )
7979
 
7980
  def __init__(self, success=None, utx=None,):
7981
    self.success = success
7982
    self.utx = utx
7983
 
7984
  def read(self, iprot):
7985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7987
      return
7988
    iprot.readStructBegin()
7989
    while True:
7990
      (fname, ftype, fid) = iprot.readFieldBegin()
7991
      if ftype == TType.STOP:
7992
        break
7993
      if fid == 0:
7994
        if ftype == TType.STRUCT:
7995
          self.success = MasterAffiliate()
7996
          self.success.read(iprot)
7997
        else:
7998
          iprot.skip(ftype)
7999
      elif fid == 1:
8000
        if ftype == TType.STRUCT:
1996 vikas 8001
          self.utx = UserAffiliateException()
1845 vikas 8002
          self.utx.read(iprot)
8003
        else:
8004
          iprot.skip(ftype)
8005
      else:
8006
        iprot.skip(ftype)
8007
      iprot.readFieldEnd()
8008
    iprot.readStructEnd()
8009
 
8010
  def write(self, oprot):
8011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8013
      return
8014
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 8015
    if self.success is not None:
1845 vikas 8016
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8017
      self.success.write(oprot)
8018
      oprot.writeFieldEnd()
3431 rajveer 8019
    if self.utx is not None:
1845 vikas 8020
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8021
      self.utx.write(oprot)
8022
      oprot.writeFieldEnd()
8023
    oprot.writeFieldStop()
8024
    oprot.writeStructEnd()
8025
 
3431 rajveer 8026
  def validate(self):
8027
    return
8028
 
8029
 
1845 vikas 8030
  def __repr__(self):
8031
    L = ['%s=%r' % (key, value)
8032
      for key, value in self.__dict__.iteritems()]
8033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8034
 
8035
  def __eq__(self, other):
8036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8037
 
8038
  def __ne__(self, other):
8039
    return not (self == other)
8040
 
8041
class getMasterAffiliateByName_args:
8042
  """
8043
  Attributes:
8044
   - name
8045
  """
8046
 
8047
  thrift_spec = (
8048
    None, # 0
8049
    (1, TType.STRING, 'name', None, None, ), # 1
8050
  )
8051
 
8052
  def __init__(self, name=None,):
8053
    self.name = name
8054
 
8055
  def read(self, iprot):
8056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8058
      return
8059
    iprot.readStructBegin()
8060
    while True:
8061
      (fname, ftype, fid) = iprot.readFieldBegin()
8062
      if ftype == TType.STOP:
8063
        break
8064
      if fid == 1:
8065
        if ftype == TType.STRING:
8066
          self.name = iprot.readString();
8067
        else:
8068
          iprot.skip(ftype)
8069
      else:
8070
        iprot.skip(ftype)
8071
      iprot.readFieldEnd()
8072
    iprot.readStructEnd()
8073
 
8074
  def write(self, oprot):
8075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8077
      return
8078
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8079
    if self.name is not None:
1845 vikas 8080
      oprot.writeFieldBegin('name', TType.STRING, 1)
8081
      oprot.writeString(self.name)
8082
      oprot.writeFieldEnd()
8083
    oprot.writeFieldStop()
8084
    oprot.writeStructEnd()
8085
 
3431 rajveer 8086
  def validate(self):
8087
    return
8088
 
8089
 
1845 vikas 8090
  def __repr__(self):
8091
    L = ['%s=%r' % (key, value)
8092
      for key, value in self.__dict__.iteritems()]
8093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8094
 
8095
  def __eq__(self, other):
8096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8097
 
8098
  def __ne__(self, other):
8099
    return not (self == other)
8100
 
8101
class getMasterAffiliateByName_result:
8102
  """
8103
  Attributes:
8104
   - success
8105
   - utx
8106
  """
8107
 
8108
  thrift_spec = (
8109
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8110
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8111
  )
8112
 
8113
  def __init__(self, success=None, utx=None,):
8114
    self.success = success
8115
    self.utx = utx
8116
 
8117
  def read(self, iprot):
8118
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8119
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8120
      return
8121
    iprot.readStructBegin()
8122
    while True:
8123
      (fname, ftype, fid) = iprot.readFieldBegin()
8124
      if ftype == TType.STOP:
8125
        break
8126
      if fid == 0:
8127
        if ftype == TType.STRUCT:
8128
          self.success = MasterAffiliate()
8129
          self.success.read(iprot)
8130
        else:
8131
          iprot.skip(ftype)
8132
      elif fid == 1:
8133
        if ftype == TType.STRUCT:
1996 vikas 8134
          self.utx = UserAffiliateException()
1845 vikas 8135
          self.utx.read(iprot)
8136
        else:
8137
          iprot.skip(ftype)
8138
      else:
8139
        iprot.skip(ftype)
8140
      iprot.readFieldEnd()
8141
    iprot.readStructEnd()
8142
 
8143
  def write(self, oprot):
8144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8146
      return
8147
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8148
    if self.success is not None:
1845 vikas 8149
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8150
      self.success.write(oprot)
8151
      oprot.writeFieldEnd()
3431 rajveer 8152
    if self.utx is not None:
1845 vikas 8153
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8154
      self.utx.write(oprot)
8155
      oprot.writeFieldEnd()
8156
    oprot.writeFieldStop()
8157
    oprot.writeStructEnd()
8158
 
3431 rajveer 8159
  def validate(self):
8160
    return
8161
 
8162
 
1845 vikas 8163
  def __repr__(self):
8164
    L = ['%s=%r' % (key, value)
8165
      for key, value in self.__dict__.iteritems()]
8166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8167
 
8168
  def __eq__(self, other):
8169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8170
 
8171
  def __ne__(self, other):
8172
    return not (self == other)
8173
 
8174
class createAffiliate_args:
8175
  """
8176
  Attributes:
8177
   - name
8178
   - url
8179
   - masterAffiliateId
1859 vikas 8180
   - addedOn
1845 vikas 8181
  """
8182
 
8183
  thrift_spec = (
8184
    None, # 0
8185
    (1, TType.STRING, 'name', None, None, ), # 1
8186
    (2, TType.STRING, 'url', None, None, ), # 2
8187
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8188
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8189
  )
8190
 
1859 vikas 8191
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8192
    self.name = name
8193
    self.url = url
8194
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8195
    self.addedOn = addedOn
1845 vikas 8196
 
8197
  def read(self, iprot):
8198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8200
      return
8201
    iprot.readStructBegin()
8202
    while True:
8203
      (fname, ftype, fid) = iprot.readFieldBegin()
8204
      if ftype == TType.STOP:
8205
        break
8206
      if fid == 1:
8207
        if ftype == TType.STRING:
8208
          self.name = iprot.readString();
8209
        else:
8210
          iprot.skip(ftype)
8211
      elif fid == 2:
8212
        if ftype == TType.STRING:
8213
          self.url = iprot.readString();
8214
        else:
8215
          iprot.skip(ftype)
8216
      elif fid == 3:
8217
        if ftype == TType.I64:
8218
          self.masterAffiliateId = iprot.readI64();
8219
        else:
8220
          iprot.skip(ftype)
1859 vikas 8221
      elif fid == 4:
8222
        if ftype == TType.I64:
8223
          self.addedOn = iprot.readI64();
8224
        else:
8225
          iprot.skip(ftype)
1845 vikas 8226
      else:
8227
        iprot.skip(ftype)
8228
      iprot.readFieldEnd()
8229
    iprot.readStructEnd()
8230
 
8231
  def write(self, oprot):
8232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8234
      return
8235
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8236
    if self.name is not None:
1845 vikas 8237
      oprot.writeFieldBegin('name', TType.STRING, 1)
8238
      oprot.writeString(self.name)
8239
      oprot.writeFieldEnd()
3431 rajveer 8240
    if self.url is not None:
1845 vikas 8241
      oprot.writeFieldBegin('url', TType.STRING, 2)
8242
      oprot.writeString(self.url)
8243
      oprot.writeFieldEnd()
3431 rajveer 8244
    if self.masterAffiliateId is not None:
1845 vikas 8245
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8246
      oprot.writeI64(self.masterAffiliateId)
8247
      oprot.writeFieldEnd()
3431 rajveer 8248
    if self.addedOn is not None:
1859 vikas 8249
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8250
      oprot.writeI64(self.addedOn)
8251
      oprot.writeFieldEnd()
1845 vikas 8252
    oprot.writeFieldStop()
8253
    oprot.writeStructEnd()
8254
 
3431 rajveer 8255
  def validate(self):
8256
    return
8257
 
8258
 
1845 vikas 8259
  def __repr__(self):
8260
    L = ['%s=%r' % (key, value)
8261
      for key, value in self.__dict__.iteritems()]
8262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8263
 
8264
  def __eq__(self, other):
8265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8266
 
8267
  def __ne__(self, other):
8268
    return not (self == other)
8269
 
8270
class createAffiliate_result:
8271
  """
8272
  Attributes:
8273
   - success
8274
   - utx
8275
  """
8276
 
8277
  thrift_spec = (
8278
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8279
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8280
  )
8281
 
8282
  def __init__(self, success=None, utx=None,):
8283
    self.success = success
8284
    self.utx = utx
8285
 
8286
  def read(self, iprot):
8287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8289
      return
8290
    iprot.readStructBegin()
8291
    while True:
8292
      (fname, ftype, fid) = iprot.readFieldBegin()
8293
      if ftype == TType.STOP:
8294
        break
8295
      if fid == 0:
8296
        if ftype == TType.STRUCT:
8297
          self.success = Affiliate()
8298
          self.success.read(iprot)
8299
        else:
8300
          iprot.skip(ftype)
8301
      elif fid == 1:
8302
        if ftype == TType.STRUCT:
1996 vikas 8303
          self.utx = UserAffiliateException()
1845 vikas 8304
          self.utx.read(iprot)
8305
        else:
8306
          iprot.skip(ftype)
8307
      else:
8308
        iprot.skip(ftype)
8309
      iprot.readFieldEnd()
8310
    iprot.readStructEnd()
8311
 
8312
  def write(self, oprot):
8313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8315
      return
8316
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8317
    if self.success is not None:
1845 vikas 8318
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8319
      self.success.write(oprot)
8320
      oprot.writeFieldEnd()
3431 rajveer 8321
    if self.utx is not None:
1845 vikas 8322
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8323
      self.utx.write(oprot)
8324
      oprot.writeFieldEnd()
8325
    oprot.writeFieldStop()
8326
    oprot.writeStructEnd()
8327
 
3431 rajveer 8328
  def validate(self):
8329
    return
8330
 
8331
 
1845 vikas 8332
  def __repr__(self):
8333
    L = ['%s=%r' % (key, value)
8334
      for key, value in self.__dict__.iteritems()]
8335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8336
 
8337
  def __eq__(self, other):
8338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8339
 
8340
  def __ne__(self, other):
8341
    return not (self == other)
8342
 
8343
class getAffiliateById_args:
8344
  """
8345
  Attributes:
8346
   - id
8347
  """
8348
 
8349
  thrift_spec = (
8350
    None, # 0
8351
    (1, TType.I64, 'id', None, None, ), # 1
8352
  )
8353
 
8354
  def __init__(self, id=None,):
8355
    self.id = id
8356
 
8357
  def read(self, iprot):
8358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8360
      return
8361
    iprot.readStructBegin()
8362
    while True:
8363
      (fname, ftype, fid) = iprot.readFieldBegin()
8364
      if ftype == TType.STOP:
8365
        break
8366
      if fid == 1:
8367
        if ftype == TType.I64:
8368
          self.id = iprot.readI64();
8369
        else:
8370
          iprot.skip(ftype)
8371
      else:
8372
        iprot.skip(ftype)
8373
      iprot.readFieldEnd()
8374
    iprot.readStructEnd()
8375
 
8376
  def write(self, oprot):
8377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8379
      return
8380
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8381
    if self.id is not None:
1845 vikas 8382
      oprot.writeFieldBegin('id', TType.I64, 1)
8383
      oprot.writeI64(self.id)
8384
      oprot.writeFieldEnd()
8385
    oprot.writeFieldStop()
8386
    oprot.writeStructEnd()
8387
 
3431 rajveer 8388
  def validate(self):
8389
    return
8390
 
8391
 
1845 vikas 8392
  def __repr__(self):
8393
    L = ['%s=%r' % (key, value)
8394
      for key, value in self.__dict__.iteritems()]
8395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8396
 
8397
  def __eq__(self, other):
8398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8399
 
8400
  def __ne__(self, other):
8401
    return not (self == other)
8402
 
8403
class getAffiliateById_result:
8404
  """
8405
  Attributes:
8406
   - success
8407
   - utx
8408
  """
8409
 
8410
  thrift_spec = (
8411
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8412
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8413
  )
8414
 
8415
  def __init__(self, success=None, utx=None,):
8416
    self.success = success
8417
    self.utx = utx
8418
 
8419
  def read(self, iprot):
8420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8422
      return
8423
    iprot.readStructBegin()
8424
    while True:
8425
      (fname, ftype, fid) = iprot.readFieldBegin()
8426
      if ftype == TType.STOP:
8427
        break
8428
      if fid == 0:
8429
        if ftype == TType.STRUCT:
8430
          self.success = Affiliate()
8431
          self.success.read(iprot)
8432
        else:
8433
          iprot.skip(ftype)
8434
      elif fid == 1:
8435
        if ftype == TType.STRUCT:
1996 vikas 8436
          self.utx = UserAffiliateException()
1845 vikas 8437
          self.utx.read(iprot)
8438
        else:
8439
          iprot.skip(ftype)
8440
      else:
8441
        iprot.skip(ftype)
8442
      iprot.readFieldEnd()
8443
    iprot.readStructEnd()
8444
 
8445
  def write(self, oprot):
8446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8448
      return
8449
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8450
    if self.success is not None:
1845 vikas 8451
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8452
      self.success.write(oprot)
8453
      oprot.writeFieldEnd()
3431 rajveer 8454
    if self.utx is not None:
1845 vikas 8455
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8456
      self.utx.write(oprot)
8457
      oprot.writeFieldEnd()
8458
    oprot.writeFieldStop()
8459
    oprot.writeStructEnd()
8460
 
3431 rajveer 8461
  def validate(self):
8462
    return
8463
 
8464
 
1845 vikas 8465
  def __repr__(self):
8466
    L = ['%s=%r' % (key, value)
8467
      for key, value in self.__dict__.iteritems()]
8468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8469
 
8470
  def __eq__(self, other):
8471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8472
 
8473
  def __ne__(self, other):
8474
    return not (self == other)
8475
 
8476
class getAffiliateByName_args:
8477
  """
8478
  Attributes:
8479
   - name
8480
  """
8481
 
8482
  thrift_spec = (
8483
    None, # 0
8484
    (1, TType.STRING, 'name', None, None, ), # 1
8485
  )
8486
 
8487
  def __init__(self, name=None,):
8488
    self.name = name
8489
 
8490
  def read(self, iprot):
8491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8493
      return
8494
    iprot.readStructBegin()
8495
    while True:
8496
      (fname, ftype, fid) = iprot.readFieldBegin()
8497
      if ftype == TType.STOP:
8498
        break
8499
      if fid == 1:
8500
        if ftype == TType.STRING:
8501
          self.name = iprot.readString();
8502
        else:
8503
          iprot.skip(ftype)
8504
      else:
8505
        iprot.skip(ftype)
8506
      iprot.readFieldEnd()
8507
    iprot.readStructEnd()
8508
 
8509
  def write(self, oprot):
8510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8512
      return
8513
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8514
    if self.name is not None:
1845 vikas 8515
      oprot.writeFieldBegin('name', TType.STRING, 1)
8516
      oprot.writeString(self.name)
8517
      oprot.writeFieldEnd()
8518
    oprot.writeFieldStop()
8519
    oprot.writeStructEnd()
8520
 
3431 rajveer 8521
  def validate(self):
8522
    return
8523
 
8524
 
1845 vikas 8525
  def __repr__(self):
8526
    L = ['%s=%r' % (key, value)
8527
      for key, value in self.__dict__.iteritems()]
8528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8529
 
8530
  def __eq__(self, other):
8531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8532
 
8533
  def __ne__(self, other):
8534
    return not (self == other)
8535
 
8536
class getAffiliateByName_result:
8537
  """
8538
  Attributes:
8539
   - success
8540
   - utx
8541
  """
8542
 
8543
  thrift_spec = (
8544
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8545
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8546
  )
8547
 
8548
  def __init__(self, success=None, utx=None,):
8549
    self.success = success
8550
    self.utx = utx
8551
 
8552
  def read(self, iprot):
8553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8555
      return
8556
    iprot.readStructBegin()
8557
    while True:
8558
      (fname, ftype, fid) = iprot.readFieldBegin()
8559
      if ftype == TType.STOP:
8560
        break
8561
      if fid == 0:
8562
        if ftype == TType.STRUCT:
8563
          self.success = Affiliate()
8564
          self.success.read(iprot)
8565
        else:
8566
          iprot.skip(ftype)
8567
      elif fid == 1:
8568
        if ftype == TType.STRUCT:
1996 vikas 8569
          self.utx = UserAffiliateException()
1845 vikas 8570
          self.utx.read(iprot)
8571
        else:
8572
          iprot.skip(ftype)
8573
      else:
8574
        iprot.skip(ftype)
8575
      iprot.readFieldEnd()
8576
    iprot.readStructEnd()
8577
 
8578
  def write(self, oprot):
8579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8581
      return
8582
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8583
    if self.success is not None:
1845 vikas 8584
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8585
      self.success.write(oprot)
8586
      oprot.writeFieldEnd()
3431 rajveer 8587
    if self.utx is not None:
1845 vikas 8588
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8589
      self.utx.write(oprot)
8590
      oprot.writeFieldEnd()
8591
    oprot.writeFieldStop()
8592
    oprot.writeStructEnd()
8593
 
3431 rajveer 8594
  def validate(self):
8595
    return
8596
 
8597
 
1845 vikas 8598
  def __repr__(self):
8599
    L = ['%s=%r' % (key, value)
8600
      for key, value in self.__dict__.iteritems()]
8601
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8602
 
8603
  def __eq__(self, other):
8604
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8605
 
8606
  def __ne__(self, other):
8607
    return not (self == other)
8608
 
1996 vikas 8609
class getTrackerById_args:
1845 vikas 8610
  """
8611
  Attributes:
8612
   - id
8613
  """
8614
 
8615
  thrift_spec = (
8616
    None, # 0
8617
    (1, TType.I64, 'id', None, None, ), # 1
8618
  )
8619
 
8620
  def __init__(self, id=None,):
8621
    self.id = id
8622
 
8623
  def read(self, iprot):
8624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8626
      return
8627
    iprot.readStructBegin()
8628
    while True:
8629
      (fname, ftype, fid) = iprot.readFieldBegin()
8630
      if ftype == TType.STOP:
8631
        break
8632
      if fid == 1:
8633
        if ftype == TType.I64:
8634
          self.id = iprot.readI64();
8635
        else:
8636
          iprot.skip(ftype)
8637
      else:
8638
        iprot.skip(ftype)
8639
      iprot.readFieldEnd()
8640
    iprot.readStructEnd()
8641
 
8642
  def write(self, oprot):
8643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8645
      return
1996 vikas 8646
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8647
    if self.id is not None:
1845 vikas 8648
      oprot.writeFieldBegin('id', TType.I64, 1)
8649
      oprot.writeI64(self.id)
8650
      oprot.writeFieldEnd()
8651
    oprot.writeFieldStop()
8652
    oprot.writeStructEnd()
8653
 
3431 rajveer 8654
  def validate(self):
8655
    return
8656
 
8657
 
1845 vikas 8658
  def __repr__(self):
8659
    L = ['%s=%r' % (key, value)
8660
      for key, value in self.__dict__.iteritems()]
8661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8662
 
8663
  def __eq__(self, other):
8664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8665
 
8666
  def __ne__(self, other):
8667
    return not (self == other)
8668
 
8669
class getTrackerById_result:
8670
  """
8671
  Attributes:
8672
   - success
8673
   - utx
8674
  """
8675
 
8676
  thrift_spec = (
8677
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8678
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8679
  )
8680
 
8681
  def __init__(self, success=None, utx=None,):
8682
    self.success = success
8683
    self.utx = utx
8684
 
8685
  def read(self, iprot):
8686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8688
      return
8689
    iprot.readStructBegin()
8690
    while True:
8691
      (fname, ftype, fid) = iprot.readFieldBegin()
8692
      if ftype == TType.STOP:
8693
        break
8694
      if fid == 0:
8695
        if ftype == TType.STRUCT:
8696
          self.success = Tracker()
8697
          self.success.read(iprot)
8698
        else:
8699
          iprot.skip(ftype)
8700
      elif fid == 1:
8701
        if ftype == TType.STRUCT:
1996 vikas 8702
          self.utx = UserAffiliateException()
1845 vikas 8703
          self.utx.read(iprot)
8704
        else:
8705
          iprot.skip(ftype)
8706
      else:
8707
        iprot.skip(ftype)
8708
      iprot.readFieldEnd()
8709
    iprot.readStructEnd()
8710
 
8711
  def write(self, oprot):
8712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8714
      return
8715
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8716
    if self.success is not None:
1845 vikas 8717
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8718
      self.success.write(oprot)
8719
      oprot.writeFieldEnd()
3431 rajveer 8720
    if self.utx is not None:
1845 vikas 8721
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8722
      self.utx.write(oprot)
8723
      oprot.writeFieldEnd()
8724
    oprot.writeFieldStop()
8725
    oprot.writeStructEnd()
8726
 
3431 rajveer 8727
  def validate(self):
8728
    return
8729
 
8730
 
1845 vikas 8731
  def __repr__(self):
8732
    L = ['%s=%r' % (key, value)
8733
      for key, value in self.__dict__.iteritems()]
8734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8735
 
8736
  def __eq__(self, other):
8737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8738
 
8739
  def __ne__(self, other):
8740
    return not (self == other)
8741
 
1996 vikas 8742
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8743
  """
8744
  Attributes:
1996 vikas 8745
   - id
1845 vikas 8746
  """
8747
 
8748
  thrift_spec = (
8749
    None, # 0
1996 vikas 8750
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8751
  )
8752
 
1996 vikas 8753
  def __init__(self, id=None,):
8754
    self.id = id
1845 vikas 8755
 
8756
  def read(self, iprot):
8757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8759
      return
8760
    iprot.readStructBegin()
8761
    while True:
8762
      (fname, ftype, fid) = iprot.readFieldBegin()
8763
      if ftype == TType.STOP:
8764
        break
8765
      if fid == 1:
8766
        if ftype == TType.I64:
1996 vikas 8767
          self.id = iprot.readI64();
1845 vikas 8768
        else:
8769
          iprot.skip(ftype)
8770
      else:
8771
        iprot.skip(ftype)
8772
      iprot.readFieldEnd()
8773
    iprot.readStructEnd()
8774
 
8775
  def write(self, oprot):
8776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8778
      return
1996 vikas 8779
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8780
    if self.id is not None:
1996 vikas 8781
      oprot.writeFieldBegin('id', TType.I64, 1)
8782
      oprot.writeI64(self.id)
1845 vikas 8783
      oprot.writeFieldEnd()
8784
    oprot.writeFieldStop()
8785
    oprot.writeStructEnd()
8786
 
3431 rajveer 8787
  def validate(self):
8788
    return
8789
 
8790
 
1845 vikas 8791
  def __repr__(self):
8792
    L = ['%s=%r' % (key, value)
8793
      for key, value in self.__dict__.iteritems()]
8794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8795
 
8796
  def __eq__(self, other):
8797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8798
 
8799
  def __ne__(self, other):
8800
    return not (self == other)
8801
 
1996 vikas 8802
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8803
  """
8804
  Attributes:
8805
   - success
8806
   - utx
8807
  """
8808
 
8809
  thrift_spec = (
1996 vikas 8810
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8811
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8812
  )
8813
 
8814
  def __init__(self, success=None, utx=None,):
8815
    self.success = success
8816
    self.utx = utx
8817
 
8818
  def read(self, iprot):
8819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8821
      return
8822
    iprot.readStructBegin()
8823
    while True:
8824
      (fname, ftype, fid) = iprot.readFieldBegin()
8825
      if ftype == TType.STOP:
8826
        break
8827
      if fid == 0:
8828
        if ftype == TType.LIST:
8829
          self.success = []
6736 amit.gupta 8830
          (_etype114, _size111) = iprot.readListBegin()
8831
          for _i115 in xrange(_size111):
8832
            _elem116 = Affiliate()
8833
            _elem116.read(iprot)
8834
            self.success.append(_elem116)
1845 vikas 8835
          iprot.readListEnd()
8836
        else:
8837
          iprot.skip(ftype)
8838
      elif fid == 1:
8839
        if ftype == TType.STRUCT:
1996 vikas 8840
          self.utx = UserAffiliateException()
1845 vikas 8841
          self.utx.read(iprot)
8842
        else:
8843
          iprot.skip(ftype)
8844
      else:
8845
        iprot.skip(ftype)
8846
      iprot.readFieldEnd()
8847
    iprot.readStructEnd()
8848
 
8849
  def write(self, oprot):
8850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8852
      return
1996 vikas 8853
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8854
    if self.success is not None:
1845 vikas 8855
      oprot.writeFieldBegin('success', TType.LIST, 0)
8856
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 8857
      for iter117 in self.success:
8858
        iter117.write(oprot)
1845 vikas 8859
      oprot.writeListEnd()
8860
      oprot.writeFieldEnd()
3431 rajveer 8861
    if self.utx is not None:
1845 vikas 8862
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8863
      self.utx.write(oprot)
8864
      oprot.writeFieldEnd()
8865
    oprot.writeFieldStop()
8866
    oprot.writeStructEnd()
8867
 
3431 rajveer 8868
  def validate(self):
8869
    return
8870
 
8871
 
1845 vikas 8872
  def __repr__(self):
8873
    L = ['%s=%r' % (key, value)
8874
      for key, value in self.__dict__.iteritems()]
8875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8876
 
8877
  def __eq__(self, other):
8878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8879
 
8880
  def __ne__(self, other):
8881
    return not (self == other)
8882
 
8883
class addTrackLog_args:
8884
  """
8885
  Attributes:
1996 vikas 8886
   - affiliateId
1845 vikas 8887
   - userId
8888
   - event
8889
   - url
8890
   - data
1859 vikas 8891
   - addedOn
1845 vikas 8892
  """
8893
 
8894
  thrift_spec = (
8895
    None, # 0
1996 vikas 8896
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8897
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8898
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8899
    (4, TType.STRING, 'url', None, None, ), # 4
8900
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8901
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8902
  )
8903
 
1996 vikas 8904
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8905
    self.affiliateId = affiliateId
1845 vikas 8906
    self.userId = userId
8907
    self.event = event
8908
    self.url = url
8909
    self.data = data
1859 vikas 8910
    self.addedOn = addedOn
1845 vikas 8911
 
8912
  def read(self, iprot):
8913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8915
      return
8916
    iprot.readStructBegin()
8917
    while True:
8918
      (fname, ftype, fid) = iprot.readFieldBegin()
8919
      if ftype == TType.STOP:
8920
        break
8921
      if fid == 1:
8922
        if ftype == TType.I64:
1996 vikas 8923
          self.affiliateId = iprot.readI64();
1845 vikas 8924
        else:
8925
          iprot.skip(ftype)
8926
      elif fid == 2:
8927
        if ftype == TType.I64:
8928
          self.userId = iprot.readI64();
8929
        else:
8930
          iprot.skip(ftype)
8931
      elif fid == 3:
3378 vikas 8932
        if ftype == TType.I32:
8933
          self.event = iprot.readI32();
1845 vikas 8934
        else:
8935
          iprot.skip(ftype)
8936
      elif fid == 4:
8937
        if ftype == TType.STRING:
8938
          self.url = iprot.readString();
8939
        else:
8940
          iprot.skip(ftype)
8941
      elif fid == 5:
8942
        if ftype == TType.STRING:
8943
          self.data = iprot.readString();
8944
        else:
8945
          iprot.skip(ftype)
1859 vikas 8946
      elif fid == 6:
8947
        if ftype == TType.I64:
8948
          self.addedOn = iprot.readI64();
8949
        else:
8950
          iprot.skip(ftype)
1845 vikas 8951
      else:
8952
        iprot.skip(ftype)
8953
      iprot.readFieldEnd()
8954
    iprot.readStructEnd()
8955
 
8956
  def write(self, oprot):
8957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8959
      return
8960
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8961
    if self.affiliateId is not None:
1996 vikas 8962
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8963
      oprot.writeI64(self.affiliateId)
1845 vikas 8964
      oprot.writeFieldEnd()
3431 rajveer 8965
    if self.userId is not None:
1845 vikas 8966
      oprot.writeFieldBegin('userId', TType.I64, 2)
8967
      oprot.writeI64(self.userId)
8968
      oprot.writeFieldEnd()
3431 rajveer 8969
    if self.event is not None:
3378 vikas 8970
      oprot.writeFieldBegin('event', TType.I32, 3)
8971
      oprot.writeI32(self.event)
1845 vikas 8972
      oprot.writeFieldEnd()
3431 rajveer 8973
    if self.url is not None:
1845 vikas 8974
      oprot.writeFieldBegin('url', TType.STRING, 4)
8975
      oprot.writeString(self.url)
8976
      oprot.writeFieldEnd()
3431 rajveer 8977
    if self.data is not None:
1845 vikas 8978
      oprot.writeFieldBegin('data', TType.STRING, 5)
8979
      oprot.writeString(self.data)
8980
      oprot.writeFieldEnd()
3431 rajveer 8981
    if self.addedOn is not None:
1859 vikas 8982
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8983
      oprot.writeI64(self.addedOn)
8984
      oprot.writeFieldEnd()
1845 vikas 8985
    oprot.writeFieldStop()
8986
    oprot.writeStructEnd()
8987
 
3431 rajveer 8988
  def validate(self):
8989
    return
8990
 
8991
 
1845 vikas 8992
  def __repr__(self):
8993
    L = ['%s=%r' % (key, value)
8994
      for key, value in self.__dict__.iteritems()]
8995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8996
 
8997
  def __eq__(self, other):
8998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8999
 
9000
  def __ne__(self, other):
9001
    return not (self == other)
9002
 
9003
class addTrackLog_result:
9004
  """
9005
  Attributes:
9006
   - success
9007
   - utx
9008
  """
9009
 
9010
  thrift_spec = (
9011
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 9012
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9013
  )
9014
 
9015
  def __init__(self, success=None, utx=None,):
9016
    self.success = success
9017
    self.utx = utx
9018
 
9019
  def read(self, iprot):
9020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9022
      return
9023
    iprot.readStructBegin()
9024
    while True:
9025
      (fname, ftype, fid) = iprot.readFieldBegin()
9026
      if ftype == TType.STOP:
9027
        break
9028
      if fid == 0:
9029
        if ftype == TType.I64:
9030
          self.success = iprot.readI64();
9031
        else:
9032
          iprot.skip(ftype)
9033
      elif fid == 1:
9034
        if ftype == TType.STRUCT:
1996 vikas 9035
          self.utx = UserAffiliateException()
1845 vikas 9036
          self.utx.read(iprot)
9037
        else:
9038
          iprot.skip(ftype)
9039
      else:
9040
        iprot.skip(ftype)
9041
      iprot.readFieldEnd()
9042
    iprot.readStructEnd()
9043
 
9044
  def write(self, oprot):
9045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9047
      return
9048
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 9049
    if self.success is not None:
1845 vikas 9050
      oprot.writeFieldBegin('success', TType.I64, 0)
9051
      oprot.writeI64(self.success)
9052
      oprot.writeFieldEnd()
3431 rajveer 9053
    if self.utx is not None:
1845 vikas 9054
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9055
      self.utx.write(oprot)
9056
      oprot.writeFieldEnd()
9057
    oprot.writeFieldStop()
9058
    oprot.writeStructEnd()
9059
 
3431 rajveer 9060
  def validate(self):
9061
    return
9062
 
9063
 
1845 vikas 9064
  def __repr__(self):
9065
    L = ['%s=%r' % (key, value)
9066
      for key, value in self.__dict__.iteritems()]
9067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9068
 
9069
  def __eq__(self, other):
9070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9071
 
9072
  def __ne__(self, other):
9073
    return not (self == other)
9074
 
9075
class getTrackLogById_args:
9076
  """
9077
  Attributes:
9078
   - id
9079
  """
9080
 
9081
  thrift_spec = (
9082
    None, # 0
9083
    (1, TType.I64, 'id', None, None, ), # 1
9084
  )
9085
 
9086
  def __init__(self, id=None,):
9087
    self.id = id
9088
 
9089
  def read(self, iprot):
9090
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9091
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9092
      return
9093
    iprot.readStructBegin()
9094
    while True:
9095
      (fname, ftype, fid) = iprot.readFieldBegin()
9096
      if ftype == TType.STOP:
9097
        break
9098
      if fid == 1:
9099
        if ftype == TType.I64:
9100
          self.id = iprot.readI64();
9101
        else:
9102
          iprot.skip(ftype)
9103
      else:
9104
        iprot.skip(ftype)
9105
      iprot.readFieldEnd()
9106
    iprot.readStructEnd()
9107
 
9108
  def write(self, oprot):
9109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9111
      return
9112
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9113
    if self.id is not None:
1845 vikas 9114
      oprot.writeFieldBegin('id', TType.I64, 1)
9115
      oprot.writeI64(self.id)
9116
      oprot.writeFieldEnd()
9117
    oprot.writeFieldStop()
9118
    oprot.writeStructEnd()
9119
 
3431 rajveer 9120
  def validate(self):
9121
    return
9122
 
9123
 
1845 vikas 9124
  def __repr__(self):
9125
    L = ['%s=%r' % (key, value)
9126
      for key, value in self.__dict__.iteritems()]
9127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9128
 
9129
  def __eq__(self, other):
9130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9131
 
9132
  def __ne__(self, other):
9133
    return not (self == other)
9134
 
9135
class getTrackLogById_result:
9136
  """
9137
  Attributes:
9138
   - success
9139
   - utx
9140
  """
9141
 
9142
  thrift_spec = (
9143
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9144
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9145
  )
9146
 
9147
  def __init__(self, success=None, utx=None,):
9148
    self.success = success
9149
    self.utx = utx
9150
 
9151
  def read(self, iprot):
9152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9154
      return
9155
    iprot.readStructBegin()
9156
    while True:
9157
      (fname, ftype, fid) = iprot.readFieldBegin()
9158
      if ftype == TType.STOP:
9159
        break
9160
      if fid == 0:
9161
        if ftype == TType.STRUCT:
9162
          self.success = TrackLog()
9163
          self.success.read(iprot)
9164
        else:
9165
          iprot.skip(ftype)
9166
      elif fid == 1:
9167
        if ftype == TType.STRUCT:
1996 vikas 9168
          self.utx = UserAffiliateException()
1845 vikas 9169
          self.utx.read(iprot)
9170
        else:
9171
          iprot.skip(ftype)
9172
      else:
9173
        iprot.skip(ftype)
9174
      iprot.readFieldEnd()
9175
    iprot.readStructEnd()
9176
 
9177
  def write(self, oprot):
9178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9180
      return
9181
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9182
    if self.success is not None:
1845 vikas 9183
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9184
      self.success.write(oprot)
9185
      oprot.writeFieldEnd()
3431 rajveer 9186
    if self.utx is not None:
1845 vikas 9187
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9188
      self.utx.write(oprot)
9189
      oprot.writeFieldEnd()
9190
    oprot.writeFieldStop()
9191
    oprot.writeStructEnd()
9192
 
3431 rajveer 9193
  def validate(self):
9194
    return
9195
 
9196
 
1845 vikas 9197
  def __repr__(self):
9198
    L = ['%s=%r' % (key, value)
9199
      for key, value in self.__dict__.iteritems()]
9200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9201
 
9202
  def __eq__(self, other):
9203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9204
 
9205
  def __ne__(self, other):
9206
    return not (self == other)
9207
 
1996 vikas 9208
class getTrackLogsByAffiliate_args:
1845 vikas 9209
  """
9210
  Attributes:
1996 vikas 9211
   - affiliateId
3293 vikas 9212
   - startDate
9213
   - endDate
1845 vikas 9214
  """
9215
 
9216
  thrift_spec = (
9217
    None, # 0
1996 vikas 9218
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9219
    (2, TType.I64, 'startDate', None, None, ), # 2
9220
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9221
  )
9222
 
3293 vikas 9223
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9224
    self.affiliateId = affiliateId
3293 vikas 9225
    self.startDate = startDate
9226
    self.endDate = endDate
1845 vikas 9227
 
9228
  def read(self, iprot):
9229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9231
      return
9232
    iprot.readStructBegin()
9233
    while True:
9234
      (fname, ftype, fid) = iprot.readFieldBegin()
9235
      if ftype == TType.STOP:
9236
        break
9237
      if fid == 1:
9238
        if ftype == TType.I64:
1996 vikas 9239
          self.affiliateId = iprot.readI64();
1845 vikas 9240
        else:
9241
          iprot.skip(ftype)
3293 vikas 9242
      elif fid == 2:
9243
        if ftype == TType.I64:
9244
          self.startDate = iprot.readI64();
9245
        else:
9246
          iprot.skip(ftype)
9247
      elif fid == 3:
9248
        if ftype == TType.I64:
9249
          self.endDate = iprot.readI64();
9250
        else:
9251
          iprot.skip(ftype)
1845 vikas 9252
      else:
9253
        iprot.skip(ftype)
9254
      iprot.readFieldEnd()
9255
    iprot.readStructEnd()
9256
 
9257
  def write(self, oprot):
9258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9260
      return
1996 vikas 9261
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9262
    if self.affiliateId is not None:
1996 vikas 9263
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9264
      oprot.writeI64(self.affiliateId)
1845 vikas 9265
      oprot.writeFieldEnd()
3431 rajveer 9266
    if self.startDate is not None:
3293 vikas 9267
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9268
      oprot.writeI64(self.startDate)
9269
      oprot.writeFieldEnd()
3431 rajveer 9270
    if self.endDate is not None:
3293 vikas 9271
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9272
      oprot.writeI64(self.endDate)
9273
      oprot.writeFieldEnd()
1845 vikas 9274
    oprot.writeFieldStop()
9275
    oprot.writeStructEnd()
9276
 
3431 rajveer 9277
  def validate(self):
9278
    return
9279
 
9280
 
1845 vikas 9281
  def __repr__(self):
9282
    L = ['%s=%r' % (key, value)
9283
      for key, value in self.__dict__.iteritems()]
9284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9285
 
9286
  def __eq__(self, other):
9287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9288
 
9289
  def __ne__(self, other):
9290
    return not (self == other)
9291
 
1996 vikas 9292
class getTrackLogsByAffiliate_result:
1845 vikas 9293
  """
9294
  Attributes:
9295
   - success
9296
   - utx
9297
  """
9298
 
9299
  thrift_spec = (
9300
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9301
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9302
  )
9303
 
9304
  def __init__(self, success=None, utx=None,):
9305
    self.success = success
9306
    self.utx = utx
9307
 
9308
  def read(self, iprot):
9309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9311
      return
9312
    iprot.readStructBegin()
9313
    while True:
9314
      (fname, ftype, fid) = iprot.readFieldBegin()
9315
      if ftype == TType.STOP:
9316
        break
9317
      if fid == 0:
9318
        if ftype == TType.LIST:
9319
          self.success = []
6736 amit.gupta 9320
          (_etype121, _size118) = iprot.readListBegin()
9321
          for _i122 in xrange(_size118):
9322
            _elem123 = TrackLog()
9323
            _elem123.read(iprot)
9324
            self.success.append(_elem123)
1845 vikas 9325
          iprot.readListEnd()
9326
        else:
9327
          iprot.skip(ftype)
9328
      elif fid == 1:
9329
        if ftype == TType.STRUCT:
1996 vikas 9330
          self.utx = UserAffiliateException()
1845 vikas 9331
          self.utx.read(iprot)
9332
        else:
9333
          iprot.skip(ftype)
9334
      else:
9335
        iprot.skip(ftype)
9336
      iprot.readFieldEnd()
9337
    iprot.readStructEnd()
9338
 
9339
  def write(self, oprot):
9340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9342
      return
1996 vikas 9343
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9344
    if self.success is not None:
1845 vikas 9345
      oprot.writeFieldBegin('success', TType.LIST, 0)
9346
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9347
      for iter124 in self.success:
9348
        iter124.write(oprot)
1845 vikas 9349
      oprot.writeListEnd()
9350
      oprot.writeFieldEnd()
3431 rajveer 9351
    if self.utx is not None:
1845 vikas 9352
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9353
      self.utx.write(oprot)
9354
      oprot.writeFieldEnd()
9355
    oprot.writeFieldStop()
9356
    oprot.writeStructEnd()
9357
 
3431 rajveer 9358
  def validate(self):
9359
    return
9360
 
9361
 
1845 vikas 9362
  def __repr__(self):
9363
    L = ['%s=%r' % (key, value)
9364
      for key, value in self.__dict__.iteritems()]
9365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9366
 
9367
  def __eq__(self, other):
9368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9369
 
9370
  def __ne__(self, other):
9371
    return not (self == other)
9372
 
9373
class getTrackLogsByUser_args:
9374
  """
9375
  Attributes:
9376
   - userId
9377
  """
9378
 
9379
  thrift_spec = (
9380
    None, # 0
9381
    (1, TType.I64, 'userId', None, None, ), # 1
9382
  )
9383
 
9384
  def __init__(self, userId=None,):
9385
    self.userId = userId
9386
 
9387
  def read(self, iprot):
9388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9390
      return
9391
    iprot.readStructBegin()
9392
    while True:
9393
      (fname, ftype, fid) = iprot.readFieldBegin()
9394
      if ftype == TType.STOP:
9395
        break
9396
      if fid == 1:
9397
        if ftype == TType.I64:
9398
          self.userId = iprot.readI64();
9399
        else:
9400
          iprot.skip(ftype)
9401
      else:
9402
        iprot.skip(ftype)
9403
      iprot.readFieldEnd()
9404
    iprot.readStructEnd()
9405
 
9406
  def write(self, oprot):
9407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9409
      return
9410
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9411
    if self.userId is not None:
1845 vikas 9412
      oprot.writeFieldBegin('userId', TType.I64, 1)
9413
      oprot.writeI64(self.userId)
9414
      oprot.writeFieldEnd()
9415
    oprot.writeFieldStop()
9416
    oprot.writeStructEnd()
9417
 
3431 rajveer 9418
  def validate(self):
9419
    return
9420
 
9421
 
1845 vikas 9422
  def __repr__(self):
9423
    L = ['%s=%r' % (key, value)
9424
      for key, value in self.__dict__.iteritems()]
9425
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9426
 
9427
  def __eq__(self, other):
9428
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9429
 
9430
  def __ne__(self, other):
9431
    return not (self == other)
9432
 
9433
class getTrackLogsByUser_result:
9434
  """
9435
  Attributes:
9436
   - success
9437
   - utx
9438
  """
9439
 
9440
  thrift_spec = (
9441
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9442
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9443
  )
9444
 
9445
  def __init__(self, success=None, utx=None,):
9446
    self.success = success
9447
    self.utx = utx
9448
 
9449
  def read(self, iprot):
9450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9452
      return
9453
    iprot.readStructBegin()
9454
    while True:
9455
      (fname, ftype, fid) = iprot.readFieldBegin()
9456
      if ftype == TType.STOP:
9457
        break
9458
      if fid == 0:
9459
        if ftype == TType.LIST:
9460
          self.success = []
6736 amit.gupta 9461
          (_etype128, _size125) = iprot.readListBegin()
9462
          for _i129 in xrange(_size125):
9463
            _elem130 = TrackLog()
9464
            _elem130.read(iprot)
9465
            self.success.append(_elem130)
1845 vikas 9466
          iprot.readListEnd()
9467
        else:
9468
          iprot.skip(ftype)
9469
      elif fid == 1:
9470
        if ftype == TType.STRUCT:
1996 vikas 9471
          self.utx = UserAffiliateException()
1845 vikas 9472
          self.utx.read(iprot)
9473
        else:
9474
          iprot.skip(ftype)
9475
      else:
9476
        iprot.skip(ftype)
9477
      iprot.readFieldEnd()
9478
    iprot.readStructEnd()
9479
 
9480
  def write(self, oprot):
9481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9483
      return
9484
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9485
    if self.success is not None:
1845 vikas 9486
      oprot.writeFieldBegin('success', TType.LIST, 0)
9487
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9488
      for iter131 in self.success:
9489
        iter131.write(oprot)
1845 vikas 9490
      oprot.writeListEnd()
9491
      oprot.writeFieldEnd()
3431 rajveer 9492
    if self.utx is not None:
1845 vikas 9493
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9494
      self.utx.write(oprot)
9495
      oprot.writeFieldEnd()
9496
    oprot.writeFieldStop()
9497
    oprot.writeStructEnd()
9498
 
3431 rajveer 9499
  def validate(self):
9500
    return
9501
 
9502
 
1845 vikas 9503
  def __repr__(self):
9504
    L = ['%s=%r' % (key, value)
9505
      for key, value in self.__dict__.iteritems()]
9506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9507
 
9508
  def __eq__(self, other):
9509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9510
 
9511
  def __ne__(self, other):
9512
    return not (self == other)
9513
 
9514
class getTrackLogs_args:
9515
  """
9516
  Attributes:
9517
   - userId
9518
   - event
9519
   - url
9520
  """
9521
 
9522
  thrift_spec = (
9523
    None, # 0
1996 vikas 9524
    (1, TType.I64, 'userId', None, None, ), # 1
9525
    (2, TType.STRING, 'event', None, None, ), # 2
9526
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9527
  )
9528
 
1996 vikas 9529
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9530
    self.userId = userId
9531
    self.event = event
9532
    self.url = url
9533
 
9534
  def read(self, iprot):
9535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9537
      return
9538
    iprot.readStructBegin()
9539
    while True:
9540
      (fname, ftype, fid) = iprot.readFieldBegin()
9541
      if ftype == TType.STOP:
9542
        break
9543
      if fid == 1:
9544
        if ftype == TType.I64:
1996 vikas 9545
          self.userId = iprot.readI64();
1845 vikas 9546
        else:
9547
          iprot.skip(ftype)
9548
      elif fid == 2:
9549
        if ftype == TType.STRING:
9550
          self.event = iprot.readString();
9551
        else:
9552
          iprot.skip(ftype)
1996 vikas 9553
      elif fid == 3:
1845 vikas 9554
        if ftype == TType.STRING:
9555
          self.url = iprot.readString();
9556
        else:
9557
          iprot.skip(ftype)
9558
      else:
9559
        iprot.skip(ftype)
9560
      iprot.readFieldEnd()
9561
    iprot.readStructEnd()
9562
 
9563
  def write(self, oprot):
9564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9566
      return
9567
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9568
    if self.userId is not None:
1996 vikas 9569
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9570
      oprot.writeI64(self.userId)
9571
      oprot.writeFieldEnd()
3431 rajveer 9572
    if self.event is not None:
1996 vikas 9573
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9574
      oprot.writeString(self.event)
9575
      oprot.writeFieldEnd()
3431 rajveer 9576
    if self.url is not None:
1996 vikas 9577
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9578
      oprot.writeString(self.url)
9579
      oprot.writeFieldEnd()
9580
    oprot.writeFieldStop()
9581
    oprot.writeStructEnd()
9582
 
3431 rajveer 9583
  def validate(self):
9584
    return
9585
 
9586
 
1845 vikas 9587
  def __repr__(self):
9588
    L = ['%s=%r' % (key, value)
9589
      for key, value in self.__dict__.iteritems()]
9590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9591
 
9592
  def __eq__(self, other):
9593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9594
 
9595
  def __ne__(self, other):
9596
    return not (self == other)
9597
 
9598
class getTrackLogs_result:
9599
  """
9600
  Attributes:
9601
   - success
9602
   - utx
9603
  """
9604
 
9605
  thrift_spec = (
9606
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9607
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9608
  )
9609
 
9610
  def __init__(self, success=None, utx=None,):
9611
    self.success = success
9612
    self.utx = utx
9613
 
9614
  def read(self, iprot):
9615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9617
      return
9618
    iprot.readStructBegin()
9619
    while True:
9620
      (fname, ftype, fid) = iprot.readFieldBegin()
9621
      if ftype == TType.STOP:
9622
        break
9623
      if fid == 0:
9624
        if ftype == TType.LIST:
9625
          self.success = []
6736 amit.gupta 9626
          (_etype135, _size132) = iprot.readListBegin()
9627
          for _i136 in xrange(_size132):
9628
            _elem137 = TrackLog()
9629
            _elem137.read(iprot)
9630
            self.success.append(_elem137)
1845 vikas 9631
          iprot.readListEnd()
9632
        else:
9633
          iprot.skip(ftype)
9634
      elif fid == 1:
9635
        if ftype == TType.STRUCT:
1996 vikas 9636
          self.utx = UserAffiliateException()
1845 vikas 9637
          self.utx.read(iprot)
9638
        else:
9639
          iprot.skip(ftype)
9640
      else:
9641
        iprot.skip(ftype)
9642
      iprot.readFieldEnd()
9643
    iprot.readStructEnd()
9644
 
9645
  def write(self, oprot):
9646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9648
      return
9649
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9650
    if self.success is not None:
1845 vikas 9651
      oprot.writeFieldBegin('success', TType.LIST, 0)
9652
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9653
      for iter138 in self.success:
9654
        iter138.write(oprot)
1845 vikas 9655
      oprot.writeListEnd()
9656
      oprot.writeFieldEnd()
3431 rajveer 9657
    if self.utx is not None:
1845 vikas 9658
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9659
      self.utx.write(oprot)
9660
      oprot.writeFieldEnd()
9661
    oprot.writeFieldStop()
9662
    oprot.writeStructEnd()
9663
 
3431 rajveer 9664
  def validate(self):
9665
    return
9666
 
9667
 
1845 vikas 9668
  def __repr__(self):
9669
    L = ['%s=%r' % (key, value)
9670
      for key, value in self.__dict__.iteritems()]
9671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9672
 
9673
  def __eq__(self, other):
9674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9675
 
9676
  def __ne__(self, other):
9677
    return not (self == other)
9678
 
559 chandransh 9679
class getCurrentCart_args:
94 ashish 9680
  """
9681
  Attributes:
559 chandransh 9682
   - userId
9683
  """
9684
 
9685
  thrift_spec = (
9686
    None, # 0
9687
    (1, TType.I64, 'userId', None, None, ), # 1
9688
  )
9689
 
9690
  def __init__(self, userId=None,):
9691
    self.userId = userId
9692
 
9693
  def read(self, iprot):
9694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9696
      return
9697
    iprot.readStructBegin()
9698
    while True:
9699
      (fname, ftype, fid) = iprot.readFieldBegin()
9700
      if ftype == TType.STOP:
9701
        break
9702
      if fid == 1:
9703
        if ftype == TType.I64:
9704
          self.userId = iprot.readI64();
9705
        else:
9706
          iprot.skip(ftype)
9707
      else:
9708
        iprot.skip(ftype)
9709
      iprot.readFieldEnd()
9710
    iprot.readStructEnd()
9711
 
9712
  def write(self, oprot):
9713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9715
      return
9716
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9717
    if self.userId is not None:
559 chandransh 9718
      oprot.writeFieldBegin('userId', TType.I64, 1)
9719
      oprot.writeI64(self.userId)
9720
      oprot.writeFieldEnd()
9721
    oprot.writeFieldStop()
9722
    oprot.writeStructEnd()
9723
 
3431 rajveer 9724
  def validate(self):
9725
    return
9726
 
9727
 
559 chandransh 9728
  def __repr__(self):
9729
    L = ['%s=%r' % (key, value)
9730
      for key, value in self.__dict__.iteritems()]
9731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9732
 
9733
  def __eq__(self, other):
9734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9735
 
9736
  def __ne__(self, other):
9737
    return not (self == other)
9738
 
9739
class getCurrentCart_result:
9740
  """
9741
  Attributes:
94 ashish 9742
   - success
559 chandransh 9743
   - scx
94 ashish 9744
  """
9745
 
9746
  thrift_spec = (
559 chandransh 9747
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9748
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9749
  )
9750
 
559 chandransh 9751
  def __init__(self, success=None, scx=None,):
94 ashish 9752
    self.success = success
559 chandransh 9753
    self.scx = scx
94 ashish 9754
 
9755
  def read(self, iprot):
9756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9758
      return
9759
    iprot.readStructBegin()
9760
    while True:
9761
      (fname, ftype, fid) = iprot.readFieldBegin()
9762
      if ftype == TType.STOP:
9763
        break
9764
      if fid == 0:
559 chandransh 9765
        if ftype == TType.STRUCT:
9766
          self.success = Cart()
9767
          self.success.read(iprot)
94 ashish 9768
        else:
9769
          iprot.skip(ftype)
9770
      elif fid == 1:
9771
        if ftype == TType.STRUCT:
559 chandransh 9772
          self.scx = ShoppingCartException()
9773
          self.scx.read(iprot)
94 ashish 9774
        else:
9775
          iprot.skip(ftype)
9776
      else:
9777
        iprot.skip(ftype)
9778
      iprot.readFieldEnd()
9779
    iprot.readStructEnd()
9780
 
9781
  def write(self, oprot):
9782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9784
      return
559 chandransh 9785
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9786
    if self.success is not None:
559 chandransh 9787
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9788
      self.success.write(oprot)
94 ashish 9789
      oprot.writeFieldEnd()
3431 rajveer 9790
    if self.scx is not None:
559 chandransh 9791
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9792
      self.scx.write(oprot)
94 ashish 9793
      oprot.writeFieldEnd()
9794
    oprot.writeFieldStop()
9795
    oprot.writeStructEnd()
9796
 
3431 rajveer 9797
  def validate(self):
9798
    return
9799
 
9800
 
94 ashish 9801
  def __repr__(self):
9802
    L = ['%s=%r' % (key, value)
9803
      for key, value in self.__dict__.iteritems()]
9804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9805
 
9806
  def __eq__(self, other):
9807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9808
 
9809
  def __ne__(self, other):
9810
    return not (self == other)
9811
 
559 chandransh 9812
class getCart_args:
504 rajveer 9813
  """
9814
  Attributes:
559 chandransh 9815
   - cartId
504 rajveer 9816
  """
9817
 
9818
  thrift_spec = (
9819
    None, # 0
559 chandransh 9820
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9821
  )
9822
 
559 chandransh 9823
  def __init__(self, cartId=None,):
9824
    self.cartId = cartId
504 rajveer 9825
 
9826
  def read(self, iprot):
9827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9829
      return
9830
    iprot.readStructBegin()
9831
    while True:
9832
      (fname, ftype, fid) = iprot.readFieldBegin()
9833
      if ftype == TType.STOP:
9834
        break
9835
      if fid == 1:
9836
        if ftype == TType.I64:
559 chandransh 9837
          self.cartId = iprot.readI64();
504 rajveer 9838
        else:
9839
          iprot.skip(ftype)
9840
      else:
9841
        iprot.skip(ftype)
9842
      iprot.readFieldEnd()
9843
    iprot.readStructEnd()
9844
 
9845
  def write(self, oprot):
9846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9848
      return
559 chandransh 9849
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9850
    if self.cartId is not None:
559 chandransh 9851
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9852
      oprot.writeI64(self.cartId)
504 rajveer 9853
      oprot.writeFieldEnd()
9854
    oprot.writeFieldStop()
9855
    oprot.writeStructEnd()
9856
 
3431 rajveer 9857
  def validate(self):
9858
    return
9859
 
9860
 
504 rajveer 9861
  def __repr__(self):
9862
    L = ['%s=%r' % (key, value)
9863
      for key, value in self.__dict__.iteritems()]
9864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9865
 
9866
  def __eq__(self, other):
9867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9868
 
9869
  def __ne__(self, other):
9870
    return not (self == other)
9871
 
559 chandransh 9872
class getCart_result:
504 rajveer 9873
  """
9874
  Attributes:
9875
   - success
559 chandransh 9876
   - scx
504 rajveer 9877
  """
9878
 
9879
  thrift_spec = (
559 chandransh 9880
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9881
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9882
  )
9883
 
559 chandransh 9884
  def __init__(self, success=None, scx=None,):
504 rajveer 9885
    self.success = success
559 chandransh 9886
    self.scx = scx
504 rajveer 9887
 
9888
  def read(self, iprot):
9889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9891
      return
9892
    iprot.readStructBegin()
9893
    while True:
9894
      (fname, ftype, fid) = iprot.readFieldBegin()
9895
      if ftype == TType.STOP:
9896
        break
9897
      if fid == 0:
559 chandransh 9898
        if ftype == TType.STRUCT:
9899
          self.success = Cart()
9900
          self.success.read(iprot)
504 rajveer 9901
        else:
9902
          iprot.skip(ftype)
9903
      elif fid == 1:
9904
        if ftype == TType.STRUCT:
559 chandransh 9905
          self.scx = ShoppingCartException()
9906
          self.scx.read(iprot)
504 rajveer 9907
        else:
9908
          iprot.skip(ftype)
9909
      else:
9910
        iprot.skip(ftype)
9911
      iprot.readFieldEnd()
9912
    iprot.readStructEnd()
9913
 
9914
  def write(self, oprot):
9915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9917
      return
559 chandransh 9918
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9919
    if self.success is not None:
559 chandransh 9920
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9921
      self.success.write(oprot)
504 rajveer 9922
      oprot.writeFieldEnd()
3431 rajveer 9923
    if self.scx is not None:
559 chandransh 9924
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9925
      self.scx.write(oprot)
504 rajveer 9926
      oprot.writeFieldEnd()
9927
    oprot.writeFieldStop()
9928
    oprot.writeStructEnd()
9929
 
3431 rajveer 9930
  def validate(self):
9931
    return
9932
 
9933
 
504 rajveer 9934
  def __repr__(self):
9935
    L = ['%s=%r' % (key, value)
9936
      for key, value in self.__dict__.iteritems()]
9937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9938
 
9939
  def __eq__(self, other):
9940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9941
 
9942
  def __ne__(self, other):
9943
    return not (self == other)
9944
 
559 chandransh 9945
class getCartsByTime_args:
9946
  """
9947
  Attributes:
9948
   - from_time
9949
   - to_time
9950
   - status
9951
  """
9952
 
9953
  thrift_spec = (
9954
    None, # 0
9955
    (1, TType.I64, 'from_time', None, None, ), # 1
9956
    (2, TType.I64, 'to_time', None, None, ), # 2
9957
    (3, TType.I32, 'status', None, None, ), # 3
9958
  )
9959
 
9960
  def __init__(self, from_time=None, to_time=None, status=None,):
9961
    self.from_time = from_time
9962
    self.to_time = to_time
9963
    self.status = status
9964
 
9965
  def read(self, iprot):
9966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9968
      return
9969
    iprot.readStructBegin()
9970
    while True:
9971
      (fname, ftype, fid) = iprot.readFieldBegin()
9972
      if ftype == TType.STOP:
9973
        break
9974
      if fid == 1:
94 ashish 9975
        if ftype == TType.I64:
559 chandransh 9976
          self.from_time = iprot.readI64();
94 ashish 9977
        else:
9978
          iprot.skip(ftype)
122 ashish 9979
      elif fid == 2:
559 chandransh 9980
        if ftype == TType.I64:
9981
          self.to_time = iprot.readI64();
122 ashish 9982
        else:
9983
          iprot.skip(ftype)
559 chandransh 9984
      elif fid == 3:
9985
        if ftype == TType.I32:
9986
          self.status = iprot.readI32();
9987
        else:
9988
          iprot.skip(ftype)
94 ashish 9989
      else:
9990
        iprot.skip(ftype)
9991
      iprot.readFieldEnd()
9992
    iprot.readStructEnd()
9993
 
9994
  def write(self, oprot):
9995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9997
      return
559 chandransh 9998
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9999
    if self.from_time is not None:
559 chandransh 10000
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10001
      oprot.writeI64(self.from_time)
94 ashish 10002
      oprot.writeFieldEnd()
3431 rajveer 10003
    if self.to_time is not None:
559 chandransh 10004
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10005
      oprot.writeI64(self.to_time)
122 ashish 10006
      oprot.writeFieldEnd()
3431 rajveer 10007
    if self.status is not None:
559 chandransh 10008
      oprot.writeFieldBegin('status', TType.I32, 3)
10009
      oprot.writeI32(self.status)
10010
      oprot.writeFieldEnd()
94 ashish 10011
    oprot.writeFieldStop()
10012
    oprot.writeStructEnd()
10013
 
3431 rajveer 10014
  def validate(self):
10015
    return
10016
 
10017
 
94 ashish 10018
  def __repr__(self):
10019
    L = ['%s=%r' % (key, value)
10020
      for key, value in self.__dict__.iteritems()]
10021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10022
 
10023
  def __eq__(self, other):
10024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10025
 
10026
  def __ne__(self, other):
10027
    return not (self == other)
10028
 
559 chandransh 10029
class getCartsByTime_result:
94 ashish 10030
  """
10031
  Attributes:
10032
   - success
559 chandransh 10033
   - scx
94 ashish 10034
  """
10035
 
10036
  thrift_spec = (
559 chandransh 10037
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10038
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10039
  )
10040
 
559 chandransh 10041
  def __init__(self, success=None, scx=None,):
94 ashish 10042
    self.success = success
559 chandransh 10043
    self.scx = scx
94 ashish 10044
 
10045
  def read(self, iprot):
10046
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10047
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10048
      return
10049
    iprot.readStructBegin()
10050
    while True:
10051
      (fname, ftype, fid) = iprot.readFieldBegin()
10052
      if ftype == TType.STOP:
10053
        break
10054
      if fid == 0:
559 chandransh 10055
        if ftype == TType.LIST:
10056
          self.success = []
6736 amit.gupta 10057
          (_etype142, _size139) = iprot.readListBegin()
10058
          for _i143 in xrange(_size139):
10059
            _elem144 = Cart()
10060
            _elem144.read(iprot)
10061
            self.success.append(_elem144)
559 chandransh 10062
          iprot.readListEnd()
94 ashish 10063
        else:
10064
          iprot.skip(ftype)
10065
      elif fid == 1:
10066
        if ftype == TType.STRUCT:
559 chandransh 10067
          self.scx = ShoppingCartException()
10068
          self.scx.read(iprot)
94 ashish 10069
        else:
10070
          iprot.skip(ftype)
10071
      else:
10072
        iprot.skip(ftype)
10073
      iprot.readFieldEnd()
10074
    iprot.readStructEnd()
10075
 
10076
  def write(self, oprot):
10077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10079
      return
559 chandransh 10080
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10081
    if self.success is not None:
559 chandransh 10082
      oprot.writeFieldBegin('success', TType.LIST, 0)
10083
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 10084
      for iter145 in self.success:
10085
        iter145.write(oprot)
559 chandransh 10086
      oprot.writeListEnd()
94 ashish 10087
      oprot.writeFieldEnd()
3431 rajveer 10088
    if self.scx is not None:
559 chandransh 10089
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10090
      self.scx.write(oprot)
94 ashish 10091
      oprot.writeFieldEnd()
10092
    oprot.writeFieldStop()
10093
    oprot.writeStructEnd()
10094
 
3431 rajveer 10095
  def validate(self):
10096
    return
10097
 
10098
 
94 ashish 10099
  def __repr__(self):
10100
    L = ['%s=%r' % (key, value)
10101
      for key, value in self.__dict__.iteritems()]
10102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10103
 
10104
  def __eq__(self, other):
10105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10106
 
10107
  def __ne__(self, other):
10108
    return not (self == other)
10109
 
559 chandransh 10110
class addItemToCart_args:
10111
  """
10112
  Attributes:
10113
   - cartId
10114
   - itemId
10115
   - quantity
3557 rajveer 10116
   - sourceId
559 chandransh 10117
  """
10118
 
10119
  thrift_spec = (
10120
    None, # 0
10121
    (1, TType.I64, 'cartId', None, None, ), # 1
10122
    (2, TType.I64, 'itemId', None, None, ), # 2
10123
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10124
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10125
  )
10126
 
3557 rajveer 10127
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10128
    self.cartId = cartId
10129
    self.itemId = itemId
10130
    self.quantity = quantity
3557 rajveer 10131
    self.sourceId = sourceId
559 chandransh 10132
 
10133
  def read(self, iprot):
10134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10136
      return
10137
    iprot.readStructBegin()
10138
    while True:
10139
      (fname, ftype, fid) = iprot.readFieldBegin()
10140
      if ftype == TType.STOP:
10141
        break
10142
      if fid == 1:
10143
        if ftype == TType.I64:
10144
          self.cartId = iprot.readI64();
10145
        else:
10146
          iprot.skip(ftype)
10147
      elif fid == 2:
10148
        if ftype == TType.I64:
10149
          self.itemId = iprot.readI64();
10150
        else:
10151
          iprot.skip(ftype)
10152
      elif fid == 3:
10153
        if ftype == TType.I64:
10154
          self.quantity = iprot.readI64();
10155
        else:
10156
          iprot.skip(ftype)
3557 rajveer 10157
      elif fid == 4:
10158
        if ftype == TType.I64:
10159
          self.sourceId = iprot.readI64();
10160
        else:
10161
          iprot.skip(ftype)
559 chandransh 10162
      else:
10163
        iprot.skip(ftype)
10164
      iprot.readFieldEnd()
10165
    iprot.readStructEnd()
10166
 
10167
  def write(self, oprot):
10168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10170
      return
10171
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10172
    if self.cartId is not None:
559 chandransh 10173
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10174
      oprot.writeI64(self.cartId)
10175
      oprot.writeFieldEnd()
3431 rajveer 10176
    if self.itemId is not None:
559 chandransh 10177
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10178
      oprot.writeI64(self.itemId)
10179
      oprot.writeFieldEnd()
3431 rajveer 10180
    if self.quantity is not None:
559 chandransh 10181
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10182
      oprot.writeI64(self.quantity)
10183
      oprot.writeFieldEnd()
3557 rajveer 10184
    if self.sourceId is not None:
10185
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10186
      oprot.writeI64(self.sourceId)
10187
      oprot.writeFieldEnd()
559 chandransh 10188
    oprot.writeFieldStop()
10189
    oprot.writeStructEnd()
10190
 
3431 rajveer 10191
  def validate(self):
10192
    return
10193
 
10194
 
559 chandransh 10195
  def __repr__(self):
10196
    L = ['%s=%r' % (key, value)
10197
      for key, value in self.__dict__.iteritems()]
10198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10199
 
10200
  def __eq__(self, other):
10201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10202
 
10203
  def __ne__(self, other):
10204
    return not (self == other)
10205
 
10206
class addItemToCart_result:
10207
  """
10208
  Attributes:
2035 rajveer 10209
   - success
559 chandransh 10210
   - scx
10211
  """
10212
 
10213
  thrift_spec = (
2035 rajveer 10214
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10215
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10216
  )
10217
 
2035 rajveer 10218
  def __init__(self, success=None, scx=None,):
10219
    self.success = success
559 chandransh 10220
    self.scx = scx
10221
 
10222
  def read(self, iprot):
10223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10225
      return
10226
    iprot.readStructBegin()
10227
    while True:
10228
      (fname, ftype, fid) = iprot.readFieldBegin()
10229
      if ftype == TType.STOP:
10230
        break
2035 rajveer 10231
      if fid == 0:
10232
        if ftype == TType.STRING:
10233
          self.success = iprot.readString();
10234
        else:
10235
          iprot.skip(ftype)
10236
      elif fid == 1:
559 chandransh 10237
        if ftype == TType.STRUCT:
10238
          self.scx = ShoppingCartException()
10239
          self.scx.read(iprot)
10240
        else:
10241
          iprot.skip(ftype)
10242
      else:
10243
        iprot.skip(ftype)
10244
      iprot.readFieldEnd()
10245
    iprot.readStructEnd()
10246
 
10247
  def write(self, oprot):
10248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10250
      return
10251
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10252
    if self.success is not None:
2035 rajveer 10253
      oprot.writeFieldBegin('success', TType.STRING, 0)
10254
      oprot.writeString(self.success)
10255
      oprot.writeFieldEnd()
3431 rajveer 10256
    if self.scx is not None:
559 chandransh 10257
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10258
      self.scx.write(oprot)
10259
      oprot.writeFieldEnd()
10260
    oprot.writeFieldStop()
10261
    oprot.writeStructEnd()
10262
 
3431 rajveer 10263
  def validate(self):
10264
    return
10265
 
10266
 
559 chandransh 10267
  def __repr__(self):
10268
    L = ['%s=%r' % (key, value)
10269
      for key, value in self.__dict__.iteritems()]
10270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10271
 
10272
  def __eq__(self, other):
10273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10274
 
10275
  def __ne__(self, other):
10276
    return not (self == other)
10277
 
10278
class deleteItemFromCart_args:
10279
  """
10280
  Attributes:
10281
   - cartId
10282
   - itemId
10283
  """
10284
 
10285
  thrift_spec = (
10286
    None, # 0
10287
    (1, TType.I64, 'cartId', None, None, ), # 1
10288
    (2, TType.I64, 'itemId', None, None, ), # 2
10289
  )
10290
 
10291
  def __init__(self, cartId=None, itemId=None,):
10292
    self.cartId = cartId
10293
    self.itemId = itemId
10294
 
10295
  def read(self, iprot):
10296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10298
      return
10299
    iprot.readStructBegin()
10300
    while True:
10301
      (fname, ftype, fid) = iprot.readFieldBegin()
10302
      if ftype == TType.STOP:
10303
        break
10304
      if fid == 1:
10305
        if ftype == TType.I64:
10306
          self.cartId = iprot.readI64();
10307
        else:
10308
          iprot.skip(ftype)
10309
      elif fid == 2:
10310
        if ftype == TType.I64:
10311
          self.itemId = iprot.readI64();
10312
        else:
10313
          iprot.skip(ftype)
10314
      else:
10315
        iprot.skip(ftype)
10316
      iprot.readFieldEnd()
10317
    iprot.readStructEnd()
10318
 
10319
  def write(self, oprot):
10320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10322
      return
10323
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10324
    if self.cartId is not None:
559 chandransh 10325
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10326
      oprot.writeI64(self.cartId)
10327
      oprot.writeFieldEnd()
3431 rajveer 10328
    if self.itemId is not None:
559 chandransh 10329
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10330
      oprot.writeI64(self.itemId)
10331
      oprot.writeFieldEnd()
10332
    oprot.writeFieldStop()
10333
    oprot.writeStructEnd()
10334
 
3431 rajveer 10335
  def validate(self):
10336
    return
10337
 
10338
 
559 chandransh 10339
  def __repr__(self):
10340
    L = ['%s=%r' % (key, value)
10341
      for key, value in self.__dict__.iteritems()]
10342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10343
 
10344
  def __eq__(self, other):
10345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10346
 
10347
  def __ne__(self, other):
10348
    return not (self == other)
10349
 
10350
class deleteItemFromCart_result:
10351
  """
10352
  Attributes:
10353
   - scx
10354
  """
10355
 
10356
  thrift_spec = (
10357
    None, # 0
10358
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10359
  )
10360
 
10361
  def __init__(self, scx=None,):
10362
    self.scx = scx
10363
 
10364
  def read(self, iprot):
10365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10367
      return
10368
    iprot.readStructBegin()
10369
    while True:
10370
      (fname, ftype, fid) = iprot.readFieldBegin()
10371
      if ftype == TType.STOP:
10372
        break
10373
      if fid == 1:
10374
        if ftype == TType.STRUCT:
10375
          self.scx = ShoppingCartException()
10376
          self.scx.read(iprot)
10377
        else:
10378
          iprot.skip(ftype)
10379
      else:
10380
        iprot.skip(ftype)
10381
      iprot.readFieldEnd()
10382
    iprot.readStructEnd()
10383
 
10384
  def write(self, oprot):
10385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10387
      return
10388
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10389
    if self.scx is not None:
559 chandransh 10390
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10391
      self.scx.write(oprot)
10392
      oprot.writeFieldEnd()
10393
    oprot.writeFieldStop()
10394
    oprot.writeStructEnd()
10395
 
3431 rajveer 10396
  def validate(self):
10397
    return
10398
 
10399
 
559 chandransh 10400
  def __repr__(self):
10401
    L = ['%s=%r' % (key, value)
10402
      for key, value in self.__dict__.iteritems()]
10403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10404
 
10405
  def __eq__(self, other):
10406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10407
 
10408
  def __ne__(self, other):
10409
    return not (self == other)
10410
 
10411
class addAddressToCart_args:
10412
  """
10413
  Attributes:
10414
   - cartId
10415
   - addressId
10416
  """
10417
 
10418
  thrift_spec = (
10419
    None, # 0
10420
    (1, TType.I64, 'cartId', None, None, ), # 1
10421
    (2, TType.I64, 'addressId', None, None, ), # 2
10422
  )
10423
 
10424
  def __init__(self, cartId=None, addressId=None,):
10425
    self.cartId = cartId
10426
    self.addressId = addressId
10427
 
10428
  def read(self, iprot):
10429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10431
      return
10432
    iprot.readStructBegin()
10433
    while True:
10434
      (fname, ftype, fid) = iprot.readFieldBegin()
10435
      if ftype == TType.STOP:
10436
        break
10437
      if fid == 1:
10438
        if ftype == TType.I64:
10439
          self.cartId = iprot.readI64();
10440
        else:
10441
          iprot.skip(ftype)
10442
      elif fid == 2:
10443
        if ftype == TType.I64:
10444
          self.addressId = iprot.readI64();
10445
        else:
10446
          iprot.skip(ftype)
10447
      else:
10448
        iprot.skip(ftype)
10449
      iprot.readFieldEnd()
10450
    iprot.readStructEnd()
10451
 
10452
  def write(self, oprot):
10453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10455
      return
10456
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10457
    if self.cartId is not None:
559 chandransh 10458
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10459
      oprot.writeI64(self.cartId)
10460
      oprot.writeFieldEnd()
3431 rajveer 10461
    if self.addressId is not None:
559 chandransh 10462
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10463
      oprot.writeI64(self.addressId)
10464
      oprot.writeFieldEnd()
10465
    oprot.writeFieldStop()
10466
    oprot.writeStructEnd()
10467
 
3431 rajveer 10468
  def validate(self):
10469
    return
10470
 
10471
 
559 chandransh 10472
  def __repr__(self):
10473
    L = ['%s=%r' % (key, value)
10474
      for key, value in self.__dict__.iteritems()]
10475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10476
 
10477
  def __eq__(self, other):
10478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10479
 
10480
  def __ne__(self, other):
10481
    return not (self == other)
10482
 
10483
class addAddressToCart_result:
575 chandransh 10484
  """
10485
  Attributes:
10486
   - scx
10487
  """
559 chandransh 10488
 
10489
  thrift_spec = (
575 chandransh 10490
    None, # 0
10491
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10492
  )
10493
 
575 chandransh 10494
  def __init__(self, scx=None,):
10495
    self.scx = scx
10496
 
559 chandransh 10497
  def read(self, iprot):
10498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10500
      return
10501
    iprot.readStructBegin()
10502
    while True:
10503
      (fname, ftype, fid) = iprot.readFieldBegin()
10504
      if ftype == TType.STOP:
10505
        break
575 chandransh 10506
      if fid == 1:
10507
        if ftype == TType.STRUCT:
10508
          self.scx = ShoppingCartException()
10509
          self.scx.read(iprot)
10510
        else:
10511
          iprot.skip(ftype)
559 chandransh 10512
      else:
10513
        iprot.skip(ftype)
10514
      iprot.readFieldEnd()
10515
    iprot.readStructEnd()
10516
 
10517
  def write(self, oprot):
10518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10520
      return
10521
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10522
    if self.scx is not None:
575 chandransh 10523
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10524
      self.scx.write(oprot)
10525
      oprot.writeFieldEnd()
559 chandransh 10526
    oprot.writeFieldStop()
10527
    oprot.writeStructEnd()
10528
 
3431 rajveer 10529
  def validate(self):
10530
    return
10531
 
10532
 
559 chandransh 10533
  def __repr__(self):
10534
    L = ['%s=%r' % (key, value)
10535
      for key, value in self.__dict__.iteritems()]
10536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10537
 
10538
  def __eq__(self, other):
10539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10540
 
10541
  def __ne__(self, other):
10542
    return not (self == other)
10543
 
5553 rajveer 10544
class addStoreToCart_args:
10545
  """
10546
  Attributes:
10547
   - cartId
10548
   - storeId
10549
  """
10550
 
10551
  thrift_spec = (
10552
    None, # 0
10553
    (1, TType.I64, 'cartId', None, None, ), # 1
10554
    (2, TType.I64, 'storeId', None, None, ), # 2
10555
  )
10556
 
10557
  def __init__(self, cartId=None, storeId=None,):
10558
    self.cartId = cartId
10559
    self.storeId = storeId
10560
 
10561
  def read(self, iprot):
10562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10564
      return
10565
    iprot.readStructBegin()
10566
    while True:
10567
      (fname, ftype, fid) = iprot.readFieldBegin()
10568
      if ftype == TType.STOP:
10569
        break
10570
      if fid == 1:
10571
        if ftype == TType.I64:
10572
          self.cartId = iprot.readI64();
10573
        else:
10574
          iprot.skip(ftype)
10575
      elif fid == 2:
10576
        if ftype == TType.I64:
10577
          self.storeId = iprot.readI64();
10578
        else:
10579
          iprot.skip(ftype)
10580
      else:
10581
        iprot.skip(ftype)
10582
      iprot.readFieldEnd()
10583
    iprot.readStructEnd()
10584
 
10585
  def write(self, oprot):
10586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10588
      return
10589
    oprot.writeStructBegin('addStoreToCart_args')
10590
    if self.cartId is not None:
10591
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10592
      oprot.writeI64(self.cartId)
10593
      oprot.writeFieldEnd()
10594
    if self.storeId is not None:
10595
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10596
      oprot.writeI64(self.storeId)
10597
      oprot.writeFieldEnd()
10598
    oprot.writeFieldStop()
10599
    oprot.writeStructEnd()
10600
 
10601
  def validate(self):
10602
    return
10603
 
10604
 
10605
  def __repr__(self):
10606
    L = ['%s=%r' % (key, value)
10607
      for key, value in self.__dict__.iteritems()]
10608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10609
 
10610
  def __eq__(self, other):
10611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10612
 
10613
  def __ne__(self, other):
10614
    return not (self == other)
10615
 
10616
class addStoreToCart_result:
10617
  """
10618
  Attributes:
10619
   - scx
10620
  """
10621
 
10622
  thrift_spec = (
10623
    None, # 0
10624
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10625
  )
10626
 
10627
  def __init__(self, scx=None,):
10628
    self.scx = scx
10629
 
10630
  def read(self, iprot):
10631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10633
      return
10634
    iprot.readStructBegin()
10635
    while True:
10636
      (fname, ftype, fid) = iprot.readFieldBegin()
10637
      if ftype == TType.STOP:
10638
        break
10639
      if fid == 1:
10640
        if ftype == TType.STRUCT:
10641
          self.scx = ShoppingCartException()
10642
          self.scx.read(iprot)
10643
        else:
10644
          iprot.skip(ftype)
10645
      else:
10646
        iprot.skip(ftype)
10647
      iprot.readFieldEnd()
10648
    iprot.readStructEnd()
10649
 
10650
  def write(self, oprot):
10651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10653
      return
10654
    oprot.writeStructBegin('addStoreToCart_result')
10655
    if self.scx is not None:
10656
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10657
      self.scx.write(oprot)
10658
      oprot.writeFieldEnd()
10659
    oprot.writeFieldStop()
10660
    oprot.writeStructEnd()
10661
 
10662
  def validate(self):
10663
    return
10664
 
10665
 
10666
  def __repr__(self):
10667
    L = ['%s=%r' % (key, value)
10668
      for key, value in self.__dict__.iteritems()]
10669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10670
 
10671
  def __eq__(self, other):
10672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10673
 
10674
  def __ne__(self, other):
10675
    return not (self == other)
10676
 
1976 varun.gupt 10677
class applyCouponToCart_args:
10678
  """
10679
  Attributes:
10680
   - cartId
10681
   - couponCode
10682
   - totalPrice
10683
   - discountedPrice
10684
  """
10685
 
10686
  thrift_spec = (
10687
    None, # 0
10688
    (1, TType.I64, 'cartId', None, None, ), # 1
10689
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10690
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10691
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10692
  )
10693
 
10694
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10695
    self.cartId = cartId
10696
    self.couponCode = couponCode
10697
    self.totalPrice = totalPrice
10698
    self.discountedPrice = discountedPrice
10699
 
10700
  def read(self, iprot):
10701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10703
      return
10704
    iprot.readStructBegin()
10705
    while True:
10706
      (fname, ftype, fid) = iprot.readFieldBegin()
10707
      if ftype == TType.STOP:
10708
        break
10709
      if fid == 1:
10710
        if ftype == TType.I64:
10711
          self.cartId = iprot.readI64();
10712
        else:
10713
          iprot.skip(ftype)
10714
      elif fid == 2:
10715
        if ftype == TType.STRING:
10716
          self.couponCode = iprot.readString();
10717
        else:
10718
          iprot.skip(ftype)
10719
      elif fid == 3:
10720
        if ftype == TType.DOUBLE:
10721
          self.totalPrice = iprot.readDouble();
10722
        else:
10723
          iprot.skip(ftype)
10724
      elif fid == 4:
10725
        if ftype == TType.DOUBLE:
10726
          self.discountedPrice = iprot.readDouble();
10727
        else:
10728
          iprot.skip(ftype)
10729
      else:
10730
        iprot.skip(ftype)
10731
      iprot.readFieldEnd()
10732
    iprot.readStructEnd()
10733
 
10734
  def write(self, oprot):
10735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10737
      return
10738
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10739
    if self.cartId is not None:
1976 varun.gupt 10740
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10741
      oprot.writeI64(self.cartId)
10742
      oprot.writeFieldEnd()
3431 rajveer 10743
    if self.couponCode is not None:
1976 varun.gupt 10744
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10745
      oprot.writeString(self.couponCode)
10746
      oprot.writeFieldEnd()
3431 rajveer 10747
    if self.totalPrice is not None:
1976 varun.gupt 10748
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10749
      oprot.writeDouble(self.totalPrice)
10750
      oprot.writeFieldEnd()
3431 rajveer 10751
    if self.discountedPrice is not None:
1976 varun.gupt 10752
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10753
      oprot.writeDouble(self.discountedPrice)
10754
      oprot.writeFieldEnd()
10755
    oprot.writeFieldStop()
10756
    oprot.writeStructEnd()
10757
 
3431 rajveer 10758
  def validate(self):
10759
    return
10760
 
10761
 
1976 varun.gupt 10762
  def __repr__(self):
10763
    L = ['%s=%r' % (key, value)
10764
      for key, value in self.__dict__.iteritems()]
10765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10766
 
10767
  def __eq__(self, other):
10768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10769
 
10770
  def __ne__(self, other):
10771
    return not (self == other)
10772
 
10773
class applyCouponToCart_result:
10774
  """
10775
  Attributes:
10776
   - scx
10777
  """
10778
 
10779
  thrift_spec = (
10780
    None, # 0
10781
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10782
  )
10783
 
10784
  def __init__(self, scx=None,):
10785
    self.scx = scx
10786
 
10787
  def read(self, iprot):
10788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10790
      return
10791
    iprot.readStructBegin()
10792
    while True:
10793
      (fname, ftype, fid) = iprot.readFieldBegin()
10794
      if ftype == TType.STOP:
10795
        break
10796
      if fid == 1:
10797
        if ftype == TType.STRUCT:
10798
          self.scx = ShoppingCartException()
10799
          self.scx.read(iprot)
10800
        else:
10801
          iprot.skip(ftype)
10802
      else:
10803
        iprot.skip(ftype)
10804
      iprot.readFieldEnd()
10805
    iprot.readStructEnd()
10806
 
10807
  def write(self, oprot):
10808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10810
      return
10811
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10812
    if self.scx is not None:
1976 varun.gupt 10813
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10814
      self.scx.write(oprot)
10815
      oprot.writeFieldEnd()
10816
    oprot.writeFieldStop()
10817
    oprot.writeStructEnd()
10818
 
3431 rajveer 10819
  def validate(self):
10820
    return
10821
 
10822
 
1976 varun.gupt 10823
  def __repr__(self):
10824
    L = ['%s=%r' % (key, value)
10825
      for key, value in self.__dict__.iteritems()]
10826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10827
 
10828
  def __eq__(self, other):
10829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10830
 
10831
  def __ne__(self, other):
10832
    return not (self == other)
10833
 
10834
class removeCoupon_args:
10835
  """
10836
  Attributes:
10837
   - cartId
10838
  """
10839
 
10840
  thrift_spec = (
10841
    None, # 0
10842
    (1, TType.I64, 'cartId', None, None, ), # 1
10843
  )
10844
 
10845
  def __init__(self, cartId=None,):
10846
    self.cartId = cartId
10847
 
10848
  def read(self, iprot):
10849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10851
      return
10852
    iprot.readStructBegin()
10853
    while True:
10854
      (fname, ftype, fid) = iprot.readFieldBegin()
10855
      if ftype == TType.STOP:
10856
        break
10857
      if fid == 1:
10858
        if ftype == TType.I64:
10859
          self.cartId = iprot.readI64();
10860
        else:
10861
          iprot.skip(ftype)
10862
      else:
10863
        iprot.skip(ftype)
10864
      iprot.readFieldEnd()
10865
    iprot.readStructEnd()
10866
 
10867
  def write(self, oprot):
10868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10870
      return
10871
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10872
    if self.cartId is not None:
1976 varun.gupt 10873
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10874
      oprot.writeI64(self.cartId)
10875
      oprot.writeFieldEnd()
10876
    oprot.writeFieldStop()
10877
    oprot.writeStructEnd()
10878
 
3431 rajveer 10879
  def validate(self):
10880
    return
10881
 
10882
 
1976 varun.gupt 10883
  def __repr__(self):
10884
    L = ['%s=%r' % (key, value)
10885
      for key, value in self.__dict__.iteritems()]
10886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10887
 
10888
  def __eq__(self, other):
10889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10890
 
10891
  def __ne__(self, other):
10892
    return not (self == other)
10893
 
10894
class removeCoupon_result:
10895
  """
10896
  Attributes:
10897
   - scx
10898
  """
10899
 
10900
  thrift_spec = (
10901
    None, # 0
10902
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10903
  )
10904
 
10905
  def __init__(self, scx=None,):
10906
    self.scx = scx
10907
 
10908
  def read(self, iprot):
10909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10911
      return
10912
    iprot.readStructBegin()
10913
    while True:
10914
      (fname, ftype, fid) = iprot.readFieldBegin()
10915
      if ftype == TType.STOP:
10916
        break
10917
      if fid == 1:
10918
        if ftype == TType.STRUCT:
10919
          self.scx = ShoppingCartException()
10920
          self.scx.read(iprot)
10921
        else:
10922
          iprot.skip(ftype)
10923
      else:
10924
        iprot.skip(ftype)
10925
      iprot.readFieldEnd()
10926
    iprot.readStructEnd()
10927
 
10928
  def write(self, oprot):
10929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10931
      return
10932
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10933
    if self.scx is not None:
1976 varun.gupt 10934
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10935
      self.scx.write(oprot)
10936
      oprot.writeFieldEnd()
10937
    oprot.writeFieldStop()
10938
    oprot.writeStructEnd()
10939
 
3431 rajveer 10940
  def validate(self):
10941
    return
10942
 
10943
 
1976 varun.gupt 10944
  def __repr__(self):
10945
    L = ['%s=%r' % (key, value)
10946
      for key, value in self.__dict__.iteritems()]
10947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10948
 
10949
  def __eq__(self, other):
10950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10951
 
10952
  def __ne__(self, other):
10953
    return not (self == other)
10954
 
3554 varun.gupt 10955
class deleteDiscountsFromCart_args:
10956
  """
10957
  Attributes:
10958
   - cartId
10959
  """
10960
 
10961
  thrift_spec = (
10962
    None, # 0
10963
    (1, TType.I64, 'cartId', None, None, ), # 1
10964
  )
10965
 
10966
  def __init__(self, cartId=None,):
10967
    self.cartId = cartId
10968
 
10969
  def read(self, iprot):
10970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10972
      return
10973
    iprot.readStructBegin()
10974
    while True:
10975
      (fname, ftype, fid) = iprot.readFieldBegin()
10976
      if ftype == TType.STOP:
10977
        break
10978
      if fid == 1:
10979
        if ftype == TType.I64:
10980
          self.cartId = iprot.readI64();
10981
        else:
10982
          iprot.skip(ftype)
10983
      else:
10984
        iprot.skip(ftype)
10985
      iprot.readFieldEnd()
10986
    iprot.readStructEnd()
10987
 
10988
  def write(self, oprot):
10989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10991
      return
10992
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10993
    if self.cartId is not None:
10994
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10995
      oprot.writeI64(self.cartId)
10996
      oprot.writeFieldEnd()
10997
    oprot.writeFieldStop()
10998
    oprot.writeStructEnd()
10999
 
11000
  def validate(self):
11001
    return
11002
 
11003
 
11004
  def __repr__(self):
11005
    L = ['%s=%r' % (key, value)
11006
      for key, value in self.__dict__.iteritems()]
11007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11008
 
11009
  def __eq__(self, other):
11010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11011
 
11012
  def __ne__(self, other):
11013
    return not (self == other)
11014
 
11015
class deleteDiscountsFromCart_result:
11016
  """
11017
  Attributes:
11018
   - scx
11019
  """
11020
 
11021
  thrift_spec = (
11022
    None, # 0
11023
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11024
  )
11025
 
11026
  def __init__(self, scx=None,):
11027
    self.scx = scx
11028
 
11029
  def read(self, iprot):
11030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11032
      return
11033
    iprot.readStructBegin()
11034
    while True:
11035
      (fname, ftype, fid) = iprot.readFieldBegin()
11036
      if ftype == TType.STOP:
11037
        break
11038
      if fid == 1:
11039
        if ftype == TType.STRUCT:
11040
          self.scx = ShoppingCartException()
11041
          self.scx.read(iprot)
11042
        else:
11043
          iprot.skip(ftype)
11044
      else:
11045
        iprot.skip(ftype)
11046
      iprot.readFieldEnd()
11047
    iprot.readStructEnd()
11048
 
11049
  def write(self, oprot):
11050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11052
      return
11053
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11054
    if self.scx is not None:
11055
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11056
      self.scx.write(oprot)
11057
      oprot.writeFieldEnd()
11058
    oprot.writeFieldStop()
11059
    oprot.writeStructEnd()
11060
 
11061
  def validate(self):
11062
    return
11063
 
11064
 
11065
  def __repr__(self):
11066
    L = ['%s=%r' % (key, value)
11067
      for key, value in self.__dict__.iteritems()]
11068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11069
 
11070
  def __eq__(self, other):
11071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11072
 
11073
  def __ne__(self, other):
11074
    return not (self == other)
11075
 
11076
class saveDiscounts_args:
11077
  """
11078
  Attributes:
11079
   - discounts
11080
  """
11081
 
11082
  thrift_spec = (
11083
    None, # 0
11084
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11085
  )
11086
 
11087
  def __init__(self, discounts=None,):
11088
    self.discounts = discounts
11089
 
11090
  def read(self, iprot):
11091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11093
      return
11094
    iprot.readStructBegin()
11095
    while True:
11096
      (fname, ftype, fid) = iprot.readFieldBegin()
11097
      if ftype == TType.STOP:
11098
        break
11099
      if fid == 1:
11100
        if ftype == TType.LIST:
11101
          self.discounts = []
6736 amit.gupta 11102
          (_etype149, _size146) = iprot.readListBegin()
11103
          for _i150 in xrange(_size146):
11104
            _elem151 = Discount()
11105
            _elem151.read(iprot)
11106
            self.discounts.append(_elem151)
3554 varun.gupt 11107
          iprot.readListEnd()
11108
        else:
11109
          iprot.skip(ftype)
11110
      else:
11111
        iprot.skip(ftype)
11112
      iprot.readFieldEnd()
11113
    iprot.readStructEnd()
11114
 
11115
  def write(self, oprot):
11116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11118
      return
11119
    oprot.writeStructBegin('saveDiscounts_args')
11120
    if self.discounts is not None:
11121
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11122
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
6736 amit.gupta 11123
      for iter152 in self.discounts:
11124
        iter152.write(oprot)
3554 varun.gupt 11125
      oprot.writeListEnd()
11126
      oprot.writeFieldEnd()
11127
    oprot.writeFieldStop()
11128
    oprot.writeStructEnd()
11129
 
11130
  def validate(self):
11131
    return
11132
 
11133
 
11134
  def __repr__(self):
11135
    L = ['%s=%r' % (key, value)
11136
      for key, value in self.__dict__.iteritems()]
11137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11138
 
11139
  def __eq__(self, other):
11140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11141
 
11142
  def __ne__(self, other):
11143
    return not (self == other)
11144
 
11145
class saveDiscounts_result:
11146
  """
11147
  Attributes:
11148
   - scx
11149
  """
11150
 
11151
  thrift_spec = (
11152
    None, # 0
11153
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11154
  )
11155
 
11156
  def __init__(self, scx=None,):
11157
    self.scx = scx
11158
 
11159
  def read(self, iprot):
11160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11162
      return
11163
    iprot.readStructBegin()
11164
    while True:
11165
      (fname, ftype, fid) = iprot.readFieldBegin()
11166
      if ftype == TType.STOP:
11167
        break
11168
      if fid == 1:
11169
        if ftype == TType.STRUCT:
11170
          self.scx = ShoppingCartException()
11171
          self.scx.read(iprot)
11172
        else:
11173
          iprot.skip(ftype)
11174
      else:
11175
        iprot.skip(ftype)
11176
      iprot.readFieldEnd()
11177
    iprot.readStructEnd()
11178
 
11179
  def write(self, oprot):
11180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11182
      return
11183
    oprot.writeStructBegin('saveDiscounts_result')
11184
    if self.scx is not None:
11185
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11186
      self.scx.write(oprot)
11187
      oprot.writeFieldEnd()
11188
    oprot.writeFieldStop()
11189
    oprot.writeStructEnd()
11190
 
11191
  def validate(self):
11192
    return
11193
 
11194
 
11195
  def __repr__(self):
11196
    L = ['%s=%r' % (key, value)
11197
      for key, value in self.__dict__.iteritems()]
11198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11199
 
11200
  def __eq__(self, other):
11201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11202
 
11203
  def __ne__(self, other):
11204
    return not (self == other)
11205
 
690 chandransh 11206
class createOrders_args:
559 chandransh 11207
  """
11208
  Attributes:
11209
   - cartId
2815 vikas 11210
   - sessionSource
11211
   - sessionStartTime
3858 vikas 11212
   - firstSource
11213
   - firstSourceTime
5326 rajveer 11214
   - userId
6389 rajveer 11215
   - schemeId
559 chandransh 11216
  """
11217
 
11218
  thrift_spec = (
11219
    None, # 0
11220
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11221
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11222
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11223
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11224
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11225
    (6, TType.I64, 'userId', None, None, ), # 6
6389 rajveer 11226
    (7, TType.I64, 'schemeId', None, None, ), # 7
559 chandransh 11227
  )
11228
 
6389 rajveer 11229
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None,):
559 chandransh 11230
    self.cartId = cartId
2815 vikas 11231
    self.sessionSource = sessionSource
11232
    self.sessionStartTime = sessionStartTime
3858 vikas 11233
    self.firstSource = firstSource
11234
    self.firstSourceTime = firstSourceTime
5326 rajveer 11235
    self.userId = userId
6389 rajveer 11236
    self.schemeId = schemeId
559 chandransh 11237
 
11238
  def read(self, iprot):
11239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11241
      return
11242
    iprot.readStructBegin()
11243
    while True:
11244
      (fname, ftype, fid) = iprot.readFieldBegin()
11245
      if ftype == TType.STOP:
11246
        break
11247
      if fid == 1:
11248
        if ftype == TType.I64:
11249
          self.cartId = iprot.readI64();
11250
        else:
11251
          iprot.skip(ftype)
2815 vikas 11252
      elif fid == 2:
11253
        if ftype == TType.STRING:
11254
          self.sessionSource = iprot.readString();
11255
        else:
11256
          iprot.skip(ftype)
11257
      elif fid == 3:
11258
        if ftype == TType.I64:
11259
          self.sessionStartTime = iprot.readI64();
11260
        else:
11261
          iprot.skip(ftype)
3858 vikas 11262
      elif fid == 4:
11263
        if ftype == TType.STRING:
11264
          self.firstSource = iprot.readString();
11265
        else:
11266
          iprot.skip(ftype)
11267
      elif fid == 5:
11268
        if ftype == TType.I64:
11269
          self.firstSourceTime = iprot.readI64();
11270
        else:
11271
          iprot.skip(ftype)
5326 rajveer 11272
      elif fid == 6:
11273
        if ftype == TType.I64:
11274
          self.userId = iprot.readI64();
11275
        else:
11276
          iprot.skip(ftype)
6389 rajveer 11277
      elif fid == 7:
11278
        if ftype == TType.I64:
11279
          self.schemeId = iprot.readI64();
11280
        else:
11281
          iprot.skip(ftype)
559 chandransh 11282
      else:
11283
        iprot.skip(ftype)
11284
      iprot.readFieldEnd()
11285
    iprot.readStructEnd()
11286
 
11287
  def write(self, oprot):
11288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11290
      return
690 chandransh 11291
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11292
    if self.cartId is not None:
559 chandransh 11293
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11294
      oprot.writeI64(self.cartId)
11295
      oprot.writeFieldEnd()
3431 rajveer 11296
    if self.sessionSource is not None:
2815 vikas 11297
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11298
      oprot.writeString(self.sessionSource)
11299
      oprot.writeFieldEnd()
3431 rajveer 11300
    if self.sessionStartTime is not None:
2815 vikas 11301
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11302
      oprot.writeI64(self.sessionStartTime)
11303
      oprot.writeFieldEnd()
3858 vikas 11304
    if self.firstSource is not None:
11305
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11306
      oprot.writeString(self.firstSource)
11307
      oprot.writeFieldEnd()
11308
    if self.firstSourceTime is not None:
11309
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11310
      oprot.writeI64(self.firstSourceTime)
11311
      oprot.writeFieldEnd()
5326 rajveer 11312
    if self.userId is not None:
11313
      oprot.writeFieldBegin('userId', TType.I64, 6)
11314
      oprot.writeI64(self.userId)
11315
      oprot.writeFieldEnd()
6389 rajveer 11316
    if self.schemeId is not None:
11317
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
11318
      oprot.writeI64(self.schemeId)
11319
      oprot.writeFieldEnd()
559 chandransh 11320
    oprot.writeFieldStop()
11321
    oprot.writeStructEnd()
11322
 
3431 rajveer 11323
  def validate(self):
11324
    return
11325
 
11326
 
559 chandransh 11327
  def __repr__(self):
11328
    L = ['%s=%r' % (key, value)
11329
      for key, value in self.__dict__.iteritems()]
11330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11331
 
11332
  def __eq__(self, other):
11333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11334
 
11335
  def __ne__(self, other):
11336
    return not (self == other)
11337
 
690 chandransh 11338
class createOrders_result:
559 chandransh 11339
  """
11340
  Attributes:
94 ashish 11341
   - success
559 chandransh 11342
   - scx
94 ashish 11343
  """
11344
 
11345
  thrift_spec = (
575 chandransh 11346
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11347
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11348
  )
11349
 
559 chandransh 11350
  def __init__(self, success=None, scx=None,):
94 ashish 11351
    self.success = success
559 chandransh 11352
    self.scx = scx
94 ashish 11353
 
11354
  def read(self, iprot):
11355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11357
      return
11358
    iprot.readStructBegin()
11359
    while True:
11360
      (fname, ftype, fid) = iprot.readFieldBegin()
11361
      if ftype == TType.STOP:
11362
        break
11363
      if fid == 0:
575 chandransh 11364
        if ftype == TType.I64:
11365
          self.success = iprot.readI64();
94 ashish 11366
        else:
11367
          iprot.skip(ftype)
11368
      elif fid == 1:
11369
        if ftype == TType.STRUCT:
559 chandransh 11370
          self.scx = ShoppingCartException()
11371
          self.scx.read(iprot)
94 ashish 11372
        else:
11373
          iprot.skip(ftype)
11374
      else:
11375
        iprot.skip(ftype)
11376
      iprot.readFieldEnd()
11377
    iprot.readStructEnd()
11378
 
11379
  def write(self, oprot):
11380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11382
      return
690 chandransh 11383
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11384
    if self.success is not None:
575 chandransh 11385
      oprot.writeFieldBegin('success', TType.I64, 0)
11386
      oprot.writeI64(self.success)
94 ashish 11387
      oprot.writeFieldEnd()
3431 rajveer 11388
    if self.scx is not None:
559 chandransh 11389
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11390
      self.scx.write(oprot)
94 ashish 11391
      oprot.writeFieldEnd()
11392
    oprot.writeFieldStop()
11393
    oprot.writeStructEnd()
11394
 
3431 rajveer 11395
  def validate(self):
11396
    return
11397
 
11398
 
94 ashish 11399
  def __repr__(self):
11400
    L = ['%s=%r' % (key, value)
11401
      for key, value in self.__dict__.iteritems()]
11402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11403
 
11404
  def __eq__(self, other):
11405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11406
 
11407
  def __ne__(self, other):
11408
    return not (self == other)
11409
 
559 chandransh 11410
class validateCart_args:
94 ashish 11411
  """
11412
  Attributes:
559 chandransh 11413
   - cartId
3557 rajveer 11414
   - sourceId
94 ashish 11415
  """
11416
 
11417
  thrift_spec = (
11418
    None, # 0
559 chandransh 11419
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11420
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11421
  )
11422
 
3557 rajveer 11423
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11424
    self.cartId = cartId
3557 rajveer 11425
    self.sourceId = sourceId
94 ashish 11426
 
11427
  def read(self, iprot):
11428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11430
      return
11431
    iprot.readStructBegin()
11432
    while True:
11433
      (fname, ftype, fid) = iprot.readFieldBegin()
11434
      if ftype == TType.STOP:
11435
        break
11436
      if fid == 1:
11437
        if ftype == TType.I64:
559 chandransh 11438
          self.cartId = iprot.readI64();
94 ashish 11439
        else:
11440
          iprot.skip(ftype)
3557 rajveer 11441
      elif fid == 2:
11442
        if ftype == TType.I64:
11443
          self.sourceId = iprot.readI64();
11444
        else:
11445
          iprot.skip(ftype)
94 ashish 11446
      else:
11447
        iprot.skip(ftype)
11448
      iprot.readFieldEnd()
11449
    iprot.readStructEnd()
11450
 
11451
  def write(self, oprot):
11452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11454
      return
559 chandransh 11455
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11456
    if self.cartId is not None:
559 chandransh 11457
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11458
      oprot.writeI64(self.cartId)
94 ashish 11459
      oprot.writeFieldEnd()
3557 rajveer 11460
    if self.sourceId is not None:
11461
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11462
      oprot.writeI64(self.sourceId)
11463
      oprot.writeFieldEnd()
94 ashish 11464
    oprot.writeFieldStop()
11465
    oprot.writeStructEnd()
11466
 
3431 rajveer 11467
  def validate(self):
11468
    return
11469
 
11470
 
94 ashish 11471
  def __repr__(self):
11472
    L = ['%s=%r' % (key, value)
11473
      for key, value in self.__dict__.iteritems()]
11474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11475
 
11476
  def __eq__(self, other):
11477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11478
 
11479
  def __ne__(self, other):
11480
    return not (self == other)
11481
 
559 chandransh 11482
class validateCart_result:
94 ashish 11483
  """
11484
  Attributes:
11485
   - success
575 chandransh 11486
   - scex
94 ashish 11487
  """
11488
 
11489
  thrift_spec = (
6736 amit.gupta 11490
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
575 chandransh 11491
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11492
  )
11493
 
575 chandransh 11494
  def __init__(self, success=None, scex=None,):
94 ashish 11495
    self.success = success
575 chandransh 11496
    self.scex = scex
94 ashish 11497
 
11498
  def read(self, iprot):
11499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11501
      return
11502
    iprot.readStructBegin()
11503
    while True:
11504
      (fname, ftype, fid) = iprot.readFieldBegin()
11505
      if ftype == TType.STOP:
11506
        break
11507
      if fid == 0:
6736 amit.gupta 11508
        if ftype == TType.LIST:
11509
          self.success = []
11510
          (_etype156, _size153) = iprot.readListBegin()
11511
          for _i157 in xrange(_size153):
11512
            _elem158 = iprot.readString();
11513
            self.success.append(_elem158)
11514
          iprot.readListEnd()
94 ashish 11515
        else:
11516
          iprot.skip(ftype)
575 chandransh 11517
      elif fid == 1:
11518
        if ftype == TType.STRUCT:
11519
          self.scex = ShoppingCartException()
11520
          self.scex.read(iprot)
11521
        else:
11522
          iprot.skip(ftype)
94 ashish 11523
      else:
11524
        iprot.skip(ftype)
11525
      iprot.readFieldEnd()
11526
    iprot.readStructEnd()
11527
 
11528
  def write(self, oprot):
11529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11531
      return
559 chandransh 11532
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11533
    if self.success is not None:
6736 amit.gupta 11534
      oprot.writeFieldBegin('success', TType.LIST, 0)
11535
      oprot.writeListBegin(TType.STRING, len(self.success))
11536
      for iter159 in self.success:
11537
        oprot.writeString(iter159)
11538
      oprot.writeListEnd()
94 ashish 11539
      oprot.writeFieldEnd()
3431 rajveer 11540
    if self.scex is not None:
575 chandransh 11541
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11542
      self.scex.write(oprot)
11543
      oprot.writeFieldEnd()
559 chandransh 11544
    oprot.writeFieldStop()
11545
    oprot.writeStructEnd()
11546
 
3431 rajveer 11547
  def validate(self):
11548
    return
11549
 
11550
 
559 chandransh 11551
  def __repr__(self):
11552
    L = ['%s=%r' % (key, value)
11553
      for key, value in self.__dict__.iteritems()]
11554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11555
 
11556
  def __eq__(self, other):
11557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11558
 
11559
  def __ne__(self, other):
11560
    return not (self == other)
11561
 
690 chandransh 11562
class mergeCart_args:
575 chandransh 11563
  """
11564
  Attributes:
690 chandransh 11565
   - fromCartId
11566
   - toCartId
11567
  """
11568
 
11569
  thrift_spec = (
11570
    None, # 0
11571
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11572
    (2, TType.I64, 'toCartId', None, None, ), # 2
11573
  )
11574
 
11575
  def __init__(self, fromCartId=None, toCartId=None,):
11576
    self.fromCartId = fromCartId
11577
    self.toCartId = toCartId
11578
 
11579
  def read(self, iprot):
11580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11582
      return
11583
    iprot.readStructBegin()
11584
    while True:
11585
      (fname, ftype, fid) = iprot.readFieldBegin()
11586
      if ftype == TType.STOP:
11587
        break
11588
      if fid == 1:
11589
        if ftype == TType.I64:
11590
          self.fromCartId = iprot.readI64();
11591
        else:
11592
          iprot.skip(ftype)
11593
      elif fid == 2:
11594
        if ftype == TType.I64:
11595
          self.toCartId = iprot.readI64();
11596
        else:
11597
          iprot.skip(ftype)
11598
      else:
11599
        iprot.skip(ftype)
11600
      iprot.readFieldEnd()
11601
    iprot.readStructEnd()
11602
 
11603
  def write(self, oprot):
11604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11606
      return
11607
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11608
    if self.fromCartId is not None:
690 chandransh 11609
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11610
      oprot.writeI64(self.fromCartId)
11611
      oprot.writeFieldEnd()
3431 rajveer 11612
    if self.toCartId is not None:
690 chandransh 11613
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11614
      oprot.writeI64(self.toCartId)
11615
      oprot.writeFieldEnd()
11616
    oprot.writeFieldStop()
11617
    oprot.writeStructEnd()
11618
 
3431 rajveer 11619
  def validate(self):
11620
    return
11621
 
11622
 
690 chandransh 11623
  def __repr__(self):
11624
    L = ['%s=%r' % (key, value)
11625
      for key, value in self.__dict__.iteritems()]
11626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11627
 
11628
  def __eq__(self, other):
11629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11630
 
11631
  def __ne__(self, other):
11632
    return not (self == other)
11633
 
11634
class mergeCart_result:
11635
 
11636
  thrift_spec = (
11637
  )
11638
 
11639
  def read(self, iprot):
11640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11642
      return
11643
    iprot.readStructBegin()
11644
    while True:
11645
      (fname, ftype, fid) = iprot.readFieldBegin()
11646
      if ftype == TType.STOP:
11647
        break
11648
      else:
11649
        iprot.skip(ftype)
11650
      iprot.readFieldEnd()
11651
    iprot.readStructEnd()
11652
 
11653
  def write(self, oprot):
11654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11656
      return
11657
    oprot.writeStructBegin('mergeCart_result')
11658
    oprot.writeFieldStop()
11659
    oprot.writeStructEnd()
11660
 
3431 rajveer 11661
  def validate(self):
11662
    return
11663
 
11664
 
690 chandransh 11665
  def __repr__(self):
11666
    L = ['%s=%r' % (key, value)
11667
      for key, value in self.__dict__.iteritems()]
11668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11669
 
11670
  def __eq__(self, other):
11671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11672
 
11673
  def __ne__(self, other):
11674
    return not (self == other)
11675
 
11676
class checkOut_args:
11677
  """
11678
  Attributes:
575 chandransh 11679
   - cartId
11680
  """
11681
 
11682
  thrift_spec = (
11683
    None, # 0
11684
    (1, TType.I64, 'cartId', None, None, ), # 1
11685
  )
11686
 
11687
  def __init__(self, cartId=None,):
11688
    self.cartId = cartId
11689
 
11690
  def read(self, iprot):
11691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11693
      return
11694
    iprot.readStructBegin()
11695
    while True:
11696
      (fname, ftype, fid) = iprot.readFieldBegin()
11697
      if ftype == TType.STOP:
11698
        break
11699
      if fid == 1:
11700
        if ftype == TType.I64:
11701
          self.cartId = iprot.readI64();
11702
        else:
11703
          iprot.skip(ftype)
11704
      else:
11705
        iprot.skip(ftype)
11706
      iprot.readFieldEnd()
11707
    iprot.readStructEnd()
11708
 
11709
  def write(self, oprot):
11710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11712
      return
690 chandransh 11713
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11714
    if self.cartId is not None:
575 chandransh 11715
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11716
      oprot.writeI64(self.cartId)
11717
      oprot.writeFieldEnd()
11718
    oprot.writeFieldStop()
11719
    oprot.writeStructEnd()
11720
 
3431 rajveer 11721
  def validate(self):
11722
    return
11723
 
11724
 
575 chandransh 11725
  def __repr__(self):
11726
    L = ['%s=%r' % (key, value)
11727
      for key, value in self.__dict__.iteritems()]
11728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11729
 
11730
  def __eq__(self, other):
11731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11732
 
11733
  def __ne__(self, other):
11734
    return not (self == other)
11735
 
690 chandransh 11736
class checkOut_result:
575 chandransh 11737
  """
11738
  Attributes:
11739
   - success
11740
   - scex
11741
  """
11742
 
11743
  thrift_spec = (
11744
    (0, TType.BOOL, 'success', None, None, ), # 0
11745
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11746
  )
11747
 
11748
  def __init__(self, success=None, scex=None,):
11749
    self.success = success
11750
    self.scex = scex
11751
 
11752
  def read(self, iprot):
11753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11755
      return
11756
    iprot.readStructBegin()
11757
    while True:
11758
      (fname, ftype, fid) = iprot.readFieldBegin()
11759
      if ftype == TType.STOP:
11760
        break
11761
      if fid == 0:
11762
        if ftype == TType.BOOL:
11763
          self.success = iprot.readBool();
11764
        else:
11765
          iprot.skip(ftype)
11766
      elif fid == 1:
11767
        if ftype == TType.STRUCT:
11768
          self.scex = ShoppingCartException()
11769
          self.scex.read(iprot)
11770
        else:
11771
          iprot.skip(ftype)
11772
      else:
11773
        iprot.skip(ftype)
11774
      iprot.readFieldEnd()
11775
    iprot.readStructEnd()
11776
 
11777
  def write(self, oprot):
11778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11780
      return
690 chandransh 11781
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11782
    if self.success is not None:
575 chandransh 11783
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11784
      oprot.writeBool(self.success)
11785
      oprot.writeFieldEnd()
3431 rajveer 11786
    if self.scex is not None:
575 chandransh 11787
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11788
      self.scex.write(oprot)
11789
      oprot.writeFieldEnd()
11790
    oprot.writeFieldStop()
11791
    oprot.writeStructEnd()
11792
 
3431 rajveer 11793
  def validate(self):
11794
    return
11795
 
11796
 
575 chandransh 11797
  def __repr__(self):
11798
    L = ['%s=%r' % (key, value)
11799
      for key, value in self.__dict__.iteritems()]
11800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11801
 
11802
  def __eq__(self, other):
11803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11804
 
11805
  def __ne__(self, other):
11806
    return not (self == other)
11807
 
690 chandransh 11808
class resetCart_args:
559 chandransh 11809
  """
11810
  Attributes:
690 chandransh 11811
   - cartId
11812
   - items
559 chandransh 11813
  """
11814
 
11815
  thrift_spec = (
11816
    None, # 0
690 chandransh 11817
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11818
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11819
  )
11820
 
690 chandransh 11821
  def __init__(self, cartId=None, items=None,):
11822
    self.cartId = cartId
11823
    self.items = items
559 chandransh 11824
 
11825
  def read(self, iprot):
11826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11828
      return
11829
    iprot.readStructBegin()
11830
    while True:
11831
      (fname, ftype, fid) = iprot.readFieldBegin()
11832
      if ftype == TType.STOP:
11833
        break
11834
      if fid == 1:
11835
        if ftype == TType.I64:
690 chandransh 11836
          self.cartId = iprot.readI64();
559 chandransh 11837
        else:
11838
          iprot.skip(ftype)
11839
      elif fid == 2:
690 chandransh 11840
        if ftype == TType.MAP:
11841
          self.items = {}
6736 amit.gupta 11842
          (_ktype161, _vtype162, _size160 ) = iprot.readMapBegin() 
11843
          for _i164 in xrange(_size160):
11844
            _key165 = iprot.readI64();
11845
            _val166 = iprot.readDouble();
11846
            self.items[_key165] = _val166
690 chandransh 11847
          iprot.readMapEnd()
559 chandransh 11848
        else:
11849
          iprot.skip(ftype)
11850
      else:
11851
        iprot.skip(ftype)
11852
      iprot.readFieldEnd()
11853
    iprot.readStructEnd()
11854
 
11855
  def write(self, oprot):
11856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11858
      return
690 chandransh 11859
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11860
    if self.cartId is not None:
690 chandransh 11861
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11862
      oprot.writeI64(self.cartId)
94 ashish 11863
      oprot.writeFieldEnd()
3431 rajveer 11864
    if self.items is not None:
690 chandransh 11865
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11866
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
6736 amit.gupta 11867
      for kiter167,viter168 in self.items.items():
11868
        oprot.writeI64(kiter167)
11869
        oprot.writeDouble(viter168)
690 chandransh 11870
      oprot.writeMapEnd()
559 chandransh 11871
      oprot.writeFieldEnd()
94 ashish 11872
    oprot.writeFieldStop()
11873
    oprot.writeStructEnd()
11874
 
3431 rajveer 11875
  def validate(self):
11876
    return
11877
 
11878
 
94 ashish 11879
  def __repr__(self):
11880
    L = ['%s=%r' % (key, value)
11881
      for key, value in self.__dict__.iteritems()]
11882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11883
 
11884
  def __eq__(self, other):
11885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11886
 
11887
  def __ne__(self, other):
11888
    return not (self == other)
11889
 
690 chandransh 11890
class resetCart_result:
11891
  """
11892
  Attributes:
11893
   - success
11894
   - scex
11895
  """
559 chandransh 11896
 
11897
  thrift_spec = (
690 chandransh 11898
    (0, TType.BOOL, 'success', None, None, ), # 0
11899
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11900
  )
11901
 
690 chandransh 11902
  def __init__(self, success=None, scex=None,):
11903
    self.success = success
11904
    self.scex = scex
11905
 
559 chandransh 11906
  def read(self, iprot):
11907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11909
      return
11910
    iprot.readStructBegin()
11911
    while True:
11912
      (fname, ftype, fid) = iprot.readFieldBegin()
11913
      if ftype == TType.STOP:
11914
        break
690 chandransh 11915
      if fid == 0:
11916
        if ftype == TType.BOOL:
11917
          self.success = iprot.readBool();
11918
        else:
11919
          iprot.skip(ftype)
11920
      elif fid == 1:
11921
        if ftype == TType.STRUCT:
11922
          self.scex = ShoppingCartException()
11923
          self.scex.read(iprot)
11924
        else:
11925
          iprot.skip(ftype)
559 chandransh 11926
      else:
11927
        iprot.skip(ftype)
11928
      iprot.readFieldEnd()
11929
    iprot.readStructEnd()
11930
 
11931
  def write(self, oprot):
11932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11934
      return
690 chandransh 11935
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11936
    if self.success is not None:
690 chandransh 11937
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11938
      oprot.writeBool(self.success)
11939
      oprot.writeFieldEnd()
3431 rajveer 11940
    if self.scex is not None:
690 chandransh 11941
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11942
      self.scex.write(oprot)
11943
      oprot.writeFieldEnd()
559 chandransh 11944
    oprot.writeFieldStop()
11945
    oprot.writeStructEnd()
11946
 
3431 rajveer 11947
  def validate(self):
11948
    return
11949
 
11950
 
559 chandransh 11951
  def __repr__(self):
11952
    L = ['%s=%r' % (key, value)
11953
      for key, value in self.__dict__.iteritems()]
11954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11955
 
11956
  def __eq__(self, other):
11957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11958
 
11959
  def __ne__(self, other):
11960
    return not (self == other)
11961
 
2981 rajveer 11962
class getUserCount_args:
94 ashish 11963
  """
11964
  Attributes:
2981 rajveer 11965
   - userType
559 chandransh 11966
  """
11967
 
11968
  thrift_spec = (
11969
    None, # 0
2981 rajveer 11970
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11971
  )
11972
 
2981 rajveer 11973
  def __init__(self, userType=None,):
11974
    self.userType = userType
559 chandransh 11975
 
11976
  def read(self, iprot):
11977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11979
      return
11980
    iprot.readStructBegin()
11981
    while True:
11982
      (fname, ftype, fid) = iprot.readFieldBegin()
11983
      if ftype == TType.STOP:
11984
        break
11985
      if fid == 1:
2981 rajveer 11986
        if ftype == TType.I32:
11987
          self.userType = iprot.readI32();
559 chandransh 11988
        else:
11989
          iprot.skip(ftype)
11990
      else:
11991
        iprot.skip(ftype)
11992
      iprot.readFieldEnd()
11993
    iprot.readStructEnd()
11994
 
11995
  def write(self, oprot):
11996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11998
      return
2981 rajveer 11999
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12000
    if self.userType is not None:
2981 rajveer 12001
      oprot.writeFieldBegin('userType', TType.I32, 1)
12002
      oprot.writeI32(self.userType)
559 chandransh 12003
      oprot.writeFieldEnd()
12004
    oprot.writeFieldStop()
12005
    oprot.writeStructEnd()
12006
 
3431 rajveer 12007
  def validate(self):
12008
    return
12009
 
12010
 
559 chandransh 12011
  def __repr__(self):
12012
    L = ['%s=%r' % (key, value)
12013
      for key, value in self.__dict__.iteritems()]
12014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12015
 
12016
  def __eq__(self, other):
12017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12018
 
12019
  def __ne__(self, other):
12020
    return not (self == other)
12021
 
2981 rajveer 12022
class getUserCount_result:
94 ashish 12023
  """
12024
  Attributes:
12025
   - success
12026
  """
12027
 
12028
  thrift_spec = (
2981 rajveer 12029
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12030
  )
12031
 
2981 rajveer 12032
  def __init__(self, success=None,):
94 ashish 12033
    self.success = success
12034
 
12035
  def read(self, iprot):
12036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12038
      return
12039
    iprot.readStructBegin()
12040
    while True:
12041
      (fname, ftype, fid) = iprot.readFieldBegin()
12042
      if ftype == TType.STOP:
12043
        break
12044
      if fid == 0:
2981 rajveer 12045
        if ftype == TType.I64:
12046
          self.success = iprot.readI64();
94 ashish 12047
        else:
12048
          iprot.skip(ftype)
12049
      else:
12050
        iprot.skip(ftype)
12051
      iprot.readFieldEnd()
12052
    iprot.readStructEnd()
12053
 
12054
  def write(self, oprot):
12055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12057
      return
2981 rajveer 12058
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12059
    if self.success is not None:
2981 rajveer 12060
      oprot.writeFieldBegin('success', TType.I64, 0)
12061
      oprot.writeI64(self.success)
94 ashish 12062
      oprot.writeFieldEnd()
12063
    oprot.writeFieldStop()
12064
    oprot.writeStructEnd()
12065
 
3431 rajveer 12066
  def validate(self):
12067
    return
12068
 
12069
 
94 ashish 12070
  def __repr__(self):
12071
    L = ['%s=%r' % (key, value)
12072
      for key, value in self.__dict__.iteritems()]
12073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12074
 
12075
  def __eq__(self, other):
12076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12077
 
12078
  def __ne__(self, other):
12079
    return not (self == other)
12080
 
2981 rajveer 12081
class getAllUsers_args:
94 ashish 12082
  """
12083
  Attributes:
2981 rajveer 12084
   - userType
12085
   - startDate
12086
   - endDate
94 ashish 12087
  """
12088
 
12089
  thrift_spec = (
12090
    None, # 0
2981 rajveer 12091
    (1, TType.I32, 'userType', None, None, ), # 1
12092
    (2, TType.I64, 'startDate', None, None, ), # 2
12093
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12094
  )
12095
 
2981 rajveer 12096
  def __init__(self, userType=None, startDate=None, endDate=None,):
12097
    self.userType = userType
12098
    self.startDate = startDate
12099
    self.endDate = endDate
94 ashish 12100
 
12101
  def read(self, iprot):
12102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12104
      return
12105
    iprot.readStructBegin()
12106
    while True:
12107
      (fname, ftype, fid) = iprot.readFieldBegin()
12108
      if ftype == TType.STOP:
12109
        break
12110
      if fid == 1:
2981 rajveer 12111
        if ftype == TType.I32:
12112
          self.userType = iprot.readI32();
94 ashish 12113
        else:
12114
          iprot.skip(ftype)
12115
      elif fid == 2:
559 chandransh 12116
        if ftype == TType.I64:
2981 rajveer 12117
          self.startDate = iprot.readI64();
94 ashish 12118
        else:
12119
          iprot.skip(ftype)
2981 rajveer 12120
      elif fid == 3:
12121
        if ftype == TType.I64:
12122
          self.endDate = iprot.readI64();
12123
        else:
12124
          iprot.skip(ftype)
94 ashish 12125
      else:
12126
        iprot.skip(ftype)
12127
      iprot.readFieldEnd()
12128
    iprot.readStructEnd()
12129
 
12130
  def write(self, oprot):
12131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12133
      return
2981 rajveer 12134
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12135
    if self.userType is not None:
2981 rajveer 12136
      oprot.writeFieldBegin('userType', TType.I32, 1)
12137
      oprot.writeI32(self.userType)
94 ashish 12138
      oprot.writeFieldEnd()
3431 rajveer 12139
    if self.startDate is not None:
2981 rajveer 12140
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12141
      oprot.writeI64(self.startDate)
94 ashish 12142
      oprot.writeFieldEnd()
3431 rajveer 12143
    if self.endDate is not None:
2981 rajveer 12144
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12145
      oprot.writeI64(self.endDate)
12146
      oprot.writeFieldEnd()
94 ashish 12147
    oprot.writeFieldStop()
12148
    oprot.writeStructEnd()
12149
 
3431 rajveer 12150
  def validate(self):
12151
    return
12152
 
12153
 
94 ashish 12154
  def __repr__(self):
12155
    L = ['%s=%r' % (key, value)
12156
      for key, value in self.__dict__.iteritems()]
12157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12158
 
12159
  def __eq__(self, other):
12160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12161
 
12162
  def __ne__(self, other):
12163
    return not (self == other)
12164
 
2981 rajveer 12165
class getAllUsers_result:
94 ashish 12166
  """
12167
  Attributes:
12168
   - success
12169
  """
12170
 
12171
  thrift_spec = (
2981 rajveer 12172
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12173
  )
12174
 
2981 rajveer 12175
  def __init__(self, success=None,):
94 ashish 12176
    self.success = success
12177
 
12178
  def read(self, iprot):
12179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12181
      return
12182
    iprot.readStructBegin()
12183
    while True:
12184
      (fname, ftype, fid) = iprot.readFieldBegin()
12185
      if ftype == TType.STOP:
12186
        break
12187
      if fid == 0:
2981 rajveer 12188
        if ftype == TType.LIST:
12189
          self.success = []
6736 amit.gupta 12190
          (_etype172, _size169) = iprot.readListBegin()
12191
          for _i173 in xrange(_size169):
12192
            _elem174 = User()
12193
            _elem174.read(iprot)
12194
            self.success.append(_elem174)
2981 rajveer 12195
          iprot.readListEnd()
94 ashish 12196
        else:
12197
          iprot.skip(ftype)
12198
      else:
12199
        iprot.skip(ftype)
12200
      iprot.readFieldEnd()
12201
    iprot.readStructEnd()
12202
 
12203
  def write(self, oprot):
12204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12206
      return
2981 rajveer 12207
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12208
    if self.success is not None:
2981 rajveer 12209
      oprot.writeFieldBegin('success', TType.LIST, 0)
12210
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 12211
      for iter175 in self.success:
12212
        iter175.write(oprot)
2981 rajveer 12213
      oprot.writeListEnd()
94 ashish 12214
      oprot.writeFieldEnd()
12215
    oprot.writeFieldStop()
12216
    oprot.writeStructEnd()
12217
 
3431 rajveer 12218
  def validate(self):
12219
    return
12220
 
12221
 
94 ashish 12222
  def __repr__(self):
12223
    L = ['%s=%r' % (key, value)
12224
      for key, value in self.__dict__.iteritems()]
12225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12226
 
12227
  def __eq__(self, other):
12228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12229
 
12230
  def __ne__(self, other):
12231
    return not (self == other)
12232
 
2981 rajveer 12233
class getMyResearchItems_args:
559 chandransh 12234
  """
12235
  Attributes:
772 rajveer 12236
   - userId
559 chandransh 12237
  """
12238
 
12239
  thrift_spec = (
12240
    None, # 0
772 rajveer 12241
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12242
  )
12243
 
772 rajveer 12244
  def __init__(self, userId=None,):
12245
    self.userId = userId
559 chandransh 12246
 
12247
  def read(self, iprot):
12248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12250
      return
12251
    iprot.readStructBegin()
12252
    while True:
12253
      (fname, ftype, fid) = iprot.readFieldBegin()
12254
      if ftype == TType.STOP:
12255
        break
12256
      if fid == 1:
12257
        if ftype == TType.I64:
772 rajveer 12258
          self.userId = iprot.readI64();
559 chandransh 12259
        else:
12260
          iprot.skip(ftype)
12261
      else:
12262
        iprot.skip(ftype)
12263
      iprot.readFieldEnd()
12264
    iprot.readStructEnd()
12265
 
12266
  def write(self, oprot):
12267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12269
      return
2981 rajveer 12270
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12271
    if self.userId is not None:
772 rajveer 12272
      oprot.writeFieldBegin('userId', TType.I64, 1)
12273
      oprot.writeI64(self.userId)
559 chandransh 12274
      oprot.writeFieldEnd()
12275
    oprot.writeFieldStop()
12276
    oprot.writeStructEnd()
12277
 
3431 rajveer 12278
  def validate(self):
12279
    return
12280
 
12281
 
559 chandransh 12282
  def __repr__(self):
12283
    L = ['%s=%r' % (key, value)
12284
      for key, value in self.__dict__.iteritems()]
12285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12286
 
12287
  def __eq__(self, other):
12288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12289
 
12290
  def __ne__(self, other):
12291
    return not (self == other)
12292
 
2981 rajveer 12293
class getMyResearchItems_result:
559 chandransh 12294
  """
12295
  Attributes:
130 ashish 12296
   - success
559 chandransh 12297
   - scx
130 ashish 12298
  """
12299
 
12300
  thrift_spec = (
2981 rajveer 12301
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12302
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12303
  )
12304
 
559 chandransh 12305
  def __init__(self, success=None, scx=None,):
130 ashish 12306
    self.success = success
559 chandransh 12307
    self.scx = scx
130 ashish 12308
 
12309
  def read(self, iprot):
12310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12312
      return
12313
    iprot.readStructBegin()
12314
    while True:
12315
      (fname, ftype, fid) = iprot.readFieldBegin()
12316
      if ftype == TType.STOP:
12317
        break
12318
      if fid == 0:
2981 rajveer 12319
        if ftype == TType.LIST:
12320
          self.success = []
6736 amit.gupta 12321
          (_etype179, _size176) = iprot.readListBegin()
12322
          for _i180 in xrange(_size176):
12323
            _elem181 = iprot.readI64();
12324
            self.success.append(_elem181)
2981 rajveer 12325
          iprot.readListEnd()
130 ashish 12326
        else:
12327
          iprot.skip(ftype)
12328
      elif fid == 1:
12329
        if ftype == TType.STRUCT:
559 chandransh 12330
          self.scx = WidgetException()
12331
          self.scx.read(iprot)
130 ashish 12332
        else:
12333
          iprot.skip(ftype)
12334
      else:
12335
        iprot.skip(ftype)
12336
      iprot.readFieldEnd()
12337
    iprot.readStructEnd()
12338
 
12339
  def write(self, oprot):
12340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12342
      return
2981 rajveer 12343
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12344
    if self.success is not None:
2981 rajveer 12345
      oprot.writeFieldBegin('success', TType.LIST, 0)
12346
      oprot.writeListBegin(TType.I64, len(self.success))
6736 amit.gupta 12347
      for iter182 in self.success:
12348
        oprot.writeI64(iter182)
2981 rajveer 12349
      oprot.writeListEnd()
130 ashish 12350
      oprot.writeFieldEnd()
3431 rajveer 12351
    if self.scx is not None:
559 chandransh 12352
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12353
      self.scx.write(oprot)
130 ashish 12354
      oprot.writeFieldEnd()
12355
    oprot.writeFieldStop()
12356
    oprot.writeStructEnd()
12357
 
3431 rajveer 12358
  def validate(self):
12359
    return
12360
 
12361
 
130 ashish 12362
  def __repr__(self):
12363
    L = ['%s=%r' % (key, value)
12364
      for key, value in self.__dict__.iteritems()]
12365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12366
 
12367
  def __eq__(self, other):
12368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12369
 
12370
  def __ne__(self, other):
12371
    return not (self == other)
12372
 
2981 rajveer 12373
class updateMyResearch_args:
130 ashish 12374
  """
12375
  Attributes:
2981 rajveer 12376
   - userId
12377
   - itemId
130 ashish 12378
  """
12379
 
12380
  thrift_spec = (
12381
    None, # 0
2981 rajveer 12382
    (1, TType.I64, 'userId', None, None, ), # 1
12383
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12384
  )
12385
 
2981 rajveer 12386
  def __init__(self, userId=None, itemId=None,):
12387
    self.userId = userId
12388
    self.itemId = itemId
130 ashish 12389
 
12390
  def read(self, iprot):
12391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12393
      return
12394
    iprot.readStructBegin()
12395
    while True:
12396
      (fname, ftype, fid) = iprot.readFieldBegin()
12397
      if ftype == TType.STOP:
12398
        break
12399
      if fid == 1:
559 chandransh 12400
        if ftype == TType.I64:
2981 rajveer 12401
          self.userId = iprot.readI64();
130 ashish 12402
        else:
12403
          iprot.skip(ftype)
12404
      elif fid == 2:
559 chandransh 12405
        if ftype == TType.I64:
2981 rajveer 12406
          self.itemId = iprot.readI64();
559 chandransh 12407
        else:
12408
          iprot.skip(ftype)
130 ashish 12409
      else:
12410
        iprot.skip(ftype)
12411
      iprot.readFieldEnd()
12412
    iprot.readStructEnd()
12413
 
12414
  def write(self, oprot):
12415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12417
      return
2981 rajveer 12418
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12419
    if self.userId is not None:
2981 rajveer 12420
      oprot.writeFieldBegin('userId', TType.I64, 1)
12421
      oprot.writeI64(self.userId)
130 ashish 12422
      oprot.writeFieldEnd()
3431 rajveer 12423
    if self.itemId is not None:
2981 rajveer 12424
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12425
      oprot.writeI64(self.itemId)
130 ashish 12426
      oprot.writeFieldEnd()
12427
    oprot.writeFieldStop()
12428
    oprot.writeStructEnd()
12429
 
3431 rajveer 12430
  def validate(self):
12431
    return
12432
 
12433
 
130 ashish 12434
  def __repr__(self):
12435
    L = ['%s=%r' % (key, value)
12436
      for key, value in self.__dict__.iteritems()]
12437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12438
 
12439
  def __eq__(self, other):
12440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12441
 
12442
  def __ne__(self, other):
12443
    return not (self == other)
12444
 
2981 rajveer 12445
class updateMyResearch_result:
12446
  """
12447
  Attributes:
12448
   - success
12449
   - scx
12450
  """
559 chandransh 12451
 
12452
  thrift_spec = (
2981 rajveer 12453
    (0, TType.BOOL, 'success', None, None, ), # 0
12454
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12455
  )
12456
 
2981 rajveer 12457
  def __init__(self, success=None, scx=None,):
12458
    self.success = success
12459
    self.scx = scx
12460
 
559 chandransh 12461
  def read(self, iprot):
12462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12464
      return
12465
    iprot.readStructBegin()
12466
    while True:
12467
      (fname, ftype, fid) = iprot.readFieldBegin()
12468
      if ftype == TType.STOP:
12469
        break
2981 rajveer 12470
      if fid == 0:
12471
        if ftype == TType.BOOL:
12472
          self.success = iprot.readBool();
12473
        else:
12474
          iprot.skip(ftype)
12475
      elif fid == 1:
12476
        if ftype == TType.STRUCT:
12477
          self.scx = WidgetException()
12478
          self.scx.read(iprot)
12479
        else:
12480
          iprot.skip(ftype)
559 chandransh 12481
      else:
12482
        iprot.skip(ftype)
12483
      iprot.readFieldEnd()
12484
    iprot.readStructEnd()
12485
 
12486
  def write(self, oprot):
12487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12489
      return
2981 rajveer 12490
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12491
    if self.success is not None:
2981 rajveer 12492
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12493
      oprot.writeBool(self.success)
12494
      oprot.writeFieldEnd()
3431 rajveer 12495
    if self.scx is not None:
2981 rajveer 12496
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12497
      self.scx.write(oprot)
12498
      oprot.writeFieldEnd()
559 chandransh 12499
    oprot.writeFieldStop()
12500
    oprot.writeStructEnd()
12501
 
3431 rajveer 12502
  def validate(self):
12503
    return
12504
 
12505
 
559 chandransh 12506
  def __repr__(self):
12507
    L = ['%s=%r' % (key, value)
12508
      for key, value in self.__dict__.iteritems()]
12509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12510
 
12511
  def __eq__(self, other):
12512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12513
 
12514
  def __ne__(self, other):
12515
    return not (self == other)
12516
 
2981 rajveer 12517
class deleteItemFromMyResearch_args:
1596 ankur.sing 12518
  """
12519
  Attributes:
2981 rajveer 12520
   - userId
12521
   - itemId
1596 ankur.sing 12522
  """
559 chandransh 12523
 
1596 ankur.sing 12524
  thrift_spec = (
12525
    None, # 0
2981 rajveer 12526
    (1, TType.I64, 'userId', None, None, ), # 1
12527
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12528
  )
12529
 
2981 rajveer 12530
  def __init__(self, userId=None, itemId=None,):
12531
    self.userId = userId
12532
    self.itemId = itemId
1596 ankur.sing 12533
 
12534
  def read(self, iprot):
12535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12537
      return
12538
    iprot.readStructBegin()
12539
    while True:
12540
      (fname, ftype, fid) = iprot.readFieldBegin()
12541
      if ftype == TType.STOP:
12542
        break
12543
      if fid == 1:
2981 rajveer 12544
        if ftype == TType.I64:
12545
          self.userId = iprot.readI64();
1596 ankur.sing 12546
        else:
12547
          iprot.skip(ftype)
2981 rajveer 12548
      elif fid == 2:
12549
        if ftype == TType.I64:
12550
          self.itemId = iprot.readI64();
12551
        else:
12552
          iprot.skip(ftype)
1596 ankur.sing 12553
      else:
12554
        iprot.skip(ftype)
12555
      iprot.readFieldEnd()
12556
    iprot.readStructEnd()
12557
 
12558
  def write(self, oprot):
12559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12561
      return
2981 rajveer 12562
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12563
    if self.userId is not None:
2981 rajveer 12564
      oprot.writeFieldBegin('userId', TType.I64, 1)
12565
      oprot.writeI64(self.userId)
1596 ankur.sing 12566
      oprot.writeFieldEnd()
3431 rajveer 12567
    if self.itemId is not None:
2981 rajveer 12568
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12569
      oprot.writeI64(self.itemId)
12570
      oprot.writeFieldEnd()
1596 ankur.sing 12571
    oprot.writeFieldStop()
12572
    oprot.writeStructEnd()
12573
 
3431 rajveer 12574
  def validate(self):
12575
    return
12576
 
12577
 
1596 ankur.sing 12578
  def __repr__(self):
12579
    L = ['%s=%r' % (key, value)
12580
      for key, value in self.__dict__.iteritems()]
12581
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12582
 
12583
  def __eq__(self, other):
12584
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12585
 
12586
  def __ne__(self, other):
12587
    return not (self == other)
12588
 
2981 rajveer 12589
class deleteItemFromMyResearch_result:
1596 ankur.sing 12590
  """
12591
  Attributes:
2981 rajveer 12592
   - scx
1596 ankur.sing 12593
  """
12594
 
12595
  thrift_spec = (
2981 rajveer 12596
    None, # 0
12597
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12598
  )
12599
 
2981 rajveer 12600
  def __init__(self, scx=None,):
12601
    self.scx = scx
1596 ankur.sing 12602
 
12603
  def read(self, iprot):
12604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12606
      return
12607
    iprot.readStructBegin()
12608
    while True:
12609
      (fname, ftype, fid) = iprot.readFieldBegin()
12610
      if ftype == TType.STOP:
12611
        break
2981 rajveer 12612
      if fid == 1:
12613
        if ftype == TType.STRUCT:
12614
          self.scx = WidgetException()
12615
          self.scx.read(iprot)
1596 ankur.sing 12616
        else:
12617
          iprot.skip(ftype)
12618
      else:
12619
        iprot.skip(ftype)
12620
      iprot.readFieldEnd()
12621
    iprot.readStructEnd()
12622
 
12623
  def write(self, oprot):
12624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12626
      return
2981 rajveer 12627
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12628
    if self.scx is not None:
2981 rajveer 12629
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12630
      self.scx.write(oprot)
1596 ankur.sing 12631
      oprot.writeFieldEnd()
12632
    oprot.writeFieldStop()
12633
    oprot.writeStructEnd()
12634
 
3431 rajveer 12635
  def validate(self):
12636
    return
12637
 
12638
 
1596 ankur.sing 12639
  def __repr__(self):
12640
    L = ['%s=%r' % (key, value)
12641
      for key, value in self.__dict__.iteritems()]
12642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12643
 
12644
  def __eq__(self, other):
12645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12646
 
12647
  def __ne__(self, other):
12648
    return not (self == other)
12649
 
2981 rajveer 12650
class getBrowseHistoryItems_args:
1673 ankur.sing 12651
  """
12652
  Attributes:
2981 rajveer 12653
   - userId
1673 ankur.sing 12654
  """
1596 ankur.sing 12655
 
1673 ankur.sing 12656
  thrift_spec = (
12657
    None, # 0
2981 rajveer 12658
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12659
  )
12660
 
2981 rajveer 12661
  def __init__(self, userId=None,):
12662
    self.userId = userId
1673 ankur.sing 12663
 
12664
  def read(self, iprot):
12665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12667
      return
12668
    iprot.readStructBegin()
12669
    while True:
12670
      (fname, ftype, fid) = iprot.readFieldBegin()
12671
      if ftype == TType.STOP:
12672
        break
12673
      if fid == 1:
1891 ankur.sing 12674
        if ftype == TType.I64:
2981 rajveer 12675
          self.userId = iprot.readI64();
1891 ankur.sing 12676
        else:
12677
          iprot.skip(ftype)
1673 ankur.sing 12678
      else:
12679
        iprot.skip(ftype)
12680
      iprot.readFieldEnd()
12681
    iprot.readStructEnd()
12682
 
12683
  def write(self, oprot):
12684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12686
      return
2981 rajveer 12687
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12688
    if self.userId is not None:
2981 rajveer 12689
      oprot.writeFieldBegin('userId', TType.I64, 1)
12690
      oprot.writeI64(self.userId)
1673 ankur.sing 12691
      oprot.writeFieldEnd()
12692
    oprot.writeFieldStop()
12693
    oprot.writeStructEnd()
12694
 
3431 rajveer 12695
  def validate(self):
12696
    return
12697
 
12698
 
1673 ankur.sing 12699
  def __repr__(self):
12700
    L = ['%s=%r' % (key, value)
12701
      for key, value in self.__dict__.iteritems()]
12702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12703
 
12704
  def __eq__(self, other):
12705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12706
 
12707
  def __ne__(self, other):
12708
    return not (self == other)
12709
 
2981 rajveer 12710
class getBrowseHistoryItems_result:
1673 ankur.sing 12711
  """
12712
  Attributes:
12713
   - success
2981 rajveer 12714
   - scx
1673 ankur.sing 12715
  """
12716
 
12717
  thrift_spec = (
2981 rajveer 12718
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12719
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12720
  )
12721
 
2981 rajveer 12722
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12723
    self.success = success
2981 rajveer 12724
    self.scx = scx
1673 ankur.sing 12725
 
12726
  def read(self, iprot):
12727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12729
      return
12730
    iprot.readStructBegin()
12731
    while True:
12732
      (fname, ftype, fid) = iprot.readFieldBegin()
12733
      if ftype == TType.STOP:
12734
        break
12735
      if fid == 0:
12736
        if ftype == TType.LIST:
12737
          self.success = []
6736 amit.gupta 12738
          (_etype186, _size183) = iprot.readListBegin()
12739
          for _i187 in xrange(_size183):
12740
            _elem188 = iprot.readI64();
12741
            self.success.append(_elem188)
1673 ankur.sing 12742
          iprot.readListEnd()
12743
        else:
12744
          iprot.skip(ftype)
2981 rajveer 12745
      elif fid == 1:
12746
        if ftype == TType.STRUCT:
12747
          self.scx = WidgetException()
12748
          self.scx.read(iprot)
12749
        else:
12750
          iprot.skip(ftype)
1673 ankur.sing 12751
      else:
12752
        iprot.skip(ftype)
12753
      iprot.readFieldEnd()
12754
    iprot.readStructEnd()
12755
 
12756
  def write(self, oprot):
12757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12759
      return
2981 rajveer 12760
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12761
    if self.success is not None:
1673 ankur.sing 12762
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12763
      oprot.writeListBegin(TType.I64, len(self.success))
6736 amit.gupta 12764
      for iter189 in self.success:
12765
        oprot.writeI64(iter189)
1673 ankur.sing 12766
      oprot.writeListEnd()
12767
      oprot.writeFieldEnd()
3431 rajveer 12768
    if self.scx is not None:
2981 rajveer 12769
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12770
      self.scx.write(oprot)
2642 varun.gupt 12771
      oprot.writeFieldEnd()
12772
    oprot.writeFieldStop()
12773
    oprot.writeStructEnd()
12774
 
3431 rajveer 12775
  def validate(self):
12776
    return
12777
 
12778
 
2642 varun.gupt 12779
  def __repr__(self):
12780
    L = ['%s=%r' % (key, value)
12781
      for key, value in self.__dict__.iteritems()]
12782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12783
 
12784
  def __eq__(self, other):
12785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12786
 
12787
  def __ne__(self, other):
12788
    return not (self == other)
12789
 
2981 rajveer 12790
class updateBrowseHistory_args:
2642 varun.gupt 12791
  """
12792
  Attributes:
2981 rajveer 12793
   - userId
12794
   - itemId
2642 varun.gupt 12795
  """
12796
 
12797
  thrift_spec = (
12798
    None, # 0
2981 rajveer 12799
    (1, TType.I64, 'userId', None, None, ), # 1
12800
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12801
  )
12802
 
2981 rajveer 12803
  def __init__(self, userId=None, itemId=None,):
12804
    self.userId = userId
12805
    self.itemId = itemId
2642 varun.gupt 12806
 
12807
  def read(self, iprot):
12808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12810
      return
12811
    iprot.readStructBegin()
12812
    while True:
12813
      (fname, ftype, fid) = iprot.readFieldBegin()
12814
      if ftype == TType.STOP:
12815
        break
12816
      if fid == 1:
12817
        if ftype == TType.I64:
2981 rajveer 12818
          self.userId = iprot.readI64();
2642 varun.gupt 12819
        else:
12820
          iprot.skip(ftype)
12821
      elif fid == 2:
12822
        if ftype == TType.I64:
2981 rajveer 12823
          self.itemId = iprot.readI64();
2642 varun.gupt 12824
        else:
12825
          iprot.skip(ftype)
12826
      else:
12827
        iprot.skip(ftype)
12828
      iprot.readFieldEnd()
12829
    iprot.readStructEnd()
12830
 
12831
  def write(self, oprot):
12832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12834
      return
2981 rajveer 12835
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12836
    if self.userId is not None:
2981 rajveer 12837
      oprot.writeFieldBegin('userId', TType.I64, 1)
12838
      oprot.writeI64(self.userId)
2642 varun.gupt 12839
      oprot.writeFieldEnd()
3431 rajveer 12840
    if self.itemId is not None:
2981 rajveer 12841
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12842
      oprot.writeI64(self.itemId)
2642 varun.gupt 12843
      oprot.writeFieldEnd()
12844
    oprot.writeFieldStop()
12845
    oprot.writeStructEnd()
12846
 
3431 rajveer 12847
  def validate(self):
12848
    return
12849
 
12850
 
2642 varun.gupt 12851
  def __repr__(self):
12852
    L = ['%s=%r' % (key, value)
12853
      for key, value in self.__dict__.iteritems()]
12854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12855
 
12856
  def __eq__(self, other):
12857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12858
 
12859
  def __ne__(self, other):
12860
    return not (self == other)
12861
 
2981 rajveer 12862
class updateBrowseHistory_result:
2642 varun.gupt 12863
 
12864
  thrift_spec = (
12865
  )
12866
 
12867
  def read(self, iprot):
12868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12870
      return
12871
    iprot.readStructBegin()
12872
    while True:
12873
      (fname, ftype, fid) = iprot.readFieldBegin()
12874
      if ftype == TType.STOP:
12875
        break
12876
      else:
12877
        iprot.skip(ftype)
12878
      iprot.readFieldEnd()
12879
    iprot.readStructEnd()
12880
 
12881
  def write(self, oprot):
12882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12884
      return
2981 rajveer 12885
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12886
    oprot.writeFieldStop()
12887
    oprot.writeStructEnd()
12888
 
3431 rajveer 12889
  def validate(self):
12890
    return
12891
 
12892
 
2642 varun.gupt 12893
  def __repr__(self):
12894
    L = ['%s=%r' % (key, value)
12895
      for key, value in self.__dict__.iteritems()]
12896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12897
 
12898
  def __eq__(self, other):
12899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12900
 
12901
  def __ne__(self, other):
12902
    return not (self == other)
12903
 
3385 varun.gupt 12904
class getCartsWithCouponCount_args:
12905
  """
12906
  Attributes:
12907
   - couponCode
12908
  """
2642 varun.gupt 12909
 
3385 varun.gupt 12910
  thrift_spec = (
12911
    None, # 0
12912
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12913
  )
12914
 
12915
  def __init__(self, couponCode=None,):
12916
    self.couponCode = couponCode
12917
 
12918
  def read(self, iprot):
12919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12921
      return
12922
    iprot.readStructBegin()
12923
    while True:
12924
      (fname, ftype, fid) = iprot.readFieldBegin()
12925
      if ftype == TType.STOP:
12926
        break
12927
      if fid == 1:
12928
        if ftype == TType.STRING:
12929
          self.couponCode = iprot.readString();
12930
        else:
12931
          iprot.skip(ftype)
12932
      else:
12933
        iprot.skip(ftype)
12934
      iprot.readFieldEnd()
12935
    iprot.readStructEnd()
12936
 
12937
  def write(self, oprot):
12938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12940
      return
12941
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12942
    if self.couponCode is not None:
3385 varun.gupt 12943
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12944
      oprot.writeString(self.couponCode)
12945
      oprot.writeFieldEnd()
12946
    oprot.writeFieldStop()
12947
    oprot.writeStructEnd()
12948
 
3431 rajveer 12949
  def validate(self):
12950
    return
12951
 
12952
 
3385 varun.gupt 12953
  def __repr__(self):
12954
    L = ['%s=%r' % (key, value)
12955
      for key, value in self.__dict__.iteritems()]
12956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12957
 
12958
  def __eq__(self, other):
12959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12960
 
12961
  def __ne__(self, other):
12962
    return not (self == other)
12963
 
12964
class getCartsWithCouponCount_result:
12965
  """
12966
  Attributes:
12967
   - success
12968
  """
12969
 
12970
  thrift_spec = (
12971
    (0, TType.I64, 'success', None, None, ), # 0
12972
  )
12973
 
12974
  def __init__(self, success=None,):
12975
    self.success = success
12976
 
12977
  def read(self, iprot):
12978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12980
      return
12981
    iprot.readStructBegin()
12982
    while True:
12983
      (fname, ftype, fid) = iprot.readFieldBegin()
12984
      if ftype == TType.STOP:
12985
        break
12986
      if fid == 0:
12987
        if ftype == TType.I64:
12988
          self.success = iprot.readI64();
12989
        else:
12990
          iprot.skip(ftype)
12991
      else:
12992
        iprot.skip(ftype)
12993
      iprot.readFieldEnd()
12994
    iprot.readStructEnd()
12995
 
12996
  def write(self, oprot):
12997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12999
      return
13000
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13001
    if self.success is not None:
3385 varun.gupt 13002
      oprot.writeFieldBegin('success', TType.I64, 0)
13003
      oprot.writeI64(self.success)
13004
      oprot.writeFieldEnd()
13005
    oprot.writeFieldStop()
13006
    oprot.writeStructEnd()
13007
 
3431 rajveer 13008
  def validate(self):
13009
    return
13010
 
13011
 
3385 varun.gupt 13012
  def __repr__(self):
13013
    L = ['%s=%r' % (key, value)
13014
      for key, value in self.__dict__.iteritems()]
13015
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13016
 
13017
  def __eq__(self, other):
13018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13019
 
13020
  def __ne__(self, other):
13021
    return not (self == other)
3499 mandeep.dh 13022
 
13023
class increaseTrustLevel_args:
13024
  """
13025
  Attributes:
13026
   - userId
13027
   - trustLevelDelta
13028
  """
13029
 
13030
  thrift_spec = (
13031
    None, # 0
13032
    (1, TType.I64, 'userId', None, None, ), # 1
13033
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13034
  )
13035
 
13036
  def __init__(self, userId=None, trustLevelDelta=None,):
13037
    self.userId = userId
13038
    self.trustLevelDelta = trustLevelDelta
13039
 
13040
  def read(self, iprot):
13041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13043
      return
13044
    iprot.readStructBegin()
13045
    while True:
13046
      (fname, ftype, fid) = iprot.readFieldBegin()
13047
      if ftype == TType.STOP:
13048
        break
13049
      if fid == 1:
13050
        if ftype == TType.I64:
13051
          self.userId = iprot.readI64();
13052
        else:
13053
          iprot.skip(ftype)
13054
      elif fid == 2:
13055
        if ftype == TType.DOUBLE:
13056
          self.trustLevelDelta = iprot.readDouble();
13057
        else:
13058
          iprot.skip(ftype)
13059
      else:
13060
        iprot.skip(ftype)
13061
      iprot.readFieldEnd()
13062
    iprot.readStructEnd()
13063
 
13064
  def write(self, oprot):
13065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13067
      return
13068
    oprot.writeStructBegin('increaseTrustLevel_args')
13069
    if self.userId is not None:
13070
      oprot.writeFieldBegin('userId', TType.I64, 1)
13071
      oprot.writeI64(self.userId)
13072
      oprot.writeFieldEnd()
13073
    if self.trustLevelDelta is not None:
13074
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13075
      oprot.writeDouble(self.trustLevelDelta)
13076
      oprot.writeFieldEnd()
13077
    oprot.writeFieldStop()
13078
    oprot.writeStructEnd()
13079
 
13080
  def validate(self):
13081
    return
13082
 
13083
 
13084
  def __repr__(self):
13085
    L = ['%s=%r' % (key, value)
13086
      for key, value in self.__dict__.iteritems()]
13087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13088
 
13089
  def __eq__(self, other):
13090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13091
 
13092
  def __ne__(self, other):
13093
    return not (self == other)
4668 varun.gupt 13094
 
5407 amar.kumar 13095
class getTrustLevel_args:
13096
  """
13097
  Attributes:
13098
   - userId
13099
  """
13100
 
13101
  thrift_spec = (
13102
    None, # 0
13103
    (1, TType.I64, 'userId', None, None, ), # 1
13104
  )
13105
 
13106
  def __init__(self, userId=None,):
13107
    self.userId = userId
13108
 
13109
  def read(self, iprot):
13110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13112
      return
13113
    iprot.readStructBegin()
13114
    while True:
13115
      (fname, ftype, fid) = iprot.readFieldBegin()
13116
      if ftype == TType.STOP:
13117
        break
13118
      if fid == 1:
13119
        if ftype == TType.I64:
13120
          self.userId = iprot.readI64();
13121
        else:
13122
          iprot.skip(ftype)
13123
      else:
13124
        iprot.skip(ftype)
13125
      iprot.readFieldEnd()
13126
    iprot.readStructEnd()
13127
 
13128
  def write(self, oprot):
13129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13131
      return
13132
    oprot.writeStructBegin('getTrustLevel_args')
13133
    if self.userId is not None:
13134
      oprot.writeFieldBegin('userId', TType.I64, 1)
13135
      oprot.writeI64(self.userId)
13136
      oprot.writeFieldEnd()
13137
    oprot.writeFieldStop()
13138
    oprot.writeStructEnd()
13139
 
13140
  def validate(self):
13141
    return
13142
 
13143
 
13144
  def __repr__(self):
13145
    L = ['%s=%r' % (key, value)
13146
      for key, value in self.__dict__.iteritems()]
13147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13148
 
13149
  def __eq__(self, other):
13150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13151
 
13152
  def __ne__(self, other):
13153
    return not (self == other)
13154
 
13155
class getTrustLevel_result:
13156
  """
13157
  Attributes:
13158
   - success
13159
  """
13160
 
13161
  thrift_spec = (
13162
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13163
  )
13164
 
13165
  def __init__(self, success=None,):
13166
    self.success = success
13167
 
13168
  def read(self, iprot):
13169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13171
      return
13172
    iprot.readStructBegin()
13173
    while True:
13174
      (fname, ftype, fid) = iprot.readFieldBegin()
13175
      if ftype == TType.STOP:
13176
        break
13177
      if fid == 0:
13178
        if ftype == TType.DOUBLE:
13179
          self.success = iprot.readDouble();
13180
        else:
13181
          iprot.skip(ftype)
13182
      else:
13183
        iprot.skip(ftype)
13184
      iprot.readFieldEnd()
13185
    iprot.readStructEnd()
13186
 
13187
  def write(self, oprot):
13188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13190
      return
13191
    oprot.writeStructBegin('getTrustLevel_result')
13192
    if self.success is not None:
13193
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13194
      oprot.writeDouble(self.success)
13195
      oprot.writeFieldEnd()
13196
    oprot.writeFieldStop()
13197
    oprot.writeStructEnd()
13198
 
13199
  def validate(self):
13200
    return
13201
 
13202
 
13203
  def __repr__(self):
13204
    L = ['%s=%r' % (key, value)
13205
      for key, value in self.__dict__.iteritems()]
13206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13207
 
13208
  def __eq__(self, other):
13209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13210
 
13211
  def __ne__(self, other):
13212
    return not (self == other)
13213
 
4668 varun.gupt 13214
class showCODOption_args:
13215
  """
13216
  Attributes:
13217
   - cartId
13218
   - sourceId
13219
   - pincode
13220
  """
13221
 
13222
  thrift_spec = (
13223
    None, # 0
13224
    (1, TType.I64, 'cartId', None, None, ), # 1
13225
    (2, TType.I64, 'sourceId', None, None, ), # 2
13226
    (3, TType.STRING, 'pincode', None, None, ), # 3
13227
  )
13228
 
13229
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13230
    self.cartId = cartId
13231
    self.sourceId = sourceId
13232
    self.pincode = pincode
13233
 
13234
  def read(self, iprot):
13235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13237
      return
13238
    iprot.readStructBegin()
13239
    while True:
13240
      (fname, ftype, fid) = iprot.readFieldBegin()
13241
      if ftype == TType.STOP:
13242
        break
13243
      if fid == 1:
13244
        if ftype == TType.I64:
13245
          self.cartId = iprot.readI64();
13246
        else:
13247
          iprot.skip(ftype)
13248
      elif fid == 2:
13249
        if ftype == TType.I64:
13250
          self.sourceId = iprot.readI64();
13251
        else:
13252
          iprot.skip(ftype)
13253
      elif fid == 3:
13254
        if ftype == TType.STRING:
13255
          self.pincode = iprot.readString();
13256
        else:
13257
          iprot.skip(ftype)
13258
      else:
13259
        iprot.skip(ftype)
13260
      iprot.readFieldEnd()
13261
    iprot.readStructEnd()
13262
 
13263
  def write(self, oprot):
13264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13266
      return
13267
    oprot.writeStructBegin('showCODOption_args')
13268
    if self.cartId is not None:
13269
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13270
      oprot.writeI64(self.cartId)
13271
      oprot.writeFieldEnd()
13272
    if self.sourceId is not None:
13273
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13274
      oprot.writeI64(self.sourceId)
13275
      oprot.writeFieldEnd()
13276
    if self.pincode is not None:
13277
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13278
      oprot.writeString(self.pincode)
13279
      oprot.writeFieldEnd()
13280
    oprot.writeFieldStop()
13281
    oprot.writeStructEnd()
13282
 
13283
  def validate(self):
13284
    return
13285
 
13286
 
13287
  def __repr__(self):
13288
    L = ['%s=%r' % (key, value)
13289
      for key, value in self.__dict__.iteritems()]
13290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13291
 
13292
  def __eq__(self, other):
13293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13294
 
13295
  def __ne__(self, other):
13296
    return not (self == other)
13297
 
13298
class showCODOption_result:
13299
  """
13300
  Attributes:
13301
   - success
13302
  """
13303
 
13304
  thrift_spec = (
13305
    (0, TType.BOOL, 'success', None, None, ), # 0
13306
  )
13307
 
13308
  def __init__(self, success=None,):
13309
    self.success = success
13310
 
13311
  def read(self, iprot):
13312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13314
      return
13315
    iprot.readStructBegin()
13316
    while True:
13317
      (fname, ftype, fid) = iprot.readFieldBegin()
13318
      if ftype == TType.STOP:
13319
        break
13320
      if fid == 0:
13321
        if ftype == TType.BOOL:
13322
          self.success = iprot.readBool();
13323
        else:
13324
          iprot.skip(ftype)
13325
      else:
13326
        iprot.skip(ftype)
13327
      iprot.readFieldEnd()
13328
    iprot.readStructEnd()
13329
 
13330
  def write(self, oprot):
13331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13333
      return
13334
    oprot.writeStructBegin('showCODOption_result')
13335
    if self.success is not None:
13336
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13337
      oprot.writeBool(self.success)
13338
      oprot.writeFieldEnd()
13339
    oprot.writeFieldStop()
13340
    oprot.writeStructEnd()
13341
 
13342
  def validate(self):
13343
    return
13344
 
13345
 
13346
  def __repr__(self):
13347
    L = ['%s=%r' % (key, value)
13348
      for key, value in self.__dict__.iteritems()]
13349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13350
 
13351
  def __eq__(self, other):
13352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13353
 
13354
  def __ne__(self, other):
13355
    return not (self == other)
5623 anupam.sin 13356
 
13357
class getUserEmails_args:
13358
  """
13359
  Attributes:
13360
   - startDate
13361
   - endDate
13362
  """
13363
 
13364
  thrift_spec = (
13365
    None, # 0
13366
    (1, TType.I64, 'startDate', None, None, ), # 1
13367
    (2, TType.I64, 'endDate', None, None, ), # 2
13368
  )
13369
 
13370
  def __init__(self, startDate=None, endDate=None,):
13371
    self.startDate = startDate
13372
    self.endDate = endDate
13373
 
13374
  def read(self, iprot):
13375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13377
      return
13378
    iprot.readStructBegin()
13379
    while True:
13380
      (fname, ftype, fid) = iprot.readFieldBegin()
13381
      if ftype == TType.STOP:
13382
        break
13383
      if fid == 1:
13384
        if ftype == TType.I64:
13385
          self.startDate = iprot.readI64();
13386
        else:
13387
          iprot.skip(ftype)
13388
      elif fid == 2:
13389
        if ftype == TType.I64:
13390
          self.endDate = iprot.readI64();
13391
        else:
13392
          iprot.skip(ftype)
13393
      else:
13394
        iprot.skip(ftype)
13395
      iprot.readFieldEnd()
13396
    iprot.readStructEnd()
13397
 
13398
  def write(self, oprot):
13399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13401
      return
13402
    oprot.writeStructBegin('getUserEmails_args')
13403
    if self.startDate is not None:
13404
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13405
      oprot.writeI64(self.startDate)
13406
      oprot.writeFieldEnd()
13407
    if self.endDate is not None:
13408
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13409
      oprot.writeI64(self.endDate)
13410
      oprot.writeFieldEnd()
13411
    oprot.writeFieldStop()
13412
    oprot.writeStructEnd()
13413
 
13414
  def validate(self):
13415
    return
13416
 
13417
 
13418
  def __repr__(self):
13419
    L = ['%s=%r' % (key, value)
13420
      for key, value in self.__dict__.iteritems()]
13421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13422
 
13423
  def __eq__(self, other):
13424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13425
 
13426
  def __ne__(self, other):
13427
    return not (self == other)
13428
 
13429
class getUserEmails_result:
13430
  """
13431
  Attributes:
13432
   - success
13433
  """
13434
 
13435
  thrift_spec = (
13436
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13437
  )
13438
 
13439
  def __init__(self, success=None,):
13440
    self.success = success
13441
 
13442
  def read(self, iprot):
13443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13445
      return
13446
    iprot.readStructBegin()
13447
    while True:
13448
      (fname, ftype, fid) = iprot.readFieldBegin()
13449
      if ftype == TType.STOP:
13450
        break
13451
      if fid == 0:
13452
        if ftype == TType.LIST:
13453
          self.success = []
6736 amit.gupta 13454
          (_etype193, _size190) = iprot.readListBegin()
13455
          for _i194 in xrange(_size190):
13456
            _elem195 = iprot.readString();
13457
            self.success.append(_elem195)
5623 anupam.sin 13458
          iprot.readListEnd()
13459
        else:
13460
          iprot.skip(ftype)
13461
      else:
13462
        iprot.skip(ftype)
13463
      iprot.readFieldEnd()
13464
    iprot.readStructEnd()
13465
 
13466
  def write(self, oprot):
13467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13469
      return
13470
    oprot.writeStructBegin('getUserEmails_result')
13471
    if self.success is not None:
13472
      oprot.writeFieldBegin('success', TType.LIST, 0)
13473
      oprot.writeListBegin(TType.STRING, len(self.success))
6736 amit.gupta 13474
      for iter196 in self.success:
13475
        oprot.writeString(iter196)
5623 anupam.sin 13476
      oprot.writeListEnd()
13477
      oprot.writeFieldEnd()
13478
    oprot.writeFieldStop()
13479
    oprot.writeStructEnd()
13480
 
13481
  def validate(self):
13482
    return
13483
 
13484
 
13485
  def __repr__(self):
13486
    L = ['%s=%r' % (key, value)
13487
      for key, value in self.__dict__.iteritems()]
13488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13489
 
13490
  def __eq__(self, other):
13491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13492
 
13493
  def __ne__(self, other):
13494
    return not (self == other)
6821 amar.kumar 13495
 
6903 anupam.sin 13496
class insureItem_args:
13497
  """
13498
  Attributes:
13499
   - itemId
13500
   - cartId
13501
   - toInsure
13502
  """
13503
 
13504
  thrift_spec = (
13505
    None, # 0
13506
    (1, TType.I64, 'itemId', None, None, ), # 1
13507
    (2, TType.I64, 'cartId', None, None, ), # 2
13508
    (3, TType.BOOL, 'toInsure', None, None, ), # 3
13509
  )
13510
 
13511
  def __init__(self, itemId=None, cartId=None, toInsure=None,):
13512
    self.itemId = itemId
13513
    self.cartId = cartId
13514
    self.toInsure = toInsure
13515
 
13516
  def read(self, iprot):
13517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13519
      return
13520
    iprot.readStructBegin()
13521
    while True:
13522
      (fname, ftype, fid) = iprot.readFieldBegin()
13523
      if ftype == TType.STOP:
13524
        break
13525
      if fid == 1:
13526
        if ftype == TType.I64:
13527
          self.itemId = iprot.readI64();
13528
        else:
13529
          iprot.skip(ftype)
13530
      elif fid == 2:
13531
        if ftype == TType.I64:
13532
          self.cartId = iprot.readI64();
13533
        else:
13534
          iprot.skip(ftype)
13535
      elif fid == 3:
13536
        if ftype == TType.BOOL:
13537
          self.toInsure = iprot.readBool();
13538
        else:
13539
          iprot.skip(ftype)
13540
      else:
13541
        iprot.skip(ftype)
13542
      iprot.readFieldEnd()
13543
    iprot.readStructEnd()
13544
 
13545
  def write(self, oprot):
13546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13548
      return
13549
    oprot.writeStructBegin('insureItem_args')
13550
    if self.itemId is not None:
13551
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13552
      oprot.writeI64(self.itemId)
13553
      oprot.writeFieldEnd()
13554
    if self.cartId is not None:
13555
      oprot.writeFieldBegin('cartId', TType.I64, 2)
13556
      oprot.writeI64(self.cartId)
13557
      oprot.writeFieldEnd()
13558
    if self.toInsure is not None:
13559
      oprot.writeFieldBegin('toInsure', TType.BOOL, 3)
13560
      oprot.writeBool(self.toInsure)
13561
      oprot.writeFieldEnd()
13562
    oprot.writeFieldStop()
13563
    oprot.writeStructEnd()
13564
 
13565
  def validate(self):
13566
    return
13567
 
13568
 
13569
  def __repr__(self):
13570
    L = ['%s=%r' % (key, value)
13571
      for key, value in self.__dict__.iteritems()]
13572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13573
 
13574
  def __eq__(self, other):
13575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13576
 
13577
  def __ne__(self, other):
13578
    return not (self == other)
13579
 
13580
class insureItem_result:
13581
  """
13582
  Attributes:
13583
   - success
13584
  """
13585
 
13586
  thrift_spec = (
13587
    (0, TType.BOOL, 'success', None, None, ), # 0
13588
  )
13589
 
13590
  def __init__(self, success=None,):
13591
    self.success = success
13592
 
13593
  def read(self, iprot):
13594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13596
      return
13597
    iprot.readStructBegin()
13598
    while True:
13599
      (fname, ftype, fid) = iprot.readFieldBegin()
13600
      if ftype == TType.STOP:
13601
        break
13602
      if fid == 0:
13603
        if ftype == TType.BOOL:
13604
          self.success = iprot.readBool();
13605
        else:
13606
          iprot.skip(ftype)
13607
      else:
13608
        iprot.skip(ftype)
13609
      iprot.readFieldEnd()
13610
    iprot.readStructEnd()
13611
 
13612
  def write(self, oprot):
13613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13615
      return
13616
    oprot.writeStructBegin('insureItem_result')
13617
    if self.success is not None:
13618
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13619
      oprot.writeBool(self.success)
13620
      oprot.writeFieldEnd()
13621
    oprot.writeFieldStop()
13622
    oprot.writeStructEnd()
13623
 
13624
  def validate(self):
13625
    return
13626
 
13627
 
13628
  def __repr__(self):
13629
    L = ['%s=%r' % (key, value)
13630
      for key, value in self.__dict__.iteritems()]
13631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13632
 
13633
  def __eq__(self, other):
13634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13635
 
13636
  def __ne__(self, other):
13637
    return not (self == other)
13638
 
13639
class cancelInsurance_args:
13640
  """
13641
  Attributes:
13642
   - cartId
13643
  """
13644
 
13645
  thrift_spec = (
13646
    None, # 0
13647
    (1, TType.I64, 'cartId', None, None, ), # 1
13648
  )
13649
 
13650
  def __init__(self, cartId=None,):
13651
    self.cartId = cartId
13652
 
13653
  def read(self, iprot):
13654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13656
      return
13657
    iprot.readStructBegin()
13658
    while True:
13659
      (fname, ftype, fid) = iprot.readFieldBegin()
13660
      if ftype == TType.STOP:
13661
        break
13662
      if fid == 1:
13663
        if ftype == TType.I64:
13664
          self.cartId = iprot.readI64();
13665
        else:
13666
          iprot.skip(ftype)
13667
      else:
13668
        iprot.skip(ftype)
13669
      iprot.readFieldEnd()
13670
    iprot.readStructEnd()
13671
 
13672
  def write(self, oprot):
13673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13675
      return
13676
    oprot.writeStructBegin('cancelInsurance_args')
13677
    if self.cartId is not None:
13678
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13679
      oprot.writeI64(self.cartId)
13680
      oprot.writeFieldEnd()
13681
    oprot.writeFieldStop()
13682
    oprot.writeStructEnd()
13683
 
13684
  def validate(self):
13685
    return
13686
 
13687
 
13688
  def __repr__(self):
13689
    L = ['%s=%r' % (key, value)
13690
      for key, value in self.__dict__.iteritems()]
13691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13692
 
13693
  def __eq__(self, other):
13694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13695
 
13696
  def __ne__(self, other):
13697
    return not (self == other)
13698
 
13699
class cancelInsurance_result:
13700
  """
13701
  Attributes:
13702
   - success
13703
  """
13704
 
13705
  thrift_spec = (
13706
    (0, TType.BOOL, 'success', None, None, ), # 0
13707
  )
13708
 
13709
  def __init__(self, success=None,):
13710
    self.success = success
13711
 
13712
  def read(self, iprot):
13713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13715
      return
13716
    iprot.readStructBegin()
13717
    while True:
13718
      (fname, ftype, fid) = iprot.readFieldBegin()
13719
      if ftype == TType.STOP:
13720
        break
13721
      if fid == 0:
13722
        if ftype == TType.BOOL:
13723
          self.success = iprot.readBool();
13724
        else:
13725
          iprot.skip(ftype)
13726
      else:
13727
        iprot.skip(ftype)
13728
      iprot.readFieldEnd()
13729
    iprot.readStructEnd()
13730
 
13731
  def write(self, oprot):
13732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13734
      return
13735
    oprot.writeStructBegin('cancelInsurance_result')
13736
    if self.success is not None:
13737
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13738
      oprot.writeBool(self.success)
13739
      oprot.writeFieldEnd()
13740
    oprot.writeFieldStop()
13741
    oprot.writeStructEnd()
13742
 
13743
  def validate(self):
13744
    return
13745
 
13746
 
13747
  def __repr__(self):
13748
    L = ['%s=%r' % (key, value)
13749
      for key, value in self.__dict__.iteritems()]
13750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13751
 
13752
  def __eq__(self, other):
13753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13754
 
13755
  def __ne__(self, other):
13756
    return not (self == other)
13757
 
13758
class storeInsuranceSpecificDetails_args:
13759
  """
13760
  Attributes:
13761
   - addressId
13762
   - dob
13763
   - guardianName
13764
  """
13765
 
13766
  thrift_spec = (
13767
    None, # 0
13768
    (1, TType.I64, 'addressId', None, None, ), # 1
13769
    (2, TType.STRING, 'dob', None, None, ), # 2
13770
    (3, TType.STRING, 'guardianName', None, None, ), # 3
13771
  )
13772
 
13773
  def __init__(self, addressId=None, dob=None, guardianName=None,):
13774
    self.addressId = addressId
13775
    self.dob = dob
13776
    self.guardianName = guardianName
13777
 
13778
  def read(self, iprot):
13779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13781
      return
13782
    iprot.readStructBegin()
13783
    while True:
13784
      (fname, ftype, fid) = iprot.readFieldBegin()
13785
      if ftype == TType.STOP:
13786
        break
13787
      if fid == 1:
13788
        if ftype == TType.I64:
13789
          self.addressId = iprot.readI64();
13790
        else:
13791
          iprot.skip(ftype)
13792
      elif fid == 2:
13793
        if ftype == TType.STRING:
13794
          self.dob = iprot.readString();
13795
        else:
13796
          iprot.skip(ftype)
13797
      elif fid == 3:
13798
        if ftype == TType.STRING:
13799
          self.guardianName = iprot.readString();
13800
        else:
13801
          iprot.skip(ftype)
13802
      else:
13803
        iprot.skip(ftype)
13804
      iprot.readFieldEnd()
13805
    iprot.readStructEnd()
13806
 
13807
  def write(self, oprot):
13808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13810
      return
13811
    oprot.writeStructBegin('storeInsuranceSpecificDetails_args')
13812
    if self.addressId is not None:
13813
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13814
      oprot.writeI64(self.addressId)
13815
      oprot.writeFieldEnd()
13816
    if self.dob is not None:
13817
      oprot.writeFieldBegin('dob', TType.STRING, 2)
13818
      oprot.writeString(self.dob)
13819
      oprot.writeFieldEnd()
13820
    if self.guardianName is not None:
13821
      oprot.writeFieldBegin('guardianName', TType.STRING, 3)
13822
      oprot.writeString(self.guardianName)
13823
      oprot.writeFieldEnd()
13824
    oprot.writeFieldStop()
13825
    oprot.writeStructEnd()
13826
 
13827
  def validate(self):
13828
    return
13829
 
13830
 
13831
  def __repr__(self):
13832
    L = ['%s=%r' % (key, value)
13833
      for key, value in self.__dict__.iteritems()]
13834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13835
 
13836
  def __eq__(self, other):
13837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13838
 
13839
  def __ne__(self, other):
13840
    return not (self == other)
13841
 
13842
class storeInsuranceSpecificDetails_result:
13843
  """
13844
  Attributes:
13845
   - success
13846
  """
13847
 
13848
  thrift_spec = (
13849
    (0, TType.BOOL, 'success', None, None, ), # 0
13850
  )
13851
 
13852
  def __init__(self, success=None,):
13853
    self.success = success
13854
 
13855
  def read(self, iprot):
13856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13858
      return
13859
    iprot.readStructBegin()
13860
    while True:
13861
      (fname, ftype, fid) = iprot.readFieldBegin()
13862
      if ftype == TType.STOP:
13863
        break
13864
      if fid == 0:
13865
        if ftype == TType.BOOL:
13866
          self.success = iprot.readBool();
13867
        else:
13868
          iprot.skip(ftype)
13869
      else:
13870
        iprot.skip(ftype)
13871
      iprot.readFieldEnd()
13872
    iprot.readStructEnd()
13873
 
13874
  def write(self, oprot):
13875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13877
      return
13878
    oprot.writeStructBegin('storeInsuranceSpecificDetails_result')
13879
    if self.success is not None:
13880
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13881
      oprot.writeBool(self.success)
13882
      oprot.writeFieldEnd()
13883
    oprot.writeFieldStop()
13884
    oprot.writeStructEnd()
13885
 
13886
  def validate(self):
13887
    return
13888
 
13889
 
13890
  def __repr__(self):
13891
    L = ['%s=%r' % (key, value)
13892
      for key, value in self.__dict__.iteritems()]
13893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13894
 
13895
  def __eq__(self, other):
13896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13897
 
13898
  def __ne__(self, other):
13899
    return not (self == other)
13900
 
13901
class isInsuranceDetailPresent_args:
13902
  """
13903
  Attributes:
13904
   - addressId
13905
  """
13906
 
13907
  thrift_spec = (
13908
    None, # 0
13909
    (1, TType.I64, 'addressId', None, None, ), # 1
13910
  )
13911
 
13912
  def __init__(self, addressId=None,):
13913
    self.addressId = addressId
13914
 
13915
  def read(self, iprot):
13916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13918
      return
13919
    iprot.readStructBegin()
13920
    while True:
13921
      (fname, ftype, fid) = iprot.readFieldBegin()
13922
      if ftype == TType.STOP:
13923
        break
13924
      if fid == 1:
13925
        if ftype == TType.I64:
13926
          self.addressId = iprot.readI64();
13927
        else:
13928
          iprot.skip(ftype)
13929
      else:
13930
        iprot.skip(ftype)
13931
      iprot.readFieldEnd()
13932
    iprot.readStructEnd()
13933
 
13934
  def write(self, oprot):
13935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13937
      return
13938
    oprot.writeStructBegin('isInsuranceDetailPresent_args')
13939
    if self.addressId is not None:
13940
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13941
      oprot.writeI64(self.addressId)
13942
      oprot.writeFieldEnd()
13943
    oprot.writeFieldStop()
13944
    oprot.writeStructEnd()
13945
 
13946
  def validate(self):
13947
    return
13948
 
13949
 
13950
  def __repr__(self):
13951
    L = ['%s=%r' % (key, value)
13952
      for key, value in self.__dict__.iteritems()]
13953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13954
 
13955
  def __eq__(self, other):
13956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13957
 
13958
  def __ne__(self, other):
13959
    return not (self == other)
13960
 
13961
class isInsuranceDetailPresent_result:
13962
  """
13963
  Attributes:
13964
   - success
13965
  """
13966
 
13967
  thrift_spec = (
13968
    (0, TType.BOOL, 'success', None, None, ), # 0
13969
  )
13970
 
13971
  def __init__(self, success=None,):
13972
    self.success = success
13973
 
13974
  def read(self, iprot):
13975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13977
      return
13978
    iprot.readStructBegin()
13979
    while True:
13980
      (fname, ftype, fid) = iprot.readFieldBegin()
13981
      if ftype == TType.STOP:
13982
        break
13983
      if fid == 0:
13984
        if ftype == TType.BOOL:
13985
          self.success = iprot.readBool();
13986
        else:
13987
          iprot.skip(ftype)
13988
      else:
13989
        iprot.skip(ftype)
13990
      iprot.readFieldEnd()
13991
    iprot.readStructEnd()
13992
 
13993
  def write(self, oprot):
13994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13996
      return
13997
    oprot.writeStructBegin('isInsuranceDetailPresent_result')
13998
    if self.success is not None:
13999
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14000
      oprot.writeBool(self.success)
14001
      oprot.writeFieldEnd()
14002
    oprot.writeFieldStop()
14003
    oprot.writeStructEnd()
14004
 
14005
  def validate(self):
14006
    return
14007
 
14008
 
14009
  def __repr__(self):
14010
    L = ['%s=%r' % (key, value)
14011
      for key, value in self.__dict__.iteritems()]
14012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14013
 
14014
  def __eq__(self, other):
14015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14016
 
14017
  def __ne__(self, other):
14018
    return not (self == other)
14019
 
6821 amar.kumar 14020
class isProductAddedToCart_args:
14021
  """
14022
  Attributes:
14023
   - itemId
14024
   - startDate
14025
   - endDate
14026
  """
14027
 
14028
  thrift_spec = (
14029
    None, # 0
14030
    (1, TType.I64, 'itemId', None, None, ), # 1
14031
    (2, TType.I64, 'startDate', None, None, ), # 2
14032
    (3, TType.I64, 'endDate', None, None, ), # 3
14033
  )
14034
 
14035
  def __init__(self, itemId=None, startDate=None, endDate=None,):
14036
    self.itemId = itemId
14037
    self.startDate = startDate
14038
    self.endDate = endDate
14039
 
14040
  def read(self, iprot):
14041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14043
      return
14044
    iprot.readStructBegin()
14045
    while True:
14046
      (fname, ftype, fid) = iprot.readFieldBegin()
14047
      if ftype == TType.STOP:
14048
        break
14049
      if fid == 1:
14050
        if ftype == TType.I64:
14051
          self.itemId = iprot.readI64();
14052
        else:
14053
          iprot.skip(ftype)
14054
      elif fid == 2:
14055
        if ftype == TType.I64:
14056
          self.startDate = iprot.readI64();
14057
        else:
14058
          iprot.skip(ftype)
14059
      elif fid == 3:
14060
        if ftype == TType.I64:
14061
          self.endDate = iprot.readI64();
14062
        else:
14063
          iprot.skip(ftype)
14064
      else:
14065
        iprot.skip(ftype)
14066
      iprot.readFieldEnd()
14067
    iprot.readStructEnd()
14068
 
14069
  def write(self, oprot):
14070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14072
      return
14073
    oprot.writeStructBegin('isProductAddedToCart_args')
14074
    if self.itemId is not None:
14075
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14076
      oprot.writeI64(self.itemId)
14077
      oprot.writeFieldEnd()
14078
    if self.startDate is not None:
14079
      oprot.writeFieldBegin('startDate', TType.I64, 2)
14080
      oprot.writeI64(self.startDate)
14081
      oprot.writeFieldEnd()
14082
    if self.endDate is not None:
14083
      oprot.writeFieldBegin('endDate', TType.I64, 3)
14084
      oprot.writeI64(self.endDate)
14085
      oprot.writeFieldEnd()
14086
    oprot.writeFieldStop()
14087
    oprot.writeStructEnd()
14088
 
14089
  def validate(self):
14090
    return
14091
 
14092
 
14093
  def __repr__(self):
14094
    L = ['%s=%r' % (key, value)
14095
      for key, value in self.__dict__.iteritems()]
14096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14097
 
14098
  def __eq__(self, other):
14099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14100
 
14101
  def __ne__(self, other):
14102
    return not (self == other)
14103
 
14104
class isProductAddedToCart_result:
14105
  """
14106
  Attributes:
14107
   - success
14108
  """
14109
 
14110
  thrift_spec = (
14111
    (0, TType.BOOL, 'success', None, None, ), # 0
14112
  )
14113
 
14114
  def __init__(self, success=None,):
14115
    self.success = success
14116
 
14117
  def read(self, iprot):
14118
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14119
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14120
      return
14121
    iprot.readStructBegin()
14122
    while True:
14123
      (fname, ftype, fid) = iprot.readFieldBegin()
14124
      if ftype == TType.STOP:
14125
        break
14126
      if fid == 0:
14127
        if ftype == TType.BOOL:
14128
          self.success = iprot.readBool();
14129
        else:
14130
          iprot.skip(ftype)
14131
      else:
14132
        iprot.skip(ftype)
14133
      iprot.readFieldEnd()
14134
    iprot.readStructEnd()
14135
 
14136
  def write(self, oprot):
14137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14139
      return
14140
    oprot.writeStructBegin('isProductAddedToCart_result')
14141
    if self.success is not None:
14142
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14143
      oprot.writeBool(self.success)
14144
      oprot.writeFieldEnd()
14145
    oprot.writeFieldStop()
14146
    oprot.writeStructEnd()
14147
 
14148
  def validate(self):
14149
    return
14150
 
14151
 
14152
  def __repr__(self):
14153
    L = ['%s=%r' % (key, value)
14154
      for key, value in self.__dict__.iteritems()]
14155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14156
 
14157
  def __eq__(self, other):
14158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14159
 
14160
  def __ne__(self, other):
14161
    return not (self == other)