Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  """
21
  service
22
  """
559 chandransh 23
  def createAnonymousUser(self, jsessionId):
94 ashish 24
    """
25
    Parameters:
559 chandransh 26
     - jsessionId
94 ashish 27
    """
28
    pass
29
 
559 chandransh 30
  def getUserById(self, userId):
94 ashish 31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
5326 rajveer 37
  def getUserByCartId(self, cartId):
38
    """
39
    Parameters:
40
     - cartId
41
    """
42
    pass
43
 
1491 vikas 44
  def getUserByEmail(self, email):
45
    """
46
    Parameters:
47
     - email
48
    """
49
    pass
50
 
3032 mandeep.dh 51
  def getUserByMobileNumber(self, mobileNumber):
52
    """
53
    Parameters:
54
     - mobileNumber
55
    """
56
    pass
57
 
559 chandransh 58
  def createUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def updateUser(self, user):
94 ashish 66
    """
67
    Parameters:
559 chandransh 68
     - user
94 ashish 69
    """
70
    pass
71
 
559 chandransh 72
  def authenticateUser(self, email, password):
94 ashish 73
    """
74
    Parameters:
75
     - email
76
     - password
77
    """
78
    pass
79
 
80
  def userExists(self, email):
81
    """
82
    Parameters:
83
     - email
84
    """
85
    pass
86
 
567 rajveer 87
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 88
    """
89
    Parameters:
90
     - userId
91
     - address
513 rajveer 92
     - setDefault
94 ashish 93
    """
94
    pass
95
 
96
  def removeAddressForUser(self, userid, addressId):
97
    """
98
    Parameters:
99
     - userid
100
     - addressId
101
    """
102
    pass
103
 
104
  def setUserAsLoggedIn(self, userId, timestamp):
105
    """
106
    Parameters:
107
     - userId
108
     - timestamp
109
    """
110
    pass
111
 
112
  def setUserAsLoggedOut(self, userid, timestamp):
113
    """
114
    Parameters:
115
     - userid
116
     - timestamp
117
    """
118
    pass
119
 
504 rajveer 120
  def setDefaultAddress(self, userid, addressId):
121
    """
122
    Parameters:
123
     - userid
124
     - addressId
125
    """
126
    pass
127
 
594 rajveer 128
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 129
    """
130
    Parameters:
131
     - userid
594 rajveer 132
     - oldPassword
133
     - newPassword
94 ashish 134
    """
135
    pass
136
 
884 rajveer 137
  def forgotPassword(self, email, newPassword):
581 rajveer 138
    """
139
    Parameters:
140
     - email
884 rajveer 141
     - newPassword
581 rajveer 142
    """
143
    pass
144
 
594 rajveer 145
  def getAllAddressesForUser(self, userId):
146
    """
147
    Parameters:
148
     - userId
149
    """
150
    pass
151
 
1894 vikas 152
  def getAddressById(self, addressId):
153
    """
154
    Parameters:
155
     - addressId
156
    """
157
    pass
158
 
594 rajveer 159
  def getDefaultAddressId(self, userId):
160
    """
161
    Parameters:
162
     - userId
163
    """
164
    pass
165
 
785 rajveer 166
  def getDefaultPincode(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
1274 varun.gupt 173
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
174
    """
175
    Parameters:
176
     - userId
177
     - replyTo
178
     - communicationType
179
     - orderId
180
     - airwaybillNo
181
     - productName
182
     - subject
183
     - message
184
    """
185
    pass
186
 
1590 varun.gupt 187
  def getUserCommunicationById(self, id):
188
    """
189
    Parameters:
190
     - id
191
    """
192
    pass
193
 
194
  def getUserCommunicationByUser(self, userId):
195
    """
196
    Parameters:
197
     - userId
198
    """
199
    pass
200
 
201
  def getAllUserCommunications(self, ):
202
    pass
203
 
5407 amar.kumar 204
  def removeUserCommunication(self, id):
205
    """
206
    Parameters:
207
     - id
208
    """
209
    pass
210
 
1859 vikas 211
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 212
    """
213
    Parameters:
214
     - name
1859 vikas 215
     - addedOn
1845 vikas 216
    """
217
    pass
218
 
1899 vikas 219
  def getAllMasterAffiliates(self, ):
220
    pass
221
 
1845 vikas 222
  def getMasterAffiliateById(self, id):
223
    """
224
    Parameters:
225
     - id
226
    """
227
    pass
228
 
229
  def getMasterAffiliateByName(self, name):
230
    """
231
    Parameters:
232
     - name
233
    """
234
    pass
235
 
1859 vikas 236
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 237
    """
238
    Parameters:
239
     - name
240
     - url
241
     - masterAffiliateId
1859 vikas 242
     - addedOn
1845 vikas 243
    """
244
    pass
245
 
246
  def getAffiliateById(self, id):
247
    """
248
    Parameters:
249
     - id
250
    """
251
    pass
252
 
253
  def getAffiliateByName(self, name):
254
    """
255
    Parameters:
256
     - name
257
    """
258
    pass
259
 
1996 vikas 260
  def getTrackerById(self, id):
1845 vikas 261
    """
262
    Parameters:
263
     - id
264
    """
265
    pass
266
 
1996 vikas 267
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 268
    """
269
    Parameters:
1996 vikas 270
     - id
1845 vikas 271
    """
272
    pass
273
 
1996 vikas 274
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 275
    """
276
    Parameters:
277
     - affiliateId
278
     - userId
279
     - event
280
     - url
281
     - data
1859 vikas 282
     - addedOn
1845 vikas 283
    """
284
    pass
285
 
286
  def getTrackLogById(self, id):
287
    """
288
    Parameters:
289
     - id
290
    """
291
    pass
292
 
3293 vikas 293
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 294
    """
295
    Parameters:
1996 vikas 296
     - affiliateId
3293 vikas 297
     - startDate
298
     - endDate
1845 vikas 299
    """
300
    pass
301
 
302
  def getTrackLogsByUser(self, userId):
303
    """
304
    Parameters:
305
     - userId
306
    """
307
    pass
308
 
1996 vikas 309
  def getTrackLogs(self, userId, event, url):
1845 vikas 310
    """
311
    Parameters:
312
     - userId
313
     - event
314
     - url
315
    """
316
    pass
317
 
559 chandransh 318
  def getCurrentCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCart(self, cartId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - cartId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - from_time
336
     - to_time
337
     - status
94 ashish 338
    """
339
    pass
340
 
3557 rajveer 341
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 342
    """
343
    Parameters:
559 chandransh 344
     - cartId
345
     - itemId
346
     - quantity
3557 rajveer 347
     - sourceId
130 ashish 348
    """
349
    pass
350
 
559 chandransh 351
  def deleteItemFromCart(self, cartId, itemId):
352
    """
353
    Parameters:
354
     - cartId
355
     - itemId
356
    """
357
    pass
130 ashish 358
 
559 chandransh 359
  def addAddressToCart(self, cartId, addressId):
360
    """
361
    Parameters:
362
     - cartId
363
     - addressId
364
    """
365
    pass
366
 
5553 rajveer 367
  def addStoreToCart(self, cartId, storeId):
368
    """
369
    Parameters:
370
     - cartId
371
     - storeId
372
    """
373
    pass
374
 
6922 anupam.sin 375
  def applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 376
    """
377
    Parameters:
6922 anupam.sin 378
     - cart
1976 varun.gupt 379
     - couponCode
380
    """
381
    pass
382
 
383
  def removeCoupon(self, cartId):
384
    """
385
    Parameters:
386
     - cartId
387
    """
388
    pass
389
 
3554 varun.gupt 390
  def deleteDiscountsFromCart(self, cartId):
391
    """
392
    Deletes all the discounts associated with the cart
393
 
394
    Parameters:
395
     - cartId
396
    """
397
    pass
398
 
399
  def saveDiscounts(self, discounts):
400
    """
401
    Accepts a list of thrift objects of Discount type and saves them
402
 
403
    Parameters:
404
     - discounts
405
    """
406
    pass
407
 
6389 rajveer 408
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 409
    """
690 chandransh 410
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 411
 
559 chandransh 412
    Parameters:
413
     - cartId
2815 vikas 414
     - sessionSource
415
     - sessionStartTime
3858 vikas 416
     - firstSource
417
     - firstSourceTime
5326 rajveer 418
     - userId
6389 rajveer 419
     - schemeId
559 chandransh 420
    """
421
    pass
422
 
3557 rajveer 423
  def validateCart(self, cartId, sourceId):
559 chandransh 424
    """
690 chandransh 425
    Validates that:
426
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 427
    2. All of the lines in the cart are active items.
690 chandransh 428
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 429
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 430
 
559 chandransh 431
    Parameters:
432
     - cartId
3557 rajveer 433
     - sourceId
559 chandransh 434
    """
435
    pass
436
 
690 chandransh 437
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 438
    """
690 chandransh 439
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 440
 
575 chandransh 441
    Parameters:
690 chandransh 442
     - fromCartId
443
     - toCartId
444
    """
445
    pass
446
 
447
  def checkOut(self, cartId):
448
    """
449
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 450
 
690 chandransh 451
    Parameters:
575 chandransh 452
     - cartId
453
    """
454
    pass
455
 
690 chandransh 456
  def resetCart(self, cartId, items):
559 chandransh 457
    """
690 chandransh 458
    The second parameter is a map of item ids and their quantities which have been successfully processed.
459
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 460
 
559 chandransh 461
    Parameters:
690 chandransh 462
     - cartId
463
     - items
559 chandransh 464
    """
465
    pass
466
 
2981 rajveer 467
  def getUserCount(self, userType):
559 chandransh 468
    """
2981 rajveer 469
    Returns number of registered users.
470
    If userType = null, then it returns count of all users, including anonymous
471
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
472
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 473
 
559 chandransh 474
    Parameters:
2981 rajveer 475
     - userType
559 chandransh 476
    """
477
    pass
478
 
2981 rajveer 479
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 480
    """
2981 rajveer 481
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
482
    If any of startDate or endDate is -1, then that filter is ignored.
483
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 484
 
485
 
559 chandransh 486
    Parameters:
2981 rajveer 487
     - userType
488
     - startDate
489
     - endDate
559 chandransh 490
    """
491
    pass
492
 
2981 rajveer 493
  def getMyResearchItems(self, userId):
559 chandransh 494
    """
2981 rajveer 495
    Returns list of item ids in myresearch for the user
3431 rajveer 496
 
559 chandransh 497
    Parameters:
498
     - userId
499
    """
500
    pass
501
 
2981 rajveer 502
  def updateMyResearch(self, userId, itemId):
559 chandransh 503
    """
2981 rajveer 504
    add item to my research for a user
3431 rajveer 505
 
559 chandransh 506
    Parameters:
2981 rajveer 507
     - userId
508
     - itemId
559 chandransh 509
    """
510
    pass
511
 
2981 rajveer 512
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 513
    """
2981 rajveer 514
    delete item from my research for a user
3431 rajveer 515
 
1596 ankur.sing 516
    Parameters:
2981 rajveer 517
     - userId
518
     - itemId
1596 ankur.sing 519
    """
520
    pass
559 chandransh 521
 
2981 rajveer 522
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 523
    """
2981 rajveer 524
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 525
 
1673 ankur.sing 526
    Parameters:
2981 rajveer 527
     - userId
1673 ankur.sing 528
    """
529
    pass
1596 ankur.sing 530
 
2981 rajveer 531
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 532
    """
2981 rajveer 533
    add item to browse history for a user
3431 rajveer 534
 
2642 varun.gupt 535
    Parameters:
2981 rajveer 536
     - userId
537
     - itemId
2642 varun.gupt 538
    """
539
    pass
1673 ankur.sing 540
 
3385 varun.gupt 541
  def getCartsWithCouponCount(self, couponCode):
542
    """
543
    Returns count of Carts with given coupon applied
3431 rajveer 544
 
3385 varun.gupt 545
    Parameters:
546
     - couponCode
547
    """
548
    pass
2642 varun.gupt 549
 
3499 mandeep.dh 550
  def increaseTrustLevel(self, userId, trustLevelDelta):
551
    """
552
    Updates COD trust level of a user
3385 varun.gupt 553
 
3499 mandeep.dh 554
    Parameters:
555
     - userId
556
     - trustLevelDelta
557
    """
558
    pass
559
 
5407 amar.kumar 560
  def getTrustLevel(self, userId):
561
    """
562
    Get trust level of a user
563
 
564
    Parameters:
565
     - userId
566
    """
567
    pass
568
 
4668 varun.gupt 569
  def showCODOption(self, cartId, sourceId, pincode):
570
    """
571
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 572
 
4668 varun.gupt 573
    Parameters:
574
     - cartId
575
     - sourceId
576
     - pincode
577
    """
578
    pass
579
 
5623 anupam.sin 580
  def getUserEmails(self, startDate, endDate):
581
    """
582
    Get email addresses for users activated within a given date range
4668 varun.gupt 583
 
5623 anupam.sin 584
    Parameters:
585
     - startDate
586
     - endDate
587
    """
588
    pass
589
 
6903 anupam.sin 590
  def insureItem(self, itemId, cartId, toInsure):
591
    """
592
    Mark a cart lineitem as insured. Returns true/false.
593
 
594
    Parameters:
595
     - itemId
596
     - cartId
597
     - toInsure
598
    """
599
    pass
600
 
601
  def cancelInsurance(self, cartId):
602
    """
603
    Cancel insurance for all items in the cart
604
 
605
    Parameters:
606
     - cartId
607
    """
608
    pass
609
 
610
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
611
    """
612
    Stores insurance specific details like date of birth and guardianName
613
 
614
    Parameters:
615
     - addressId
616
     - dob
617
     - guardianName
618
    """
619
    pass
620
 
621
  def isInsuranceDetailPresent(self, addressId):
622
    """
623
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
624
 
625
    Parameters:
626
     - addressId
627
    """
628
    pass
629
 
6821 amar.kumar 630
  def isProductAddedToCart(self, itemId, startDate, endDate):
631
    """
632
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 633
 
6821 amar.kumar 634
    Parameters:
635
     - itemId
636
     - startDate
637
     - endDate
638
    """
639
    pass
640
 
7007 amar.kumar 641
  def markUserAsFBUser(self, id):
642
    """
643
    Parameters:
644
     - id
645
    """
646
    pass
6821 amar.kumar 647
 
7007 amar.kumar 648
 
3376 rajveer 649
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 650
  """
651
  service
652
  """
653
  def __init__(self, iprot, oprot=None):
3376 rajveer 654
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 655
 
559 chandransh 656
  def createAnonymousUser(self, jsessionId):
94 ashish 657
    """
658
    Parameters:
559 chandransh 659
     - jsessionId
94 ashish 660
    """
559 chandransh 661
    self.send_createAnonymousUser(jsessionId)
662
    return self.recv_createAnonymousUser()
94 ashish 663
 
559 chandransh 664
  def send_createAnonymousUser(self, jsessionId):
665
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
666
    args = createAnonymousUser_args()
667
    args.jsessionId = jsessionId
94 ashish 668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
559 chandransh 672
  def recv_createAnonymousUser(self, ):
94 ashish 673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
674
    if mtype == TMessageType.EXCEPTION:
675
      x = TApplicationException()
676
      x.read(self._iprot)
677
      self._iprot.readMessageEnd()
678
      raise x
559 chandransh 679
    result = createAnonymousUser_result()
94 ashish 680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
3431 rajveer 682
    if result.success is not None:
94 ashish 683
      return result.success
3431 rajveer 684
    if result.ucex is not None:
559 chandransh 685
      raise result.ucex
686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 687
 
559 chandransh 688
  def getUserById(self, userId):
94 ashish 689
    """
690
    Parameters:
691
     - userId
692
    """
559 chandransh 693
    self.send_getUserById(userId)
694
    return self.recv_getUserById()
94 ashish 695
 
559 chandransh 696
  def send_getUserById(self, userId):
697
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
698
    args = getUserById_args()
94 ashish 699
    args.userId = userId
700
    args.write(self._oprot)
701
    self._oprot.writeMessageEnd()
702
    self._oprot.trans.flush()
703
 
559 chandransh 704
  def recv_getUserById(self, ):
94 ashish 705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
706
    if mtype == TMessageType.EXCEPTION:
707
      x = TApplicationException()
708
      x.read(self._iprot)
709
      self._iprot.readMessageEnd()
710
      raise x
559 chandransh 711
    result = getUserById_result()
94 ashish 712
    result.read(self._iprot)
713
    self._iprot.readMessageEnd()
3431 rajveer 714
    if result.success is not None:
94 ashish 715
      return result.success
3431 rajveer 716
    if result.ucex is not None:
559 chandransh 717
      raise result.ucex
718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 719
 
5326 rajveer 720
  def getUserByCartId(self, cartId):
721
    """
722
    Parameters:
723
     - cartId
724
    """
725
    self.send_getUserByCartId(cartId)
726
    return self.recv_getUserByCartId()
727
 
728
  def send_getUserByCartId(self, cartId):
729
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
730
    args = getUserByCartId_args()
731
    args.cartId = cartId
732
    args.write(self._oprot)
733
    self._oprot.writeMessageEnd()
734
    self._oprot.trans.flush()
735
 
736
  def recv_getUserByCartId(self, ):
737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
738
    if mtype == TMessageType.EXCEPTION:
739
      x = TApplicationException()
740
      x.read(self._iprot)
741
      self._iprot.readMessageEnd()
742
      raise x
743
    result = getUserByCartId_result()
744
    result.read(self._iprot)
745
    self._iprot.readMessageEnd()
746
    if result.success is not None:
747
      return result.success
748
    if result.ucex is not None:
749
      raise result.ucex
750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
751
 
1491 vikas 752
  def getUserByEmail(self, email):
753
    """
754
    Parameters:
755
     - email
756
    """
757
    self.send_getUserByEmail(email)
758
    return self.recv_getUserByEmail()
759
 
760
  def send_getUserByEmail(self, email):
761
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
762
    args = getUserByEmail_args()
763
    args.email = email
764
    args.write(self._oprot)
765
    self._oprot.writeMessageEnd()
766
    self._oprot.trans.flush()
767
 
768
  def recv_getUserByEmail(self, ):
769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
770
    if mtype == TMessageType.EXCEPTION:
771
      x = TApplicationException()
772
      x.read(self._iprot)
773
      self._iprot.readMessageEnd()
774
      raise x
775
    result = getUserByEmail_result()
776
    result.read(self._iprot)
777
    self._iprot.readMessageEnd()
3431 rajveer 778
    if result.success is not None:
1491 vikas 779
      return result.success
3431 rajveer 780
    if result.ucex is not None:
1491 vikas 781
      raise result.ucex
782
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
783
 
3032 mandeep.dh 784
  def getUserByMobileNumber(self, mobileNumber):
785
    """
786
    Parameters:
787
     - mobileNumber
788
    """
789
    self.send_getUserByMobileNumber(mobileNumber)
790
    return self.recv_getUserByMobileNumber()
791
 
792
  def send_getUserByMobileNumber(self, mobileNumber):
793
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
794
    args = getUserByMobileNumber_args()
795
    args.mobileNumber = mobileNumber
796
    args.write(self._oprot)
797
    self._oprot.writeMessageEnd()
798
    self._oprot.trans.flush()
799
 
800
  def recv_getUserByMobileNumber(self, ):
801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
802
    if mtype == TMessageType.EXCEPTION:
803
      x = TApplicationException()
804
      x.read(self._iprot)
805
      self._iprot.readMessageEnd()
806
      raise x
807
    result = getUserByMobileNumber_result()
808
    result.read(self._iprot)
809
    self._iprot.readMessageEnd()
3431 rajveer 810
    if result.success is not None:
3032 mandeep.dh 811
      return result.success
3431 rajveer 812
    if result.ucex is not None:
3032 mandeep.dh 813
      raise result.ucex
814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
815
 
559 chandransh 816
  def createUser(self, user):
94 ashish 817
    """
818
    Parameters:
559 chandransh 819
     - user
94 ashish 820
    """
559 chandransh 821
    self.send_createUser(user)
822
    return self.recv_createUser()
94 ashish 823
 
559 chandransh 824
  def send_createUser(self, user):
825
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
826
    args = createUser_args()
827
    args.user = user
94 ashish 828
    args.write(self._oprot)
829
    self._oprot.writeMessageEnd()
830
    self._oprot.trans.flush()
831
 
559 chandransh 832
  def recv_createUser(self, ):
94 ashish 833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
834
    if mtype == TMessageType.EXCEPTION:
835
      x = TApplicationException()
836
      x.read(self._iprot)
837
      self._iprot.readMessageEnd()
838
      raise x
559 chandransh 839
    result = createUser_result()
94 ashish 840
    result.read(self._iprot)
841
    self._iprot.readMessageEnd()
3431 rajveer 842
    if result.success is not None:
94 ashish 843
      return result.success
3431 rajveer 844
    if result.ucex is not None:
559 chandransh 845
      raise result.ucex
846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 847
 
559 chandransh 848
  def updateUser(self, user):
94 ashish 849
    """
850
    Parameters:
559 chandransh 851
     - user
94 ashish 852
    """
559 chandransh 853
    self.send_updateUser(user)
854
    return self.recv_updateUser()
94 ashish 855
 
559 chandransh 856
  def send_updateUser(self, user):
857
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
858
    args = updateUser_args()
859
    args.user = user
94 ashish 860
    args.write(self._oprot)
861
    self._oprot.writeMessageEnd()
862
    self._oprot.trans.flush()
863
 
559 chandransh 864
  def recv_updateUser(self, ):
94 ashish 865
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
866
    if mtype == TMessageType.EXCEPTION:
867
      x = TApplicationException()
868
      x.read(self._iprot)
869
      self._iprot.readMessageEnd()
870
      raise x
559 chandransh 871
    result = updateUser_result()
94 ashish 872
    result.read(self._iprot)
873
    self._iprot.readMessageEnd()
3431 rajveer 874
    if result.success is not None:
94 ashish 875
      return result.success
3431 rajveer 876
    if result.ucex is not None:
559 chandransh 877
      raise result.ucex
878
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 879
 
559 chandransh 880
  def authenticateUser(self, email, password):
94 ashish 881
    """
882
    Parameters:
883
     - email
884
     - password
885
    """
559 chandransh 886
    self.send_authenticateUser(email, password)
122 ashish 887
    return self.recv_authenticateUser()
888
 
559 chandransh 889
  def send_authenticateUser(self, email, password):
122 ashish 890
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
891
    args = authenticateUser_args()
559 chandransh 892
    args.email = email
122 ashish 893
    args.password = password
894
    args.write(self._oprot)
895
    self._oprot.writeMessageEnd()
896
    self._oprot.trans.flush()
897
 
898
  def recv_authenticateUser(self, ):
899
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
900
    if mtype == TMessageType.EXCEPTION:
901
      x = TApplicationException()
902
      x.read(self._iprot)
903
      self._iprot.readMessageEnd()
904
      raise x
905
    result = authenticateUser_result()
906
    result.read(self._iprot)
907
    self._iprot.readMessageEnd()
3431 rajveer 908
    if result.success is not None:
122 ashish 909
      return result.success
3431 rajveer 910
    if result.auex is not None:
559 chandransh 911
      raise result.auex
122 ashish 912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
913
 
94 ashish 914
  def userExists(self, email):
915
    """
916
    Parameters:
917
     - email
918
    """
919
    self.send_userExists(email)
920
    return self.recv_userExists()
921
 
922
  def send_userExists(self, email):
923
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
924
    args = userExists_args()
925
    args.email = email
926
    args.write(self._oprot)
927
    self._oprot.writeMessageEnd()
928
    self._oprot.trans.flush()
929
 
930
  def recv_userExists(self, ):
931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
932
    if mtype == TMessageType.EXCEPTION:
933
      x = TApplicationException()
934
      x.read(self._iprot)
935
      self._iprot.readMessageEnd()
936
      raise x
937
    result = userExists_result()
938
    result.read(self._iprot)
939
    self._iprot.readMessageEnd()
3431 rajveer 940
    if result.success is not None:
94 ashish 941
      return result.success
3431 rajveer 942
    if result.ucx is not None:
94 ashish 943
      raise result.ucx
944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
945
 
567 rajveer 946
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 947
    """
948
    Parameters:
949
     - userId
950
     - address
513 rajveer 951
     - setDefault
94 ashish 952
    """
567 rajveer 953
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 954
    return self.recv_addAddressForUser()
955
 
567 rajveer 956
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 957
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
958
    args = addAddressForUser_args()
559 chandransh 959
    args.userId = userId
94 ashish 960
    args.address = address
513 rajveer 961
    args.setDefault = setDefault
94 ashish 962
    args.write(self._oprot)
963
    self._oprot.writeMessageEnd()
964
    self._oprot.trans.flush()
965
 
966
  def recv_addAddressForUser(self, ):
967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
968
    if mtype == TMessageType.EXCEPTION:
969
      x = TApplicationException()
970
      x.read(self._iprot)
971
      self._iprot.readMessageEnd()
972
      raise x
973
    result = addAddressForUser_result()
974
    result.read(self._iprot)
975
    self._iprot.readMessageEnd()
3431 rajveer 976
    if result.success is not None:
94 ashish 977
      return result.success
3431 rajveer 978
    if result.ucx is not None:
94 ashish 979
      raise result.ucx
980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
981
 
982
  def removeAddressForUser(self, userid, addressId):
983
    """
984
    Parameters:
985
     - userid
986
     - addressId
987
    """
988
    self.send_removeAddressForUser(userid, addressId)
989
    return self.recv_removeAddressForUser()
990
 
991
  def send_removeAddressForUser(self, userid, addressId):
992
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
993
    args = removeAddressForUser_args()
994
    args.userid = userid
995
    args.addressId = addressId
996
    args.write(self._oprot)
997
    self._oprot.writeMessageEnd()
998
    self._oprot.trans.flush()
999
 
1000
  def recv_removeAddressForUser(self, ):
1001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1002
    if mtype == TMessageType.EXCEPTION:
1003
      x = TApplicationException()
1004
      x.read(self._iprot)
1005
      self._iprot.readMessageEnd()
1006
      raise x
1007
    result = removeAddressForUser_result()
1008
    result.read(self._iprot)
1009
    self._iprot.readMessageEnd()
3431 rajveer 1010
    if result.success is not None:
94 ashish 1011
      return result.success
3431 rajveer 1012
    if result.ucx is not None:
94 ashish 1013
      raise result.ucx
1014
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1015
 
1016
  def setUserAsLoggedIn(self, userId, timestamp):
1017
    """
1018
    Parameters:
1019
     - userId
1020
     - timestamp
1021
    """
1022
    self.send_setUserAsLoggedIn(userId, timestamp)
1023
    return self.recv_setUserAsLoggedIn()
1024
 
1025
  def send_setUserAsLoggedIn(self, userId, timestamp):
1026
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1027
    args = setUserAsLoggedIn_args()
1028
    args.userId = userId
1029
    args.timestamp = timestamp
1030
    args.write(self._oprot)
1031
    self._oprot.writeMessageEnd()
1032
    self._oprot.trans.flush()
1033
 
1034
  def recv_setUserAsLoggedIn(self, ):
1035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1036
    if mtype == TMessageType.EXCEPTION:
1037
      x = TApplicationException()
1038
      x.read(self._iprot)
1039
      self._iprot.readMessageEnd()
1040
      raise x
1041
    result = setUserAsLoggedIn_result()
1042
    result.read(self._iprot)
1043
    self._iprot.readMessageEnd()
3431 rajveer 1044
    if result.success is not None:
94 ashish 1045
      return result.success
3431 rajveer 1046
    if result.ucx is not None:
94 ashish 1047
      raise result.ucx
1048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1049
 
1050
  def setUserAsLoggedOut(self, userid, timestamp):
1051
    """
1052
    Parameters:
1053
     - userid
1054
     - timestamp
1055
    """
1056
    self.send_setUserAsLoggedOut(userid, timestamp)
1057
    return self.recv_setUserAsLoggedOut()
1058
 
1059
  def send_setUserAsLoggedOut(self, userid, timestamp):
1060
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1061
    args = setUserAsLoggedOut_args()
1062
    args.userid = userid
1063
    args.timestamp = timestamp
1064
    args.write(self._oprot)
1065
    self._oprot.writeMessageEnd()
1066
    self._oprot.trans.flush()
1067
 
1068
  def recv_setUserAsLoggedOut(self, ):
1069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1070
    if mtype == TMessageType.EXCEPTION:
1071
      x = TApplicationException()
1072
      x.read(self._iprot)
1073
      self._iprot.readMessageEnd()
1074
      raise x
1075
    result = setUserAsLoggedOut_result()
1076
    result.read(self._iprot)
1077
    self._iprot.readMessageEnd()
3431 rajveer 1078
    if result.success is not None:
94 ashish 1079
      return result.success
3431 rajveer 1080
    if result.ucx is not None:
94 ashish 1081
      raise result.ucx
1082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1083
 
504 rajveer 1084
  def setDefaultAddress(self, userid, addressId):
1085
    """
1086
    Parameters:
1087
     - userid
1088
     - addressId
1089
    """
1090
    self.send_setDefaultAddress(userid, addressId)
1091
    return self.recv_setDefaultAddress()
1092
 
1093
  def send_setDefaultAddress(self, userid, addressId):
1094
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1095
    args = setDefaultAddress_args()
1096
    args.userid = userid
1097
    args.addressId = addressId
1098
    args.write(self._oprot)
1099
    self._oprot.writeMessageEnd()
1100
    self._oprot.trans.flush()
1101
 
1102
  def recv_setDefaultAddress(self, ):
1103
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1104
    if mtype == TMessageType.EXCEPTION:
1105
      x = TApplicationException()
1106
      x.read(self._iprot)
1107
      self._iprot.readMessageEnd()
1108
      raise x
1109
    result = setDefaultAddress_result()
1110
    result.read(self._iprot)
1111
    self._iprot.readMessageEnd()
3431 rajveer 1112
    if result.success is not None:
504 rajveer 1113
      return result.success
3431 rajveer 1114
    if result.ucx is not None:
504 rajveer 1115
      raise result.ucx
1116
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1117
 
594 rajveer 1118
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1119
    """
1120
    Parameters:
1121
     - userid
594 rajveer 1122
     - oldPassword
1123
     - newPassword
94 ashish 1124
    """
594 rajveer 1125
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1126
    return self.recv_updatePassword()
1127
 
594 rajveer 1128
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1129
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1130
    args = updatePassword_args()
1131
    args.userid = userid
594 rajveer 1132
    args.oldPassword = oldPassword
1133
    args.newPassword = newPassword
94 ashish 1134
    args.write(self._oprot)
1135
    self._oprot.writeMessageEnd()
1136
    self._oprot.trans.flush()
1137
 
1138
  def recv_updatePassword(self, ):
1139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1140
    if mtype == TMessageType.EXCEPTION:
1141
      x = TApplicationException()
1142
      x.read(self._iprot)
1143
      self._iprot.readMessageEnd()
1144
      raise x
1145
    result = updatePassword_result()
1146
    result.read(self._iprot)
1147
    self._iprot.readMessageEnd()
3431 rajveer 1148
    if result.success is not None:
94 ashish 1149
      return result.success
3431 rajveer 1150
    if result.ucx is not None:
94 ashish 1151
      raise result.ucx
1152
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1153
 
884 rajveer 1154
  def forgotPassword(self, email, newPassword):
581 rajveer 1155
    """
1156
    Parameters:
1157
     - email
884 rajveer 1158
     - newPassword
581 rajveer 1159
    """
884 rajveer 1160
    self.send_forgotPassword(email, newPassword)
581 rajveer 1161
    return self.recv_forgotPassword()
1162
 
884 rajveer 1163
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1164
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1165
    args = forgotPassword_args()
1166
    args.email = email
884 rajveer 1167
    args.newPassword = newPassword
581 rajveer 1168
    args.write(self._oprot)
1169
    self._oprot.writeMessageEnd()
1170
    self._oprot.trans.flush()
1171
 
1172
  def recv_forgotPassword(self, ):
1173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1174
    if mtype == TMessageType.EXCEPTION:
1175
      x = TApplicationException()
1176
      x.read(self._iprot)
1177
      self._iprot.readMessageEnd()
1178
      raise x
1179
    result = forgotPassword_result()
1180
    result.read(self._iprot)
1181
    self._iprot.readMessageEnd()
3431 rajveer 1182
    if result.success is not None:
581 rajveer 1183
      return result.success
3431 rajveer 1184
    if result.ucx is not None:
581 rajveer 1185
      raise result.ucx
1186
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1187
 
594 rajveer 1188
  def getAllAddressesForUser(self, userId):
1189
    """
1190
    Parameters:
1191
     - userId
1192
    """
1193
    self.send_getAllAddressesForUser(userId)
1194
    return self.recv_getAllAddressesForUser()
1195
 
1196
  def send_getAllAddressesForUser(self, userId):
1197
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1198
    args = getAllAddressesForUser_args()
1199
    args.userId = userId
1200
    args.write(self._oprot)
1201
    self._oprot.writeMessageEnd()
1202
    self._oprot.trans.flush()
1203
 
1204
  def recv_getAllAddressesForUser(self, ):
1205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1206
    if mtype == TMessageType.EXCEPTION:
1207
      x = TApplicationException()
1208
      x.read(self._iprot)
1209
      self._iprot.readMessageEnd()
1210
      raise x
1211
    result = getAllAddressesForUser_result()
1212
    result.read(self._iprot)
1213
    self._iprot.readMessageEnd()
3431 rajveer 1214
    if result.success is not None:
594 rajveer 1215
      return result.success
3431 rajveer 1216
    if result.ucx is not None:
594 rajveer 1217
      raise result.ucx
1218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1219
 
1894 vikas 1220
  def getAddressById(self, addressId):
1221
    """
1222
    Parameters:
1223
     - addressId
1224
    """
1225
    self.send_getAddressById(addressId)
1226
    return self.recv_getAddressById()
1227
 
1228
  def send_getAddressById(self, addressId):
1229
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1230
    args = getAddressById_args()
1231
    args.addressId = addressId
1232
    args.write(self._oprot)
1233
    self._oprot.writeMessageEnd()
1234
    self._oprot.trans.flush()
1235
 
1236
  def recv_getAddressById(self, ):
1237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1238
    if mtype == TMessageType.EXCEPTION:
1239
      x = TApplicationException()
1240
      x.read(self._iprot)
1241
      self._iprot.readMessageEnd()
1242
      raise x
1243
    result = getAddressById_result()
1244
    result.read(self._iprot)
1245
    self._iprot.readMessageEnd()
3431 rajveer 1246
    if result.success is not None:
1894 vikas 1247
      return result.success
3431 rajveer 1248
    if result.ucx is not None:
1894 vikas 1249
      raise result.ucx
1250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1251
 
594 rajveer 1252
  def getDefaultAddressId(self, userId):
1253
    """
1254
    Parameters:
1255
     - userId
1256
    """
1257
    self.send_getDefaultAddressId(userId)
1258
    return self.recv_getDefaultAddressId()
1259
 
1260
  def send_getDefaultAddressId(self, userId):
1261
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1262
    args = getDefaultAddressId_args()
1263
    args.userId = userId
1264
    args.write(self._oprot)
1265
    self._oprot.writeMessageEnd()
1266
    self._oprot.trans.flush()
1267
 
1268
  def recv_getDefaultAddressId(self, ):
1269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1270
    if mtype == TMessageType.EXCEPTION:
1271
      x = TApplicationException()
1272
      x.read(self._iprot)
1273
      self._iprot.readMessageEnd()
1274
      raise x
1275
    result = getDefaultAddressId_result()
1276
    result.read(self._iprot)
1277
    self._iprot.readMessageEnd()
3431 rajveer 1278
    if result.success is not None:
594 rajveer 1279
      return result.success
3431 rajveer 1280
    if result.ucx is not None:
594 rajveer 1281
      raise result.ucx
1282
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1283
 
785 rajveer 1284
  def getDefaultPincode(self, userId):
1285
    """
1286
    Parameters:
1287
     - userId
1288
    """
1289
    self.send_getDefaultPincode(userId)
1290
    return self.recv_getDefaultPincode()
1291
 
1292
  def send_getDefaultPincode(self, userId):
1293
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1294
    args = getDefaultPincode_args()
1295
    args.userId = userId
1296
    args.write(self._oprot)
1297
    self._oprot.writeMessageEnd()
1298
    self._oprot.trans.flush()
1299
 
1300
  def recv_getDefaultPincode(self, ):
1301
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1302
    if mtype == TMessageType.EXCEPTION:
1303
      x = TApplicationException()
1304
      x.read(self._iprot)
1305
      self._iprot.readMessageEnd()
1306
      raise x
1307
    result = getDefaultPincode_result()
1308
    result.read(self._iprot)
1309
    self._iprot.readMessageEnd()
3431 rajveer 1310
    if result.success is not None:
785 rajveer 1311
      return result.success
3431 rajveer 1312
    if result.ucx is not None:
785 rajveer 1313
      raise result.ucx
1314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1315
 
1274 varun.gupt 1316
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1317
    """
1318
    Parameters:
1319
     - userId
1320
     - replyTo
1321
     - communicationType
1322
     - orderId
1323
     - airwaybillNo
1324
     - productName
1325
     - subject
1326
     - message
1327
    """
1328
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1329
    return self.recv_saveUserCommunication()
1330
 
1331
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1332
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1333
    args = saveUserCommunication_args()
1334
    args.userId = userId
1335
    args.replyTo = replyTo
1336
    args.communicationType = communicationType
1337
    args.orderId = orderId
1338
    args.airwaybillNo = airwaybillNo
1339
    args.productName = productName
1340
    args.subject = subject
1341
    args.message = message
1342
    args.write(self._oprot)
1343
    self._oprot.writeMessageEnd()
1344
    self._oprot.trans.flush()
1345
 
1346
  def recv_saveUserCommunication(self, ):
1347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1348
    if mtype == TMessageType.EXCEPTION:
1349
      x = TApplicationException()
1350
      x.read(self._iprot)
1351
      self._iprot.readMessageEnd()
1352
      raise x
1353
    result = saveUserCommunication_result()
1354
    result.read(self._iprot)
1355
    self._iprot.readMessageEnd()
3431 rajveer 1356
    if result.success is not None:
1274 varun.gupt 1357
      return result.success
3431 rajveer 1358
    if result.ucx is not None:
1274 varun.gupt 1359
      raise result.ucx
1360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1361
 
1590 varun.gupt 1362
  def getUserCommunicationById(self, id):
1363
    """
1364
    Parameters:
1365
     - id
1366
    """
1367
    self.send_getUserCommunicationById(id)
1368
    return self.recv_getUserCommunicationById()
1369
 
1370
  def send_getUserCommunicationById(self, id):
1371
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1372
    args = getUserCommunicationById_args()
1373
    args.id = id
1374
    args.write(self._oprot)
1375
    self._oprot.writeMessageEnd()
1376
    self._oprot.trans.flush()
1377
 
1378
  def recv_getUserCommunicationById(self, ):
1379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1380
    if mtype == TMessageType.EXCEPTION:
1381
      x = TApplicationException()
1382
      x.read(self._iprot)
1383
      self._iprot.readMessageEnd()
1384
      raise x
1385
    result = getUserCommunicationById_result()
1386
    result.read(self._iprot)
1387
    self._iprot.readMessageEnd()
3431 rajveer 1388
    if result.success is not None:
1590 varun.gupt 1389
      return result.success
3431 rajveer 1390
    if result.ucx is not None:
1590 varun.gupt 1391
      raise result.ucx
1392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1393
 
1394
  def getUserCommunicationByUser(self, userId):
1395
    """
1396
    Parameters:
1397
     - userId
1398
    """
1399
    self.send_getUserCommunicationByUser(userId)
1400
    return self.recv_getUserCommunicationByUser()
1401
 
1402
  def send_getUserCommunicationByUser(self, userId):
1403
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1404
    args = getUserCommunicationByUser_args()
1405
    args.userId = userId
1406
    args.write(self._oprot)
1407
    self._oprot.writeMessageEnd()
1408
    self._oprot.trans.flush()
1409
 
1410
  def recv_getUserCommunicationByUser(self, ):
1411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1412
    if mtype == TMessageType.EXCEPTION:
1413
      x = TApplicationException()
1414
      x.read(self._iprot)
1415
      self._iprot.readMessageEnd()
1416
      raise x
1417
    result = getUserCommunicationByUser_result()
1418
    result.read(self._iprot)
1419
    self._iprot.readMessageEnd()
3431 rajveer 1420
    if result.success is not None:
1590 varun.gupt 1421
      return result.success
3431 rajveer 1422
    if result.ucx is not None:
1590 varun.gupt 1423
      raise result.ucx
1424
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1425
 
1426
  def getAllUserCommunications(self, ):
1427
    self.send_getAllUserCommunications()
1428
    return self.recv_getAllUserCommunications()
1429
 
1430
  def send_getAllUserCommunications(self, ):
1431
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1432
    args = getAllUserCommunications_args()
1433
    args.write(self._oprot)
1434
    self._oprot.writeMessageEnd()
1435
    self._oprot.trans.flush()
1436
 
1437
  def recv_getAllUserCommunications(self, ):
1438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1439
    if mtype == TMessageType.EXCEPTION:
1440
      x = TApplicationException()
1441
      x.read(self._iprot)
1442
      self._iprot.readMessageEnd()
1443
      raise x
1444
    result = getAllUserCommunications_result()
1445
    result.read(self._iprot)
1446
    self._iprot.readMessageEnd()
3431 rajveer 1447
    if result.success is not None:
1590 varun.gupt 1448
      return result.success
3431 rajveer 1449
    if result.ucx is not None:
1590 varun.gupt 1450
      raise result.ucx
1451
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1452
 
5407 amar.kumar 1453
  def removeUserCommunication(self, id):
1454
    """
1455
    Parameters:
1456
     - id
1457
    """
1458
    self.send_removeUserCommunication(id)
1459
    self.recv_removeUserCommunication()
1460
 
1461
  def send_removeUserCommunication(self, id):
1462
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1463
    args = removeUserCommunication_args()
1464
    args.id = id
1465
    args.write(self._oprot)
1466
    self._oprot.writeMessageEnd()
1467
    self._oprot.trans.flush()
1468
 
1469
  def recv_removeUserCommunication(self, ):
1470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1471
    if mtype == TMessageType.EXCEPTION:
1472
      x = TApplicationException()
1473
      x.read(self._iprot)
1474
      self._iprot.readMessageEnd()
1475
      raise x
1476
    result = removeUserCommunication_result()
1477
    result.read(self._iprot)
1478
    self._iprot.readMessageEnd()
1479
    if result.ucx is not None:
1480
      raise result.ucx
1481
    return
1482
 
1859 vikas 1483
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1484
    """
1485
    Parameters:
1486
     - name
1859 vikas 1487
     - addedOn
1845 vikas 1488
    """
1859 vikas 1489
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1490
    return self.recv_createMasterAffiliate()
1491
 
1859 vikas 1492
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1493
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1494
    args = createMasterAffiliate_args()
1495
    args.name = name
1859 vikas 1496
    args.addedOn = addedOn
1845 vikas 1497
    args.write(self._oprot)
1498
    self._oprot.writeMessageEnd()
1499
    self._oprot.trans.flush()
1500
 
1501
  def recv_createMasterAffiliate(self, ):
1502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1503
    if mtype == TMessageType.EXCEPTION:
1504
      x = TApplicationException()
1505
      x.read(self._iprot)
1506
      self._iprot.readMessageEnd()
1507
      raise x
1508
    result = createMasterAffiliate_result()
1509
    result.read(self._iprot)
1510
    self._iprot.readMessageEnd()
3431 rajveer 1511
    if result.success is not None:
1845 vikas 1512
      return result.success
3431 rajveer 1513
    if result.utx is not None:
1845 vikas 1514
      raise result.utx
1515
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1516
 
1899 vikas 1517
  def getAllMasterAffiliates(self, ):
1518
    self.send_getAllMasterAffiliates()
1519
    return self.recv_getAllMasterAffiliates()
1520
 
1521
  def send_getAllMasterAffiliates(self, ):
1522
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1523
    args = getAllMasterAffiliates_args()
1524
    args.write(self._oprot)
1525
    self._oprot.writeMessageEnd()
1526
    self._oprot.trans.flush()
1527
 
1528
  def recv_getAllMasterAffiliates(self, ):
1529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1530
    if mtype == TMessageType.EXCEPTION:
1531
      x = TApplicationException()
1532
      x.read(self._iprot)
1533
      self._iprot.readMessageEnd()
1534
      raise x
1535
    result = getAllMasterAffiliates_result()
1536
    result.read(self._iprot)
1537
    self._iprot.readMessageEnd()
3431 rajveer 1538
    if result.success is not None:
1899 vikas 1539
      return result.success
3431 rajveer 1540
    if result.utx is not None:
1899 vikas 1541
      raise result.utx
1542
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1543
 
1845 vikas 1544
  def getMasterAffiliateById(self, id):
1545
    """
1546
    Parameters:
1547
     - id
1548
    """
1549
    self.send_getMasterAffiliateById(id)
1550
    return self.recv_getMasterAffiliateById()
1551
 
1552
  def send_getMasterAffiliateById(self, id):
1553
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1554
    args = getMasterAffiliateById_args()
1555
    args.id = id
1556
    args.write(self._oprot)
1557
    self._oprot.writeMessageEnd()
1558
    self._oprot.trans.flush()
1559
 
1560
  def recv_getMasterAffiliateById(self, ):
1561
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1562
    if mtype == TMessageType.EXCEPTION:
1563
      x = TApplicationException()
1564
      x.read(self._iprot)
1565
      self._iprot.readMessageEnd()
1566
      raise x
1567
    result = getMasterAffiliateById_result()
1568
    result.read(self._iprot)
1569
    self._iprot.readMessageEnd()
3431 rajveer 1570
    if result.success is not None:
1845 vikas 1571
      return result.success
3431 rajveer 1572
    if result.utx is not None:
1845 vikas 1573
      raise result.utx
1574
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1575
 
1576
  def getMasterAffiliateByName(self, name):
1577
    """
1578
    Parameters:
1579
     - name
1580
    """
1581
    self.send_getMasterAffiliateByName(name)
1582
    return self.recv_getMasterAffiliateByName()
1583
 
1584
  def send_getMasterAffiliateByName(self, name):
1585
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1586
    args = getMasterAffiliateByName_args()
1587
    args.name = name
1588
    args.write(self._oprot)
1589
    self._oprot.writeMessageEnd()
1590
    self._oprot.trans.flush()
1591
 
1592
  def recv_getMasterAffiliateByName(self, ):
1593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1594
    if mtype == TMessageType.EXCEPTION:
1595
      x = TApplicationException()
1596
      x.read(self._iprot)
1597
      self._iprot.readMessageEnd()
1598
      raise x
1599
    result = getMasterAffiliateByName_result()
1600
    result.read(self._iprot)
1601
    self._iprot.readMessageEnd()
3431 rajveer 1602
    if result.success is not None:
1845 vikas 1603
      return result.success
3431 rajveer 1604
    if result.utx is not None:
1845 vikas 1605
      raise result.utx
1606
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1607
 
1859 vikas 1608
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1609
    """
1610
    Parameters:
1611
     - name
1612
     - url
1613
     - masterAffiliateId
1859 vikas 1614
     - addedOn
1845 vikas 1615
    """
1859 vikas 1616
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1617
    return self.recv_createAffiliate()
1618
 
1859 vikas 1619
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1620
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1621
    args = createAffiliate_args()
1622
    args.name = name
1623
    args.url = url
1624
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1625
    args.addedOn = addedOn
1845 vikas 1626
    args.write(self._oprot)
1627
    self._oprot.writeMessageEnd()
1628
    self._oprot.trans.flush()
1629
 
1630
  def recv_createAffiliate(self, ):
1631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1632
    if mtype == TMessageType.EXCEPTION:
1633
      x = TApplicationException()
1634
      x.read(self._iprot)
1635
      self._iprot.readMessageEnd()
1636
      raise x
1637
    result = createAffiliate_result()
1638
    result.read(self._iprot)
1639
    self._iprot.readMessageEnd()
3431 rajveer 1640
    if result.success is not None:
1845 vikas 1641
      return result.success
3431 rajveer 1642
    if result.utx is not None:
1845 vikas 1643
      raise result.utx
1644
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1645
 
1646
  def getAffiliateById(self, id):
1647
    """
1648
    Parameters:
1649
     - id
1650
    """
1651
    self.send_getAffiliateById(id)
1652
    return self.recv_getAffiliateById()
1653
 
1654
  def send_getAffiliateById(self, id):
1655
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1656
    args = getAffiliateById_args()
1657
    args.id = id
1658
    args.write(self._oprot)
1659
    self._oprot.writeMessageEnd()
1660
    self._oprot.trans.flush()
1661
 
1662
  def recv_getAffiliateById(self, ):
1663
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1664
    if mtype == TMessageType.EXCEPTION:
1665
      x = TApplicationException()
1666
      x.read(self._iprot)
1667
      self._iprot.readMessageEnd()
1668
      raise x
1669
    result = getAffiliateById_result()
1670
    result.read(self._iprot)
1671
    self._iprot.readMessageEnd()
3431 rajveer 1672
    if result.success is not None:
1845 vikas 1673
      return result.success
3431 rajveer 1674
    if result.utx is not None:
1845 vikas 1675
      raise result.utx
1676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1677
 
1678
  def getAffiliateByName(self, name):
1679
    """
1680
    Parameters:
1681
     - name
1682
    """
1683
    self.send_getAffiliateByName(name)
1684
    return self.recv_getAffiliateByName()
1685
 
1686
  def send_getAffiliateByName(self, name):
1687
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1688
    args = getAffiliateByName_args()
1689
    args.name = name
1690
    args.write(self._oprot)
1691
    self._oprot.writeMessageEnd()
1692
    self._oprot.trans.flush()
1693
 
1694
  def recv_getAffiliateByName(self, ):
1695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1696
    if mtype == TMessageType.EXCEPTION:
1697
      x = TApplicationException()
1698
      x.read(self._iprot)
1699
      self._iprot.readMessageEnd()
1700
      raise x
1701
    result = getAffiliateByName_result()
1702
    result.read(self._iprot)
1703
    self._iprot.readMessageEnd()
3431 rajveer 1704
    if result.success is not None:
1845 vikas 1705
      return result.success
3431 rajveer 1706
    if result.utx is not None:
1845 vikas 1707
      raise result.utx
1708
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1709
 
1996 vikas 1710
  def getTrackerById(self, id):
1845 vikas 1711
    """
1712
    Parameters:
1713
     - id
1714
    """
1996 vikas 1715
    self.send_getTrackerById(id)
1845 vikas 1716
    return self.recv_getTrackerById()
1717
 
1996 vikas 1718
  def send_getTrackerById(self, id):
1845 vikas 1719
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1720
    args = getTrackerById_args()
1996 vikas 1721
    args.id = id
1845 vikas 1722
    args.write(self._oprot)
1723
    self._oprot.writeMessageEnd()
1724
    self._oprot.trans.flush()
1725
 
1726
  def recv_getTrackerById(self, ):
1727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1728
    if mtype == TMessageType.EXCEPTION:
1729
      x = TApplicationException()
1730
      x.read(self._iprot)
1731
      self._iprot.readMessageEnd()
1732
      raise x
1733
    result = getTrackerById_result()
1734
    result.read(self._iprot)
1735
    self._iprot.readMessageEnd()
3431 rajveer 1736
    if result.success is not None:
1845 vikas 1737
      return result.success
3431 rajveer 1738
    if result.utx is not None:
1845 vikas 1739
      raise result.utx
1740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1741
 
1996 vikas 1742
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1743
    """
1744
    Parameters:
1996 vikas 1745
     - id
1845 vikas 1746
    """
1996 vikas 1747
    self.send_getAffiliatesByMasterAffiliate(id)
1748
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1749
 
1996 vikas 1750
  def send_getAffiliatesByMasterAffiliate(self, id):
1751
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1752
    args = getAffiliatesByMasterAffiliate_args()
1753
    args.id = id
1845 vikas 1754
    args.write(self._oprot)
1755
    self._oprot.writeMessageEnd()
1756
    self._oprot.trans.flush()
1757
 
1996 vikas 1758
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1759
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1760
    if mtype == TMessageType.EXCEPTION:
1761
      x = TApplicationException()
1762
      x.read(self._iprot)
1763
      self._iprot.readMessageEnd()
1764
      raise x
1996 vikas 1765
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1766
    result.read(self._iprot)
1767
    self._iprot.readMessageEnd()
3431 rajveer 1768
    if result.success is not None:
1845 vikas 1769
      return result.success
3431 rajveer 1770
    if result.utx is not None:
1845 vikas 1771
      raise result.utx
1996 vikas 1772
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1773
 
1996 vikas 1774
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1775
    """
1776
    Parameters:
1996 vikas 1777
     - affiliateId
1845 vikas 1778
     - userId
1779
     - event
1780
     - url
1781
     - data
1859 vikas 1782
     - addedOn
1845 vikas 1783
    """
1996 vikas 1784
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1785
    return self.recv_addTrackLog()
1786
 
1996 vikas 1787
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1788
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1789
    args = addTrackLog_args()
1996 vikas 1790
    args.affiliateId = affiliateId
1845 vikas 1791
    args.userId = userId
1792
    args.event = event
1793
    args.url = url
1794
    args.data = data
1859 vikas 1795
    args.addedOn = addedOn
1845 vikas 1796
    args.write(self._oprot)
1797
    self._oprot.writeMessageEnd()
1798
    self._oprot.trans.flush()
1799
 
1800
  def recv_addTrackLog(self, ):
1801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1802
    if mtype == TMessageType.EXCEPTION:
1803
      x = TApplicationException()
1804
      x.read(self._iprot)
1805
      self._iprot.readMessageEnd()
1806
      raise x
1807
    result = addTrackLog_result()
1808
    result.read(self._iprot)
1809
    self._iprot.readMessageEnd()
3431 rajveer 1810
    if result.success is not None:
1845 vikas 1811
      return result.success
3431 rajveer 1812
    if result.utx is not None:
1845 vikas 1813
      raise result.utx
1814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1815
 
1816
  def getTrackLogById(self, id):
1817
    """
1818
    Parameters:
1819
     - id
1820
    """
1821
    self.send_getTrackLogById(id)
1822
    return self.recv_getTrackLogById()
1823
 
1824
  def send_getTrackLogById(self, id):
1825
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1826
    args = getTrackLogById_args()
1827
    args.id = id
1828
    args.write(self._oprot)
1829
    self._oprot.writeMessageEnd()
1830
    self._oprot.trans.flush()
1831
 
1832
  def recv_getTrackLogById(self, ):
1833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1834
    if mtype == TMessageType.EXCEPTION:
1835
      x = TApplicationException()
1836
      x.read(self._iprot)
1837
      self._iprot.readMessageEnd()
1838
      raise x
1839
    result = getTrackLogById_result()
1840
    result.read(self._iprot)
1841
    self._iprot.readMessageEnd()
3431 rajveer 1842
    if result.success is not None:
1845 vikas 1843
      return result.success
3431 rajveer 1844
    if result.utx is not None:
1845 vikas 1845
      raise result.utx
1846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1847
 
3293 vikas 1848
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1849
    """
1850
    Parameters:
1996 vikas 1851
     - affiliateId
3293 vikas 1852
     - startDate
1853
     - endDate
1845 vikas 1854
    """
3293 vikas 1855
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1856
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1857
 
3293 vikas 1858
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1859
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1860
    args = getTrackLogsByAffiliate_args()
1861
    args.affiliateId = affiliateId
3293 vikas 1862
    args.startDate = startDate
1863
    args.endDate = endDate
1845 vikas 1864
    args.write(self._oprot)
1865
    self._oprot.writeMessageEnd()
1866
    self._oprot.trans.flush()
1867
 
1996 vikas 1868
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1870
    if mtype == TMessageType.EXCEPTION:
1871
      x = TApplicationException()
1872
      x.read(self._iprot)
1873
      self._iprot.readMessageEnd()
1874
      raise x
1996 vikas 1875
    result = getTrackLogsByAffiliate_result()
1845 vikas 1876
    result.read(self._iprot)
1877
    self._iprot.readMessageEnd()
3431 rajveer 1878
    if result.success is not None:
1845 vikas 1879
      return result.success
3431 rajveer 1880
    if result.utx is not None:
1845 vikas 1881
      raise result.utx
1996 vikas 1882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1883
 
1884
  def getTrackLogsByUser(self, userId):
1885
    """
1886
    Parameters:
1887
     - userId
1888
    """
1889
    self.send_getTrackLogsByUser(userId)
1890
    return self.recv_getTrackLogsByUser()
1891
 
1892
  def send_getTrackLogsByUser(self, userId):
1893
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1894
    args = getTrackLogsByUser_args()
1895
    args.userId = userId
1896
    args.write(self._oprot)
1897
    self._oprot.writeMessageEnd()
1898
    self._oprot.trans.flush()
1899
 
1900
  def recv_getTrackLogsByUser(self, ):
1901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1902
    if mtype == TMessageType.EXCEPTION:
1903
      x = TApplicationException()
1904
      x.read(self._iprot)
1905
      self._iprot.readMessageEnd()
1906
      raise x
1907
    result = getTrackLogsByUser_result()
1908
    result.read(self._iprot)
1909
    self._iprot.readMessageEnd()
3431 rajveer 1910
    if result.success is not None:
1845 vikas 1911
      return result.success
3431 rajveer 1912
    if result.utx is not None:
1845 vikas 1913
      raise result.utx
1914
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1915
 
1996 vikas 1916
  def getTrackLogs(self, userId, event, url):
1845 vikas 1917
    """
1918
    Parameters:
1919
     - userId
1920
     - event
1921
     - url
1922
    """
1996 vikas 1923
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1924
    return self.recv_getTrackLogs()
1925
 
1996 vikas 1926
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1927
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1928
    args = getTrackLogs_args()
1929
    args.userId = userId
1930
    args.event = event
1931
    args.url = url
1932
    args.write(self._oprot)
1933
    self._oprot.writeMessageEnd()
1934
    self._oprot.trans.flush()
1935
 
1936
  def recv_getTrackLogs(self, ):
1937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1938
    if mtype == TMessageType.EXCEPTION:
1939
      x = TApplicationException()
1940
      x.read(self._iprot)
1941
      self._iprot.readMessageEnd()
1942
      raise x
1943
    result = getTrackLogs_result()
1944
    result.read(self._iprot)
1945
    self._iprot.readMessageEnd()
3431 rajveer 1946
    if result.success is not None:
1845 vikas 1947
      return result.success
3431 rajveer 1948
    if result.utx is not None:
1845 vikas 1949
      raise result.utx
1950
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1951
 
559 chandransh 1952
  def getCurrentCart(self, userId):
94 ashish 1953
    """
1954
    Parameters:
559 chandransh 1955
     - userId
94 ashish 1956
    """
559 chandransh 1957
    self.send_getCurrentCart(userId)
1958
    return self.recv_getCurrentCart()
94 ashish 1959
 
559 chandransh 1960
  def send_getCurrentCart(self, userId):
1961
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1962
    args = getCurrentCart_args()
1963
    args.userId = userId
94 ashish 1964
    args.write(self._oprot)
1965
    self._oprot.writeMessageEnd()
1966
    self._oprot.trans.flush()
1967
 
559 chandransh 1968
  def recv_getCurrentCart(self, ):
94 ashish 1969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1970
    if mtype == TMessageType.EXCEPTION:
1971
      x = TApplicationException()
1972
      x.read(self._iprot)
1973
      self._iprot.readMessageEnd()
1974
      raise x
559 chandransh 1975
    result = getCurrentCart_result()
94 ashish 1976
    result.read(self._iprot)
1977
    self._iprot.readMessageEnd()
3431 rajveer 1978
    if result.success is not None:
94 ashish 1979
      return result.success
3431 rajveer 1980
    if result.scx is not None:
559 chandransh 1981
      raise result.scx
1982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1983
 
559 chandransh 1984
  def getCart(self, cartId):
94 ashish 1985
    """
1986
    Parameters:
559 chandransh 1987
     - cartId
94 ashish 1988
    """
559 chandransh 1989
    self.send_getCart(cartId)
1990
    return self.recv_getCart()
94 ashish 1991
 
559 chandransh 1992
  def send_getCart(self, cartId):
1993
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1994
    args = getCart_args()
1995
    args.cartId = cartId
94 ashish 1996
    args.write(self._oprot)
1997
    self._oprot.writeMessageEnd()
1998
    self._oprot.trans.flush()
1999
 
559 chandransh 2000
  def recv_getCart(self, ):
94 ashish 2001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2002
    if mtype == TMessageType.EXCEPTION:
2003
      x = TApplicationException()
2004
      x.read(self._iprot)
2005
      self._iprot.readMessageEnd()
2006
      raise x
559 chandransh 2007
    result = getCart_result()
94 ashish 2008
    result.read(self._iprot)
2009
    self._iprot.readMessageEnd()
3431 rajveer 2010
    if result.success is not None:
94 ashish 2011
      return result.success
3431 rajveer 2012
    if result.scx is not None:
559 chandransh 2013
      raise result.scx
2014
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2015
 
559 chandransh 2016
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2017
    """
2018
    Parameters:
559 chandransh 2019
     - from_time
2020
     - to_time
2021
     - status
94 ashish 2022
    """
559 chandransh 2023
    self.send_getCartsByTime(from_time, to_time, status)
2024
    return self.recv_getCartsByTime()
94 ashish 2025
 
559 chandransh 2026
  def send_getCartsByTime(self, from_time, to_time, status):
2027
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2028
    args = getCartsByTime_args()
2029
    args.from_time = from_time
2030
    args.to_time = to_time
2031
    args.status = status
94 ashish 2032
    args.write(self._oprot)
2033
    self._oprot.writeMessageEnd()
2034
    self._oprot.trans.flush()
2035
 
559 chandransh 2036
  def recv_getCartsByTime(self, ):
94 ashish 2037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2038
    if mtype == TMessageType.EXCEPTION:
2039
      x = TApplicationException()
2040
      x.read(self._iprot)
2041
      self._iprot.readMessageEnd()
2042
      raise x
559 chandransh 2043
    result = getCartsByTime_result()
94 ashish 2044
    result.read(self._iprot)
2045
    self._iprot.readMessageEnd()
3431 rajveer 2046
    if result.success is not None:
94 ashish 2047
      return result.success
3431 rajveer 2048
    if result.scx is not None:
559 chandransh 2049
      raise result.scx
2050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2051
 
3557 rajveer 2052
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2053
    """
2054
    Parameters:
2055
     - cartId
2056
     - itemId
2057
     - quantity
3557 rajveer 2058
     - sourceId
559 chandransh 2059
    """
3557 rajveer 2060
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2061
    return self.recv_addItemToCart()
559 chandransh 2062
 
3557 rajveer 2063
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2064
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2065
    args = addItemToCart_args()
2066
    args.cartId = cartId
2067
    args.itemId = itemId
2068
    args.quantity = quantity
3557 rajveer 2069
    args.sourceId = sourceId
559 chandransh 2070
    args.write(self._oprot)
2071
    self._oprot.writeMessageEnd()
2072
    self._oprot.trans.flush()
2073
 
2074
  def recv_addItemToCart(self, ):
2075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2076
    if mtype == TMessageType.EXCEPTION:
2077
      x = TApplicationException()
2078
      x.read(self._iprot)
2079
      self._iprot.readMessageEnd()
2080
      raise x
2081
    result = addItemToCart_result()
2082
    result.read(self._iprot)
2083
    self._iprot.readMessageEnd()
3431 rajveer 2084
    if result.success is not None:
2035 rajveer 2085
      return result.success
3431 rajveer 2086
    if result.scx is not None:
559 chandransh 2087
      raise result.scx
2035 rajveer 2088
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2089
 
2090
  def deleteItemFromCart(self, cartId, itemId):
2091
    """
2092
    Parameters:
2093
     - cartId
2094
     - itemId
2095
    """
2096
    self.send_deleteItemFromCart(cartId, itemId)
2097
    self.recv_deleteItemFromCart()
2098
 
2099
  def send_deleteItemFromCart(self, cartId, itemId):
2100
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2101
    args = deleteItemFromCart_args()
2102
    args.cartId = cartId
2103
    args.itemId = itemId
2104
    args.write(self._oprot)
2105
    self._oprot.writeMessageEnd()
2106
    self._oprot.trans.flush()
2107
 
2108
  def recv_deleteItemFromCart(self, ):
2109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2110
    if mtype == TMessageType.EXCEPTION:
2111
      x = TApplicationException()
2112
      x.read(self._iprot)
2113
      self._iprot.readMessageEnd()
2114
      raise x
2115
    result = deleteItemFromCart_result()
2116
    result.read(self._iprot)
2117
    self._iprot.readMessageEnd()
3431 rajveer 2118
    if result.scx is not None:
559 chandransh 2119
      raise result.scx
2120
    return
2121
 
2122
  def addAddressToCart(self, cartId, addressId):
2123
    """
2124
    Parameters:
2125
     - cartId
2126
     - addressId
2127
    """
2128
    self.send_addAddressToCart(cartId, addressId)
2129
    self.recv_addAddressToCart()
2130
 
2131
  def send_addAddressToCart(self, cartId, addressId):
2132
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2133
    args = addAddressToCart_args()
2134
    args.cartId = cartId
2135
    args.addressId = addressId
2136
    args.write(self._oprot)
2137
    self._oprot.writeMessageEnd()
2138
    self._oprot.trans.flush()
2139
 
2140
  def recv_addAddressToCart(self, ):
2141
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2142
    if mtype == TMessageType.EXCEPTION:
2143
      x = TApplicationException()
2144
      x.read(self._iprot)
2145
      self._iprot.readMessageEnd()
2146
      raise x
2147
    result = addAddressToCart_result()
2148
    result.read(self._iprot)
2149
    self._iprot.readMessageEnd()
3431 rajveer 2150
    if result.scx is not None:
575 chandransh 2151
      raise result.scx
559 chandransh 2152
    return
2153
 
5553 rajveer 2154
  def addStoreToCart(self, cartId, storeId):
2155
    """
2156
    Parameters:
2157
     - cartId
2158
     - storeId
2159
    """
2160
    self.send_addStoreToCart(cartId, storeId)
2161
    self.recv_addStoreToCart()
2162
 
2163
  def send_addStoreToCart(self, cartId, storeId):
2164
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2165
    args = addStoreToCart_args()
2166
    args.cartId = cartId
2167
    args.storeId = storeId
2168
    args.write(self._oprot)
2169
    self._oprot.writeMessageEnd()
2170
    self._oprot.trans.flush()
2171
 
2172
  def recv_addStoreToCart(self, ):
2173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2174
    if mtype == TMessageType.EXCEPTION:
2175
      x = TApplicationException()
2176
      x.read(self._iprot)
2177
      self._iprot.readMessageEnd()
2178
      raise x
2179
    result = addStoreToCart_result()
2180
    result.read(self._iprot)
2181
    self._iprot.readMessageEnd()
2182
    if result.scx is not None:
2183
      raise result.scx
2184
    return
2185
 
6922 anupam.sin 2186
  def applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2187
    """
2188
    Parameters:
6922 anupam.sin 2189
     - cart
1976 varun.gupt 2190
     - couponCode
2191
    """
6922 anupam.sin 2192
    self.send_applyCouponToCart(cart, couponCode)
1976 varun.gupt 2193
    self.recv_applyCouponToCart()
2194
 
6922 anupam.sin 2195
  def send_applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2196
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2197
    args = applyCouponToCart_args()
6922 anupam.sin 2198
    args.cart = cart
1976 varun.gupt 2199
    args.couponCode = couponCode
2200
    args.write(self._oprot)
2201
    self._oprot.writeMessageEnd()
2202
    self._oprot.trans.flush()
2203
 
2204
  def recv_applyCouponToCart(self, ):
2205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2206
    if mtype == TMessageType.EXCEPTION:
2207
      x = TApplicationException()
2208
      x.read(self._iprot)
2209
      self._iprot.readMessageEnd()
2210
      raise x
2211
    result = applyCouponToCart_result()
2212
    result.read(self._iprot)
2213
    self._iprot.readMessageEnd()
3431 rajveer 2214
    if result.scx is not None:
1976 varun.gupt 2215
      raise result.scx
2216
    return
2217
 
2218
  def removeCoupon(self, cartId):
2219
    """
2220
    Parameters:
2221
     - cartId
2222
    """
2223
    self.send_removeCoupon(cartId)
2224
    self.recv_removeCoupon()
2225
 
2226
  def send_removeCoupon(self, cartId):
2227
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2228
    args = removeCoupon_args()
2229
    args.cartId = cartId
2230
    args.write(self._oprot)
2231
    self._oprot.writeMessageEnd()
2232
    self._oprot.trans.flush()
2233
 
2234
  def recv_removeCoupon(self, ):
2235
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2236
    if mtype == TMessageType.EXCEPTION:
2237
      x = TApplicationException()
2238
      x.read(self._iprot)
2239
      self._iprot.readMessageEnd()
2240
      raise x
2241
    result = removeCoupon_result()
2242
    result.read(self._iprot)
2243
    self._iprot.readMessageEnd()
3431 rajveer 2244
    if result.scx is not None:
1976 varun.gupt 2245
      raise result.scx
2246
    return
2247
 
3554 varun.gupt 2248
  def deleteDiscountsFromCart(self, cartId):
2249
    """
2250
    Deletes all the discounts associated with the cart
2251
 
2252
    Parameters:
2253
     - cartId
2254
    """
2255
    self.send_deleteDiscountsFromCart(cartId)
2256
    self.recv_deleteDiscountsFromCart()
2257
 
2258
  def send_deleteDiscountsFromCart(self, cartId):
2259
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2260
    args = deleteDiscountsFromCart_args()
2261
    args.cartId = cartId
2262
    args.write(self._oprot)
2263
    self._oprot.writeMessageEnd()
2264
    self._oprot.trans.flush()
2265
 
2266
  def recv_deleteDiscountsFromCart(self, ):
2267
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2268
    if mtype == TMessageType.EXCEPTION:
2269
      x = TApplicationException()
2270
      x.read(self._iprot)
2271
      self._iprot.readMessageEnd()
2272
      raise x
2273
    result = deleteDiscountsFromCart_result()
2274
    result.read(self._iprot)
2275
    self._iprot.readMessageEnd()
2276
    if result.scx is not None:
2277
      raise result.scx
2278
    return
2279
 
2280
  def saveDiscounts(self, discounts):
2281
    """
2282
    Accepts a list of thrift objects of Discount type and saves them
2283
 
2284
    Parameters:
2285
     - discounts
2286
    """
2287
    self.send_saveDiscounts(discounts)
2288
    self.recv_saveDiscounts()
2289
 
2290
  def send_saveDiscounts(self, discounts):
2291
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2292
    args = saveDiscounts_args()
2293
    args.discounts = discounts
2294
    args.write(self._oprot)
2295
    self._oprot.writeMessageEnd()
2296
    self._oprot.trans.flush()
2297
 
2298
  def recv_saveDiscounts(self, ):
2299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2300
    if mtype == TMessageType.EXCEPTION:
2301
      x = TApplicationException()
2302
      x.read(self._iprot)
2303
      self._iprot.readMessageEnd()
2304
      raise x
2305
    result = saveDiscounts_result()
2306
    result.read(self._iprot)
2307
    self._iprot.readMessageEnd()
2308
    if result.scx is not None:
2309
      raise result.scx
2310
    return
2311
 
6389 rajveer 2312
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
559 chandransh 2313
    """
690 chandransh 2314
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2315
 
559 chandransh 2316
    Parameters:
2317
     - cartId
2815 vikas 2318
     - sessionSource
2319
     - sessionStartTime
3858 vikas 2320
     - firstSource
2321
     - firstSourceTime
5326 rajveer 2322
     - userId
6389 rajveer 2323
     - schemeId
559 chandransh 2324
    """
6389 rajveer 2325
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId)
690 chandransh 2326
    return self.recv_createOrders()
559 chandransh 2327
 
6389 rajveer 2328
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId):
690 chandransh 2329
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2330
    args = createOrders_args()
559 chandransh 2331
    args.cartId = cartId
2815 vikas 2332
    args.sessionSource = sessionSource
2333
    args.sessionStartTime = sessionStartTime
3858 vikas 2334
    args.firstSource = firstSource
2335
    args.firstSourceTime = firstSourceTime
5326 rajveer 2336
    args.userId = userId
6389 rajveer 2337
    args.schemeId = schemeId
559 chandransh 2338
    args.write(self._oprot)
2339
    self._oprot.writeMessageEnd()
2340
    self._oprot.trans.flush()
2341
 
690 chandransh 2342
  def recv_createOrders(self, ):
559 chandransh 2343
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2344
    if mtype == TMessageType.EXCEPTION:
2345
      x = TApplicationException()
2346
      x.read(self._iprot)
2347
      self._iprot.readMessageEnd()
2348
      raise x
690 chandransh 2349
    result = createOrders_result()
559 chandransh 2350
    result.read(self._iprot)
2351
    self._iprot.readMessageEnd()
3431 rajveer 2352
    if result.success is not None:
130 ashish 2353
      return result.success
3431 rajveer 2354
    if result.scx is not None:
559 chandransh 2355
      raise result.scx
690 chandransh 2356
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2357
 
3557 rajveer 2358
  def validateCart(self, cartId, sourceId):
130 ashish 2359
    """
690 chandransh 2360
    Validates that:
2361
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2362
    2. All of the lines in the cart are active items.
690 chandransh 2363
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2364
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2365
 
130 ashish 2366
    Parameters:
559 chandransh 2367
     - cartId
3557 rajveer 2368
     - sourceId
130 ashish 2369
    """
3557 rajveer 2370
    self.send_validateCart(cartId, sourceId)
559 chandransh 2371
    return self.recv_validateCart()
130 ashish 2372
 
3557 rajveer 2373
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2374
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2375
    args = validateCart_args()
2376
    args.cartId = cartId
3557 rajveer 2377
    args.sourceId = sourceId
130 ashish 2378
    args.write(self._oprot)
2379
    self._oprot.writeMessageEnd()
2380
    self._oprot.trans.flush()
2381
 
559 chandransh 2382
  def recv_validateCart(self, ):
130 ashish 2383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2384
    if mtype == TMessageType.EXCEPTION:
2385
      x = TApplicationException()
2386
      x.read(self._iprot)
2387
      self._iprot.readMessageEnd()
2388
      raise x
559 chandransh 2389
    result = validateCart_result()
130 ashish 2390
    result.read(self._iprot)
2391
    self._iprot.readMessageEnd()
3431 rajveer 2392
    if result.success is not None:
130 ashish 2393
      return result.success
3431 rajveer 2394
    if result.scex is not None:
575 chandransh 2395
      raise result.scex
559 chandransh 2396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2397
 
690 chandransh 2398
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2399
    """
690 chandransh 2400
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2401
 
575 chandransh 2402
    Parameters:
690 chandransh 2403
     - fromCartId
2404
     - toCartId
2405
    """
2406
    self.send_mergeCart(fromCartId, toCartId)
2407
    self.recv_mergeCart()
2408
 
2409
  def send_mergeCart(self, fromCartId, toCartId):
2410
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2411
    args = mergeCart_args()
2412
    args.fromCartId = fromCartId
2413
    args.toCartId = toCartId
2414
    args.write(self._oprot)
2415
    self._oprot.writeMessageEnd()
2416
    self._oprot.trans.flush()
2417
 
2418
  def recv_mergeCart(self, ):
2419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2420
    if mtype == TMessageType.EXCEPTION:
2421
      x = TApplicationException()
2422
      x.read(self._iprot)
2423
      self._iprot.readMessageEnd()
2424
      raise x
2425
    result = mergeCart_result()
2426
    result.read(self._iprot)
2427
    self._iprot.readMessageEnd()
2428
    return
2429
 
2430
  def checkOut(self, cartId):
2431
    """
2432
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2433
 
690 chandransh 2434
    Parameters:
575 chandransh 2435
     - cartId
2436
    """
690 chandransh 2437
    self.send_checkOut(cartId)
2438
    return self.recv_checkOut()
575 chandransh 2439
 
690 chandransh 2440
  def send_checkOut(self, cartId):
2441
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2442
    args = checkOut_args()
575 chandransh 2443
    args.cartId = cartId
2444
    args.write(self._oprot)
2445
    self._oprot.writeMessageEnd()
2446
    self._oprot.trans.flush()
2447
 
690 chandransh 2448
  def recv_checkOut(self, ):
575 chandransh 2449
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2450
    if mtype == TMessageType.EXCEPTION:
2451
      x = TApplicationException()
2452
      x.read(self._iprot)
2453
      self._iprot.readMessageEnd()
2454
      raise x
690 chandransh 2455
    result = checkOut_result()
575 chandransh 2456
    result.read(self._iprot)
2457
    self._iprot.readMessageEnd()
3431 rajveer 2458
    if result.success is not None:
575 chandransh 2459
      return result.success
3431 rajveer 2460
    if result.scex is not None:
575 chandransh 2461
      raise result.scex
690 chandransh 2462
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2463
 
690 chandransh 2464
  def resetCart(self, cartId, items):
559 chandransh 2465
    """
690 chandransh 2466
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2467
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2468
 
559 chandransh 2469
    Parameters:
690 chandransh 2470
     - cartId
2471
     - items
559 chandransh 2472
    """
690 chandransh 2473
    self.send_resetCart(cartId, items)
2474
    return self.recv_resetCart()
130 ashish 2475
 
690 chandransh 2476
  def send_resetCart(self, cartId, items):
2477
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2478
    args = resetCart_args()
2479
    args.cartId = cartId
2480
    args.items = items
559 chandransh 2481
    args.write(self._oprot)
2482
    self._oprot.writeMessageEnd()
2483
    self._oprot.trans.flush()
2484
 
690 chandransh 2485
  def recv_resetCart(self, ):
559 chandransh 2486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2487
    if mtype == TMessageType.EXCEPTION:
2488
      x = TApplicationException()
2489
      x.read(self._iprot)
2490
      self._iprot.readMessageEnd()
2491
      raise x
690 chandransh 2492
    result = resetCart_result()
559 chandransh 2493
    result.read(self._iprot)
2494
    self._iprot.readMessageEnd()
3431 rajveer 2495
    if result.success is not None:
690 chandransh 2496
      return result.success
3431 rajveer 2497
    if result.scex is not None:
690 chandransh 2498
      raise result.scex
2499
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2500
 
2981 rajveer 2501
  def getUserCount(self, userType):
559 chandransh 2502
    """
2981 rajveer 2503
    Returns number of registered users.
2504
    If userType = null, then it returns count of all users, including anonymous
2505
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2506
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2507
 
559 chandransh 2508
    Parameters:
2981 rajveer 2509
     - userType
559 chandransh 2510
    """
2981 rajveer 2511
    self.send_getUserCount(userType)
2512
    return self.recv_getUserCount()
559 chandransh 2513
 
2981 rajveer 2514
  def send_getUserCount(self, userType):
2515
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2516
    args = getUserCount_args()
2517
    args.userType = userType
559 chandransh 2518
    args.write(self._oprot)
2519
    self._oprot.writeMessageEnd()
2520
    self._oprot.trans.flush()
2521
 
2981 rajveer 2522
  def recv_getUserCount(self, ):
559 chandransh 2523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2524
    if mtype == TMessageType.EXCEPTION:
2525
      x = TApplicationException()
2526
      x.read(self._iprot)
2527
      self._iprot.readMessageEnd()
2528
      raise x
2981 rajveer 2529
    result = getUserCount_result()
559 chandransh 2530
    result.read(self._iprot)
2531
    self._iprot.readMessageEnd()
3431 rajveer 2532
    if result.success is not None:
559 chandransh 2533
      return result.success
2981 rajveer 2534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2535
 
2981 rajveer 2536
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2537
    """
2981 rajveer 2538
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2539
    If any of startDate or endDate is -1, then that filter is ignored.
2540
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2541
 
2542
 
559 chandransh 2543
    Parameters:
2981 rajveer 2544
     - userType
2545
     - startDate
2546
     - endDate
559 chandransh 2547
    """
2981 rajveer 2548
    self.send_getAllUsers(userType, startDate, endDate)
2549
    return self.recv_getAllUsers()
559 chandransh 2550
 
2981 rajveer 2551
  def send_getAllUsers(self, userType, startDate, endDate):
2552
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2553
    args = getAllUsers_args()
2554
    args.userType = userType
2555
    args.startDate = startDate
2556
    args.endDate = endDate
559 chandransh 2557
    args.write(self._oprot)
2558
    self._oprot.writeMessageEnd()
2559
    self._oprot.trans.flush()
2560
 
2981 rajveer 2561
  def recv_getAllUsers(self, ):
559 chandransh 2562
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2563
    if mtype == TMessageType.EXCEPTION:
2564
      x = TApplicationException()
2565
      x.read(self._iprot)
2566
      self._iprot.readMessageEnd()
2567
      raise x
2981 rajveer 2568
    result = getAllUsers_result()
559 chandransh 2569
    result.read(self._iprot)
2570
    self._iprot.readMessageEnd()
3431 rajveer 2571
    if result.success is not None:
559 chandransh 2572
      return result.success
2981 rajveer 2573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2574
 
2981 rajveer 2575
  def getMyResearchItems(self, userId):
559 chandransh 2576
    """
2981 rajveer 2577
    Returns list of item ids in myresearch for the user
3431 rajveer 2578
 
559 chandransh 2579
    Parameters:
772 rajveer 2580
     - userId
559 chandransh 2581
    """
2981 rajveer 2582
    self.send_getMyResearchItems(userId)
2583
    return self.recv_getMyResearchItems()
559 chandransh 2584
 
2981 rajveer 2585
  def send_getMyResearchItems(self, userId):
2586
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2587
    args = getMyResearchItems_args()
772 rajveer 2588
    args.userId = userId
559 chandransh 2589
    args.write(self._oprot)
2590
    self._oprot.writeMessageEnd()
2591
    self._oprot.trans.flush()
2592
 
2981 rajveer 2593
  def recv_getMyResearchItems(self, ):
559 chandransh 2594
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2595
    if mtype == TMessageType.EXCEPTION:
2596
      x = TApplicationException()
2597
      x.read(self._iprot)
2598
      self._iprot.readMessageEnd()
2599
      raise x
2981 rajveer 2600
    result = getMyResearchItems_result()
559 chandransh 2601
    result.read(self._iprot)
2602
    self._iprot.readMessageEnd()
3431 rajveer 2603
    if result.success is not None:
559 chandransh 2604
      return result.success
3431 rajveer 2605
    if result.scx is not None:
559 chandransh 2606
      raise result.scx
2981 rajveer 2607
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2608
 
2981 rajveer 2609
  def updateMyResearch(self, userId, itemId):
559 chandransh 2610
    """
2981 rajveer 2611
    add item to my research for a user
3431 rajveer 2612
 
559 chandransh 2613
    Parameters:
2981 rajveer 2614
     - userId
2615
     - itemId
559 chandransh 2616
    """
2981 rajveer 2617
    self.send_updateMyResearch(userId, itemId)
2618
    return self.recv_updateMyResearch()
559 chandransh 2619
 
2981 rajveer 2620
  def send_updateMyResearch(self, userId, itemId):
2621
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2622
    args = updateMyResearch_args()
2623
    args.userId = userId
2624
    args.itemId = itemId
559 chandransh 2625
    args.write(self._oprot)
2626
    self._oprot.writeMessageEnd()
2627
    self._oprot.trans.flush()
2628
 
2981 rajveer 2629
  def recv_updateMyResearch(self, ):
559 chandransh 2630
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2631
    if mtype == TMessageType.EXCEPTION:
2632
      x = TApplicationException()
2633
      x.read(self._iprot)
2634
      self._iprot.readMessageEnd()
2635
      raise x
2981 rajveer 2636
    result = updateMyResearch_result()
559 chandransh 2637
    result.read(self._iprot)
2638
    self._iprot.readMessageEnd()
3431 rajveer 2639
    if result.success is not None:
2981 rajveer 2640
      return result.success
3431 rajveer 2641
    if result.scx is not None:
2981 rajveer 2642
      raise result.scx
2643
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2644
 
2981 rajveer 2645
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2646
    """
2981 rajveer 2647
    delete item from my research for a user
3431 rajveer 2648
 
1596 ankur.sing 2649
    Parameters:
2981 rajveer 2650
     - userId
2651
     - itemId
1596 ankur.sing 2652
    """
2981 rajveer 2653
    self.send_deleteItemFromMyResearch(userId, itemId)
2654
    self.recv_deleteItemFromMyResearch()
559 chandransh 2655
 
2981 rajveer 2656
  def send_deleteItemFromMyResearch(self, userId, itemId):
2657
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2658
    args = deleteItemFromMyResearch_args()
2659
    args.userId = userId
2660
    args.itemId = itemId
1596 ankur.sing 2661
    args.write(self._oprot)
2662
    self._oprot.writeMessageEnd()
2663
    self._oprot.trans.flush()
2664
 
2981 rajveer 2665
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2667
    if mtype == TMessageType.EXCEPTION:
2668
      x = TApplicationException()
2669
      x.read(self._iprot)
2670
      self._iprot.readMessageEnd()
2671
      raise x
2981 rajveer 2672
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2673
    result.read(self._iprot)
2674
    self._iprot.readMessageEnd()
3431 rajveer 2675
    if result.scx is not None:
2981 rajveer 2676
      raise result.scx
2677
    return
1596 ankur.sing 2678
 
2981 rajveer 2679
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2680
    """
2981 rajveer 2681
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2682
 
1673 ankur.sing 2683
    Parameters:
2981 rajveer 2684
     - userId
1673 ankur.sing 2685
    """
2981 rajveer 2686
    self.send_getBrowseHistoryItems(userId)
2687
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2688
 
2981 rajveer 2689
  def send_getBrowseHistoryItems(self, userId):
2690
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2691
    args = getBrowseHistoryItems_args()
2692
    args.userId = userId
1673 ankur.sing 2693
    args.write(self._oprot)
2694
    self._oprot.writeMessageEnd()
2695
    self._oprot.trans.flush()
2696
 
2981 rajveer 2697
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2699
    if mtype == TMessageType.EXCEPTION:
2700
      x = TApplicationException()
2701
      x.read(self._iprot)
2702
      self._iprot.readMessageEnd()
2703
      raise x
2981 rajveer 2704
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2705
    result.read(self._iprot)
2706
    self._iprot.readMessageEnd()
3431 rajveer 2707
    if result.success is not None:
1673 ankur.sing 2708
      return result.success
3431 rajveer 2709
    if result.scx is not None:
2981 rajveer 2710
      raise result.scx
2711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2712
 
2981 rajveer 2713
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2714
    """
2981 rajveer 2715
    add item to browse history for a user
3431 rajveer 2716
 
2642 varun.gupt 2717
    Parameters:
2981 rajveer 2718
     - userId
2719
     - itemId
2642 varun.gupt 2720
    """
2981 rajveer 2721
    self.send_updateBrowseHistory(userId, itemId)
2722
    self.recv_updateBrowseHistory()
1673 ankur.sing 2723
 
2981 rajveer 2724
  def send_updateBrowseHistory(self, userId, itemId):
2725
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2726
    args = updateBrowseHistory_args()
2727
    args.userId = userId
2728
    args.itemId = itemId
2642 varun.gupt 2729
    args.write(self._oprot)
2730
    self._oprot.writeMessageEnd()
2731
    self._oprot.trans.flush()
2732
 
2981 rajveer 2733
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2735
    if mtype == TMessageType.EXCEPTION:
2736
      x = TApplicationException()
2737
      x.read(self._iprot)
2738
      self._iprot.readMessageEnd()
2739
      raise x
2981 rajveer 2740
    result = updateBrowseHistory_result()
2642 varun.gupt 2741
    result.read(self._iprot)
2742
    self._iprot.readMessageEnd()
2743
    return
2744
 
3385 varun.gupt 2745
  def getCartsWithCouponCount(self, couponCode):
2746
    """
2747
    Returns count of Carts with given coupon applied
3431 rajveer 2748
 
3385 varun.gupt 2749
    Parameters:
2750
     - couponCode
2751
    """
2752
    self.send_getCartsWithCouponCount(couponCode)
2753
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2754
 
3385 varun.gupt 2755
  def send_getCartsWithCouponCount(self, couponCode):
2756
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2757
    args = getCartsWithCouponCount_args()
2758
    args.couponCode = couponCode
2759
    args.write(self._oprot)
2760
    self._oprot.writeMessageEnd()
2761
    self._oprot.trans.flush()
2762
 
2763
  def recv_getCartsWithCouponCount(self, ):
2764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2765
    if mtype == TMessageType.EXCEPTION:
2766
      x = TApplicationException()
2767
      x.read(self._iprot)
2768
      self._iprot.readMessageEnd()
2769
      raise x
2770
    result = getCartsWithCouponCount_result()
2771
    result.read(self._iprot)
2772
    self._iprot.readMessageEnd()
3431 rajveer 2773
    if result.success is not None:
3385 varun.gupt 2774
      return result.success
2775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2776
 
3499 mandeep.dh 2777
  def increaseTrustLevel(self, userId, trustLevelDelta):
2778
    """
2779
    Updates COD trust level of a user
3385 varun.gupt 2780
 
3499 mandeep.dh 2781
    Parameters:
2782
     - userId
2783
     - trustLevelDelta
2784
    """
2785
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2786
 
2787
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2788
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2789
    args = increaseTrustLevel_args()
2790
    args.userId = userId
2791
    args.trustLevelDelta = trustLevelDelta
2792
    args.write(self._oprot)
2793
    self._oprot.writeMessageEnd()
2794
    self._oprot.trans.flush()
5407 amar.kumar 2795
  def getTrustLevel(self, userId):
2796
    """
2797
    Get trust level of a user
2798
 
2799
    Parameters:
2800
     - userId
2801
    """
2802
    self.send_getTrustLevel(userId)
2803
    return self.recv_getTrustLevel()
2804
 
2805
  def send_getTrustLevel(self, userId):
2806
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2807
    args = getTrustLevel_args()
2808
    args.userId = userId
2809
    args.write(self._oprot)
2810
    self._oprot.writeMessageEnd()
2811
    self._oprot.trans.flush()
2812
 
2813
  def recv_getTrustLevel(self, ):
2814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2815
    if mtype == TMessageType.EXCEPTION:
2816
      x = TApplicationException()
2817
      x.read(self._iprot)
2818
      self._iprot.readMessageEnd()
2819
      raise x
2820
    result = getTrustLevel_result()
2821
    result.read(self._iprot)
2822
    self._iprot.readMessageEnd()
2823
    if result.success is not None:
2824
      return result.success
2825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2826
 
4668 varun.gupt 2827
  def showCODOption(self, cartId, sourceId, pincode):
2828
    """
2829
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2830
 
4668 varun.gupt 2831
    Parameters:
2832
     - cartId
2833
     - sourceId
2834
     - pincode
2835
    """
2836
    self.send_showCODOption(cartId, sourceId, pincode)
2837
    return self.recv_showCODOption()
2838
 
2839
  def send_showCODOption(self, cartId, sourceId, pincode):
2840
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2841
    args = showCODOption_args()
2842
    args.cartId = cartId
2843
    args.sourceId = sourceId
2844
    args.pincode = pincode
2845
    args.write(self._oprot)
2846
    self._oprot.writeMessageEnd()
2847
    self._oprot.trans.flush()
2848
 
2849
  def recv_showCODOption(self, ):
2850
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2851
    if mtype == TMessageType.EXCEPTION:
2852
      x = TApplicationException()
2853
      x.read(self._iprot)
2854
      self._iprot.readMessageEnd()
2855
      raise x
2856
    result = showCODOption_result()
2857
    result.read(self._iprot)
2858
    self._iprot.readMessageEnd()
2859
    if result.success is not None:
2860
      return result.success
2861
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2862
 
5623 anupam.sin 2863
  def getUserEmails(self, startDate, endDate):
2864
    """
2865
    Get email addresses for users activated within a given date range
4668 varun.gupt 2866
 
5623 anupam.sin 2867
    Parameters:
2868
     - startDate
2869
     - endDate
2870
    """
2871
    self.send_getUserEmails(startDate, endDate)
2872
    return self.recv_getUserEmails()
2873
 
2874
  def send_getUserEmails(self, startDate, endDate):
2875
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2876
    args = getUserEmails_args()
2877
    args.startDate = startDate
2878
    args.endDate = endDate
2879
    args.write(self._oprot)
2880
    self._oprot.writeMessageEnd()
2881
    self._oprot.trans.flush()
2882
 
2883
  def recv_getUserEmails(self, ):
2884
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2885
    if mtype == TMessageType.EXCEPTION:
2886
      x = TApplicationException()
2887
      x.read(self._iprot)
2888
      self._iprot.readMessageEnd()
2889
      raise x
2890
    result = getUserEmails_result()
2891
    result.read(self._iprot)
2892
    self._iprot.readMessageEnd()
2893
    if result.success is not None:
2894
      return result.success
2895
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2896
 
6903 anupam.sin 2897
  def insureItem(self, itemId, cartId, toInsure):
2898
    """
2899
    Mark a cart lineitem as insured. Returns true/false.
2900
 
2901
    Parameters:
2902
     - itemId
2903
     - cartId
2904
     - toInsure
2905
    """
2906
    self.send_insureItem(itemId, cartId, toInsure)
2907
    return self.recv_insureItem()
2908
 
2909
  def send_insureItem(self, itemId, cartId, toInsure):
2910
    self._oprot.writeMessageBegin('insureItem', TMessageType.CALL, self._seqid)
2911
    args = insureItem_args()
2912
    args.itemId = itemId
2913
    args.cartId = cartId
2914
    args.toInsure = toInsure
2915
    args.write(self._oprot)
2916
    self._oprot.writeMessageEnd()
2917
    self._oprot.trans.flush()
2918
 
2919
  def recv_insureItem(self, ):
2920
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2921
    if mtype == TMessageType.EXCEPTION:
2922
      x = TApplicationException()
2923
      x.read(self._iprot)
2924
      self._iprot.readMessageEnd()
2925
      raise x
2926
    result = insureItem_result()
2927
    result.read(self._iprot)
2928
    self._iprot.readMessageEnd()
2929
    if result.success is not None:
2930
      return result.success
2931
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insureItem failed: unknown result");
2932
 
2933
  def cancelInsurance(self, cartId):
2934
    """
2935
    Cancel insurance for all items in the cart
2936
 
2937
    Parameters:
2938
     - cartId
2939
    """
2940
    self.send_cancelInsurance(cartId)
2941
    return self.recv_cancelInsurance()
2942
 
2943
  def send_cancelInsurance(self, cartId):
2944
    self._oprot.writeMessageBegin('cancelInsurance', TMessageType.CALL, self._seqid)
2945
    args = cancelInsurance_args()
2946
    args.cartId = cartId
2947
    args.write(self._oprot)
2948
    self._oprot.writeMessageEnd()
2949
    self._oprot.trans.flush()
2950
 
2951
  def recv_cancelInsurance(self, ):
2952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2953
    if mtype == TMessageType.EXCEPTION:
2954
      x = TApplicationException()
2955
      x.read(self._iprot)
2956
      self._iprot.readMessageEnd()
2957
      raise x
2958
    result = cancelInsurance_result()
2959
    result.read(self._iprot)
2960
    self._iprot.readMessageEnd()
2961
    if result.success is not None:
2962
      return result.success
2963
    raise TApplicationException(TApplicationException.MISSING_RESULT, "cancelInsurance failed: unknown result");
2964
 
2965
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2966
    """
2967
    Stores insurance specific details like date of birth and guardianName
2968
 
2969
    Parameters:
2970
     - addressId
2971
     - dob
2972
     - guardianName
2973
    """
2974
    self.send_storeInsuranceSpecificDetails(addressId, dob, guardianName)
2975
    return self.recv_storeInsuranceSpecificDetails()
2976
 
2977
  def send_storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2978
    self._oprot.writeMessageBegin('storeInsuranceSpecificDetails', TMessageType.CALL, self._seqid)
2979
    args = storeInsuranceSpecificDetails_args()
2980
    args.addressId = addressId
2981
    args.dob = dob
2982
    args.guardianName = guardianName
2983
    args.write(self._oprot)
2984
    self._oprot.writeMessageEnd()
2985
    self._oprot.trans.flush()
2986
 
2987
  def recv_storeInsuranceSpecificDetails(self, ):
2988
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2989
    if mtype == TMessageType.EXCEPTION:
2990
      x = TApplicationException()
2991
      x.read(self._iprot)
2992
      self._iprot.readMessageEnd()
2993
      raise x
2994
    result = storeInsuranceSpecificDetails_result()
2995
    result.read(self._iprot)
2996
    self._iprot.readMessageEnd()
2997
    if result.success is not None:
2998
      return result.success
2999
    raise TApplicationException(TApplicationException.MISSING_RESULT, "storeInsuranceSpecificDetails failed: unknown result");
3000
 
3001
  def isInsuranceDetailPresent(self, addressId):
3002
    """
3003
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
3004
 
3005
    Parameters:
3006
     - addressId
3007
    """
3008
    self.send_isInsuranceDetailPresent(addressId)
3009
    return self.recv_isInsuranceDetailPresent()
3010
 
3011
  def send_isInsuranceDetailPresent(self, addressId):
3012
    self._oprot.writeMessageBegin('isInsuranceDetailPresent', TMessageType.CALL, self._seqid)
3013
    args = isInsuranceDetailPresent_args()
3014
    args.addressId = addressId
3015
    args.write(self._oprot)
3016
    self._oprot.writeMessageEnd()
3017
    self._oprot.trans.flush()
3018
 
3019
  def recv_isInsuranceDetailPresent(self, ):
3020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3021
    if mtype == TMessageType.EXCEPTION:
3022
      x = TApplicationException()
3023
      x.read(self._iprot)
3024
      self._iprot.readMessageEnd()
3025
      raise x
3026
    result = isInsuranceDetailPresent_result()
3027
    result.read(self._iprot)
3028
    self._iprot.readMessageEnd()
3029
    if result.success is not None:
3030
      return result.success
3031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
3032
 
6821 amar.kumar 3033
  def isProductAddedToCart(self, itemId, startDate, endDate):
3034
    """
3035
    Returns whether product is added to cart from startDate to endDate
5623 anupam.sin 3036
 
6821 amar.kumar 3037
    Parameters:
3038
     - itemId
3039
     - startDate
3040
     - endDate
3041
    """
3042
    self.send_isProductAddedToCart(itemId, startDate, endDate)
3043
    return self.recv_isProductAddedToCart()
3044
 
3045
  def send_isProductAddedToCart(self, itemId, startDate, endDate):
3046
    self._oprot.writeMessageBegin('isProductAddedToCart', TMessageType.CALL, self._seqid)
3047
    args = isProductAddedToCart_args()
3048
    args.itemId = itemId
3049
    args.startDate = startDate
3050
    args.endDate = endDate
3051
    args.write(self._oprot)
3052
    self._oprot.writeMessageEnd()
3053
    self._oprot.trans.flush()
3054
 
3055
  def recv_isProductAddedToCart(self, ):
3056
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3057
    if mtype == TMessageType.EXCEPTION:
3058
      x = TApplicationException()
3059
      x.read(self._iprot)
3060
      self._iprot.readMessageEnd()
3061
      raise x
3062
    result = isProductAddedToCart_result()
3063
    result.read(self._iprot)
3064
    self._iprot.readMessageEnd()
3065
    if result.success is not None:
3066
      return result.success
3067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isProductAddedToCart failed: unknown result");
3068
 
7007 amar.kumar 3069
  def markUserAsFBUser(self, id):
3070
    """
3071
    Parameters:
3072
     - id
3073
    """
3074
    self.send_markUserAsFBUser(id)
3075
    self.recv_markUserAsFBUser()
6821 amar.kumar 3076
 
7007 amar.kumar 3077
  def send_markUserAsFBUser(self, id):
3078
    self._oprot.writeMessageBegin('markUserAsFBUser', TMessageType.CALL, self._seqid)
3079
    args = markUserAsFBUser_args()
3080
    args.id = id
3081
    args.write(self._oprot)
3082
    self._oprot.writeMessageEnd()
3083
    self._oprot.trans.flush()
3084
 
3085
  def recv_markUserAsFBUser(self, ):
3086
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3087
    if mtype == TMessageType.EXCEPTION:
3088
      x = TApplicationException()
3089
      x.read(self._iprot)
3090
      self._iprot.readMessageEnd()
3091
      raise x
3092
    result = markUserAsFBUser_result()
3093
    result.read(self._iprot)
3094
    self._iprot.readMessageEnd()
3095
    return
3096
 
3097
 
3376 rajveer 3098
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 3099
  def __init__(self, handler):
3376 rajveer 3100
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 3101
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3102
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 3103
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 3104
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 3105
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 3106
    self._processMap["createUser"] = Processor.process_createUser
3107
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 3108
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3109
    self._processMap["userExists"] = Processor.process_userExists
3110
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3111
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3112
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3113
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3114
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3115
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3116
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3117
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3118
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3119
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3120
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3121
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3122
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3123
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3124
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 3125
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 3126
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3127
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3128
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3129
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3130
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3131
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3132
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3133
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3134
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3135
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3136
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3137
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3138
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3139
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3140
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3141
    self._processMap["getCart"] = Processor.process_getCart
3142
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3143
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3144
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3145
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 3146
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 3147
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3148
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3149
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3150
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3151
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3152
    self._processMap["validateCart"] = Processor.process_validateCart
3153
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3154
    self._processMap["checkOut"] = Processor.process_checkOut
3155
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3156
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3157
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2981 rajveer 3158
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3159
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3160
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3161
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3162
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3163
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3164
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 3165
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 3166
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 3167
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
6903 anupam.sin 3168
    self._processMap["insureItem"] = Processor.process_insureItem
3169
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3170
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3171
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
6821 amar.kumar 3172
    self._processMap["isProductAddedToCart"] = Processor.process_isProductAddedToCart
7007 amar.kumar 3173
    self._processMap["markUserAsFBUser"] = Processor.process_markUserAsFBUser
94 ashish 3174
 
3175
  def process(self, iprot, oprot):
3176
    (name, type, seqid) = iprot.readMessageBegin()
3177
    if name not in self._processMap:
3178
      iprot.skip(TType.STRUCT)
3179
      iprot.readMessageEnd()
3180
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3181
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3182
      x.write(oprot)
3183
      oprot.writeMessageEnd()
3184
      oprot.trans.flush()
3185
      return
3186
    else:
3187
      self._processMap[name](self, seqid, iprot, oprot)
3188
    return True
3189
 
559 chandransh 3190
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3191
    args = createAnonymousUser_args()
94 ashish 3192
    args.read(iprot)
3193
    iprot.readMessageEnd()
559 chandransh 3194
    result = createAnonymousUser_result()
94 ashish 3195
    try:
559 chandransh 3196
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3197
    except UserContextException, ucex:
3198
      result.ucex = ucex
3199
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3200
    result.write(oprot)
3201
    oprot.writeMessageEnd()
3202
    oprot.trans.flush()
3203
 
559 chandransh 3204
  def process_getUserById(self, seqid, iprot, oprot):
3205
    args = getUserById_args()
94 ashish 3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
559 chandransh 3208
    result = getUserById_result()
94 ashish 3209
    try:
559 chandransh 3210
      result.success = self._handler.getUserById(args.userId)
3211
    except UserContextException, ucex:
3212
      result.ucex = ucex
3213
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
3217
 
5326 rajveer 3218
  def process_getUserByCartId(self, seqid, iprot, oprot):
3219
    args = getUserByCartId_args()
3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
3222
    result = getUserByCartId_result()
3223
    try:
3224
      result.success = self._handler.getUserByCartId(args.cartId)
3225
    except UserContextException, ucex:
3226
      result.ucex = ucex
3227
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
3231
 
1491 vikas 3232
  def process_getUserByEmail(self, seqid, iprot, oprot):
3233
    args = getUserByEmail_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = getUserByEmail_result()
3237
    try:
3238
      result.success = self._handler.getUserByEmail(args.email)
3239
    except UserContextException, ucex:
3240
      result.ucex = ucex
3241
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
3032 mandeep.dh 3246
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3247
    args = getUserByMobileNumber_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = getUserByMobileNumber_result()
3251
    try:
3252
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3253
    except UserContextException, ucex:
3254
      result.ucex = ucex
3255
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
559 chandransh 3260
  def process_createUser(self, seqid, iprot, oprot):
3261
    args = createUser_args()
94 ashish 3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
559 chandransh 3264
    result = createUser_result()
94 ashish 3265
    try:
559 chandransh 3266
      result.success = self._handler.createUser(args.user)
3267
    except UserContextException, ucex:
3268
      result.ucex = ucex
3269
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
559 chandransh 3274
  def process_updateUser(self, seqid, iprot, oprot):
3275
    args = updateUser_args()
94 ashish 3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
559 chandransh 3278
    result = updateUser_result()
94 ashish 3279
    try:
559 chandransh 3280
      result.success = self._handler.updateUser(args.user)
3281
    except UserContextException, ucex:
3282
      result.ucex = ucex
3283
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
122 ashish 3288
  def process_authenticateUser(self, seqid, iprot, oprot):
3289
    args = authenticateUser_args()
3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
3292
    result = authenticateUser_result()
3293
    try:
559 chandransh 3294
      result.success = self._handler.authenticateUser(args.email, args.password)
3295
    except AuthenticationException, auex:
3296
      result.auex = auex
122 ashish 3297
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3298
    result.write(oprot)
3299
    oprot.writeMessageEnd()
3300
    oprot.trans.flush()
3301
 
94 ashish 3302
  def process_userExists(self, seqid, iprot, oprot):
3303
    args = userExists_args()
3304
    args.read(iprot)
3305
    iprot.readMessageEnd()
3306
    result = userExists_result()
3307
    try:
3308
      result.success = self._handler.userExists(args.email)
3309
    except UserContextException, ucx:
3310
      result.ucx = ucx
3311
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3312
    result.write(oprot)
3313
    oprot.writeMessageEnd()
3314
    oprot.trans.flush()
3315
 
3316
  def process_addAddressForUser(self, seqid, iprot, oprot):
3317
    args = addAddressForUser_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = addAddressForUser_result()
3321
    try:
567 rajveer 3322
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3323
    except UserContextException, ucx:
3324
      result.ucx = ucx
3325
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
3330
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3331
    args = removeAddressForUser_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = removeAddressForUser_result()
3335
    try:
3336
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3337
    except UserContextException, ucx:
3338
      result.ucx = ucx
3339
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
3344
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3345
    args = setUserAsLoggedIn_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = setUserAsLoggedIn_result()
3349
    try:
3350
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3351
    except UserContextException, ucx:
3352
      result.ucx = ucx
3353
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
3358
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3359
    args = setUserAsLoggedOut_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = setUserAsLoggedOut_result()
3363
    try:
3364
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3365
    except UserContextException, ucx:
3366
      result.ucx = ucx
3367
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
504 rajveer 3372
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3373
    args = setDefaultAddress_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = setDefaultAddress_result()
3377
    try:
3378
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3379
    except UserContextException, ucx:
3380
      result.ucx = ucx
3381
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
94 ashish 3386
  def process_updatePassword(self, seqid, iprot, oprot):
3387
    args = updatePassword_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = updatePassword_result()
3391
    try:
594 rajveer 3392
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3393
    except UserContextException, ucx:
3394
      result.ucx = ucx
3395
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
581 rajveer 3400
  def process_forgotPassword(self, seqid, iprot, oprot):
3401
    args = forgotPassword_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = forgotPassword_result()
3405
    try:
884 rajveer 3406
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3407
    except UserContextException, ucx:
3408
      result.ucx = ucx
3409
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
594 rajveer 3414
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3415
    args = getAllAddressesForUser_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = getAllAddressesForUser_result()
3419
    try:
3420
      result.success = self._handler.getAllAddressesForUser(args.userId)
3421
    except UserContextException, ucx:
3422
      result.ucx = ucx
3423
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
1894 vikas 3428
  def process_getAddressById(self, seqid, iprot, oprot):
3429
    args = getAddressById_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = getAddressById_result()
3433
    try:
3434
      result.success = self._handler.getAddressById(args.addressId)
3435
    except UserContextException, ucx:
3436
      result.ucx = ucx
3437
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
594 rajveer 3442
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3443
    args = getDefaultAddressId_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = getDefaultAddressId_result()
3447
    try:
3448
      result.success = self._handler.getDefaultAddressId(args.userId)
3449
    except UserContextException, ucx:
3450
      result.ucx = ucx
3451
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
785 rajveer 3456
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3457
    args = getDefaultPincode_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = getDefaultPincode_result()
3461
    try:
3462
      result.success = self._handler.getDefaultPincode(args.userId)
3463
    except UserContextException, ucx:
3464
      result.ucx = ucx
3465
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3466
    result.write(oprot)
3467
    oprot.writeMessageEnd()
3468
    oprot.trans.flush()
3469
 
1274 varun.gupt 3470
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3471
    args = saveUserCommunication_args()
3472
    args.read(iprot)
3473
    iprot.readMessageEnd()
3474
    result = saveUserCommunication_result()
3475
    try:
3476
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3477
    except UserCommunicationException, ucx:
3478
      result.ucx = ucx
3479
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
1590 varun.gupt 3484
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3485
    args = getUserCommunicationById_args()
3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
3488
    result = getUserCommunicationById_result()
3489
    try:
3490
      result.success = self._handler.getUserCommunicationById(args.id)
3491
    except UserCommunicationException, ucx:
3492
      result.ucx = ucx
3493
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3494
    result.write(oprot)
3495
    oprot.writeMessageEnd()
3496
    oprot.trans.flush()
3497
 
3498
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3499
    args = getUserCommunicationByUser_args()
3500
    args.read(iprot)
3501
    iprot.readMessageEnd()
3502
    result = getUserCommunicationByUser_result()
3503
    try:
3504
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3505
    except UserCommunicationException, ucx:
3506
      result.ucx = ucx
3507
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3508
    result.write(oprot)
3509
    oprot.writeMessageEnd()
3510
    oprot.trans.flush()
3511
 
3512
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3513
    args = getAllUserCommunications_args()
3514
    args.read(iprot)
3515
    iprot.readMessageEnd()
3516
    result = getAllUserCommunications_result()
3517
    try:
3518
      result.success = self._handler.getAllUserCommunications()
3519
    except UserCommunicationException, ucx:
3520
      result.ucx = ucx
3521
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3522
    result.write(oprot)
3523
    oprot.writeMessageEnd()
3524
    oprot.trans.flush()
3525
 
5407 amar.kumar 3526
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3527
    args = removeUserCommunication_args()
3528
    args.read(iprot)
3529
    iprot.readMessageEnd()
3530
    result = removeUserCommunication_result()
3531
    try:
3532
      self._handler.removeUserCommunication(args.id)
3533
    except UserCommunicationException, ucx:
3534
      result.ucx = ucx
3535
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3536
    result.write(oprot)
3537
    oprot.writeMessageEnd()
3538
    oprot.trans.flush()
3539
 
1845 vikas 3540
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3541
    args = createMasterAffiliate_args()
3542
    args.read(iprot)
3543
    iprot.readMessageEnd()
3544
    result = createMasterAffiliate_result()
3545
    try:
1859 vikas 3546
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3547
    except UserAffiliateException, utx:
1845 vikas 3548
      result.utx = utx
3549
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
1899 vikas 3554
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3555
    args = getAllMasterAffiliates_args()
3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
3558
    result = getAllMasterAffiliates_result()
3559
    try:
3560
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3561
    except UserAffiliateException, utx:
1899 vikas 3562
      result.utx = utx
3563
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3564
    result.write(oprot)
3565
    oprot.writeMessageEnd()
3566
    oprot.trans.flush()
3567
 
1845 vikas 3568
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3569
    args = getMasterAffiliateById_args()
3570
    args.read(iprot)
3571
    iprot.readMessageEnd()
3572
    result = getMasterAffiliateById_result()
3573
    try:
3574
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3575
    except UserAffiliateException, utx:
1845 vikas 3576
      result.utx = utx
3577
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3578
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
3581
 
3582
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3583
    args = getMasterAffiliateByName_args()
3584
    args.read(iprot)
3585
    iprot.readMessageEnd()
3586
    result = getMasterAffiliateByName_result()
3587
    try:
3588
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3589
    except UserAffiliateException, utx:
1845 vikas 3590
      result.utx = utx
3591
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3592
    result.write(oprot)
3593
    oprot.writeMessageEnd()
3594
    oprot.trans.flush()
3595
 
3596
  def process_createAffiliate(self, seqid, iprot, oprot):
3597
    args = createAffiliate_args()
3598
    args.read(iprot)
3599
    iprot.readMessageEnd()
3600
    result = createAffiliate_result()
3601
    try:
1859 vikas 3602
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3603
    except UserAffiliateException, utx:
1845 vikas 3604
      result.utx = utx
3605
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
3610
  def process_getAffiliateById(self, seqid, iprot, oprot):
3611
    args = getAffiliateById_args()
3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
3614
    result = getAffiliateById_result()
3615
    try:
3616
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3617
    except UserAffiliateException, utx:
1845 vikas 3618
      result.utx = utx
3619
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3620
    result.write(oprot)
3621
    oprot.writeMessageEnd()
3622
    oprot.trans.flush()
3623
 
3624
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3625
    args = getAffiliateByName_args()
3626
    args.read(iprot)
3627
    iprot.readMessageEnd()
3628
    result = getAffiliateByName_result()
3629
    try:
3630
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3631
    except UserAffiliateException, utx:
1845 vikas 3632
      result.utx = utx
3633
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
3638
  def process_getTrackerById(self, seqid, iprot, oprot):
3639
    args = getTrackerById_args()
3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
3642
    result = getTrackerById_result()
3643
    try:
1996 vikas 3644
      result.success = self._handler.getTrackerById(args.id)
3645
    except UserAffiliateException, utx:
1845 vikas 3646
      result.utx = utx
3647
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
1996 vikas 3652
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3653
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
1996 vikas 3656
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3657
    try:
1996 vikas 3658
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3659
    except UserAffiliateException, utx:
1845 vikas 3660
      result.utx = utx
1996 vikas 3661
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
3665
 
3666
  def process_addTrackLog(self, seqid, iprot, oprot):
3667
    args = addTrackLog_args()
3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
3670
    result = addTrackLog_result()
3671
    try:
1996 vikas 3672
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3673
    except UserAffiliateException, utx:
1845 vikas 3674
      result.utx = utx
3675
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
3679
 
3680
  def process_getTrackLogById(self, seqid, iprot, oprot):
3681
    args = getTrackLogById_args()
3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
3684
    result = getTrackLogById_result()
3685
    try:
3686
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3687
    except UserAffiliateException, utx:
1845 vikas 3688
      result.utx = utx
3689
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
1996 vikas 3694
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3695
    args = getTrackLogsByAffiliate_args()
1845 vikas 3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
1996 vikas 3698
    result = getTrackLogsByAffiliate_result()
1845 vikas 3699
    try:
3293 vikas 3700
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3701
    except UserAffiliateException, utx:
1845 vikas 3702
      result.utx = utx
1996 vikas 3703
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
3707
 
3708
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3709
    args = getTrackLogsByUser_args()
3710
    args.read(iprot)
3711
    iprot.readMessageEnd()
3712
    result = getTrackLogsByUser_result()
3713
    try:
3714
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3715
    except UserAffiliateException, utx:
1845 vikas 3716
      result.utx = utx
3717
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
3721
 
3722
  def process_getTrackLogs(self, seqid, iprot, oprot):
3723
    args = getTrackLogs_args()
3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
3726
    result = getTrackLogs_result()
3727
    try:
1996 vikas 3728
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3729
    except UserAffiliateException, utx:
1845 vikas 3730
      result.utx = utx
3731
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3732
    result.write(oprot)
3733
    oprot.writeMessageEnd()
3734
    oprot.trans.flush()
3735
 
559 chandransh 3736
  def process_getCurrentCart(self, seqid, iprot, oprot):
3737
    args = getCurrentCart_args()
94 ashish 3738
    args.read(iprot)
3739
    iprot.readMessageEnd()
559 chandransh 3740
    result = getCurrentCart_result()
94 ashish 3741
    try:
559 chandransh 3742
      result.success = self._handler.getCurrentCart(args.userId)
3743
    except ShoppingCartException, scx:
3744
      result.scx = scx
3745
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
3749
 
559 chandransh 3750
  def process_getCart(self, seqid, iprot, oprot):
3751
    args = getCart_args()
94 ashish 3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
559 chandransh 3754
    result = getCart_result()
94 ashish 3755
    try:
559 chandransh 3756
      result.success = self._handler.getCart(args.cartId)
3757
    except ShoppingCartException, scx:
3758
      result.scx = scx
3759
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
559 chandransh 3764
  def process_getCartsByTime(self, seqid, iprot, oprot):
3765
    args = getCartsByTime_args()
94 ashish 3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
559 chandransh 3768
    result = getCartsByTime_result()
94 ashish 3769
    try:
559 chandransh 3770
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3771
    except ShoppingCartException, scx:
3772
      result.scx = scx
3773
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3774
    result.write(oprot)
3775
    oprot.writeMessageEnd()
3776
    oprot.trans.flush()
3777
 
559 chandransh 3778
  def process_addItemToCart(self, seqid, iprot, oprot):
3779
    args = addItemToCart_args()
130 ashish 3780
    args.read(iprot)
3781
    iprot.readMessageEnd()
559 chandransh 3782
    result = addItemToCart_result()
130 ashish 3783
    try:
3557 rajveer 3784
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3785
    except ShoppingCartException, scx:
3786
      result.scx = scx
3787
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3788
    result.write(oprot)
3789
    oprot.writeMessageEnd()
3790
    oprot.trans.flush()
3791
 
559 chandransh 3792
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3793
    args = deleteItemFromCart_args()
3794
    args.read(iprot)
3795
    iprot.readMessageEnd()
3796
    result = deleteItemFromCart_result()
3797
    try:
3798
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3799
    except ShoppingCartException, scx:
3800
      result.scx = scx
3801
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3802
    result.write(oprot)
3803
    oprot.writeMessageEnd()
3804
    oprot.trans.flush()
130 ashish 3805
 
559 chandransh 3806
  def process_addAddressToCart(self, seqid, iprot, oprot):
3807
    args = addAddressToCart_args()
3808
    args.read(iprot)
3809
    iprot.readMessageEnd()
3810
    result = addAddressToCart_result()
575 chandransh 3811
    try:
3812
      self._handler.addAddressToCart(args.cartId, args.addressId)
3813
    except ShoppingCartException, scx:
3814
      result.scx = scx
559 chandransh 3815
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3816
    result.write(oprot)
3817
    oprot.writeMessageEnd()
3818
    oprot.trans.flush()
3819
 
5553 rajveer 3820
  def process_addStoreToCart(self, seqid, iprot, oprot):
3821
    args = addStoreToCart_args()
3822
    args.read(iprot)
3823
    iprot.readMessageEnd()
3824
    result = addStoreToCart_result()
3825
    try:
3826
      self._handler.addStoreToCart(args.cartId, args.storeId)
3827
    except ShoppingCartException, scx:
3828
      result.scx = scx
3829
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3830
    result.write(oprot)
3831
    oprot.writeMessageEnd()
3832
    oprot.trans.flush()
3833
 
1976 varun.gupt 3834
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3835
    args = applyCouponToCart_args()
3836
    args.read(iprot)
3837
    iprot.readMessageEnd()
3838
    result = applyCouponToCart_result()
3839
    try:
6922 anupam.sin 3840
      self._handler.applyCouponToCart(args.cart, args.couponCode)
1976 varun.gupt 3841
    except ShoppingCartException, scx:
3842
      result.scx = scx
3843
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3844
    result.write(oprot)
3845
    oprot.writeMessageEnd()
3846
    oprot.trans.flush()
3847
 
3848
  def process_removeCoupon(self, seqid, iprot, oprot):
3849
    args = removeCoupon_args()
3850
    args.read(iprot)
3851
    iprot.readMessageEnd()
3852
    result = removeCoupon_result()
3853
    try:
3854
      self._handler.removeCoupon(args.cartId)
3855
    except ShoppingCartException, scx:
3856
      result.scx = scx
3857
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3858
    result.write(oprot)
3859
    oprot.writeMessageEnd()
3860
    oprot.trans.flush()
3861
 
3554 varun.gupt 3862
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3863
    args = deleteDiscountsFromCart_args()
3864
    args.read(iprot)
3865
    iprot.readMessageEnd()
3866
    result = deleteDiscountsFromCart_result()
3867
    try:
3868
      self._handler.deleteDiscountsFromCart(args.cartId)
3869
    except ShoppingCartException, scx:
3870
      result.scx = scx
3871
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3872
    result.write(oprot)
3873
    oprot.writeMessageEnd()
3874
    oprot.trans.flush()
3875
 
3876
  def process_saveDiscounts(self, seqid, iprot, oprot):
3877
    args = saveDiscounts_args()
3878
    args.read(iprot)
3879
    iprot.readMessageEnd()
3880
    result = saveDiscounts_result()
3881
    try:
3882
      self._handler.saveDiscounts(args.discounts)
3883
    except ShoppingCartException, scx:
3884
      result.scx = scx
3885
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3886
    result.write(oprot)
3887
    oprot.writeMessageEnd()
3888
    oprot.trans.flush()
3889
 
690 chandransh 3890
  def process_createOrders(self, seqid, iprot, oprot):
3891
    args = createOrders_args()
559 chandransh 3892
    args.read(iprot)
3893
    iprot.readMessageEnd()
690 chandransh 3894
    result = createOrders_result()
559 chandransh 3895
    try:
6389 rajveer 3896
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId)
559 chandransh 3897
    except ShoppingCartException, scx:
3898
      result.scx = scx
690 chandransh 3899
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3900
    result.write(oprot)
3901
    oprot.writeMessageEnd()
3902
    oprot.trans.flush()
3903
 
3904
  def process_validateCart(self, seqid, iprot, oprot):
3905
    args = validateCart_args()
3906
    args.read(iprot)
3907
    iprot.readMessageEnd()
3908
    result = validateCart_result()
575 chandransh 3909
    try:
3557 rajveer 3910
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3911
    except ShoppingCartException, scex:
3912
      result.scex = scex
559 chandransh 3913
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3914
    result.write(oprot)
3915
    oprot.writeMessageEnd()
3916
    oprot.trans.flush()
3917
 
690 chandransh 3918
  def process_mergeCart(self, seqid, iprot, oprot):
3919
    args = mergeCart_args()
575 chandransh 3920
    args.read(iprot)
3921
    iprot.readMessageEnd()
690 chandransh 3922
    result = mergeCart_result()
3923
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3924
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3925
    result.write(oprot)
3926
    oprot.writeMessageEnd()
3927
    oprot.trans.flush()
3928
 
3929
  def process_checkOut(self, seqid, iprot, oprot):
3930
    args = checkOut_args()
3931
    args.read(iprot)
3932
    iprot.readMessageEnd()
3933
    result = checkOut_result()
575 chandransh 3934
    try:
690 chandransh 3935
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3936
    except ShoppingCartException, scex:
3937
      result.scex = scex
690 chandransh 3938
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3939
    result.write(oprot)
3940
    oprot.writeMessageEnd()
3941
    oprot.trans.flush()
3942
 
690 chandransh 3943
  def process_resetCart(self, seqid, iprot, oprot):
3944
    args = resetCart_args()
559 chandransh 3945
    args.read(iprot)
3946
    iprot.readMessageEnd()
690 chandransh 3947
    result = resetCart_result()
3948
    try:
3949
      result.success = self._handler.resetCart(args.cartId, args.items)
3950
    except ShoppingCartException, scex:
3951
      result.scex = scex
3952
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3953
    result.write(oprot)
3954
    oprot.writeMessageEnd()
3955
    oprot.trans.flush()
3956
 
2981 rajveer 3957
  def process_getUserCount(self, seqid, iprot, oprot):
3958
    args = getUserCount_args()
559 chandransh 3959
    args.read(iprot)
3960
    iprot.readMessageEnd()
2981 rajveer 3961
    result = getUserCount_result()
3962
    result.success = self._handler.getUserCount(args.userType)
3963
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3964
    result.write(oprot)
3965
    oprot.writeMessageEnd()
3966
    oprot.trans.flush()
3967
 
2981 rajveer 3968
  def process_getAllUsers(self, seqid, iprot, oprot):
3969
    args = getAllUsers_args()
559 chandransh 3970
    args.read(iprot)
3971
    iprot.readMessageEnd()
2981 rajveer 3972
    result = getAllUsers_result()
3973
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3974
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3975
    result.write(oprot)
3976
    oprot.writeMessageEnd()
3977
    oprot.trans.flush()
3978
 
2981 rajveer 3979
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3980
    args = getMyResearchItems_args()
559 chandransh 3981
    args.read(iprot)
3982
    iprot.readMessageEnd()
2981 rajveer 3983
    result = getMyResearchItems_result()
559 chandransh 3984
    try:
2981 rajveer 3985
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3986
    except WidgetException, scx:
3987
      result.scx = scx
2981 rajveer 3988
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3989
    result.write(oprot)
3990
    oprot.writeMessageEnd()
3991
    oprot.trans.flush()
3992
 
2981 rajveer 3993
  def process_updateMyResearch(self, seqid, iprot, oprot):
3994
    args = updateMyResearch_args()
772 rajveer 3995
    args.read(iprot)
3996
    iprot.readMessageEnd()
2981 rajveer 3997
    result = updateMyResearch_result()
3998
    try:
3999
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
4000
    except WidgetException, scx:
4001
      result.scx = scx
4002
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 4003
    result.write(oprot)
4004
    oprot.writeMessageEnd()
4005
    oprot.trans.flush()
559 chandransh 4006
 
2981 rajveer 4007
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
4008
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 4009
    args.read(iprot)
4010
    iprot.readMessageEnd()
2981 rajveer 4011
    result = deleteItemFromMyResearch_result()
4012
    try:
4013
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
4014
    except WidgetException, scx:
4015
      result.scx = scx
4016
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 4017
    result.write(oprot)
4018
    oprot.writeMessageEnd()
4019
    oprot.trans.flush()
772 rajveer 4020
 
2981 rajveer 4021
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
4022
    args = getBrowseHistoryItems_args()
1673 ankur.sing 4023
    args.read(iprot)
4024
    iprot.readMessageEnd()
2981 rajveer 4025
    result = getBrowseHistoryItems_result()
4026
    try:
4027
      result.success = self._handler.getBrowseHistoryItems(args.userId)
4028
    except WidgetException, scx:
4029
      result.scx = scx
4030
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 4031
    result.write(oprot)
4032
    oprot.writeMessageEnd()
4033
    oprot.trans.flush()
1596 ankur.sing 4034
 
2981 rajveer 4035
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4036
    args = updateBrowseHistory_args()
2642 varun.gupt 4037
    args.read(iprot)
4038
    iprot.readMessageEnd()
2981 rajveer 4039
    result = updateBrowseHistory_result()
4040
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4041
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4042
    result.write(oprot)
4043
    oprot.writeMessageEnd()
4044
    oprot.trans.flush()
1673 ankur.sing 4045
 
3385 varun.gupt 4046
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4047
    args = getCartsWithCouponCount_args()
4048
    args.read(iprot)
4049
    iprot.readMessageEnd()
4050
    result = getCartsWithCouponCount_result()
4051
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4052
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4053
    result.write(oprot)
4054
    oprot.writeMessageEnd()
4055
    oprot.trans.flush()
2642 varun.gupt 4056
 
3499 mandeep.dh 4057
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4058
    args = increaseTrustLevel_args()
4059
    args.read(iprot)
4060
    iprot.readMessageEnd()
4061
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4062
    return
3385 varun.gupt 4063
 
5407 amar.kumar 4064
  def process_getTrustLevel(self, seqid, iprot, oprot):
4065
    args = getTrustLevel_args()
4066
    args.read(iprot)
4067
    iprot.readMessageEnd()
4068
    result = getTrustLevel_result()
4069
    result.success = self._handler.getTrustLevel(args.userId)
4070
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
4071
    result.write(oprot)
4072
    oprot.writeMessageEnd()
4073
    oprot.trans.flush()
4074
 
4668 varun.gupt 4075
  def process_showCODOption(self, seqid, iprot, oprot):
4076
    args = showCODOption_args()
4077
    args.read(iprot)
4078
    iprot.readMessageEnd()
4079
    result = showCODOption_result()
4080
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
4081
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
4082
    result.write(oprot)
4083
    oprot.writeMessageEnd()
4084
    oprot.trans.flush()
3499 mandeep.dh 4085
 
5623 anupam.sin 4086
  def process_getUserEmails(self, seqid, iprot, oprot):
4087
    args = getUserEmails_args()
4088
    args.read(iprot)
4089
    iprot.readMessageEnd()
4090
    result = getUserEmails_result()
4091
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
4092
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
4093
    result.write(oprot)
4094
    oprot.writeMessageEnd()
4095
    oprot.trans.flush()
4668 varun.gupt 4096
 
6903 anupam.sin 4097
  def process_insureItem(self, seqid, iprot, oprot):
4098
    args = insureItem_args()
4099
    args.read(iprot)
4100
    iprot.readMessageEnd()
4101
    result = insureItem_result()
4102
    result.success = self._handler.insureItem(args.itemId, args.cartId, args.toInsure)
4103
    oprot.writeMessageBegin("insureItem", TMessageType.REPLY, seqid)
4104
    result.write(oprot)
4105
    oprot.writeMessageEnd()
4106
    oprot.trans.flush()
4107
 
4108
  def process_cancelInsurance(self, seqid, iprot, oprot):
4109
    args = cancelInsurance_args()
4110
    args.read(iprot)
4111
    iprot.readMessageEnd()
4112
    result = cancelInsurance_result()
4113
    result.success = self._handler.cancelInsurance(args.cartId)
4114
    oprot.writeMessageBegin("cancelInsurance", TMessageType.REPLY, seqid)
4115
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
4118
 
4119
  def process_storeInsuranceSpecificDetails(self, seqid, iprot, oprot):
4120
    args = storeInsuranceSpecificDetails_args()
4121
    args.read(iprot)
4122
    iprot.readMessageEnd()
4123
    result = storeInsuranceSpecificDetails_result()
4124
    result.success = self._handler.storeInsuranceSpecificDetails(args.addressId, args.dob, args.guardianName)
4125
    oprot.writeMessageBegin("storeInsuranceSpecificDetails", TMessageType.REPLY, seqid)
4126
    result.write(oprot)
4127
    oprot.writeMessageEnd()
4128
    oprot.trans.flush()
4129
 
4130
  def process_isInsuranceDetailPresent(self, seqid, iprot, oprot):
4131
    args = isInsuranceDetailPresent_args()
4132
    args.read(iprot)
4133
    iprot.readMessageEnd()
4134
    result = isInsuranceDetailPresent_result()
4135
    result.success = self._handler.isInsuranceDetailPresent(args.addressId)
4136
    oprot.writeMessageBegin("isInsuranceDetailPresent", TMessageType.REPLY, seqid)
4137
    result.write(oprot)
4138
    oprot.writeMessageEnd()
4139
    oprot.trans.flush()
4140
 
6821 amar.kumar 4141
  def process_isProductAddedToCart(self, seqid, iprot, oprot):
4142
    args = isProductAddedToCart_args()
4143
    args.read(iprot)
4144
    iprot.readMessageEnd()
4145
    result = isProductAddedToCart_result()
4146
    result.success = self._handler.isProductAddedToCart(args.itemId, args.startDate, args.endDate)
4147
    oprot.writeMessageBegin("isProductAddedToCart", TMessageType.REPLY, seqid)
4148
    result.write(oprot)
4149
    oprot.writeMessageEnd()
4150
    oprot.trans.flush()
5623 anupam.sin 4151
 
7007 amar.kumar 4152
  def process_markUserAsFBUser(self, seqid, iprot, oprot):
4153
    args = markUserAsFBUser_args()
4154
    args.read(iprot)
4155
    iprot.readMessageEnd()
4156
    result = markUserAsFBUser_result()
4157
    self._handler.markUserAsFBUser(args.id)
4158
    oprot.writeMessageBegin("markUserAsFBUser", TMessageType.REPLY, seqid)
4159
    result.write(oprot)
4160
    oprot.writeMessageEnd()
4161
    oprot.trans.flush()
6821 amar.kumar 4162
 
7007 amar.kumar 4163
 
94 ashish 4164
# HELPER FUNCTIONS AND STRUCTURES
4165
 
559 chandransh 4166
class createAnonymousUser_args:
94 ashish 4167
  """
4168
  Attributes:
559 chandransh 4169
   - jsessionId
94 ashish 4170
  """
4171
 
4172
  thrift_spec = (
4173
    None, # 0
559 chandransh 4174
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4175
  )
4176
 
559 chandransh 4177
  def __init__(self, jsessionId=None,):
4178
    self.jsessionId = jsessionId
94 ashish 4179
 
4180
  def read(self, iprot):
4181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4183
      return
4184
    iprot.readStructBegin()
4185
    while True:
4186
      (fname, ftype, fid) = iprot.readFieldBegin()
4187
      if ftype == TType.STOP:
4188
        break
4189
      if fid == 1:
559 chandransh 4190
        if ftype == TType.STRING:
4191
          self.jsessionId = iprot.readString();
94 ashish 4192
        else:
4193
          iprot.skip(ftype)
4194
      else:
4195
        iprot.skip(ftype)
4196
      iprot.readFieldEnd()
4197
    iprot.readStructEnd()
4198
 
4199
  def write(self, oprot):
4200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4202
      return
559 chandransh 4203
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4204
    if self.jsessionId is not None:
559 chandransh 4205
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4206
      oprot.writeString(self.jsessionId)
94 ashish 4207
      oprot.writeFieldEnd()
4208
    oprot.writeFieldStop()
4209
    oprot.writeStructEnd()
4210
 
3431 rajveer 4211
  def validate(self):
4212
    return
4213
 
4214
 
94 ashish 4215
  def __repr__(self):
4216
    L = ['%s=%r' % (key, value)
4217
      for key, value in self.__dict__.iteritems()]
4218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4219
 
4220
  def __eq__(self, other):
4221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4222
 
4223
  def __ne__(self, other):
4224
    return not (self == other)
4225
 
559 chandransh 4226
class createAnonymousUser_result:
94 ashish 4227
  """
4228
  Attributes:
4229
   - success
559 chandransh 4230
   - ucex
94 ashish 4231
  """
4232
 
4233
  thrift_spec = (
559 chandransh 4234
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4235
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4236
  )
4237
 
559 chandransh 4238
  def __init__(self, success=None, ucex=None,):
94 ashish 4239
    self.success = success
559 chandransh 4240
    self.ucex = ucex
94 ashish 4241
 
4242
  def read(self, iprot):
4243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4245
      return
4246
    iprot.readStructBegin()
4247
    while True:
4248
      (fname, ftype, fid) = iprot.readFieldBegin()
4249
      if ftype == TType.STOP:
4250
        break
4251
      if fid == 0:
4252
        if ftype == TType.STRUCT:
559 chandransh 4253
          self.success = User()
94 ashish 4254
          self.success.read(iprot)
4255
        else:
4256
          iprot.skip(ftype)
4257
      elif fid == 1:
4258
        if ftype == TType.STRUCT:
559 chandransh 4259
          self.ucex = UserContextException()
4260
          self.ucex.read(iprot)
94 ashish 4261
        else:
4262
          iprot.skip(ftype)
4263
      else:
4264
        iprot.skip(ftype)
4265
      iprot.readFieldEnd()
4266
    iprot.readStructEnd()
4267
 
4268
  def write(self, oprot):
4269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4271
      return
559 chandransh 4272
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4273
    if self.success is not None:
94 ashish 4274
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4275
      self.success.write(oprot)
4276
      oprot.writeFieldEnd()
3431 rajveer 4277
    if self.ucex is not None:
559 chandransh 4278
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4279
      self.ucex.write(oprot)
94 ashish 4280
      oprot.writeFieldEnd()
4281
    oprot.writeFieldStop()
4282
    oprot.writeStructEnd()
4283
 
3431 rajveer 4284
  def validate(self):
4285
    return
4286
 
4287
 
94 ashish 4288
  def __repr__(self):
4289
    L = ['%s=%r' % (key, value)
4290
      for key, value in self.__dict__.iteritems()]
4291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4292
 
4293
  def __eq__(self, other):
4294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4295
 
4296
  def __ne__(self, other):
4297
    return not (self == other)
4298
 
559 chandransh 4299
class getUserById_args:
94 ashish 4300
  """
4301
  Attributes:
4302
   - userId
4303
  """
4304
 
4305
  thrift_spec = (
4306
    None, # 0
4307
    (1, TType.I64, 'userId', None, None, ), # 1
4308
  )
4309
 
559 chandransh 4310
  def __init__(self, userId=None,):
94 ashish 4311
    self.userId = userId
4312
 
4313
  def read(self, iprot):
4314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4316
      return
4317
    iprot.readStructBegin()
4318
    while True:
4319
      (fname, ftype, fid) = iprot.readFieldBegin()
4320
      if ftype == TType.STOP:
4321
        break
4322
      if fid == 1:
4323
        if ftype == TType.I64:
4324
          self.userId = iprot.readI64();
4325
        else:
4326
          iprot.skip(ftype)
4327
      else:
4328
        iprot.skip(ftype)
4329
      iprot.readFieldEnd()
4330
    iprot.readStructEnd()
4331
 
4332
  def write(self, oprot):
4333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4335
      return
559 chandransh 4336
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4337
    if self.userId is not None:
94 ashish 4338
      oprot.writeFieldBegin('userId', TType.I64, 1)
4339
      oprot.writeI64(self.userId)
4340
      oprot.writeFieldEnd()
4341
    oprot.writeFieldStop()
4342
    oprot.writeStructEnd()
4343
 
3431 rajveer 4344
  def validate(self):
4345
    return
4346
 
4347
 
94 ashish 4348
  def __repr__(self):
4349
    L = ['%s=%r' % (key, value)
4350
      for key, value in self.__dict__.iteritems()]
4351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4352
 
4353
  def __eq__(self, other):
4354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4355
 
4356
  def __ne__(self, other):
4357
    return not (self == other)
4358
 
559 chandransh 4359
class getUserById_result:
94 ashish 4360
  """
4361
  Attributes:
4362
   - success
559 chandransh 4363
   - ucex
94 ashish 4364
  """
4365
 
4366
  thrift_spec = (
559 chandransh 4367
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4368
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4369
  )
4370
 
559 chandransh 4371
  def __init__(self, success=None, ucex=None,):
94 ashish 4372
    self.success = success
559 chandransh 4373
    self.ucex = ucex
94 ashish 4374
 
4375
  def read(self, iprot):
4376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4378
      return
4379
    iprot.readStructBegin()
4380
    while True:
4381
      (fname, ftype, fid) = iprot.readFieldBegin()
4382
      if ftype == TType.STOP:
4383
        break
4384
      if fid == 0:
4385
        if ftype == TType.STRUCT:
559 chandransh 4386
          self.success = User()
94 ashish 4387
          self.success.read(iprot)
4388
        else:
4389
          iprot.skip(ftype)
4390
      elif fid == 1:
4391
        if ftype == TType.STRUCT:
559 chandransh 4392
          self.ucex = UserContextException()
4393
          self.ucex.read(iprot)
94 ashish 4394
        else:
4395
          iprot.skip(ftype)
4396
      else:
4397
        iprot.skip(ftype)
4398
      iprot.readFieldEnd()
4399
    iprot.readStructEnd()
4400
 
4401
  def write(self, oprot):
4402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4404
      return
559 chandransh 4405
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4406
    if self.success is not None:
94 ashish 4407
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4408
      self.success.write(oprot)
4409
      oprot.writeFieldEnd()
3431 rajveer 4410
    if self.ucex is not None:
559 chandransh 4411
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4412
      self.ucex.write(oprot)
94 ashish 4413
      oprot.writeFieldEnd()
4414
    oprot.writeFieldStop()
4415
    oprot.writeStructEnd()
4416
 
3431 rajveer 4417
  def validate(self):
4418
    return
4419
 
4420
 
94 ashish 4421
  def __repr__(self):
4422
    L = ['%s=%r' % (key, value)
4423
      for key, value in self.__dict__.iteritems()]
4424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4425
 
4426
  def __eq__(self, other):
4427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4428
 
4429
  def __ne__(self, other):
4430
    return not (self == other)
4431
 
5326 rajveer 4432
class getUserByCartId_args:
1491 vikas 4433
  """
4434
  Attributes:
5326 rajveer 4435
   - cartId
1491 vikas 4436
  """
4437
 
4438
  thrift_spec = (
4439
    None, # 0
5326 rajveer 4440
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4441
  )
4442
 
5326 rajveer 4443
  def __init__(self, cartId=None,):
4444
    self.cartId = cartId
1491 vikas 4445
 
4446
  def read(self, iprot):
4447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4449
      return
4450
    iprot.readStructBegin()
4451
    while True:
4452
      (fname, ftype, fid) = iprot.readFieldBegin()
4453
      if ftype == TType.STOP:
4454
        break
4455
      if fid == 1:
5326 rajveer 4456
        if ftype == TType.I64:
4457
          self.cartId = iprot.readI64();
1491 vikas 4458
        else:
4459
          iprot.skip(ftype)
4460
      else:
4461
        iprot.skip(ftype)
4462
      iprot.readFieldEnd()
4463
    iprot.readStructEnd()
4464
 
4465
  def write(self, oprot):
4466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4468
      return
5326 rajveer 4469
    oprot.writeStructBegin('getUserByCartId_args')
4470
    if self.cartId is not None:
4471
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4472
      oprot.writeI64(self.cartId)
1491 vikas 4473
      oprot.writeFieldEnd()
4474
    oprot.writeFieldStop()
4475
    oprot.writeStructEnd()
4476
 
3431 rajveer 4477
  def validate(self):
4478
    return
4479
 
4480
 
1491 vikas 4481
  def __repr__(self):
4482
    L = ['%s=%r' % (key, value)
4483
      for key, value in self.__dict__.iteritems()]
4484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4485
 
4486
  def __eq__(self, other):
4487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4488
 
4489
  def __ne__(self, other):
4490
    return not (self == other)
4491
 
5326 rajveer 4492
class getUserByCartId_result:
1491 vikas 4493
  """
4494
  Attributes:
4495
   - success
4496
   - ucex
4497
  """
4498
 
4499
  thrift_spec = (
4500
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4501
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4502
  )
4503
 
4504
  def __init__(self, success=None, ucex=None,):
4505
    self.success = success
4506
    self.ucex = ucex
4507
 
4508
  def read(self, iprot):
4509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4511
      return
4512
    iprot.readStructBegin()
4513
    while True:
4514
      (fname, ftype, fid) = iprot.readFieldBegin()
4515
      if ftype == TType.STOP:
4516
        break
4517
      if fid == 0:
4518
        if ftype == TType.STRUCT:
4519
          self.success = User()
4520
          self.success.read(iprot)
4521
        else:
4522
          iprot.skip(ftype)
4523
      elif fid == 1:
4524
        if ftype == TType.STRUCT:
4525
          self.ucex = UserContextException()
4526
          self.ucex.read(iprot)
4527
        else:
4528
          iprot.skip(ftype)
4529
      else:
4530
        iprot.skip(ftype)
4531
      iprot.readFieldEnd()
4532
    iprot.readStructEnd()
4533
 
4534
  def write(self, oprot):
4535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4537
      return
5326 rajveer 4538
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4539
    if self.success is not None:
1491 vikas 4540
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4541
      self.success.write(oprot)
4542
      oprot.writeFieldEnd()
3431 rajveer 4543
    if self.ucex is not None:
1491 vikas 4544
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4545
      self.ucex.write(oprot)
4546
      oprot.writeFieldEnd()
4547
    oprot.writeFieldStop()
4548
    oprot.writeStructEnd()
4549
 
3431 rajveer 4550
  def validate(self):
4551
    return
4552
 
4553
 
1491 vikas 4554
  def __repr__(self):
4555
    L = ['%s=%r' % (key, value)
4556
      for key, value in self.__dict__.iteritems()]
4557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4558
 
4559
  def __eq__(self, other):
4560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4561
 
4562
  def __ne__(self, other):
4563
    return not (self == other)
4564
 
5326 rajveer 4565
class getUserByEmail_args:
3032 mandeep.dh 4566
  """
4567
  Attributes:
5326 rajveer 4568
   - email
3032 mandeep.dh 4569
  """
4570
 
4571
  thrift_spec = (
4572
    None, # 0
5326 rajveer 4573
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4574
  )
4575
 
5326 rajveer 4576
  def __init__(self, email=None,):
4577
    self.email = email
3032 mandeep.dh 4578
 
4579
  def read(self, iprot):
4580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4582
      return
4583
    iprot.readStructBegin()
4584
    while True:
4585
      (fname, ftype, fid) = iprot.readFieldBegin()
4586
      if ftype == TType.STOP:
4587
        break
4588
      if fid == 1:
5326 rajveer 4589
        if ftype == TType.STRING:
4590
          self.email = iprot.readString();
3032 mandeep.dh 4591
        else:
4592
          iprot.skip(ftype)
4593
      else:
4594
        iprot.skip(ftype)
4595
      iprot.readFieldEnd()
4596
    iprot.readStructEnd()
4597
 
4598
  def write(self, oprot):
4599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4601
      return
5326 rajveer 4602
    oprot.writeStructBegin('getUserByEmail_args')
4603
    if self.email is not None:
4604
      oprot.writeFieldBegin('email', TType.STRING, 1)
4605
      oprot.writeString(self.email)
3032 mandeep.dh 4606
      oprot.writeFieldEnd()
4607
    oprot.writeFieldStop()
4608
    oprot.writeStructEnd()
4609
 
3431 rajveer 4610
  def validate(self):
4611
    return
4612
 
4613
 
3032 mandeep.dh 4614
  def __repr__(self):
4615
    L = ['%s=%r' % (key, value)
4616
      for key, value in self.__dict__.iteritems()]
4617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4618
 
4619
  def __eq__(self, other):
4620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4621
 
4622
  def __ne__(self, other):
4623
    return not (self == other)
4624
 
5326 rajveer 4625
class getUserByEmail_result:
3032 mandeep.dh 4626
  """
4627
  Attributes:
4628
   - success
4629
   - ucex
4630
  """
4631
 
4632
  thrift_spec = (
4633
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4634
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4635
  )
4636
 
4637
  def __init__(self, success=None, ucex=None,):
4638
    self.success = success
4639
    self.ucex = ucex
4640
 
4641
  def read(self, iprot):
4642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4644
      return
4645
    iprot.readStructBegin()
4646
    while True:
4647
      (fname, ftype, fid) = iprot.readFieldBegin()
4648
      if ftype == TType.STOP:
4649
        break
4650
      if fid == 0:
4651
        if ftype == TType.STRUCT:
4652
          self.success = User()
4653
          self.success.read(iprot)
4654
        else:
4655
          iprot.skip(ftype)
4656
      elif fid == 1:
4657
        if ftype == TType.STRUCT:
4658
          self.ucex = UserContextException()
4659
          self.ucex.read(iprot)
4660
        else:
4661
          iprot.skip(ftype)
4662
      else:
4663
        iprot.skip(ftype)
4664
      iprot.readFieldEnd()
4665
    iprot.readStructEnd()
4666
 
4667
  def write(self, oprot):
4668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4670
      return
5326 rajveer 4671
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4672
    if self.success is not None:
3032 mandeep.dh 4673
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4674
      self.success.write(oprot)
4675
      oprot.writeFieldEnd()
3431 rajveer 4676
    if self.ucex is not None:
3032 mandeep.dh 4677
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4678
      self.ucex.write(oprot)
4679
      oprot.writeFieldEnd()
4680
    oprot.writeFieldStop()
4681
    oprot.writeStructEnd()
4682
 
3431 rajveer 4683
  def validate(self):
4684
    return
4685
 
4686
 
3032 mandeep.dh 4687
  def __repr__(self):
4688
    L = ['%s=%r' % (key, value)
4689
      for key, value in self.__dict__.iteritems()]
4690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4691
 
4692
  def __eq__(self, other):
4693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4694
 
4695
  def __ne__(self, other):
4696
    return not (self == other)
4697
 
5326 rajveer 4698
class getUserByMobileNumber_args:
94 ashish 4699
  """
4700
  Attributes:
5326 rajveer 4701
   - mobileNumber
94 ashish 4702
  """
4703
 
4704
  thrift_spec = (
4705
    None, # 0
5326 rajveer 4706
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4707
  )
4708
 
5326 rajveer 4709
  def __init__(self, mobileNumber=None,):
4710
    self.mobileNumber = mobileNumber
94 ashish 4711
 
4712
  def read(self, iprot):
4713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4715
      return
4716
    iprot.readStructBegin()
4717
    while True:
4718
      (fname, ftype, fid) = iprot.readFieldBegin()
4719
      if ftype == TType.STOP:
4720
        break
4721
      if fid == 1:
5326 rajveer 4722
        if ftype == TType.I64:
4723
          self.mobileNumber = iprot.readI64();
94 ashish 4724
        else:
4725
          iprot.skip(ftype)
4726
      else:
4727
        iprot.skip(ftype)
4728
      iprot.readFieldEnd()
4729
    iprot.readStructEnd()
4730
 
4731
  def write(self, oprot):
4732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4734
      return
5326 rajveer 4735
    oprot.writeStructBegin('getUserByMobileNumber_args')
4736
    if self.mobileNumber is not None:
4737
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4738
      oprot.writeI64(self.mobileNumber)
94 ashish 4739
      oprot.writeFieldEnd()
4740
    oprot.writeFieldStop()
4741
    oprot.writeStructEnd()
4742
 
3431 rajveer 4743
  def validate(self):
4744
    return
4745
 
4746
 
94 ashish 4747
  def __repr__(self):
4748
    L = ['%s=%r' % (key, value)
4749
      for key, value in self.__dict__.iteritems()]
4750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4751
 
4752
  def __eq__(self, other):
4753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4754
 
4755
  def __ne__(self, other):
4756
    return not (self == other)
4757
 
5326 rajveer 4758
class getUserByMobileNumber_result:
94 ashish 4759
  """
4760
  Attributes:
4761
   - success
559 chandransh 4762
   - ucex
94 ashish 4763
  """
4764
 
4765
  thrift_spec = (
559 chandransh 4766
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4767
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4768
  )
4769
 
559 chandransh 4770
  def __init__(self, success=None, ucex=None,):
94 ashish 4771
    self.success = success
559 chandransh 4772
    self.ucex = ucex
94 ashish 4773
 
4774
  def read(self, iprot):
4775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4777
      return
4778
    iprot.readStructBegin()
4779
    while True:
4780
      (fname, ftype, fid) = iprot.readFieldBegin()
4781
      if ftype == TType.STOP:
4782
        break
4783
      if fid == 0:
4784
        if ftype == TType.STRUCT:
559 chandransh 4785
          self.success = User()
94 ashish 4786
          self.success.read(iprot)
4787
        else:
4788
          iprot.skip(ftype)
4789
      elif fid == 1:
4790
        if ftype == TType.STRUCT:
559 chandransh 4791
          self.ucex = UserContextException()
4792
          self.ucex.read(iprot)
94 ashish 4793
        else:
4794
          iprot.skip(ftype)
4795
      else:
4796
        iprot.skip(ftype)
4797
      iprot.readFieldEnd()
4798
    iprot.readStructEnd()
4799
 
4800
  def write(self, oprot):
4801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4803
      return
5326 rajveer 4804
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4805
    if self.success is not None:
94 ashish 4806
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4807
      self.success.write(oprot)
4808
      oprot.writeFieldEnd()
3431 rajveer 4809
    if self.ucex is not None:
559 chandransh 4810
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4811
      self.ucex.write(oprot)
94 ashish 4812
      oprot.writeFieldEnd()
4813
    oprot.writeFieldStop()
4814
    oprot.writeStructEnd()
4815
 
3431 rajveer 4816
  def validate(self):
4817
    return
4818
 
4819
 
94 ashish 4820
  def __repr__(self):
4821
    L = ['%s=%r' % (key, value)
4822
      for key, value in self.__dict__.iteritems()]
4823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4824
 
4825
  def __eq__(self, other):
4826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4827
 
4828
  def __ne__(self, other):
4829
    return not (self == other)
4830
 
5326 rajveer 4831
class createUser_args:
94 ashish 4832
  """
4833
  Attributes:
559 chandransh 4834
   - user
94 ashish 4835
  """
4836
 
4837
  thrift_spec = (
4838
    None, # 0
559 chandransh 4839
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4840
  )
4841
 
559 chandransh 4842
  def __init__(self, user=None,):
4843
    self.user = user
94 ashish 4844
 
4845
  def read(self, iprot):
4846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4848
      return
4849
    iprot.readStructBegin()
4850
    while True:
4851
      (fname, ftype, fid) = iprot.readFieldBegin()
4852
      if ftype == TType.STOP:
4853
        break
4854
      if fid == 1:
559 chandransh 4855
        if ftype == TType.STRUCT:
4856
          self.user = User()
4857
          self.user.read(iprot)
94 ashish 4858
        else:
4859
          iprot.skip(ftype)
4860
      else:
4861
        iprot.skip(ftype)
4862
      iprot.readFieldEnd()
4863
    iprot.readStructEnd()
4864
 
4865
  def write(self, oprot):
4866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4868
      return
5326 rajveer 4869
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4870
    if self.user is not None:
559 chandransh 4871
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4872
      self.user.write(oprot)
94 ashish 4873
      oprot.writeFieldEnd()
4874
    oprot.writeFieldStop()
4875
    oprot.writeStructEnd()
4876
 
3431 rajveer 4877
  def validate(self):
4878
    return
4879
 
4880
 
94 ashish 4881
  def __repr__(self):
4882
    L = ['%s=%r' % (key, value)
4883
      for key, value in self.__dict__.iteritems()]
4884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4885
 
4886
  def __eq__(self, other):
4887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4888
 
4889
  def __ne__(self, other):
4890
    return not (self == other)
4891
 
5326 rajveer 4892
class createUser_result:
94 ashish 4893
  """
4894
  Attributes:
4895
   - success
559 chandransh 4896
   - ucex
94 ashish 4897
  """
4898
 
4899
  thrift_spec = (
559 chandransh 4900
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4901
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4902
  )
4903
 
559 chandransh 4904
  def __init__(self, success=None, ucex=None,):
94 ashish 4905
    self.success = success
559 chandransh 4906
    self.ucex = ucex
94 ashish 4907
 
4908
  def read(self, iprot):
4909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4911
      return
4912
    iprot.readStructBegin()
4913
    while True:
4914
      (fname, ftype, fid) = iprot.readFieldBegin()
4915
      if ftype == TType.STOP:
4916
        break
4917
      if fid == 0:
4918
        if ftype == TType.STRUCT:
559 chandransh 4919
          self.success = User()
94 ashish 4920
          self.success.read(iprot)
4921
        else:
4922
          iprot.skip(ftype)
4923
      elif fid == 1:
4924
        if ftype == TType.STRUCT:
559 chandransh 4925
          self.ucex = UserContextException()
4926
          self.ucex.read(iprot)
94 ashish 4927
        else:
4928
          iprot.skip(ftype)
4929
      else:
4930
        iprot.skip(ftype)
4931
      iprot.readFieldEnd()
4932
    iprot.readStructEnd()
4933
 
4934
  def write(self, oprot):
4935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4937
      return
5326 rajveer 4938
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4939
    if self.success is not None:
94 ashish 4940
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4941
      self.success.write(oprot)
4942
      oprot.writeFieldEnd()
3431 rajveer 4943
    if self.ucex is not None:
559 chandransh 4944
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4945
      self.ucex.write(oprot)
94 ashish 4946
      oprot.writeFieldEnd()
4947
    oprot.writeFieldStop()
4948
    oprot.writeStructEnd()
4949
 
3431 rajveer 4950
  def validate(self):
4951
    return
4952
 
4953
 
94 ashish 4954
  def __repr__(self):
4955
    L = ['%s=%r' % (key, value)
4956
      for key, value in self.__dict__.iteritems()]
4957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4958
 
4959
  def __eq__(self, other):
4960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4961
 
4962
  def __ne__(self, other):
4963
    return not (self == other)
4964
 
5326 rajveer 4965
class updateUser_args:
94 ashish 4966
  """
4967
  Attributes:
5326 rajveer 4968
   - user
94 ashish 4969
  """
4970
 
4971
  thrift_spec = (
4972
    None, # 0
5326 rajveer 4973
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4974
  )
4975
 
5326 rajveer 4976
  def __init__(self, user=None,):
4977
    self.user = user
94 ashish 4978
 
4979
  def read(self, iprot):
4980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4982
      return
4983
    iprot.readStructBegin()
4984
    while True:
4985
      (fname, ftype, fid) = iprot.readFieldBegin()
4986
      if ftype == TType.STOP:
4987
        break
4988
      if fid == 1:
5326 rajveer 4989
        if ftype == TType.STRUCT:
4990
          self.user = User()
4991
          self.user.read(iprot)
94 ashish 4992
        else:
4993
          iprot.skip(ftype)
4994
      else:
4995
        iprot.skip(ftype)
4996
      iprot.readFieldEnd()
4997
    iprot.readStructEnd()
4998
 
4999
  def write(self, oprot):
5000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5002
      return
5326 rajveer 5003
    oprot.writeStructBegin('updateUser_args')
5004
    if self.user is not None:
5005
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
5006
      self.user.write(oprot)
94 ashish 5007
      oprot.writeFieldEnd()
5008
    oprot.writeFieldStop()
5009
    oprot.writeStructEnd()
5010
 
3431 rajveer 5011
  def validate(self):
5012
    return
5013
 
5014
 
94 ashish 5015
  def __repr__(self):
5016
    L = ['%s=%r' % (key, value)
5017
      for key, value in self.__dict__.iteritems()]
5018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5019
 
5020
  def __eq__(self, other):
5021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5022
 
5023
  def __ne__(self, other):
5024
    return not (self == other)
5025
 
5326 rajveer 5026
class updateUser_result:
94 ashish 5027
  """
5028
  Attributes:
5029
   - success
559 chandransh 5030
   - ucex
94 ashish 5031
  """
5032
 
5033
  thrift_spec = (
5326 rajveer 5034
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 5035
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 5036
  )
5037
 
559 chandransh 5038
  def __init__(self, success=None, ucex=None,):
94 ashish 5039
    self.success = success
559 chandransh 5040
    self.ucex = ucex
94 ashish 5041
 
5042
  def read(self, iprot):
5043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5045
      return
5046
    iprot.readStructBegin()
5047
    while True:
5048
      (fname, ftype, fid) = iprot.readFieldBegin()
5049
      if ftype == TType.STOP:
5050
        break
5051
      if fid == 0:
5326 rajveer 5052
        if ftype == TType.STRUCT:
5053
          self.success = User()
5054
          self.success.read(iprot)
94 ashish 5055
        else:
5056
          iprot.skip(ftype)
5057
      elif fid == 1:
5058
        if ftype == TType.STRUCT:
559 chandransh 5059
          self.ucex = UserContextException()
5060
          self.ucex.read(iprot)
94 ashish 5061
        else:
5062
          iprot.skip(ftype)
5063
      else:
5064
        iprot.skip(ftype)
5065
      iprot.readFieldEnd()
5066
    iprot.readStructEnd()
5067
 
5068
  def write(self, oprot):
5069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5071
      return
5326 rajveer 5072
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 5073
    if self.success is not None:
5326 rajveer 5074
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5075
      self.success.write(oprot)
94 ashish 5076
      oprot.writeFieldEnd()
3431 rajveer 5077
    if self.ucex is not None:
559 chandransh 5078
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5079
      self.ucex.write(oprot)
94 ashish 5080
      oprot.writeFieldEnd()
5081
    oprot.writeFieldStop()
5082
    oprot.writeStructEnd()
5083
 
3431 rajveer 5084
  def validate(self):
5085
    return
5086
 
5087
 
94 ashish 5088
  def __repr__(self):
5089
    L = ['%s=%r' % (key, value)
5090
      for key, value in self.__dict__.iteritems()]
5091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5092
 
5093
  def __eq__(self, other):
5094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5095
 
5096
  def __ne__(self, other):
5097
    return not (self == other)
5098
 
559 chandransh 5099
class authenticateUser_args:
94 ashish 5100
  """
5101
  Attributes:
5102
   - email
5103
   - password
5104
  """
5105
 
5106
  thrift_spec = (
5107
    None, # 0
5108
    (1, TType.STRING, 'email', None, None, ), # 1
5109
    (2, TType.STRING, 'password', None, None, ), # 2
5110
  )
5111
 
5112
  def __init__(self, email=None, password=None,):
5113
    self.email = email
5114
    self.password = password
5115
 
5116
  def read(self, iprot):
5117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5119
      return
5120
    iprot.readStructBegin()
5121
    while True:
5122
      (fname, ftype, fid) = iprot.readFieldBegin()
5123
      if ftype == TType.STOP:
5124
        break
5125
      if fid == 1:
5126
        if ftype == TType.STRING:
5127
          self.email = iprot.readString();
5128
        else:
5129
          iprot.skip(ftype)
5130
      elif fid == 2:
5131
        if ftype == TType.STRING:
5132
          self.password = iprot.readString();
5133
        else:
5134
          iprot.skip(ftype)
5135
      else:
5136
        iprot.skip(ftype)
5137
      iprot.readFieldEnd()
5138
    iprot.readStructEnd()
5139
 
5140
  def write(self, oprot):
5141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5143
      return
559 chandransh 5144
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5145
    if self.email is not None:
94 ashish 5146
      oprot.writeFieldBegin('email', TType.STRING, 1)
5147
      oprot.writeString(self.email)
5148
      oprot.writeFieldEnd()
3431 rajveer 5149
    if self.password is not None:
94 ashish 5150
      oprot.writeFieldBegin('password', TType.STRING, 2)
5151
      oprot.writeString(self.password)
5152
      oprot.writeFieldEnd()
5153
    oprot.writeFieldStop()
5154
    oprot.writeStructEnd()
5155
 
3431 rajveer 5156
  def validate(self):
5157
    return
5158
 
5159
 
94 ashish 5160
  def __repr__(self):
5161
    L = ['%s=%r' % (key, value)
5162
      for key, value in self.__dict__.iteritems()]
5163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5164
 
5165
  def __eq__(self, other):
5166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5167
 
5168
  def __ne__(self, other):
5169
    return not (self == other)
5170
 
559 chandransh 5171
class authenticateUser_result:
94 ashish 5172
  """
5173
  Attributes:
5174
   - success
559 chandransh 5175
   - auex
94 ashish 5176
  """
5177
 
5178
  thrift_spec = (
559 chandransh 5179
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5180
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5181
  )
5182
 
559 chandransh 5183
  def __init__(self, success=None, auex=None,):
94 ashish 5184
    self.success = success
559 chandransh 5185
    self.auex = auex
94 ashish 5186
 
5187
  def read(self, iprot):
5188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5190
      return
5191
    iprot.readStructBegin()
5192
    while True:
5193
      (fname, ftype, fid) = iprot.readFieldBegin()
5194
      if ftype == TType.STOP:
5195
        break
5196
      if fid == 0:
5197
        if ftype == TType.STRUCT:
559 chandransh 5198
          self.success = User()
94 ashish 5199
          self.success.read(iprot)
5200
        else:
5201
          iprot.skip(ftype)
5202
      elif fid == 1:
5203
        if ftype == TType.STRUCT:
559 chandransh 5204
          self.auex = AuthenticationException()
5205
          self.auex.read(iprot)
94 ashish 5206
        else:
5207
          iprot.skip(ftype)
5208
      else:
5209
        iprot.skip(ftype)
5210
      iprot.readFieldEnd()
5211
    iprot.readStructEnd()
5212
 
5213
  def write(self, oprot):
5214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5216
      return
559 chandransh 5217
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5218
    if self.success is not None:
94 ashish 5219
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5220
      self.success.write(oprot)
5221
      oprot.writeFieldEnd()
3431 rajveer 5222
    if self.auex is not None:
559 chandransh 5223
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5224
      self.auex.write(oprot)
94 ashish 5225
      oprot.writeFieldEnd()
5226
    oprot.writeFieldStop()
5227
    oprot.writeStructEnd()
5228
 
3431 rajveer 5229
  def validate(self):
5230
    return
5231
 
5232
 
94 ashish 5233
  def __repr__(self):
5234
    L = ['%s=%r' % (key, value)
5235
      for key, value in self.__dict__.iteritems()]
5236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5237
 
5238
  def __eq__(self, other):
5239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5240
 
5241
  def __ne__(self, other):
5242
    return not (self == other)
5243
 
559 chandransh 5244
class userExists_args:
122 ashish 5245
  """
5246
  Attributes:
559 chandransh 5247
   - email
122 ashish 5248
  """
5249
 
5250
  thrift_spec = (
5251
    None, # 0
559 chandransh 5252
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5253
  )
5254
 
559 chandransh 5255
  def __init__(self, email=None,):
5256
    self.email = email
122 ashish 5257
 
5258
  def read(self, iprot):
5259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5261
      return
5262
    iprot.readStructBegin()
5263
    while True:
5264
      (fname, ftype, fid) = iprot.readFieldBegin()
5265
      if ftype == TType.STOP:
5266
        break
5267
      if fid == 1:
5268
        if ftype == TType.STRING:
559 chandransh 5269
          self.email = iprot.readString();
122 ashish 5270
        else:
5271
          iprot.skip(ftype)
559 chandransh 5272
      else:
5273
        iprot.skip(ftype)
5274
      iprot.readFieldEnd()
5275
    iprot.readStructEnd()
5276
 
5277
  def write(self, oprot):
5278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5280
      return
5281
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5282
    if self.email is not None:
559 chandransh 5283
      oprot.writeFieldBegin('email', TType.STRING, 1)
5284
      oprot.writeString(self.email)
5285
      oprot.writeFieldEnd()
5286
    oprot.writeFieldStop()
5287
    oprot.writeStructEnd()
5288
 
3431 rajveer 5289
  def validate(self):
5290
    return
5291
 
5292
 
559 chandransh 5293
  def __repr__(self):
5294
    L = ['%s=%r' % (key, value)
5295
      for key, value in self.__dict__.iteritems()]
5296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5297
 
5298
  def __eq__(self, other):
5299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5300
 
5301
  def __ne__(self, other):
5302
    return not (self == other)
5303
 
5304
class userExists_result:
5305
  """
5306
  Attributes:
5307
   - success
5308
   - ucx
5309
  """
5310
 
5311
  thrift_spec = (
5312
    (0, TType.BOOL, 'success', None, None, ), # 0
5313
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5314
  )
5315
 
5316
  def __init__(self, success=None, ucx=None,):
5317
    self.success = success
5318
    self.ucx = ucx
5319
 
5320
  def read(self, iprot):
5321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5323
      return
5324
    iprot.readStructBegin()
5325
    while True:
5326
      (fname, ftype, fid) = iprot.readFieldBegin()
5327
      if ftype == TType.STOP:
5328
        break
5329
      if fid == 0:
5330
        if ftype == TType.BOOL:
5331
          self.success = iprot.readBool();
5332
        else:
5333
          iprot.skip(ftype)
5334
      elif fid == 1:
5335
        if ftype == TType.STRUCT:
5336
          self.ucx = UserContextException()
5337
          self.ucx.read(iprot)
5338
        else:
5339
          iprot.skip(ftype)
5340
      else:
5341
        iprot.skip(ftype)
5342
      iprot.readFieldEnd()
5343
    iprot.readStructEnd()
5344
 
5345
  def write(self, oprot):
5346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5348
      return
5349
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5350
    if self.success is not None:
559 chandransh 5351
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5352
      oprot.writeBool(self.success)
5353
      oprot.writeFieldEnd()
3431 rajveer 5354
    if self.ucx is not None:
559 chandransh 5355
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5356
      self.ucx.write(oprot)
5357
      oprot.writeFieldEnd()
5358
    oprot.writeFieldStop()
5359
    oprot.writeStructEnd()
5360
 
3431 rajveer 5361
  def validate(self):
5362
    return
5363
 
5364
 
559 chandransh 5365
  def __repr__(self):
5366
    L = ['%s=%r' % (key, value)
5367
      for key, value in self.__dict__.iteritems()]
5368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5369
 
5370
  def __eq__(self, other):
5371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5372
 
5373
  def __ne__(self, other):
5374
    return not (self == other)
5375
 
5376
class addAddressForUser_args:
5377
  """
5378
  Attributes:
5379
   - userId
5380
   - address
5381
   - setDefault
5382
  """
5383
 
5384
  thrift_spec = (
5385
    None, # 0
5386
    (1, TType.I64, 'userId', None, None, ), # 1
5387
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5388
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5389
  )
5390
 
567 rajveer 5391
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5392
    self.userId = userId
5393
    self.address = address
5394
    self.setDefault = setDefault
5395
 
5396
  def read(self, iprot):
5397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5399
      return
5400
    iprot.readStructBegin()
5401
    while True:
5402
      (fname, ftype, fid) = iprot.readFieldBegin()
5403
      if ftype == TType.STOP:
5404
        break
5405
      if fid == 1:
5406
        if ftype == TType.I64:
5407
          self.userId = iprot.readI64();
5408
        else:
5409
          iprot.skip(ftype)
122 ashish 5410
      elif fid == 2:
559 chandransh 5411
        if ftype == TType.STRUCT:
5412
          self.address = Address()
5413
          self.address.read(iprot)
122 ashish 5414
        else:
5415
          iprot.skip(ftype)
5416
      elif fid == 3:
5417
        if ftype == TType.BOOL:
559 chandransh 5418
          self.setDefault = iprot.readBool();
122 ashish 5419
        else:
5420
          iprot.skip(ftype)
5421
      else:
5422
        iprot.skip(ftype)
5423
      iprot.readFieldEnd()
5424
    iprot.readStructEnd()
5425
 
5426
  def write(self, oprot):
5427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5429
      return
559 chandransh 5430
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5431
    if self.userId is not None:
559 chandransh 5432
      oprot.writeFieldBegin('userId', TType.I64, 1)
5433
      oprot.writeI64(self.userId)
122 ashish 5434
      oprot.writeFieldEnd()
3431 rajveer 5435
    if self.address is not None:
559 chandransh 5436
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5437
      self.address.write(oprot)
122 ashish 5438
      oprot.writeFieldEnd()
3431 rajveer 5439
    if self.setDefault is not None:
567 rajveer 5440
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5441
      oprot.writeBool(self.setDefault)
5442
      oprot.writeFieldEnd()
122 ashish 5443
    oprot.writeFieldStop()
5444
    oprot.writeStructEnd()
5445
 
3431 rajveer 5446
  def validate(self):
5447
    return
5448
 
5449
 
122 ashish 5450
  def __repr__(self):
5451
    L = ['%s=%r' % (key, value)
5452
      for key, value in self.__dict__.iteritems()]
5453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5454
 
5455
  def __eq__(self, other):
5456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5457
 
5458
  def __ne__(self, other):
5459
    return not (self == other)
5460
 
559 chandransh 5461
class addAddressForUser_result:
122 ashish 5462
  """
5463
  Attributes:
5464
   - success
559 chandransh 5465
   - ucx
122 ashish 5466
  """
5467
 
5468
  thrift_spec = (
567 rajveer 5469
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5470
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5471
  )
5472
 
559 chandransh 5473
  def __init__(self, success=None, ucx=None,):
122 ashish 5474
    self.success = success
559 chandransh 5475
    self.ucx = ucx
122 ashish 5476
 
5477
  def read(self, iprot):
5478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5480
      return
5481
    iprot.readStructBegin()
5482
    while True:
5483
      (fname, ftype, fid) = iprot.readFieldBegin()
5484
      if ftype == TType.STOP:
5485
        break
5486
      if fid == 0:
567 rajveer 5487
        if ftype == TType.I64:
5488
          self.success = iprot.readI64();
122 ashish 5489
        else:
5490
          iprot.skip(ftype)
5491
      elif fid == 1:
5492
        if ftype == TType.STRUCT:
559 chandransh 5493
          self.ucx = UserContextException()
5494
          self.ucx.read(iprot)
122 ashish 5495
        else:
5496
          iprot.skip(ftype)
5497
      else:
5498
        iprot.skip(ftype)
5499
      iprot.readFieldEnd()
5500
    iprot.readStructEnd()
5501
 
5502
  def write(self, oprot):
5503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5505
      return
559 chandransh 5506
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5507
    if self.success is not None:
567 rajveer 5508
      oprot.writeFieldBegin('success', TType.I64, 0)
5509
      oprot.writeI64(self.success)
122 ashish 5510
      oprot.writeFieldEnd()
3431 rajveer 5511
    if self.ucx is not None:
559 chandransh 5512
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5513
      self.ucx.write(oprot)
122 ashish 5514
      oprot.writeFieldEnd()
5515
    oprot.writeFieldStop()
5516
    oprot.writeStructEnd()
5517
 
3431 rajveer 5518
  def validate(self):
5519
    return
5520
 
5521
 
122 ashish 5522
  def __repr__(self):
5523
    L = ['%s=%r' % (key, value)
5524
      for key, value in self.__dict__.iteritems()]
5525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5526
 
5527
  def __eq__(self, other):
5528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5529
 
5530
  def __ne__(self, other):
5531
    return not (self == other)
5532
 
559 chandransh 5533
class removeAddressForUser_args:
94 ashish 5534
  """
5535
  Attributes:
559 chandransh 5536
   - userid
5537
   - addressId
94 ashish 5538
  """
5539
 
5540
  thrift_spec = (
5541
    None, # 0
559 chandransh 5542
    (1, TType.I64, 'userid', None, None, ), # 1
5543
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5544
  )
5545
 
559 chandransh 5546
  def __init__(self, userid=None, addressId=None,):
5547
    self.userid = userid
5548
    self.addressId = addressId
94 ashish 5549
 
5550
  def read(self, iprot):
5551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5553
      return
5554
    iprot.readStructBegin()
5555
    while True:
5556
      (fname, ftype, fid) = iprot.readFieldBegin()
5557
      if ftype == TType.STOP:
5558
        break
5559
      if fid == 1:
559 chandransh 5560
        if ftype == TType.I64:
5561
          self.userid = iprot.readI64();
94 ashish 5562
        else:
5563
          iprot.skip(ftype)
559 chandransh 5564
      elif fid == 2:
5565
        if ftype == TType.I64:
5566
          self.addressId = iprot.readI64();
5567
        else:
5568
          iprot.skip(ftype)
94 ashish 5569
      else:
5570
        iprot.skip(ftype)
5571
      iprot.readFieldEnd()
5572
    iprot.readStructEnd()
5573
 
5574
  def write(self, oprot):
5575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5577
      return
559 chandransh 5578
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5579
    if self.userid is not None:
559 chandransh 5580
      oprot.writeFieldBegin('userid', TType.I64, 1)
5581
      oprot.writeI64(self.userid)
94 ashish 5582
      oprot.writeFieldEnd()
3431 rajveer 5583
    if self.addressId is not None:
559 chandransh 5584
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5585
      oprot.writeI64(self.addressId)
5586
      oprot.writeFieldEnd()
94 ashish 5587
    oprot.writeFieldStop()
5588
    oprot.writeStructEnd()
5589
 
3431 rajveer 5590
  def validate(self):
5591
    return
5592
 
5593
 
94 ashish 5594
  def __repr__(self):
5595
    L = ['%s=%r' % (key, value)
5596
      for key, value in self.__dict__.iteritems()]
5597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5598
 
5599
  def __eq__(self, other):
5600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5601
 
5602
  def __ne__(self, other):
5603
    return not (self == other)
5604
 
559 chandransh 5605
class removeAddressForUser_result:
94 ashish 5606
  """
5607
  Attributes:
5608
   - success
5609
   - ucx
5610
  """
5611
 
5612
  thrift_spec = (
5613
    (0, TType.BOOL, 'success', None, None, ), # 0
5614
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5615
  )
5616
 
5617
  def __init__(self, success=None, ucx=None,):
5618
    self.success = success
5619
    self.ucx = ucx
5620
 
5621
  def read(self, iprot):
5622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5624
      return
5625
    iprot.readStructBegin()
5626
    while True:
5627
      (fname, ftype, fid) = iprot.readFieldBegin()
5628
      if ftype == TType.STOP:
5629
        break
5630
      if fid == 0:
5631
        if ftype == TType.BOOL:
5632
          self.success = iprot.readBool();
5633
        else:
5634
          iprot.skip(ftype)
5635
      elif fid == 1:
5636
        if ftype == TType.STRUCT:
5637
          self.ucx = UserContextException()
5638
          self.ucx.read(iprot)
5639
        else:
5640
          iprot.skip(ftype)
5641
      else:
5642
        iprot.skip(ftype)
5643
      iprot.readFieldEnd()
5644
    iprot.readStructEnd()
5645
 
5646
  def write(self, oprot):
5647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5649
      return
559 chandransh 5650
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5651
    if self.success is not None:
94 ashish 5652
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5653
      oprot.writeBool(self.success)
5654
      oprot.writeFieldEnd()
3431 rajveer 5655
    if self.ucx is not None:
94 ashish 5656
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5657
      self.ucx.write(oprot)
5658
      oprot.writeFieldEnd()
5659
    oprot.writeFieldStop()
5660
    oprot.writeStructEnd()
5661
 
3431 rajveer 5662
  def validate(self):
5663
    return
5664
 
5665
 
94 ashish 5666
  def __repr__(self):
5667
    L = ['%s=%r' % (key, value)
5668
      for key, value in self.__dict__.iteritems()]
5669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5670
 
5671
  def __eq__(self, other):
5672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5673
 
5674
  def __ne__(self, other):
5675
    return not (self == other)
5676
 
559 chandransh 5677
class setUserAsLoggedIn_args:
94 ashish 5678
  """
5679
  Attributes:
559 chandransh 5680
   - userId
94 ashish 5681
   - timestamp
5682
  """
5683
 
5684
  thrift_spec = (
5685
    None, # 0
559 chandransh 5686
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5687
    (2, TType.I64, 'timestamp', None, None, ), # 2
5688
  )
5689
 
559 chandransh 5690
  def __init__(self, userId=None, timestamp=None,):
5691
    self.userId = userId
94 ashish 5692
    self.timestamp = timestamp
5693
 
5694
  def read(self, iprot):
5695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5697
      return
5698
    iprot.readStructBegin()
5699
    while True:
5700
      (fname, ftype, fid) = iprot.readFieldBegin()
5701
      if ftype == TType.STOP:
5702
        break
5703
      if fid == 1:
559 chandransh 5704
        if ftype == TType.I64:
5705
          self.userId = iprot.readI64();
94 ashish 5706
        else:
5707
          iprot.skip(ftype)
5708
      elif fid == 2:
5709
        if ftype == TType.I64:
5710
          self.timestamp = iprot.readI64();
5711
        else:
5712
          iprot.skip(ftype)
5713
      else:
5714
        iprot.skip(ftype)
5715
      iprot.readFieldEnd()
5716
    iprot.readStructEnd()
5717
 
5718
  def write(self, oprot):
5719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5721
      return
559 chandransh 5722
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5723
    if self.userId is not None:
559 chandransh 5724
      oprot.writeFieldBegin('userId', TType.I64, 1)
5725
      oprot.writeI64(self.userId)
94 ashish 5726
      oprot.writeFieldEnd()
3431 rajveer 5727
    if self.timestamp is not None:
94 ashish 5728
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5729
      oprot.writeI64(self.timestamp)
5730
      oprot.writeFieldEnd()
5731
    oprot.writeFieldStop()
5732
    oprot.writeStructEnd()
5733
 
3431 rajveer 5734
  def validate(self):
5735
    return
5736
 
5737
 
94 ashish 5738
  def __repr__(self):
5739
    L = ['%s=%r' % (key, value)
5740
      for key, value in self.__dict__.iteritems()]
5741
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5742
 
5743
  def __eq__(self, other):
5744
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5745
 
5746
  def __ne__(self, other):
5747
    return not (self == other)
5748
 
559 chandransh 5749
class setUserAsLoggedIn_result:
94 ashish 5750
  """
5751
  Attributes:
5752
   - success
5753
   - ucx
5754
  """
5755
 
5756
  thrift_spec = (
5757
    (0, TType.BOOL, 'success', None, None, ), # 0
5758
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5759
  )
5760
 
5761
  def __init__(self, success=None, ucx=None,):
5762
    self.success = success
5763
    self.ucx = ucx
5764
 
5765
  def read(self, iprot):
5766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5768
      return
5769
    iprot.readStructBegin()
5770
    while True:
5771
      (fname, ftype, fid) = iprot.readFieldBegin()
5772
      if ftype == TType.STOP:
5773
        break
5774
      if fid == 0:
5775
        if ftype == TType.BOOL:
5776
          self.success = iprot.readBool();
5777
        else:
5778
          iprot.skip(ftype)
5779
      elif fid == 1:
5780
        if ftype == TType.STRUCT:
5781
          self.ucx = UserContextException()
5782
          self.ucx.read(iprot)
5783
        else:
5784
          iprot.skip(ftype)
5785
      else:
5786
        iprot.skip(ftype)
5787
      iprot.readFieldEnd()
5788
    iprot.readStructEnd()
5789
 
5790
  def write(self, oprot):
5791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5793
      return
559 chandransh 5794
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5795
    if self.success is not None:
94 ashish 5796
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5797
      oprot.writeBool(self.success)
5798
      oprot.writeFieldEnd()
3431 rajveer 5799
    if self.ucx is not None:
94 ashish 5800
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5801
      self.ucx.write(oprot)
5802
      oprot.writeFieldEnd()
5803
    oprot.writeFieldStop()
5804
    oprot.writeStructEnd()
5805
 
3431 rajveer 5806
  def validate(self):
5807
    return
5808
 
5809
 
94 ashish 5810
  def __repr__(self):
5811
    L = ['%s=%r' % (key, value)
5812
      for key, value in self.__dict__.iteritems()]
5813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5814
 
5815
  def __eq__(self, other):
5816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5817
 
5818
  def __ne__(self, other):
5819
    return not (self == other)
5820
 
559 chandransh 5821
class setUserAsLoggedOut_args:
94 ashish 5822
  """
5823
  Attributes:
5824
   - userid
5825
   - timestamp
5826
  """
5827
 
5828
  thrift_spec = (
5829
    None, # 0
559 chandransh 5830
    (1, TType.I64, 'userid', None, None, ), # 1
5831
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5832
  )
5833
 
559 chandransh 5834
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5835
    self.userid = userid
5836
    self.timestamp = timestamp
5837
 
5838
  def read(self, iprot):
5839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5841
      return
5842
    iprot.readStructBegin()
5843
    while True:
5844
      (fname, ftype, fid) = iprot.readFieldBegin()
5845
      if ftype == TType.STOP:
5846
        break
5847
      if fid == 1:
5848
        if ftype == TType.I64:
5849
          self.userid = iprot.readI64();
5850
        else:
5851
          iprot.skip(ftype)
559 chandransh 5852
      elif fid == 2:
94 ashish 5853
        if ftype == TType.I64:
5854
          self.timestamp = iprot.readI64();
5855
        else:
5856
          iprot.skip(ftype)
5857
      else:
5858
        iprot.skip(ftype)
5859
      iprot.readFieldEnd()
5860
    iprot.readStructEnd()
5861
 
5862
  def write(self, oprot):
5863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5865
      return
559 chandransh 5866
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5867
    if self.userid is not None:
559 chandransh 5868
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5869
      oprot.writeI64(self.userid)
5870
      oprot.writeFieldEnd()
3431 rajveer 5871
    if self.timestamp is not None:
559 chandransh 5872
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5873
      oprot.writeI64(self.timestamp)
5874
      oprot.writeFieldEnd()
5875
    oprot.writeFieldStop()
5876
    oprot.writeStructEnd()
5877
 
3431 rajveer 5878
  def validate(self):
5879
    return
5880
 
5881
 
94 ashish 5882
  def __repr__(self):
5883
    L = ['%s=%r' % (key, value)
5884
      for key, value in self.__dict__.iteritems()]
5885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5886
 
5887
  def __eq__(self, other):
5888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5889
 
5890
  def __ne__(self, other):
5891
    return not (self == other)
5892
 
559 chandransh 5893
class setUserAsLoggedOut_result:
94 ashish 5894
  """
5895
  Attributes:
5896
   - success
5897
   - ucx
5898
  """
5899
 
5900
  thrift_spec = (
5901
    (0, TType.BOOL, 'success', None, None, ), # 0
5902
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5903
  )
5904
 
5905
  def __init__(self, success=None, ucx=None,):
5906
    self.success = success
5907
    self.ucx = ucx
5908
 
5909
  def read(self, iprot):
5910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5912
      return
5913
    iprot.readStructBegin()
5914
    while True:
5915
      (fname, ftype, fid) = iprot.readFieldBegin()
5916
      if ftype == TType.STOP:
5917
        break
5918
      if fid == 0:
5919
        if ftype == TType.BOOL:
5920
          self.success = iprot.readBool();
5921
        else:
5922
          iprot.skip(ftype)
5923
      elif fid == 1:
5924
        if ftype == TType.STRUCT:
5925
          self.ucx = UserContextException()
5926
          self.ucx.read(iprot)
5927
        else:
5928
          iprot.skip(ftype)
5929
      else:
5930
        iprot.skip(ftype)
5931
      iprot.readFieldEnd()
5932
    iprot.readStructEnd()
5933
 
5934
  def write(self, oprot):
5935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5937
      return
559 chandransh 5938
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5939
    if self.success is not None:
94 ashish 5940
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5941
      oprot.writeBool(self.success)
5942
      oprot.writeFieldEnd()
3431 rajveer 5943
    if self.ucx is not None:
94 ashish 5944
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5945
      self.ucx.write(oprot)
5946
      oprot.writeFieldEnd()
5947
    oprot.writeFieldStop()
5948
    oprot.writeStructEnd()
5949
 
3431 rajveer 5950
  def validate(self):
5951
    return
5952
 
5953
 
94 ashish 5954
  def __repr__(self):
5955
    L = ['%s=%r' % (key, value)
5956
      for key, value in self.__dict__.iteritems()]
5957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5958
 
5959
  def __eq__(self, other):
5960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5961
 
5962
  def __ne__(self, other):
5963
    return not (self == other)
5964
 
559 chandransh 5965
class setDefaultAddress_args:
94 ashish 5966
  """
5967
  Attributes:
5968
   - userid
5969
   - addressId
5970
  """
5971
 
5972
  thrift_spec = (
5973
    None, # 0
5974
    (1, TType.I64, 'userid', None, None, ), # 1
5975
    (2, TType.I64, 'addressId', None, None, ), # 2
5976
  )
5977
 
5978
  def __init__(self, userid=None, addressId=None,):
5979
    self.userid = userid
5980
    self.addressId = addressId
5981
 
5982
  def read(self, iprot):
5983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5985
      return
5986
    iprot.readStructBegin()
5987
    while True:
5988
      (fname, ftype, fid) = iprot.readFieldBegin()
5989
      if ftype == TType.STOP:
5990
        break
5991
      if fid == 1:
5992
        if ftype == TType.I64:
5993
          self.userid = iprot.readI64();
5994
        else:
5995
          iprot.skip(ftype)
5996
      elif fid == 2:
5997
        if ftype == TType.I64:
5998
          self.addressId = iprot.readI64();
5999
        else:
6000
          iprot.skip(ftype)
6001
      else:
6002
        iprot.skip(ftype)
6003
      iprot.readFieldEnd()
6004
    iprot.readStructEnd()
6005
 
6006
  def write(self, oprot):
6007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6009
      return
559 chandransh 6010
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 6011
    if self.userid is not None:
94 ashish 6012
      oprot.writeFieldBegin('userid', TType.I64, 1)
6013
      oprot.writeI64(self.userid)
6014
      oprot.writeFieldEnd()
3431 rajveer 6015
    if self.addressId is not None:
94 ashish 6016
      oprot.writeFieldBegin('addressId', TType.I64, 2)
6017
      oprot.writeI64(self.addressId)
6018
      oprot.writeFieldEnd()
6019
    oprot.writeFieldStop()
6020
    oprot.writeStructEnd()
6021
 
3431 rajveer 6022
  def validate(self):
6023
    return
6024
 
6025
 
94 ashish 6026
  def __repr__(self):
6027
    L = ['%s=%r' % (key, value)
6028
      for key, value in self.__dict__.iteritems()]
6029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6030
 
6031
  def __eq__(self, other):
6032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6033
 
6034
  def __ne__(self, other):
6035
    return not (self == other)
6036
 
559 chandransh 6037
class setDefaultAddress_result:
94 ashish 6038
  """
6039
  Attributes:
6040
   - success
6041
   - ucx
6042
  """
6043
 
6044
  thrift_spec = (
6045
    (0, TType.BOOL, 'success', None, None, ), # 0
6046
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6047
  )
6048
 
6049
  def __init__(self, success=None, ucx=None,):
6050
    self.success = success
6051
    self.ucx = ucx
6052
 
6053
  def read(self, iprot):
6054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6056
      return
6057
    iprot.readStructBegin()
6058
    while True:
6059
      (fname, ftype, fid) = iprot.readFieldBegin()
6060
      if ftype == TType.STOP:
6061
        break
6062
      if fid == 0:
6063
        if ftype == TType.BOOL:
6064
          self.success = iprot.readBool();
6065
        else:
6066
          iprot.skip(ftype)
6067
      elif fid == 1:
6068
        if ftype == TType.STRUCT:
6069
          self.ucx = UserContextException()
6070
          self.ucx.read(iprot)
6071
        else:
6072
          iprot.skip(ftype)
6073
      else:
6074
        iprot.skip(ftype)
6075
      iprot.readFieldEnd()
6076
    iprot.readStructEnd()
6077
 
6078
  def write(self, oprot):
6079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6081
      return
559 chandransh 6082
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6083
    if self.success is not None:
94 ashish 6084
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6085
      oprot.writeBool(self.success)
6086
      oprot.writeFieldEnd()
3431 rajveer 6087
    if self.ucx is not None:
94 ashish 6088
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6089
      self.ucx.write(oprot)
6090
      oprot.writeFieldEnd()
6091
    oprot.writeFieldStop()
6092
    oprot.writeStructEnd()
6093
 
3431 rajveer 6094
  def validate(self):
6095
    return
6096
 
6097
 
94 ashish 6098
  def __repr__(self):
6099
    L = ['%s=%r' % (key, value)
6100
      for key, value in self.__dict__.iteritems()]
6101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6102
 
6103
  def __eq__(self, other):
6104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6105
 
6106
  def __ne__(self, other):
6107
    return not (self == other)
6108
 
559 chandransh 6109
class updatePassword_args:
94 ashish 6110
  """
6111
  Attributes:
559 chandransh 6112
   - userid
594 rajveer 6113
   - oldPassword
6114
   - newPassword
94 ashish 6115
  """
6116
 
6117
  thrift_spec = (
6118
    None, # 0
559 chandransh 6119
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6120
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6121
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6122
  )
6123
 
594 rajveer 6124
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6125
    self.userid = userid
594 rajveer 6126
    self.oldPassword = oldPassword
6127
    self.newPassword = newPassword
94 ashish 6128
 
6129
  def read(self, iprot):
6130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6132
      return
6133
    iprot.readStructBegin()
6134
    while True:
6135
      (fname, ftype, fid) = iprot.readFieldBegin()
6136
      if ftype == TType.STOP:
6137
        break
6138
      if fid == 1:
6139
        if ftype == TType.I64:
559 chandransh 6140
          self.userid = iprot.readI64();
94 ashish 6141
        else:
6142
          iprot.skip(ftype)
6143
      elif fid == 2:
559 chandransh 6144
        if ftype == TType.STRING:
594 rajveer 6145
          self.oldPassword = iprot.readString();
94 ashish 6146
        else:
6147
          iprot.skip(ftype)
594 rajveer 6148
      elif fid == 3:
6149
        if ftype == TType.STRING:
6150
          self.newPassword = iprot.readString();
6151
        else:
6152
          iprot.skip(ftype)
94 ashish 6153
      else:
6154
        iprot.skip(ftype)
6155
      iprot.readFieldEnd()
6156
    iprot.readStructEnd()
6157
 
6158
  def write(self, oprot):
6159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6161
      return
559 chandransh 6162
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6163
    if self.userid is not None:
559 chandransh 6164
      oprot.writeFieldBegin('userid', TType.I64, 1)
6165
      oprot.writeI64(self.userid)
94 ashish 6166
      oprot.writeFieldEnd()
3431 rajveer 6167
    if self.oldPassword is not None:
594 rajveer 6168
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6169
      oprot.writeString(self.oldPassword)
94 ashish 6170
      oprot.writeFieldEnd()
3431 rajveer 6171
    if self.newPassword is not None:
594 rajveer 6172
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6173
      oprot.writeString(self.newPassword)
6174
      oprot.writeFieldEnd()
94 ashish 6175
    oprot.writeFieldStop()
6176
    oprot.writeStructEnd()
6177
 
3431 rajveer 6178
  def validate(self):
6179
    return
6180
 
6181
 
94 ashish 6182
  def __repr__(self):
6183
    L = ['%s=%r' % (key, value)
6184
      for key, value in self.__dict__.iteritems()]
6185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6186
 
6187
  def __eq__(self, other):
6188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6189
 
6190
  def __ne__(self, other):
6191
    return not (self == other)
6192
 
559 chandransh 6193
class updatePassword_result:
94 ashish 6194
  """
6195
  Attributes:
6196
   - success
6197
   - ucx
6198
  """
6199
 
6200
  thrift_spec = (
6201
    (0, TType.BOOL, 'success', None, None, ), # 0
6202
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6203
  )
6204
 
6205
  def __init__(self, success=None, ucx=None,):
6206
    self.success = success
6207
    self.ucx = ucx
6208
 
6209
  def read(self, iprot):
6210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6212
      return
6213
    iprot.readStructBegin()
6214
    while True:
6215
      (fname, ftype, fid) = iprot.readFieldBegin()
6216
      if ftype == TType.STOP:
6217
        break
6218
      if fid == 0:
6219
        if ftype == TType.BOOL:
6220
          self.success = iprot.readBool();
6221
        else:
6222
          iprot.skip(ftype)
6223
      elif fid == 1:
6224
        if ftype == TType.STRUCT:
6225
          self.ucx = UserContextException()
6226
          self.ucx.read(iprot)
6227
        else:
6228
          iprot.skip(ftype)
6229
      else:
6230
        iprot.skip(ftype)
6231
      iprot.readFieldEnd()
6232
    iprot.readStructEnd()
6233
 
6234
  def write(self, oprot):
6235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6237
      return
559 chandransh 6238
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6239
    if self.success is not None:
94 ashish 6240
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6241
      oprot.writeBool(self.success)
6242
      oprot.writeFieldEnd()
3431 rajveer 6243
    if self.ucx is not None:
94 ashish 6244
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6245
      self.ucx.write(oprot)
6246
      oprot.writeFieldEnd()
6247
    oprot.writeFieldStop()
6248
    oprot.writeStructEnd()
6249
 
3431 rajveer 6250
  def validate(self):
6251
    return
6252
 
6253
 
94 ashish 6254
  def __repr__(self):
6255
    L = ['%s=%r' % (key, value)
6256
      for key, value in self.__dict__.iteritems()]
6257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6258
 
6259
  def __eq__(self, other):
6260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6261
 
6262
  def __ne__(self, other):
6263
    return not (self == other)
6264
 
581 rajveer 6265
class forgotPassword_args:
6266
  """
6267
  Attributes:
6268
   - email
884 rajveer 6269
   - newPassword
581 rajveer 6270
  """
6271
 
6272
  thrift_spec = (
6273
    None, # 0
6274
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6275
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6276
  )
6277
 
884 rajveer 6278
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6279
    self.email = email
884 rajveer 6280
    self.newPassword = newPassword
581 rajveer 6281
 
6282
  def read(self, iprot):
6283
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6284
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6285
      return
6286
    iprot.readStructBegin()
6287
    while True:
6288
      (fname, ftype, fid) = iprot.readFieldBegin()
6289
      if ftype == TType.STOP:
6290
        break
6291
      if fid == 1:
6292
        if ftype == TType.STRING:
6293
          self.email = iprot.readString();
6294
        else:
6295
          iprot.skip(ftype)
884 rajveer 6296
      elif fid == 2:
6297
        if ftype == TType.STRING:
6298
          self.newPassword = iprot.readString();
6299
        else:
6300
          iprot.skip(ftype)
581 rajveer 6301
      else:
6302
        iprot.skip(ftype)
6303
      iprot.readFieldEnd()
6304
    iprot.readStructEnd()
6305
 
6306
  def write(self, oprot):
6307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6309
      return
6310
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6311
    if self.email is not None:
581 rajveer 6312
      oprot.writeFieldBegin('email', TType.STRING, 1)
6313
      oprot.writeString(self.email)
6314
      oprot.writeFieldEnd()
3431 rajveer 6315
    if self.newPassword is not None:
884 rajveer 6316
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6317
      oprot.writeString(self.newPassword)
6318
      oprot.writeFieldEnd()
581 rajveer 6319
    oprot.writeFieldStop()
6320
    oprot.writeStructEnd()
6321
 
3431 rajveer 6322
  def validate(self):
6323
    return
6324
 
6325
 
581 rajveer 6326
  def __repr__(self):
6327
    L = ['%s=%r' % (key, value)
6328
      for key, value in self.__dict__.iteritems()]
6329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6330
 
6331
  def __eq__(self, other):
6332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6333
 
6334
  def __ne__(self, other):
6335
    return not (self == other)
6336
 
6337
class forgotPassword_result:
6338
  """
6339
  Attributes:
6340
   - success
6341
   - ucx
6342
  """
6343
 
6344
  thrift_spec = (
6345
    (0, TType.BOOL, 'success', None, None, ), # 0
6346
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6347
  )
6348
 
6349
  def __init__(self, success=None, ucx=None,):
6350
    self.success = success
6351
    self.ucx = ucx
6352
 
6353
  def read(self, iprot):
6354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6356
      return
6357
    iprot.readStructBegin()
6358
    while True:
6359
      (fname, ftype, fid) = iprot.readFieldBegin()
6360
      if ftype == TType.STOP:
6361
        break
6362
      if fid == 0:
6363
        if ftype == TType.BOOL:
6364
          self.success = iprot.readBool();
6365
        else:
6366
          iprot.skip(ftype)
6367
      elif fid == 1:
6368
        if ftype == TType.STRUCT:
6369
          self.ucx = UserContextException()
6370
          self.ucx.read(iprot)
6371
        else:
6372
          iprot.skip(ftype)
6373
      else:
6374
        iprot.skip(ftype)
6375
      iprot.readFieldEnd()
6376
    iprot.readStructEnd()
6377
 
6378
  def write(self, oprot):
6379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6381
      return
6382
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6383
    if self.success is not None:
581 rajveer 6384
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6385
      oprot.writeBool(self.success)
6386
      oprot.writeFieldEnd()
3431 rajveer 6387
    if self.ucx is not None:
581 rajveer 6388
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6389
      self.ucx.write(oprot)
6390
      oprot.writeFieldEnd()
6391
    oprot.writeFieldStop()
6392
    oprot.writeStructEnd()
6393
 
3431 rajveer 6394
  def validate(self):
6395
    return
6396
 
6397
 
581 rajveer 6398
  def __repr__(self):
6399
    L = ['%s=%r' % (key, value)
6400
      for key, value in self.__dict__.iteritems()]
6401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6402
 
6403
  def __eq__(self, other):
6404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6405
 
6406
  def __ne__(self, other):
6407
    return not (self == other)
6408
 
594 rajveer 6409
class getAllAddressesForUser_args:
6410
  """
6411
  Attributes:
6412
   - userId
6413
  """
6414
 
6415
  thrift_spec = (
6416
    None, # 0
6417
    (1, TType.I64, 'userId', None, None, ), # 1
6418
  )
6419
 
6420
  def __init__(self, userId=None,):
6421
    self.userId = userId
6422
 
6423
  def read(self, iprot):
6424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6426
      return
6427
    iprot.readStructBegin()
6428
    while True:
6429
      (fname, ftype, fid) = iprot.readFieldBegin()
6430
      if ftype == TType.STOP:
6431
        break
6432
      if fid == 1:
6433
        if ftype == TType.I64:
6434
          self.userId = iprot.readI64();
6435
        else:
6436
          iprot.skip(ftype)
6437
      else:
6438
        iprot.skip(ftype)
6439
      iprot.readFieldEnd()
6440
    iprot.readStructEnd()
6441
 
6442
  def write(self, oprot):
6443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6445
      return
6446
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6447
    if self.userId is not None:
594 rajveer 6448
      oprot.writeFieldBegin('userId', TType.I64, 1)
6449
      oprot.writeI64(self.userId)
6450
      oprot.writeFieldEnd()
6451
    oprot.writeFieldStop()
6452
    oprot.writeStructEnd()
6453
 
3431 rajveer 6454
  def validate(self):
6455
    return
6456
 
6457
 
594 rajveer 6458
  def __repr__(self):
6459
    L = ['%s=%r' % (key, value)
6460
      for key, value in self.__dict__.iteritems()]
6461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6462
 
6463
  def __eq__(self, other):
6464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6465
 
6466
  def __ne__(self, other):
6467
    return not (self == other)
6468
 
6469
class getAllAddressesForUser_result:
6470
  """
6471
  Attributes:
6472
   - success
6473
   - ucx
6474
  """
6475
 
6476
  thrift_spec = (
6477
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6478
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6479
  )
6480
 
6481
  def __init__(self, success=None, ucx=None,):
6482
    self.success = success
6483
    self.ucx = ucx
6484
 
6485
  def read(self, iprot):
6486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6488
      return
6489
    iprot.readStructBegin()
6490
    while True:
6491
      (fname, ftype, fid) = iprot.readFieldBegin()
6492
      if ftype == TType.STOP:
6493
        break
6494
      if fid == 0:
6495
        if ftype == TType.LIST:
6496
          self.success = []
6736 amit.gupta 6497
          (_etype86, _size83) = iprot.readListBegin()
6498
          for _i87 in xrange(_size83):
6499
            _elem88 = Address()
6500
            _elem88.read(iprot)
6501
            self.success.append(_elem88)
594 rajveer 6502
          iprot.readListEnd()
6503
        else:
6504
          iprot.skip(ftype)
6505
      elif fid == 1:
6506
        if ftype == TType.STRUCT:
6507
          self.ucx = UserContextException()
6508
          self.ucx.read(iprot)
6509
        else:
6510
          iprot.skip(ftype)
6511
      else:
6512
        iprot.skip(ftype)
6513
      iprot.readFieldEnd()
6514
    iprot.readStructEnd()
6515
 
6516
  def write(self, oprot):
6517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6519
      return
6520
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6521
    if self.success is not None:
594 rajveer 6522
      oprot.writeFieldBegin('success', TType.LIST, 0)
6523
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 6524
      for iter89 in self.success:
6525
        iter89.write(oprot)
594 rajveer 6526
      oprot.writeListEnd()
6527
      oprot.writeFieldEnd()
3431 rajveer 6528
    if self.ucx is not None:
594 rajveer 6529
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6530
      self.ucx.write(oprot)
6531
      oprot.writeFieldEnd()
6532
    oprot.writeFieldStop()
6533
    oprot.writeStructEnd()
6534
 
3431 rajveer 6535
  def validate(self):
6536
    return
6537
 
6538
 
594 rajveer 6539
  def __repr__(self):
6540
    L = ['%s=%r' % (key, value)
6541
      for key, value in self.__dict__.iteritems()]
6542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6543
 
6544
  def __eq__(self, other):
6545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6546
 
6547
  def __ne__(self, other):
6548
    return not (self == other)
6549
 
1894 vikas 6550
class getAddressById_args:
6551
  """
6552
  Attributes:
6553
   - addressId
6554
  """
6555
 
6556
  thrift_spec = (
6557
    None, # 0
6558
    (1, TType.I64, 'addressId', None, None, ), # 1
6559
  )
6560
 
6561
  def __init__(self, addressId=None,):
6562
    self.addressId = addressId
6563
 
6564
  def read(self, iprot):
6565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6567
      return
6568
    iprot.readStructBegin()
6569
    while True:
6570
      (fname, ftype, fid) = iprot.readFieldBegin()
6571
      if ftype == TType.STOP:
6572
        break
6573
      if fid == 1:
6574
        if ftype == TType.I64:
6575
          self.addressId = iprot.readI64();
6576
        else:
6577
          iprot.skip(ftype)
6578
      else:
6579
        iprot.skip(ftype)
6580
      iprot.readFieldEnd()
6581
    iprot.readStructEnd()
6582
 
6583
  def write(self, oprot):
6584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6586
      return
6587
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6588
    if self.addressId is not None:
1894 vikas 6589
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6590
      oprot.writeI64(self.addressId)
6591
      oprot.writeFieldEnd()
6592
    oprot.writeFieldStop()
6593
    oprot.writeStructEnd()
6594
 
3431 rajveer 6595
  def validate(self):
6596
    return
6597
 
6598
 
1894 vikas 6599
  def __repr__(self):
6600
    L = ['%s=%r' % (key, value)
6601
      for key, value in self.__dict__.iteritems()]
6602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6603
 
6604
  def __eq__(self, other):
6605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6606
 
6607
  def __ne__(self, other):
6608
    return not (self == other)
6609
 
6610
class getAddressById_result:
6611
  """
6612
  Attributes:
6613
   - success
6614
   - ucx
6615
  """
6616
 
6617
  thrift_spec = (
6618
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6619
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6620
  )
6621
 
6622
  def __init__(self, success=None, ucx=None,):
6623
    self.success = success
6624
    self.ucx = ucx
6625
 
6626
  def read(self, iprot):
6627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6629
      return
6630
    iprot.readStructBegin()
6631
    while True:
6632
      (fname, ftype, fid) = iprot.readFieldBegin()
6633
      if ftype == TType.STOP:
6634
        break
6635
      if fid == 0:
6636
        if ftype == TType.STRUCT:
6637
          self.success = Address()
6638
          self.success.read(iprot)
6639
        else:
6640
          iprot.skip(ftype)
6641
      elif fid == 1:
6642
        if ftype == TType.STRUCT:
6643
          self.ucx = UserContextException()
6644
          self.ucx.read(iprot)
6645
        else:
6646
          iprot.skip(ftype)
6647
      else:
6648
        iprot.skip(ftype)
6649
      iprot.readFieldEnd()
6650
    iprot.readStructEnd()
6651
 
6652
  def write(self, oprot):
6653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6655
      return
6656
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6657
    if self.success is not None:
1894 vikas 6658
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6659
      self.success.write(oprot)
6660
      oprot.writeFieldEnd()
3431 rajveer 6661
    if self.ucx is not None:
1894 vikas 6662
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6663
      self.ucx.write(oprot)
6664
      oprot.writeFieldEnd()
6665
    oprot.writeFieldStop()
6666
    oprot.writeStructEnd()
6667
 
3431 rajveer 6668
  def validate(self):
6669
    return
6670
 
6671
 
1894 vikas 6672
  def __repr__(self):
6673
    L = ['%s=%r' % (key, value)
6674
      for key, value in self.__dict__.iteritems()]
6675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6676
 
6677
  def __eq__(self, other):
6678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6679
 
6680
  def __ne__(self, other):
6681
    return not (self == other)
6682
 
594 rajveer 6683
class getDefaultAddressId_args:
6684
  """
6685
  Attributes:
6686
   - userId
6687
  """
6688
 
6689
  thrift_spec = (
6690
    None, # 0
6691
    (1, TType.I64, 'userId', None, None, ), # 1
6692
  )
6693
 
6694
  def __init__(self, userId=None,):
6695
    self.userId = userId
6696
 
6697
  def read(self, iprot):
6698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6700
      return
6701
    iprot.readStructBegin()
6702
    while True:
6703
      (fname, ftype, fid) = iprot.readFieldBegin()
6704
      if ftype == TType.STOP:
6705
        break
6706
      if fid == 1:
6707
        if ftype == TType.I64:
6708
          self.userId = iprot.readI64();
6709
        else:
6710
          iprot.skip(ftype)
6711
      else:
6712
        iprot.skip(ftype)
6713
      iprot.readFieldEnd()
6714
    iprot.readStructEnd()
6715
 
6716
  def write(self, oprot):
6717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6719
      return
6720
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6721
    if self.userId is not None:
594 rajveer 6722
      oprot.writeFieldBegin('userId', TType.I64, 1)
6723
      oprot.writeI64(self.userId)
6724
      oprot.writeFieldEnd()
6725
    oprot.writeFieldStop()
6726
    oprot.writeStructEnd()
6727
 
3431 rajveer 6728
  def validate(self):
6729
    return
6730
 
6731
 
594 rajveer 6732
  def __repr__(self):
6733
    L = ['%s=%r' % (key, value)
6734
      for key, value in self.__dict__.iteritems()]
6735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6736
 
6737
  def __eq__(self, other):
6738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6739
 
6740
  def __ne__(self, other):
6741
    return not (self == other)
6742
 
6743
class getDefaultAddressId_result:
6744
  """
6745
  Attributes:
6746
   - success
6747
   - ucx
6748
  """
6749
 
6750
  thrift_spec = (
6751
    (0, TType.I64, 'success', None, None, ), # 0
6752
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6753
  )
6754
 
6755
  def __init__(self, success=None, ucx=None,):
6756
    self.success = success
6757
    self.ucx = ucx
6758
 
6759
  def read(self, iprot):
6760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6762
      return
6763
    iprot.readStructBegin()
6764
    while True:
6765
      (fname, ftype, fid) = iprot.readFieldBegin()
6766
      if ftype == TType.STOP:
6767
        break
6768
      if fid == 0:
6769
        if ftype == TType.I64:
6770
          self.success = iprot.readI64();
6771
        else:
6772
          iprot.skip(ftype)
6773
      elif fid == 1:
6774
        if ftype == TType.STRUCT:
6775
          self.ucx = UserContextException()
6776
          self.ucx.read(iprot)
6777
        else:
6778
          iprot.skip(ftype)
6779
      else:
6780
        iprot.skip(ftype)
6781
      iprot.readFieldEnd()
6782
    iprot.readStructEnd()
6783
 
6784
  def write(self, oprot):
6785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6787
      return
6788
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6789
    if self.success is not None:
594 rajveer 6790
      oprot.writeFieldBegin('success', TType.I64, 0)
6791
      oprot.writeI64(self.success)
6792
      oprot.writeFieldEnd()
3431 rajveer 6793
    if self.ucx is not None:
594 rajveer 6794
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6795
      self.ucx.write(oprot)
6796
      oprot.writeFieldEnd()
6797
    oprot.writeFieldStop()
6798
    oprot.writeStructEnd()
6799
 
3431 rajveer 6800
  def validate(self):
6801
    return
6802
 
6803
 
594 rajveer 6804
  def __repr__(self):
6805
    L = ['%s=%r' % (key, value)
6806
      for key, value in self.__dict__.iteritems()]
6807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6808
 
6809
  def __eq__(self, other):
6810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6811
 
6812
  def __ne__(self, other):
6813
    return not (self == other)
6814
 
785 rajveer 6815
class getDefaultPincode_args:
6816
  """
6817
  Attributes:
6818
   - userId
6819
  """
6820
 
6821
  thrift_spec = (
6822
    None, # 0
6823
    (1, TType.I64, 'userId', None, None, ), # 1
6824
  )
6825
 
6826
  def __init__(self, userId=None,):
6827
    self.userId = userId
6828
 
6829
  def read(self, iprot):
6830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6832
      return
6833
    iprot.readStructBegin()
6834
    while True:
6835
      (fname, ftype, fid) = iprot.readFieldBegin()
6836
      if ftype == TType.STOP:
6837
        break
6838
      if fid == 1:
6839
        if ftype == TType.I64:
6840
          self.userId = iprot.readI64();
6841
        else:
6842
          iprot.skip(ftype)
6843
      else:
6844
        iprot.skip(ftype)
6845
      iprot.readFieldEnd()
6846
    iprot.readStructEnd()
6847
 
6848
  def write(self, oprot):
6849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6851
      return
6852
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6853
    if self.userId is not None:
785 rajveer 6854
      oprot.writeFieldBegin('userId', TType.I64, 1)
6855
      oprot.writeI64(self.userId)
6856
      oprot.writeFieldEnd()
6857
    oprot.writeFieldStop()
6858
    oprot.writeStructEnd()
6859
 
3431 rajveer 6860
  def validate(self):
6861
    return
6862
 
6863
 
785 rajveer 6864
  def __repr__(self):
6865
    L = ['%s=%r' % (key, value)
6866
      for key, value in self.__dict__.iteritems()]
6867
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6868
 
6869
  def __eq__(self, other):
6870
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6871
 
6872
  def __ne__(self, other):
6873
    return not (self == other)
6874
 
6875
class getDefaultPincode_result:
6876
  """
6877
  Attributes:
6878
   - success
6879
   - ucx
6880
  """
6881
 
6882
  thrift_spec = (
6883
    (0, TType.STRING, 'success', None, None, ), # 0
6884
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6885
  )
6886
 
6887
  def __init__(self, success=None, ucx=None,):
6888
    self.success = success
6889
    self.ucx = ucx
6890
 
6891
  def read(self, iprot):
6892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6894
      return
6895
    iprot.readStructBegin()
6896
    while True:
6897
      (fname, ftype, fid) = iprot.readFieldBegin()
6898
      if ftype == TType.STOP:
6899
        break
6900
      if fid == 0:
6901
        if ftype == TType.STRING:
6902
          self.success = iprot.readString();
6903
        else:
6904
          iprot.skip(ftype)
6905
      elif fid == 1:
6906
        if ftype == TType.STRUCT:
6907
          self.ucx = UserContextException()
6908
          self.ucx.read(iprot)
6909
        else:
6910
          iprot.skip(ftype)
6911
      else:
6912
        iprot.skip(ftype)
6913
      iprot.readFieldEnd()
6914
    iprot.readStructEnd()
6915
 
6916
  def write(self, oprot):
6917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6919
      return
6920
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6921
    if self.success is not None:
785 rajveer 6922
      oprot.writeFieldBegin('success', TType.STRING, 0)
6923
      oprot.writeString(self.success)
6924
      oprot.writeFieldEnd()
3431 rajveer 6925
    if self.ucx is not None:
785 rajveer 6926
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6927
      self.ucx.write(oprot)
6928
      oprot.writeFieldEnd()
6929
    oprot.writeFieldStop()
6930
    oprot.writeStructEnd()
6931
 
3431 rajveer 6932
  def validate(self):
6933
    return
6934
 
6935
 
785 rajveer 6936
  def __repr__(self):
6937
    L = ['%s=%r' % (key, value)
6938
      for key, value in self.__dict__.iteritems()]
6939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6940
 
6941
  def __eq__(self, other):
6942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6943
 
6944
  def __ne__(self, other):
6945
    return not (self == other)
6946
 
1274 varun.gupt 6947
class saveUserCommunication_args:
6948
  """
6949
  Attributes:
6950
   - userId
6951
   - replyTo
6952
   - communicationType
6953
   - orderId
6954
   - airwaybillNo
6955
   - productName
6956
   - subject
6957
   - message
6958
  """
6959
 
6960
  thrift_spec = (
6961
    None, # 0
6962
    (1, TType.I64, 'userId', None, None, ), # 1
6963
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6964
    (3, TType.I64, 'communicationType', None, None, ), # 3
6965
    (4, TType.I64, 'orderId', None, None, ), # 4
6966
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6967
    (6, TType.STRING, 'productName', None, None, ), # 6
6968
    (7, TType.STRING, 'subject', None, None, ), # 7
6969
    (8, TType.STRING, 'message', None, None, ), # 8
6970
  )
6971
 
6972
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6973
    self.userId = userId
6974
    self.replyTo = replyTo
6975
    self.communicationType = communicationType
6976
    self.orderId = orderId
6977
    self.airwaybillNo = airwaybillNo
6978
    self.productName = productName
6979
    self.subject = subject
6980
    self.message = message
6981
 
6982
  def read(self, iprot):
6983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6985
      return
6986
    iprot.readStructBegin()
6987
    while True:
6988
      (fname, ftype, fid) = iprot.readFieldBegin()
6989
      if ftype == TType.STOP:
6990
        break
6991
      if fid == 1:
6992
        if ftype == TType.I64:
6993
          self.userId = iprot.readI64();
6994
        else:
6995
          iprot.skip(ftype)
6996
      elif fid == 2:
6997
        if ftype == TType.STRING:
6998
          self.replyTo = iprot.readString();
6999
        else:
7000
          iprot.skip(ftype)
7001
      elif fid == 3:
7002
        if ftype == TType.I64:
7003
          self.communicationType = iprot.readI64();
7004
        else:
7005
          iprot.skip(ftype)
7006
      elif fid == 4:
7007
        if ftype == TType.I64:
7008
          self.orderId = iprot.readI64();
7009
        else:
7010
          iprot.skip(ftype)
7011
      elif fid == 5:
7012
        if ftype == TType.STRING:
7013
          self.airwaybillNo = iprot.readString();
7014
        else:
7015
          iprot.skip(ftype)
7016
      elif fid == 6:
7017
        if ftype == TType.STRING:
7018
          self.productName = iprot.readString();
7019
        else:
7020
          iprot.skip(ftype)
7021
      elif fid == 7:
7022
        if ftype == TType.STRING:
7023
          self.subject = iprot.readString();
7024
        else:
7025
          iprot.skip(ftype)
7026
      elif fid == 8:
7027
        if ftype == TType.STRING:
7028
          self.message = iprot.readString();
7029
        else:
7030
          iprot.skip(ftype)
7031
      else:
7032
        iprot.skip(ftype)
7033
      iprot.readFieldEnd()
7034
    iprot.readStructEnd()
7035
 
7036
  def write(self, oprot):
7037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7039
      return
7040
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7041
    if self.userId is not None:
1274 varun.gupt 7042
      oprot.writeFieldBegin('userId', TType.I64, 1)
7043
      oprot.writeI64(self.userId)
7044
      oprot.writeFieldEnd()
3431 rajveer 7045
    if self.replyTo is not None:
1274 varun.gupt 7046
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7047
      oprot.writeString(self.replyTo)
7048
      oprot.writeFieldEnd()
3431 rajveer 7049
    if self.communicationType is not None:
1274 varun.gupt 7050
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7051
      oprot.writeI64(self.communicationType)
7052
      oprot.writeFieldEnd()
3431 rajveer 7053
    if self.orderId is not None:
1274 varun.gupt 7054
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7055
      oprot.writeI64(self.orderId)
7056
      oprot.writeFieldEnd()
3431 rajveer 7057
    if self.airwaybillNo is not None:
1274 varun.gupt 7058
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7059
      oprot.writeString(self.airwaybillNo)
7060
      oprot.writeFieldEnd()
3431 rajveer 7061
    if self.productName is not None:
1274 varun.gupt 7062
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7063
      oprot.writeString(self.productName)
7064
      oprot.writeFieldEnd()
3431 rajveer 7065
    if self.subject is not None:
1274 varun.gupt 7066
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7067
      oprot.writeString(self.subject)
7068
      oprot.writeFieldEnd()
3431 rajveer 7069
    if self.message is not None:
1274 varun.gupt 7070
      oprot.writeFieldBegin('message', TType.STRING, 8)
7071
      oprot.writeString(self.message)
7072
      oprot.writeFieldEnd()
7073
    oprot.writeFieldStop()
7074
    oprot.writeStructEnd()
7075
 
3431 rajveer 7076
  def validate(self):
7077
    return
7078
 
7079
 
1274 varun.gupt 7080
  def __repr__(self):
7081
    L = ['%s=%r' % (key, value)
7082
      for key, value in self.__dict__.iteritems()]
7083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7084
 
7085
  def __eq__(self, other):
7086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7087
 
7088
  def __ne__(self, other):
7089
    return not (self == other)
7090
 
7091
class saveUserCommunication_result:
7092
  """
7093
  Attributes:
7094
   - success
7095
   - ucx
7096
  """
7097
 
7098
  thrift_spec = (
7099
    (0, TType.BOOL, 'success', None, None, ), # 0
7100
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7101
  )
7102
 
7103
  def __init__(self, success=None, ucx=None,):
7104
    self.success = success
7105
    self.ucx = ucx
7106
 
7107
  def read(self, iprot):
7108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7110
      return
7111
    iprot.readStructBegin()
7112
    while True:
7113
      (fname, ftype, fid) = iprot.readFieldBegin()
7114
      if ftype == TType.STOP:
7115
        break
7116
      if fid == 0:
7117
        if ftype == TType.BOOL:
7118
          self.success = iprot.readBool();
7119
        else:
7120
          iprot.skip(ftype)
7121
      elif fid == 1:
7122
        if ftype == TType.STRUCT:
7123
          self.ucx = UserCommunicationException()
7124
          self.ucx.read(iprot)
7125
        else:
7126
          iprot.skip(ftype)
7127
      else:
7128
        iprot.skip(ftype)
7129
      iprot.readFieldEnd()
7130
    iprot.readStructEnd()
7131
 
7132
  def write(self, oprot):
7133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7135
      return
7136
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7137
    if self.success is not None:
1274 varun.gupt 7138
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7139
      oprot.writeBool(self.success)
7140
      oprot.writeFieldEnd()
3431 rajveer 7141
    if self.ucx is not None:
1274 varun.gupt 7142
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7143
      self.ucx.write(oprot)
7144
      oprot.writeFieldEnd()
7145
    oprot.writeFieldStop()
7146
    oprot.writeStructEnd()
7147
 
3431 rajveer 7148
  def validate(self):
7149
    return
7150
 
7151
 
1274 varun.gupt 7152
  def __repr__(self):
7153
    L = ['%s=%r' % (key, value)
7154
      for key, value in self.__dict__.iteritems()]
7155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7156
 
7157
  def __eq__(self, other):
7158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7159
 
7160
  def __ne__(self, other):
7161
    return not (self == other)
7162
 
1590 varun.gupt 7163
class getUserCommunicationById_args:
7164
  """
7165
  Attributes:
7166
   - id
7167
  """
7168
 
7169
  thrift_spec = (
7170
    None, # 0
7171
    (1, TType.I64, 'id', None, None, ), # 1
7172
  )
7173
 
7174
  def __init__(self, id=None,):
7175
    self.id = id
7176
 
7177
  def read(self, iprot):
7178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7180
      return
7181
    iprot.readStructBegin()
7182
    while True:
7183
      (fname, ftype, fid) = iprot.readFieldBegin()
7184
      if ftype == TType.STOP:
7185
        break
7186
      if fid == 1:
7187
        if ftype == TType.I64:
7188
          self.id = iprot.readI64();
7189
        else:
7190
          iprot.skip(ftype)
7191
      else:
7192
        iprot.skip(ftype)
7193
      iprot.readFieldEnd()
7194
    iprot.readStructEnd()
7195
 
7196
  def write(self, oprot):
7197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7199
      return
7200
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7201
    if self.id is not None:
1590 varun.gupt 7202
      oprot.writeFieldBegin('id', TType.I64, 1)
7203
      oprot.writeI64(self.id)
7204
      oprot.writeFieldEnd()
7205
    oprot.writeFieldStop()
7206
    oprot.writeStructEnd()
7207
 
3431 rajveer 7208
  def validate(self):
7209
    return
7210
 
7211
 
1590 varun.gupt 7212
  def __repr__(self):
7213
    L = ['%s=%r' % (key, value)
7214
      for key, value in self.__dict__.iteritems()]
7215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7216
 
7217
  def __eq__(self, other):
7218
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7219
 
7220
  def __ne__(self, other):
7221
    return not (self == other)
7222
 
7223
class getUserCommunicationById_result:
7224
  """
7225
  Attributes:
7226
   - success
7227
   - ucx
7228
  """
7229
 
7230
  thrift_spec = (
7231
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7232
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7233
  )
7234
 
7235
  def __init__(self, success=None, ucx=None,):
7236
    self.success = success
7237
    self.ucx = ucx
7238
 
7239
  def read(self, iprot):
7240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7242
      return
7243
    iprot.readStructBegin()
7244
    while True:
7245
      (fname, ftype, fid) = iprot.readFieldBegin()
7246
      if ftype == TType.STOP:
7247
        break
7248
      if fid == 0:
7249
        if ftype == TType.STRUCT:
7250
          self.success = UserCommunication()
7251
          self.success.read(iprot)
7252
        else:
7253
          iprot.skip(ftype)
7254
      elif fid == 1:
7255
        if ftype == TType.STRUCT:
7256
          self.ucx = UserCommunicationException()
7257
          self.ucx.read(iprot)
7258
        else:
7259
          iprot.skip(ftype)
7260
      else:
7261
        iprot.skip(ftype)
7262
      iprot.readFieldEnd()
7263
    iprot.readStructEnd()
7264
 
7265
  def write(self, oprot):
7266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7268
      return
7269
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7270
    if self.success is not None:
1590 varun.gupt 7271
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7272
      self.success.write(oprot)
7273
      oprot.writeFieldEnd()
3431 rajveer 7274
    if self.ucx is not None:
1590 varun.gupt 7275
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7276
      self.ucx.write(oprot)
7277
      oprot.writeFieldEnd()
7278
    oprot.writeFieldStop()
7279
    oprot.writeStructEnd()
7280
 
3431 rajveer 7281
  def validate(self):
7282
    return
7283
 
7284
 
1590 varun.gupt 7285
  def __repr__(self):
7286
    L = ['%s=%r' % (key, value)
7287
      for key, value in self.__dict__.iteritems()]
7288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7289
 
7290
  def __eq__(self, other):
7291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7292
 
7293
  def __ne__(self, other):
7294
    return not (self == other)
7295
 
7296
class getUserCommunicationByUser_args:
7297
  """
7298
  Attributes:
7299
   - userId
7300
  """
7301
 
7302
  thrift_spec = (
7303
    None, # 0
7304
    (1, TType.I64, 'userId', None, None, ), # 1
7305
  )
7306
 
7307
  def __init__(self, userId=None,):
7308
    self.userId = userId
7309
 
7310
  def read(self, iprot):
7311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7313
      return
7314
    iprot.readStructBegin()
7315
    while True:
7316
      (fname, ftype, fid) = iprot.readFieldBegin()
7317
      if ftype == TType.STOP:
7318
        break
7319
      if fid == 1:
7320
        if ftype == TType.I64:
7321
          self.userId = iprot.readI64();
7322
        else:
7323
          iprot.skip(ftype)
7324
      else:
7325
        iprot.skip(ftype)
7326
      iprot.readFieldEnd()
7327
    iprot.readStructEnd()
7328
 
7329
  def write(self, oprot):
7330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7332
      return
7333
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7334
    if self.userId is not None:
1590 varun.gupt 7335
      oprot.writeFieldBegin('userId', TType.I64, 1)
7336
      oprot.writeI64(self.userId)
7337
      oprot.writeFieldEnd()
7338
    oprot.writeFieldStop()
7339
    oprot.writeStructEnd()
7340
 
3431 rajveer 7341
  def validate(self):
7342
    return
7343
 
7344
 
1590 varun.gupt 7345
  def __repr__(self):
7346
    L = ['%s=%r' % (key, value)
7347
      for key, value in self.__dict__.iteritems()]
7348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7349
 
7350
  def __eq__(self, other):
7351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7352
 
7353
  def __ne__(self, other):
7354
    return not (self == other)
7355
 
7356
class getUserCommunicationByUser_result:
7357
  """
7358
  Attributes:
7359
   - success
7360
   - ucx
7361
  """
7362
 
7363
  thrift_spec = (
7364
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7365
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7366
  )
7367
 
7368
  def __init__(self, success=None, ucx=None,):
7369
    self.success = success
7370
    self.ucx = ucx
7371
 
7372
  def read(self, iprot):
7373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7375
      return
7376
    iprot.readStructBegin()
7377
    while True:
7378
      (fname, ftype, fid) = iprot.readFieldBegin()
7379
      if ftype == TType.STOP:
7380
        break
7381
      if fid == 0:
7382
        if ftype == TType.LIST:
7383
          self.success = []
6736 amit.gupta 7384
          (_etype93, _size90) = iprot.readListBegin()
7385
          for _i94 in xrange(_size90):
7386
            _elem95 = UserCommunication()
7387
            _elem95.read(iprot)
7388
            self.success.append(_elem95)
1590 varun.gupt 7389
          iprot.readListEnd()
7390
        else:
7391
          iprot.skip(ftype)
7392
      elif fid == 1:
7393
        if ftype == TType.STRUCT:
7394
          self.ucx = UserCommunicationException()
7395
          self.ucx.read(iprot)
7396
        else:
7397
          iprot.skip(ftype)
7398
      else:
7399
        iprot.skip(ftype)
7400
      iprot.readFieldEnd()
7401
    iprot.readStructEnd()
7402
 
7403
  def write(self, oprot):
7404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7406
      return
7407
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7408
    if self.success is not None:
1590 varun.gupt 7409
      oprot.writeFieldBegin('success', TType.LIST, 0)
7410
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7411
      for iter96 in self.success:
7412
        iter96.write(oprot)
1590 varun.gupt 7413
      oprot.writeListEnd()
7414
      oprot.writeFieldEnd()
3431 rajveer 7415
    if self.ucx is not None:
1590 varun.gupt 7416
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7417
      self.ucx.write(oprot)
7418
      oprot.writeFieldEnd()
7419
    oprot.writeFieldStop()
7420
    oprot.writeStructEnd()
7421
 
3431 rajveer 7422
  def validate(self):
7423
    return
7424
 
7425
 
1590 varun.gupt 7426
  def __repr__(self):
7427
    L = ['%s=%r' % (key, value)
7428
      for key, value in self.__dict__.iteritems()]
7429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7430
 
7431
  def __eq__(self, other):
7432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7433
 
7434
  def __ne__(self, other):
7435
    return not (self == other)
7436
 
7437
class getAllUserCommunications_args:
7438
 
7439
  thrift_spec = (
7440
  )
7441
 
7442
  def read(self, iprot):
7443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7445
      return
7446
    iprot.readStructBegin()
7447
    while True:
7448
      (fname, ftype, fid) = iprot.readFieldBegin()
7449
      if ftype == TType.STOP:
7450
        break
7451
      else:
7452
        iprot.skip(ftype)
7453
      iprot.readFieldEnd()
7454
    iprot.readStructEnd()
7455
 
7456
  def write(self, oprot):
7457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7459
      return
7460
    oprot.writeStructBegin('getAllUserCommunications_args')
7461
    oprot.writeFieldStop()
7462
    oprot.writeStructEnd()
7463
 
3431 rajveer 7464
  def validate(self):
7465
    return
7466
 
7467
 
1590 varun.gupt 7468
  def __repr__(self):
7469
    L = ['%s=%r' % (key, value)
7470
      for key, value in self.__dict__.iteritems()]
7471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7472
 
7473
  def __eq__(self, other):
7474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7475
 
7476
  def __ne__(self, other):
7477
    return not (self == other)
7478
 
7479
class getAllUserCommunications_result:
7480
  """
7481
  Attributes:
7482
   - success
7483
   - ucx
7484
  """
7485
 
7486
  thrift_spec = (
7487
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7488
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7489
  )
7490
 
7491
  def __init__(self, success=None, ucx=None,):
7492
    self.success = success
7493
    self.ucx = ucx
7494
 
7495
  def read(self, iprot):
7496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7498
      return
7499
    iprot.readStructBegin()
7500
    while True:
7501
      (fname, ftype, fid) = iprot.readFieldBegin()
7502
      if ftype == TType.STOP:
7503
        break
7504
      if fid == 0:
7505
        if ftype == TType.LIST:
7506
          self.success = []
6736 amit.gupta 7507
          (_etype100, _size97) = iprot.readListBegin()
7508
          for _i101 in xrange(_size97):
7509
            _elem102 = UserCommunication()
7510
            _elem102.read(iprot)
7511
            self.success.append(_elem102)
1590 varun.gupt 7512
          iprot.readListEnd()
7513
        else:
7514
          iprot.skip(ftype)
7515
      elif fid == 1:
7516
        if ftype == TType.STRUCT:
7517
          self.ucx = UserCommunicationException()
7518
          self.ucx.read(iprot)
7519
        else:
7520
          iprot.skip(ftype)
7521
      else:
7522
        iprot.skip(ftype)
7523
      iprot.readFieldEnd()
7524
    iprot.readStructEnd()
7525
 
7526
  def write(self, oprot):
7527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7529
      return
7530
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7531
    if self.success is not None:
1590 varun.gupt 7532
      oprot.writeFieldBegin('success', TType.LIST, 0)
7533
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7534
      for iter103 in self.success:
7535
        iter103.write(oprot)
1590 varun.gupt 7536
      oprot.writeListEnd()
7537
      oprot.writeFieldEnd()
3431 rajveer 7538
    if self.ucx is not None:
1590 varun.gupt 7539
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7540
      self.ucx.write(oprot)
7541
      oprot.writeFieldEnd()
7542
    oprot.writeFieldStop()
7543
    oprot.writeStructEnd()
7544
 
3431 rajveer 7545
  def validate(self):
7546
    return
7547
 
7548
 
1590 varun.gupt 7549
  def __repr__(self):
7550
    L = ['%s=%r' % (key, value)
7551
      for key, value in self.__dict__.iteritems()]
7552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7553
 
7554
  def __eq__(self, other):
7555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7556
 
7557
  def __ne__(self, other):
7558
    return not (self == other)
7559
 
5407 amar.kumar 7560
class removeUserCommunication_args:
7561
  """
7562
  Attributes:
7563
   - id
7564
  """
7565
 
7566
  thrift_spec = (
7567
    None, # 0
7568
    (1, TType.I64, 'id', None, None, ), # 1
7569
  )
7570
 
7571
  def __init__(self, id=None,):
7572
    self.id = id
7573
 
7574
  def read(self, iprot):
7575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7577
      return
7578
    iprot.readStructBegin()
7579
    while True:
7580
      (fname, ftype, fid) = iprot.readFieldBegin()
7581
      if ftype == TType.STOP:
7582
        break
7583
      if fid == 1:
7584
        if ftype == TType.I64:
7585
          self.id = iprot.readI64();
7586
        else:
7587
          iprot.skip(ftype)
7588
      else:
7589
        iprot.skip(ftype)
7590
      iprot.readFieldEnd()
7591
    iprot.readStructEnd()
7592
 
7593
  def write(self, oprot):
7594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7596
      return
7597
    oprot.writeStructBegin('removeUserCommunication_args')
7598
    if self.id is not None:
7599
      oprot.writeFieldBegin('id', TType.I64, 1)
7600
      oprot.writeI64(self.id)
7601
      oprot.writeFieldEnd()
7602
    oprot.writeFieldStop()
7603
    oprot.writeStructEnd()
7604
 
7605
  def validate(self):
7606
    return
7607
 
7608
 
7609
  def __repr__(self):
7610
    L = ['%s=%r' % (key, value)
7611
      for key, value in self.__dict__.iteritems()]
7612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7613
 
7614
  def __eq__(self, other):
7615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7616
 
7617
  def __ne__(self, other):
7618
    return not (self == other)
7619
 
7620
class removeUserCommunication_result:
7621
  """
7622
  Attributes:
7623
   - ucx
7624
  """
7625
 
7626
  thrift_spec = (
7627
    None, # 0
7628
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7629
  )
7630
 
7631
  def __init__(self, ucx=None,):
7632
    self.ucx = ucx
7633
 
7634
  def read(self, iprot):
7635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7637
      return
7638
    iprot.readStructBegin()
7639
    while True:
7640
      (fname, ftype, fid) = iprot.readFieldBegin()
7641
      if ftype == TType.STOP:
7642
        break
7643
      if fid == 1:
7644
        if ftype == TType.STRUCT:
7645
          self.ucx = UserCommunicationException()
7646
          self.ucx.read(iprot)
7647
        else:
7648
          iprot.skip(ftype)
7649
      else:
7650
        iprot.skip(ftype)
7651
      iprot.readFieldEnd()
7652
    iprot.readStructEnd()
7653
 
7654
  def write(self, oprot):
7655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7657
      return
7658
    oprot.writeStructBegin('removeUserCommunication_result')
7659
    if self.ucx is not None:
7660
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7661
      self.ucx.write(oprot)
7662
      oprot.writeFieldEnd()
7663
    oprot.writeFieldStop()
7664
    oprot.writeStructEnd()
7665
 
7666
  def validate(self):
7667
    return
7668
 
7669
 
7670
  def __repr__(self):
7671
    L = ['%s=%r' % (key, value)
7672
      for key, value in self.__dict__.iteritems()]
7673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7674
 
7675
  def __eq__(self, other):
7676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7677
 
7678
  def __ne__(self, other):
7679
    return not (self == other)
7680
 
1845 vikas 7681
class createMasterAffiliate_args:
7682
  """
7683
  Attributes:
7684
   - name
1859 vikas 7685
   - addedOn
1845 vikas 7686
  """
7687
 
7688
  thrift_spec = (
7689
    None, # 0
7690
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7691
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7692
  )
7693
 
1859 vikas 7694
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7695
    self.name = name
1859 vikas 7696
    self.addedOn = addedOn
1845 vikas 7697
 
7698
  def read(self, iprot):
7699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7701
      return
7702
    iprot.readStructBegin()
7703
    while True:
7704
      (fname, ftype, fid) = iprot.readFieldBegin()
7705
      if ftype == TType.STOP:
7706
        break
7707
      if fid == 1:
7708
        if ftype == TType.STRING:
7709
          self.name = iprot.readString();
7710
        else:
7711
          iprot.skip(ftype)
1859 vikas 7712
      elif fid == 2:
7713
        if ftype == TType.I64:
7714
          self.addedOn = iprot.readI64();
7715
        else:
7716
          iprot.skip(ftype)
1845 vikas 7717
      else:
7718
        iprot.skip(ftype)
7719
      iprot.readFieldEnd()
7720
    iprot.readStructEnd()
7721
 
7722
  def write(self, oprot):
7723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7725
      return
7726
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7727
    if self.name is not None:
1845 vikas 7728
      oprot.writeFieldBegin('name', TType.STRING, 1)
7729
      oprot.writeString(self.name)
7730
      oprot.writeFieldEnd()
3431 rajveer 7731
    if self.addedOn is not None:
1859 vikas 7732
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7733
      oprot.writeI64(self.addedOn)
7734
      oprot.writeFieldEnd()
1845 vikas 7735
    oprot.writeFieldStop()
7736
    oprot.writeStructEnd()
7737
 
3431 rajveer 7738
  def validate(self):
7739
    return
7740
 
7741
 
1845 vikas 7742
  def __repr__(self):
7743
    L = ['%s=%r' % (key, value)
7744
      for key, value in self.__dict__.iteritems()]
7745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7746
 
7747
  def __eq__(self, other):
7748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7749
 
7750
  def __ne__(self, other):
7751
    return not (self == other)
7752
 
7753
class createMasterAffiliate_result:
7754
  """
7755
  Attributes:
7756
   - success
7757
   - utx
7758
  """
7759
 
7760
  thrift_spec = (
7761
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7762
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7763
  )
7764
 
7765
  def __init__(self, success=None, utx=None,):
7766
    self.success = success
7767
    self.utx = utx
7768
 
7769
  def read(self, iprot):
7770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7772
      return
7773
    iprot.readStructBegin()
7774
    while True:
7775
      (fname, ftype, fid) = iprot.readFieldBegin()
7776
      if ftype == TType.STOP:
7777
        break
7778
      if fid == 0:
7779
        if ftype == TType.STRUCT:
7780
          self.success = MasterAffiliate()
7781
          self.success.read(iprot)
7782
        else:
7783
          iprot.skip(ftype)
7784
      elif fid == 1:
7785
        if ftype == TType.STRUCT:
1996 vikas 7786
          self.utx = UserAffiliateException()
1845 vikas 7787
          self.utx.read(iprot)
7788
        else:
7789
          iprot.skip(ftype)
7790
      else:
7791
        iprot.skip(ftype)
7792
      iprot.readFieldEnd()
7793
    iprot.readStructEnd()
7794
 
7795
  def write(self, oprot):
7796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7798
      return
7799
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7800
    if self.success is not None:
1845 vikas 7801
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7802
      self.success.write(oprot)
7803
      oprot.writeFieldEnd()
3431 rajveer 7804
    if self.utx is not None:
1845 vikas 7805
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7806
      self.utx.write(oprot)
7807
      oprot.writeFieldEnd()
7808
    oprot.writeFieldStop()
7809
    oprot.writeStructEnd()
7810
 
3431 rajveer 7811
  def validate(self):
7812
    return
7813
 
7814
 
1845 vikas 7815
  def __repr__(self):
7816
    L = ['%s=%r' % (key, value)
7817
      for key, value in self.__dict__.iteritems()]
7818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7819
 
7820
  def __eq__(self, other):
7821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7822
 
7823
  def __ne__(self, other):
7824
    return not (self == other)
7825
 
1899 vikas 7826
class getAllMasterAffiliates_args:
7827
 
7828
  thrift_spec = (
7829
  )
7830
 
7831
  def read(self, iprot):
7832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7834
      return
7835
    iprot.readStructBegin()
7836
    while True:
7837
      (fname, ftype, fid) = iprot.readFieldBegin()
7838
      if ftype == TType.STOP:
7839
        break
7840
      else:
7841
        iprot.skip(ftype)
7842
      iprot.readFieldEnd()
7843
    iprot.readStructEnd()
7844
 
7845
  def write(self, oprot):
7846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7848
      return
7849
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7850
    oprot.writeFieldStop()
7851
    oprot.writeStructEnd()
7852
 
3431 rajveer 7853
  def validate(self):
7854
    return
7855
 
7856
 
1899 vikas 7857
  def __repr__(self):
7858
    L = ['%s=%r' % (key, value)
7859
      for key, value in self.__dict__.iteritems()]
7860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7861
 
7862
  def __eq__(self, other):
7863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7864
 
7865
  def __ne__(self, other):
7866
    return not (self == other)
7867
 
7868
class getAllMasterAffiliates_result:
7869
  """
7870
  Attributes:
7871
   - success
7872
   - utx
7873
  """
7874
 
7875
  thrift_spec = (
7876
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7877
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7878
  )
7879
 
7880
  def __init__(self, success=None, utx=None,):
7881
    self.success = success
7882
    self.utx = utx
7883
 
7884
  def read(self, iprot):
7885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7887
      return
7888
    iprot.readStructBegin()
7889
    while True:
7890
      (fname, ftype, fid) = iprot.readFieldBegin()
7891
      if ftype == TType.STOP:
7892
        break
7893
      if fid == 0:
7894
        if ftype == TType.LIST:
7895
          self.success = []
6736 amit.gupta 7896
          (_etype107, _size104) = iprot.readListBegin()
7897
          for _i108 in xrange(_size104):
7898
            _elem109 = MasterAffiliate()
7899
            _elem109.read(iprot)
7900
            self.success.append(_elem109)
1899 vikas 7901
          iprot.readListEnd()
7902
        else:
7903
          iprot.skip(ftype)
7904
      elif fid == 1:
7905
        if ftype == TType.STRUCT:
1996 vikas 7906
          self.utx = UserAffiliateException()
1899 vikas 7907
          self.utx.read(iprot)
7908
        else:
7909
          iprot.skip(ftype)
7910
      else:
7911
        iprot.skip(ftype)
7912
      iprot.readFieldEnd()
7913
    iprot.readStructEnd()
7914
 
7915
  def write(self, oprot):
7916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7918
      return
7919
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7920
    if self.success is not None:
1899 vikas 7921
      oprot.writeFieldBegin('success', TType.LIST, 0)
7922
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 7923
      for iter110 in self.success:
7924
        iter110.write(oprot)
1899 vikas 7925
      oprot.writeListEnd()
7926
      oprot.writeFieldEnd()
3431 rajveer 7927
    if self.utx is not None:
1899 vikas 7928
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7929
      self.utx.write(oprot)
7930
      oprot.writeFieldEnd()
7931
    oprot.writeFieldStop()
7932
    oprot.writeStructEnd()
7933
 
3431 rajveer 7934
  def validate(self):
7935
    return
7936
 
7937
 
1899 vikas 7938
  def __repr__(self):
7939
    L = ['%s=%r' % (key, value)
7940
      for key, value in self.__dict__.iteritems()]
7941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7942
 
7943
  def __eq__(self, other):
7944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7945
 
7946
  def __ne__(self, other):
7947
    return not (self == other)
7948
 
1845 vikas 7949
class getMasterAffiliateById_args:
7950
  """
7951
  Attributes:
7952
   - id
7953
  """
7954
 
7955
  thrift_spec = (
7956
    None, # 0
7957
    (1, TType.I64, 'id', None, None, ), # 1
7958
  )
7959
 
7960
  def __init__(self, id=None,):
7961
    self.id = id
7962
 
7963
  def read(self, iprot):
7964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7966
      return
7967
    iprot.readStructBegin()
7968
    while True:
7969
      (fname, ftype, fid) = iprot.readFieldBegin()
7970
      if ftype == TType.STOP:
7971
        break
7972
      if fid == 1:
7973
        if ftype == TType.I64:
7974
          self.id = iprot.readI64();
7975
        else:
7976
          iprot.skip(ftype)
7977
      else:
7978
        iprot.skip(ftype)
7979
      iprot.readFieldEnd()
7980
    iprot.readStructEnd()
7981
 
7982
  def write(self, oprot):
7983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7985
      return
7986
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7987
    if self.id is not None:
1845 vikas 7988
      oprot.writeFieldBegin('id', TType.I64, 1)
7989
      oprot.writeI64(self.id)
7990
      oprot.writeFieldEnd()
7991
    oprot.writeFieldStop()
7992
    oprot.writeStructEnd()
7993
 
3431 rajveer 7994
  def validate(self):
7995
    return
7996
 
7997
 
1845 vikas 7998
  def __repr__(self):
7999
    L = ['%s=%r' % (key, value)
8000
      for key, value in self.__dict__.iteritems()]
8001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8002
 
8003
  def __eq__(self, other):
8004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8005
 
8006
  def __ne__(self, other):
8007
    return not (self == other)
8008
 
8009
class getMasterAffiliateById_result:
8010
  """
8011
  Attributes:
8012
   - success
8013
   - utx
8014
  """
8015
 
8016
  thrift_spec = (
8017
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8018
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8019
  )
8020
 
8021
  def __init__(self, success=None, utx=None,):
8022
    self.success = success
8023
    self.utx = utx
8024
 
8025
  def read(self, iprot):
8026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8028
      return
8029
    iprot.readStructBegin()
8030
    while True:
8031
      (fname, ftype, fid) = iprot.readFieldBegin()
8032
      if ftype == TType.STOP:
8033
        break
8034
      if fid == 0:
8035
        if ftype == TType.STRUCT:
8036
          self.success = MasterAffiliate()
8037
          self.success.read(iprot)
8038
        else:
8039
          iprot.skip(ftype)
8040
      elif fid == 1:
8041
        if ftype == TType.STRUCT:
1996 vikas 8042
          self.utx = UserAffiliateException()
1845 vikas 8043
          self.utx.read(iprot)
8044
        else:
8045
          iprot.skip(ftype)
8046
      else:
8047
        iprot.skip(ftype)
8048
      iprot.readFieldEnd()
8049
    iprot.readStructEnd()
8050
 
8051
  def write(self, oprot):
8052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8054
      return
8055
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 8056
    if self.success is not None:
1845 vikas 8057
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8058
      self.success.write(oprot)
8059
      oprot.writeFieldEnd()
3431 rajveer 8060
    if self.utx is not None:
1845 vikas 8061
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8062
      self.utx.write(oprot)
8063
      oprot.writeFieldEnd()
8064
    oprot.writeFieldStop()
8065
    oprot.writeStructEnd()
8066
 
3431 rajveer 8067
  def validate(self):
8068
    return
8069
 
8070
 
1845 vikas 8071
  def __repr__(self):
8072
    L = ['%s=%r' % (key, value)
8073
      for key, value in self.__dict__.iteritems()]
8074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8075
 
8076
  def __eq__(self, other):
8077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8078
 
8079
  def __ne__(self, other):
8080
    return not (self == other)
8081
 
8082
class getMasterAffiliateByName_args:
8083
  """
8084
  Attributes:
8085
   - name
8086
  """
8087
 
8088
  thrift_spec = (
8089
    None, # 0
8090
    (1, TType.STRING, 'name', None, None, ), # 1
8091
  )
8092
 
8093
  def __init__(self, name=None,):
8094
    self.name = name
8095
 
8096
  def read(self, iprot):
8097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8099
      return
8100
    iprot.readStructBegin()
8101
    while True:
8102
      (fname, ftype, fid) = iprot.readFieldBegin()
8103
      if ftype == TType.STOP:
8104
        break
8105
      if fid == 1:
8106
        if ftype == TType.STRING:
8107
          self.name = iprot.readString();
8108
        else:
8109
          iprot.skip(ftype)
8110
      else:
8111
        iprot.skip(ftype)
8112
      iprot.readFieldEnd()
8113
    iprot.readStructEnd()
8114
 
8115
  def write(self, oprot):
8116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8118
      return
8119
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8120
    if self.name is not None:
1845 vikas 8121
      oprot.writeFieldBegin('name', TType.STRING, 1)
8122
      oprot.writeString(self.name)
8123
      oprot.writeFieldEnd()
8124
    oprot.writeFieldStop()
8125
    oprot.writeStructEnd()
8126
 
3431 rajveer 8127
  def validate(self):
8128
    return
8129
 
8130
 
1845 vikas 8131
  def __repr__(self):
8132
    L = ['%s=%r' % (key, value)
8133
      for key, value in self.__dict__.iteritems()]
8134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8135
 
8136
  def __eq__(self, other):
8137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8138
 
8139
  def __ne__(self, other):
8140
    return not (self == other)
8141
 
8142
class getMasterAffiliateByName_result:
8143
  """
8144
  Attributes:
8145
   - success
8146
   - utx
8147
  """
8148
 
8149
  thrift_spec = (
8150
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8151
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8152
  )
8153
 
8154
  def __init__(self, success=None, utx=None,):
8155
    self.success = success
8156
    self.utx = utx
8157
 
8158
  def read(self, iprot):
8159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8161
      return
8162
    iprot.readStructBegin()
8163
    while True:
8164
      (fname, ftype, fid) = iprot.readFieldBegin()
8165
      if ftype == TType.STOP:
8166
        break
8167
      if fid == 0:
8168
        if ftype == TType.STRUCT:
8169
          self.success = MasterAffiliate()
8170
          self.success.read(iprot)
8171
        else:
8172
          iprot.skip(ftype)
8173
      elif fid == 1:
8174
        if ftype == TType.STRUCT:
1996 vikas 8175
          self.utx = UserAffiliateException()
1845 vikas 8176
          self.utx.read(iprot)
8177
        else:
8178
          iprot.skip(ftype)
8179
      else:
8180
        iprot.skip(ftype)
8181
      iprot.readFieldEnd()
8182
    iprot.readStructEnd()
8183
 
8184
  def write(self, oprot):
8185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8187
      return
8188
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8189
    if self.success is not None:
1845 vikas 8190
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8191
      self.success.write(oprot)
8192
      oprot.writeFieldEnd()
3431 rajveer 8193
    if self.utx is not None:
1845 vikas 8194
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8195
      self.utx.write(oprot)
8196
      oprot.writeFieldEnd()
8197
    oprot.writeFieldStop()
8198
    oprot.writeStructEnd()
8199
 
3431 rajveer 8200
  def validate(self):
8201
    return
8202
 
8203
 
1845 vikas 8204
  def __repr__(self):
8205
    L = ['%s=%r' % (key, value)
8206
      for key, value in self.__dict__.iteritems()]
8207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8208
 
8209
  def __eq__(self, other):
8210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8211
 
8212
  def __ne__(self, other):
8213
    return not (self == other)
8214
 
8215
class createAffiliate_args:
8216
  """
8217
  Attributes:
8218
   - name
8219
   - url
8220
   - masterAffiliateId
1859 vikas 8221
   - addedOn
1845 vikas 8222
  """
8223
 
8224
  thrift_spec = (
8225
    None, # 0
8226
    (1, TType.STRING, 'name', None, None, ), # 1
8227
    (2, TType.STRING, 'url', None, None, ), # 2
8228
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8229
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8230
  )
8231
 
1859 vikas 8232
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8233
    self.name = name
8234
    self.url = url
8235
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8236
    self.addedOn = addedOn
1845 vikas 8237
 
8238
  def read(self, iprot):
8239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8241
      return
8242
    iprot.readStructBegin()
8243
    while True:
8244
      (fname, ftype, fid) = iprot.readFieldBegin()
8245
      if ftype == TType.STOP:
8246
        break
8247
      if fid == 1:
8248
        if ftype == TType.STRING:
8249
          self.name = iprot.readString();
8250
        else:
8251
          iprot.skip(ftype)
8252
      elif fid == 2:
8253
        if ftype == TType.STRING:
8254
          self.url = iprot.readString();
8255
        else:
8256
          iprot.skip(ftype)
8257
      elif fid == 3:
8258
        if ftype == TType.I64:
8259
          self.masterAffiliateId = iprot.readI64();
8260
        else:
8261
          iprot.skip(ftype)
1859 vikas 8262
      elif fid == 4:
8263
        if ftype == TType.I64:
8264
          self.addedOn = iprot.readI64();
8265
        else:
8266
          iprot.skip(ftype)
1845 vikas 8267
      else:
8268
        iprot.skip(ftype)
8269
      iprot.readFieldEnd()
8270
    iprot.readStructEnd()
8271
 
8272
  def write(self, oprot):
8273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8275
      return
8276
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8277
    if self.name is not None:
1845 vikas 8278
      oprot.writeFieldBegin('name', TType.STRING, 1)
8279
      oprot.writeString(self.name)
8280
      oprot.writeFieldEnd()
3431 rajveer 8281
    if self.url is not None:
1845 vikas 8282
      oprot.writeFieldBegin('url', TType.STRING, 2)
8283
      oprot.writeString(self.url)
8284
      oprot.writeFieldEnd()
3431 rajveer 8285
    if self.masterAffiliateId is not None:
1845 vikas 8286
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8287
      oprot.writeI64(self.masterAffiliateId)
8288
      oprot.writeFieldEnd()
3431 rajveer 8289
    if self.addedOn is not None:
1859 vikas 8290
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8291
      oprot.writeI64(self.addedOn)
8292
      oprot.writeFieldEnd()
1845 vikas 8293
    oprot.writeFieldStop()
8294
    oprot.writeStructEnd()
8295
 
3431 rajveer 8296
  def validate(self):
8297
    return
8298
 
8299
 
1845 vikas 8300
  def __repr__(self):
8301
    L = ['%s=%r' % (key, value)
8302
      for key, value in self.__dict__.iteritems()]
8303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8304
 
8305
  def __eq__(self, other):
8306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8307
 
8308
  def __ne__(self, other):
8309
    return not (self == other)
8310
 
8311
class createAffiliate_result:
8312
  """
8313
  Attributes:
8314
   - success
8315
   - utx
8316
  """
8317
 
8318
  thrift_spec = (
8319
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8320
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8321
  )
8322
 
8323
  def __init__(self, success=None, utx=None,):
8324
    self.success = success
8325
    self.utx = utx
8326
 
8327
  def read(self, iprot):
8328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8330
      return
8331
    iprot.readStructBegin()
8332
    while True:
8333
      (fname, ftype, fid) = iprot.readFieldBegin()
8334
      if ftype == TType.STOP:
8335
        break
8336
      if fid == 0:
8337
        if ftype == TType.STRUCT:
8338
          self.success = Affiliate()
8339
          self.success.read(iprot)
8340
        else:
8341
          iprot.skip(ftype)
8342
      elif fid == 1:
8343
        if ftype == TType.STRUCT:
1996 vikas 8344
          self.utx = UserAffiliateException()
1845 vikas 8345
          self.utx.read(iprot)
8346
        else:
8347
          iprot.skip(ftype)
8348
      else:
8349
        iprot.skip(ftype)
8350
      iprot.readFieldEnd()
8351
    iprot.readStructEnd()
8352
 
8353
  def write(self, oprot):
8354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8356
      return
8357
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8358
    if self.success is not None:
1845 vikas 8359
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8360
      self.success.write(oprot)
8361
      oprot.writeFieldEnd()
3431 rajveer 8362
    if self.utx is not None:
1845 vikas 8363
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8364
      self.utx.write(oprot)
8365
      oprot.writeFieldEnd()
8366
    oprot.writeFieldStop()
8367
    oprot.writeStructEnd()
8368
 
3431 rajveer 8369
  def validate(self):
8370
    return
8371
 
8372
 
1845 vikas 8373
  def __repr__(self):
8374
    L = ['%s=%r' % (key, value)
8375
      for key, value in self.__dict__.iteritems()]
8376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8377
 
8378
  def __eq__(self, other):
8379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8380
 
8381
  def __ne__(self, other):
8382
    return not (self == other)
8383
 
8384
class getAffiliateById_args:
8385
  """
8386
  Attributes:
8387
   - id
8388
  """
8389
 
8390
  thrift_spec = (
8391
    None, # 0
8392
    (1, TType.I64, 'id', None, None, ), # 1
8393
  )
8394
 
8395
  def __init__(self, id=None,):
8396
    self.id = id
8397
 
8398
  def read(self, iprot):
8399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8401
      return
8402
    iprot.readStructBegin()
8403
    while True:
8404
      (fname, ftype, fid) = iprot.readFieldBegin()
8405
      if ftype == TType.STOP:
8406
        break
8407
      if fid == 1:
8408
        if ftype == TType.I64:
8409
          self.id = iprot.readI64();
8410
        else:
8411
          iprot.skip(ftype)
8412
      else:
8413
        iprot.skip(ftype)
8414
      iprot.readFieldEnd()
8415
    iprot.readStructEnd()
8416
 
8417
  def write(self, oprot):
8418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8420
      return
8421
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8422
    if self.id is not None:
1845 vikas 8423
      oprot.writeFieldBegin('id', TType.I64, 1)
8424
      oprot.writeI64(self.id)
8425
      oprot.writeFieldEnd()
8426
    oprot.writeFieldStop()
8427
    oprot.writeStructEnd()
8428
 
3431 rajveer 8429
  def validate(self):
8430
    return
8431
 
8432
 
1845 vikas 8433
  def __repr__(self):
8434
    L = ['%s=%r' % (key, value)
8435
      for key, value in self.__dict__.iteritems()]
8436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8437
 
8438
  def __eq__(self, other):
8439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8440
 
8441
  def __ne__(self, other):
8442
    return not (self == other)
8443
 
8444
class getAffiliateById_result:
8445
  """
8446
  Attributes:
8447
   - success
8448
   - utx
8449
  """
8450
 
8451
  thrift_spec = (
8452
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8453
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8454
  )
8455
 
8456
  def __init__(self, success=None, utx=None,):
8457
    self.success = success
8458
    self.utx = utx
8459
 
8460
  def read(self, iprot):
8461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8463
      return
8464
    iprot.readStructBegin()
8465
    while True:
8466
      (fname, ftype, fid) = iprot.readFieldBegin()
8467
      if ftype == TType.STOP:
8468
        break
8469
      if fid == 0:
8470
        if ftype == TType.STRUCT:
8471
          self.success = Affiliate()
8472
          self.success.read(iprot)
8473
        else:
8474
          iprot.skip(ftype)
8475
      elif fid == 1:
8476
        if ftype == TType.STRUCT:
1996 vikas 8477
          self.utx = UserAffiliateException()
1845 vikas 8478
          self.utx.read(iprot)
8479
        else:
8480
          iprot.skip(ftype)
8481
      else:
8482
        iprot.skip(ftype)
8483
      iprot.readFieldEnd()
8484
    iprot.readStructEnd()
8485
 
8486
  def write(self, oprot):
8487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8489
      return
8490
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8491
    if self.success is not None:
1845 vikas 8492
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8493
      self.success.write(oprot)
8494
      oprot.writeFieldEnd()
3431 rajveer 8495
    if self.utx is not None:
1845 vikas 8496
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8497
      self.utx.write(oprot)
8498
      oprot.writeFieldEnd()
8499
    oprot.writeFieldStop()
8500
    oprot.writeStructEnd()
8501
 
3431 rajveer 8502
  def validate(self):
8503
    return
8504
 
8505
 
1845 vikas 8506
  def __repr__(self):
8507
    L = ['%s=%r' % (key, value)
8508
      for key, value in self.__dict__.iteritems()]
8509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8510
 
8511
  def __eq__(self, other):
8512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8513
 
8514
  def __ne__(self, other):
8515
    return not (self == other)
8516
 
8517
class getAffiliateByName_args:
8518
  """
8519
  Attributes:
8520
   - name
8521
  """
8522
 
8523
  thrift_spec = (
8524
    None, # 0
8525
    (1, TType.STRING, 'name', None, None, ), # 1
8526
  )
8527
 
8528
  def __init__(self, name=None,):
8529
    self.name = name
8530
 
8531
  def read(self, iprot):
8532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8534
      return
8535
    iprot.readStructBegin()
8536
    while True:
8537
      (fname, ftype, fid) = iprot.readFieldBegin()
8538
      if ftype == TType.STOP:
8539
        break
8540
      if fid == 1:
8541
        if ftype == TType.STRING:
8542
          self.name = iprot.readString();
8543
        else:
8544
          iprot.skip(ftype)
8545
      else:
8546
        iprot.skip(ftype)
8547
      iprot.readFieldEnd()
8548
    iprot.readStructEnd()
8549
 
8550
  def write(self, oprot):
8551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8553
      return
8554
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8555
    if self.name is not None:
1845 vikas 8556
      oprot.writeFieldBegin('name', TType.STRING, 1)
8557
      oprot.writeString(self.name)
8558
      oprot.writeFieldEnd()
8559
    oprot.writeFieldStop()
8560
    oprot.writeStructEnd()
8561
 
3431 rajveer 8562
  def validate(self):
8563
    return
8564
 
8565
 
1845 vikas 8566
  def __repr__(self):
8567
    L = ['%s=%r' % (key, value)
8568
      for key, value in self.__dict__.iteritems()]
8569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8570
 
8571
  def __eq__(self, other):
8572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8573
 
8574
  def __ne__(self, other):
8575
    return not (self == other)
8576
 
8577
class getAffiliateByName_result:
8578
  """
8579
  Attributes:
8580
   - success
8581
   - utx
8582
  """
8583
 
8584
  thrift_spec = (
8585
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8586
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8587
  )
8588
 
8589
  def __init__(self, success=None, utx=None,):
8590
    self.success = success
8591
    self.utx = utx
8592
 
8593
  def read(self, iprot):
8594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8596
      return
8597
    iprot.readStructBegin()
8598
    while True:
8599
      (fname, ftype, fid) = iprot.readFieldBegin()
8600
      if ftype == TType.STOP:
8601
        break
8602
      if fid == 0:
8603
        if ftype == TType.STRUCT:
8604
          self.success = Affiliate()
8605
          self.success.read(iprot)
8606
        else:
8607
          iprot.skip(ftype)
8608
      elif fid == 1:
8609
        if ftype == TType.STRUCT:
1996 vikas 8610
          self.utx = UserAffiliateException()
1845 vikas 8611
          self.utx.read(iprot)
8612
        else:
8613
          iprot.skip(ftype)
8614
      else:
8615
        iprot.skip(ftype)
8616
      iprot.readFieldEnd()
8617
    iprot.readStructEnd()
8618
 
8619
  def write(self, oprot):
8620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8622
      return
8623
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8624
    if self.success is not None:
1845 vikas 8625
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8626
      self.success.write(oprot)
8627
      oprot.writeFieldEnd()
3431 rajveer 8628
    if self.utx is not None:
1845 vikas 8629
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8630
      self.utx.write(oprot)
8631
      oprot.writeFieldEnd()
8632
    oprot.writeFieldStop()
8633
    oprot.writeStructEnd()
8634
 
3431 rajveer 8635
  def validate(self):
8636
    return
8637
 
8638
 
1845 vikas 8639
  def __repr__(self):
8640
    L = ['%s=%r' % (key, value)
8641
      for key, value in self.__dict__.iteritems()]
8642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8643
 
8644
  def __eq__(self, other):
8645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8646
 
8647
  def __ne__(self, other):
8648
    return not (self == other)
8649
 
1996 vikas 8650
class getTrackerById_args:
1845 vikas 8651
  """
8652
  Attributes:
8653
   - id
8654
  """
8655
 
8656
  thrift_spec = (
8657
    None, # 0
8658
    (1, TType.I64, 'id', None, None, ), # 1
8659
  )
8660
 
8661
  def __init__(self, id=None,):
8662
    self.id = id
8663
 
8664
  def read(self, iprot):
8665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8667
      return
8668
    iprot.readStructBegin()
8669
    while True:
8670
      (fname, ftype, fid) = iprot.readFieldBegin()
8671
      if ftype == TType.STOP:
8672
        break
8673
      if fid == 1:
8674
        if ftype == TType.I64:
8675
          self.id = iprot.readI64();
8676
        else:
8677
          iprot.skip(ftype)
8678
      else:
8679
        iprot.skip(ftype)
8680
      iprot.readFieldEnd()
8681
    iprot.readStructEnd()
8682
 
8683
  def write(self, oprot):
8684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8686
      return
1996 vikas 8687
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8688
    if self.id is not None:
1845 vikas 8689
      oprot.writeFieldBegin('id', TType.I64, 1)
8690
      oprot.writeI64(self.id)
8691
      oprot.writeFieldEnd()
8692
    oprot.writeFieldStop()
8693
    oprot.writeStructEnd()
8694
 
3431 rajveer 8695
  def validate(self):
8696
    return
8697
 
8698
 
1845 vikas 8699
  def __repr__(self):
8700
    L = ['%s=%r' % (key, value)
8701
      for key, value in self.__dict__.iteritems()]
8702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8703
 
8704
  def __eq__(self, other):
8705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8706
 
8707
  def __ne__(self, other):
8708
    return not (self == other)
8709
 
8710
class getTrackerById_result:
8711
  """
8712
  Attributes:
8713
   - success
8714
   - utx
8715
  """
8716
 
8717
  thrift_spec = (
8718
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8719
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8720
  )
8721
 
8722
  def __init__(self, success=None, utx=None,):
8723
    self.success = success
8724
    self.utx = utx
8725
 
8726
  def read(self, iprot):
8727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8729
      return
8730
    iprot.readStructBegin()
8731
    while True:
8732
      (fname, ftype, fid) = iprot.readFieldBegin()
8733
      if ftype == TType.STOP:
8734
        break
8735
      if fid == 0:
8736
        if ftype == TType.STRUCT:
8737
          self.success = Tracker()
8738
          self.success.read(iprot)
8739
        else:
8740
          iprot.skip(ftype)
8741
      elif fid == 1:
8742
        if ftype == TType.STRUCT:
1996 vikas 8743
          self.utx = UserAffiliateException()
1845 vikas 8744
          self.utx.read(iprot)
8745
        else:
8746
          iprot.skip(ftype)
8747
      else:
8748
        iprot.skip(ftype)
8749
      iprot.readFieldEnd()
8750
    iprot.readStructEnd()
8751
 
8752
  def write(self, oprot):
8753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8755
      return
8756
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8757
    if self.success is not None:
1845 vikas 8758
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8759
      self.success.write(oprot)
8760
      oprot.writeFieldEnd()
3431 rajveer 8761
    if self.utx is not None:
1845 vikas 8762
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8763
      self.utx.write(oprot)
8764
      oprot.writeFieldEnd()
8765
    oprot.writeFieldStop()
8766
    oprot.writeStructEnd()
8767
 
3431 rajveer 8768
  def validate(self):
8769
    return
8770
 
8771
 
1845 vikas 8772
  def __repr__(self):
8773
    L = ['%s=%r' % (key, value)
8774
      for key, value in self.__dict__.iteritems()]
8775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8776
 
8777
  def __eq__(self, other):
8778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8779
 
8780
  def __ne__(self, other):
8781
    return not (self == other)
8782
 
1996 vikas 8783
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8784
  """
8785
  Attributes:
1996 vikas 8786
   - id
1845 vikas 8787
  """
8788
 
8789
  thrift_spec = (
8790
    None, # 0
1996 vikas 8791
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8792
  )
8793
 
1996 vikas 8794
  def __init__(self, id=None,):
8795
    self.id = id
1845 vikas 8796
 
8797
  def read(self, iprot):
8798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8800
      return
8801
    iprot.readStructBegin()
8802
    while True:
8803
      (fname, ftype, fid) = iprot.readFieldBegin()
8804
      if ftype == TType.STOP:
8805
        break
8806
      if fid == 1:
8807
        if ftype == TType.I64:
1996 vikas 8808
          self.id = iprot.readI64();
1845 vikas 8809
        else:
8810
          iprot.skip(ftype)
8811
      else:
8812
        iprot.skip(ftype)
8813
      iprot.readFieldEnd()
8814
    iprot.readStructEnd()
8815
 
8816
  def write(self, oprot):
8817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8819
      return
1996 vikas 8820
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8821
    if self.id is not None:
1996 vikas 8822
      oprot.writeFieldBegin('id', TType.I64, 1)
8823
      oprot.writeI64(self.id)
1845 vikas 8824
      oprot.writeFieldEnd()
8825
    oprot.writeFieldStop()
8826
    oprot.writeStructEnd()
8827
 
3431 rajveer 8828
  def validate(self):
8829
    return
8830
 
8831
 
1845 vikas 8832
  def __repr__(self):
8833
    L = ['%s=%r' % (key, value)
8834
      for key, value in self.__dict__.iteritems()]
8835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8836
 
8837
  def __eq__(self, other):
8838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8839
 
8840
  def __ne__(self, other):
8841
    return not (self == other)
8842
 
1996 vikas 8843
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8844
  """
8845
  Attributes:
8846
   - success
8847
   - utx
8848
  """
8849
 
8850
  thrift_spec = (
1996 vikas 8851
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8852
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8853
  )
8854
 
8855
  def __init__(self, success=None, utx=None,):
8856
    self.success = success
8857
    self.utx = utx
8858
 
8859
  def read(self, iprot):
8860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8862
      return
8863
    iprot.readStructBegin()
8864
    while True:
8865
      (fname, ftype, fid) = iprot.readFieldBegin()
8866
      if ftype == TType.STOP:
8867
        break
8868
      if fid == 0:
8869
        if ftype == TType.LIST:
8870
          self.success = []
6736 amit.gupta 8871
          (_etype114, _size111) = iprot.readListBegin()
8872
          for _i115 in xrange(_size111):
8873
            _elem116 = Affiliate()
8874
            _elem116.read(iprot)
8875
            self.success.append(_elem116)
1845 vikas 8876
          iprot.readListEnd()
8877
        else:
8878
          iprot.skip(ftype)
8879
      elif fid == 1:
8880
        if ftype == TType.STRUCT:
1996 vikas 8881
          self.utx = UserAffiliateException()
1845 vikas 8882
          self.utx.read(iprot)
8883
        else:
8884
          iprot.skip(ftype)
8885
      else:
8886
        iprot.skip(ftype)
8887
      iprot.readFieldEnd()
8888
    iprot.readStructEnd()
8889
 
8890
  def write(self, oprot):
8891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8893
      return
1996 vikas 8894
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8895
    if self.success is not None:
1845 vikas 8896
      oprot.writeFieldBegin('success', TType.LIST, 0)
8897
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 8898
      for iter117 in self.success:
8899
        iter117.write(oprot)
1845 vikas 8900
      oprot.writeListEnd()
8901
      oprot.writeFieldEnd()
3431 rajveer 8902
    if self.utx is not None:
1845 vikas 8903
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8904
      self.utx.write(oprot)
8905
      oprot.writeFieldEnd()
8906
    oprot.writeFieldStop()
8907
    oprot.writeStructEnd()
8908
 
3431 rajveer 8909
  def validate(self):
8910
    return
8911
 
8912
 
1845 vikas 8913
  def __repr__(self):
8914
    L = ['%s=%r' % (key, value)
8915
      for key, value in self.__dict__.iteritems()]
8916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8917
 
8918
  def __eq__(self, other):
8919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8920
 
8921
  def __ne__(self, other):
8922
    return not (self == other)
8923
 
8924
class addTrackLog_args:
8925
  """
8926
  Attributes:
1996 vikas 8927
   - affiliateId
1845 vikas 8928
   - userId
8929
   - event
8930
   - url
8931
   - data
1859 vikas 8932
   - addedOn
1845 vikas 8933
  """
8934
 
8935
  thrift_spec = (
8936
    None, # 0
1996 vikas 8937
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8938
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8939
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8940
    (4, TType.STRING, 'url', None, None, ), # 4
8941
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8942
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8943
  )
8944
 
1996 vikas 8945
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8946
    self.affiliateId = affiliateId
1845 vikas 8947
    self.userId = userId
8948
    self.event = event
8949
    self.url = url
8950
    self.data = data
1859 vikas 8951
    self.addedOn = addedOn
1845 vikas 8952
 
8953
  def read(self, iprot):
8954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8956
      return
8957
    iprot.readStructBegin()
8958
    while True:
8959
      (fname, ftype, fid) = iprot.readFieldBegin()
8960
      if ftype == TType.STOP:
8961
        break
8962
      if fid == 1:
8963
        if ftype == TType.I64:
1996 vikas 8964
          self.affiliateId = iprot.readI64();
1845 vikas 8965
        else:
8966
          iprot.skip(ftype)
8967
      elif fid == 2:
8968
        if ftype == TType.I64:
8969
          self.userId = iprot.readI64();
8970
        else:
8971
          iprot.skip(ftype)
8972
      elif fid == 3:
3378 vikas 8973
        if ftype == TType.I32:
8974
          self.event = iprot.readI32();
1845 vikas 8975
        else:
8976
          iprot.skip(ftype)
8977
      elif fid == 4:
8978
        if ftype == TType.STRING:
8979
          self.url = iprot.readString();
8980
        else:
8981
          iprot.skip(ftype)
8982
      elif fid == 5:
8983
        if ftype == TType.STRING:
8984
          self.data = iprot.readString();
8985
        else:
8986
          iprot.skip(ftype)
1859 vikas 8987
      elif fid == 6:
8988
        if ftype == TType.I64:
8989
          self.addedOn = iprot.readI64();
8990
        else:
8991
          iprot.skip(ftype)
1845 vikas 8992
      else:
8993
        iprot.skip(ftype)
8994
      iprot.readFieldEnd()
8995
    iprot.readStructEnd()
8996
 
8997
  def write(self, oprot):
8998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9000
      return
9001
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 9002
    if self.affiliateId is not None:
1996 vikas 9003
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9004
      oprot.writeI64(self.affiliateId)
1845 vikas 9005
      oprot.writeFieldEnd()
3431 rajveer 9006
    if self.userId is not None:
1845 vikas 9007
      oprot.writeFieldBegin('userId', TType.I64, 2)
9008
      oprot.writeI64(self.userId)
9009
      oprot.writeFieldEnd()
3431 rajveer 9010
    if self.event is not None:
3378 vikas 9011
      oprot.writeFieldBegin('event', TType.I32, 3)
9012
      oprot.writeI32(self.event)
1845 vikas 9013
      oprot.writeFieldEnd()
3431 rajveer 9014
    if self.url is not None:
1845 vikas 9015
      oprot.writeFieldBegin('url', TType.STRING, 4)
9016
      oprot.writeString(self.url)
9017
      oprot.writeFieldEnd()
3431 rajveer 9018
    if self.data is not None:
1845 vikas 9019
      oprot.writeFieldBegin('data', TType.STRING, 5)
9020
      oprot.writeString(self.data)
9021
      oprot.writeFieldEnd()
3431 rajveer 9022
    if self.addedOn is not None:
1859 vikas 9023
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
9024
      oprot.writeI64(self.addedOn)
9025
      oprot.writeFieldEnd()
1845 vikas 9026
    oprot.writeFieldStop()
9027
    oprot.writeStructEnd()
9028
 
3431 rajveer 9029
  def validate(self):
9030
    return
9031
 
9032
 
1845 vikas 9033
  def __repr__(self):
9034
    L = ['%s=%r' % (key, value)
9035
      for key, value in self.__dict__.iteritems()]
9036
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9037
 
9038
  def __eq__(self, other):
9039
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9040
 
9041
  def __ne__(self, other):
9042
    return not (self == other)
9043
 
9044
class addTrackLog_result:
9045
  """
9046
  Attributes:
9047
   - success
9048
   - utx
9049
  """
9050
 
9051
  thrift_spec = (
9052
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 9053
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9054
  )
9055
 
9056
  def __init__(self, success=None, utx=None,):
9057
    self.success = success
9058
    self.utx = utx
9059
 
9060
  def read(self, iprot):
9061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9063
      return
9064
    iprot.readStructBegin()
9065
    while True:
9066
      (fname, ftype, fid) = iprot.readFieldBegin()
9067
      if ftype == TType.STOP:
9068
        break
9069
      if fid == 0:
9070
        if ftype == TType.I64:
9071
          self.success = iprot.readI64();
9072
        else:
9073
          iprot.skip(ftype)
9074
      elif fid == 1:
9075
        if ftype == TType.STRUCT:
1996 vikas 9076
          self.utx = UserAffiliateException()
1845 vikas 9077
          self.utx.read(iprot)
9078
        else:
9079
          iprot.skip(ftype)
9080
      else:
9081
        iprot.skip(ftype)
9082
      iprot.readFieldEnd()
9083
    iprot.readStructEnd()
9084
 
9085
  def write(self, oprot):
9086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9088
      return
9089
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 9090
    if self.success is not None:
1845 vikas 9091
      oprot.writeFieldBegin('success', TType.I64, 0)
9092
      oprot.writeI64(self.success)
9093
      oprot.writeFieldEnd()
3431 rajveer 9094
    if self.utx is not None:
1845 vikas 9095
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9096
      self.utx.write(oprot)
9097
      oprot.writeFieldEnd()
9098
    oprot.writeFieldStop()
9099
    oprot.writeStructEnd()
9100
 
3431 rajveer 9101
  def validate(self):
9102
    return
9103
 
9104
 
1845 vikas 9105
  def __repr__(self):
9106
    L = ['%s=%r' % (key, value)
9107
      for key, value in self.__dict__.iteritems()]
9108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9109
 
9110
  def __eq__(self, other):
9111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9112
 
9113
  def __ne__(self, other):
9114
    return not (self == other)
9115
 
9116
class getTrackLogById_args:
9117
  """
9118
  Attributes:
9119
   - id
9120
  """
9121
 
9122
  thrift_spec = (
9123
    None, # 0
9124
    (1, TType.I64, 'id', None, None, ), # 1
9125
  )
9126
 
9127
  def __init__(self, id=None,):
9128
    self.id = id
9129
 
9130
  def read(self, iprot):
9131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9133
      return
9134
    iprot.readStructBegin()
9135
    while True:
9136
      (fname, ftype, fid) = iprot.readFieldBegin()
9137
      if ftype == TType.STOP:
9138
        break
9139
      if fid == 1:
9140
        if ftype == TType.I64:
9141
          self.id = iprot.readI64();
9142
        else:
9143
          iprot.skip(ftype)
9144
      else:
9145
        iprot.skip(ftype)
9146
      iprot.readFieldEnd()
9147
    iprot.readStructEnd()
9148
 
9149
  def write(self, oprot):
9150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9152
      return
9153
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9154
    if self.id is not None:
1845 vikas 9155
      oprot.writeFieldBegin('id', TType.I64, 1)
9156
      oprot.writeI64(self.id)
9157
      oprot.writeFieldEnd()
9158
    oprot.writeFieldStop()
9159
    oprot.writeStructEnd()
9160
 
3431 rajveer 9161
  def validate(self):
9162
    return
9163
 
9164
 
1845 vikas 9165
  def __repr__(self):
9166
    L = ['%s=%r' % (key, value)
9167
      for key, value in self.__dict__.iteritems()]
9168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9169
 
9170
  def __eq__(self, other):
9171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9172
 
9173
  def __ne__(self, other):
9174
    return not (self == other)
9175
 
9176
class getTrackLogById_result:
9177
  """
9178
  Attributes:
9179
   - success
9180
   - utx
9181
  """
9182
 
9183
  thrift_spec = (
9184
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9185
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9186
  )
9187
 
9188
  def __init__(self, success=None, utx=None,):
9189
    self.success = success
9190
    self.utx = utx
9191
 
9192
  def read(self, iprot):
9193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9195
      return
9196
    iprot.readStructBegin()
9197
    while True:
9198
      (fname, ftype, fid) = iprot.readFieldBegin()
9199
      if ftype == TType.STOP:
9200
        break
9201
      if fid == 0:
9202
        if ftype == TType.STRUCT:
9203
          self.success = TrackLog()
9204
          self.success.read(iprot)
9205
        else:
9206
          iprot.skip(ftype)
9207
      elif fid == 1:
9208
        if ftype == TType.STRUCT:
1996 vikas 9209
          self.utx = UserAffiliateException()
1845 vikas 9210
          self.utx.read(iprot)
9211
        else:
9212
          iprot.skip(ftype)
9213
      else:
9214
        iprot.skip(ftype)
9215
      iprot.readFieldEnd()
9216
    iprot.readStructEnd()
9217
 
9218
  def write(self, oprot):
9219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9221
      return
9222
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9223
    if self.success is not None:
1845 vikas 9224
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9225
      self.success.write(oprot)
9226
      oprot.writeFieldEnd()
3431 rajveer 9227
    if self.utx is not None:
1845 vikas 9228
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9229
      self.utx.write(oprot)
9230
      oprot.writeFieldEnd()
9231
    oprot.writeFieldStop()
9232
    oprot.writeStructEnd()
9233
 
3431 rajveer 9234
  def validate(self):
9235
    return
9236
 
9237
 
1845 vikas 9238
  def __repr__(self):
9239
    L = ['%s=%r' % (key, value)
9240
      for key, value in self.__dict__.iteritems()]
9241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9242
 
9243
  def __eq__(self, other):
9244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9245
 
9246
  def __ne__(self, other):
9247
    return not (self == other)
9248
 
1996 vikas 9249
class getTrackLogsByAffiliate_args:
1845 vikas 9250
  """
9251
  Attributes:
1996 vikas 9252
   - affiliateId
3293 vikas 9253
   - startDate
9254
   - endDate
1845 vikas 9255
  """
9256
 
9257
  thrift_spec = (
9258
    None, # 0
1996 vikas 9259
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9260
    (2, TType.I64, 'startDate', None, None, ), # 2
9261
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9262
  )
9263
 
3293 vikas 9264
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9265
    self.affiliateId = affiliateId
3293 vikas 9266
    self.startDate = startDate
9267
    self.endDate = endDate
1845 vikas 9268
 
9269
  def read(self, iprot):
9270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9272
      return
9273
    iprot.readStructBegin()
9274
    while True:
9275
      (fname, ftype, fid) = iprot.readFieldBegin()
9276
      if ftype == TType.STOP:
9277
        break
9278
      if fid == 1:
9279
        if ftype == TType.I64:
1996 vikas 9280
          self.affiliateId = iprot.readI64();
1845 vikas 9281
        else:
9282
          iprot.skip(ftype)
3293 vikas 9283
      elif fid == 2:
9284
        if ftype == TType.I64:
9285
          self.startDate = iprot.readI64();
9286
        else:
9287
          iprot.skip(ftype)
9288
      elif fid == 3:
9289
        if ftype == TType.I64:
9290
          self.endDate = iprot.readI64();
9291
        else:
9292
          iprot.skip(ftype)
1845 vikas 9293
      else:
9294
        iprot.skip(ftype)
9295
      iprot.readFieldEnd()
9296
    iprot.readStructEnd()
9297
 
9298
  def write(self, oprot):
9299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9301
      return
1996 vikas 9302
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9303
    if self.affiliateId is not None:
1996 vikas 9304
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9305
      oprot.writeI64(self.affiliateId)
1845 vikas 9306
      oprot.writeFieldEnd()
3431 rajveer 9307
    if self.startDate is not None:
3293 vikas 9308
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9309
      oprot.writeI64(self.startDate)
9310
      oprot.writeFieldEnd()
3431 rajveer 9311
    if self.endDate is not None:
3293 vikas 9312
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9313
      oprot.writeI64(self.endDate)
9314
      oprot.writeFieldEnd()
1845 vikas 9315
    oprot.writeFieldStop()
9316
    oprot.writeStructEnd()
9317
 
3431 rajveer 9318
  def validate(self):
9319
    return
9320
 
9321
 
1845 vikas 9322
  def __repr__(self):
9323
    L = ['%s=%r' % (key, value)
9324
      for key, value in self.__dict__.iteritems()]
9325
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9326
 
9327
  def __eq__(self, other):
9328
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9329
 
9330
  def __ne__(self, other):
9331
    return not (self == other)
9332
 
1996 vikas 9333
class getTrackLogsByAffiliate_result:
1845 vikas 9334
  """
9335
  Attributes:
9336
   - success
9337
   - utx
9338
  """
9339
 
9340
  thrift_spec = (
9341
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9342
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9343
  )
9344
 
9345
  def __init__(self, success=None, utx=None,):
9346
    self.success = success
9347
    self.utx = utx
9348
 
9349
  def read(self, iprot):
9350
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9351
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9352
      return
9353
    iprot.readStructBegin()
9354
    while True:
9355
      (fname, ftype, fid) = iprot.readFieldBegin()
9356
      if ftype == TType.STOP:
9357
        break
9358
      if fid == 0:
9359
        if ftype == TType.LIST:
9360
          self.success = []
6736 amit.gupta 9361
          (_etype121, _size118) = iprot.readListBegin()
9362
          for _i122 in xrange(_size118):
9363
            _elem123 = TrackLog()
9364
            _elem123.read(iprot)
9365
            self.success.append(_elem123)
1845 vikas 9366
          iprot.readListEnd()
9367
        else:
9368
          iprot.skip(ftype)
9369
      elif fid == 1:
9370
        if ftype == TType.STRUCT:
1996 vikas 9371
          self.utx = UserAffiliateException()
1845 vikas 9372
          self.utx.read(iprot)
9373
        else:
9374
          iprot.skip(ftype)
9375
      else:
9376
        iprot.skip(ftype)
9377
      iprot.readFieldEnd()
9378
    iprot.readStructEnd()
9379
 
9380
  def write(self, oprot):
9381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9383
      return
1996 vikas 9384
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9385
    if self.success is not None:
1845 vikas 9386
      oprot.writeFieldBegin('success', TType.LIST, 0)
9387
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9388
      for iter124 in self.success:
9389
        iter124.write(oprot)
1845 vikas 9390
      oprot.writeListEnd()
9391
      oprot.writeFieldEnd()
3431 rajveer 9392
    if self.utx is not None:
1845 vikas 9393
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9394
      self.utx.write(oprot)
9395
      oprot.writeFieldEnd()
9396
    oprot.writeFieldStop()
9397
    oprot.writeStructEnd()
9398
 
3431 rajveer 9399
  def validate(self):
9400
    return
9401
 
9402
 
1845 vikas 9403
  def __repr__(self):
9404
    L = ['%s=%r' % (key, value)
9405
      for key, value in self.__dict__.iteritems()]
9406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9407
 
9408
  def __eq__(self, other):
9409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9410
 
9411
  def __ne__(self, other):
9412
    return not (self == other)
9413
 
9414
class getTrackLogsByUser_args:
9415
  """
9416
  Attributes:
9417
   - userId
9418
  """
9419
 
9420
  thrift_spec = (
9421
    None, # 0
9422
    (1, TType.I64, 'userId', None, None, ), # 1
9423
  )
9424
 
9425
  def __init__(self, userId=None,):
9426
    self.userId = userId
9427
 
9428
  def read(self, iprot):
9429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9431
      return
9432
    iprot.readStructBegin()
9433
    while True:
9434
      (fname, ftype, fid) = iprot.readFieldBegin()
9435
      if ftype == TType.STOP:
9436
        break
9437
      if fid == 1:
9438
        if ftype == TType.I64:
9439
          self.userId = iprot.readI64();
9440
        else:
9441
          iprot.skip(ftype)
9442
      else:
9443
        iprot.skip(ftype)
9444
      iprot.readFieldEnd()
9445
    iprot.readStructEnd()
9446
 
9447
  def write(self, oprot):
9448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9450
      return
9451
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9452
    if self.userId is not None:
1845 vikas 9453
      oprot.writeFieldBegin('userId', TType.I64, 1)
9454
      oprot.writeI64(self.userId)
9455
      oprot.writeFieldEnd()
9456
    oprot.writeFieldStop()
9457
    oprot.writeStructEnd()
9458
 
3431 rajveer 9459
  def validate(self):
9460
    return
9461
 
9462
 
1845 vikas 9463
  def __repr__(self):
9464
    L = ['%s=%r' % (key, value)
9465
      for key, value in self.__dict__.iteritems()]
9466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9467
 
9468
  def __eq__(self, other):
9469
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9470
 
9471
  def __ne__(self, other):
9472
    return not (self == other)
9473
 
9474
class getTrackLogsByUser_result:
9475
  """
9476
  Attributes:
9477
   - success
9478
   - utx
9479
  """
9480
 
9481
  thrift_spec = (
9482
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9483
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9484
  )
9485
 
9486
  def __init__(self, success=None, utx=None,):
9487
    self.success = success
9488
    self.utx = utx
9489
 
9490
  def read(self, iprot):
9491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9493
      return
9494
    iprot.readStructBegin()
9495
    while True:
9496
      (fname, ftype, fid) = iprot.readFieldBegin()
9497
      if ftype == TType.STOP:
9498
        break
9499
      if fid == 0:
9500
        if ftype == TType.LIST:
9501
          self.success = []
6736 amit.gupta 9502
          (_etype128, _size125) = iprot.readListBegin()
9503
          for _i129 in xrange(_size125):
9504
            _elem130 = TrackLog()
9505
            _elem130.read(iprot)
9506
            self.success.append(_elem130)
1845 vikas 9507
          iprot.readListEnd()
9508
        else:
9509
          iprot.skip(ftype)
9510
      elif fid == 1:
9511
        if ftype == TType.STRUCT:
1996 vikas 9512
          self.utx = UserAffiliateException()
1845 vikas 9513
          self.utx.read(iprot)
9514
        else:
9515
          iprot.skip(ftype)
9516
      else:
9517
        iprot.skip(ftype)
9518
      iprot.readFieldEnd()
9519
    iprot.readStructEnd()
9520
 
9521
  def write(self, oprot):
9522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9524
      return
9525
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9526
    if self.success is not None:
1845 vikas 9527
      oprot.writeFieldBegin('success', TType.LIST, 0)
9528
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9529
      for iter131 in self.success:
9530
        iter131.write(oprot)
1845 vikas 9531
      oprot.writeListEnd()
9532
      oprot.writeFieldEnd()
3431 rajveer 9533
    if self.utx is not None:
1845 vikas 9534
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9535
      self.utx.write(oprot)
9536
      oprot.writeFieldEnd()
9537
    oprot.writeFieldStop()
9538
    oprot.writeStructEnd()
9539
 
3431 rajveer 9540
  def validate(self):
9541
    return
9542
 
9543
 
1845 vikas 9544
  def __repr__(self):
9545
    L = ['%s=%r' % (key, value)
9546
      for key, value in self.__dict__.iteritems()]
9547
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9548
 
9549
  def __eq__(self, other):
9550
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9551
 
9552
  def __ne__(self, other):
9553
    return not (self == other)
9554
 
9555
class getTrackLogs_args:
9556
  """
9557
  Attributes:
9558
   - userId
9559
   - event
9560
   - url
9561
  """
9562
 
9563
  thrift_spec = (
9564
    None, # 0
1996 vikas 9565
    (1, TType.I64, 'userId', None, None, ), # 1
9566
    (2, TType.STRING, 'event', None, None, ), # 2
9567
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9568
  )
9569
 
1996 vikas 9570
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9571
    self.userId = userId
9572
    self.event = event
9573
    self.url = url
9574
 
9575
  def read(self, iprot):
9576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9578
      return
9579
    iprot.readStructBegin()
9580
    while True:
9581
      (fname, ftype, fid) = iprot.readFieldBegin()
9582
      if ftype == TType.STOP:
9583
        break
9584
      if fid == 1:
9585
        if ftype == TType.I64:
1996 vikas 9586
          self.userId = iprot.readI64();
1845 vikas 9587
        else:
9588
          iprot.skip(ftype)
9589
      elif fid == 2:
9590
        if ftype == TType.STRING:
9591
          self.event = iprot.readString();
9592
        else:
9593
          iprot.skip(ftype)
1996 vikas 9594
      elif fid == 3:
1845 vikas 9595
        if ftype == TType.STRING:
9596
          self.url = iprot.readString();
9597
        else:
9598
          iprot.skip(ftype)
9599
      else:
9600
        iprot.skip(ftype)
9601
      iprot.readFieldEnd()
9602
    iprot.readStructEnd()
9603
 
9604
  def write(self, oprot):
9605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9607
      return
9608
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9609
    if self.userId is not None:
1996 vikas 9610
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9611
      oprot.writeI64(self.userId)
9612
      oprot.writeFieldEnd()
3431 rajveer 9613
    if self.event is not None:
1996 vikas 9614
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9615
      oprot.writeString(self.event)
9616
      oprot.writeFieldEnd()
3431 rajveer 9617
    if self.url is not None:
1996 vikas 9618
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9619
      oprot.writeString(self.url)
9620
      oprot.writeFieldEnd()
9621
    oprot.writeFieldStop()
9622
    oprot.writeStructEnd()
9623
 
3431 rajveer 9624
  def validate(self):
9625
    return
9626
 
9627
 
1845 vikas 9628
  def __repr__(self):
9629
    L = ['%s=%r' % (key, value)
9630
      for key, value in self.__dict__.iteritems()]
9631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9632
 
9633
  def __eq__(self, other):
9634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9635
 
9636
  def __ne__(self, other):
9637
    return not (self == other)
9638
 
9639
class getTrackLogs_result:
9640
  """
9641
  Attributes:
9642
   - success
9643
   - utx
9644
  """
9645
 
9646
  thrift_spec = (
9647
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9648
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9649
  )
9650
 
9651
  def __init__(self, success=None, utx=None,):
9652
    self.success = success
9653
    self.utx = utx
9654
 
9655
  def read(self, iprot):
9656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9658
      return
9659
    iprot.readStructBegin()
9660
    while True:
9661
      (fname, ftype, fid) = iprot.readFieldBegin()
9662
      if ftype == TType.STOP:
9663
        break
9664
      if fid == 0:
9665
        if ftype == TType.LIST:
9666
          self.success = []
6736 amit.gupta 9667
          (_etype135, _size132) = iprot.readListBegin()
9668
          for _i136 in xrange(_size132):
9669
            _elem137 = TrackLog()
9670
            _elem137.read(iprot)
9671
            self.success.append(_elem137)
1845 vikas 9672
          iprot.readListEnd()
9673
        else:
9674
          iprot.skip(ftype)
9675
      elif fid == 1:
9676
        if ftype == TType.STRUCT:
1996 vikas 9677
          self.utx = UserAffiliateException()
1845 vikas 9678
          self.utx.read(iprot)
9679
        else:
9680
          iprot.skip(ftype)
9681
      else:
9682
        iprot.skip(ftype)
9683
      iprot.readFieldEnd()
9684
    iprot.readStructEnd()
9685
 
9686
  def write(self, oprot):
9687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9689
      return
9690
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9691
    if self.success is not None:
1845 vikas 9692
      oprot.writeFieldBegin('success', TType.LIST, 0)
9693
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 9694
      for iter138 in self.success:
9695
        iter138.write(oprot)
1845 vikas 9696
      oprot.writeListEnd()
9697
      oprot.writeFieldEnd()
3431 rajveer 9698
    if self.utx is not None:
1845 vikas 9699
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9700
      self.utx.write(oprot)
9701
      oprot.writeFieldEnd()
9702
    oprot.writeFieldStop()
9703
    oprot.writeStructEnd()
9704
 
3431 rajveer 9705
  def validate(self):
9706
    return
9707
 
9708
 
1845 vikas 9709
  def __repr__(self):
9710
    L = ['%s=%r' % (key, value)
9711
      for key, value in self.__dict__.iteritems()]
9712
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9713
 
9714
  def __eq__(self, other):
9715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9716
 
9717
  def __ne__(self, other):
9718
    return not (self == other)
9719
 
559 chandransh 9720
class getCurrentCart_args:
94 ashish 9721
  """
9722
  Attributes:
559 chandransh 9723
   - userId
9724
  """
9725
 
9726
  thrift_spec = (
9727
    None, # 0
9728
    (1, TType.I64, 'userId', None, None, ), # 1
9729
  )
9730
 
9731
  def __init__(self, userId=None,):
9732
    self.userId = userId
9733
 
9734
  def read(self, iprot):
9735
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9736
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9737
      return
9738
    iprot.readStructBegin()
9739
    while True:
9740
      (fname, ftype, fid) = iprot.readFieldBegin()
9741
      if ftype == TType.STOP:
9742
        break
9743
      if fid == 1:
9744
        if ftype == TType.I64:
9745
          self.userId = iprot.readI64();
9746
        else:
9747
          iprot.skip(ftype)
9748
      else:
9749
        iprot.skip(ftype)
9750
      iprot.readFieldEnd()
9751
    iprot.readStructEnd()
9752
 
9753
  def write(self, oprot):
9754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9756
      return
9757
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9758
    if self.userId is not None:
559 chandransh 9759
      oprot.writeFieldBegin('userId', TType.I64, 1)
9760
      oprot.writeI64(self.userId)
9761
      oprot.writeFieldEnd()
9762
    oprot.writeFieldStop()
9763
    oprot.writeStructEnd()
9764
 
3431 rajveer 9765
  def validate(self):
9766
    return
9767
 
9768
 
559 chandransh 9769
  def __repr__(self):
9770
    L = ['%s=%r' % (key, value)
9771
      for key, value in self.__dict__.iteritems()]
9772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9773
 
9774
  def __eq__(self, other):
9775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9776
 
9777
  def __ne__(self, other):
9778
    return not (self == other)
9779
 
9780
class getCurrentCart_result:
9781
  """
9782
  Attributes:
94 ashish 9783
   - success
559 chandransh 9784
   - scx
94 ashish 9785
  """
9786
 
9787
  thrift_spec = (
559 chandransh 9788
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9789
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9790
  )
9791
 
559 chandransh 9792
  def __init__(self, success=None, scx=None,):
94 ashish 9793
    self.success = success
559 chandransh 9794
    self.scx = scx
94 ashish 9795
 
9796
  def read(self, iprot):
9797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9799
      return
9800
    iprot.readStructBegin()
9801
    while True:
9802
      (fname, ftype, fid) = iprot.readFieldBegin()
9803
      if ftype == TType.STOP:
9804
        break
9805
      if fid == 0:
559 chandransh 9806
        if ftype == TType.STRUCT:
9807
          self.success = Cart()
9808
          self.success.read(iprot)
94 ashish 9809
        else:
9810
          iprot.skip(ftype)
9811
      elif fid == 1:
9812
        if ftype == TType.STRUCT:
559 chandransh 9813
          self.scx = ShoppingCartException()
9814
          self.scx.read(iprot)
94 ashish 9815
        else:
9816
          iprot.skip(ftype)
9817
      else:
9818
        iprot.skip(ftype)
9819
      iprot.readFieldEnd()
9820
    iprot.readStructEnd()
9821
 
9822
  def write(self, oprot):
9823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9825
      return
559 chandransh 9826
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9827
    if self.success is not None:
559 chandransh 9828
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9829
      self.success.write(oprot)
94 ashish 9830
      oprot.writeFieldEnd()
3431 rajveer 9831
    if self.scx is not None:
559 chandransh 9832
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9833
      self.scx.write(oprot)
94 ashish 9834
      oprot.writeFieldEnd()
9835
    oprot.writeFieldStop()
9836
    oprot.writeStructEnd()
9837
 
3431 rajveer 9838
  def validate(self):
9839
    return
9840
 
9841
 
94 ashish 9842
  def __repr__(self):
9843
    L = ['%s=%r' % (key, value)
9844
      for key, value in self.__dict__.iteritems()]
9845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9846
 
9847
  def __eq__(self, other):
9848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9849
 
9850
  def __ne__(self, other):
9851
    return not (self == other)
9852
 
559 chandransh 9853
class getCart_args:
504 rajveer 9854
  """
9855
  Attributes:
559 chandransh 9856
   - cartId
504 rajveer 9857
  """
9858
 
9859
  thrift_spec = (
9860
    None, # 0
559 chandransh 9861
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9862
  )
9863
 
559 chandransh 9864
  def __init__(self, cartId=None,):
9865
    self.cartId = cartId
504 rajveer 9866
 
9867
  def read(self, iprot):
9868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9870
      return
9871
    iprot.readStructBegin()
9872
    while True:
9873
      (fname, ftype, fid) = iprot.readFieldBegin()
9874
      if ftype == TType.STOP:
9875
        break
9876
      if fid == 1:
9877
        if ftype == TType.I64:
559 chandransh 9878
          self.cartId = iprot.readI64();
504 rajveer 9879
        else:
9880
          iprot.skip(ftype)
9881
      else:
9882
        iprot.skip(ftype)
9883
      iprot.readFieldEnd()
9884
    iprot.readStructEnd()
9885
 
9886
  def write(self, oprot):
9887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9889
      return
559 chandransh 9890
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9891
    if self.cartId is not None:
559 chandransh 9892
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9893
      oprot.writeI64(self.cartId)
504 rajveer 9894
      oprot.writeFieldEnd()
9895
    oprot.writeFieldStop()
9896
    oprot.writeStructEnd()
9897
 
3431 rajveer 9898
  def validate(self):
9899
    return
9900
 
9901
 
504 rajveer 9902
  def __repr__(self):
9903
    L = ['%s=%r' % (key, value)
9904
      for key, value in self.__dict__.iteritems()]
9905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9906
 
9907
  def __eq__(self, other):
9908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9909
 
9910
  def __ne__(self, other):
9911
    return not (self == other)
9912
 
559 chandransh 9913
class getCart_result:
504 rajveer 9914
  """
9915
  Attributes:
9916
   - success
559 chandransh 9917
   - scx
504 rajveer 9918
  """
9919
 
9920
  thrift_spec = (
559 chandransh 9921
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9922
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9923
  )
9924
 
559 chandransh 9925
  def __init__(self, success=None, scx=None,):
504 rajveer 9926
    self.success = success
559 chandransh 9927
    self.scx = scx
504 rajveer 9928
 
9929
  def read(self, iprot):
9930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9932
      return
9933
    iprot.readStructBegin()
9934
    while True:
9935
      (fname, ftype, fid) = iprot.readFieldBegin()
9936
      if ftype == TType.STOP:
9937
        break
9938
      if fid == 0:
559 chandransh 9939
        if ftype == TType.STRUCT:
9940
          self.success = Cart()
9941
          self.success.read(iprot)
504 rajveer 9942
        else:
9943
          iprot.skip(ftype)
9944
      elif fid == 1:
9945
        if ftype == TType.STRUCT:
559 chandransh 9946
          self.scx = ShoppingCartException()
9947
          self.scx.read(iprot)
504 rajveer 9948
        else:
9949
          iprot.skip(ftype)
9950
      else:
9951
        iprot.skip(ftype)
9952
      iprot.readFieldEnd()
9953
    iprot.readStructEnd()
9954
 
9955
  def write(self, oprot):
9956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9958
      return
559 chandransh 9959
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9960
    if self.success is not None:
559 chandransh 9961
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9962
      self.success.write(oprot)
504 rajveer 9963
      oprot.writeFieldEnd()
3431 rajveer 9964
    if self.scx is not None:
559 chandransh 9965
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9966
      self.scx.write(oprot)
504 rajveer 9967
      oprot.writeFieldEnd()
9968
    oprot.writeFieldStop()
9969
    oprot.writeStructEnd()
9970
 
3431 rajveer 9971
  def validate(self):
9972
    return
9973
 
9974
 
504 rajveer 9975
  def __repr__(self):
9976
    L = ['%s=%r' % (key, value)
9977
      for key, value in self.__dict__.iteritems()]
9978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9979
 
9980
  def __eq__(self, other):
9981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9982
 
9983
  def __ne__(self, other):
9984
    return not (self == other)
9985
 
559 chandransh 9986
class getCartsByTime_args:
9987
  """
9988
  Attributes:
9989
   - from_time
9990
   - to_time
9991
   - status
9992
  """
9993
 
9994
  thrift_spec = (
9995
    None, # 0
9996
    (1, TType.I64, 'from_time', None, None, ), # 1
9997
    (2, TType.I64, 'to_time', None, None, ), # 2
9998
    (3, TType.I32, 'status', None, None, ), # 3
9999
  )
10000
 
10001
  def __init__(self, from_time=None, to_time=None, status=None,):
10002
    self.from_time = from_time
10003
    self.to_time = to_time
10004
    self.status = status
10005
 
10006
  def read(self, iprot):
10007
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10008
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10009
      return
10010
    iprot.readStructBegin()
10011
    while True:
10012
      (fname, ftype, fid) = iprot.readFieldBegin()
10013
      if ftype == TType.STOP:
10014
        break
10015
      if fid == 1:
94 ashish 10016
        if ftype == TType.I64:
559 chandransh 10017
          self.from_time = iprot.readI64();
94 ashish 10018
        else:
10019
          iprot.skip(ftype)
122 ashish 10020
      elif fid == 2:
559 chandransh 10021
        if ftype == TType.I64:
10022
          self.to_time = iprot.readI64();
122 ashish 10023
        else:
10024
          iprot.skip(ftype)
559 chandransh 10025
      elif fid == 3:
10026
        if ftype == TType.I32:
10027
          self.status = iprot.readI32();
10028
        else:
10029
          iprot.skip(ftype)
94 ashish 10030
      else:
10031
        iprot.skip(ftype)
10032
      iprot.readFieldEnd()
10033
    iprot.readStructEnd()
10034
 
10035
  def write(self, oprot):
10036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10038
      return
559 chandransh 10039
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10040
    if self.from_time is not None:
559 chandransh 10041
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10042
      oprot.writeI64(self.from_time)
94 ashish 10043
      oprot.writeFieldEnd()
3431 rajveer 10044
    if self.to_time is not None:
559 chandransh 10045
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10046
      oprot.writeI64(self.to_time)
122 ashish 10047
      oprot.writeFieldEnd()
3431 rajveer 10048
    if self.status is not None:
559 chandransh 10049
      oprot.writeFieldBegin('status', TType.I32, 3)
10050
      oprot.writeI32(self.status)
10051
      oprot.writeFieldEnd()
94 ashish 10052
    oprot.writeFieldStop()
10053
    oprot.writeStructEnd()
10054
 
3431 rajveer 10055
  def validate(self):
10056
    return
10057
 
10058
 
94 ashish 10059
  def __repr__(self):
10060
    L = ['%s=%r' % (key, value)
10061
      for key, value in self.__dict__.iteritems()]
10062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10063
 
10064
  def __eq__(self, other):
10065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10066
 
10067
  def __ne__(self, other):
10068
    return not (self == other)
10069
 
559 chandransh 10070
class getCartsByTime_result:
94 ashish 10071
  """
10072
  Attributes:
10073
   - success
559 chandransh 10074
   - scx
94 ashish 10075
  """
10076
 
10077
  thrift_spec = (
559 chandransh 10078
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10079
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10080
  )
10081
 
559 chandransh 10082
  def __init__(self, success=None, scx=None,):
94 ashish 10083
    self.success = success
559 chandransh 10084
    self.scx = scx
94 ashish 10085
 
10086
  def read(self, iprot):
10087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10089
      return
10090
    iprot.readStructBegin()
10091
    while True:
10092
      (fname, ftype, fid) = iprot.readFieldBegin()
10093
      if ftype == TType.STOP:
10094
        break
10095
      if fid == 0:
559 chandransh 10096
        if ftype == TType.LIST:
10097
          self.success = []
6736 amit.gupta 10098
          (_etype142, _size139) = iprot.readListBegin()
10099
          for _i143 in xrange(_size139):
10100
            _elem144 = Cart()
10101
            _elem144.read(iprot)
10102
            self.success.append(_elem144)
559 chandransh 10103
          iprot.readListEnd()
94 ashish 10104
        else:
10105
          iprot.skip(ftype)
10106
      elif fid == 1:
10107
        if ftype == TType.STRUCT:
559 chandransh 10108
          self.scx = ShoppingCartException()
10109
          self.scx.read(iprot)
94 ashish 10110
        else:
10111
          iprot.skip(ftype)
10112
      else:
10113
        iprot.skip(ftype)
10114
      iprot.readFieldEnd()
10115
    iprot.readStructEnd()
10116
 
10117
  def write(self, oprot):
10118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10120
      return
559 chandransh 10121
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10122
    if self.success is not None:
559 chandransh 10123
      oprot.writeFieldBegin('success', TType.LIST, 0)
10124
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 10125
      for iter145 in self.success:
10126
        iter145.write(oprot)
559 chandransh 10127
      oprot.writeListEnd()
94 ashish 10128
      oprot.writeFieldEnd()
3431 rajveer 10129
    if self.scx is not None:
559 chandransh 10130
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10131
      self.scx.write(oprot)
94 ashish 10132
      oprot.writeFieldEnd()
10133
    oprot.writeFieldStop()
10134
    oprot.writeStructEnd()
10135
 
3431 rajveer 10136
  def validate(self):
10137
    return
10138
 
10139
 
94 ashish 10140
  def __repr__(self):
10141
    L = ['%s=%r' % (key, value)
10142
      for key, value in self.__dict__.iteritems()]
10143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10144
 
10145
  def __eq__(self, other):
10146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10147
 
10148
  def __ne__(self, other):
10149
    return not (self == other)
10150
 
559 chandransh 10151
class addItemToCart_args:
10152
  """
10153
  Attributes:
10154
   - cartId
10155
   - itemId
10156
   - quantity
3557 rajveer 10157
   - sourceId
559 chandransh 10158
  """
10159
 
10160
  thrift_spec = (
10161
    None, # 0
10162
    (1, TType.I64, 'cartId', None, None, ), # 1
10163
    (2, TType.I64, 'itemId', None, None, ), # 2
10164
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10165
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10166
  )
10167
 
3557 rajveer 10168
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10169
    self.cartId = cartId
10170
    self.itemId = itemId
10171
    self.quantity = quantity
3557 rajveer 10172
    self.sourceId = sourceId
559 chandransh 10173
 
10174
  def read(self, iprot):
10175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10177
      return
10178
    iprot.readStructBegin()
10179
    while True:
10180
      (fname, ftype, fid) = iprot.readFieldBegin()
10181
      if ftype == TType.STOP:
10182
        break
10183
      if fid == 1:
10184
        if ftype == TType.I64:
10185
          self.cartId = iprot.readI64();
10186
        else:
10187
          iprot.skip(ftype)
10188
      elif fid == 2:
10189
        if ftype == TType.I64:
10190
          self.itemId = iprot.readI64();
10191
        else:
10192
          iprot.skip(ftype)
10193
      elif fid == 3:
10194
        if ftype == TType.I64:
10195
          self.quantity = iprot.readI64();
10196
        else:
10197
          iprot.skip(ftype)
3557 rajveer 10198
      elif fid == 4:
10199
        if ftype == TType.I64:
10200
          self.sourceId = iprot.readI64();
10201
        else:
10202
          iprot.skip(ftype)
559 chandransh 10203
      else:
10204
        iprot.skip(ftype)
10205
      iprot.readFieldEnd()
10206
    iprot.readStructEnd()
10207
 
10208
  def write(self, oprot):
10209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10211
      return
10212
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10213
    if self.cartId is not None:
559 chandransh 10214
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10215
      oprot.writeI64(self.cartId)
10216
      oprot.writeFieldEnd()
3431 rajveer 10217
    if self.itemId is not None:
559 chandransh 10218
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10219
      oprot.writeI64(self.itemId)
10220
      oprot.writeFieldEnd()
3431 rajveer 10221
    if self.quantity is not None:
559 chandransh 10222
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10223
      oprot.writeI64(self.quantity)
10224
      oprot.writeFieldEnd()
3557 rajveer 10225
    if self.sourceId is not None:
10226
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10227
      oprot.writeI64(self.sourceId)
10228
      oprot.writeFieldEnd()
559 chandransh 10229
    oprot.writeFieldStop()
10230
    oprot.writeStructEnd()
10231
 
3431 rajveer 10232
  def validate(self):
10233
    return
10234
 
10235
 
559 chandransh 10236
  def __repr__(self):
10237
    L = ['%s=%r' % (key, value)
10238
      for key, value in self.__dict__.iteritems()]
10239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10240
 
10241
  def __eq__(self, other):
10242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10243
 
10244
  def __ne__(self, other):
10245
    return not (self == other)
10246
 
10247
class addItemToCart_result:
10248
  """
10249
  Attributes:
2035 rajveer 10250
   - success
559 chandransh 10251
   - scx
10252
  """
10253
 
10254
  thrift_spec = (
2035 rajveer 10255
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10256
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10257
  )
10258
 
2035 rajveer 10259
  def __init__(self, success=None, scx=None,):
10260
    self.success = success
559 chandransh 10261
    self.scx = scx
10262
 
10263
  def read(self, iprot):
10264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10266
      return
10267
    iprot.readStructBegin()
10268
    while True:
10269
      (fname, ftype, fid) = iprot.readFieldBegin()
10270
      if ftype == TType.STOP:
10271
        break
2035 rajveer 10272
      if fid == 0:
10273
        if ftype == TType.STRING:
10274
          self.success = iprot.readString();
10275
        else:
10276
          iprot.skip(ftype)
10277
      elif fid == 1:
559 chandransh 10278
        if ftype == TType.STRUCT:
10279
          self.scx = ShoppingCartException()
10280
          self.scx.read(iprot)
10281
        else:
10282
          iprot.skip(ftype)
10283
      else:
10284
        iprot.skip(ftype)
10285
      iprot.readFieldEnd()
10286
    iprot.readStructEnd()
10287
 
10288
  def write(self, oprot):
10289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10291
      return
10292
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10293
    if self.success is not None:
2035 rajveer 10294
      oprot.writeFieldBegin('success', TType.STRING, 0)
10295
      oprot.writeString(self.success)
10296
      oprot.writeFieldEnd()
3431 rajveer 10297
    if self.scx is not None:
559 chandransh 10298
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10299
      self.scx.write(oprot)
10300
      oprot.writeFieldEnd()
10301
    oprot.writeFieldStop()
10302
    oprot.writeStructEnd()
10303
 
3431 rajveer 10304
  def validate(self):
10305
    return
10306
 
10307
 
559 chandransh 10308
  def __repr__(self):
10309
    L = ['%s=%r' % (key, value)
10310
      for key, value in self.__dict__.iteritems()]
10311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10312
 
10313
  def __eq__(self, other):
10314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10315
 
10316
  def __ne__(self, other):
10317
    return not (self == other)
10318
 
10319
class deleteItemFromCart_args:
10320
  """
10321
  Attributes:
10322
   - cartId
10323
   - itemId
10324
  """
10325
 
10326
  thrift_spec = (
10327
    None, # 0
10328
    (1, TType.I64, 'cartId', None, None, ), # 1
10329
    (2, TType.I64, 'itemId', None, None, ), # 2
10330
  )
10331
 
10332
  def __init__(self, cartId=None, itemId=None,):
10333
    self.cartId = cartId
10334
    self.itemId = itemId
10335
 
10336
  def read(self, iprot):
10337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10339
      return
10340
    iprot.readStructBegin()
10341
    while True:
10342
      (fname, ftype, fid) = iprot.readFieldBegin()
10343
      if ftype == TType.STOP:
10344
        break
10345
      if fid == 1:
10346
        if ftype == TType.I64:
10347
          self.cartId = iprot.readI64();
10348
        else:
10349
          iprot.skip(ftype)
10350
      elif fid == 2:
10351
        if ftype == TType.I64:
10352
          self.itemId = iprot.readI64();
10353
        else:
10354
          iprot.skip(ftype)
10355
      else:
10356
        iprot.skip(ftype)
10357
      iprot.readFieldEnd()
10358
    iprot.readStructEnd()
10359
 
10360
  def write(self, oprot):
10361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10363
      return
10364
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10365
    if self.cartId is not None:
559 chandransh 10366
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10367
      oprot.writeI64(self.cartId)
10368
      oprot.writeFieldEnd()
3431 rajveer 10369
    if self.itemId is not None:
559 chandransh 10370
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10371
      oprot.writeI64(self.itemId)
10372
      oprot.writeFieldEnd()
10373
    oprot.writeFieldStop()
10374
    oprot.writeStructEnd()
10375
 
3431 rajveer 10376
  def validate(self):
10377
    return
10378
 
10379
 
559 chandransh 10380
  def __repr__(self):
10381
    L = ['%s=%r' % (key, value)
10382
      for key, value in self.__dict__.iteritems()]
10383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10384
 
10385
  def __eq__(self, other):
10386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10387
 
10388
  def __ne__(self, other):
10389
    return not (self == other)
10390
 
10391
class deleteItemFromCart_result:
10392
  """
10393
  Attributes:
10394
   - scx
10395
  """
10396
 
10397
  thrift_spec = (
10398
    None, # 0
10399
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10400
  )
10401
 
10402
  def __init__(self, scx=None,):
10403
    self.scx = scx
10404
 
10405
  def read(self, iprot):
10406
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10407
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10408
      return
10409
    iprot.readStructBegin()
10410
    while True:
10411
      (fname, ftype, fid) = iprot.readFieldBegin()
10412
      if ftype == TType.STOP:
10413
        break
10414
      if fid == 1:
10415
        if ftype == TType.STRUCT:
10416
          self.scx = ShoppingCartException()
10417
          self.scx.read(iprot)
10418
        else:
10419
          iprot.skip(ftype)
10420
      else:
10421
        iprot.skip(ftype)
10422
      iprot.readFieldEnd()
10423
    iprot.readStructEnd()
10424
 
10425
  def write(self, oprot):
10426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10428
      return
10429
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10430
    if self.scx is not None:
559 chandransh 10431
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10432
      self.scx.write(oprot)
10433
      oprot.writeFieldEnd()
10434
    oprot.writeFieldStop()
10435
    oprot.writeStructEnd()
10436
 
3431 rajveer 10437
  def validate(self):
10438
    return
10439
 
10440
 
559 chandransh 10441
  def __repr__(self):
10442
    L = ['%s=%r' % (key, value)
10443
      for key, value in self.__dict__.iteritems()]
10444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10445
 
10446
  def __eq__(self, other):
10447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10448
 
10449
  def __ne__(self, other):
10450
    return not (self == other)
10451
 
10452
class addAddressToCart_args:
10453
  """
10454
  Attributes:
10455
   - cartId
10456
   - addressId
10457
  """
10458
 
10459
  thrift_spec = (
10460
    None, # 0
10461
    (1, TType.I64, 'cartId', None, None, ), # 1
10462
    (2, TType.I64, 'addressId', None, None, ), # 2
10463
  )
10464
 
10465
  def __init__(self, cartId=None, addressId=None,):
10466
    self.cartId = cartId
10467
    self.addressId = addressId
10468
 
10469
  def read(self, iprot):
10470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10472
      return
10473
    iprot.readStructBegin()
10474
    while True:
10475
      (fname, ftype, fid) = iprot.readFieldBegin()
10476
      if ftype == TType.STOP:
10477
        break
10478
      if fid == 1:
10479
        if ftype == TType.I64:
10480
          self.cartId = iprot.readI64();
10481
        else:
10482
          iprot.skip(ftype)
10483
      elif fid == 2:
10484
        if ftype == TType.I64:
10485
          self.addressId = iprot.readI64();
10486
        else:
10487
          iprot.skip(ftype)
10488
      else:
10489
        iprot.skip(ftype)
10490
      iprot.readFieldEnd()
10491
    iprot.readStructEnd()
10492
 
10493
  def write(self, oprot):
10494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10496
      return
10497
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10498
    if self.cartId is not None:
559 chandransh 10499
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10500
      oprot.writeI64(self.cartId)
10501
      oprot.writeFieldEnd()
3431 rajveer 10502
    if self.addressId is not None:
559 chandransh 10503
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10504
      oprot.writeI64(self.addressId)
10505
      oprot.writeFieldEnd()
10506
    oprot.writeFieldStop()
10507
    oprot.writeStructEnd()
10508
 
3431 rajveer 10509
  def validate(self):
10510
    return
10511
 
10512
 
559 chandransh 10513
  def __repr__(self):
10514
    L = ['%s=%r' % (key, value)
10515
      for key, value in self.__dict__.iteritems()]
10516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10517
 
10518
  def __eq__(self, other):
10519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10520
 
10521
  def __ne__(self, other):
10522
    return not (self == other)
10523
 
10524
class addAddressToCart_result:
575 chandransh 10525
  """
10526
  Attributes:
10527
   - scx
10528
  """
559 chandransh 10529
 
10530
  thrift_spec = (
575 chandransh 10531
    None, # 0
10532
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10533
  )
10534
 
575 chandransh 10535
  def __init__(self, scx=None,):
10536
    self.scx = scx
10537
 
559 chandransh 10538
  def read(self, iprot):
10539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10541
      return
10542
    iprot.readStructBegin()
10543
    while True:
10544
      (fname, ftype, fid) = iprot.readFieldBegin()
10545
      if ftype == TType.STOP:
10546
        break
575 chandransh 10547
      if fid == 1:
10548
        if ftype == TType.STRUCT:
10549
          self.scx = ShoppingCartException()
10550
          self.scx.read(iprot)
10551
        else:
10552
          iprot.skip(ftype)
559 chandransh 10553
      else:
10554
        iprot.skip(ftype)
10555
      iprot.readFieldEnd()
10556
    iprot.readStructEnd()
10557
 
10558
  def write(self, oprot):
10559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10561
      return
10562
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10563
    if self.scx is not None:
575 chandransh 10564
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10565
      self.scx.write(oprot)
10566
      oprot.writeFieldEnd()
559 chandransh 10567
    oprot.writeFieldStop()
10568
    oprot.writeStructEnd()
10569
 
3431 rajveer 10570
  def validate(self):
10571
    return
10572
 
10573
 
559 chandransh 10574
  def __repr__(self):
10575
    L = ['%s=%r' % (key, value)
10576
      for key, value in self.__dict__.iteritems()]
10577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10578
 
10579
  def __eq__(self, other):
10580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10581
 
10582
  def __ne__(self, other):
10583
    return not (self == other)
10584
 
5553 rajveer 10585
class addStoreToCart_args:
10586
  """
10587
  Attributes:
10588
   - cartId
10589
   - storeId
10590
  """
10591
 
10592
  thrift_spec = (
10593
    None, # 0
10594
    (1, TType.I64, 'cartId', None, None, ), # 1
10595
    (2, TType.I64, 'storeId', None, None, ), # 2
10596
  )
10597
 
10598
  def __init__(self, cartId=None, storeId=None,):
10599
    self.cartId = cartId
10600
    self.storeId = storeId
10601
 
10602
  def read(self, iprot):
10603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10605
      return
10606
    iprot.readStructBegin()
10607
    while True:
10608
      (fname, ftype, fid) = iprot.readFieldBegin()
10609
      if ftype == TType.STOP:
10610
        break
10611
      if fid == 1:
10612
        if ftype == TType.I64:
10613
          self.cartId = iprot.readI64();
10614
        else:
10615
          iprot.skip(ftype)
10616
      elif fid == 2:
10617
        if ftype == TType.I64:
10618
          self.storeId = iprot.readI64();
10619
        else:
10620
          iprot.skip(ftype)
10621
      else:
10622
        iprot.skip(ftype)
10623
      iprot.readFieldEnd()
10624
    iprot.readStructEnd()
10625
 
10626
  def write(self, oprot):
10627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10629
      return
10630
    oprot.writeStructBegin('addStoreToCart_args')
10631
    if self.cartId is not None:
10632
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10633
      oprot.writeI64(self.cartId)
10634
      oprot.writeFieldEnd()
10635
    if self.storeId is not None:
10636
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10637
      oprot.writeI64(self.storeId)
10638
      oprot.writeFieldEnd()
10639
    oprot.writeFieldStop()
10640
    oprot.writeStructEnd()
10641
 
10642
  def validate(self):
10643
    return
10644
 
10645
 
10646
  def __repr__(self):
10647
    L = ['%s=%r' % (key, value)
10648
      for key, value in self.__dict__.iteritems()]
10649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10650
 
10651
  def __eq__(self, other):
10652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10653
 
10654
  def __ne__(self, other):
10655
    return not (self == other)
10656
 
10657
class addStoreToCart_result:
10658
  """
10659
  Attributes:
10660
   - scx
10661
  """
10662
 
10663
  thrift_spec = (
10664
    None, # 0
10665
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10666
  )
10667
 
10668
  def __init__(self, scx=None,):
10669
    self.scx = scx
10670
 
10671
  def read(self, iprot):
10672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10674
      return
10675
    iprot.readStructBegin()
10676
    while True:
10677
      (fname, ftype, fid) = iprot.readFieldBegin()
10678
      if ftype == TType.STOP:
10679
        break
10680
      if fid == 1:
10681
        if ftype == TType.STRUCT:
10682
          self.scx = ShoppingCartException()
10683
          self.scx.read(iprot)
10684
        else:
10685
          iprot.skip(ftype)
10686
      else:
10687
        iprot.skip(ftype)
10688
      iprot.readFieldEnd()
10689
    iprot.readStructEnd()
10690
 
10691
  def write(self, oprot):
10692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10694
      return
10695
    oprot.writeStructBegin('addStoreToCart_result')
10696
    if self.scx is not None:
10697
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10698
      self.scx.write(oprot)
10699
      oprot.writeFieldEnd()
10700
    oprot.writeFieldStop()
10701
    oprot.writeStructEnd()
10702
 
10703
  def validate(self):
10704
    return
10705
 
10706
 
10707
  def __repr__(self):
10708
    L = ['%s=%r' % (key, value)
10709
      for key, value in self.__dict__.iteritems()]
10710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10711
 
10712
  def __eq__(self, other):
10713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10714
 
10715
  def __ne__(self, other):
10716
    return not (self == other)
10717
 
1976 varun.gupt 10718
class applyCouponToCart_args:
10719
  """
10720
  Attributes:
6922 anupam.sin 10721
   - cart
1976 varun.gupt 10722
   - couponCode
10723
  """
10724
 
10725
  thrift_spec = (
10726
    None, # 0
6922 anupam.sin 10727
    (1, TType.STRUCT, 'cart', (Cart, Cart.thrift_spec), None, ), # 1
1976 varun.gupt 10728
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10729
  )
10730
 
6922 anupam.sin 10731
  def __init__(self, cart=None, couponCode=None,):
10732
    self.cart = cart
1976 varun.gupt 10733
    self.couponCode = couponCode
10734
 
10735
  def read(self, iprot):
10736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10738
      return
10739
    iprot.readStructBegin()
10740
    while True:
10741
      (fname, ftype, fid) = iprot.readFieldBegin()
10742
      if ftype == TType.STOP:
10743
        break
10744
      if fid == 1:
6922 anupam.sin 10745
        if ftype == TType.STRUCT:
10746
          self.cart = Cart()
10747
          self.cart.read(iprot)
1976 varun.gupt 10748
        else:
10749
          iprot.skip(ftype)
10750
      elif fid == 2:
10751
        if ftype == TType.STRING:
10752
          self.couponCode = iprot.readString();
10753
        else:
10754
          iprot.skip(ftype)
10755
      else:
10756
        iprot.skip(ftype)
10757
      iprot.readFieldEnd()
10758
    iprot.readStructEnd()
10759
 
10760
  def write(self, oprot):
10761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10763
      return
10764
    oprot.writeStructBegin('applyCouponToCart_args')
6922 anupam.sin 10765
    if self.cart is not None:
10766
      oprot.writeFieldBegin('cart', TType.STRUCT, 1)
10767
      self.cart.write(oprot)
1976 varun.gupt 10768
      oprot.writeFieldEnd()
3431 rajveer 10769
    if self.couponCode is not None:
1976 varun.gupt 10770
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10771
      oprot.writeString(self.couponCode)
10772
      oprot.writeFieldEnd()
10773
    oprot.writeFieldStop()
10774
    oprot.writeStructEnd()
10775
 
3431 rajveer 10776
  def validate(self):
10777
    return
10778
 
10779
 
1976 varun.gupt 10780
  def __repr__(self):
10781
    L = ['%s=%r' % (key, value)
10782
      for key, value in self.__dict__.iteritems()]
10783
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10784
 
10785
  def __eq__(self, other):
10786
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10787
 
10788
  def __ne__(self, other):
10789
    return not (self == other)
10790
 
10791
class applyCouponToCart_result:
10792
  """
10793
  Attributes:
10794
   - scx
10795
  """
10796
 
10797
  thrift_spec = (
10798
    None, # 0
10799
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10800
  )
10801
 
10802
  def __init__(self, scx=None,):
10803
    self.scx = scx
10804
 
10805
  def read(self, iprot):
10806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10808
      return
10809
    iprot.readStructBegin()
10810
    while True:
10811
      (fname, ftype, fid) = iprot.readFieldBegin()
10812
      if ftype == TType.STOP:
10813
        break
10814
      if fid == 1:
10815
        if ftype == TType.STRUCT:
10816
          self.scx = ShoppingCartException()
10817
          self.scx.read(iprot)
10818
        else:
10819
          iprot.skip(ftype)
10820
      else:
10821
        iprot.skip(ftype)
10822
      iprot.readFieldEnd()
10823
    iprot.readStructEnd()
10824
 
10825
  def write(self, oprot):
10826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10828
      return
10829
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10830
    if self.scx is not None:
1976 varun.gupt 10831
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10832
      self.scx.write(oprot)
10833
      oprot.writeFieldEnd()
10834
    oprot.writeFieldStop()
10835
    oprot.writeStructEnd()
10836
 
3431 rajveer 10837
  def validate(self):
10838
    return
10839
 
10840
 
1976 varun.gupt 10841
  def __repr__(self):
10842
    L = ['%s=%r' % (key, value)
10843
      for key, value in self.__dict__.iteritems()]
10844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10845
 
10846
  def __eq__(self, other):
10847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10848
 
10849
  def __ne__(self, other):
10850
    return not (self == other)
10851
 
10852
class removeCoupon_args:
10853
  """
10854
  Attributes:
10855
   - cartId
10856
  """
10857
 
10858
  thrift_spec = (
10859
    None, # 0
10860
    (1, TType.I64, 'cartId', None, None, ), # 1
10861
  )
10862
 
10863
  def __init__(self, cartId=None,):
10864
    self.cartId = cartId
10865
 
10866
  def read(self, iprot):
10867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10869
      return
10870
    iprot.readStructBegin()
10871
    while True:
10872
      (fname, ftype, fid) = iprot.readFieldBegin()
10873
      if ftype == TType.STOP:
10874
        break
10875
      if fid == 1:
10876
        if ftype == TType.I64:
10877
          self.cartId = iprot.readI64();
10878
        else:
10879
          iprot.skip(ftype)
10880
      else:
10881
        iprot.skip(ftype)
10882
      iprot.readFieldEnd()
10883
    iprot.readStructEnd()
10884
 
10885
  def write(self, oprot):
10886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10888
      return
10889
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10890
    if self.cartId is not None:
1976 varun.gupt 10891
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10892
      oprot.writeI64(self.cartId)
10893
      oprot.writeFieldEnd()
10894
    oprot.writeFieldStop()
10895
    oprot.writeStructEnd()
10896
 
3431 rajveer 10897
  def validate(self):
10898
    return
10899
 
10900
 
1976 varun.gupt 10901
  def __repr__(self):
10902
    L = ['%s=%r' % (key, value)
10903
      for key, value in self.__dict__.iteritems()]
10904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10905
 
10906
  def __eq__(self, other):
10907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10908
 
10909
  def __ne__(self, other):
10910
    return not (self == other)
10911
 
10912
class removeCoupon_result:
10913
  """
10914
  Attributes:
10915
   - scx
10916
  """
10917
 
10918
  thrift_spec = (
10919
    None, # 0
10920
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10921
  )
10922
 
10923
  def __init__(self, scx=None,):
10924
    self.scx = scx
10925
 
10926
  def read(self, iprot):
10927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10929
      return
10930
    iprot.readStructBegin()
10931
    while True:
10932
      (fname, ftype, fid) = iprot.readFieldBegin()
10933
      if ftype == TType.STOP:
10934
        break
10935
      if fid == 1:
10936
        if ftype == TType.STRUCT:
10937
          self.scx = ShoppingCartException()
10938
          self.scx.read(iprot)
10939
        else:
10940
          iprot.skip(ftype)
10941
      else:
10942
        iprot.skip(ftype)
10943
      iprot.readFieldEnd()
10944
    iprot.readStructEnd()
10945
 
10946
  def write(self, oprot):
10947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10949
      return
10950
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10951
    if self.scx is not None:
1976 varun.gupt 10952
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10953
      self.scx.write(oprot)
10954
      oprot.writeFieldEnd()
10955
    oprot.writeFieldStop()
10956
    oprot.writeStructEnd()
10957
 
3431 rajveer 10958
  def validate(self):
10959
    return
10960
 
10961
 
1976 varun.gupt 10962
  def __repr__(self):
10963
    L = ['%s=%r' % (key, value)
10964
      for key, value in self.__dict__.iteritems()]
10965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10966
 
10967
  def __eq__(self, other):
10968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10969
 
10970
  def __ne__(self, other):
10971
    return not (self == other)
10972
 
3554 varun.gupt 10973
class deleteDiscountsFromCart_args:
10974
  """
10975
  Attributes:
10976
   - cartId
10977
  """
10978
 
10979
  thrift_spec = (
10980
    None, # 0
10981
    (1, TType.I64, 'cartId', None, None, ), # 1
10982
  )
10983
 
10984
  def __init__(self, cartId=None,):
10985
    self.cartId = cartId
10986
 
10987
  def read(self, iprot):
10988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10990
      return
10991
    iprot.readStructBegin()
10992
    while True:
10993
      (fname, ftype, fid) = iprot.readFieldBegin()
10994
      if ftype == TType.STOP:
10995
        break
10996
      if fid == 1:
10997
        if ftype == TType.I64:
10998
          self.cartId = iprot.readI64();
10999
        else:
11000
          iprot.skip(ftype)
11001
      else:
11002
        iprot.skip(ftype)
11003
      iprot.readFieldEnd()
11004
    iprot.readStructEnd()
11005
 
11006
  def write(self, oprot):
11007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11009
      return
11010
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
11011
    if self.cartId is not None:
11012
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11013
      oprot.writeI64(self.cartId)
11014
      oprot.writeFieldEnd()
11015
    oprot.writeFieldStop()
11016
    oprot.writeStructEnd()
11017
 
11018
  def validate(self):
11019
    return
11020
 
11021
 
11022
  def __repr__(self):
11023
    L = ['%s=%r' % (key, value)
11024
      for key, value in self.__dict__.iteritems()]
11025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11026
 
11027
  def __eq__(self, other):
11028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11029
 
11030
  def __ne__(self, other):
11031
    return not (self == other)
11032
 
11033
class deleteDiscountsFromCart_result:
11034
  """
11035
  Attributes:
11036
   - scx
11037
  """
11038
 
11039
  thrift_spec = (
11040
    None, # 0
11041
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11042
  )
11043
 
11044
  def __init__(self, scx=None,):
11045
    self.scx = scx
11046
 
11047
  def read(self, iprot):
11048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11050
      return
11051
    iprot.readStructBegin()
11052
    while True:
11053
      (fname, ftype, fid) = iprot.readFieldBegin()
11054
      if ftype == TType.STOP:
11055
        break
11056
      if fid == 1:
11057
        if ftype == TType.STRUCT:
11058
          self.scx = ShoppingCartException()
11059
          self.scx.read(iprot)
11060
        else:
11061
          iprot.skip(ftype)
11062
      else:
11063
        iprot.skip(ftype)
11064
      iprot.readFieldEnd()
11065
    iprot.readStructEnd()
11066
 
11067
  def write(self, oprot):
11068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11070
      return
11071
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11072
    if self.scx is not None:
11073
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11074
      self.scx.write(oprot)
11075
      oprot.writeFieldEnd()
11076
    oprot.writeFieldStop()
11077
    oprot.writeStructEnd()
11078
 
11079
  def validate(self):
11080
    return
11081
 
11082
 
11083
  def __repr__(self):
11084
    L = ['%s=%r' % (key, value)
11085
      for key, value in self.__dict__.iteritems()]
11086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11087
 
11088
  def __eq__(self, other):
11089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11090
 
11091
  def __ne__(self, other):
11092
    return not (self == other)
11093
 
11094
class saveDiscounts_args:
11095
  """
11096
  Attributes:
11097
   - discounts
11098
  """
11099
 
11100
  thrift_spec = (
11101
    None, # 0
11102
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11103
  )
11104
 
11105
  def __init__(self, discounts=None,):
11106
    self.discounts = discounts
11107
 
11108
  def read(self, iprot):
11109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11111
      return
11112
    iprot.readStructBegin()
11113
    while True:
11114
      (fname, ftype, fid) = iprot.readFieldBegin()
11115
      if ftype == TType.STOP:
11116
        break
11117
      if fid == 1:
11118
        if ftype == TType.LIST:
11119
          self.discounts = []
6736 amit.gupta 11120
          (_etype149, _size146) = iprot.readListBegin()
11121
          for _i150 in xrange(_size146):
11122
            _elem151 = Discount()
11123
            _elem151.read(iprot)
11124
            self.discounts.append(_elem151)
3554 varun.gupt 11125
          iprot.readListEnd()
11126
        else:
11127
          iprot.skip(ftype)
11128
      else:
11129
        iprot.skip(ftype)
11130
      iprot.readFieldEnd()
11131
    iprot.readStructEnd()
11132
 
11133
  def write(self, oprot):
11134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11136
      return
11137
    oprot.writeStructBegin('saveDiscounts_args')
11138
    if self.discounts is not None:
11139
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11140
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
6736 amit.gupta 11141
      for iter152 in self.discounts:
11142
        iter152.write(oprot)
3554 varun.gupt 11143
      oprot.writeListEnd()
11144
      oprot.writeFieldEnd()
11145
    oprot.writeFieldStop()
11146
    oprot.writeStructEnd()
11147
 
11148
  def validate(self):
11149
    return
11150
 
11151
 
11152
  def __repr__(self):
11153
    L = ['%s=%r' % (key, value)
11154
      for key, value in self.__dict__.iteritems()]
11155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11156
 
11157
  def __eq__(self, other):
11158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11159
 
11160
  def __ne__(self, other):
11161
    return not (self == other)
11162
 
11163
class saveDiscounts_result:
11164
  """
11165
  Attributes:
11166
   - scx
11167
  """
11168
 
11169
  thrift_spec = (
11170
    None, # 0
11171
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11172
  )
11173
 
11174
  def __init__(self, scx=None,):
11175
    self.scx = scx
11176
 
11177
  def read(self, iprot):
11178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11180
      return
11181
    iprot.readStructBegin()
11182
    while True:
11183
      (fname, ftype, fid) = iprot.readFieldBegin()
11184
      if ftype == TType.STOP:
11185
        break
11186
      if fid == 1:
11187
        if ftype == TType.STRUCT:
11188
          self.scx = ShoppingCartException()
11189
          self.scx.read(iprot)
11190
        else:
11191
          iprot.skip(ftype)
11192
      else:
11193
        iprot.skip(ftype)
11194
      iprot.readFieldEnd()
11195
    iprot.readStructEnd()
11196
 
11197
  def write(self, oprot):
11198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11200
      return
11201
    oprot.writeStructBegin('saveDiscounts_result')
11202
    if self.scx is not None:
11203
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11204
      self.scx.write(oprot)
11205
      oprot.writeFieldEnd()
11206
    oprot.writeFieldStop()
11207
    oprot.writeStructEnd()
11208
 
11209
  def validate(self):
11210
    return
11211
 
11212
 
11213
  def __repr__(self):
11214
    L = ['%s=%r' % (key, value)
11215
      for key, value in self.__dict__.iteritems()]
11216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11217
 
11218
  def __eq__(self, other):
11219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11220
 
11221
  def __ne__(self, other):
11222
    return not (self == other)
11223
 
690 chandransh 11224
class createOrders_args:
559 chandransh 11225
  """
11226
  Attributes:
11227
   - cartId
2815 vikas 11228
   - sessionSource
11229
   - sessionStartTime
3858 vikas 11230
   - firstSource
11231
   - firstSourceTime
5326 rajveer 11232
   - userId
6389 rajveer 11233
   - schemeId
559 chandransh 11234
  """
11235
 
11236
  thrift_spec = (
11237
    None, # 0
11238
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11239
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11240
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11241
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11242
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11243
    (6, TType.I64, 'userId', None, None, ), # 6
6389 rajveer 11244
    (7, TType.I64, 'schemeId', None, None, ), # 7
559 chandransh 11245
  )
11246
 
6389 rajveer 11247
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None,):
559 chandransh 11248
    self.cartId = cartId
2815 vikas 11249
    self.sessionSource = sessionSource
11250
    self.sessionStartTime = sessionStartTime
3858 vikas 11251
    self.firstSource = firstSource
11252
    self.firstSourceTime = firstSourceTime
5326 rajveer 11253
    self.userId = userId
6389 rajveer 11254
    self.schemeId = schemeId
559 chandransh 11255
 
11256
  def read(self, iprot):
11257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11259
      return
11260
    iprot.readStructBegin()
11261
    while True:
11262
      (fname, ftype, fid) = iprot.readFieldBegin()
11263
      if ftype == TType.STOP:
11264
        break
11265
      if fid == 1:
11266
        if ftype == TType.I64:
11267
          self.cartId = iprot.readI64();
11268
        else:
11269
          iprot.skip(ftype)
2815 vikas 11270
      elif fid == 2:
11271
        if ftype == TType.STRING:
11272
          self.sessionSource = iprot.readString();
11273
        else:
11274
          iprot.skip(ftype)
11275
      elif fid == 3:
11276
        if ftype == TType.I64:
11277
          self.sessionStartTime = iprot.readI64();
11278
        else:
11279
          iprot.skip(ftype)
3858 vikas 11280
      elif fid == 4:
11281
        if ftype == TType.STRING:
11282
          self.firstSource = iprot.readString();
11283
        else:
11284
          iprot.skip(ftype)
11285
      elif fid == 5:
11286
        if ftype == TType.I64:
11287
          self.firstSourceTime = iprot.readI64();
11288
        else:
11289
          iprot.skip(ftype)
5326 rajveer 11290
      elif fid == 6:
11291
        if ftype == TType.I64:
11292
          self.userId = iprot.readI64();
11293
        else:
11294
          iprot.skip(ftype)
6389 rajveer 11295
      elif fid == 7:
11296
        if ftype == TType.I64:
11297
          self.schemeId = iprot.readI64();
11298
        else:
11299
          iprot.skip(ftype)
559 chandransh 11300
      else:
11301
        iprot.skip(ftype)
11302
      iprot.readFieldEnd()
11303
    iprot.readStructEnd()
11304
 
11305
  def write(self, oprot):
11306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11308
      return
690 chandransh 11309
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11310
    if self.cartId is not None:
559 chandransh 11311
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11312
      oprot.writeI64(self.cartId)
11313
      oprot.writeFieldEnd()
3431 rajveer 11314
    if self.sessionSource is not None:
2815 vikas 11315
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11316
      oprot.writeString(self.sessionSource)
11317
      oprot.writeFieldEnd()
3431 rajveer 11318
    if self.sessionStartTime is not None:
2815 vikas 11319
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11320
      oprot.writeI64(self.sessionStartTime)
11321
      oprot.writeFieldEnd()
3858 vikas 11322
    if self.firstSource is not None:
11323
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11324
      oprot.writeString(self.firstSource)
11325
      oprot.writeFieldEnd()
11326
    if self.firstSourceTime is not None:
11327
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11328
      oprot.writeI64(self.firstSourceTime)
11329
      oprot.writeFieldEnd()
5326 rajveer 11330
    if self.userId is not None:
11331
      oprot.writeFieldBegin('userId', TType.I64, 6)
11332
      oprot.writeI64(self.userId)
11333
      oprot.writeFieldEnd()
6389 rajveer 11334
    if self.schemeId is not None:
11335
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
11336
      oprot.writeI64(self.schemeId)
11337
      oprot.writeFieldEnd()
559 chandransh 11338
    oprot.writeFieldStop()
11339
    oprot.writeStructEnd()
11340
 
3431 rajveer 11341
  def validate(self):
11342
    return
11343
 
11344
 
559 chandransh 11345
  def __repr__(self):
11346
    L = ['%s=%r' % (key, value)
11347
      for key, value in self.__dict__.iteritems()]
11348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11349
 
11350
  def __eq__(self, other):
11351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11352
 
11353
  def __ne__(self, other):
11354
    return not (self == other)
11355
 
690 chandransh 11356
class createOrders_result:
559 chandransh 11357
  """
11358
  Attributes:
94 ashish 11359
   - success
559 chandransh 11360
   - scx
94 ashish 11361
  """
11362
 
11363
  thrift_spec = (
575 chandransh 11364
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11365
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11366
  )
11367
 
559 chandransh 11368
  def __init__(self, success=None, scx=None,):
94 ashish 11369
    self.success = success
559 chandransh 11370
    self.scx = scx
94 ashish 11371
 
11372
  def read(self, iprot):
11373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11375
      return
11376
    iprot.readStructBegin()
11377
    while True:
11378
      (fname, ftype, fid) = iprot.readFieldBegin()
11379
      if ftype == TType.STOP:
11380
        break
11381
      if fid == 0:
575 chandransh 11382
        if ftype == TType.I64:
11383
          self.success = iprot.readI64();
94 ashish 11384
        else:
11385
          iprot.skip(ftype)
11386
      elif fid == 1:
11387
        if ftype == TType.STRUCT:
559 chandransh 11388
          self.scx = ShoppingCartException()
11389
          self.scx.read(iprot)
94 ashish 11390
        else:
11391
          iprot.skip(ftype)
11392
      else:
11393
        iprot.skip(ftype)
11394
      iprot.readFieldEnd()
11395
    iprot.readStructEnd()
11396
 
11397
  def write(self, oprot):
11398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11400
      return
690 chandransh 11401
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11402
    if self.success is not None:
575 chandransh 11403
      oprot.writeFieldBegin('success', TType.I64, 0)
11404
      oprot.writeI64(self.success)
94 ashish 11405
      oprot.writeFieldEnd()
3431 rajveer 11406
    if self.scx is not None:
559 chandransh 11407
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11408
      self.scx.write(oprot)
94 ashish 11409
      oprot.writeFieldEnd()
11410
    oprot.writeFieldStop()
11411
    oprot.writeStructEnd()
11412
 
3431 rajveer 11413
  def validate(self):
11414
    return
11415
 
11416
 
94 ashish 11417
  def __repr__(self):
11418
    L = ['%s=%r' % (key, value)
11419
      for key, value in self.__dict__.iteritems()]
11420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11421
 
11422
  def __eq__(self, other):
11423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11424
 
11425
  def __ne__(self, other):
11426
    return not (self == other)
11427
 
559 chandransh 11428
class validateCart_args:
94 ashish 11429
  """
11430
  Attributes:
559 chandransh 11431
   - cartId
3557 rajveer 11432
   - sourceId
94 ashish 11433
  """
11434
 
11435
  thrift_spec = (
11436
    None, # 0
559 chandransh 11437
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11438
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11439
  )
11440
 
3557 rajveer 11441
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11442
    self.cartId = cartId
3557 rajveer 11443
    self.sourceId = sourceId
94 ashish 11444
 
11445
  def read(self, iprot):
11446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11448
      return
11449
    iprot.readStructBegin()
11450
    while True:
11451
      (fname, ftype, fid) = iprot.readFieldBegin()
11452
      if ftype == TType.STOP:
11453
        break
11454
      if fid == 1:
11455
        if ftype == TType.I64:
559 chandransh 11456
          self.cartId = iprot.readI64();
94 ashish 11457
        else:
11458
          iprot.skip(ftype)
3557 rajveer 11459
      elif fid == 2:
11460
        if ftype == TType.I64:
11461
          self.sourceId = iprot.readI64();
11462
        else:
11463
          iprot.skip(ftype)
94 ashish 11464
      else:
11465
        iprot.skip(ftype)
11466
      iprot.readFieldEnd()
11467
    iprot.readStructEnd()
11468
 
11469
  def write(self, oprot):
11470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11472
      return
559 chandransh 11473
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11474
    if self.cartId is not None:
559 chandransh 11475
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11476
      oprot.writeI64(self.cartId)
94 ashish 11477
      oprot.writeFieldEnd()
3557 rajveer 11478
    if self.sourceId is not None:
11479
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11480
      oprot.writeI64(self.sourceId)
11481
      oprot.writeFieldEnd()
94 ashish 11482
    oprot.writeFieldStop()
11483
    oprot.writeStructEnd()
11484
 
3431 rajveer 11485
  def validate(self):
11486
    return
11487
 
11488
 
94 ashish 11489
  def __repr__(self):
11490
    L = ['%s=%r' % (key, value)
11491
      for key, value in self.__dict__.iteritems()]
11492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11493
 
11494
  def __eq__(self, other):
11495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11496
 
11497
  def __ne__(self, other):
11498
    return not (self == other)
11499
 
559 chandransh 11500
class validateCart_result:
94 ashish 11501
  """
11502
  Attributes:
11503
   - success
575 chandransh 11504
   - scex
94 ashish 11505
  """
11506
 
11507
  thrift_spec = (
6736 amit.gupta 11508
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
575 chandransh 11509
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11510
  )
11511
 
575 chandransh 11512
  def __init__(self, success=None, scex=None,):
94 ashish 11513
    self.success = success
575 chandransh 11514
    self.scex = scex
94 ashish 11515
 
11516
  def read(self, iprot):
11517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11519
      return
11520
    iprot.readStructBegin()
11521
    while True:
11522
      (fname, ftype, fid) = iprot.readFieldBegin()
11523
      if ftype == TType.STOP:
11524
        break
11525
      if fid == 0:
6736 amit.gupta 11526
        if ftype == TType.LIST:
11527
          self.success = []
11528
          (_etype156, _size153) = iprot.readListBegin()
11529
          for _i157 in xrange(_size153):
11530
            _elem158 = iprot.readString();
11531
            self.success.append(_elem158)
11532
          iprot.readListEnd()
94 ashish 11533
        else:
11534
          iprot.skip(ftype)
575 chandransh 11535
      elif fid == 1:
11536
        if ftype == TType.STRUCT:
11537
          self.scex = ShoppingCartException()
11538
          self.scex.read(iprot)
11539
        else:
11540
          iprot.skip(ftype)
94 ashish 11541
      else:
11542
        iprot.skip(ftype)
11543
      iprot.readFieldEnd()
11544
    iprot.readStructEnd()
11545
 
11546
  def write(self, oprot):
11547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11549
      return
559 chandransh 11550
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11551
    if self.success is not None:
6736 amit.gupta 11552
      oprot.writeFieldBegin('success', TType.LIST, 0)
11553
      oprot.writeListBegin(TType.STRING, len(self.success))
11554
      for iter159 in self.success:
11555
        oprot.writeString(iter159)
11556
      oprot.writeListEnd()
94 ashish 11557
      oprot.writeFieldEnd()
3431 rajveer 11558
    if self.scex is not None:
575 chandransh 11559
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11560
      self.scex.write(oprot)
11561
      oprot.writeFieldEnd()
559 chandransh 11562
    oprot.writeFieldStop()
11563
    oprot.writeStructEnd()
11564
 
3431 rajveer 11565
  def validate(self):
11566
    return
11567
 
11568
 
559 chandransh 11569
  def __repr__(self):
11570
    L = ['%s=%r' % (key, value)
11571
      for key, value in self.__dict__.iteritems()]
11572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11573
 
11574
  def __eq__(self, other):
11575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11576
 
11577
  def __ne__(self, other):
11578
    return not (self == other)
11579
 
690 chandransh 11580
class mergeCart_args:
575 chandransh 11581
  """
11582
  Attributes:
690 chandransh 11583
   - fromCartId
11584
   - toCartId
11585
  """
11586
 
11587
  thrift_spec = (
11588
    None, # 0
11589
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11590
    (2, TType.I64, 'toCartId', None, None, ), # 2
11591
  )
11592
 
11593
  def __init__(self, fromCartId=None, toCartId=None,):
11594
    self.fromCartId = fromCartId
11595
    self.toCartId = toCartId
11596
 
11597
  def read(self, iprot):
11598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11600
      return
11601
    iprot.readStructBegin()
11602
    while True:
11603
      (fname, ftype, fid) = iprot.readFieldBegin()
11604
      if ftype == TType.STOP:
11605
        break
11606
      if fid == 1:
11607
        if ftype == TType.I64:
11608
          self.fromCartId = iprot.readI64();
11609
        else:
11610
          iprot.skip(ftype)
11611
      elif fid == 2:
11612
        if ftype == TType.I64:
11613
          self.toCartId = iprot.readI64();
11614
        else:
11615
          iprot.skip(ftype)
11616
      else:
11617
        iprot.skip(ftype)
11618
      iprot.readFieldEnd()
11619
    iprot.readStructEnd()
11620
 
11621
  def write(self, oprot):
11622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11624
      return
11625
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11626
    if self.fromCartId is not None:
690 chandransh 11627
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11628
      oprot.writeI64(self.fromCartId)
11629
      oprot.writeFieldEnd()
3431 rajveer 11630
    if self.toCartId is not None:
690 chandransh 11631
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11632
      oprot.writeI64(self.toCartId)
11633
      oprot.writeFieldEnd()
11634
    oprot.writeFieldStop()
11635
    oprot.writeStructEnd()
11636
 
3431 rajveer 11637
  def validate(self):
11638
    return
11639
 
11640
 
690 chandransh 11641
  def __repr__(self):
11642
    L = ['%s=%r' % (key, value)
11643
      for key, value in self.__dict__.iteritems()]
11644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11645
 
11646
  def __eq__(self, other):
11647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11648
 
11649
  def __ne__(self, other):
11650
    return not (self == other)
11651
 
11652
class mergeCart_result:
11653
 
11654
  thrift_spec = (
11655
  )
11656
 
11657
  def read(self, iprot):
11658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11660
      return
11661
    iprot.readStructBegin()
11662
    while True:
11663
      (fname, ftype, fid) = iprot.readFieldBegin()
11664
      if ftype == TType.STOP:
11665
        break
11666
      else:
11667
        iprot.skip(ftype)
11668
      iprot.readFieldEnd()
11669
    iprot.readStructEnd()
11670
 
11671
  def write(self, oprot):
11672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11674
      return
11675
    oprot.writeStructBegin('mergeCart_result')
11676
    oprot.writeFieldStop()
11677
    oprot.writeStructEnd()
11678
 
3431 rajveer 11679
  def validate(self):
11680
    return
11681
 
11682
 
690 chandransh 11683
  def __repr__(self):
11684
    L = ['%s=%r' % (key, value)
11685
      for key, value in self.__dict__.iteritems()]
11686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11687
 
11688
  def __eq__(self, other):
11689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11690
 
11691
  def __ne__(self, other):
11692
    return not (self == other)
11693
 
11694
class checkOut_args:
11695
  """
11696
  Attributes:
575 chandransh 11697
   - cartId
11698
  """
11699
 
11700
  thrift_spec = (
11701
    None, # 0
11702
    (1, TType.I64, 'cartId', None, None, ), # 1
11703
  )
11704
 
11705
  def __init__(self, cartId=None,):
11706
    self.cartId = cartId
11707
 
11708
  def read(self, iprot):
11709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11711
      return
11712
    iprot.readStructBegin()
11713
    while True:
11714
      (fname, ftype, fid) = iprot.readFieldBegin()
11715
      if ftype == TType.STOP:
11716
        break
11717
      if fid == 1:
11718
        if ftype == TType.I64:
11719
          self.cartId = iprot.readI64();
11720
        else:
11721
          iprot.skip(ftype)
11722
      else:
11723
        iprot.skip(ftype)
11724
      iprot.readFieldEnd()
11725
    iprot.readStructEnd()
11726
 
11727
  def write(self, oprot):
11728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11730
      return
690 chandransh 11731
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11732
    if self.cartId is not None:
575 chandransh 11733
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11734
      oprot.writeI64(self.cartId)
11735
      oprot.writeFieldEnd()
11736
    oprot.writeFieldStop()
11737
    oprot.writeStructEnd()
11738
 
3431 rajveer 11739
  def validate(self):
11740
    return
11741
 
11742
 
575 chandransh 11743
  def __repr__(self):
11744
    L = ['%s=%r' % (key, value)
11745
      for key, value in self.__dict__.iteritems()]
11746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11747
 
11748
  def __eq__(self, other):
11749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11750
 
11751
  def __ne__(self, other):
11752
    return not (self == other)
11753
 
690 chandransh 11754
class checkOut_result:
575 chandransh 11755
  """
11756
  Attributes:
11757
   - success
11758
   - scex
11759
  """
11760
 
11761
  thrift_spec = (
11762
    (0, TType.BOOL, 'success', None, None, ), # 0
11763
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11764
  )
11765
 
11766
  def __init__(self, success=None, scex=None,):
11767
    self.success = success
11768
    self.scex = scex
11769
 
11770
  def read(self, iprot):
11771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11773
      return
11774
    iprot.readStructBegin()
11775
    while True:
11776
      (fname, ftype, fid) = iprot.readFieldBegin()
11777
      if ftype == TType.STOP:
11778
        break
11779
      if fid == 0:
11780
        if ftype == TType.BOOL:
11781
          self.success = iprot.readBool();
11782
        else:
11783
          iprot.skip(ftype)
11784
      elif fid == 1:
11785
        if ftype == TType.STRUCT:
11786
          self.scex = ShoppingCartException()
11787
          self.scex.read(iprot)
11788
        else:
11789
          iprot.skip(ftype)
11790
      else:
11791
        iprot.skip(ftype)
11792
      iprot.readFieldEnd()
11793
    iprot.readStructEnd()
11794
 
11795
  def write(self, oprot):
11796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11798
      return
690 chandransh 11799
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11800
    if self.success is not None:
575 chandransh 11801
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11802
      oprot.writeBool(self.success)
11803
      oprot.writeFieldEnd()
3431 rajveer 11804
    if self.scex is not None:
575 chandransh 11805
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11806
      self.scex.write(oprot)
11807
      oprot.writeFieldEnd()
11808
    oprot.writeFieldStop()
11809
    oprot.writeStructEnd()
11810
 
3431 rajveer 11811
  def validate(self):
11812
    return
11813
 
11814
 
575 chandransh 11815
  def __repr__(self):
11816
    L = ['%s=%r' % (key, value)
11817
      for key, value in self.__dict__.iteritems()]
11818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11819
 
11820
  def __eq__(self, other):
11821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11822
 
11823
  def __ne__(self, other):
11824
    return not (self == other)
11825
 
690 chandransh 11826
class resetCart_args:
559 chandransh 11827
  """
11828
  Attributes:
690 chandransh 11829
   - cartId
11830
   - items
559 chandransh 11831
  """
11832
 
11833
  thrift_spec = (
11834
    None, # 0
690 chandransh 11835
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11836
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11837
  )
11838
 
690 chandransh 11839
  def __init__(self, cartId=None, items=None,):
11840
    self.cartId = cartId
11841
    self.items = items
559 chandransh 11842
 
11843
  def read(self, iprot):
11844
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11845
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11846
      return
11847
    iprot.readStructBegin()
11848
    while True:
11849
      (fname, ftype, fid) = iprot.readFieldBegin()
11850
      if ftype == TType.STOP:
11851
        break
11852
      if fid == 1:
11853
        if ftype == TType.I64:
690 chandransh 11854
          self.cartId = iprot.readI64();
559 chandransh 11855
        else:
11856
          iprot.skip(ftype)
11857
      elif fid == 2:
690 chandransh 11858
        if ftype == TType.MAP:
11859
          self.items = {}
6736 amit.gupta 11860
          (_ktype161, _vtype162, _size160 ) = iprot.readMapBegin() 
11861
          for _i164 in xrange(_size160):
11862
            _key165 = iprot.readI64();
11863
            _val166 = iprot.readDouble();
11864
            self.items[_key165] = _val166
690 chandransh 11865
          iprot.readMapEnd()
559 chandransh 11866
        else:
11867
          iprot.skip(ftype)
11868
      else:
11869
        iprot.skip(ftype)
11870
      iprot.readFieldEnd()
11871
    iprot.readStructEnd()
11872
 
11873
  def write(self, oprot):
11874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11876
      return
690 chandransh 11877
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11878
    if self.cartId is not None:
690 chandransh 11879
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11880
      oprot.writeI64(self.cartId)
94 ashish 11881
      oprot.writeFieldEnd()
3431 rajveer 11882
    if self.items is not None:
690 chandransh 11883
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11884
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
6736 amit.gupta 11885
      for kiter167,viter168 in self.items.items():
11886
        oprot.writeI64(kiter167)
11887
        oprot.writeDouble(viter168)
690 chandransh 11888
      oprot.writeMapEnd()
559 chandransh 11889
      oprot.writeFieldEnd()
94 ashish 11890
    oprot.writeFieldStop()
11891
    oprot.writeStructEnd()
11892
 
3431 rajveer 11893
  def validate(self):
11894
    return
11895
 
11896
 
94 ashish 11897
  def __repr__(self):
11898
    L = ['%s=%r' % (key, value)
11899
      for key, value in self.__dict__.iteritems()]
11900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11901
 
11902
  def __eq__(self, other):
11903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11904
 
11905
  def __ne__(self, other):
11906
    return not (self == other)
11907
 
690 chandransh 11908
class resetCart_result:
11909
  """
11910
  Attributes:
11911
   - success
11912
   - scex
11913
  """
559 chandransh 11914
 
11915
  thrift_spec = (
690 chandransh 11916
    (0, TType.BOOL, 'success', None, None, ), # 0
11917
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11918
  )
11919
 
690 chandransh 11920
  def __init__(self, success=None, scex=None,):
11921
    self.success = success
11922
    self.scex = scex
11923
 
559 chandransh 11924
  def read(self, iprot):
11925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11927
      return
11928
    iprot.readStructBegin()
11929
    while True:
11930
      (fname, ftype, fid) = iprot.readFieldBegin()
11931
      if ftype == TType.STOP:
11932
        break
690 chandransh 11933
      if fid == 0:
11934
        if ftype == TType.BOOL:
11935
          self.success = iprot.readBool();
11936
        else:
11937
          iprot.skip(ftype)
11938
      elif fid == 1:
11939
        if ftype == TType.STRUCT:
11940
          self.scex = ShoppingCartException()
11941
          self.scex.read(iprot)
11942
        else:
11943
          iprot.skip(ftype)
559 chandransh 11944
      else:
11945
        iprot.skip(ftype)
11946
      iprot.readFieldEnd()
11947
    iprot.readStructEnd()
11948
 
11949
  def write(self, oprot):
11950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11952
      return
690 chandransh 11953
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11954
    if self.success is not None:
690 chandransh 11955
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11956
      oprot.writeBool(self.success)
11957
      oprot.writeFieldEnd()
3431 rajveer 11958
    if self.scex is not None:
690 chandransh 11959
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11960
      self.scex.write(oprot)
11961
      oprot.writeFieldEnd()
559 chandransh 11962
    oprot.writeFieldStop()
11963
    oprot.writeStructEnd()
11964
 
3431 rajveer 11965
  def validate(self):
11966
    return
11967
 
11968
 
559 chandransh 11969
  def __repr__(self):
11970
    L = ['%s=%r' % (key, value)
11971
      for key, value in self.__dict__.iteritems()]
11972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11973
 
11974
  def __eq__(self, other):
11975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11976
 
11977
  def __ne__(self, other):
11978
    return not (self == other)
11979
 
2981 rajveer 11980
class getUserCount_args:
94 ashish 11981
  """
11982
  Attributes:
2981 rajveer 11983
   - userType
559 chandransh 11984
  """
11985
 
11986
  thrift_spec = (
11987
    None, # 0
2981 rajveer 11988
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11989
  )
11990
 
2981 rajveer 11991
  def __init__(self, userType=None,):
11992
    self.userType = userType
559 chandransh 11993
 
11994
  def read(self, iprot):
11995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11997
      return
11998
    iprot.readStructBegin()
11999
    while True:
12000
      (fname, ftype, fid) = iprot.readFieldBegin()
12001
      if ftype == TType.STOP:
12002
        break
12003
      if fid == 1:
2981 rajveer 12004
        if ftype == TType.I32:
12005
          self.userType = iprot.readI32();
559 chandransh 12006
        else:
12007
          iprot.skip(ftype)
12008
      else:
12009
        iprot.skip(ftype)
12010
      iprot.readFieldEnd()
12011
    iprot.readStructEnd()
12012
 
12013
  def write(self, oprot):
12014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12016
      return
2981 rajveer 12017
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12018
    if self.userType is not None:
2981 rajveer 12019
      oprot.writeFieldBegin('userType', TType.I32, 1)
12020
      oprot.writeI32(self.userType)
559 chandransh 12021
      oprot.writeFieldEnd()
12022
    oprot.writeFieldStop()
12023
    oprot.writeStructEnd()
12024
 
3431 rajveer 12025
  def validate(self):
12026
    return
12027
 
12028
 
559 chandransh 12029
  def __repr__(self):
12030
    L = ['%s=%r' % (key, value)
12031
      for key, value in self.__dict__.iteritems()]
12032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12033
 
12034
  def __eq__(self, other):
12035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12036
 
12037
  def __ne__(self, other):
12038
    return not (self == other)
12039
 
2981 rajveer 12040
class getUserCount_result:
94 ashish 12041
  """
12042
  Attributes:
12043
   - success
12044
  """
12045
 
12046
  thrift_spec = (
2981 rajveer 12047
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12048
  )
12049
 
2981 rajveer 12050
  def __init__(self, success=None,):
94 ashish 12051
    self.success = success
12052
 
12053
  def read(self, iprot):
12054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12056
      return
12057
    iprot.readStructBegin()
12058
    while True:
12059
      (fname, ftype, fid) = iprot.readFieldBegin()
12060
      if ftype == TType.STOP:
12061
        break
12062
      if fid == 0:
2981 rajveer 12063
        if ftype == TType.I64:
12064
          self.success = iprot.readI64();
94 ashish 12065
        else:
12066
          iprot.skip(ftype)
12067
      else:
12068
        iprot.skip(ftype)
12069
      iprot.readFieldEnd()
12070
    iprot.readStructEnd()
12071
 
12072
  def write(self, oprot):
12073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12075
      return
2981 rajveer 12076
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12077
    if self.success is not None:
2981 rajveer 12078
      oprot.writeFieldBegin('success', TType.I64, 0)
12079
      oprot.writeI64(self.success)
94 ashish 12080
      oprot.writeFieldEnd()
12081
    oprot.writeFieldStop()
12082
    oprot.writeStructEnd()
12083
 
3431 rajveer 12084
  def validate(self):
12085
    return
12086
 
12087
 
94 ashish 12088
  def __repr__(self):
12089
    L = ['%s=%r' % (key, value)
12090
      for key, value in self.__dict__.iteritems()]
12091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12092
 
12093
  def __eq__(self, other):
12094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12095
 
12096
  def __ne__(self, other):
12097
    return not (self == other)
12098
 
2981 rajveer 12099
class getAllUsers_args:
94 ashish 12100
  """
12101
  Attributes:
2981 rajveer 12102
   - userType
12103
   - startDate
12104
   - endDate
94 ashish 12105
  """
12106
 
12107
  thrift_spec = (
12108
    None, # 0
2981 rajveer 12109
    (1, TType.I32, 'userType', None, None, ), # 1
12110
    (2, TType.I64, 'startDate', None, None, ), # 2
12111
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12112
  )
12113
 
2981 rajveer 12114
  def __init__(self, userType=None, startDate=None, endDate=None,):
12115
    self.userType = userType
12116
    self.startDate = startDate
12117
    self.endDate = endDate
94 ashish 12118
 
12119
  def read(self, iprot):
12120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12122
      return
12123
    iprot.readStructBegin()
12124
    while True:
12125
      (fname, ftype, fid) = iprot.readFieldBegin()
12126
      if ftype == TType.STOP:
12127
        break
12128
      if fid == 1:
2981 rajveer 12129
        if ftype == TType.I32:
12130
          self.userType = iprot.readI32();
94 ashish 12131
        else:
12132
          iprot.skip(ftype)
12133
      elif fid == 2:
559 chandransh 12134
        if ftype == TType.I64:
2981 rajveer 12135
          self.startDate = iprot.readI64();
94 ashish 12136
        else:
12137
          iprot.skip(ftype)
2981 rajveer 12138
      elif fid == 3:
12139
        if ftype == TType.I64:
12140
          self.endDate = iprot.readI64();
12141
        else:
12142
          iprot.skip(ftype)
94 ashish 12143
      else:
12144
        iprot.skip(ftype)
12145
      iprot.readFieldEnd()
12146
    iprot.readStructEnd()
12147
 
12148
  def write(self, oprot):
12149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12151
      return
2981 rajveer 12152
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12153
    if self.userType is not None:
2981 rajveer 12154
      oprot.writeFieldBegin('userType', TType.I32, 1)
12155
      oprot.writeI32(self.userType)
94 ashish 12156
      oprot.writeFieldEnd()
3431 rajveer 12157
    if self.startDate is not None:
2981 rajveer 12158
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12159
      oprot.writeI64(self.startDate)
94 ashish 12160
      oprot.writeFieldEnd()
3431 rajveer 12161
    if self.endDate is not None:
2981 rajveer 12162
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12163
      oprot.writeI64(self.endDate)
12164
      oprot.writeFieldEnd()
94 ashish 12165
    oprot.writeFieldStop()
12166
    oprot.writeStructEnd()
12167
 
3431 rajveer 12168
  def validate(self):
12169
    return
12170
 
12171
 
94 ashish 12172
  def __repr__(self):
12173
    L = ['%s=%r' % (key, value)
12174
      for key, value in self.__dict__.iteritems()]
12175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12176
 
12177
  def __eq__(self, other):
12178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12179
 
12180
  def __ne__(self, other):
12181
    return not (self == other)
12182
 
2981 rajveer 12183
class getAllUsers_result:
94 ashish 12184
  """
12185
  Attributes:
12186
   - success
12187
  """
12188
 
12189
  thrift_spec = (
2981 rajveer 12190
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12191
  )
12192
 
2981 rajveer 12193
  def __init__(self, success=None,):
94 ashish 12194
    self.success = success
12195
 
12196
  def read(self, iprot):
12197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12199
      return
12200
    iprot.readStructBegin()
12201
    while True:
12202
      (fname, ftype, fid) = iprot.readFieldBegin()
12203
      if ftype == TType.STOP:
12204
        break
12205
      if fid == 0:
2981 rajveer 12206
        if ftype == TType.LIST:
12207
          self.success = []
6736 amit.gupta 12208
          (_etype172, _size169) = iprot.readListBegin()
12209
          for _i173 in xrange(_size169):
12210
            _elem174 = User()
12211
            _elem174.read(iprot)
12212
            self.success.append(_elem174)
2981 rajveer 12213
          iprot.readListEnd()
94 ashish 12214
        else:
12215
          iprot.skip(ftype)
12216
      else:
12217
        iprot.skip(ftype)
12218
      iprot.readFieldEnd()
12219
    iprot.readStructEnd()
12220
 
12221
  def write(self, oprot):
12222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12224
      return
2981 rajveer 12225
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12226
    if self.success is not None:
2981 rajveer 12227
      oprot.writeFieldBegin('success', TType.LIST, 0)
12228
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6736 amit.gupta 12229
      for iter175 in self.success:
12230
        iter175.write(oprot)
2981 rajveer 12231
      oprot.writeListEnd()
94 ashish 12232
      oprot.writeFieldEnd()
12233
    oprot.writeFieldStop()
12234
    oprot.writeStructEnd()
12235
 
3431 rajveer 12236
  def validate(self):
12237
    return
12238
 
12239
 
94 ashish 12240
  def __repr__(self):
12241
    L = ['%s=%r' % (key, value)
12242
      for key, value in self.__dict__.iteritems()]
12243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12244
 
12245
  def __eq__(self, other):
12246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12247
 
12248
  def __ne__(self, other):
12249
    return not (self == other)
12250
 
2981 rajveer 12251
class getMyResearchItems_args:
559 chandransh 12252
  """
12253
  Attributes:
772 rajveer 12254
   - userId
559 chandransh 12255
  """
12256
 
12257
  thrift_spec = (
12258
    None, # 0
772 rajveer 12259
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12260
  )
12261
 
772 rajveer 12262
  def __init__(self, userId=None,):
12263
    self.userId = userId
559 chandransh 12264
 
12265
  def read(self, iprot):
12266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12268
      return
12269
    iprot.readStructBegin()
12270
    while True:
12271
      (fname, ftype, fid) = iprot.readFieldBegin()
12272
      if ftype == TType.STOP:
12273
        break
12274
      if fid == 1:
12275
        if ftype == TType.I64:
772 rajveer 12276
          self.userId = iprot.readI64();
559 chandransh 12277
        else:
12278
          iprot.skip(ftype)
12279
      else:
12280
        iprot.skip(ftype)
12281
      iprot.readFieldEnd()
12282
    iprot.readStructEnd()
12283
 
12284
  def write(self, oprot):
12285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12287
      return
2981 rajveer 12288
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12289
    if self.userId is not None:
772 rajveer 12290
      oprot.writeFieldBegin('userId', TType.I64, 1)
12291
      oprot.writeI64(self.userId)
559 chandransh 12292
      oprot.writeFieldEnd()
12293
    oprot.writeFieldStop()
12294
    oprot.writeStructEnd()
12295
 
3431 rajveer 12296
  def validate(self):
12297
    return
12298
 
12299
 
559 chandransh 12300
  def __repr__(self):
12301
    L = ['%s=%r' % (key, value)
12302
      for key, value in self.__dict__.iteritems()]
12303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12304
 
12305
  def __eq__(self, other):
12306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12307
 
12308
  def __ne__(self, other):
12309
    return not (self == other)
12310
 
2981 rajveer 12311
class getMyResearchItems_result:
559 chandransh 12312
  """
12313
  Attributes:
130 ashish 12314
   - success
559 chandransh 12315
   - scx
130 ashish 12316
  """
12317
 
12318
  thrift_spec = (
2981 rajveer 12319
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12320
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12321
  )
12322
 
559 chandransh 12323
  def __init__(self, success=None, scx=None,):
130 ashish 12324
    self.success = success
559 chandransh 12325
    self.scx = scx
130 ashish 12326
 
12327
  def read(self, iprot):
12328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12330
      return
12331
    iprot.readStructBegin()
12332
    while True:
12333
      (fname, ftype, fid) = iprot.readFieldBegin()
12334
      if ftype == TType.STOP:
12335
        break
12336
      if fid == 0:
2981 rajveer 12337
        if ftype == TType.LIST:
12338
          self.success = []
6736 amit.gupta 12339
          (_etype179, _size176) = iprot.readListBegin()
12340
          for _i180 in xrange(_size176):
12341
            _elem181 = iprot.readI64();
12342
            self.success.append(_elem181)
2981 rajveer 12343
          iprot.readListEnd()
130 ashish 12344
        else:
12345
          iprot.skip(ftype)
12346
      elif fid == 1:
12347
        if ftype == TType.STRUCT:
559 chandransh 12348
          self.scx = WidgetException()
12349
          self.scx.read(iprot)
130 ashish 12350
        else:
12351
          iprot.skip(ftype)
12352
      else:
12353
        iprot.skip(ftype)
12354
      iprot.readFieldEnd()
12355
    iprot.readStructEnd()
12356
 
12357
  def write(self, oprot):
12358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12360
      return
2981 rajveer 12361
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12362
    if self.success is not None:
2981 rajveer 12363
      oprot.writeFieldBegin('success', TType.LIST, 0)
12364
      oprot.writeListBegin(TType.I64, len(self.success))
6736 amit.gupta 12365
      for iter182 in self.success:
12366
        oprot.writeI64(iter182)
2981 rajveer 12367
      oprot.writeListEnd()
130 ashish 12368
      oprot.writeFieldEnd()
3431 rajveer 12369
    if self.scx is not None:
559 chandransh 12370
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12371
      self.scx.write(oprot)
130 ashish 12372
      oprot.writeFieldEnd()
12373
    oprot.writeFieldStop()
12374
    oprot.writeStructEnd()
12375
 
3431 rajveer 12376
  def validate(self):
12377
    return
12378
 
12379
 
130 ashish 12380
  def __repr__(self):
12381
    L = ['%s=%r' % (key, value)
12382
      for key, value in self.__dict__.iteritems()]
12383
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12384
 
12385
  def __eq__(self, other):
12386
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12387
 
12388
  def __ne__(self, other):
12389
    return not (self == other)
12390
 
2981 rajveer 12391
class updateMyResearch_args:
130 ashish 12392
  """
12393
  Attributes:
2981 rajveer 12394
   - userId
12395
   - itemId
130 ashish 12396
  """
12397
 
12398
  thrift_spec = (
12399
    None, # 0
2981 rajveer 12400
    (1, TType.I64, 'userId', None, None, ), # 1
12401
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12402
  )
12403
 
2981 rajveer 12404
  def __init__(self, userId=None, itemId=None,):
12405
    self.userId = userId
12406
    self.itemId = itemId
130 ashish 12407
 
12408
  def read(self, iprot):
12409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12411
      return
12412
    iprot.readStructBegin()
12413
    while True:
12414
      (fname, ftype, fid) = iprot.readFieldBegin()
12415
      if ftype == TType.STOP:
12416
        break
12417
      if fid == 1:
559 chandransh 12418
        if ftype == TType.I64:
2981 rajveer 12419
          self.userId = iprot.readI64();
130 ashish 12420
        else:
12421
          iprot.skip(ftype)
12422
      elif fid == 2:
559 chandransh 12423
        if ftype == TType.I64:
2981 rajveer 12424
          self.itemId = iprot.readI64();
559 chandransh 12425
        else:
12426
          iprot.skip(ftype)
130 ashish 12427
      else:
12428
        iprot.skip(ftype)
12429
      iprot.readFieldEnd()
12430
    iprot.readStructEnd()
12431
 
12432
  def write(self, oprot):
12433
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12434
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12435
      return
2981 rajveer 12436
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12437
    if self.userId is not None:
2981 rajveer 12438
      oprot.writeFieldBegin('userId', TType.I64, 1)
12439
      oprot.writeI64(self.userId)
130 ashish 12440
      oprot.writeFieldEnd()
3431 rajveer 12441
    if self.itemId is not None:
2981 rajveer 12442
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12443
      oprot.writeI64(self.itemId)
130 ashish 12444
      oprot.writeFieldEnd()
12445
    oprot.writeFieldStop()
12446
    oprot.writeStructEnd()
12447
 
3431 rajveer 12448
  def validate(self):
12449
    return
12450
 
12451
 
130 ashish 12452
  def __repr__(self):
12453
    L = ['%s=%r' % (key, value)
12454
      for key, value in self.__dict__.iteritems()]
12455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12456
 
12457
  def __eq__(self, other):
12458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12459
 
12460
  def __ne__(self, other):
12461
    return not (self == other)
12462
 
2981 rajveer 12463
class updateMyResearch_result:
12464
  """
12465
  Attributes:
12466
   - success
12467
   - scx
12468
  """
559 chandransh 12469
 
12470
  thrift_spec = (
2981 rajveer 12471
    (0, TType.BOOL, 'success', None, None, ), # 0
12472
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12473
  )
12474
 
2981 rajveer 12475
  def __init__(self, success=None, scx=None,):
12476
    self.success = success
12477
    self.scx = scx
12478
 
559 chandransh 12479
  def read(self, iprot):
12480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12482
      return
12483
    iprot.readStructBegin()
12484
    while True:
12485
      (fname, ftype, fid) = iprot.readFieldBegin()
12486
      if ftype == TType.STOP:
12487
        break
2981 rajveer 12488
      if fid == 0:
12489
        if ftype == TType.BOOL:
12490
          self.success = iprot.readBool();
12491
        else:
12492
          iprot.skip(ftype)
12493
      elif fid == 1:
12494
        if ftype == TType.STRUCT:
12495
          self.scx = WidgetException()
12496
          self.scx.read(iprot)
12497
        else:
12498
          iprot.skip(ftype)
559 chandransh 12499
      else:
12500
        iprot.skip(ftype)
12501
      iprot.readFieldEnd()
12502
    iprot.readStructEnd()
12503
 
12504
  def write(self, oprot):
12505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12507
      return
2981 rajveer 12508
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12509
    if self.success is not None:
2981 rajveer 12510
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12511
      oprot.writeBool(self.success)
12512
      oprot.writeFieldEnd()
3431 rajveer 12513
    if self.scx is not None:
2981 rajveer 12514
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12515
      self.scx.write(oprot)
12516
      oprot.writeFieldEnd()
559 chandransh 12517
    oprot.writeFieldStop()
12518
    oprot.writeStructEnd()
12519
 
3431 rajveer 12520
  def validate(self):
12521
    return
12522
 
12523
 
559 chandransh 12524
  def __repr__(self):
12525
    L = ['%s=%r' % (key, value)
12526
      for key, value in self.__dict__.iteritems()]
12527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12528
 
12529
  def __eq__(self, other):
12530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12531
 
12532
  def __ne__(self, other):
12533
    return not (self == other)
12534
 
2981 rajveer 12535
class deleteItemFromMyResearch_args:
1596 ankur.sing 12536
  """
12537
  Attributes:
2981 rajveer 12538
   - userId
12539
   - itemId
1596 ankur.sing 12540
  """
559 chandransh 12541
 
1596 ankur.sing 12542
  thrift_spec = (
12543
    None, # 0
2981 rajveer 12544
    (1, TType.I64, 'userId', None, None, ), # 1
12545
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12546
  )
12547
 
2981 rajveer 12548
  def __init__(self, userId=None, itemId=None,):
12549
    self.userId = userId
12550
    self.itemId = itemId
1596 ankur.sing 12551
 
12552
  def read(self, iprot):
12553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12555
      return
12556
    iprot.readStructBegin()
12557
    while True:
12558
      (fname, ftype, fid) = iprot.readFieldBegin()
12559
      if ftype == TType.STOP:
12560
        break
12561
      if fid == 1:
2981 rajveer 12562
        if ftype == TType.I64:
12563
          self.userId = iprot.readI64();
1596 ankur.sing 12564
        else:
12565
          iprot.skip(ftype)
2981 rajveer 12566
      elif fid == 2:
12567
        if ftype == TType.I64:
12568
          self.itemId = iprot.readI64();
12569
        else:
12570
          iprot.skip(ftype)
1596 ankur.sing 12571
      else:
12572
        iprot.skip(ftype)
12573
      iprot.readFieldEnd()
12574
    iprot.readStructEnd()
12575
 
12576
  def write(self, oprot):
12577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12579
      return
2981 rajveer 12580
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12581
    if self.userId is not None:
2981 rajveer 12582
      oprot.writeFieldBegin('userId', TType.I64, 1)
12583
      oprot.writeI64(self.userId)
1596 ankur.sing 12584
      oprot.writeFieldEnd()
3431 rajveer 12585
    if self.itemId is not None:
2981 rajveer 12586
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12587
      oprot.writeI64(self.itemId)
12588
      oprot.writeFieldEnd()
1596 ankur.sing 12589
    oprot.writeFieldStop()
12590
    oprot.writeStructEnd()
12591
 
3431 rajveer 12592
  def validate(self):
12593
    return
12594
 
12595
 
1596 ankur.sing 12596
  def __repr__(self):
12597
    L = ['%s=%r' % (key, value)
12598
      for key, value in self.__dict__.iteritems()]
12599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12600
 
12601
  def __eq__(self, other):
12602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12603
 
12604
  def __ne__(self, other):
12605
    return not (self == other)
12606
 
2981 rajveer 12607
class deleteItemFromMyResearch_result:
1596 ankur.sing 12608
  """
12609
  Attributes:
2981 rajveer 12610
   - scx
1596 ankur.sing 12611
  """
12612
 
12613
  thrift_spec = (
2981 rajveer 12614
    None, # 0
12615
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12616
  )
12617
 
2981 rajveer 12618
  def __init__(self, scx=None,):
12619
    self.scx = scx
1596 ankur.sing 12620
 
12621
  def read(self, iprot):
12622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12624
      return
12625
    iprot.readStructBegin()
12626
    while True:
12627
      (fname, ftype, fid) = iprot.readFieldBegin()
12628
      if ftype == TType.STOP:
12629
        break
2981 rajveer 12630
      if fid == 1:
12631
        if ftype == TType.STRUCT:
12632
          self.scx = WidgetException()
12633
          self.scx.read(iprot)
1596 ankur.sing 12634
        else:
12635
          iprot.skip(ftype)
12636
      else:
12637
        iprot.skip(ftype)
12638
      iprot.readFieldEnd()
12639
    iprot.readStructEnd()
12640
 
12641
  def write(self, oprot):
12642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12644
      return
2981 rajveer 12645
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12646
    if self.scx is not None:
2981 rajveer 12647
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12648
      self.scx.write(oprot)
1596 ankur.sing 12649
      oprot.writeFieldEnd()
12650
    oprot.writeFieldStop()
12651
    oprot.writeStructEnd()
12652
 
3431 rajveer 12653
  def validate(self):
12654
    return
12655
 
12656
 
1596 ankur.sing 12657
  def __repr__(self):
12658
    L = ['%s=%r' % (key, value)
12659
      for key, value in self.__dict__.iteritems()]
12660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12661
 
12662
  def __eq__(self, other):
12663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12664
 
12665
  def __ne__(self, other):
12666
    return not (self == other)
12667
 
2981 rajveer 12668
class getBrowseHistoryItems_args:
1673 ankur.sing 12669
  """
12670
  Attributes:
2981 rajveer 12671
   - userId
1673 ankur.sing 12672
  """
1596 ankur.sing 12673
 
1673 ankur.sing 12674
  thrift_spec = (
12675
    None, # 0
2981 rajveer 12676
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12677
  )
12678
 
2981 rajveer 12679
  def __init__(self, userId=None,):
12680
    self.userId = userId
1673 ankur.sing 12681
 
12682
  def read(self, iprot):
12683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12685
      return
12686
    iprot.readStructBegin()
12687
    while True:
12688
      (fname, ftype, fid) = iprot.readFieldBegin()
12689
      if ftype == TType.STOP:
12690
        break
12691
      if fid == 1:
1891 ankur.sing 12692
        if ftype == TType.I64:
2981 rajveer 12693
          self.userId = iprot.readI64();
1891 ankur.sing 12694
        else:
12695
          iprot.skip(ftype)
1673 ankur.sing 12696
      else:
12697
        iprot.skip(ftype)
12698
      iprot.readFieldEnd()
12699
    iprot.readStructEnd()
12700
 
12701
  def write(self, oprot):
12702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12704
      return
2981 rajveer 12705
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12706
    if self.userId is not None:
2981 rajveer 12707
      oprot.writeFieldBegin('userId', TType.I64, 1)
12708
      oprot.writeI64(self.userId)
1673 ankur.sing 12709
      oprot.writeFieldEnd()
12710
    oprot.writeFieldStop()
12711
    oprot.writeStructEnd()
12712
 
3431 rajveer 12713
  def validate(self):
12714
    return
12715
 
12716
 
1673 ankur.sing 12717
  def __repr__(self):
12718
    L = ['%s=%r' % (key, value)
12719
      for key, value in self.__dict__.iteritems()]
12720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12721
 
12722
  def __eq__(self, other):
12723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12724
 
12725
  def __ne__(self, other):
12726
    return not (self == other)
12727
 
2981 rajveer 12728
class getBrowseHistoryItems_result:
1673 ankur.sing 12729
  """
12730
  Attributes:
12731
   - success
2981 rajveer 12732
   - scx
1673 ankur.sing 12733
  """
12734
 
12735
  thrift_spec = (
2981 rajveer 12736
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12737
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12738
  )
12739
 
2981 rajveer 12740
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12741
    self.success = success
2981 rajveer 12742
    self.scx = scx
1673 ankur.sing 12743
 
12744
  def read(self, iprot):
12745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12747
      return
12748
    iprot.readStructBegin()
12749
    while True:
12750
      (fname, ftype, fid) = iprot.readFieldBegin()
12751
      if ftype == TType.STOP:
12752
        break
12753
      if fid == 0:
12754
        if ftype == TType.LIST:
12755
          self.success = []
6736 amit.gupta 12756
          (_etype186, _size183) = iprot.readListBegin()
12757
          for _i187 in xrange(_size183):
12758
            _elem188 = iprot.readI64();
12759
            self.success.append(_elem188)
1673 ankur.sing 12760
          iprot.readListEnd()
12761
        else:
12762
          iprot.skip(ftype)
2981 rajveer 12763
      elif fid == 1:
12764
        if ftype == TType.STRUCT:
12765
          self.scx = WidgetException()
12766
          self.scx.read(iprot)
12767
        else:
12768
          iprot.skip(ftype)
1673 ankur.sing 12769
      else:
12770
        iprot.skip(ftype)
12771
      iprot.readFieldEnd()
12772
    iprot.readStructEnd()
12773
 
12774
  def write(self, oprot):
12775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12777
      return
2981 rajveer 12778
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12779
    if self.success is not None:
1673 ankur.sing 12780
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12781
      oprot.writeListBegin(TType.I64, len(self.success))
6736 amit.gupta 12782
      for iter189 in self.success:
12783
        oprot.writeI64(iter189)
1673 ankur.sing 12784
      oprot.writeListEnd()
12785
      oprot.writeFieldEnd()
3431 rajveer 12786
    if self.scx is not None:
2981 rajveer 12787
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12788
      self.scx.write(oprot)
2642 varun.gupt 12789
      oprot.writeFieldEnd()
12790
    oprot.writeFieldStop()
12791
    oprot.writeStructEnd()
12792
 
3431 rajveer 12793
  def validate(self):
12794
    return
12795
 
12796
 
2642 varun.gupt 12797
  def __repr__(self):
12798
    L = ['%s=%r' % (key, value)
12799
      for key, value in self.__dict__.iteritems()]
12800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12801
 
12802
  def __eq__(self, other):
12803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12804
 
12805
  def __ne__(self, other):
12806
    return not (self == other)
12807
 
2981 rajveer 12808
class updateBrowseHistory_args:
2642 varun.gupt 12809
  """
12810
  Attributes:
2981 rajveer 12811
   - userId
12812
   - itemId
2642 varun.gupt 12813
  """
12814
 
12815
  thrift_spec = (
12816
    None, # 0
2981 rajveer 12817
    (1, TType.I64, 'userId', None, None, ), # 1
12818
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12819
  )
12820
 
2981 rajveer 12821
  def __init__(self, userId=None, itemId=None,):
12822
    self.userId = userId
12823
    self.itemId = itemId
2642 varun.gupt 12824
 
12825
  def read(self, iprot):
12826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12828
      return
12829
    iprot.readStructBegin()
12830
    while True:
12831
      (fname, ftype, fid) = iprot.readFieldBegin()
12832
      if ftype == TType.STOP:
12833
        break
12834
      if fid == 1:
12835
        if ftype == TType.I64:
2981 rajveer 12836
          self.userId = iprot.readI64();
2642 varun.gupt 12837
        else:
12838
          iprot.skip(ftype)
12839
      elif fid == 2:
12840
        if ftype == TType.I64:
2981 rajveer 12841
          self.itemId = iprot.readI64();
2642 varun.gupt 12842
        else:
12843
          iprot.skip(ftype)
12844
      else:
12845
        iprot.skip(ftype)
12846
      iprot.readFieldEnd()
12847
    iprot.readStructEnd()
12848
 
12849
  def write(self, oprot):
12850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12852
      return
2981 rajveer 12853
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12854
    if self.userId is not None:
2981 rajveer 12855
      oprot.writeFieldBegin('userId', TType.I64, 1)
12856
      oprot.writeI64(self.userId)
2642 varun.gupt 12857
      oprot.writeFieldEnd()
3431 rajveer 12858
    if self.itemId is not None:
2981 rajveer 12859
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12860
      oprot.writeI64(self.itemId)
2642 varun.gupt 12861
      oprot.writeFieldEnd()
12862
    oprot.writeFieldStop()
12863
    oprot.writeStructEnd()
12864
 
3431 rajveer 12865
  def validate(self):
12866
    return
12867
 
12868
 
2642 varun.gupt 12869
  def __repr__(self):
12870
    L = ['%s=%r' % (key, value)
12871
      for key, value in self.__dict__.iteritems()]
12872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12873
 
12874
  def __eq__(self, other):
12875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12876
 
12877
  def __ne__(self, other):
12878
    return not (self == other)
12879
 
2981 rajveer 12880
class updateBrowseHistory_result:
2642 varun.gupt 12881
 
12882
  thrift_spec = (
12883
  )
12884
 
12885
  def read(self, iprot):
12886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12888
      return
12889
    iprot.readStructBegin()
12890
    while True:
12891
      (fname, ftype, fid) = iprot.readFieldBegin()
12892
      if ftype == TType.STOP:
12893
        break
12894
      else:
12895
        iprot.skip(ftype)
12896
      iprot.readFieldEnd()
12897
    iprot.readStructEnd()
12898
 
12899
  def write(self, oprot):
12900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12902
      return
2981 rajveer 12903
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12904
    oprot.writeFieldStop()
12905
    oprot.writeStructEnd()
12906
 
3431 rajveer 12907
  def validate(self):
12908
    return
12909
 
12910
 
2642 varun.gupt 12911
  def __repr__(self):
12912
    L = ['%s=%r' % (key, value)
12913
      for key, value in self.__dict__.iteritems()]
12914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12915
 
12916
  def __eq__(self, other):
12917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12918
 
12919
  def __ne__(self, other):
12920
    return not (self == other)
12921
 
3385 varun.gupt 12922
class getCartsWithCouponCount_args:
12923
  """
12924
  Attributes:
12925
   - couponCode
12926
  """
2642 varun.gupt 12927
 
3385 varun.gupt 12928
  thrift_spec = (
12929
    None, # 0
12930
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12931
  )
12932
 
12933
  def __init__(self, couponCode=None,):
12934
    self.couponCode = couponCode
12935
 
12936
  def read(self, iprot):
12937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12939
      return
12940
    iprot.readStructBegin()
12941
    while True:
12942
      (fname, ftype, fid) = iprot.readFieldBegin()
12943
      if ftype == TType.STOP:
12944
        break
12945
      if fid == 1:
12946
        if ftype == TType.STRING:
12947
          self.couponCode = iprot.readString();
12948
        else:
12949
          iprot.skip(ftype)
12950
      else:
12951
        iprot.skip(ftype)
12952
      iprot.readFieldEnd()
12953
    iprot.readStructEnd()
12954
 
12955
  def write(self, oprot):
12956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12958
      return
12959
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12960
    if self.couponCode is not None:
3385 varun.gupt 12961
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12962
      oprot.writeString(self.couponCode)
12963
      oprot.writeFieldEnd()
12964
    oprot.writeFieldStop()
12965
    oprot.writeStructEnd()
12966
 
3431 rajveer 12967
  def validate(self):
12968
    return
12969
 
12970
 
3385 varun.gupt 12971
  def __repr__(self):
12972
    L = ['%s=%r' % (key, value)
12973
      for key, value in self.__dict__.iteritems()]
12974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12975
 
12976
  def __eq__(self, other):
12977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12978
 
12979
  def __ne__(self, other):
12980
    return not (self == other)
12981
 
12982
class getCartsWithCouponCount_result:
12983
  """
12984
  Attributes:
12985
   - success
12986
  """
12987
 
12988
  thrift_spec = (
12989
    (0, TType.I64, 'success', None, None, ), # 0
12990
  )
12991
 
12992
  def __init__(self, success=None,):
12993
    self.success = success
12994
 
12995
  def read(self, iprot):
12996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12998
      return
12999
    iprot.readStructBegin()
13000
    while True:
13001
      (fname, ftype, fid) = iprot.readFieldBegin()
13002
      if ftype == TType.STOP:
13003
        break
13004
      if fid == 0:
13005
        if ftype == TType.I64:
13006
          self.success = iprot.readI64();
13007
        else:
13008
          iprot.skip(ftype)
13009
      else:
13010
        iprot.skip(ftype)
13011
      iprot.readFieldEnd()
13012
    iprot.readStructEnd()
13013
 
13014
  def write(self, oprot):
13015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13017
      return
13018
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13019
    if self.success is not None:
3385 varun.gupt 13020
      oprot.writeFieldBegin('success', TType.I64, 0)
13021
      oprot.writeI64(self.success)
13022
      oprot.writeFieldEnd()
13023
    oprot.writeFieldStop()
13024
    oprot.writeStructEnd()
13025
 
3431 rajveer 13026
  def validate(self):
13027
    return
13028
 
13029
 
3385 varun.gupt 13030
  def __repr__(self):
13031
    L = ['%s=%r' % (key, value)
13032
      for key, value in self.__dict__.iteritems()]
13033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13034
 
13035
  def __eq__(self, other):
13036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13037
 
13038
  def __ne__(self, other):
13039
    return not (self == other)
3499 mandeep.dh 13040
 
13041
class increaseTrustLevel_args:
13042
  """
13043
  Attributes:
13044
   - userId
13045
   - trustLevelDelta
13046
  """
13047
 
13048
  thrift_spec = (
13049
    None, # 0
13050
    (1, TType.I64, 'userId', None, None, ), # 1
13051
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13052
  )
13053
 
13054
  def __init__(self, userId=None, trustLevelDelta=None,):
13055
    self.userId = userId
13056
    self.trustLevelDelta = trustLevelDelta
13057
 
13058
  def read(self, iprot):
13059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13061
      return
13062
    iprot.readStructBegin()
13063
    while True:
13064
      (fname, ftype, fid) = iprot.readFieldBegin()
13065
      if ftype == TType.STOP:
13066
        break
13067
      if fid == 1:
13068
        if ftype == TType.I64:
13069
          self.userId = iprot.readI64();
13070
        else:
13071
          iprot.skip(ftype)
13072
      elif fid == 2:
13073
        if ftype == TType.DOUBLE:
13074
          self.trustLevelDelta = iprot.readDouble();
13075
        else:
13076
          iprot.skip(ftype)
13077
      else:
13078
        iprot.skip(ftype)
13079
      iprot.readFieldEnd()
13080
    iprot.readStructEnd()
13081
 
13082
  def write(self, oprot):
13083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13085
      return
13086
    oprot.writeStructBegin('increaseTrustLevel_args')
13087
    if self.userId is not None:
13088
      oprot.writeFieldBegin('userId', TType.I64, 1)
13089
      oprot.writeI64(self.userId)
13090
      oprot.writeFieldEnd()
13091
    if self.trustLevelDelta is not None:
13092
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13093
      oprot.writeDouble(self.trustLevelDelta)
13094
      oprot.writeFieldEnd()
13095
    oprot.writeFieldStop()
13096
    oprot.writeStructEnd()
13097
 
13098
  def validate(self):
13099
    return
13100
 
13101
 
13102
  def __repr__(self):
13103
    L = ['%s=%r' % (key, value)
13104
      for key, value in self.__dict__.iteritems()]
13105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13106
 
13107
  def __eq__(self, other):
13108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13109
 
13110
  def __ne__(self, other):
13111
    return not (self == other)
4668 varun.gupt 13112
 
5407 amar.kumar 13113
class getTrustLevel_args:
13114
  """
13115
  Attributes:
13116
   - userId
13117
  """
13118
 
13119
  thrift_spec = (
13120
    None, # 0
13121
    (1, TType.I64, 'userId', None, None, ), # 1
13122
  )
13123
 
13124
  def __init__(self, userId=None,):
13125
    self.userId = userId
13126
 
13127
  def read(self, iprot):
13128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13130
      return
13131
    iprot.readStructBegin()
13132
    while True:
13133
      (fname, ftype, fid) = iprot.readFieldBegin()
13134
      if ftype == TType.STOP:
13135
        break
13136
      if fid == 1:
13137
        if ftype == TType.I64:
13138
          self.userId = iprot.readI64();
13139
        else:
13140
          iprot.skip(ftype)
13141
      else:
13142
        iprot.skip(ftype)
13143
      iprot.readFieldEnd()
13144
    iprot.readStructEnd()
13145
 
13146
  def write(self, oprot):
13147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13149
      return
13150
    oprot.writeStructBegin('getTrustLevel_args')
13151
    if self.userId is not None:
13152
      oprot.writeFieldBegin('userId', TType.I64, 1)
13153
      oprot.writeI64(self.userId)
13154
      oprot.writeFieldEnd()
13155
    oprot.writeFieldStop()
13156
    oprot.writeStructEnd()
13157
 
13158
  def validate(self):
13159
    return
13160
 
13161
 
13162
  def __repr__(self):
13163
    L = ['%s=%r' % (key, value)
13164
      for key, value in self.__dict__.iteritems()]
13165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13166
 
13167
  def __eq__(self, other):
13168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13169
 
13170
  def __ne__(self, other):
13171
    return not (self == other)
13172
 
13173
class getTrustLevel_result:
13174
  """
13175
  Attributes:
13176
   - success
13177
  """
13178
 
13179
  thrift_spec = (
13180
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13181
  )
13182
 
13183
  def __init__(self, success=None,):
13184
    self.success = success
13185
 
13186
  def read(self, iprot):
13187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13189
      return
13190
    iprot.readStructBegin()
13191
    while True:
13192
      (fname, ftype, fid) = iprot.readFieldBegin()
13193
      if ftype == TType.STOP:
13194
        break
13195
      if fid == 0:
13196
        if ftype == TType.DOUBLE:
13197
          self.success = iprot.readDouble();
13198
        else:
13199
          iprot.skip(ftype)
13200
      else:
13201
        iprot.skip(ftype)
13202
      iprot.readFieldEnd()
13203
    iprot.readStructEnd()
13204
 
13205
  def write(self, oprot):
13206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13208
      return
13209
    oprot.writeStructBegin('getTrustLevel_result')
13210
    if self.success is not None:
13211
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13212
      oprot.writeDouble(self.success)
13213
      oprot.writeFieldEnd()
13214
    oprot.writeFieldStop()
13215
    oprot.writeStructEnd()
13216
 
13217
  def validate(self):
13218
    return
13219
 
13220
 
13221
  def __repr__(self):
13222
    L = ['%s=%r' % (key, value)
13223
      for key, value in self.__dict__.iteritems()]
13224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13225
 
13226
  def __eq__(self, other):
13227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13228
 
13229
  def __ne__(self, other):
13230
    return not (self == other)
13231
 
4668 varun.gupt 13232
class showCODOption_args:
13233
  """
13234
  Attributes:
13235
   - cartId
13236
   - sourceId
13237
   - pincode
13238
  """
13239
 
13240
  thrift_spec = (
13241
    None, # 0
13242
    (1, TType.I64, 'cartId', None, None, ), # 1
13243
    (2, TType.I64, 'sourceId', None, None, ), # 2
13244
    (3, TType.STRING, 'pincode', None, None, ), # 3
13245
  )
13246
 
13247
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13248
    self.cartId = cartId
13249
    self.sourceId = sourceId
13250
    self.pincode = pincode
13251
 
13252
  def read(self, iprot):
13253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13255
      return
13256
    iprot.readStructBegin()
13257
    while True:
13258
      (fname, ftype, fid) = iprot.readFieldBegin()
13259
      if ftype == TType.STOP:
13260
        break
13261
      if fid == 1:
13262
        if ftype == TType.I64:
13263
          self.cartId = iprot.readI64();
13264
        else:
13265
          iprot.skip(ftype)
13266
      elif fid == 2:
13267
        if ftype == TType.I64:
13268
          self.sourceId = iprot.readI64();
13269
        else:
13270
          iprot.skip(ftype)
13271
      elif fid == 3:
13272
        if ftype == TType.STRING:
13273
          self.pincode = iprot.readString();
13274
        else:
13275
          iprot.skip(ftype)
13276
      else:
13277
        iprot.skip(ftype)
13278
      iprot.readFieldEnd()
13279
    iprot.readStructEnd()
13280
 
13281
  def write(self, oprot):
13282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13284
      return
13285
    oprot.writeStructBegin('showCODOption_args')
13286
    if self.cartId is not None:
13287
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13288
      oprot.writeI64(self.cartId)
13289
      oprot.writeFieldEnd()
13290
    if self.sourceId is not None:
13291
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13292
      oprot.writeI64(self.sourceId)
13293
      oprot.writeFieldEnd()
13294
    if self.pincode is not None:
13295
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13296
      oprot.writeString(self.pincode)
13297
      oprot.writeFieldEnd()
13298
    oprot.writeFieldStop()
13299
    oprot.writeStructEnd()
13300
 
13301
  def validate(self):
13302
    return
13303
 
13304
 
13305
  def __repr__(self):
13306
    L = ['%s=%r' % (key, value)
13307
      for key, value in self.__dict__.iteritems()]
13308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13309
 
13310
  def __eq__(self, other):
13311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13312
 
13313
  def __ne__(self, other):
13314
    return not (self == other)
13315
 
13316
class showCODOption_result:
13317
  """
13318
  Attributes:
13319
   - success
13320
  """
13321
 
13322
  thrift_spec = (
13323
    (0, TType.BOOL, 'success', None, None, ), # 0
13324
  )
13325
 
13326
  def __init__(self, success=None,):
13327
    self.success = success
13328
 
13329
  def read(self, iprot):
13330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13332
      return
13333
    iprot.readStructBegin()
13334
    while True:
13335
      (fname, ftype, fid) = iprot.readFieldBegin()
13336
      if ftype == TType.STOP:
13337
        break
13338
      if fid == 0:
13339
        if ftype == TType.BOOL:
13340
          self.success = iprot.readBool();
13341
        else:
13342
          iprot.skip(ftype)
13343
      else:
13344
        iprot.skip(ftype)
13345
      iprot.readFieldEnd()
13346
    iprot.readStructEnd()
13347
 
13348
  def write(self, oprot):
13349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13351
      return
13352
    oprot.writeStructBegin('showCODOption_result')
13353
    if self.success is not None:
13354
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13355
      oprot.writeBool(self.success)
13356
      oprot.writeFieldEnd()
13357
    oprot.writeFieldStop()
13358
    oprot.writeStructEnd()
13359
 
13360
  def validate(self):
13361
    return
13362
 
13363
 
13364
  def __repr__(self):
13365
    L = ['%s=%r' % (key, value)
13366
      for key, value in self.__dict__.iteritems()]
13367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13368
 
13369
  def __eq__(self, other):
13370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13371
 
13372
  def __ne__(self, other):
13373
    return not (self == other)
5623 anupam.sin 13374
 
13375
class getUserEmails_args:
13376
  """
13377
  Attributes:
13378
   - startDate
13379
   - endDate
13380
  """
13381
 
13382
  thrift_spec = (
13383
    None, # 0
13384
    (1, TType.I64, 'startDate', None, None, ), # 1
13385
    (2, TType.I64, 'endDate', None, None, ), # 2
13386
  )
13387
 
13388
  def __init__(self, startDate=None, endDate=None,):
13389
    self.startDate = startDate
13390
    self.endDate = endDate
13391
 
13392
  def read(self, iprot):
13393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13395
      return
13396
    iprot.readStructBegin()
13397
    while True:
13398
      (fname, ftype, fid) = iprot.readFieldBegin()
13399
      if ftype == TType.STOP:
13400
        break
13401
      if fid == 1:
13402
        if ftype == TType.I64:
13403
          self.startDate = iprot.readI64();
13404
        else:
13405
          iprot.skip(ftype)
13406
      elif fid == 2:
13407
        if ftype == TType.I64:
13408
          self.endDate = iprot.readI64();
13409
        else:
13410
          iprot.skip(ftype)
13411
      else:
13412
        iprot.skip(ftype)
13413
      iprot.readFieldEnd()
13414
    iprot.readStructEnd()
13415
 
13416
  def write(self, oprot):
13417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13419
      return
13420
    oprot.writeStructBegin('getUserEmails_args')
13421
    if self.startDate is not None:
13422
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13423
      oprot.writeI64(self.startDate)
13424
      oprot.writeFieldEnd()
13425
    if self.endDate is not None:
13426
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13427
      oprot.writeI64(self.endDate)
13428
      oprot.writeFieldEnd()
13429
    oprot.writeFieldStop()
13430
    oprot.writeStructEnd()
13431
 
13432
  def validate(self):
13433
    return
13434
 
13435
 
13436
  def __repr__(self):
13437
    L = ['%s=%r' % (key, value)
13438
      for key, value in self.__dict__.iteritems()]
13439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13440
 
13441
  def __eq__(self, other):
13442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13443
 
13444
  def __ne__(self, other):
13445
    return not (self == other)
13446
 
13447
class getUserEmails_result:
13448
  """
13449
  Attributes:
13450
   - success
13451
  """
13452
 
13453
  thrift_spec = (
13454
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13455
  )
13456
 
13457
  def __init__(self, success=None,):
13458
    self.success = success
13459
 
13460
  def read(self, iprot):
13461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13463
      return
13464
    iprot.readStructBegin()
13465
    while True:
13466
      (fname, ftype, fid) = iprot.readFieldBegin()
13467
      if ftype == TType.STOP:
13468
        break
13469
      if fid == 0:
13470
        if ftype == TType.LIST:
13471
          self.success = []
6736 amit.gupta 13472
          (_etype193, _size190) = iprot.readListBegin()
13473
          for _i194 in xrange(_size190):
13474
            _elem195 = iprot.readString();
13475
            self.success.append(_elem195)
5623 anupam.sin 13476
          iprot.readListEnd()
13477
        else:
13478
          iprot.skip(ftype)
13479
      else:
13480
        iprot.skip(ftype)
13481
      iprot.readFieldEnd()
13482
    iprot.readStructEnd()
13483
 
13484
  def write(self, oprot):
13485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13487
      return
13488
    oprot.writeStructBegin('getUserEmails_result')
13489
    if self.success is not None:
13490
      oprot.writeFieldBegin('success', TType.LIST, 0)
13491
      oprot.writeListBegin(TType.STRING, len(self.success))
6736 amit.gupta 13492
      for iter196 in self.success:
13493
        oprot.writeString(iter196)
5623 anupam.sin 13494
      oprot.writeListEnd()
13495
      oprot.writeFieldEnd()
13496
    oprot.writeFieldStop()
13497
    oprot.writeStructEnd()
13498
 
13499
  def validate(self):
13500
    return
13501
 
13502
 
13503
  def __repr__(self):
13504
    L = ['%s=%r' % (key, value)
13505
      for key, value in self.__dict__.iteritems()]
13506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13507
 
13508
  def __eq__(self, other):
13509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13510
 
13511
  def __ne__(self, other):
13512
    return not (self == other)
6821 amar.kumar 13513
 
6903 anupam.sin 13514
class insureItem_args:
13515
  """
13516
  Attributes:
13517
   - itemId
13518
   - cartId
13519
   - toInsure
13520
  """
13521
 
13522
  thrift_spec = (
13523
    None, # 0
13524
    (1, TType.I64, 'itemId', None, None, ), # 1
13525
    (2, TType.I64, 'cartId', None, None, ), # 2
13526
    (3, TType.BOOL, 'toInsure', None, None, ), # 3
13527
  )
13528
 
13529
  def __init__(self, itemId=None, cartId=None, toInsure=None,):
13530
    self.itemId = itemId
13531
    self.cartId = cartId
13532
    self.toInsure = toInsure
13533
 
13534
  def read(self, iprot):
13535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13537
      return
13538
    iprot.readStructBegin()
13539
    while True:
13540
      (fname, ftype, fid) = iprot.readFieldBegin()
13541
      if ftype == TType.STOP:
13542
        break
13543
      if fid == 1:
13544
        if ftype == TType.I64:
13545
          self.itemId = iprot.readI64();
13546
        else:
13547
          iprot.skip(ftype)
13548
      elif fid == 2:
13549
        if ftype == TType.I64:
13550
          self.cartId = iprot.readI64();
13551
        else:
13552
          iprot.skip(ftype)
13553
      elif fid == 3:
13554
        if ftype == TType.BOOL:
13555
          self.toInsure = iprot.readBool();
13556
        else:
13557
          iprot.skip(ftype)
13558
      else:
13559
        iprot.skip(ftype)
13560
      iprot.readFieldEnd()
13561
    iprot.readStructEnd()
13562
 
13563
  def write(self, oprot):
13564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13566
      return
13567
    oprot.writeStructBegin('insureItem_args')
13568
    if self.itemId is not None:
13569
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13570
      oprot.writeI64(self.itemId)
13571
      oprot.writeFieldEnd()
13572
    if self.cartId is not None:
13573
      oprot.writeFieldBegin('cartId', TType.I64, 2)
13574
      oprot.writeI64(self.cartId)
13575
      oprot.writeFieldEnd()
13576
    if self.toInsure is not None:
13577
      oprot.writeFieldBegin('toInsure', TType.BOOL, 3)
13578
      oprot.writeBool(self.toInsure)
13579
      oprot.writeFieldEnd()
13580
    oprot.writeFieldStop()
13581
    oprot.writeStructEnd()
13582
 
13583
  def validate(self):
13584
    return
13585
 
13586
 
13587
  def __repr__(self):
13588
    L = ['%s=%r' % (key, value)
13589
      for key, value in self.__dict__.iteritems()]
13590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13591
 
13592
  def __eq__(self, other):
13593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13594
 
13595
  def __ne__(self, other):
13596
    return not (self == other)
13597
 
13598
class insureItem_result:
13599
  """
13600
  Attributes:
13601
   - success
13602
  """
13603
 
13604
  thrift_spec = (
13605
    (0, TType.BOOL, 'success', None, None, ), # 0
13606
  )
13607
 
13608
  def __init__(self, success=None,):
13609
    self.success = success
13610
 
13611
  def read(self, iprot):
13612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13614
      return
13615
    iprot.readStructBegin()
13616
    while True:
13617
      (fname, ftype, fid) = iprot.readFieldBegin()
13618
      if ftype == TType.STOP:
13619
        break
13620
      if fid == 0:
13621
        if ftype == TType.BOOL:
13622
          self.success = iprot.readBool();
13623
        else:
13624
          iprot.skip(ftype)
13625
      else:
13626
        iprot.skip(ftype)
13627
      iprot.readFieldEnd()
13628
    iprot.readStructEnd()
13629
 
13630
  def write(self, oprot):
13631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13633
      return
13634
    oprot.writeStructBegin('insureItem_result')
13635
    if self.success is not None:
13636
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13637
      oprot.writeBool(self.success)
13638
      oprot.writeFieldEnd()
13639
    oprot.writeFieldStop()
13640
    oprot.writeStructEnd()
13641
 
13642
  def validate(self):
13643
    return
13644
 
13645
 
13646
  def __repr__(self):
13647
    L = ['%s=%r' % (key, value)
13648
      for key, value in self.__dict__.iteritems()]
13649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13650
 
13651
  def __eq__(self, other):
13652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13653
 
13654
  def __ne__(self, other):
13655
    return not (self == other)
13656
 
13657
class cancelInsurance_args:
13658
  """
13659
  Attributes:
13660
   - cartId
13661
  """
13662
 
13663
  thrift_spec = (
13664
    None, # 0
13665
    (1, TType.I64, 'cartId', None, None, ), # 1
13666
  )
13667
 
13668
  def __init__(self, cartId=None,):
13669
    self.cartId = cartId
13670
 
13671
  def read(self, iprot):
13672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13674
      return
13675
    iprot.readStructBegin()
13676
    while True:
13677
      (fname, ftype, fid) = iprot.readFieldBegin()
13678
      if ftype == TType.STOP:
13679
        break
13680
      if fid == 1:
13681
        if ftype == TType.I64:
13682
          self.cartId = iprot.readI64();
13683
        else:
13684
          iprot.skip(ftype)
13685
      else:
13686
        iprot.skip(ftype)
13687
      iprot.readFieldEnd()
13688
    iprot.readStructEnd()
13689
 
13690
  def write(self, oprot):
13691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13693
      return
13694
    oprot.writeStructBegin('cancelInsurance_args')
13695
    if self.cartId is not None:
13696
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13697
      oprot.writeI64(self.cartId)
13698
      oprot.writeFieldEnd()
13699
    oprot.writeFieldStop()
13700
    oprot.writeStructEnd()
13701
 
13702
  def validate(self):
13703
    return
13704
 
13705
 
13706
  def __repr__(self):
13707
    L = ['%s=%r' % (key, value)
13708
      for key, value in self.__dict__.iteritems()]
13709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13710
 
13711
  def __eq__(self, other):
13712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13713
 
13714
  def __ne__(self, other):
13715
    return not (self == other)
13716
 
13717
class cancelInsurance_result:
13718
  """
13719
  Attributes:
13720
   - success
13721
  """
13722
 
13723
  thrift_spec = (
13724
    (0, TType.BOOL, 'success', None, None, ), # 0
13725
  )
13726
 
13727
  def __init__(self, success=None,):
13728
    self.success = success
13729
 
13730
  def read(self, iprot):
13731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13733
      return
13734
    iprot.readStructBegin()
13735
    while True:
13736
      (fname, ftype, fid) = iprot.readFieldBegin()
13737
      if ftype == TType.STOP:
13738
        break
13739
      if fid == 0:
13740
        if ftype == TType.BOOL:
13741
          self.success = iprot.readBool();
13742
        else:
13743
          iprot.skip(ftype)
13744
      else:
13745
        iprot.skip(ftype)
13746
      iprot.readFieldEnd()
13747
    iprot.readStructEnd()
13748
 
13749
  def write(self, oprot):
13750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13752
      return
13753
    oprot.writeStructBegin('cancelInsurance_result')
13754
    if self.success is not None:
13755
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13756
      oprot.writeBool(self.success)
13757
      oprot.writeFieldEnd()
13758
    oprot.writeFieldStop()
13759
    oprot.writeStructEnd()
13760
 
13761
  def validate(self):
13762
    return
13763
 
13764
 
13765
  def __repr__(self):
13766
    L = ['%s=%r' % (key, value)
13767
      for key, value in self.__dict__.iteritems()]
13768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13769
 
13770
  def __eq__(self, other):
13771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13772
 
13773
  def __ne__(self, other):
13774
    return not (self == other)
13775
 
13776
class storeInsuranceSpecificDetails_args:
13777
  """
13778
  Attributes:
13779
   - addressId
13780
   - dob
13781
   - guardianName
13782
  """
13783
 
13784
  thrift_spec = (
13785
    None, # 0
13786
    (1, TType.I64, 'addressId', None, None, ), # 1
13787
    (2, TType.STRING, 'dob', None, None, ), # 2
13788
    (3, TType.STRING, 'guardianName', None, None, ), # 3
13789
  )
13790
 
13791
  def __init__(self, addressId=None, dob=None, guardianName=None,):
13792
    self.addressId = addressId
13793
    self.dob = dob
13794
    self.guardianName = guardianName
13795
 
13796
  def read(self, iprot):
13797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13799
      return
13800
    iprot.readStructBegin()
13801
    while True:
13802
      (fname, ftype, fid) = iprot.readFieldBegin()
13803
      if ftype == TType.STOP:
13804
        break
13805
      if fid == 1:
13806
        if ftype == TType.I64:
13807
          self.addressId = iprot.readI64();
13808
        else:
13809
          iprot.skip(ftype)
13810
      elif fid == 2:
13811
        if ftype == TType.STRING:
13812
          self.dob = iprot.readString();
13813
        else:
13814
          iprot.skip(ftype)
13815
      elif fid == 3:
13816
        if ftype == TType.STRING:
13817
          self.guardianName = iprot.readString();
13818
        else:
13819
          iprot.skip(ftype)
13820
      else:
13821
        iprot.skip(ftype)
13822
      iprot.readFieldEnd()
13823
    iprot.readStructEnd()
13824
 
13825
  def write(self, oprot):
13826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13828
      return
13829
    oprot.writeStructBegin('storeInsuranceSpecificDetails_args')
13830
    if self.addressId is not None:
13831
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13832
      oprot.writeI64(self.addressId)
13833
      oprot.writeFieldEnd()
13834
    if self.dob is not None:
13835
      oprot.writeFieldBegin('dob', TType.STRING, 2)
13836
      oprot.writeString(self.dob)
13837
      oprot.writeFieldEnd()
13838
    if self.guardianName is not None:
13839
      oprot.writeFieldBegin('guardianName', TType.STRING, 3)
13840
      oprot.writeString(self.guardianName)
13841
      oprot.writeFieldEnd()
13842
    oprot.writeFieldStop()
13843
    oprot.writeStructEnd()
13844
 
13845
  def validate(self):
13846
    return
13847
 
13848
 
13849
  def __repr__(self):
13850
    L = ['%s=%r' % (key, value)
13851
      for key, value in self.__dict__.iteritems()]
13852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13853
 
13854
  def __eq__(self, other):
13855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13856
 
13857
  def __ne__(self, other):
13858
    return not (self == other)
13859
 
13860
class storeInsuranceSpecificDetails_result:
13861
  """
13862
  Attributes:
13863
   - success
13864
  """
13865
 
13866
  thrift_spec = (
13867
    (0, TType.BOOL, 'success', None, None, ), # 0
13868
  )
13869
 
13870
  def __init__(self, success=None,):
13871
    self.success = success
13872
 
13873
  def read(self, iprot):
13874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13876
      return
13877
    iprot.readStructBegin()
13878
    while True:
13879
      (fname, ftype, fid) = iprot.readFieldBegin()
13880
      if ftype == TType.STOP:
13881
        break
13882
      if fid == 0:
13883
        if ftype == TType.BOOL:
13884
          self.success = iprot.readBool();
13885
        else:
13886
          iprot.skip(ftype)
13887
      else:
13888
        iprot.skip(ftype)
13889
      iprot.readFieldEnd()
13890
    iprot.readStructEnd()
13891
 
13892
  def write(self, oprot):
13893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13895
      return
13896
    oprot.writeStructBegin('storeInsuranceSpecificDetails_result')
13897
    if self.success is not None:
13898
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13899
      oprot.writeBool(self.success)
13900
      oprot.writeFieldEnd()
13901
    oprot.writeFieldStop()
13902
    oprot.writeStructEnd()
13903
 
13904
  def validate(self):
13905
    return
13906
 
13907
 
13908
  def __repr__(self):
13909
    L = ['%s=%r' % (key, value)
13910
      for key, value in self.__dict__.iteritems()]
13911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13912
 
13913
  def __eq__(self, other):
13914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13915
 
13916
  def __ne__(self, other):
13917
    return not (self == other)
13918
 
13919
class isInsuranceDetailPresent_args:
13920
  """
13921
  Attributes:
13922
   - addressId
13923
  """
13924
 
13925
  thrift_spec = (
13926
    None, # 0
13927
    (1, TType.I64, 'addressId', None, None, ), # 1
13928
  )
13929
 
13930
  def __init__(self, addressId=None,):
13931
    self.addressId = addressId
13932
 
13933
  def read(self, iprot):
13934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13936
      return
13937
    iprot.readStructBegin()
13938
    while True:
13939
      (fname, ftype, fid) = iprot.readFieldBegin()
13940
      if ftype == TType.STOP:
13941
        break
13942
      if fid == 1:
13943
        if ftype == TType.I64:
13944
          self.addressId = iprot.readI64();
13945
        else:
13946
          iprot.skip(ftype)
13947
      else:
13948
        iprot.skip(ftype)
13949
      iprot.readFieldEnd()
13950
    iprot.readStructEnd()
13951
 
13952
  def write(self, oprot):
13953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13955
      return
13956
    oprot.writeStructBegin('isInsuranceDetailPresent_args')
13957
    if self.addressId is not None:
13958
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13959
      oprot.writeI64(self.addressId)
13960
      oprot.writeFieldEnd()
13961
    oprot.writeFieldStop()
13962
    oprot.writeStructEnd()
13963
 
13964
  def validate(self):
13965
    return
13966
 
13967
 
13968
  def __repr__(self):
13969
    L = ['%s=%r' % (key, value)
13970
      for key, value in self.__dict__.iteritems()]
13971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13972
 
13973
  def __eq__(self, other):
13974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13975
 
13976
  def __ne__(self, other):
13977
    return not (self == other)
13978
 
13979
class isInsuranceDetailPresent_result:
13980
  """
13981
  Attributes:
13982
   - success
13983
  """
13984
 
13985
  thrift_spec = (
13986
    (0, TType.BOOL, 'success', None, None, ), # 0
13987
  )
13988
 
13989
  def __init__(self, success=None,):
13990
    self.success = success
13991
 
13992
  def read(self, iprot):
13993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13995
      return
13996
    iprot.readStructBegin()
13997
    while True:
13998
      (fname, ftype, fid) = iprot.readFieldBegin()
13999
      if ftype == TType.STOP:
14000
        break
14001
      if fid == 0:
14002
        if ftype == TType.BOOL:
14003
          self.success = iprot.readBool();
14004
        else:
14005
          iprot.skip(ftype)
14006
      else:
14007
        iprot.skip(ftype)
14008
      iprot.readFieldEnd()
14009
    iprot.readStructEnd()
14010
 
14011
  def write(self, oprot):
14012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14014
      return
14015
    oprot.writeStructBegin('isInsuranceDetailPresent_result')
14016
    if self.success is not None:
14017
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14018
      oprot.writeBool(self.success)
14019
      oprot.writeFieldEnd()
14020
    oprot.writeFieldStop()
14021
    oprot.writeStructEnd()
14022
 
14023
  def validate(self):
14024
    return
14025
 
14026
 
14027
  def __repr__(self):
14028
    L = ['%s=%r' % (key, value)
14029
      for key, value in self.__dict__.iteritems()]
14030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14031
 
14032
  def __eq__(self, other):
14033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14034
 
14035
  def __ne__(self, other):
14036
    return not (self == other)
14037
 
6821 amar.kumar 14038
class isProductAddedToCart_args:
14039
  """
14040
  Attributes:
14041
   - itemId
14042
   - startDate
14043
   - endDate
14044
  """
14045
 
14046
  thrift_spec = (
14047
    None, # 0
14048
    (1, TType.I64, 'itemId', None, None, ), # 1
14049
    (2, TType.I64, 'startDate', None, None, ), # 2
14050
    (3, TType.I64, 'endDate', None, None, ), # 3
14051
  )
14052
 
14053
  def __init__(self, itemId=None, startDate=None, endDate=None,):
14054
    self.itemId = itemId
14055
    self.startDate = startDate
14056
    self.endDate = endDate
14057
 
14058
  def read(self, iprot):
14059
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14060
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14061
      return
14062
    iprot.readStructBegin()
14063
    while True:
14064
      (fname, ftype, fid) = iprot.readFieldBegin()
14065
      if ftype == TType.STOP:
14066
        break
14067
      if fid == 1:
14068
        if ftype == TType.I64:
14069
          self.itemId = iprot.readI64();
14070
        else:
14071
          iprot.skip(ftype)
14072
      elif fid == 2:
14073
        if ftype == TType.I64:
14074
          self.startDate = iprot.readI64();
14075
        else:
14076
          iprot.skip(ftype)
14077
      elif fid == 3:
14078
        if ftype == TType.I64:
14079
          self.endDate = iprot.readI64();
14080
        else:
14081
          iprot.skip(ftype)
14082
      else:
14083
        iprot.skip(ftype)
14084
      iprot.readFieldEnd()
14085
    iprot.readStructEnd()
14086
 
14087
  def write(self, oprot):
14088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14090
      return
14091
    oprot.writeStructBegin('isProductAddedToCart_args')
14092
    if self.itemId is not None:
14093
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14094
      oprot.writeI64(self.itemId)
14095
      oprot.writeFieldEnd()
14096
    if self.startDate is not None:
14097
      oprot.writeFieldBegin('startDate', TType.I64, 2)
14098
      oprot.writeI64(self.startDate)
14099
      oprot.writeFieldEnd()
14100
    if self.endDate is not None:
14101
      oprot.writeFieldBegin('endDate', TType.I64, 3)
14102
      oprot.writeI64(self.endDate)
14103
      oprot.writeFieldEnd()
14104
    oprot.writeFieldStop()
14105
    oprot.writeStructEnd()
14106
 
14107
  def validate(self):
14108
    return
14109
 
14110
 
14111
  def __repr__(self):
14112
    L = ['%s=%r' % (key, value)
14113
      for key, value in self.__dict__.iteritems()]
14114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14115
 
14116
  def __eq__(self, other):
14117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14118
 
14119
  def __ne__(self, other):
14120
    return not (self == other)
14121
 
14122
class isProductAddedToCart_result:
14123
  """
14124
  Attributes:
14125
   - success
14126
  """
14127
 
14128
  thrift_spec = (
14129
    (0, TType.BOOL, 'success', None, None, ), # 0
14130
  )
14131
 
14132
  def __init__(self, success=None,):
14133
    self.success = success
14134
 
14135
  def read(self, iprot):
14136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14138
      return
14139
    iprot.readStructBegin()
14140
    while True:
14141
      (fname, ftype, fid) = iprot.readFieldBegin()
14142
      if ftype == TType.STOP:
14143
        break
14144
      if fid == 0:
14145
        if ftype == TType.BOOL:
14146
          self.success = iprot.readBool();
14147
        else:
14148
          iprot.skip(ftype)
14149
      else:
14150
        iprot.skip(ftype)
14151
      iprot.readFieldEnd()
14152
    iprot.readStructEnd()
14153
 
14154
  def write(self, oprot):
14155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14157
      return
14158
    oprot.writeStructBegin('isProductAddedToCart_result')
14159
    if self.success is not None:
14160
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14161
      oprot.writeBool(self.success)
14162
      oprot.writeFieldEnd()
14163
    oprot.writeFieldStop()
14164
    oprot.writeStructEnd()
14165
 
14166
  def validate(self):
14167
    return
14168
 
14169
 
14170
  def __repr__(self):
14171
    L = ['%s=%r' % (key, value)
14172
      for key, value in self.__dict__.iteritems()]
14173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14174
 
14175
  def __eq__(self, other):
14176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14177
 
14178
  def __ne__(self, other):
14179
    return not (self == other)
7007 amar.kumar 14180
 
14181
class markUserAsFBUser_args:
14182
  """
14183
  Attributes:
14184
   - id
14185
  """
14186
 
14187
  thrift_spec = (
14188
    None, # 0
14189
    (1, TType.I64, 'id', None, None, ), # 1
14190
  )
14191
 
14192
  def __init__(self, id=None,):
14193
    self.id = id
14194
 
14195
  def read(self, iprot):
14196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14198
      return
14199
    iprot.readStructBegin()
14200
    while True:
14201
      (fname, ftype, fid) = iprot.readFieldBegin()
14202
      if ftype == TType.STOP:
14203
        break
14204
      if fid == 1:
14205
        if ftype == TType.I64:
14206
          self.id = iprot.readI64();
14207
        else:
14208
          iprot.skip(ftype)
14209
      else:
14210
        iprot.skip(ftype)
14211
      iprot.readFieldEnd()
14212
    iprot.readStructEnd()
14213
 
14214
  def write(self, oprot):
14215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14217
      return
14218
    oprot.writeStructBegin('markUserAsFBUser_args')
14219
    if self.id is not None:
14220
      oprot.writeFieldBegin('id', TType.I64, 1)
14221
      oprot.writeI64(self.id)
14222
      oprot.writeFieldEnd()
14223
    oprot.writeFieldStop()
14224
    oprot.writeStructEnd()
14225
 
14226
  def validate(self):
14227
    return
14228
 
14229
 
14230
  def __repr__(self):
14231
    L = ['%s=%r' % (key, value)
14232
      for key, value in self.__dict__.iteritems()]
14233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14234
 
14235
  def __eq__(self, other):
14236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14237
 
14238
  def __ne__(self, other):
14239
    return not (self == other)
14240
 
14241
class markUserAsFBUser_result:
14242
 
14243
  thrift_spec = (
14244
  )
14245
 
14246
  def read(self, iprot):
14247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14249
      return
14250
    iprot.readStructBegin()
14251
    while True:
14252
      (fname, ftype, fid) = iprot.readFieldBegin()
14253
      if ftype == TType.STOP:
14254
        break
14255
      else:
14256
        iprot.skip(ftype)
14257
      iprot.readFieldEnd()
14258
    iprot.readStructEnd()
14259
 
14260
  def write(self, oprot):
14261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14263
      return
14264
    oprot.writeStructBegin('markUserAsFBUser_result')
14265
    oprot.writeFieldStop()
14266
    oprot.writeStructEnd()
14267
 
14268
  def validate(self):
14269
    return
14270
 
14271
 
14272
  def __repr__(self):
14273
    L = ['%s=%r' % (key, value)
14274
      for key, value in self.__dict__.iteritems()]
14275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14276
 
14277
  def __eq__(self, other):
14278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14279
 
14280
  def __ne__(self, other):
14281
    return not (self == other)