Subversion Repositories SmartDukaan

Rev

Rev 9791 | Rev 11592 | 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
 
11526 amit.gupta 408
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource):
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
11526 amit.gupta 420
     - orderSource
559 chandransh 421
    """
422
    pass
423
 
3557 rajveer 424
  def validateCart(self, cartId, sourceId):
559 chandransh 425
    """
690 chandransh 426
    Validates that:
427
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 428
    2. All of the lines in the cart are active items.
690 chandransh 429
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 430
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 431
 
559 chandransh 432
    Parameters:
433
     - cartId
3557 rajveer 434
     - sourceId
559 chandransh 435
    """
436
    pass
437
 
690 chandransh 438
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 439
    """
690 chandransh 440
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 441
 
575 chandransh 442
    Parameters:
690 chandransh 443
     - fromCartId
444
     - toCartId
445
    """
446
    pass
447
 
448
  def checkOut(self, cartId):
449
    """
450
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 451
 
690 chandransh 452
    Parameters:
575 chandransh 453
     - cartId
454
    """
455
    pass
456
 
690 chandransh 457
  def resetCart(self, cartId, items):
559 chandransh 458
    """
690 chandransh 459
    The second parameter is a map of item ids and their quantities which have been successfully processed.
460
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 461
 
559 chandransh 462
    Parameters:
690 chandransh 463
     - cartId
464
     - items
559 chandransh 465
    """
466
    pass
467
 
2981 rajveer 468
  def getUserCount(self, userType):
559 chandransh 469
    """
2981 rajveer 470
    Returns number of registered users.
471
    If userType = null, then it returns count of all users, including anonymous
472
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
473
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 474
 
559 chandransh 475
    Parameters:
2981 rajveer 476
     - userType
559 chandransh 477
    """
478
    pass
479
 
2981 rajveer 480
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 481
    """
2981 rajveer 482
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
483
    If any of startDate or endDate is -1, then that filter is ignored.
484
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 485
 
486
 
559 chandransh 487
    Parameters:
2981 rajveer 488
     - userType
489
     - startDate
490
     - endDate
559 chandransh 491
    """
492
    pass
493
 
2981 rajveer 494
  def getMyResearchItems(self, userId):
559 chandransh 495
    """
2981 rajveer 496
    Returns list of item ids in myresearch for the user
3431 rajveer 497
 
559 chandransh 498
    Parameters:
499
     - userId
500
    """
501
    pass
502
 
2981 rajveer 503
  def updateMyResearch(self, userId, itemId):
559 chandransh 504
    """
2981 rajveer 505
    add item to my research for a user
3431 rajveer 506
 
559 chandransh 507
    Parameters:
2981 rajveer 508
     - userId
509
     - itemId
559 chandransh 510
    """
511
    pass
512
 
2981 rajveer 513
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 514
    """
2981 rajveer 515
    delete item from my research for a user
3431 rajveer 516
 
1596 ankur.sing 517
    Parameters:
2981 rajveer 518
     - userId
519
     - itemId
1596 ankur.sing 520
    """
521
    pass
559 chandransh 522
 
2981 rajveer 523
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 524
    """
2981 rajveer 525
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 526
 
1673 ankur.sing 527
    Parameters:
2981 rajveer 528
     - userId
1673 ankur.sing 529
    """
530
    pass
1596 ankur.sing 531
 
2981 rajveer 532
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 533
    """
2981 rajveer 534
    add item to browse history for a user
3431 rajveer 535
 
2642 varun.gupt 536
    Parameters:
2981 rajveer 537
     - userId
538
     - itemId
2642 varun.gupt 539
    """
540
    pass
1673 ankur.sing 541
 
3385 varun.gupt 542
  def getCartsWithCouponCount(self, couponCode):
543
    """
544
    Returns count of Carts with given coupon applied
3431 rajveer 545
 
3385 varun.gupt 546
    Parameters:
547
     - couponCode
548
    """
549
    pass
2642 varun.gupt 550
 
3499 mandeep.dh 551
  def increaseTrustLevel(self, userId, trustLevelDelta):
552
    """
553
    Updates COD trust level of a user
3385 varun.gupt 554
 
3499 mandeep.dh 555
    Parameters:
556
     - userId
557
     - trustLevelDelta
558
    """
559
    pass
560
 
5407 amar.kumar 561
  def getTrustLevel(self, userId):
562
    """
563
    Get trust level of a user
564
 
565
    Parameters:
566
     - userId
567
    """
568
    pass
569
 
4668 varun.gupt 570
  def showCODOption(self, cartId, sourceId, pincode):
571
    """
572
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 573
 
4668 varun.gupt 574
    Parameters:
575
     - cartId
576
     - sourceId
577
     - pincode
578
    """
579
    pass
580
 
5623 anupam.sin 581
  def getUserEmails(self, startDate, endDate):
582
    """
583
    Get email addresses for users activated within a given date range
4668 varun.gupt 584
 
5623 anupam.sin 585
    Parameters:
586
     - startDate
587
     - endDate
588
    """
589
    pass
590
 
9299 kshitij.so 591
  def insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 592
    """
593
    Mark a cart lineitem as insured. Returns true/false.
594
 
595
    Parameters:
596
     - itemId
597
     - cartId
598
     - toInsure
9299 kshitij.so 599
     - insurerType
6903 anupam.sin 600
    """
601
    pass
602
 
603
  def cancelInsurance(self, cartId):
604
    """
605
    Cancel insurance for all items in the cart
606
 
607
    Parameters:
608
     - cartId
609
    """
610
    pass
611
 
612
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
613
    """
614
    Stores insurance specific details like date of birth and guardianName
615
 
616
    Parameters:
617
     - addressId
618
     - dob
619
     - guardianName
620
    """
621
    pass
622
 
623
  def isInsuranceDetailPresent(self, addressId):
624
    """
625
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
626
 
627
    Parameters:
628
     - addressId
629
    """
630
    pass
631
 
9791 rajveer 632
  def getProductsAddedToCart(self, startDate, endDate):
6821 amar.kumar 633
    """
9791 rajveer 634
    Returns list of item ids which added to cart from startDate to endDate
5623 anupam.sin 635
 
6821 amar.kumar 636
    Parameters:
637
     - startDate
638
     - endDate
639
    """
640
    pass
641
 
642
 
3376 rajveer 643
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 644
  """
645
  service
646
  """
647
  def __init__(self, iprot, oprot=None):
3376 rajveer 648
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 649
 
559 chandransh 650
  def createAnonymousUser(self, jsessionId):
94 ashish 651
    """
652
    Parameters:
559 chandransh 653
     - jsessionId
94 ashish 654
    """
559 chandransh 655
    self.send_createAnonymousUser(jsessionId)
656
    return self.recv_createAnonymousUser()
94 ashish 657
 
559 chandransh 658
  def send_createAnonymousUser(self, jsessionId):
659
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
660
    args = createAnonymousUser_args()
661
    args.jsessionId = jsessionId
94 ashish 662
    args.write(self._oprot)
663
    self._oprot.writeMessageEnd()
664
    self._oprot.trans.flush()
665
 
559 chandransh 666
  def recv_createAnonymousUser(self, ):
94 ashish 667
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
668
    if mtype == TMessageType.EXCEPTION:
669
      x = TApplicationException()
670
      x.read(self._iprot)
671
      self._iprot.readMessageEnd()
672
      raise x
559 chandransh 673
    result = createAnonymousUser_result()
94 ashish 674
    result.read(self._iprot)
675
    self._iprot.readMessageEnd()
3431 rajveer 676
    if result.success is not None:
94 ashish 677
      return result.success
3431 rajveer 678
    if result.ucex is not None:
559 chandransh 679
      raise result.ucex
680
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 681
 
559 chandransh 682
  def getUserById(self, userId):
94 ashish 683
    """
684
    Parameters:
685
     - userId
686
    """
559 chandransh 687
    self.send_getUserById(userId)
688
    return self.recv_getUserById()
94 ashish 689
 
559 chandransh 690
  def send_getUserById(self, userId):
691
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
692
    args = getUserById_args()
94 ashish 693
    args.userId = userId
694
    args.write(self._oprot)
695
    self._oprot.writeMessageEnd()
696
    self._oprot.trans.flush()
697
 
559 chandransh 698
  def recv_getUserById(self, ):
94 ashish 699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
700
    if mtype == TMessageType.EXCEPTION:
701
      x = TApplicationException()
702
      x.read(self._iprot)
703
      self._iprot.readMessageEnd()
704
      raise x
559 chandransh 705
    result = getUserById_result()
94 ashish 706
    result.read(self._iprot)
707
    self._iprot.readMessageEnd()
3431 rajveer 708
    if result.success is not None:
94 ashish 709
      return result.success
3431 rajveer 710
    if result.ucex is not None:
559 chandransh 711
      raise result.ucex
712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 713
 
5326 rajveer 714
  def getUserByCartId(self, cartId):
715
    """
716
    Parameters:
717
     - cartId
718
    """
719
    self.send_getUserByCartId(cartId)
720
    return self.recv_getUserByCartId()
721
 
722
  def send_getUserByCartId(self, cartId):
723
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
724
    args = getUserByCartId_args()
725
    args.cartId = cartId
726
    args.write(self._oprot)
727
    self._oprot.writeMessageEnd()
728
    self._oprot.trans.flush()
729
 
730
  def recv_getUserByCartId(self, ):
731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
732
    if mtype == TMessageType.EXCEPTION:
733
      x = TApplicationException()
734
      x.read(self._iprot)
735
      self._iprot.readMessageEnd()
736
      raise x
737
    result = getUserByCartId_result()
738
    result.read(self._iprot)
739
    self._iprot.readMessageEnd()
740
    if result.success is not None:
741
      return result.success
742
    if result.ucex is not None:
743
      raise result.ucex
744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
745
 
1491 vikas 746
  def getUserByEmail(self, email):
747
    """
748
    Parameters:
749
     - email
750
    """
751
    self.send_getUserByEmail(email)
752
    return self.recv_getUserByEmail()
753
 
754
  def send_getUserByEmail(self, email):
755
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
756
    args = getUserByEmail_args()
757
    args.email = email
758
    args.write(self._oprot)
759
    self._oprot.writeMessageEnd()
760
    self._oprot.trans.flush()
761
 
762
  def recv_getUserByEmail(self, ):
763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
764
    if mtype == TMessageType.EXCEPTION:
765
      x = TApplicationException()
766
      x.read(self._iprot)
767
      self._iprot.readMessageEnd()
768
      raise x
769
    result = getUserByEmail_result()
770
    result.read(self._iprot)
771
    self._iprot.readMessageEnd()
3431 rajveer 772
    if result.success is not None:
1491 vikas 773
      return result.success
3431 rajveer 774
    if result.ucex is not None:
1491 vikas 775
      raise result.ucex
776
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
777
 
3032 mandeep.dh 778
  def getUserByMobileNumber(self, mobileNumber):
779
    """
780
    Parameters:
781
     - mobileNumber
782
    """
783
    self.send_getUserByMobileNumber(mobileNumber)
784
    return self.recv_getUserByMobileNumber()
785
 
786
  def send_getUserByMobileNumber(self, mobileNumber):
787
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
788
    args = getUserByMobileNumber_args()
789
    args.mobileNumber = mobileNumber
790
    args.write(self._oprot)
791
    self._oprot.writeMessageEnd()
792
    self._oprot.trans.flush()
793
 
794
  def recv_getUserByMobileNumber(self, ):
795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
796
    if mtype == TMessageType.EXCEPTION:
797
      x = TApplicationException()
798
      x.read(self._iprot)
799
      self._iprot.readMessageEnd()
800
      raise x
801
    result = getUserByMobileNumber_result()
802
    result.read(self._iprot)
803
    self._iprot.readMessageEnd()
3431 rajveer 804
    if result.success is not None:
3032 mandeep.dh 805
      return result.success
3431 rajveer 806
    if result.ucex is not None:
3032 mandeep.dh 807
      raise result.ucex
808
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
809
 
559 chandransh 810
  def createUser(self, user):
94 ashish 811
    """
812
    Parameters:
559 chandransh 813
     - user
94 ashish 814
    """
559 chandransh 815
    self.send_createUser(user)
816
    return self.recv_createUser()
94 ashish 817
 
559 chandransh 818
  def send_createUser(self, user):
819
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
820
    args = createUser_args()
821
    args.user = user
94 ashish 822
    args.write(self._oprot)
823
    self._oprot.writeMessageEnd()
824
    self._oprot.trans.flush()
825
 
559 chandransh 826
  def recv_createUser(self, ):
94 ashish 827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
828
    if mtype == TMessageType.EXCEPTION:
829
      x = TApplicationException()
830
      x.read(self._iprot)
831
      self._iprot.readMessageEnd()
832
      raise x
559 chandransh 833
    result = createUser_result()
94 ashish 834
    result.read(self._iprot)
835
    self._iprot.readMessageEnd()
3431 rajveer 836
    if result.success is not None:
94 ashish 837
      return result.success
3431 rajveer 838
    if result.ucex is not None:
559 chandransh 839
      raise result.ucex
840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 841
 
559 chandransh 842
  def updateUser(self, user):
94 ashish 843
    """
844
    Parameters:
559 chandransh 845
     - user
94 ashish 846
    """
559 chandransh 847
    self.send_updateUser(user)
848
    return self.recv_updateUser()
94 ashish 849
 
559 chandransh 850
  def send_updateUser(self, user):
851
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
852
    args = updateUser_args()
853
    args.user = user
94 ashish 854
    args.write(self._oprot)
855
    self._oprot.writeMessageEnd()
856
    self._oprot.trans.flush()
857
 
559 chandransh 858
  def recv_updateUser(self, ):
94 ashish 859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
860
    if mtype == TMessageType.EXCEPTION:
861
      x = TApplicationException()
862
      x.read(self._iprot)
863
      self._iprot.readMessageEnd()
864
      raise x
559 chandransh 865
    result = updateUser_result()
94 ashish 866
    result.read(self._iprot)
867
    self._iprot.readMessageEnd()
3431 rajveer 868
    if result.success is not None:
94 ashish 869
      return result.success
3431 rajveer 870
    if result.ucex is not None:
559 chandransh 871
      raise result.ucex
872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 873
 
559 chandransh 874
  def authenticateUser(self, email, password):
94 ashish 875
    """
876
    Parameters:
877
     - email
878
     - password
879
    """
559 chandransh 880
    self.send_authenticateUser(email, password)
122 ashish 881
    return self.recv_authenticateUser()
882
 
559 chandransh 883
  def send_authenticateUser(self, email, password):
122 ashish 884
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
885
    args = authenticateUser_args()
559 chandransh 886
    args.email = email
122 ashish 887
    args.password = password
888
    args.write(self._oprot)
889
    self._oprot.writeMessageEnd()
890
    self._oprot.trans.flush()
891
 
892
  def recv_authenticateUser(self, ):
893
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
894
    if mtype == TMessageType.EXCEPTION:
895
      x = TApplicationException()
896
      x.read(self._iprot)
897
      self._iprot.readMessageEnd()
898
      raise x
899
    result = authenticateUser_result()
900
    result.read(self._iprot)
901
    self._iprot.readMessageEnd()
3431 rajveer 902
    if result.success is not None:
122 ashish 903
      return result.success
3431 rajveer 904
    if result.auex is not None:
559 chandransh 905
      raise result.auex
122 ashish 906
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
907
 
94 ashish 908
  def userExists(self, email):
909
    """
910
    Parameters:
911
     - email
912
    """
913
    self.send_userExists(email)
914
    return self.recv_userExists()
915
 
916
  def send_userExists(self, email):
917
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
918
    args = userExists_args()
919
    args.email = email
920
    args.write(self._oprot)
921
    self._oprot.writeMessageEnd()
922
    self._oprot.trans.flush()
923
 
924
  def recv_userExists(self, ):
925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
926
    if mtype == TMessageType.EXCEPTION:
927
      x = TApplicationException()
928
      x.read(self._iprot)
929
      self._iprot.readMessageEnd()
930
      raise x
931
    result = userExists_result()
932
    result.read(self._iprot)
933
    self._iprot.readMessageEnd()
3431 rajveer 934
    if result.success is not None:
94 ashish 935
      return result.success
3431 rajveer 936
    if result.ucx is not None:
94 ashish 937
      raise result.ucx
938
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
939
 
567 rajveer 940
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 941
    """
942
    Parameters:
943
     - userId
944
     - address
513 rajveer 945
     - setDefault
94 ashish 946
    """
567 rajveer 947
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 948
    return self.recv_addAddressForUser()
949
 
567 rajveer 950
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 951
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
952
    args = addAddressForUser_args()
559 chandransh 953
    args.userId = userId
94 ashish 954
    args.address = address
513 rajveer 955
    args.setDefault = setDefault
94 ashish 956
    args.write(self._oprot)
957
    self._oprot.writeMessageEnd()
958
    self._oprot.trans.flush()
959
 
960
  def recv_addAddressForUser(self, ):
961
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
962
    if mtype == TMessageType.EXCEPTION:
963
      x = TApplicationException()
964
      x.read(self._iprot)
965
      self._iprot.readMessageEnd()
966
      raise x
967
    result = addAddressForUser_result()
968
    result.read(self._iprot)
969
    self._iprot.readMessageEnd()
3431 rajveer 970
    if result.success is not None:
94 ashish 971
      return result.success
3431 rajveer 972
    if result.ucx is not None:
94 ashish 973
      raise result.ucx
974
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
975
 
976
  def removeAddressForUser(self, userid, addressId):
977
    """
978
    Parameters:
979
     - userid
980
     - addressId
981
    """
982
    self.send_removeAddressForUser(userid, addressId)
983
    return self.recv_removeAddressForUser()
984
 
985
  def send_removeAddressForUser(self, userid, addressId):
986
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
987
    args = removeAddressForUser_args()
988
    args.userid = userid
989
    args.addressId = addressId
990
    args.write(self._oprot)
991
    self._oprot.writeMessageEnd()
992
    self._oprot.trans.flush()
993
 
994
  def recv_removeAddressForUser(self, ):
995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
996
    if mtype == TMessageType.EXCEPTION:
997
      x = TApplicationException()
998
      x.read(self._iprot)
999
      self._iprot.readMessageEnd()
1000
      raise x
1001
    result = removeAddressForUser_result()
1002
    result.read(self._iprot)
1003
    self._iprot.readMessageEnd()
3431 rajveer 1004
    if result.success is not None:
94 ashish 1005
      return result.success
3431 rajveer 1006
    if result.ucx is not None:
94 ashish 1007
      raise result.ucx
1008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1009
 
1010
  def setUserAsLoggedIn(self, userId, timestamp):
1011
    """
1012
    Parameters:
1013
     - userId
1014
     - timestamp
1015
    """
1016
    self.send_setUserAsLoggedIn(userId, timestamp)
1017
    return self.recv_setUserAsLoggedIn()
1018
 
1019
  def send_setUserAsLoggedIn(self, userId, timestamp):
1020
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1021
    args = setUserAsLoggedIn_args()
1022
    args.userId = userId
1023
    args.timestamp = timestamp
1024
    args.write(self._oprot)
1025
    self._oprot.writeMessageEnd()
1026
    self._oprot.trans.flush()
1027
 
1028
  def recv_setUserAsLoggedIn(self, ):
1029
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1030
    if mtype == TMessageType.EXCEPTION:
1031
      x = TApplicationException()
1032
      x.read(self._iprot)
1033
      self._iprot.readMessageEnd()
1034
      raise x
1035
    result = setUserAsLoggedIn_result()
1036
    result.read(self._iprot)
1037
    self._iprot.readMessageEnd()
3431 rajveer 1038
    if result.success is not None:
94 ashish 1039
      return result.success
3431 rajveer 1040
    if result.ucx is not None:
94 ashish 1041
      raise result.ucx
1042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1043
 
1044
  def setUserAsLoggedOut(self, userid, timestamp):
1045
    """
1046
    Parameters:
1047
     - userid
1048
     - timestamp
1049
    """
1050
    self.send_setUserAsLoggedOut(userid, timestamp)
1051
    return self.recv_setUserAsLoggedOut()
1052
 
1053
  def send_setUserAsLoggedOut(self, userid, timestamp):
1054
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1055
    args = setUserAsLoggedOut_args()
1056
    args.userid = userid
1057
    args.timestamp = timestamp
1058
    args.write(self._oprot)
1059
    self._oprot.writeMessageEnd()
1060
    self._oprot.trans.flush()
1061
 
1062
  def recv_setUserAsLoggedOut(self, ):
1063
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1064
    if mtype == TMessageType.EXCEPTION:
1065
      x = TApplicationException()
1066
      x.read(self._iprot)
1067
      self._iprot.readMessageEnd()
1068
      raise x
1069
    result = setUserAsLoggedOut_result()
1070
    result.read(self._iprot)
1071
    self._iprot.readMessageEnd()
3431 rajveer 1072
    if result.success is not None:
94 ashish 1073
      return result.success
3431 rajveer 1074
    if result.ucx is not None:
94 ashish 1075
      raise result.ucx
1076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1077
 
504 rajveer 1078
  def setDefaultAddress(self, userid, addressId):
1079
    """
1080
    Parameters:
1081
     - userid
1082
     - addressId
1083
    """
1084
    self.send_setDefaultAddress(userid, addressId)
1085
    return self.recv_setDefaultAddress()
1086
 
1087
  def send_setDefaultAddress(self, userid, addressId):
1088
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1089
    args = setDefaultAddress_args()
1090
    args.userid = userid
1091
    args.addressId = addressId
1092
    args.write(self._oprot)
1093
    self._oprot.writeMessageEnd()
1094
    self._oprot.trans.flush()
1095
 
1096
  def recv_setDefaultAddress(self, ):
1097
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1098
    if mtype == TMessageType.EXCEPTION:
1099
      x = TApplicationException()
1100
      x.read(self._iprot)
1101
      self._iprot.readMessageEnd()
1102
      raise x
1103
    result = setDefaultAddress_result()
1104
    result.read(self._iprot)
1105
    self._iprot.readMessageEnd()
3431 rajveer 1106
    if result.success is not None:
504 rajveer 1107
      return result.success
3431 rajveer 1108
    if result.ucx is not None:
504 rajveer 1109
      raise result.ucx
1110
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1111
 
594 rajveer 1112
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1113
    """
1114
    Parameters:
1115
     - userid
594 rajveer 1116
     - oldPassword
1117
     - newPassword
94 ashish 1118
    """
594 rajveer 1119
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1120
    return self.recv_updatePassword()
1121
 
594 rajveer 1122
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1123
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1124
    args = updatePassword_args()
1125
    args.userid = userid
594 rajveer 1126
    args.oldPassword = oldPassword
1127
    args.newPassword = newPassword
94 ashish 1128
    args.write(self._oprot)
1129
    self._oprot.writeMessageEnd()
1130
    self._oprot.trans.flush()
1131
 
1132
  def recv_updatePassword(self, ):
1133
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1134
    if mtype == TMessageType.EXCEPTION:
1135
      x = TApplicationException()
1136
      x.read(self._iprot)
1137
      self._iprot.readMessageEnd()
1138
      raise x
1139
    result = updatePassword_result()
1140
    result.read(self._iprot)
1141
    self._iprot.readMessageEnd()
3431 rajveer 1142
    if result.success is not None:
94 ashish 1143
      return result.success
3431 rajveer 1144
    if result.ucx is not None:
94 ashish 1145
      raise result.ucx
1146
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1147
 
884 rajveer 1148
  def forgotPassword(self, email, newPassword):
581 rajveer 1149
    """
1150
    Parameters:
1151
     - email
884 rajveer 1152
     - newPassword
581 rajveer 1153
    """
884 rajveer 1154
    self.send_forgotPassword(email, newPassword)
581 rajveer 1155
    return self.recv_forgotPassword()
1156
 
884 rajveer 1157
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1158
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1159
    args = forgotPassword_args()
1160
    args.email = email
884 rajveer 1161
    args.newPassword = newPassword
581 rajveer 1162
    args.write(self._oprot)
1163
    self._oprot.writeMessageEnd()
1164
    self._oprot.trans.flush()
1165
 
1166
  def recv_forgotPassword(self, ):
1167
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1168
    if mtype == TMessageType.EXCEPTION:
1169
      x = TApplicationException()
1170
      x.read(self._iprot)
1171
      self._iprot.readMessageEnd()
1172
      raise x
1173
    result = forgotPassword_result()
1174
    result.read(self._iprot)
1175
    self._iprot.readMessageEnd()
3431 rajveer 1176
    if result.success is not None:
581 rajveer 1177
      return result.success
3431 rajveer 1178
    if result.ucx is not None:
581 rajveer 1179
      raise result.ucx
1180
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1181
 
594 rajveer 1182
  def getAllAddressesForUser(self, userId):
1183
    """
1184
    Parameters:
1185
     - userId
1186
    """
1187
    self.send_getAllAddressesForUser(userId)
1188
    return self.recv_getAllAddressesForUser()
1189
 
1190
  def send_getAllAddressesForUser(self, userId):
1191
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1192
    args = getAllAddressesForUser_args()
1193
    args.userId = userId
1194
    args.write(self._oprot)
1195
    self._oprot.writeMessageEnd()
1196
    self._oprot.trans.flush()
1197
 
1198
  def recv_getAllAddressesForUser(self, ):
1199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1200
    if mtype == TMessageType.EXCEPTION:
1201
      x = TApplicationException()
1202
      x.read(self._iprot)
1203
      self._iprot.readMessageEnd()
1204
      raise x
1205
    result = getAllAddressesForUser_result()
1206
    result.read(self._iprot)
1207
    self._iprot.readMessageEnd()
3431 rajveer 1208
    if result.success is not None:
594 rajveer 1209
      return result.success
3431 rajveer 1210
    if result.ucx is not None:
594 rajveer 1211
      raise result.ucx
1212
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1213
 
1894 vikas 1214
  def getAddressById(self, addressId):
1215
    """
1216
    Parameters:
1217
     - addressId
1218
    """
1219
    self.send_getAddressById(addressId)
1220
    return self.recv_getAddressById()
1221
 
1222
  def send_getAddressById(self, addressId):
1223
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1224
    args = getAddressById_args()
1225
    args.addressId = addressId
1226
    args.write(self._oprot)
1227
    self._oprot.writeMessageEnd()
1228
    self._oprot.trans.flush()
1229
 
1230
  def recv_getAddressById(self, ):
1231
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1232
    if mtype == TMessageType.EXCEPTION:
1233
      x = TApplicationException()
1234
      x.read(self._iprot)
1235
      self._iprot.readMessageEnd()
1236
      raise x
1237
    result = getAddressById_result()
1238
    result.read(self._iprot)
1239
    self._iprot.readMessageEnd()
3431 rajveer 1240
    if result.success is not None:
1894 vikas 1241
      return result.success
3431 rajveer 1242
    if result.ucx is not None:
1894 vikas 1243
      raise result.ucx
1244
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1245
 
594 rajveer 1246
  def getDefaultAddressId(self, userId):
1247
    """
1248
    Parameters:
1249
     - userId
1250
    """
1251
    self.send_getDefaultAddressId(userId)
1252
    return self.recv_getDefaultAddressId()
1253
 
1254
  def send_getDefaultAddressId(self, userId):
1255
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1256
    args = getDefaultAddressId_args()
1257
    args.userId = userId
1258
    args.write(self._oprot)
1259
    self._oprot.writeMessageEnd()
1260
    self._oprot.trans.flush()
1261
 
1262
  def recv_getDefaultAddressId(self, ):
1263
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1264
    if mtype == TMessageType.EXCEPTION:
1265
      x = TApplicationException()
1266
      x.read(self._iprot)
1267
      self._iprot.readMessageEnd()
1268
      raise x
1269
    result = getDefaultAddressId_result()
1270
    result.read(self._iprot)
1271
    self._iprot.readMessageEnd()
3431 rajveer 1272
    if result.success is not None:
594 rajveer 1273
      return result.success
3431 rajveer 1274
    if result.ucx is not None:
594 rajveer 1275
      raise result.ucx
1276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1277
 
785 rajveer 1278
  def getDefaultPincode(self, userId):
1279
    """
1280
    Parameters:
1281
     - userId
1282
    """
1283
    self.send_getDefaultPincode(userId)
1284
    return self.recv_getDefaultPincode()
1285
 
1286
  def send_getDefaultPincode(self, userId):
1287
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1288
    args = getDefaultPincode_args()
1289
    args.userId = userId
1290
    args.write(self._oprot)
1291
    self._oprot.writeMessageEnd()
1292
    self._oprot.trans.flush()
1293
 
1294
  def recv_getDefaultPincode(self, ):
1295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1296
    if mtype == TMessageType.EXCEPTION:
1297
      x = TApplicationException()
1298
      x.read(self._iprot)
1299
      self._iprot.readMessageEnd()
1300
      raise x
1301
    result = getDefaultPincode_result()
1302
    result.read(self._iprot)
1303
    self._iprot.readMessageEnd()
3431 rajveer 1304
    if result.success is not None:
785 rajveer 1305
      return result.success
3431 rajveer 1306
    if result.ucx is not None:
785 rajveer 1307
      raise result.ucx
1308
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1309
 
1274 varun.gupt 1310
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1311
    """
1312
    Parameters:
1313
     - userId
1314
     - replyTo
1315
     - communicationType
1316
     - orderId
1317
     - airwaybillNo
1318
     - productName
1319
     - subject
1320
     - message
1321
    """
1322
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1323
    return self.recv_saveUserCommunication()
1324
 
1325
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1326
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1327
    args = saveUserCommunication_args()
1328
    args.userId = userId
1329
    args.replyTo = replyTo
1330
    args.communicationType = communicationType
1331
    args.orderId = orderId
1332
    args.airwaybillNo = airwaybillNo
1333
    args.productName = productName
1334
    args.subject = subject
1335
    args.message = message
1336
    args.write(self._oprot)
1337
    self._oprot.writeMessageEnd()
1338
    self._oprot.trans.flush()
1339
 
1340
  def recv_saveUserCommunication(self, ):
1341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1342
    if mtype == TMessageType.EXCEPTION:
1343
      x = TApplicationException()
1344
      x.read(self._iprot)
1345
      self._iprot.readMessageEnd()
1346
      raise x
1347
    result = saveUserCommunication_result()
1348
    result.read(self._iprot)
1349
    self._iprot.readMessageEnd()
3431 rajveer 1350
    if result.success is not None:
1274 varun.gupt 1351
      return result.success
3431 rajveer 1352
    if result.ucx is not None:
1274 varun.gupt 1353
      raise result.ucx
1354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1355
 
1590 varun.gupt 1356
  def getUserCommunicationById(self, id):
1357
    """
1358
    Parameters:
1359
     - id
1360
    """
1361
    self.send_getUserCommunicationById(id)
1362
    return self.recv_getUserCommunicationById()
1363
 
1364
  def send_getUserCommunicationById(self, id):
1365
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1366
    args = getUserCommunicationById_args()
1367
    args.id = id
1368
    args.write(self._oprot)
1369
    self._oprot.writeMessageEnd()
1370
    self._oprot.trans.flush()
1371
 
1372
  def recv_getUserCommunicationById(self, ):
1373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1374
    if mtype == TMessageType.EXCEPTION:
1375
      x = TApplicationException()
1376
      x.read(self._iprot)
1377
      self._iprot.readMessageEnd()
1378
      raise x
1379
    result = getUserCommunicationById_result()
1380
    result.read(self._iprot)
1381
    self._iprot.readMessageEnd()
3431 rajveer 1382
    if result.success is not None:
1590 varun.gupt 1383
      return result.success
3431 rajveer 1384
    if result.ucx is not None:
1590 varun.gupt 1385
      raise result.ucx
1386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1387
 
1388
  def getUserCommunicationByUser(self, userId):
1389
    """
1390
    Parameters:
1391
     - userId
1392
    """
1393
    self.send_getUserCommunicationByUser(userId)
1394
    return self.recv_getUserCommunicationByUser()
1395
 
1396
  def send_getUserCommunicationByUser(self, userId):
1397
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1398
    args = getUserCommunicationByUser_args()
1399
    args.userId = userId
1400
    args.write(self._oprot)
1401
    self._oprot.writeMessageEnd()
1402
    self._oprot.trans.flush()
1403
 
1404
  def recv_getUserCommunicationByUser(self, ):
1405
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1406
    if mtype == TMessageType.EXCEPTION:
1407
      x = TApplicationException()
1408
      x.read(self._iprot)
1409
      self._iprot.readMessageEnd()
1410
      raise x
1411
    result = getUserCommunicationByUser_result()
1412
    result.read(self._iprot)
1413
    self._iprot.readMessageEnd()
3431 rajveer 1414
    if result.success is not None:
1590 varun.gupt 1415
      return result.success
3431 rajveer 1416
    if result.ucx is not None:
1590 varun.gupt 1417
      raise result.ucx
1418
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1419
 
1420
  def getAllUserCommunications(self, ):
1421
    self.send_getAllUserCommunications()
1422
    return self.recv_getAllUserCommunications()
1423
 
1424
  def send_getAllUserCommunications(self, ):
1425
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1426
    args = getAllUserCommunications_args()
1427
    args.write(self._oprot)
1428
    self._oprot.writeMessageEnd()
1429
    self._oprot.trans.flush()
1430
 
1431
  def recv_getAllUserCommunications(self, ):
1432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1433
    if mtype == TMessageType.EXCEPTION:
1434
      x = TApplicationException()
1435
      x.read(self._iprot)
1436
      self._iprot.readMessageEnd()
1437
      raise x
1438
    result = getAllUserCommunications_result()
1439
    result.read(self._iprot)
1440
    self._iprot.readMessageEnd()
3431 rajveer 1441
    if result.success is not None:
1590 varun.gupt 1442
      return result.success
3431 rajveer 1443
    if result.ucx is not None:
1590 varun.gupt 1444
      raise result.ucx
1445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1446
 
5407 amar.kumar 1447
  def removeUserCommunication(self, id):
1448
    """
1449
    Parameters:
1450
     - id
1451
    """
1452
    self.send_removeUserCommunication(id)
1453
    self.recv_removeUserCommunication()
1454
 
1455
  def send_removeUserCommunication(self, id):
1456
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1457
    args = removeUserCommunication_args()
1458
    args.id = id
1459
    args.write(self._oprot)
1460
    self._oprot.writeMessageEnd()
1461
    self._oprot.trans.flush()
1462
 
1463
  def recv_removeUserCommunication(self, ):
1464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1465
    if mtype == TMessageType.EXCEPTION:
1466
      x = TApplicationException()
1467
      x.read(self._iprot)
1468
      self._iprot.readMessageEnd()
1469
      raise x
1470
    result = removeUserCommunication_result()
1471
    result.read(self._iprot)
1472
    self._iprot.readMessageEnd()
1473
    if result.ucx is not None:
1474
      raise result.ucx
1475
    return
1476
 
1859 vikas 1477
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1478
    """
1479
    Parameters:
1480
     - name
1859 vikas 1481
     - addedOn
1845 vikas 1482
    """
1859 vikas 1483
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1484
    return self.recv_createMasterAffiliate()
1485
 
1859 vikas 1486
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1487
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1488
    args = createMasterAffiliate_args()
1489
    args.name = name
1859 vikas 1490
    args.addedOn = addedOn
1845 vikas 1491
    args.write(self._oprot)
1492
    self._oprot.writeMessageEnd()
1493
    self._oprot.trans.flush()
1494
 
1495
  def recv_createMasterAffiliate(self, ):
1496
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1497
    if mtype == TMessageType.EXCEPTION:
1498
      x = TApplicationException()
1499
      x.read(self._iprot)
1500
      self._iprot.readMessageEnd()
1501
      raise x
1502
    result = createMasterAffiliate_result()
1503
    result.read(self._iprot)
1504
    self._iprot.readMessageEnd()
3431 rajveer 1505
    if result.success is not None:
1845 vikas 1506
      return result.success
3431 rajveer 1507
    if result.utx is not None:
1845 vikas 1508
      raise result.utx
1509
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1510
 
1899 vikas 1511
  def getAllMasterAffiliates(self, ):
1512
    self.send_getAllMasterAffiliates()
1513
    return self.recv_getAllMasterAffiliates()
1514
 
1515
  def send_getAllMasterAffiliates(self, ):
1516
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1517
    args = getAllMasterAffiliates_args()
1518
    args.write(self._oprot)
1519
    self._oprot.writeMessageEnd()
1520
    self._oprot.trans.flush()
1521
 
1522
  def recv_getAllMasterAffiliates(self, ):
1523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1524
    if mtype == TMessageType.EXCEPTION:
1525
      x = TApplicationException()
1526
      x.read(self._iprot)
1527
      self._iprot.readMessageEnd()
1528
      raise x
1529
    result = getAllMasterAffiliates_result()
1530
    result.read(self._iprot)
1531
    self._iprot.readMessageEnd()
3431 rajveer 1532
    if result.success is not None:
1899 vikas 1533
      return result.success
3431 rajveer 1534
    if result.utx is not None:
1899 vikas 1535
      raise result.utx
1536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1537
 
1845 vikas 1538
  def getMasterAffiliateById(self, id):
1539
    """
1540
    Parameters:
1541
     - id
1542
    """
1543
    self.send_getMasterAffiliateById(id)
1544
    return self.recv_getMasterAffiliateById()
1545
 
1546
  def send_getMasterAffiliateById(self, id):
1547
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1548
    args = getMasterAffiliateById_args()
1549
    args.id = id
1550
    args.write(self._oprot)
1551
    self._oprot.writeMessageEnd()
1552
    self._oprot.trans.flush()
1553
 
1554
  def recv_getMasterAffiliateById(self, ):
1555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1556
    if mtype == TMessageType.EXCEPTION:
1557
      x = TApplicationException()
1558
      x.read(self._iprot)
1559
      self._iprot.readMessageEnd()
1560
      raise x
1561
    result = getMasterAffiliateById_result()
1562
    result.read(self._iprot)
1563
    self._iprot.readMessageEnd()
3431 rajveer 1564
    if result.success is not None:
1845 vikas 1565
      return result.success
3431 rajveer 1566
    if result.utx is not None:
1845 vikas 1567
      raise result.utx
1568
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1569
 
1570
  def getMasterAffiliateByName(self, name):
1571
    """
1572
    Parameters:
1573
     - name
1574
    """
1575
    self.send_getMasterAffiliateByName(name)
1576
    return self.recv_getMasterAffiliateByName()
1577
 
1578
  def send_getMasterAffiliateByName(self, name):
1579
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1580
    args = getMasterAffiliateByName_args()
1581
    args.name = name
1582
    args.write(self._oprot)
1583
    self._oprot.writeMessageEnd()
1584
    self._oprot.trans.flush()
1585
 
1586
  def recv_getMasterAffiliateByName(self, ):
1587
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1588
    if mtype == TMessageType.EXCEPTION:
1589
      x = TApplicationException()
1590
      x.read(self._iprot)
1591
      self._iprot.readMessageEnd()
1592
      raise x
1593
    result = getMasterAffiliateByName_result()
1594
    result.read(self._iprot)
1595
    self._iprot.readMessageEnd()
3431 rajveer 1596
    if result.success is not None:
1845 vikas 1597
      return result.success
3431 rajveer 1598
    if result.utx is not None:
1845 vikas 1599
      raise result.utx
1600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1601
 
1859 vikas 1602
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1603
    """
1604
    Parameters:
1605
     - name
1606
     - url
1607
     - masterAffiliateId
1859 vikas 1608
     - addedOn
1845 vikas 1609
    """
1859 vikas 1610
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1611
    return self.recv_createAffiliate()
1612
 
1859 vikas 1613
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1614
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1615
    args = createAffiliate_args()
1616
    args.name = name
1617
    args.url = url
1618
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1619
    args.addedOn = addedOn
1845 vikas 1620
    args.write(self._oprot)
1621
    self._oprot.writeMessageEnd()
1622
    self._oprot.trans.flush()
1623
 
1624
  def recv_createAffiliate(self, ):
1625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1626
    if mtype == TMessageType.EXCEPTION:
1627
      x = TApplicationException()
1628
      x.read(self._iprot)
1629
      self._iprot.readMessageEnd()
1630
      raise x
1631
    result = createAffiliate_result()
1632
    result.read(self._iprot)
1633
    self._iprot.readMessageEnd()
3431 rajveer 1634
    if result.success is not None:
1845 vikas 1635
      return result.success
3431 rajveer 1636
    if result.utx is not None:
1845 vikas 1637
      raise result.utx
1638
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1639
 
1640
  def getAffiliateById(self, id):
1641
    """
1642
    Parameters:
1643
     - id
1644
    """
1645
    self.send_getAffiliateById(id)
1646
    return self.recv_getAffiliateById()
1647
 
1648
  def send_getAffiliateById(self, id):
1649
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1650
    args = getAffiliateById_args()
1651
    args.id = id
1652
    args.write(self._oprot)
1653
    self._oprot.writeMessageEnd()
1654
    self._oprot.trans.flush()
1655
 
1656
  def recv_getAffiliateById(self, ):
1657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1658
    if mtype == TMessageType.EXCEPTION:
1659
      x = TApplicationException()
1660
      x.read(self._iprot)
1661
      self._iprot.readMessageEnd()
1662
      raise x
1663
    result = getAffiliateById_result()
1664
    result.read(self._iprot)
1665
    self._iprot.readMessageEnd()
3431 rajveer 1666
    if result.success is not None:
1845 vikas 1667
      return result.success
3431 rajveer 1668
    if result.utx is not None:
1845 vikas 1669
      raise result.utx
1670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1671
 
1672
  def getAffiliateByName(self, name):
1673
    """
1674
    Parameters:
1675
     - name
1676
    """
1677
    self.send_getAffiliateByName(name)
1678
    return self.recv_getAffiliateByName()
1679
 
1680
  def send_getAffiliateByName(self, name):
1681
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1682
    args = getAffiliateByName_args()
1683
    args.name = name
1684
    args.write(self._oprot)
1685
    self._oprot.writeMessageEnd()
1686
    self._oprot.trans.flush()
1687
 
1688
  def recv_getAffiliateByName(self, ):
1689
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1690
    if mtype == TMessageType.EXCEPTION:
1691
      x = TApplicationException()
1692
      x.read(self._iprot)
1693
      self._iprot.readMessageEnd()
1694
      raise x
1695
    result = getAffiliateByName_result()
1696
    result.read(self._iprot)
1697
    self._iprot.readMessageEnd()
3431 rajveer 1698
    if result.success is not None:
1845 vikas 1699
      return result.success
3431 rajveer 1700
    if result.utx is not None:
1845 vikas 1701
      raise result.utx
1702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1703
 
1996 vikas 1704
  def getTrackerById(self, id):
1845 vikas 1705
    """
1706
    Parameters:
1707
     - id
1708
    """
1996 vikas 1709
    self.send_getTrackerById(id)
1845 vikas 1710
    return self.recv_getTrackerById()
1711
 
1996 vikas 1712
  def send_getTrackerById(self, id):
1845 vikas 1713
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1714
    args = getTrackerById_args()
1996 vikas 1715
    args.id = id
1845 vikas 1716
    args.write(self._oprot)
1717
    self._oprot.writeMessageEnd()
1718
    self._oprot.trans.flush()
1719
 
1720
  def recv_getTrackerById(self, ):
1721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1722
    if mtype == TMessageType.EXCEPTION:
1723
      x = TApplicationException()
1724
      x.read(self._iprot)
1725
      self._iprot.readMessageEnd()
1726
      raise x
1727
    result = getTrackerById_result()
1728
    result.read(self._iprot)
1729
    self._iprot.readMessageEnd()
3431 rajveer 1730
    if result.success is not None:
1845 vikas 1731
      return result.success
3431 rajveer 1732
    if result.utx is not None:
1845 vikas 1733
      raise result.utx
1734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1735
 
1996 vikas 1736
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1737
    """
1738
    Parameters:
1996 vikas 1739
     - id
1845 vikas 1740
    """
1996 vikas 1741
    self.send_getAffiliatesByMasterAffiliate(id)
1742
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1743
 
1996 vikas 1744
  def send_getAffiliatesByMasterAffiliate(self, id):
1745
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1746
    args = getAffiliatesByMasterAffiliate_args()
1747
    args.id = id
1845 vikas 1748
    args.write(self._oprot)
1749
    self._oprot.writeMessageEnd()
1750
    self._oprot.trans.flush()
1751
 
1996 vikas 1752
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1754
    if mtype == TMessageType.EXCEPTION:
1755
      x = TApplicationException()
1756
      x.read(self._iprot)
1757
      self._iprot.readMessageEnd()
1758
      raise x
1996 vikas 1759
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1760
    result.read(self._iprot)
1761
    self._iprot.readMessageEnd()
3431 rajveer 1762
    if result.success is not None:
1845 vikas 1763
      return result.success
3431 rajveer 1764
    if result.utx is not None:
1845 vikas 1765
      raise result.utx
1996 vikas 1766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1767
 
1996 vikas 1768
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1769
    """
1770
    Parameters:
1996 vikas 1771
     - affiliateId
1845 vikas 1772
     - userId
1773
     - event
1774
     - url
1775
     - data
1859 vikas 1776
     - addedOn
1845 vikas 1777
    """
1996 vikas 1778
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1779
    return self.recv_addTrackLog()
1780
 
1996 vikas 1781
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1782
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1783
    args = addTrackLog_args()
1996 vikas 1784
    args.affiliateId = affiliateId
1845 vikas 1785
    args.userId = userId
1786
    args.event = event
1787
    args.url = url
1788
    args.data = data
1859 vikas 1789
    args.addedOn = addedOn
1845 vikas 1790
    args.write(self._oprot)
1791
    self._oprot.writeMessageEnd()
1792
    self._oprot.trans.flush()
1793
 
1794
  def recv_addTrackLog(self, ):
1795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1796
    if mtype == TMessageType.EXCEPTION:
1797
      x = TApplicationException()
1798
      x.read(self._iprot)
1799
      self._iprot.readMessageEnd()
1800
      raise x
1801
    result = addTrackLog_result()
1802
    result.read(self._iprot)
1803
    self._iprot.readMessageEnd()
3431 rajveer 1804
    if result.success is not None:
1845 vikas 1805
      return result.success
3431 rajveer 1806
    if result.utx is not None:
1845 vikas 1807
      raise result.utx
1808
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1809
 
1810
  def getTrackLogById(self, id):
1811
    """
1812
    Parameters:
1813
     - id
1814
    """
1815
    self.send_getTrackLogById(id)
1816
    return self.recv_getTrackLogById()
1817
 
1818
  def send_getTrackLogById(self, id):
1819
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1820
    args = getTrackLogById_args()
1821
    args.id = id
1822
    args.write(self._oprot)
1823
    self._oprot.writeMessageEnd()
1824
    self._oprot.trans.flush()
1825
 
1826
  def recv_getTrackLogById(self, ):
1827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1828
    if mtype == TMessageType.EXCEPTION:
1829
      x = TApplicationException()
1830
      x.read(self._iprot)
1831
      self._iprot.readMessageEnd()
1832
      raise x
1833
    result = getTrackLogById_result()
1834
    result.read(self._iprot)
1835
    self._iprot.readMessageEnd()
3431 rajveer 1836
    if result.success is not None:
1845 vikas 1837
      return result.success
3431 rajveer 1838
    if result.utx is not None:
1845 vikas 1839
      raise result.utx
1840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1841
 
3293 vikas 1842
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1843
    """
1844
    Parameters:
1996 vikas 1845
     - affiliateId
3293 vikas 1846
     - startDate
1847
     - endDate
1845 vikas 1848
    """
3293 vikas 1849
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1850
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1851
 
3293 vikas 1852
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1853
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1854
    args = getTrackLogsByAffiliate_args()
1855
    args.affiliateId = affiliateId
3293 vikas 1856
    args.startDate = startDate
1857
    args.endDate = endDate
1845 vikas 1858
    args.write(self._oprot)
1859
    self._oprot.writeMessageEnd()
1860
    self._oprot.trans.flush()
1861
 
1996 vikas 1862
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1864
    if mtype == TMessageType.EXCEPTION:
1865
      x = TApplicationException()
1866
      x.read(self._iprot)
1867
      self._iprot.readMessageEnd()
1868
      raise x
1996 vikas 1869
    result = getTrackLogsByAffiliate_result()
1845 vikas 1870
    result.read(self._iprot)
1871
    self._iprot.readMessageEnd()
3431 rajveer 1872
    if result.success is not None:
1845 vikas 1873
      return result.success
3431 rajveer 1874
    if result.utx is not None:
1845 vikas 1875
      raise result.utx
1996 vikas 1876
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1877
 
1878
  def getTrackLogsByUser(self, userId):
1879
    """
1880
    Parameters:
1881
     - userId
1882
    """
1883
    self.send_getTrackLogsByUser(userId)
1884
    return self.recv_getTrackLogsByUser()
1885
 
1886
  def send_getTrackLogsByUser(self, userId):
1887
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1888
    args = getTrackLogsByUser_args()
1889
    args.userId = userId
1890
    args.write(self._oprot)
1891
    self._oprot.writeMessageEnd()
1892
    self._oprot.trans.flush()
1893
 
1894
  def recv_getTrackLogsByUser(self, ):
1895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1896
    if mtype == TMessageType.EXCEPTION:
1897
      x = TApplicationException()
1898
      x.read(self._iprot)
1899
      self._iprot.readMessageEnd()
1900
      raise x
1901
    result = getTrackLogsByUser_result()
1902
    result.read(self._iprot)
1903
    self._iprot.readMessageEnd()
3431 rajveer 1904
    if result.success is not None:
1845 vikas 1905
      return result.success
3431 rajveer 1906
    if result.utx is not None:
1845 vikas 1907
      raise result.utx
1908
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1909
 
1996 vikas 1910
  def getTrackLogs(self, userId, event, url):
1845 vikas 1911
    """
1912
    Parameters:
1913
     - userId
1914
     - event
1915
     - url
1916
    """
1996 vikas 1917
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1918
    return self.recv_getTrackLogs()
1919
 
1996 vikas 1920
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1921
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1922
    args = getTrackLogs_args()
1923
    args.userId = userId
1924
    args.event = event
1925
    args.url = url
1926
    args.write(self._oprot)
1927
    self._oprot.writeMessageEnd()
1928
    self._oprot.trans.flush()
1929
 
1930
  def recv_getTrackLogs(self, ):
1931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1932
    if mtype == TMessageType.EXCEPTION:
1933
      x = TApplicationException()
1934
      x.read(self._iprot)
1935
      self._iprot.readMessageEnd()
1936
      raise x
1937
    result = getTrackLogs_result()
1938
    result.read(self._iprot)
1939
    self._iprot.readMessageEnd()
3431 rajveer 1940
    if result.success is not None:
1845 vikas 1941
      return result.success
3431 rajveer 1942
    if result.utx is not None:
1845 vikas 1943
      raise result.utx
1944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1945
 
559 chandransh 1946
  def getCurrentCart(self, userId):
94 ashish 1947
    """
1948
    Parameters:
559 chandransh 1949
     - userId
94 ashish 1950
    """
559 chandransh 1951
    self.send_getCurrentCart(userId)
1952
    return self.recv_getCurrentCart()
94 ashish 1953
 
559 chandransh 1954
  def send_getCurrentCart(self, userId):
1955
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1956
    args = getCurrentCart_args()
1957
    args.userId = userId
94 ashish 1958
    args.write(self._oprot)
1959
    self._oprot.writeMessageEnd()
1960
    self._oprot.trans.flush()
1961
 
559 chandransh 1962
  def recv_getCurrentCart(self, ):
94 ashish 1963
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1964
    if mtype == TMessageType.EXCEPTION:
1965
      x = TApplicationException()
1966
      x.read(self._iprot)
1967
      self._iprot.readMessageEnd()
1968
      raise x
559 chandransh 1969
    result = getCurrentCart_result()
94 ashish 1970
    result.read(self._iprot)
1971
    self._iprot.readMessageEnd()
3431 rajveer 1972
    if result.success is not None:
94 ashish 1973
      return result.success
3431 rajveer 1974
    if result.scx is not None:
559 chandransh 1975
      raise result.scx
1976
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1977
 
559 chandransh 1978
  def getCart(self, cartId):
94 ashish 1979
    """
1980
    Parameters:
559 chandransh 1981
     - cartId
94 ashish 1982
    """
559 chandransh 1983
    self.send_getCart(cartId)
1984
    return self.recv_getCart()
94 ashish 1985
 
559 chandransh 1986
  def send_getCart(self, cartId):
1987
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1988
    args = getCart_args()
1989
    args.cartId = cartId
94 ashish 1990
    args.write(self._oprot)
1991
    self._oprot.writeMessageEnd()
1992
    self._oprot.trans.flush()
1993
 
559 chandransh 1994
  def recv_getCart(self, ):
94 ashish 1995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1996
    if mtype == TMessageType.EXCEPTION:
1997
      x = TApplicationException()
1998
      x.read(self._iprot)
1999
      self._iprot.readMessageEnd()
2000
      raise x
559 chandransh 2001
    result = getCart_result()
94 ashish 2002
    result.read(self._iprot)
2003
    self._iprot.readMessageEnd()
3431 rajveer 2004
    if result.success is not None:
94 ashish 2005
      return result.success
3431 rajveer 2006
    if result.scx is not None:
559 chandransh 2007
      raise result.scx
2008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2009
 
559 chandransh 2010
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2011
    """
2012
    Parameters:
559 chandransh 2013
     - from_time
2014
     - to_time
2015
     - status
94 ashish 2016
    """
559 chandransh 2017
    self.send_getCartsByTime(from_time, to_time, status)
2018
    return self.recv_getCartsByTime()
94 ashish 2019
 
559 chandransh 2020
  def send_getCartsByTime(self, from_time, to_time, status):
2021
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2022
    args = getCartsByTime_args()
2023
    args.from_time = from_time
2024
    args.to_time = to_time
2025
    args.status = status
94 ashish 2026
    args.write(self._oprot)
2027
    self._oprot.writeMessageEnd()
2028
    self._oprot.trans.flush()
2029
 
559 chandransh 2030
  def recv_getCartsByTime(self, ):
94 ashish 2031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2032
    if mtype == TMessageType.EXCEPTION:
2033
      x = TApplicationException()
2034
      x.read(self._iprot)
2035
      self._iprot.readMessageEnd()
2036
      raise x
559 chandransh 2037
    result = getCartsByTime_result()
94 ashish 2038
    result.read(self._iprot)
2039
    self._iprot.readMessageEnd()
3431 rajveer 2040
    if result.success is not None:
94 ashish 2041
      return result.success
3431 rajveer 2042
    if result.scx is not None:
559 chandransh 2043
      raise result.scx
2044
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2045
 
3557 rajveer 2046
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2047
    """
2048
    Parameters:
2049
     - cartId
2050
     - itemId
2051
     - quantity
3557 rajveer 2052
     - sourceId
559 chandransh 2053
    """
3557 rajveer 2054
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2055
    return self.recv_addItemToCart()
559 chandransh 2056
 
3557 rajveer 2057
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2058
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2059
    args = addItemToCart_args()
2060
    args.cartId = cartId
2061
    args.itemId = itemId
2062
    args.quantity = quantity
3557 rajveer 2063
    args.sourceId = sourceId
559 chandransh 2064
    args.write(self._oprot)
2065
    self._oprot.writeMessageEnd()
2066
    self._oprot.trans.flush()
2067
 
2068
  def recv_addItemToCart(self, ):
2069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2070
    if mtype == TMessageType.EXCEPTION:
2071
      x = TApplicationException()
2072
      x.read(self._iprot)
2073
      self._iprot.readMessageEnd()
2074
      raise x
2075
    result = addItemToCart_result()
2076
    result.read(self._iprot)
2077
    self._iprot.readMessageEnd()
3431 rajveer 2078
    if result.success is not None:
2035 rajveer 2079
      return result.success
3431 rajveer 2080
    if result.scx is not None:
559 chandransh 2081
      raise result.scx
2035 rajveer 2082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2083
 
2084
  def deleteItemFromCart(self, cartId, itemId):
2085
    """
2086
    Parameters:
2087
     - cartId
2088
     - itemId
2089
    """
2090
    self.send_deleteItemFromCart(cartId, itemId)
2091
    self.recv_deleteItemFromCart()
2092
 
2093
  def send_deleteItemFromCart(self, cartId, itemId):
2094
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2095
    args = deleteItemFromCart_args()
2096
    args.cartId = cartId
2097
    args.itemId = itemId
2098
    args.write(self._oprot)
2099
    self._oprot.writeMessageEnd()
2100
    self._oprot.trans.flush()
2101
 
2102
  def recv_deleteItemFromCart(self, ):
2103
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2104
    if mtype == TMessageType.EXCEPTION:
2105
      x = TApplicationException()
2106
      x.read(self._iprot)
2107
      self._iprot.readMessageEnd()
2108
      raise x
2109
    result = deleteItemFromCart_result()
2110
    result.read(self._iprot)
2111
    self._iprot.readMessageEnd()
3431 rajveer 2112
    if result.scx is not None:
559 chandransh 2113
      raise result.scx
2114
    return
2115
 
2116
  def addAddressToCart(self, cartId, addressId):
2117
    """
2118
    Parameters:
2119
     - cartId
2120
     - addressId
2121
    """
2122
    self.send_addAddressToCart(cartId, addressId)
2123
    self.recv_addAddressToCart()
2124
 
2125
  def send_addAddressToCart(self, cartId, addressId):
2126
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2127
    args = addAddressToCart_args()
2128
    args.cartId = cartId
2129
    args.addressId = addressId
2130
    args.write(self._oprot)
2131
    self._oprot.writeMessageEnd()
2132
    self._oprot.trans.flush()
2133
 
2134
  def recv_addAddressToCart(self, ):
2135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2136
    if mtype == TMessageType.EXCEPTION:
2137
      x = TApplicationException()
2138
      x.read(self._iprot)
2139
      self._iprot.readMessageEnd()
2140
      raise x
2141
    result = addAddressToCart_result()
2142
    result.read(self._iprot)
2143
    self._iprot.readMessageEnd()
3431 rajveer 2144
    if result.scx is not None:
575 chandransh 2145
      raise result.scx
559 chandransh 2146
    return
2147
 
5553 rajveer 2148
  def addStoreToCart(self, cartId, storeId):
2149
    """
2150
    Parameters:
2151
     - cartId
2152
     - storeId
2153
    """
2154
    self.send_addStoreToCart(cartId, storeId)
2155
    self.recv_addStoreToCart()
2156
 
2157
  def send_addStoreToCart(self, cartId, storeId):
2158
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2159
    args = addStoreToCart_args()
2160
    args.cartId = cartId
2161
    args.storeId = storeId
2162
    args.write(self._oprot)
2163
    self._oprot.writeMessageEnd()
2164
    self._oprot.trans.flush()
2165
 
2166
  def recv_addStoreToCart(self, ):
2167
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2168
    if mtype == TMessageType.EXCEPTION:
2169
      x = TApplicationException()
2170
      x.read(self._iprot)
2171
      self._iprot.readMessageEnd()
2172
      raise x
2173
    result = addStoreToCart_result()
2174
    result.read(self._iprot)
2175
    self._iprot.readMessageEnd()
2176
    if result.scx is not None:
2177
      raise result.scx
2178
    return
2179
 
6922 anupam.sin 2180
  def applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2181
    """
2182
    Parameters:
6922 anupam.sin 2183
     - cart
1976 varun.gupt 2184
     - couponCode
2185
    """
6922 anupam.sin 2186
    self.send_applyCouponToCart(cart, couponCode)
1976 varun.gupt 2187
    self.recv_applyCouponToCart()
2188
 
6922 anupam.sin 2189
  def send_applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2190
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2191
    args = applyCouponToCart_args()
6922 anupam.sin 2192
    args.cart = cart
1976 varun.gupt 2193
    args.couponCode = couponCode
2194
    args.write(self._oprot)
2195
    self._oprot.writeMessageEnd()
2196
    self._oprot.trans.flush()
2197
 
2198
  def recv_applyCouponToCart(self, ):
2199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2200
    if mtype == TMessageType.EXCEPTION:
2201
      x = TApplicationException()
2202
      x.read(self._iprot)
2203
      self._iprot.readMessageEnd()
2204
      raise x
2205
    result = applyCouponToCart_result()
2206
    result.read(self._iprot)
2207
    self._iprot.readMessageEnd()
3431 rajveer 2208
    if result.scx is not None:
1976 varun.gupt 2209
      raise result.scx
2210
    return
2211
 
2212
  def removeCoupon(self, cartId):
2213
    """
2214
    Parameters:
2215
     - cartId
2216
    """
2217
    self.send_removeCoupon(cartId)
2218
    self.recv_removeCoupon()
2219
 
2220
  def send_removeCoupon(self, cartId):
2221
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2222
    args = removeCoupon_args()
2223
    args.cartId = cartId
2224
    args.write(self._oprot)
2225
    self._oprot.writeMessageEnd()
2226
    self._oprot.trans.flush()
2227
 
2228
  def recv_removeCoupon(self, ):
2229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2230
    if mtype == TMessageType.EXCEPTION:
2231
      x = TApplicationException()
2232
      x.read(self._iprot)
2233
      self._iprot.readMessageEnd()
2234
      raise x
2235
    result = removeCoupon_result()
2236
    result.read(self._iprot)
2237
    self._iprot.readMessageEnd()
3431 rajveer 2238
    if result.scx is not None:
1976 varun.gupt 2239
      raise result.scx
2240
    return
2241
 
3554 varun.gupt 2242
  def deleteDiscountsFromCart(self, cartId):
2243
    """
2244
    Deletes all the discounts associated with the cart
2245
 
2246
    Parameters:
2247
     - cartId
2248
    """
2249
    self.send_deleteDiscountsFromCart(cartId)
2250
    self.recv_deleteDiscountsFromCart()
2251
 
2252
  def send_deleteDiscountsFromCart(self, cartId):
2253
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2254
    args = deleteDiscountsFromCart_args()
2255
    args.cartId = cartId
2256
    args.write(self._oprot)
2257
    self._oprot.writeMessageEnd()
2258
    self._oprot.trans.flush()
2259
 
2260
  def recv_deleteDiscountsFromCart(self, ):
2261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2262
    if mtype == TMessageType.EXCEPTION:
2263
      x = TApplicationException()
2264
      x.read(self._iprot)
2265
      self._iprot.readMessageEnd()
2266
      raise x
2267
    result = deleteDiscountsFromCart_result()
2268
    result.read(self._iprot)
2269
    self._iprot.readMessageEnd()
2270
    if result.scx is not None:
2271
      raise result.scx
2272
    return
2273
 
2274
  def saveDiscounts(self, discounts):
2275
    """
2276
    Accepts a list of thrift objects of Discount type and saves them
2277
 
2278
    Parameters:
2279
     - discounts
2280
    """
2281
    self.send_saveDiscounts(discounts)
2282
    self.recv_saveDiscounts()
2283
 
2284
  def send_saveDiscounts(self, discounts):
2285
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2286
    args = saveDiscounts_args()
2287
    args.discounts = discounts
2288
    args.write(self._oprot)
2289
    self._oprot.writeMessageEnd()
2290
    self._oprot.trans.flush()
2291
 
2292
  def recv_saveDiscounts(self, ):
2293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2294
    if mtype == TMessageType.EXCEPTION:
2295
      x = TApplicationException()
2296
      x.read(self._iprot)
2297
      self._iprot.readMessageEnd()
2298
      raise x
2299
    result = saveDiscounts_result()
2300
    result.read(self._iprot)
2301
    self._iprot.readMessageEnd()
2302
    if result.scx is not None:
2303
      raise result.scx
2304
    return
2305
 
11526 amit.gupta 2306
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource):
559 chandransh 2307
    """
690 chandransh 2308
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2309
 
559 chandransh 2310
    Parameters:
2311
     - cartId
2815 vikas 2312
     - sessionSource
2313
     - sessionStartTime
3858 vikas 2314
     - firstSource
2315
     - firstSourceTime
5326 rajveer 2316
     - userId
6389 rajveer 2317
     - schemeId
11526 amit.gupta 2318
     - orderSource
559 chandransh 2319
    """
11526 amit.gupta 2320
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource)
690 chandransh 2321
    return self.recv_createOrders()
559 chandransh 2322
 
11526 amit.gupta 2323
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource):
690 chandransh 2324
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2325
    args = createOrders_args()
559 chandransh 2326
    args.cartId = cartId
2815 vikas 2327
    args.sessionSource = sessionSource
2328
    args.sessionStartTime = sessionStartTime
3858 vikas 2329
    args.firstSource = firstSource
2330
    args.firstSourceTime = firstSourceTime
5326 rajveer 2331
    args.userId = userId
6389 rajveer 2332
    args.schemeId = schemeId
11526 amit.gupta 2333
    args.orderSource = orderSource
559 chandransh 2334
    args.write(self._oprot)
2335
    self._oprot.writeMessageEnd()
2336
    self._oprot.trans.flush()
2337
 
690 chandransh 2338
  def recv_createOrders(self, ):
559 chandransh 2339
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2340
    if mtype == TMessageType.EXCEPTION:
2341
      x = TApplicationException()
2342
      x.read(self._iprot)
2343
      self._iprot.readMessageEnd()
2344
      raise x
690 chandransh 2345
    result = createOrders_result()
559 chandransh 2346
    result.read(self._iprot)
2347
    self._iprot.readMessageEnd()
3431 rajveer 2348
    if result.success is not None:
130 ashish 2349
      return result.success
3431 rajveer 2350
    if result.scx is not None:
559 chandransh 2351
      raise result.scx
690 chandransh 2352
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2353
 
3557 rajveer 2354
  def validateCart(self, cartId, sourceId):
130 ashish 2355
    """
690 chandransh 2356
    Validates that:
2357
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2358
    2. All of the lines in the cart are active items.
690 chandransh 2359
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2360
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2361
 
130 ashish 2362
    Parameters:
559 chandransh 2363
     - cartId
3557 rajveer 2364
     - sourceId
130 ashish 2365
    """
3557 rajveer 2366
    self.send_validateCart(cartId, sourceId)
559 chandransh 2367
    return self.recv_validateCart()
130 ashish 2368
 
3557 rajveer 2369
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2370
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2371
    args = validateCart_args()
2372
    args.cartId = cartId
3557 rajveer 2373
    args.sourceId = sourceId
130 ashish 2374
    args.write(self._oprot)
2375
    self._oprot.writeMessageEnd()
2376
    self._oprot.trans.flush()
2377
 
559 chandransh 2378
  def recv_validateCart(self, ):
130 ashish 2379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2380
    if mtype == TMessageType.EXCEPTION:
2381
      x = TApplicationException()
2382
      x.read(self._iprot)
2383
      self._iprot.readMessageEnd()
2384
      raise x
559 chandransh 2385
    result = validateCart_result()
130 ashish 2386
    result.read(self._iprot)
2387
    self._iprot.readMessageEnd()
3431 rajveer 2388
    if result.success is not None:
130 ashish 2389
      return result.success
3431 rajveer 2390
    if result.scex is not None:
575 chandransh 2391
      raise result.scex
559 chandransh 2392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2393
 
690 chandransh 2394
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2395
    """
690 chandransh 2396
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2397
 
575 chandransh 2398
    Parameters:
690 chandransh 2399
     - fromCartId
2400
     - toCartId
2401
    """
2402
    self.send_mergeCart(fromCartId, toCartId)
2403
    self.recv_mergeCart()
2404
 
2405
  def send_mergeCart(self, fromCartId, toCartId):
2406
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2407
    args = mergeCart_args()
2408
    args.fromCartId = fromCartId
2409
    args.toCartId = toCartId
2410
    args.write(self._oprot)
2411
    self._oprot.writeMessageEnd()
2412
    self._oprot.trans.flush()
2413
 
2414
  def recv_mergeCart(self, ):
2415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2416
    if mtype == TMessageType.EXCEPTION:
2417
      x = TApplicationException()
2418
      x.read(self._iprot)
2419
      self._iprot.readMessageEnd()
2420
      raise x
2421
    result = mergeCart_result()
2422
    result.read(self._iprot)
2423
    self._iprot.readMessageEnd()
2424
    return
2425
 
2426
  def checkOut(self, cartId):
2427
    """
2428
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2429
 
690 chandransh 2430
    Parameters:
575 chandransh 2431
     - cartId
2432
    """
690 chandransh 2433
    self.send_checkOut(cartId)
2434
    return self.recv_checkOut()
575 chandransh 2435
 
690 chandransh 2436
  def send_checkOut(self, cartId):
2437
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2438
    args = checkOut_args()
575 chandransh 2439
    args.cartId = cartId
2440
    args.write(self._oprot)
2441
    self._oprot.writeMessageEnd()
2442
    self._oprot.trans.flush()
2443
 
690 chandransh 2444
  def recv_checkOut(self, ):
575 chandransh 2445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2446
    if mtype == TMessageType.EXCEPTION:
2447
      x = TApplicationException()
2448
      x.read(self._iprot)
2449
      self._iprot.readMessageEnd()
2450
      raise x
690 chandransh 2451
    result = checkOut_result()
575 chandransh 2452
    result.read(self._iprot)
2453
    self._iprot.readMessageEnd()
3431 rajveer 2454
    if result.success is not None:
575 chandransh 2455
      return result.success
3431 rajveer 2456
    if result.scex is not None:
575 chandransh 2457
      raise result.scex
690 chandransh 2458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2459
 
690 chandransh 2460
  def resetCart(self, cartId, items):
559 chandransh 2461
    """
690 chandransh 2462
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2463
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2464
 
559 chandransh 2465
    Parameters:
690 chandransh 2466
     - cartId
2467
     - items
559 chandransh 2468
    """
690 chandransh 2469
    self.send_resetCart(cartId, items)
2470
    return self.recv_resetCart()
130 ashish 2471
 
690 chandransh 2472
  def send_resetCart(self, cartId, items):
2473
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2474
    args = resetCart_args()
2475
    args.cartId = cartId
2476
    args.items = items
559 chandransh 2477
    args.write(self._oprot)
2478
    self._oprot.writeMessageEnd()
2479
    self._oprot.trans.flush()
2480
 
690 chandransh 2481
  def recv_resetCart(self, ):
559 chandransh 2482
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2483
    if mtype == TMessageType.EXCEPTION:
2484
      x = TApplicationException()
2485
      x.read(self._iprot)
2486
      self._iprot.readMessageEnd()
2487
      raise x
690 chandransh 2488
    result = resetCart_result()
559 chandransh 2489
    result.read(self._iprot)
2490
    self._iprot.readMessageEnd()
3431 rajveer 2491
    if result.success is not None:
690 chandransh 2492
      return result.success
3431 rajveer 2493
    if result.scex is not None:
690 chandransh 2494
      raise result.scex
2495
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2496
 
2981 rajveer 2497
  def getUserCount(self, userType):
559 chandransh 2498
    """
2981 rajveer 2499
    Returns number of registered users.
2500
    If userType = null, then it returns count of all users, including anonymous
2501
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2502
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2503
 
559 chandransh 2504
    Parameters:
2981 rajveer 2505
     - userType
559 chandransh 2506
    """
2981 rajveer 2507
    self.send_getUserCount(userType)
2508
    return self.recv_getUserCount()
559 chandransh 2509
 
2981 rajveer 2510
  def send_getUserCount(self, userType):
2511
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2512
    args = getUserCount_args()
2513
    args.userType = userType
559 chandransh 2514
    args.write(self._oprot)
2515
    self._oprot.writeMessageEnd()
2516
    self._oprot.trans.flush()
2517
 
2981 rajveer 2518
  def recv_getUserCount(self, ):
559 chandransh 2519
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2520
    if mtype == TMessageType.EXCEPTION:
2521
      x = TApplicationException()
2522
      x.read(self._iprot)
2523
      self._iprot.readMessageEnd()
2524
      raise x
2981 rajveer 2525
    result = getUserCount_result()
559 chandransh 2526
    result.read(self._iprot)
2527
    self._iprot.readMessageEnd()
3431 rajveer 2528
    if result.success is not None:
559 chandransh 2529
      return result.success
2981 rajveer 2530
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2531
 
2981 rajveer 2532
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2533
    """
2981 rajveer 2534
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2535
    If any of startDate or endDate is -1, then that filter is ignored.
2536
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2537
 
2538
 
559 chandransh 2539
    Parameters:
2981 rajveer 2540
     - userType
2541
     - startDate
2542
     - endDate
559 chandransh 2543
    """
2981 rajveer 2544
    self.send_getAllUsers(userType, startDate, endDate)
2545
    return self.recv_getAllUsers()
559 chandransh 2546
 
2981 rajveer 2547
  def send_getAllUsers(self, userType, startDate, endDate):
2548
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2549
    args = getAllUsers_args()
2550
    args.userType = userType
2551
    args.startDate = startDate
2552
    args.endDate = endDate
559 chandransh 2553
    args.write(self._oprot)
2554
    self._oprot.writeMessageEnd()
2555
    self._oprot.trans.flush()
2556
 
2981 rajveer 2557
  def recv_getAllUsers(self, ):
559 chandransh 2558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2559
    if mtype == TMessageType.EXCEPTION:
2560
      x = TApplicationException()
2561
      x.read(self._iprot)
2562
      self._iprot.readMessageEnd()
2563
      raise x
2981 rajveer 2564
    result = getAllUsers_result()
559 chandransh 2565
    result.read(self._iprot)
2566
    self._iprot.readMessageEnd()
3431 rajveer 2567
    if result.success is not None:
559 chandransh 2568
      return result.success
2981 rajveer 2569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2570
 
2981 rajveer 2571
  def getMyResearchItems(self, userId):
559 chandransh 2572
    """
2981 rajveer 2573
    Returns list of item ids in myresearch for the user
3431 rajveer 2574
 
559 chandransh 2575
    Parameters:
772 rajveer 2576
     - userId
559 chandransh 2577
    """
2981 rajveer 2578
    self.send_getMyResearchItems(userId)
2579
    return self.recv_getMyResearchItems()
559 chandransh 2580
 
2981 rajveer 2581
  def send_getMyResearchItems(self, userId):
2582
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2583
    args = getMyResearchItems_args()
772 rajveer 2584
    args.userId = userId
559 chandransh 2585
    args.write(self._oprot)
2586
    self._oprot.writeMessageEnd()
2587
    self._oprot.trans.flush()
2588
 
2981 rajveer 2589
  def recv_getMyResearchItems(self, ):
559 chandransh 2590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2591
    if mtype == TMessageType.EXCEPTION:
2592
      x = TApplicationException()
2593
      x.read(self._iprot)
2594
      self._iprot.readMessageEnd()
2595
      raise x
2981 rajveer 2596
    result = getMyResearchItems_result()
559 chandransh 2597
    result.read(self._iprot)
2598
    self._iprot.readMessageEnd()
3431 rajveer 2599
    if result.success is not None:
559 chandransh 2600
      return result.success
3431 rajveer 2601
    if result.scx is not None:
559 chandransh 2602
      raise result.scx
2981 rajveer 2603
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2604
 
2981 rajveer 2605
  def updateMyResearch(self, userId, itemId):
559 chandransh 2606
    """
2981 rajveer 2607
    add item to my research for a user
3431 rajveer 2608
 
559 chandransh 2609
    Parameters:
2981 rajveer 2610
     - userId
2611
     - itemId
559 chandransh 2612
    """
2981 rajveer 2613
    self.send_updateMyResearch(userId, itemId)
2614
    return self.recv_updateMyResearch()
559 chandransh 2615
 
2981 rajveer 2616
  def send_updateMyResearch(self, userId, itemId):
2617
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2618
    args = updateMyResearch_args()
2619
    args.userId = userId
2620
    args.itemId = itemId
559 chandransh 2621
    args.write(self._oprot)
2622
    self._oprot.writeMessageEnd()
2623
    self._oprot.trans.flush()
2624
 
2981 rajveer 2625
  def recv_updateMyResearch(self, ):
559 chandransh 2626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2627
    if mtype == TMessageType.EXCEPTION:
2628
      x = TApplicationException()
2629
      x.read(self._iprot)
2630
      self._iprot.readMessageEnd()
2631
      raise x
2981 rajveer 2632
    result = updateMyResearch_result()
559 chandransh 2633
    result.read(self._iprot)
2634
    self._iprot.readMessageEnd()
3431 rajveer 2635
    if result.success is not None:
2981 rajveer 2636
      return result.success
3431 rajveer 2637
    if result.scx is not None:
2981 rajveer 2638
      raise result.scx
2639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2640
 
2981 rajveer 2641
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2642
    """
2981 rajveer 2643
    delete item from my research for a user
3431 rajveer 2644
 
1596 ankur.sing 2645
    Parameters:
2981 rajveer 2646
     - userId
2647
     - itemId
1596 ankur.sing 2648
    """
2981 rajveer 2649
    self.send_deleteItemFromMyResearch(userId, itemId)
2650
    self.recv_deleteItemFromMyResearch()
559 chandransh 2651
 
2981 rajveer 2652
  def send_deleteItemFromMyResearch(self, userId, itemId):
2653
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2654
    args = deleteItemFromMyResearch_args()
2655
    args.userId = userId
2656
    args.itemId = itemId
1596 ankur.sing 2657
    args.write(self._oprot)
2658
    self._oprot.writeMessageEnd()
2659
    self._oprot.trans.flush()
2660
 
2981 rajveer 2661
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2663
    if mtype == TMessageType.EXCEPTION:
2664
      x = TApplicationException()
2665
      x.read(self._iprot)
2666
      self._iprot.readMessageEnd()
2667
      raise x
2981 rajveer 2668
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2669
    result.read(self._iprot)
2670
    self._iprot.readMessageEnd()
3431 rajveer 2671
    if result.scx is not None:
2981 rajveer 2672
      raise result.scx
2673
    return
1596 ankur.sing 2674
 
2981 rajveer 2675
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2676
    """
2981 rajveer 2677
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2678
 
1673 ankur.sing 2679
    Parameters:
2981 rajveer 2680
     - userId
1673 ankur.sing 2681
    """
2981 rajveer 2682
    self.send_getBrowseHistoryItems(userId)
2683
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2684
 
2981 rajveer 2685
  def send_getBrowseHistoryItems(self, userId):
2686
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2687
    args = getBrowseHistoryItems_args()
2688
    args.userId = userId
1673 ankur.sing 2689
    args.write(self._oprot)
2690
    self._oprot.writeMessageEnd()
2691
    self._oprot.trans.flush()
2692
 
2981 rajveer 2693
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2695
    if mtype == TMessageType.EXCEPTION:
2696
      x = TApplicationException()
2697
      x.read(self._iprot)
2698
      self._iprot.readMessageEnd()
2699
      raise x
2981 rajveer 2700
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2701
    result.read(self._iprot)
2702
    self._iprot.readMessageEnd()
3431 rajveer 2703
    if result.success is not None:
1673 ankur.sing 2704
      return result.success
3431 rajveer 2705
    if result.scx is not None:
2981 rajveer 2706
      raise result.scx
2707
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2708
 
2981 rajveer 2709
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2710
    """
2981 rajveer 2711
    add item to browse history for a user
3431 rajveer 2712
 
2642 varun.gupt 2713
    Parameters:
2981 rajveer 2714
     - userId
2715
     - itemId
2642 varun.gupt 2716
    """
2981 rajveer 2717
    self.send_updateBrowseHistory(userId, itemId)
2718
    self.recv_updateBrowseHistory()
1673 ankur.sing 2719
 
2981 rajveer 2720
  def send_updateBrowseHistory(self, userId, itemId):
2721
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2722
    args = updateBrowseHistory_args()
2723
    args.userId = userId
2724
    args.itemId = itemId
2642 varun.gupt 2725
    args.write(self._oprot)
2726
    self._oprot.writeMessageEnd()
2727
    self._oprot.trans.flush()
2728
 
2981 rajveer 2729
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2731
    if mtype == TMessageType.EXCEPTION:
2732
      x = TApplicationException()
2733
      x.read(self._iprot)
2734
      self._iprot.readMessageEnd()
2735
      raise x
2981 rajveer 2736
    result = updateBrowseHistory_result()
2642 varun.gupt 2737
    result.read(self._iprot)
2738
    self._iprot.readMessageEnd()
2739
    return
2740
 
3385 varun.gupt 2741
  def getCartsWithCouponCount(self, couponCode):
2742
    """
2743
    Returns count of Carts with given coupon applied
3431 rajveer 2744
 
3385 varun.gupt 2745
    Parameters:
2746
     - couponCode
2747
    """
2748
    self.send_getCartsWithCouponCount(couponCode)
2749
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2750
 
3385 varun.gupt 2751
  def send_getCartsWithCouponCount(self, couponCode):
2752
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2753
    args = getCartsWithCouponCount_args()
2754
    args.couponCode = couponCode
2755
    args.write(self._oprot)
2756
    self._oprot.writeMessageEnd()
2757
    self._oprot.trans.flush()
2758
 
2759
  def recv_getCartsWithCouponCount(self, ):
2760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2761
    if mtype == TMessageType.EXCEPTION:
2762
      x = TApplicationException()
2763
      x.read(self._iprot)
2764
      self._iprot.readMessageEnd()
2765
      raise x
2766
    result = getCartsWithCouponCount_result()
2767
    result.read(self._iprot)
2768
    self._iprot.readMessageEnd()
3431 rajveer 2769
    if result.success is not None:
3385 varun.gupt 2770
      return result.success
2771
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2772
 
3499 mandeep.dh 2773
  def increaseTrustLevel(self, userId, trustLevelDelta):
2774
    """
2775
    Updates COD trust level of a user
3385 varun.gupt 2776
 
3499 mandeep.dh 2777
    Parameters:
2778
     - userId
2779
     - trustLevelDelta
2780
    """
2781
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2782
 
2783
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2784
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2785
    args = increaseTrustLevel_args()
2786
    args.userId = userId
2787
    args.trustLevelDelta = trustLevelDelta
2788
    args.write(self._oprot)
2789
    self._oprot.writeMessageEnd()
2790
    self._oprot.trans.flush()
5407 amar.kumar 2791
  def getTrustLevel(self, userId):
2792
    """
2793
    Get trust level of a user
2794
 
2795
    Parameters:
2796
     - userId
2797
    """
2798
    self.send_getTrustLevel(userId)
2799
    return self.recv_getTrustLevel()
2800
 
2801
  def send_getTrustLevel(self, userId):
2802
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2803
    args = getTrustLevel_args()
2804
    args.userId = userId
2805
    args.write(self._oprot)
2806
    self._oprot.writeMessageEnd()
2807
    self._oprot.trans.flush()
2808
 
2809
  def recv_getTrustLevel(self, ):
2810
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2811
    if mtype == TMessageType.EXCEPTION:
2812
      x = TApplicationException()
2813
      x.read(self._iprot)
2814
      self._iprot.readMessageEnd()
2815
      raise x
2816
    result = getTrustLevel_result()
2817
    result.read(self._iprot)
2818
    self._iprot.readMessageEnd()
2819
    if result.success is not None:
2820
      return result.success
2821
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2822
 
4668 varun.gupt 2823
  def showCODOption(self, cartId, sourceId, pincode):
2824
    """
2825
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2826
 
4668 varun.gupt 2827
    Parameters:
2828
     - cartId
2829
     - sourceId
2830
     - pincode
2831
    """
2832
    self.send_showCODOption(cartId, sourceId, pincode)
2833
    return self.recv_showCODOption()
2834
 
2835
  def send_showCODOption(self, cartId, sourceId, pincode):
2836
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2837
    args = showCODOption_args()
2838
    args.cartId = cartId
2839
    args.sourceId = sourceId
2840
    args.pincode = pincode
2841
    args.write(self._oprot)
2842
    self._oprot.writeMessageEnd()
2843
    self._oprot.trans.flush()
2844
 
2845
  def recv_showCODOption(self, ):
2846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2847
    if mtype == TMessageType.EXCEPTION:
2848
      x = TApplicationException()
2849
      x.read(self._iprot)
2850
      self._iprot.readMessageEnd()
2851
      raise x
2852
    result = showCODOption_result()
2853
    result.read(self._iprot)
2854
    self._iprot.readMessageEnd()
2855
    if result.success is not None:
2856
      return result.success
2857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2858
 
5623 anupam.sin 2859
  def getUserEmails(self, startDate, endDate):
2860
    """
2861
    Get email addresses for users activated within a given date range
4668 varun.gupt 2862
 
5623 anupam.sin 2863
    Parameters:
2864
     - startDate
2865
     - endDate
2866
    """
2867
    self.send_getUserEmails(startDate, endDate)
2868
    return self.recv_getUserEmails()
2869
 
2870
  def send_getUserEmails(self, startDate, endDate):
2871
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2872
    args = getUserEmails_args()
2873
    args.startDate = startDate
2874
    args.endDate = endDate
2875
    args.write(self._oprot)
2876
    self._oprot.writeMessageEnd()
2877
    self._oprot.trans.flush()
2878
 
2879
  def recv_getUserEmails(self, ):
2880
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2881
    if mtype == TMessageType.EXCEPTION:
2882
      x = TApplicationException()
2883
      x.read(self._iprot)
2884
      self._iprot.readMessageEnd()
2885
      raise x
2886
    result = getUserEmails_result()
2887
    result.read(self._iprot)
2888
    self._iprot.readMessageEnd()
2889
    if result.success is not None:
2890
      return result.success
2891
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2892
 
9299 kshitij.so 2893
  def insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 2894
    """
2895
    Mark a cart lineitem as insured. Returns true/false.
2896
 
2897
    Parameters:
2898
     - itemId
2899
     - cartId
2900
     - toInsure
9299 kshitij.so 2901
     - insurerType
6903 anupam.sin 2902
    """
9299 kshitij.so 2903
    self.send_insureItem(itemId, cartId, toInsure, insurerType)
6903 anupam.sin 2904
    return self.recv_insureItem()
2905
 
9299 kshitij.so 2906
  def send_insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 2907
    self._oprot.writeMessageBegin('insureItem', TMessageType.CALL, self._seqid)
2908
    args = insureItem_args()
2909
    args.itemId = itemId
2910
    args.cartId = cartId
2911
    args.toInsure = toInsure
9299 kshitij.so 2912
    args.insurerType = insurerType
6903 anupam.sin 2913
    args.write(self._oprot)
2914
    self._oprot.writeMessageEnd()
2915
    self._oprot.trans.flush()
2916
 
2917
  def recv_insureItem(self, ):
2918
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2919
    if mtype == TMessageType.EXCEPTION:
2920
      x = TApplicationException()
2921
      x.read(self._iprot)
2922
      self._iprot.readMessageEnd()
2923
      raise x
2924
    result = insureItem_result()
2925
    result.read(self._iprot)
2926
    self._iprot.readMessageEnd()
2927
    if result.success is not None:
2928
      return result.success
2929
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insureItem failed: unknown result");
2930
 
2931
  def cancelInsurance(self, cartId):
2932
    """
2933
    Cancel insurance for all items in the cart
2934
 
2935
    Parameters:
2936
     - cartId
2937
    """
2938
    self.send_cancelInsurance(cartId)
2939
    return self.recv_cancelInsurance()
2940
 
2941
  def send_cancelInsurance(self, cartId):
2942
    self._oprot.writeMessageBegin('cancelInsurance', TMessageType.CALL, self._seqid)
2943
    args = cancelInsurance_args()
2944
    args.cartId = cartId
2945
    args.write(self._oprot)
2946
    self._oprot.writeMessageEnd()
2947
    self._oprot.trans.flush()
2948
 
2949
  def recv_cancelInsurance(self, ):
2950
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2951
    if mtype == TMessageType.EXCEPTION:
2952
      x = TApplicationException()
2953
      x.read(self._iprot)
2954
      self._iprot.readMessageEnd()
2955
      raise x
2956
    result = cancelInsurance_result()
2957
    result.read(self._iprot)
2958
    self._iprot.readMessageEnd()
2959
    if result.success is not None:
2960
      return result.success
2961
    raise TApplicationException(TApplicationException.MISSING_RESULT, "cancelInsurance failed: unknown result");
2962
 
2963
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2964
    """
2965
    Stores insurance specific details like date of birth and guardianName
2966
 
2967
    Parameters:
2968
     - addressId
2969
     - dob
2970
     - guardianName
2971
    """
2972
    self.send_storeInsuranceSpecificDetails(addressId, dob, guardianName)
2973
    return self.recv_storeInsuranceSpecificDetails()
2974
 
2975
  def send_storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2976
    self._oprot.writeMessageBegin('storeInsuranceSpecificDetails', TMessageType.CALL, self._seqid)
2977
    args = storeInsuranceSpecificDetails_args()
2978
    args.addressId = addressId
2979
    args.dob = dob
2980
    args.guardianName = guardianName
2981
    args.write(self._oprot)
2982
    self._oprot.writeMessageEnd()
2983
    self._oprot.trans.flush()
2984
 
2985
  def recv_storeInsuranceSpecificDetails(self, ):
2986
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2987
    if mtype == TMessageType.EXCEPTION:
2988
      x = TApplicationException()
2989
      x.read(self._iprot)
2990
      self._iprot.readMessageEnd()
2991
      raise x
2992
    result = storeInsuranceSpecificDetails_result()
2993
    result.read(self._iprot)
2994
    self._iprot.readMessageEnd()
2995
    if result.success is not None:
2996
      return result.success
2997
    raise TApplicationException(TApplicationException.MISSING_RESULT, "storeInsuranceSpecificDetails failed: unknown result");
2998
 
2999
  def isInsuranceDetailPresent(self, addressId):
3000
    """
3001
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
3002
 
3003
    Parameters:
3004
     - addressId
3005
    """
3006
    self.send_isInsuranceDetailPresent(addressId)
3007
    return self.recv_isInsuranceDetailPresent()
3008
 
3009
  def send_isInsuranceDetailPresent(self, addressId):
3010
    self._oprot.writeMessageBegin('isInsuranceDetailPresent', TMessageType.CALL, self._seqid)
3011
    args = isInsuranceDetailPresent_args()
3012
    args.addressId = addressId
3013
    args.write(self._oprot)
3014
    self._oprot.writeMessageEnd()
3015
    self._oprot.trans.flush()
3016
 
3017
  def recv_isInsuranceDetailPresent(self, ):
3018
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3019
    if mtype == TMessageType.EXCEPTION:
3020
      x = TApplicationException()
3021
      x.read(self._iprot)
3022
      self._iprot.readMessageEnd()
3023
      raise x
3024
    result = isInsuranceDetailPresent_result()
3025
    result.read(self._iprot)
3026
    self._iprot.readMessageEnd()
3027
    if result.success is not None:
3028
      return result.success
3029
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
3030
 
9791 rajveer 3031
  def getProductsAddedToCart(self, startDate, endDate):
6821 amar.kumar 3032
    """
9791 rajveer 3033
    Returns list of item ids which added to cart from startDate to endDate
5623 anupam.sin 3034
 
6821 amar.kumar 3035
    Parameters:
3036
     - startDate
3037
     - endDate
3038
    """
9791 rajveer 3039
    self.send_getProductsAddedToCart(startDate, endDate)
3040
    return self.recv_getProductsAddedToCart()
6821 amar.kumar 3041
 
9791 rajveer 3042
  def send_getProductsAddedToCart(self, startDate, endDate):
3043
    self._oprot.writeMessageBegin('getProductsAddedToCart', TMessageType.CALL, self._seqid)
3044
    args = getProductsAddedToCart_args()
6821 amar.kumar 3045
    args.startDate = startDate
3046
    args.endDate = endDate
3047
    args.write(self._oprot)
3048
    self._oprot.writeMessageEnd()
3049
    self._oprot.trans.flush()
3050
 
9791 rajveer 3051
  def recv_getProductsAddedToCart(self, ):
6821 amar.kumar 3052
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3053
    if mtype == TMessageType.EXCEPTION:
3054
      x = TApplicationException()
3055
      x.read(self._iprot)
3056
      self._iprot.readMessageEnd()
3057
      raise x
9791 rajveer 3058
    result = getProductsAddedToCart_result()
6821 amar.kumar 3059
    result.read(self._iprot)
3060
    self._iprot.readMessageEnd()
3061
    if result.success is not None:
3062
      return result.success
9791 rajveer 3063
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
6821 amar.kumar 3064
 
3065
 
3376 rajveer 3066
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 3067
  def __init__(self, handler):
3376 rajveer 3068
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 3069
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3070
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 3071
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 3072
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 3073
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 3074
    self._processMap["createUser"] = Processor.process_createUser
3075
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 3076
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3077
    self._processMap["userExists"] = Processor.process_userExists
3078
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3079
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3080
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3081
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3082
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3083
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3084
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3085
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3086
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3087
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3088
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3089
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3090
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3091
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3092
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 3093
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 3094
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3095
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3096
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3097
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3098
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3099
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3100
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3101
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3102
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3103
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3104
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3105
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3106
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3107
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3108
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3109
    self._processMap["getCart"] = Processor.process_getCart
3110
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3111
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3112
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3113
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 3114
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 3115
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3116
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3117
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3118
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3119
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3120
    self._processMap["validateCart"] = Processor.process_validateCart
3121
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3122
    self._processMap["checkOut"] = Processor.process_checkOut
3123
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3124
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3125
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2981 rajveer 3126
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3127
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3128
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3129
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3130
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3131
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3132
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 3133
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 3134
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 3135
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
6903 anupam.sin 3136
    self._processMap["insureItem"] = Processor.process_insureItem
3137
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3138
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3139
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
9791 rajveer 3140
    self._processMap["getProductsAddedToCart"] = Processor.process_getProductsAddedToCart
94 ashish 3141
 
3142
  def process(self, iprot, oprot):
3143
    (name, type, seqid) = iprot.readMessageBegin()
3144
    if name not in self._processMap:
3145
      iprot.skip(TType.STRUCT)
3146
      iprot.readMessageEnd()
3147
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3148
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3149
      x.write(oprot)
3150
      oprot.writeMessageEnd()
3151
      oprot.trans.flush()
3152
      return
3153
    else:
3154
      self._processMap[name](self, seqid, iprot, oprot)
3155
    return True
3156
 
559 chandransh 3157
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3158
    args = createAnonymousUser_args()
94 ashish 3159
    args.read(iprot)
3160
    iprot.readMessageEnd()
559 chandransh 3161
    result = createAnonymousUser_result()
94 ashish 3162
    try:
559 chandransh 3163
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3164
    except UserContextException, ucex:
3165
      result.ucex = ucex
3166
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3167
    result.write(oprot)
3168
    oprot.writeMessageEnd()
3169
    oprot.trans.flush()
3170
 
559 chandransh 3171
  def process_getUserById(self, seqid, iprot, oprot):
3172
    args = getUserById_args()
94 ashish 3173
    args.read(iprot)
3174
    iprot.readMessageEnd()
559 chandransh 3175
    result = getUserById_result()
94 ashish 3176
    try:
559 chandransh 3177
      result.success = self._handler.getUserById(args.userId)
3178
    except UserContextException, ucex:
3179
      result.ucex = ucex
3180
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3181
    result.write(oprot)
3182
    oprot.writeMessageEnd()
3183
    oprot.trans.flush()
3184
 
5326 rajveer 3185
  def process_getUserByCartId(self, seqid, iprot, oprot):
3186
    args = getUserByCartId_args()
3187
    args.read(iprot)
3188
    iprot.readMessageEnd()
3189
    result = getUserByCartId_result()
3190
    try:
3191
      result.success = self._handler.getUserByCartId(args.cartId)
3192
    except UserContextException, ucex:
3193
      result.ucex = ucex
3194
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3195
    result.write(oprot)
3196
    oprot.writeMessageEnd()
3197
    oprot.trans.flush()
3198
 
1491 vikas 3199
  def process_getUserByEmail(self, seqid, iprot, oprot):
3200
    args = getUserByEmail_args()
3201
    args.read(iprot)
3202
    iprot.readMessageEnd()
3203
    result = getUserByEmail_result()
3204
    try:
3205
      result.success = self._handler.getUserByEmail(args.email)
3206
    except UserContextException, ucex:
3207
      result.ucex = ucex
3208
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3209
    result.write(oprot)
3210
    oprot.writeMessageEnd()
3211
    oprot.trans.flush()
3212
 
3032 mandeep.dh 3213
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3214
    args = getUserByMobileNumber_args()
3215
    args.read(iprot)
3216
    iprot.readMessageEnd()
3217
    result = getUserByMobileNumber_result()
3218
    try:
3219
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3220
    except UserContextException, ucex:
3221
      result.ucex = ucex
3222
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3223
    result.write(oprot)
3224
    oprot.writeMessageEnd()
3225
    oprot.trans.flush()
3226
 
559 chandransh 3227
  def process_createUser(self, seqid, iprot, oprot):
3228
    args = createUser_args()
94 ashish 3229
    args.read(iprot)
3230
    iprot.readMessageEnd()
559 chandransh 3231
    result = createUser_result()
94 ashish 3232
    try:
559 chandransh 3233
      result.success = self._handler.createUser(args.user)
3234
    except UserContextException, ucex:
3235
      result.ucex = ucex
3236
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3237
    result.write(oprot)
3238
    oprot.writeMessageEnd()
3239
    oprot.trans.flush()
3240
 
559 chandransh 3241
  def process_updateUser(self, seqid, iprot, oprot):
3242
    args = updateUser_args()
94 ashish 3243
    args.read(iprot)
3244
    iprot.readMessageEnd()
559 chandransh 3245
    result = updateUser_result()
94 ashish 3246
    try:
559 chandransh 3247
      result.success = self._handler.updateUser(args.user)
3248
    except UserContextException, ucex:
3249
      result.ucex = ucex
3250
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3251
    result.write(oprot)
3252
    oprot.writeMessageEnd()
3253
    oprot.trans.flush()
3254
 
122 ashish 3255
  def process_authenticateUser(self, seqid, iprot, oprot):
3256
    args = authenticateUser_args()
3257
    args.read(iprot)
3258
    iprot.readMessageEnd()
3259
    result = authenticateUser_result()
3260
    try:
559 chandransh 3261
      result.success = self._handler.authenticateUser(args.email, args.password)
3262
    except AuthenticationException, auex:
3263
      result.auex = auex
122 ashish 3264
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3265
    result.write(oprot)
3266
    oprot.writeMessageEnd()
3267
    oprot.trans.flush()
3268
 
94 ashish 3269
  def process_userExists(self, seqid, iprot, oprot):
3270
    args = userExists_args()
3271
    args.read(iprot)
3272
    iprot.readMessageEnd()
3273
    result = userExists_result()
3274
    try:
3275
      result.success = self._handler.userExists(args.email)
3276
    except UserContextException, ucx:
3277
      result.ucx = ucx
3278
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3279
    result.write(oprot)
3280
    oprot.writeMessageEnd()
3281
    oprot.trans.flush()
3282
 
3283
  def process_addAddressForUser(self, seqid, iprot, oprot):
3284
    args = addAddressForUser_args()
3285
    args.read(iprot)
3286
    iprot.readMessageEnd()
3287
    result = addAddressForUser_result()
3288
    try:
567 rajveer 3289
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3290
    except UserContextException, ucx:
3291
      result.ucx = ucx
3292
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3293
    result.write(oprot)
3294
    oprot.writeMessageEnd()
3295
    oprot.trans.flush()
3296
 
3297
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3298
    args = removeAddressForUser_args()
3299
    args.read(iprot)
3300
    iprot.readMessageEnd()
3301
    result = removeAddressForUser_result()
3302
    try:
3303
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3304
    except UserContextException, ucx:
3305
      result.ucx = ucx
3306
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3307
    result.write(oprot)
3308
    oprot.writeMessageEnd()
3309
    oprot.trans.flush()
3310
 
3311
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3312
    args = setUserAsLoggedIn_args()
3313
    args.read(iprot)
3314
    iprot.readMessageEnd()
3315
    result = setUserAsLoggedIn_result()
3316
    try:
3317
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3318
    except UserContextException, ucx:
3319
      result.ucx = ucx
3320
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3321
    result.write(oprot)
3322
    oprot.writeMessageEnd()
3323
    oprot.trans.flush()
3324
 
3325
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3326
    args = setUserAsLoggedOut_args()
3327
    args.read(iprot)
3328
    iprot.readMessageEnd()
3329
    result = setUserAsLoggedOut_result()
3330
    try:
3331
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3332
    except UserContextException, ucx:
3333
      result.ucx = ucx
3334
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3335
    result.write(oprot)
3336
    oprot.writeMessageEnd()
3337
    oprot.trans.flush()
3338
 
504 rajveer 3339
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3340
    args = setDefaultAddress_args()
3341
    args.read(iprot)
3342
    iprot.readMessageEnd()
3343
    result = setDefaultAddress_result()
3344
    try:
3345
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3346
    except UserContextException, ucx:
3347
      result.ucx = ucx
3348
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3349
    result.write(oprot)
3350
    oprot.writeMessageEnd()
3351
    oprot.trans.flush()
3352
 
94 ashish 3353
  def process_updatePassword(self, seqid, iprot, oprot):
3354
    args = updatePassword_args()
3355
    args.read(iprot)
3356
    iprot.readMessageEnd()
3357
    result = updatePassword_result()
3358
    try:
594 rajveer 3359
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3360
    except UserContextException, ucx:
3361
      result.ucx = ucx
3362
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3363
    result.write(oprot)
3364
    oprot.writeMessageEnd()
3365
    oprot.trans.flush()
3366
 
581 rajveer 3367
  def process_forgotPassword(self, seqid, iprot, oprot):
3368
    args = forgotPassword_args()
3369
    args.read(iprot)
3370
    iprot.readMessageEnd()
3371
    result = forgotPassword_result()
3372
    try:
884 rajveer 3373
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3374
    except UserContextException, ucx:
3375
      result.ucx = ucx
3376
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
594 rajveer 3381
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3382
    args = getAllAddressesForUser_args()
3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
3385
    result = getAllAddressesForUser_result()
3386
    try:
3387
      result.success = self._handler.getAllAddressesForUser(args.userId)
3388
    except UserContextException, ucx:
3389
      result.ucx = ucx
3390
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3391
    result.write(oprot)
3392
    oprot.writeMessageEnd()
3393
    oprot.trans.flush()
3394
 
1894 vikas 3395
  def process_getAddressById(self, seqid, iprot, oprot):
3396
    args = getAddressById_args()
3397
    args.read(iprot)
3398
    iprot.readMessageEnd()
3399
    result = getAddressById_result()
3400
    try:
3401
      result.success = self._handler.getAddressById(args.addressId)
3402
    except UserContextException, ucx:
3403
      result.ucx = ucx
3404
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3405
    result.write(oprot)
3406
    oprot.writeMessageEnd()
3407
    oprot.trans.flush()
3408
 
594 rajveer 3409
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3410
    args = getDefaultAddressId_args()
3411
    args.read(iprot)
3412
    iprot.readMessageEnd()
3413
    result = getDefaultAddressId_result()
3414
    try:
3415
      result.success = self._handler.getDefaultAddressId(args.userId)
3416
    except UserContextException, ucx:
3417
      result.ucx = ucx
3418
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3419
    result.write(oprot)
3420
    oprot.writeMessageEnd()
3421
    oprot.trans.flush()
3422
 
785 rajveer 3423
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3424
    args = getDefaultPincode_args()
3425
    args.read(iprot)
3426
    iprot.readMessageEnd()
3427
    result = getDefaultPincode_result()
3428
    try:
3429
      result.success = self._handler.getDefaultPincode(args.userId)
3430
    except UserContextException, ucx:
3431
      result.ucx = ucx
3432
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3433
    result.write(oprot)
3434
    oprot.writeMessageEnd()
3435
    oprot.trans.flush()
3436
 
1274 varun.gupt 3437
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3438
    args = saveUserCommunication_args()
3439
    args.read(iprot)
3440
    iprot.readMessageEnd()
3441
    result = saveUserCommunication_result()
3442
    try:
3443
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3444
    except UserCommunicationException, ucx:
3445
      result.ucx = ucx
3446
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3447
    result.write(oprot)
3448
    oprot.writeMessageEnd()
3449
    oprot.trans.flush()
3450
 
1590 varun.gupt 3451
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3452
    args = getUserCommunicationById_args()
3453
    args.read(iprot)
3454
    iprot.readMessageEnd()
3455
    result = getUserCommunicationById_result()
3456
    try:
3457
      result.success = self._handler.getUserCommunicationById(args.id)
3458
    except UserCommunicationException, ucx:
3459
      result.ucx = ucx
3460
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3461
    result.write(oprot)
3462
    oprot.writeMessageEnd()
3463
    oprot.trans.flush()
3464
 
3465
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3466
    args = getUserCommunicationByUser_args()
3467
    args.read(iprot)
3468
    iprot.readMessageEnd()
3469
    result = getUserCommunicationByUser_result()
3470
    try:
3471
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3472
    except UserCommunicationException, ucx:
3473
      result.ucx = ucx
3474
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3475
    result.write(oprot)
3476
    oprot.writeMessageEnd()
3477
    oprot.trans.flush()
3478
 
3479
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3480
    args = getAllUserCommunications_args()
3481
    args.read(iprot)
3482
    iprot.readMessageEnd()
3483
    result = getAllUserCommunications_result()
3484
    try:
3485
      result.success = self._handler.getAllUserCommunications()
3486
    except UserCommunicationException, ucx:
3487
      result.ucx = ucx
3488
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3489
    result.write(oprot)
3490
    oprot.writeMessageEnd()
3491
    oprot.trans.flush()
3492
 
5407 amar.kumar 3493
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3494
    args = removeUserCommunication_args()
3495
    args.read(iprot)
3496
    iprot.readMessageEnd()
3497
    result = removeUserCommunication_result()
3498
    try:
3499
      self._handler.removeUserCommunication(args.id)
3500
    except UserCommunicationException, ucx:
3501
      result.ucx = ucx
3502
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3503
    result.write(oprot)
3504
    oprot.writeMessageEnd()
3505
    oprot.trans.flush()
3506
 
1845 vikas 3507
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3508
    args = createMasterAffiliate_args()
3509
    args.read(iprot)
3510
    iprot.readMessageEnd()
3511
    result = createMasterAffiliate_result()
3512
    try:
1859 vikas 3513
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3514
    except UserAffiliateException, utx:
1845 vikas 3515
      result.utx = utx
3516
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3517
    result.write(oprot)
3518
    oprot.writeMessageEnd()
3519
    oprot.trans.flush()
3520
 
1899 vikas 3521
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3522
    args = getAllMasterAffiliates_args()
3523
    args.read(iprot)
3524
    iprot.readMessageEnd()
3525
    result = getAllMasterAffiliates_result()
3526
    try:
3527
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3528
    except UserAffiliateException, utx:
1899 vikas 3529
      result.utx = utx
3530
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3531
    result.write(oprot)
3532
    oprot.writeMessageEnd()
3533
    oprot.trans.flush()
3534
 
1845 vikas 3535
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3536
    args = getMasterAffiliateById_args()
3537
    args.read(iprot)
3538
    iprot.readMessageEnd()
3539
    result = getMasterAffiliateById_result()
3540
    try:
3541
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3542
    except UserAffiliateException, utx:
1845 vikas 3543
      result.utx = utx
3544
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3545
    result.write(oprot)
3546
    oprot.writeMessageEnd()
3547
    oprot.trans.flush()
3548
 
3549
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3550
    args = getMasterAffiliateByName_args()
3551
    args.read(iprot)
3552
    iprot.readMessageEnd()
3553
    result = getMasterAffiliateByName_result()
3554
    try:
3555
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3556
    except UserAffiliateException, utx:
1845 vikas 3557
      result.utx = utx
3558
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3559
    result.write(oprot)
3560
    oprot.writeMessageEnd()
3561
    oprot.trans.flush()
3562
 
3563
  def process_createAffiliate(self, seqid, iprot, oprot):
3564
    args = createAffiliate_args()
3565
    args.read(iprot)
3566
    iprot.readMessageEnd()
3567
    result = createAffiliate_result()
3568
    try:
1859 vikas 3569
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3570
    except UserAffiliateException, utx:
1845 vikas 3571
      result.utx = utx
3572
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3573
    result.write(oprot)
3574
    oprot.writeMessageEnd()
3575
    oprot.trans.flush()
3576
 
3577
  def process_getAffiliateById(self, seqid, iprot, oprot):
3578
    args = getAffiliateById_args()
3579
    args.read(iprot)
3580
    iprot.readMessageEnd()
3581
    result = getAffiliateById_result()
3582
    try:
3583
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3584
    except UserAffiliateException, utx:
1845 vikas 3585
      result.utx = utx
3586
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3587
    result.write(oprot)
3588
    oprot.writeMessageEnd()
3589
    oprot.trans.flush()
3590
 
3591
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3592
    args = getAffiliateByName_args()
3593
    args.read(iprot)
3594
    iprot.readMessageEnd()
3595
    result = getAffiliateByName_result()
3596
    try:
3597
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3598
    except UserAffiliateException, utx:
1845 vikas 3599
      result.utx = utx
3600
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_getTrackerById(self, seqid, iprot, oprot):
3606
    args = getTrackerById_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = getTrackerById_result()
3610
    try:
1996 vikas 3611
      result.success = self._handler.getTrackerById(args.id)
3612
    except UserAffiliateException, utx:
1845 vikas 3613
      result.utx = utx
3614
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3615
    result.write(oprot)
3616
    oprot.writeMessageEnd()
3617
    oprot.trans.flush()
3618
 
1996 vikas 3619
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3620
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3621
    args.read(iprot)
3622
    iprot.readMessageEnd()
1996 vikas 3623
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3624
    try:
1996 vikas 3625
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3626
    except UserAffiliateException, utx:
1845 vikas 3627
      result.utx = utx
1996 vikas 3628
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3629
    result.write(oprot)
3630
    oprot.writeMessageEnd()
3631
    oprot.trans.flush()
3632
 
3633
  def process_addTrackLog(self, seqid, iprot, oprot):
3634
    args = addTrackLog_args()
3635
    args.read(iprot)
3636
    iprot.readMessageEnd()
3637
    result = addTrackLog_result()
3638
    try:
1996 vikas 3639
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3640
    except UserAffiliateException, utx:
1845 vikas 3641
      result.utx = utx
3642
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3643
    result.write(oprot)
3644
    oprot.writeMessageEnd()
3645
    oprot.trans.flush()
3646
 
3647
  def process_getTrackLogById(self, seqid, iprot, oprot):
3648
    args = getTrackLogById_args()
3649
    args.read(iprot)
3650
    iprot.readMessageEnd()
3651
    result = getTrackLogById_result()
3652
    try:
3653
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3654
    except UserAffiliateException, utx:
1845 vikas 3655
      result.utx = utx
3656
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3657
    result.write(oprot)
3658
    oprot.writeMessageEnd()
3659
    oprot.trans.flush()
3660
 
1996 vikas 3661
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3662
    args = getTrackLogsByAffiliate_args()
1845 vikas 3663
    args.read(iprot)
3664
    iprot.readMessageEnd()
1996 vikas 3665
    result = getTrackLogsByAffiliate_result()
1845 vikas 3666
    try:
3293 vikas 3667
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3668
    except UserAffiliateException, utx:
1845 vikas 3669
      result.utx = utx
1996 vikas 3670
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
3674
 
3675
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3676
    args = getTrackLogsByUser_args()
3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
3679
    result = getTrackLogsByUser_result()
3680
    try:
3681
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3682
    except UserAffiliateException, utx:
1845 vikas 3683
      result.utx = utx
3684
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
3688
 
3689
  def process_getTrackLogs(self, seqid, iprot, oprot):
3690
    args = getTrackLogs_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = getTrackLogs_result()
3694
    try:
1996 vikas 3695
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3696
    except UserAffiliateException, utx:
1845 vikas 3697
      result.utx = utx
3698
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3699
    result.write(oprot)
3700
    oprot.writeMessageEnd()
3701
    oprot.trans.flush()
3702
 
559 chandransh 3703
  def process_getCurrentCart(self, seqid, iprot, oprot):
3704
    args = getCurrentCart_args()
94 ashish 3705
    args.read(iprot)
3706
    iprot.readMessageEnd()
559 chandransh 3707
    result = getCurrentCart_result()
94 ashish 3708
    try:
559 chandransh 3709
      result.success = self._handler.getCurrentCart(args.userId)
3710
    except ShoppingCartException, scx:
3711
      result.scx = scx
3712
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3713
    result.write(oprot)
3714
    oprot.writeMessageEnd()
3715
    oprot.trans.flush()
3716
 
559 chandransh 3717
  def process_getCart(self, seqid, iprot, oprot):
3718
    args = getCart_args()
94 ashish 3719
    args.read(iprot)
3720
    iprot.readMessageEnd()
559 chandransh 3721
    result = getCart_result()
94 ashish 3722
    try:
559 chandransh 3723
      result.success = self._handler.getCart(args.cartId)
3724
    except ShoppingCartException, scx:
3725
      result.scx = scx
3726
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3727
    result.write(oprot)
3728
    oprot.writeMessageEnd()
3729
    oprot.trans.flush()
3730
 
559 chandransh 3731
  def process_getCartsByTime(self, seqid, iprot, oprot):
3732
    args = getCartsByTime_args()
94 ashish 3733
    args.read(iprot)
3734
    iprot.readMessageEnd()
559 chandransh 3735
    result = getCartsByTime_result()
94 ashish 3736
    try:
559 chandransh 3737
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3738
    except ShoppingCartException, scx:
3739
      result.scx = scx
3740
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3741
    result.write(oprot)
3742
    oprot.writeMessageEnd()
3743
    oprot.trans.flush()
3744
 
559 chandransh 3745
  def process_addItemToCart(self, seqid, iprot, oprot):
3746
    args = addItemToCart_args()
130 ashish 3747
    args.read(iprot)
3748
    iprot.readMessageEnd()
559 chandransh 3749
    result = addItemToCart_result()
130 ashish 3750
    try:
3557 rajveer 3751
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3752
    except ShoppingCartException, scx:
3753
      result.scx = scx
3754
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3755
    result.write(oprot)
3756
    oprot.writeMessageEnd()
3757
    oprot.trans.flush()
3758
 
559 chandransh 3759
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3760
    args = deleteItemFromCart_args()
3761
    args.read(iprot)
3762
    iprot.readMessageEnd()
3763
    result = deleteItemFromCart_result()
3764
    try:
3765
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3766
    except ShoppingCartException, scx:
3767
      result.scx = scx
3768
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3769
    result.write(oprot)
3770
    oprot.writeMessageEnd()
3771
    oprot.trans.flush()
130 ashish 3772
 
559 chandransh 3773
  def process_addAddressToCart(self, seqid, iprot, oprot):
3774
    args = addAddressToCart_args()
3775
    args.read(iprot)
3776
    iprot.readMessageEnd()
3777
    result = addAddressToCart_result()
575 chandransh 3778
    try:
3779
      self._handler.addAddressToCart(args.cartId, args.addressId)
3780
    except ShoppingCartException, scx:
3781
      result.scx = scx
559 chandransh 3782
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3783
    result.write(oprot)
3784
    oprot.writeMessageEnd()
3785
    oprot.trans.flush()
3786
 
5553 rajveer 3787
  def process_addStoreToCart(self, seqid, iprot, oprot):
3788
    args = addStoreToCart_args()
3789
    args.read(iprot)
3790
    iprot.readMessageEnd()
3791
    result = addStoreToCart_result()
3792
    try:
3793
      self._handler.addStoreToCart(args.cartId, args.storeId)
3794
    except ShoppingCartException, scx:
3795
      result.scx = scx
3796
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3797
    result.write(oprot)
3798
    oprot.writeMessageEnd()
3799
    oprot.trans.flush()
3800
 
1976 varun.gupt 3801
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3802
    args = applyCouponToCart_args()
3803
    args.read(iprot)
3804
    iprot.readMessageEnd()
3805
    result = applyCouponToCart_result()
3806
    try:
6922 anupam.sin 3807
      self._handler.applyCouponToCart(args.cart, args.couponCode)
1976 varun.gupt 3808
    except ShoppingCartException, scx:
3809
      result.scx = scx
3810
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3811
    result.write(oprot)
3812
    oprot.writeMessageEnd()
3813
    oprot.trans.flush()
3814
 
3815
  def process_removeCoupon(self, seqid, iprot, oprot):
3816
    args = removeCoupon_args()
3817
    args.read(iprot)
3818
    iprot.readMessageEnd()
3819
    result = removeCoupon_result()
3820
    try:
3821
      self._handler.removeCoupon(args.cartId)
3822
    except ShoppingCartException, scx:
3823
      result.scx = scx
3824
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3825
    result.write(oprot)
3826
    oprot.writeMessageEnd()
3827
    oprot.trans.flush()
3828
 
3554 varun.gupt 3829
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3830
    args = deleteDiscountsFromCart_args()
3831
    args.read(iprot)
3832
    iprot.readMessageEnd()
3833
    result = deleteDiscountsFromCart_result()
3834
    try:
3835
      self._handler.deleteDiscountsFromCart(args.cartId)
3836
    except ShoppingCartException, scx:
3837
      result.scx = scx
3838
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3839
    result.write(oprot)
3840
    oprot.writeMessageEnd()
3841
    oprot.trans.flush()
3842
 
3843
  def process_saveDiscounts(self, seqid, iprot, oprot):
3844
    args = saveDiscounts_args()
3845
    args.read(iprot)
3846
    iprot.readMessageEnd()
3847
    result = saveDiscounts_result()
3848
    try:
3849
      self._handler.saveDiscounts(args.discounts)
3850
    except ShoppingCartException, scx:
3851
      result.scx = scx
3852
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3853
    result.write(oprot)
3854
    oprot.writeMessageEnd()
3855
    oprot.trans.flush()
3856
 
690 chandransh 3857
  def process_createOrders(self, seqid, iprot, oprot):
3858
    args = createOrders_args()
559 chandransh 3859
    args.read(iprot)
3860
    iprot.readMessageEnd()
690 chandransh 3861
    result = createOrders_result()
559 chandransh 3862
    try:
11526 amit.gupta 3863
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId, args.orderSource)
559 chandransh 3864
    except ShoppingCartException, scx:
3865
      result.scx = scx
690 chandransh 3866
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3867
    result.write(oprot)
3868
    oprot.writeMessageEnd()
3869
    oprot.trans.flush()
3870
 
3871
  def process_validateCart(self, seqid, iprot, oprot):
3872
    args = validateCart_args()
3873
    args.read(iprot)
3874
    iprot.readMessageEnd()
3875
    result = validateCart_result()
575 chandransh 3876
    try:
3557 rajveer 3877
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3878
    except ShoppingCartException, scex:
3879
      result.scex = scex
559 chandransh 3880
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3881
    result.write(oprot)
3882
    oprot.writeMessageEnd()
3883
    oprot.trans.flush()
3884
 
690 chandransh 3885
  def process_mergeCart(self, seqid, iprot, oprot):
3886
    args = mergeCart_args()
575 chandransh 3887
    args.read(iprot)
3888
    iprot.readMessageEnd()
690 chandransh 3889
    result = mergeCart_result()
3890
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3891
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3892
    result.write(oprot)
3893
    oprot.writeMessageEnd()
3894
    oprot.trans.flush()
3895
 
3896
  def process_checkOut(self, seqid, iprot, oprot):
3897
    args = checkOut_args()
3898
    args.read(iprot)
3899
    iprot.readMessageEnd()
3900
    result = checkOut_result()
575 chandransh 3901
    try:
690 chandransh 3902
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3903
    except ShoppingCartException, scex:
3904
      result.scex = scex
690 chandransh 3905
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3906
    result.write(oprot)
3907
    oprot.writeMessageEnd()
3908
    oprot.trans.flush()
3909
 
690 chandransh 3910
  def process_resetCart(self, seqid, iprot, oprot):
3911
    args = resetCart_args()
559 chandransh 3912
    args.read(iprot)
3913
    iprot.readMessageEnd()
690 chandransh 3914
    result = resetCart_result()
3915
    try:
3916
      result.success = self._handler.resetCart(args.cartId, args.items)
3917
    except ShoppingCartException, scex:
3918
      result.scex = scex
3919
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3920
    result.write(oprot)
3921
    oprot.writeMessageEnd()
3922
    oprot.trans.flush()
3923
 
2981 rajveer 3924
  def process_getUserCount(self, seqid, iprot, oprot):
3925
    args = getUserCount_args()
559 chandransh 3926
    args.read(iprot)
3927
    iprot.readMessageEnd()
2981 rajveer 3928
    result = getUserCount_result()
3929
    result.success = self._handler.getUserCount(args.userType)
3930
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3931
    result.write(oprot)
3932
    oprot.writeMessageEnd()
3933
    oprot.trans.flush()
3934
 
2981 rajveer 3935
  def process_getAllUsers(self, seqid, iprot, oprot):
3936
    args = getAllUsers_args()
559 chandransh 3937
    args.read(iprot)
3938
    iprot.readMessageEnd()
2981 rajveer 3939
    result = getAllUsers_result()
3940
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3941
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3942
    result.write(oprot)
3943
    oprot.writeMessageEnd()
3944
    oprot.trans.flush()
3945
 
2981 rajveer 3946
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3947
    args = getMyResearchItems_args()
559 chandransh 3948
    args.read(iprot)
3949
    iprot.readMessageEnd()
2981 rajveer 3950
    result = getMyResearchItems_result()
559 chandransh 3951
    try:
2981 rajveer 3952
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3953
    except WidgetException, scx:
3954
      result.scx = scx
2981 rajveer 3955
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3956
    result.write(oprot)
3957
    oprot.writeMessageEnd()
3958
    oprot.trans.flush()
3959
 
2981 rajveer 3960
  def process_updateMyResearch(self, seqid, iprot, oprot):
3961
    args = updateMyResearch_args()
772 rajveer 3962
    args.read(iprot)
3963
    iprot.readMessageEnd()
2981 rajveer 3964
    result = updateMyResearch_result()
3965
    try:
3966
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3967
    except WidgetException, scx:
3968
      result.scx = scx
3969
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3970
    result.write(oprot)
3971
    oprot.writeMessageEnd()
3972
    oprot.trans.flush()
559 chandransh 3973
 
2981 rajveer 3974
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3975
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3976
    args.read(iprot)
3977
    iprot.readMessageEnd()
2981 rajveer 3978
    result = deleteItemFromMyResearch_result()
3979
    try:
3980
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3981
    except WidgetException, scx:
3982
      result.scx = scx
3983
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3984
    result.write(oprot)
3985
    oprot.writeMessageEnd()
3986
    oprot.trans.flush()
772 rajveer 3987
 
2981 rajveer 3988
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3989
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3990
    args.read(iprot)
3991
    iprot.readMessageEnd()
2981 rajveer 3992
    result = getBrowseHistoryItems_result()
3993
    try:
3994
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3995
    except WidgetException, scx:
3996
      result.scx = scx
3997
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3998
    result.write(oprot)
3999
    oprot.writeMessageEnd()
4000
    oprot.trans.flush()
1596 ankur.sing 4001
 
2981 rajveer 4002
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4003
    args = updateBrowseHistory_args()
2642 varun.gupt 4004
    args.read(iprot)
4005
    iprot.readMessageEnd()
2981 rajveer 4006
    result = updateBrowseHistory_result()
4007
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4008
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4009
    result.write(oprot)
4010
    oprot.writeMessageEnd()
4011
    oprot.trans.flush()
1673 ankur.sing 4012
 
3385 varun.gupt 4013
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4014
    args = getCartsWithCouponCount_args()
4015
    args.read(iprot)
4016
    iprot.readMessageEnd()
4017
    result = getCartsWithCouponCount_result()
4018
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4019
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4020
    result.write(oprot)
4021
    oprot.writeMessageEnd()
4022
    oprot.trans.flush()
2642 varun.gupt 4023
 
3499 mandeep.dh 4024
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4025
    args = increaseTrustLevel_args()
4026
    args.read(iprot)
4027
    iprot.readMessageEnd()
4028
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4029
    return
3385 varun.gupt 4030
 
5407 amar.kumar 4031
  def process_getTrustLevel(self, seqid, iprot, oprot):
4032
    args = getTrustLevel_args()
4033
    args.read(iprot)
4034
    iprot.readMessageEnd()
4035
    result = getTrustLevel_result()
4036
    result.success = self._handler.getTrustLevel(args.userId)
4037
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
4038
    result.write(oprot)
4039
    oprot.writeMessageEnd()
4040
    oprot.trans.flush()
4041
 
4668 varun.gupt 4042
  def process_showCODOption(self, seqid, iprot, oprot):
4043
    args = showCODOption_args()
4044
    args.read(iprot)
4045
    iprot.readMessageEnd()
4046
    result = showCODOption_result()
4047
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
4048
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
4049
    result.write(oprot)
4050
    oprot.writeMessageEnd()
4051
    oprot.trans.flush()
3499 mandeep.dh 4052
 
5623 anupam.sin 4053
  def process_getUserEmails(self, seqid, iprot, oprot):
4054
    args = getUserEmails_args()
4055
    args.read(iprot)
4056
    iprot.readMessageEnd()
4057
    result = getUserEmails_result()
4058
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
4059
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
4060
    result.write(oprot)
4061
    oprot.writeMessageEnd()
4062
    oprot.trans.flush()
4668 varun.gupt 4063
 
6903 anupam.sin 4064
  def process_insureItem(self, seqid, iprot, oprot):
4065
    args = insureItem_args()
4066
    args.read(iprot)
4067
    iprot.readMessageEnd()
4068
    result = insureItem_result()
9299 kshitij.so 4069
    result.success = self._handler.insureItem(args.itemId, args.cartId, args.toInsure, args.insurerType)
6903 anupam.sin 4070
    oprot.writeMessageBegin("insureItem", TMessageType.REPLY, seqid)
4071
    result.write(oprot)
4072
    oprot.writeMessageEnd()
4073
    oprot.trans.flush()
4074
 
4075
  def process_cancelInsurance(self, seqid, iprot, oprot):
4076
    args = cancelInsurance_args()
4077
    args.read(iprot)
4078
    iprot.readMessageEnd()
4079
    result = cancelInsurance_result()
4080
    result.success = self._handler.cancelInsurance(args.cartId)
4081
    oprot.writeMessageBegin("cancelInsurance", TMessageType.REPLY, seqid)
4082
    result.write(oprot)
4083
    oprot.writeMessageEnd()
4084
    oprot.trans.flush()
4085
 
4086
  def process_storeInsuranceSpecificDetails(self, seqid, iprot, oprot):
4087
    args = storeInsuranceSpecificDetails_args()
4088
    args.read(iprot)
4089
    iprot.readMessageEnd()
4090
    result = storeInsuranceSpecificDetails_result()
4091
    result.success = self._handler.storeInsuranceSpecificDetails(args.addressId, args.dob, args.guardianName)
4092
    oprot.writeMessageBegin("storeInsuranceSpecificDetails", TMessageType.REPLY, seqid)
4093
    result.write(oprot)
4094
    oprot.writeMessageEnd()
4095
    oprot.trans.flush()
4096
 
4097
  def process_isInsuranceDetailPresent(self, seqid, iprot, oprot):
4098
    args = isInsuranceDetailPresent_args()
4099
    args.read(iprot)
4100
    iprot.readMessageEnd()
4101
    result = isInsuranceDetailPresent_result()
4102
    result.success = self._handler.isInsuranceDetailPresent(args.addressId)
4103
    oprot.writeMessageBegin("isInsuranceDetailPresent", TMessageType.REPLY, seqid)
4104
    result.write(oprot)
4105
    oprot.writeMessageEnd()
4106
    oprot.trans.flush()
4107
 
9791 rajveer 4108
  def process_getProductsAddedToCart(self, seqid, iprot, oprot):
4109
    args = getProductsAddedToCart_args()
6821 amar.kumar 4110
    args.read(iprot)
4111
    iprot.readMessageEnd()
9791 rajveer 4112
    result = getProductsAddedToCart_result()
4113
    result.success = self._handler.getProductsAddedToCart(args.startDate, args.endDate)
4114
    oprot.writeMessageBegin("getProductsAddedToCart", TMessageType.REPLY, seqid)
6821 amar.kumar 4115
    result.write(oprot)
4116
    oprot.writeMessageEnd()
4117
    oprot.trans.flush()
5623 anupam.sin 4118
 
6821 amar.kumar 4119
 
94 ashish 4120
# HELPER FUNCTIONS AND STRUCTURES
4121
 
559 chandransh 4122
class createAnonymousUser_args:
94 ashish 4123
  """
4124
  Attributes:
559 chandransh 4125
   - jsessionId
94 ashish 4126
  """
4127
 
4128
  thrift_spec = (
4129
    None, # 0
559 chandransh 4130
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4131
  )
4132
 
559 chandransh 4133
  def __init__(self, jsessionId=None,):
4134
    self.jsessionId = jsessionId
94 ashish 4135
 
4136
  def read(self, iprot):
4137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4139
      return
4140
    iprot.readStructBegin()
4141
    while True:
4142
      (fname, ftype, fid) = iprot.readFieldBegin()
4143
      if ftype == TType.STOP:
4144
        break
4145
      if fid == 1:
559 chandransh 4146
        if ftype == TType.STRING:
4147
          self.jsessionId = iprot.readString();
94 ashish 4148
        else:
4149
          iprot.skip(ftype)
4150
      else:
4151
        iprot.skip(ftype)
4152
      iprot.readFieldEnd()
4153
    iprot.readStructEnd()
4154
 
4155
  def write(self, oprot):
4156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4158
      return
559 chandransh 4159
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4160
    if self.jsessionId is not None:
559 chandransh 4161
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4162
      oprot.writeString(self.jsessionId)
94 ashish 4163
      oprot.writeFieldEnd()
4164
    oprot.writeFieldStop()
4165
    oprot.writeStructEnd()
4166
 
3431 rajveer 4167
  def validate(self):
4168
    return
4169
 
4170
 
94 ashish 4171
  def __repr__(self):
4172
    L = ['%s=%r' % (key, value)
4173
      for key, value in self.__dict__.iteritems()]
4174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4175
 
4176
  def __eq__(self, other):
4177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4178
 
4179
  def __ne__(self, other):
4180
    return not (self == other)
4181
 
559 chandransh 4182
class createAnonymousUser_result:
94 ashish 4183
  """
4184
  Attributes:
4185
   - success
559 chandransh 4186
   - ucex
94 ashish 4187
  """
4188
 
4189
  thrift_spec = (
559 chandransh 4190
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4191
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4192
  )
4193
 
559 chandransh 4194
  def __init__(self, success=None, ucex=None,):
94 ashish 4195
    self.success = success
559 chandransh 4196
    self.ucex = ucex
94 ashish 4197
 
4198
  def read(self, iprot):
4199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4201
      return
4202
    iprot.readStructBegin()
4203
    while True:
4204
      (fname, ftype, fid) = iprot.readFieldBegin()
4205
      if ftype == TType.STOP:
4206
        break
4207
      if fid == 0:
4208
        if ftype == TType.STRUCT:
559 chandransh 4209
          self.success = User()
94 ashish 4210
          self.success.read(iprot)
4211
        else:
4212
          iprot.skip(ftype)
4213
      elif fid == 1:
4214
        if ftype == TType.STRUCT:
559 chandransh 4215
          self.ucex = UserContextException()
4216
          self.ucex.read(iprot)
94 ashish 4217
        else:
4218
          iprot.skip(ftype)
4219
      else:
4220
        iprot.skip(ftype)
4221
      iprot.readFieldEnd()
4222
    iprot.readStructEnd()
4223
 
4224
  def write(self, oprot):
4225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4227
      return
559 chandransh 4228
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4229
    if self.success is not None:
94 ashish 4230
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4231
      self.success.write(oprot)
4232
      oprot.writeFieldEnd()
3431 rajveer 4233
    if self.ucex is not None:
559 chandransh 4234
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4235
      self.ucex.write(oprot)
94 ashish 4236
      oprot.writeFieldEnd()
4237
    oprot.writeFieldStop()
4238
    oprot.writeStructEnd()
4239
 
3431 rajveer 4240
  def validate(self):
4241
    return
4242
 
4243
 
94 ashish 4244
  def __repr__(self):
4245
    L = ['%s=%r' % (key, value)
4246
      for key, value in self.__dict__.iteritems()]
4247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4248
 
4249
  def __eq__(self, other):
4250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4251
 
4252
  def __ne__(self, other):
4253
    return not (self == other)
4254
 
559 chandransh 4255
class getUserById_args:
94 ashish 4256
  """
4257
  Attributes:
4258
   - userId
4259
  """
4260
 
4261
  thrift_spec = (
4262
    None, # 0
4263
    (1, TType.I64, 'userId', None, None, ), # 1
4264
  )
4265
 
559 chandransh 4266
  def __init__(self, userId=None,):
94 ashish 4267
    self.userId = userId
4268
 
4269
  def read(self, iprot):
4270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4272
      return
4273
    iprot.readStructBegin()
4274
    while True:
4275
      (fname, ftype, fid) = iprot.readFieldBegin()
4276
      if ftype == TType.STOP:
4277
        break
4278
      if fid == 1:
4279
        if ftype == TType.I64:
4280
          self.userId = iprot.readI64();
4281
        else:
4282
          iprot.skip(ftype)
4283
      else:
4284
        iprot.skip(ftype)
4285
      iprot.readFieldEnd()
4286
    iprot.readStructEnd()
4287
 
4288
  def write(self, oprot):
4289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4291
      return
559 chandransh 4292
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4293
    if self.userId is not None:
94 ashish 4294
      oprot.writeFieldBegin('userId', TType.I64, 1)
4295
      oprot.writeI64(self.userId)
4296
      oprot.writeFieldEnd()
4297
    oprot.writeFieldStop()
4298
    oprot.writeStructEnd()
4299
 
3431 rajveer 4300
  def validate(self):
4301
    return
4302
 
4303
 
94 ashish 4304
  def __repr__(self):
4305
    L = ['%s=%r' % (key, value)
4306
      for key, value in self.__dict__.iteritems()]
4307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4308
 
4309
  def __eq__(self, other):
4310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4311
 
4312
  def __ne__(self, other):
4313
    return not (self == other)
4314
 
559 chandransh 4315
class getUserById_result:
94 ashish 4316
  """
4317
  Attributes:
4318
   - success
559 chandransh 4319
   - ucex
94 ashish 4320
  """
4321
 
4322
  thrift_spec = (
559 chandransh 4323
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4324
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4325
  )
4326
 
559 chandransh 4327
  def __init__(self, success=None, ucex=None,):
94 ashish 4328
    self.success = success
559 chandransh 4329
    self.ucex = ucex
94 ashish 4330
 
4331
  def read(self, iprot):
4332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4334
      return
4335
    iprot.readStructBegin()
4336
    while True:
4337
      (fname, ftype, fid) = iprot.readFieldBegin()
4338
      if ftype == TType.STOP:
4339
        break
4340
      if fid == 0:
4341
        if ftype == TType.STRUCT:
559 chandransh 4342
          self.success = User()
94 ashish 4343
          self.success.read(iprot)
4344
        else:
4345
          iprot.skip(ftype)
4346
      elif fid == 1:
4347
        if ftype == TType.STRUCT:
559 chandransh 4348
          self.ucex = UserContextException()
4349
          self.ucex.read(iprot)
94 ashish 4350
        else:
4351
          iprot.skip(ftype)
4352
      else:
4353
        iprot.skip(ftype)
4354
      iprot.readFieldEnd()
4355
    iprot.readStructEnd()
4356
 
4357
  def write(self, oprot):
4358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4360
      return
559 chandransh 4361
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4362
    if self.success is not None:
94 ashish 4363
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4364
      self.success.write(oprot)
4365
      oprot.writeFieldEnd()
3431 rajveer 4366
    if self.ucex is not None:
559 chandransh 4367
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4368
      self.ucex.write(oprot)
94 ashish 4369
      oprot.writeFieldEnd()
4370
    oprot.writeFieldStop()
4371
    oprot.writeStructEnd()
4372
 
3431 rajveer 4373
  def validate(self):
4374
    return
4375
 
4376
 
94 ashish 4377
  def __repr__(self):
4378
    L = ['%s=%r' % (key, value)
4379
      for key, value in self.__dict__.iteritems()]
4380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4381
 
4382
  def __eq__(self, other):
4383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4384
 
4385
  def __ne__(self, other):
4386
    return not (self == other)
4387
 
5326 rajveer 4388
class getUserByCartId_args:
1491 vikas 4389
  """
4390
  Attributes:
5326 rajveer 4391
   - cartId
1491 vikas 4392
  """
4393
 
4394
  thrift_spec = (
4395
    None, # 0
5326 rajveer 4396
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4397
  )
4398
 
5326 rajveer 4399
  def __init__(self, cartId=None,):
4400
    self.cartId = cartId
1491 vikas 4401
 
4402
  def read(self, iprot):
4403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4405
      return
4406
    iprot.readStructBegin()
4407
    while True:
4408
      (fname, ftype, fid) = iprot.readFieldBegin()
4409
      if ftype == TType.STOP:
4410
        break
4411
      if fid == 1:
5326 rajveer 4412
        if ftype == TType.I64:
4413
          self.cartId = iprot.readI64();
1491 vikas 4414
        else:
4415
          iprot.skip(ftype)
4416
      else:
4417
        iprot.skip(ftype)
4418
      iprot.readFieldEnd()
4419
    iprot.readStructEnd()
4420
 
4421
  def write(self, oprot):
4422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4424
      return
5326 rajveer 4425
    oprot.writeStructBegin('getUserByCartId_args')
4426
    if self.cartId is not None:
4427
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4428
      oprot.writeI64(self.cartId)
1491 vikas 4429
      oprot.writeFieldEnd()
4430
    oprot.writeFieldStop()
4431
    oprot.writeStructEnd()
4432
 
3431 rajveer 4433
  def validate(self):
4434
    return
4435
 
4436
 
1491 vikas 4437
  def __repr__(self):
4438
    L = ['%s=%r' % (key, value)
4439
      for key, value in self.__dict__.iteritems()]
4440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4441
 
4442
  def __eq__(self, other):
4443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4444
 
4445
  def __ne__(self, other):
4446
    return not (self == other)
4447
 
5326 rajveer 4448
class getUserByCartId_result:
1491 vikas 4449
  """
4450
  Attributes:
4451
   - success
4452
   - ucex
4453
  """
4454
 
4455
  thrift_spec = (
4456
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4457
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4458
  )
4459
 
4460
  def __init__(self, success=None, ucex=None,):
4461
    self.success = success
4462
    self.ucex = ucex
4463
 
4464
  def read(self, iprot):
4465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4467
      return
4468
    iprot.readStructBegin()
4469
    while True:
4470
      (fname, ftype, fid) = iprot.readFieldBegin()
4471
      if ftype == TType.STOP:
4472
        break
4473
      if fid == 0:
4474
        if ftype == TType.STRUCT:
4475
          self.success = User()
4476
          self.success.read(iprot)
4477
        else:
4478
          iprot.skip(ftype)
4479
      elif fid == 1:
4480
        if ftype == TType.STRUCT:
4481
          self.ucex = UserContextException()
4482
          self.ucex.read(iprot)
4483
        else:
4484
          iprot.skip(ftype)
4485
      else:
4486
        iprot.skip(ftype)
4487
      iprot.readFieldEnd()
4488
    iprot.readStructEnd()
4489
 
4490
  def write(self, oprot):
4491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4493
      return
5326 rajveer 4494
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4495
    if self.success is not None:
1491 vikas 4496
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4497
      self.success.write(oprot)
4498
      oprot.writeFieldEnd()
3431 rajveer 4499
    if self.ucex is not None:
1491 vikas 4500
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4501
      self.ucex.write(oprot)
4502
      oprot.writeFieldEnd()
4503
    oprot.writeFieldStop()
4504
    oprot.writeStructEnd()
4505
 
3431 rajveer 4506
  def validate(self):
4507
    return
4508
 
4509
 
1491 vikas 4510
  def __repr__(self):
4511
    L = ['%s=%r' % (key, value)
4512
      for key, value in self.__dict__.iteritems()]
4513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4514
 
4515
  def __eq__(self, other):
4516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4517
 
4518
  def __ne__(self, other):
4519
    return not (self == other)
4520
 
5326 rajveer 4521
class getUserByEmail_args:
3032 mandeep.dh 4522
  """
4523
  Attributes:
5326 rajveer 4524
   - email
3032 mandeep.dh 4525
  """
4526
 
4527
  thrift_spec = (
4528
    None, # 0
5326 rajveer 4529
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4530
  )
4531
 
5326 rajveer 4532
  def __init__(self, email=None,):
4533
    self.email = email
3032 mandeep.dh 4534
 
4535
  def read(self, iprot):
4536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4538
      return
4539
    iprot.readStructBegin()
4540
    while True:
4541
      (fname, ftype, fid) = iprot.readFieldBegin()
4542
      if ftype == TType.STOP:
4543
        break
4544
      if fid == 1:
5326 rajveer 4545
        if ftype == TType.STRING:
4546
          self.email = iprot.readString();
3032 mandeep.dh 4547
        else:
4548
          iprot.skip(ftype)
4549
      else:
4550
        iprot.skip(ftype)
4551
      iprot.readFieldEnd()
4552
    iprot.readStructEnd()
4553
 
4554
  def write(self, oprot):
4555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4557
      return
5326 rajveer 4558
    oprot.writeStructBegin('getUserByEmail_args')
4559
    if self.email is not None:
4560
      oprot.writeFieldBegin('email', TType.STRING, 1)
4561
      oprot.writeString(self.email)
3032 mandeep.dh 4562
      oprot.writeFieldEnd()
4563
    oprot.writeFieldStop()
4564
    oprot.writeStructEnd()
4565
 
3431 rajveer 4566
  def validate(self):
4567
    return
4568
 
4569
 
3032 mandeep.dh 4570
  def __repr__(self):
4571
    L = ['%s=%r' % (key, value)
4572
      for key, value in self.__dict__.iteritems()]
4573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4574
 
4575
  def __eq__(self, other):
4576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4577
 
4578
  def __ne__(self, other):
4579
    return not (self == other)
4580
 
5326 rajveer 4581
class getUserByEmail_result:
3032 mandeep.dh 4582
  """
4583
  Attributes:
4584
   - success
4585
   - ucex
4586
  """
4587
 
4588
  thrift_spec = (
4589
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4590
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4591
  )
4592
 
4593
  def __init__(self, success=None, ucex=None,):
4594
    self.success = success
4595
    self.ucex = ucex
4596
 
4597
  def read(self, iprot):
4598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4600
      return
4601
    iprot.readStructBegin()
4602
    while True:
4603
      (fname, ftype, fid) = iprot.readFieldBegin()
4604
      if ftype == TType.STOP:
4605
        break
4606
      if fid == 0:
4607
        if ftype == TType.STRUCT:
4608
          self.success = User()
4609
          self.success.read(iprot)
4610
        else:
4611
          iprot.skip(ftype)
4612
      elif fid == 1:
4613
        if ftype == TType.STRUCT:
4614
          self.ucex = UserContextException()
4615
          self.ucex.read(iprot)
4616
        else:
4617
          iprot.skip(ftype)
4618
      else:
4619
        iprot.skip(ftype)
4620
      iprot.readFieldEnd()
4621
    iprot.readStructEnd()
4622
 
4623
  def write(self, oprot):
4624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4626
      return
5326 rajveer 4627
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4628
    if self.success is not None:
3032 mandeep.dh 4629
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4630
      self.success.write(oprot)
4631
      oprot.writeFieldEnd()
3431 rajveer 4632
    if self.ucex is not None:
3032 mandeep.dh 4633
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4634
      self.ucex.write(oprot)
4635
      oprot.writeFieldEnd()
4636
    oprot.writeFieldStop()
4637
    oprot.writeStructEnd()
4638
 
3431 rajveer 4639
  def validate(self):
4640
    return
4641
 
4642
 
3032 mandeep.dh 4643
  def __repr__(self):
4644
    L = ['%s=%r' % (key, value)
4645
      for key, value in self.__dict__.iteritems()]
4646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4647
 
4648
  def __eq__(self, other):
4649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4650
 
4651
  def __ne__(self, other):
4652
    return not (self == other)
4653
 
5326 rajveer 4654
class getUserByMobileNumber_args:
94 ashish 4655
  """
4656
  Attributes:
5326 rajveer 4657
   - mobileNumber
94 ashish 4658
  """
4659
 
4660
  thrift_spec = (
4661
    None, # 0
5326 rajveer 4662
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4663
  )
4664
 
5326 rajveer 4665
  def __init__(self, mobileNumber=None,):
4666
    self.mobileNumber = mobileNumber
94 ashish 4667
 
4668
  def read(self, iprot):
4669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4671
      return
4672
    iprot.readStructBegin()
4673
    while True:
4674
      (fname, ftype, fid) = iprot.readFieldBegin()
4675
      if ftype == TType.STOP:
4676
        break
4677
      if fid == 1:
5326 rajveer 4678
        if ftype == TType.I64:
4679
          self.mobileNumber = iprot.readI64();
94 ashish 4680
        else:
4681
          iprot.skip(ftype)
4682
      else:
4683
        iprot.skip(ftype)
4684
      iprot.readFieldEnd()
4685
    iprot.readStructEnd()
4686
 
4687
  def write(self, oprot):
4688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4690
      return
5326 rajveer 4691
    oprot.writeStructBegin('getUserByMobileNumber_args')
4692
    if self.mobileNumber is not None:
4693
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4694
      oprot.writeI64(self.mobileNumber)
94 ashish 4695
      oprot.writeFieldEnd()
4696
    oprot.writeFieldStop()
4697
    oprot.writeStructEnd()
4698
 
3431 rajveer 4699
  def validate(self):
4700
    return
4701
 
4702
 
94 ashish 4703
  def __repr__(self):
4704
    L = ['%s=%r' % (key, value)
4705
      for key, value in self.__dict__.iteritems()]
4706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4707
 
4708
  def __eq__(self, other):
4709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4710
 
4711
  def __ne__(self, other):
4712
    return not (self == other)
4713
 
5326 rajveer 4714
class getUserByMobileNumber_result:
94 ashish 4715
  """
4716
  Attributes:
4717
   - success
559 chandransh 4718
   - ucex
94 ashish 4719
  """
4720
 
4721
  thrift_spec = (
559 chandransh 4722
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4723
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4724
  )
4725
 
559 chandransh 4726
  def __init__(self, success=None, ucex=None,):
94 ashish 4727
    self.success = success
559 chandransh 4728
    self.ucex = ucex
94 ashish 4729
 
4730
  def read(self, iprot):
4731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4733
      return
4734
    iprot.readStructBegin()
4735
    while True:
4736
      (fname, ftype, fid) = iprot.readFieldBegin()
4737
      if ftype == TType.STOP:
4738
        break
4739
      if fid == 0:
4740
        if ftype == TType.STRUCT:
559 chandransh 4741
          self.success = User()
94 ashish 4742
          self.success.read(iprot)
4743
        else:
4744
          iprot.skip(ftype)
4745
      elif fid == 1:
4746
        if ftype == TType.STRUCT:
559 chandransh 4747
          self.ucex = UserContextException()
4748
          self.ucex.read(iprot)
94 ashish 4749
        else:
4750
          iprot.skip(ftype)
4751
      else:
4752
        iprot.skip(ftype)
4753
      iprot.readFieldEnd()
4754
    iprot.readStructEnd()
4755
 
4756
  def write(self, oprot):
4757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4759
      return
5326 rajveer 4760
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4761
    if self.success is not None:
94 ashish 4762
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4763
      self.success.write(oprot)
4764
      oprot.writeFieldEnd()
3431 rajveer 4765
    if self.ucex is not None:
559 chandransh 4766
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4767
      self.ucex.write(oprot)
94 ashish 4768
      oprot.writeFieldEnd()
4769
    oprot.writeFieldStop()
4770
    oprot.writeStructEnd()
4771
 
3431 rajveer 4772
  def validate(self):
4773
    return
4774
 
4775
 
94 ashish 4776
  def __repr__(self):
4777
    L = ['%s=%r' % (key, value)
4778
      for key, value in self.__dict__.iteritems()]
4779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4780
 
4781
  def __eq__(self, other):
4782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4783
 
4784
  def __ne__(self, other):
4785
    return not (self == other)
4786
 
5326 rajveer 4787
class createUser_args:
94 ashish 4788
  """
4789
  Attributes:
559 chandransh 4790
   - user
94 ashish 4791
  """
4792
 
4793
  thrift_spec = (
4794
    None, # 0
559 chandransh 4795
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4796
  )
4797
 
559 chandransh 4798
  def __init__(self, user=None,):
4799
    self.user = user
94 ashish 4800
 
4801
  def read(self, iprot):
4802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4804
      return
4805
    iprot.readStructBegin()
4806
    while True:
4807
      (fname, ftype, fid) = iprot.readFieldBegin()
4808
      if ftype == TType.STOP:
4809
        break
4810
      if fid == 1:
559 chandransh 4811
        if ftype == TType.STRUCT:
4812
          self.user = User()
4813
          self.user.read(iprot)
94 ashish 4814
        else:
4815
          iprot.skip(ftype)
4816
      else:
4817
        iprot.skip(ftype)
4818
      iprot.readFieldEnd()
4819
    iprot.readStructEnd()
4820
 
4821
  def write(self, oprot):
4822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4824
      return
5326 rajveer 4825
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4826
    if self.user is not None:
559 chandransh 4827
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4828
      self.user.write(oprot)
94 ashish 4829
      oprot.writeFieldEnd()
4830
    oprot.writeFieldStop()
4831
    oprot.writeStructEnd()
4832
 
3431 rajveer 4833
  def validate(self):
4834
    return
4835
 
4836
 
94 ashish 4837
  def __repr__(self):
4838
    L = ['%s=%r' % (key, value)
4839
      for key, value in self.__dict__.iteritems()]
4840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4841
 
4842
  def __eq__(self, other):
4843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4844
 
4845
  def __ne__(self, other):
4846
    return not (self == other)
4847
 
5326 rajveer 4848
class createUser_result:
94 ashish 4849
  """
4850
  Attributes:
4851
   - success
559 chandransh 4852
   - ucex
94 ashish 4853
  """
4854
 
4855
  thrift_spec = (
559 chandransh 4856
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4857
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4858
  )
4859
 
559 chandransh 4860
  def __init__(self, success=None, ucex=None,):
94 ashish 4861
    self.success = success
559 chandransh 4862
    self.ucex = ucex
94 ashish 4863
 
4864
  def read(self, iprot):
4865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4867
      return
4868
    iprot.readStructBegin()
4869
    while True:
4870
      (fname, ftype, fid) = iprot.readFieldBegin()
4871
      if ftype == TType.STOP:
4872
        break
4873
      if fid == 0:
4874
        if ftype == TType.STRUCT:
559 chandransh 4875
          self.success = User()
94 ashish 4876
          self.success.read(iprot)
4877
        else:
4878
          iprot.skip(ftype)
4879
      elif fid == 1:
4880
        if ftype == TType.STRUCT:
559 chandransh 4881
          self.ucex = UserContextException()
4882
          self.ucex.read(iprot)
94 ashish 4883
        else:
4884
          iprot.skip(ftype)
4885
      else:
4886
        iprot.skip(ftype)
4887
      iprot.readFieldEnd()
4888
    iprot.readStructEnd()
4889
 
4890
  def write(self, oprot):
4891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4893
      return
5326 rajveer 4894
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4895
    if self.success is not None:
94 ashish 4896
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4897
      self.success.write(oprot)
4898
      oprot.writeFieldEnd()
3431 rajveer 4899
    if self.ucex is not None:
559 chandransh 4900
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4901
      self.ucex.write(oprot)
94 ashish 4902
      oprot.writeFieldEnd()
4903
    oprot.writeFieldStop()
4904
    oprot.writeStructEnd()
4905
 
3431 rajveer 4906
  def validate(self):
4907
    return
4908
 
4909
 
94 ashish 4910
  def __repr__(self):
4911
    L = ['%s=%r' % (key, value)
4912
      for key, value in self.__dict__.iteritems()]
4913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4914
 
4915
  def __eq__(self, other):
4916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4917
 
4918
  def __ne__(self, other):
4919
    return not (self == other)
4920
 
5326 rajveer 4921
class updateUser_args:
94 ashish 4922
  """
4923
  Attributes:
5326 rajveer 4924
   - user
94 ashish 4925
  """
4926
 
4927
  thrift_spec = (
4928
    None, # 0
5326 rajveer 4929
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4930
  )
4931
 
5326 rajveer 4932
  def __init__(self, user=None,):
4933
    self.user = user
94 ashish 4934
 
4935
  def read(self, iprot):
4936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4938
      return
4939
    iprot.readStructBegin()
4940
    while True:
4941
      (fname, ftype, fid) = iprot.readFieldBegin()
4942
      if ftype == TType.STOP:
4943
        break
4944
      if fid == 1:
5326 rajveer 4945
        if ftype == TType.STRUCT:
4946
          self.user = User()
4947
          self.user.read(iprot)
94 ashish 4948
        else:
4949
          iprot.skip(ftype)
4950
      else:
4951
        iprot.skip(ftype)
4952
      iprot.readFieldEnd()
4953
    iprot.readStructEnd()
4954
 
4955
  def write(self, oprot):
4956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4958
      return
5326 rajveer 4959
    oprot.writeStructBegin('updateUser_args')
4960
    if self.user is not None:
4961
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4962
      self.user.write(oprot)
94 ashish 4963
      oprot.writeFieldEnd()
4964
    oprot.writeFieldStop()
4965
    oprot.writeStructEnd()
4966
 
3431 rajveer 4967
  def validate(self):
4968
    return
4969
 
4970
 
94 ashish 4971
  def __repr__(self):
4972
    L = ['%s=%r' % (key, value)
4973
      for key, value in self.__dict__.iteritems()]
4974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4975
 
4976
  def __eq__(self, other):
4977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4978
 
4979
  def __ne__(self, other):
4980
    return not (self == other)
4981
 
5326 rajveer 4982
class updateUser_result:
94 ashish 4983
  """
4984
  Attributes:
4985
   - success
559 chandransh 4986
   - ucex
94 ashish 4987
  """
4988
 
4989
  thrift_spec = (
5326 rajveer 4990
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4991
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4992
  )
4993
 
559 chandransh 4994
  def __init__(self, success=None, ucex=None,):
94 ashish 4995
    self.success = success
559 chandransh 4996
    self.ucex = ucex
94 ashish 4997
 
4998
  def read(self, iprot):
4999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5001
      return
5002
    iprot.readStructBegin()
5003
    while True:
5004
      (fname, ftype, fid) = iprot.readFieldBegin()
5005
      if ftype == TType.STOP:
5006
        break
5007
      if fid == 0:
5326 rajveer 5008
        if ftype == TType.STRUCT:
5009
          self.success = User()
5010
          self.success.read(iprot)
94 ashish 5011
        else:
5012
          iprot.skip(ftype)
5013
      elif fid == 1:
5014
        if ftype == TType.STRUCT:
559 chandransh 5015
          self.ucex = UserContextException()
5016
          self.ucex.read(iprot)
94 ashish 5017
        else:
5018
          iprot.skip(ftype)
5019
      else:
5020
        iprot.skip(ftype)
5021
      iprot.readFieldEnd()
5022
    iprot.readStructEnd()
5023
 
5024
  def write(self, oprot):
5025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5027
      return
5326 rajveer 5028
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 5029
    if self.success is not None:
5326 rajveer 5030
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5031
      self.success.write(oprot)
94 ashish 5032
      oprot.writeFieldEnd()
3431 rajveer 5033
    if self.ucex is not None:
559 chandransh 5034
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5035
      self.ucex.write(oprot)
94 ashish 5036
      oprot.writeFieldEnd()
5037
    oprot.writeFieldStop()
5038
    oprot.writeStructEnd()
5039
 
3431 rajveer 5040
  def validate(self):
5041
    return
5042
 
5043
 
94 ashish 5044
  def __repr__(self):
5045
    L = ['%s=%r' % (key, value)
5046
      for key, value in self.__dict__.iteritems()]
5047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5048
 
5049
  def __eq__(self, other):
5050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5051
 
5052
  def __ne__(self, other):
5053
    return not (self == other)
5054
 
559 chandransh 5055
class authenticateUser_args:
94 ashish 5056
  """
5057
  Attributes:
5058
   - email
5059
   - password
5060
  """
5061
 
5062
  thrift_spec = (
5063
    None, # 0
5064
    (1, TType.STRING, 'email', None, None, ), # 1
5065
    (2, TType.STRING, 'password', None, None, ), # 2
5066
  )
5067
 
5068
  def __init__(self, email=None, password=None,):
5069
    self.email = email
5070
    self.password = password
5071
 
5072
  def read(self, iprot):
5073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5075
      return
5076
    iprot.readStructBegin()
5077
    while True:
5078
      (fname, ftype, fid) = iprot.readFieldBegin()
5079
      if ftype == TType.STOP:
5080
        break
5081
      if fid == 1:
5082
        if ftype == TType.STRING:
5083
          self.email = iprot.readString();
5084
        else:
5085
          iprot.skip(ftype)
5086
      elif fid == 2:
5087
        if ftype == TType.STRING:
5088
          self.password = iprot.readString();
5089
        else:
5090
          iprot.skip(ftype)
5091
      else:
5092
        iprot.skip(ftype)
5093
      iprot.readFieldEnd()
5094
    iprot.readStructEnd()
5095
 
5096
  def write(self, oprot):
5097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5099
      return
559 chandransh 5100
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5101
    if self.email is not None:
94 ashish 5102
      oprot.writeFieldBegin('email', TType.STRING, 1)
5103
      oprot.writeString(self.email)
5104
      oprot.writeFieldEnd()
3431 rajveer 5105
    if self.password is not None:
94 ashish 5106
      oprot.writeFieldBegin('password', TType.STRING, 2)
5107
      oprot.writeString(self.password)
5108
      oprot.writeFieldEnd()
5109
    oprot.writeFieldStop()
5110
    oprot.writeStructEnd()
5111
 
3431 rajveer 5112
  def validate(self):
5113
    return
5114
 
5115
 
94 ashish 5116
  def __repr__(self):
5117
    L = ['%s=%r' % (key, value)
5118
      for key, value in self.__dict__.iteritems()]
5119
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5120
 
5121
  def __eq__(self, other):
5122
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5123
 
5124
  def __ne__(self, other):
5125
    return not (self == other)
5126
 
559 chandransh 5127
class authenticateUser_result:
94 ashish 5128
  """
5129
  Attributes:
5130
   - success
559 chandransh 5131
   - auex
94 ashish 5132
  """
5133
 
5134
  thrift_spec = (
559 chandransh 5135
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5136
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5137
  )
5138
 
559 chandransh 5139
  def __init__(self, success=None, auex=None,):
94 ashish 5140
    self.success = success
559 chandransh 5141
    self.auex = auex
94 ashish 5142
 
5143
  def read(self, iprot):
5144
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5145
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5146
      return
5147
    iprot.readStructBegin()
5148
    while True:
5149
      (fname, ftype, fid) = iprot.readFieldBegin()
5150
      if ftype == TType.STOP:
5151
        break
5152
      if fid == 0:
5153
        if ftype == TType.STRUCT:
559 chandransh 5154
          self.success = User()
94 ashish 5155
          self.success.read(iprot)
5156
        else:
5157
          iprot.skip(ftype)
5158
      elif fid == 1:
5159
        if ftype == TType.STRUCT:
559 chandransh 5160
          self.auex = AuthenticationException()
5161
          self.auex.read(iprot)
94 ashish 5162
        else:
5163
          iprot.skip(ftype)
5164
      else:
5165
        iprot.skip(ftype)
5166
      iprot.readFieldEnd()
5167
    iprot.readStructEnd()
5168
 
5169
  def write(self, oprot):
5170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5172
      return
559 chandransh 5173
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5174
    if self.success is not None:
94 ashish 5175
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5176
      self.success.write(oprot)
5177
      oprot.writeFieldEnd()
3431 rajveer 5178
    if self.auex is not None:
559 chandransh 5179
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5180
      self.auex.write(oprot)
94 ashish 5181
      oprot.writeFieldEnd()
5182
    oprot.writeFieldStop()
5183
    oprot.writeStructEnd()
5184
 
3431 rajveer 5185
  def validate(self):
5186
    return
5187
 
5188
 
94 ashish 5189
  def __repr__(self):
5190
    L = ['%s=%r' % (key, value)
5191
      for key, value in self.__dict__.iteritems()]
5192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5193
 
5194
  def __eq__(self, other):
5195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5196
 
5197
  def __ne__(self, other):
5198
    return not (self == other)
5199
 
559 chandransh 5200
class userExists_args:
122 ashish 5201
  """
5202
  Attributes:
559 chandransh 5203
   - email
122 ashish 5204
  """
5205
 
5206
  thrift_spec = (
5207
    None, # 0
559 chandransh 5208
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5209
  )
5210
 
559 chandransh 5211
  def __init__(self, email=None,):
5212
    self.email = email
122 ashish 5213
 
5214
  def read(self, iprot):
5215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5217
      return
5218
    iprot.readStructBegin()
5219
    while True:
5220
      (fname, ftype, fid) = iprot.readFieldBegin()
5221
      if ftype == TType.STOP:
5222
        break
5223
      if fid == 1:
5224
        if ftype == TType.STRING:
559 chandransh 5225
          self.email = iprot.readString();
122 ashish 5226
        else:
5227
          iprot.skip(ftype)
559 chandransh 5228
      else:
5229
        iprot.skip(ftype)
5230
      iprot.readFieldEnd()
5231
    iprot.readStructEnd()
5232
 
5233
  def write(self, oprot):
5234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5236
      return
5237
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5238
    if self.email is not None:
559 chandransh 5239
      oprot.writeFieldBegin('email', TType.STRING, 1)
5240
      oprot.writeString(self.email)
5241
      oprot.writeFieldEnd()
5242
    oprot.writeFieldStop()
5243
    oprot.writeStructEnd()
5244
 
3431 rajveer 5245
  def validate(self):
5246
    return
5247
 
5248
 
559 chandransh 5249
  def __repr__(self):
5250
    L = ['%s=%r' % (key, value)
5251
      for key, value in self.__dict__.iteritems()]
5252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5253
 
5254
  def __eq__(self, other):
5255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5256
 
5257
  def __ne__(self, other):
5258
    return not (self == other)
5259
 
5260
class userExists_result:
5261
  """
5262
  Attributes:
5263
   - success
5264
   - ucx
5265
  """
5266
 
5267
  thrift_spec = (
5268
    (0, TType.BOOL, 'success', None, None, ), # 0
5269
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5270
  )
5271
 
5272
  def __init__(self, success=None, ucx=None,):
5273
    self.success = success
5274
    self.ucx = ucx
5275
 
5276
  def read(self, iprot):
5277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5279
      return
5280
    iprot.readStructBegin()
5281
    while True:
5282
      (fname, ftype, fid) = iprot.readFieldBegin()
5283
      if ftype == TType.STOP:
5284
        break
5285
      if fid == 0:
5286
        if ftype == TType.BOOL:
5287
          self.success = iprot.readBool();
5288
        else:
5289
          iprot.skip(ftype)
5290
      elif fid == 1:
5291
        if ftype == TType.STRUCT:
5292
          self.ucx = UserContextException()
5293
          self.ucx.read(iprot)
5294
        else:
5295
          iprot.skip(ftype)
5296
      else:
5297
        iprot.skip(ftype)
5298
      iprot.readFieldEnd()
5299
    iprot.readStructEnd()
5300
 
5301
  def write(self, oprot):
5302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5304
      return
5305
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5306
    if self.success is not None:
559 chandransh 5307
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5308
      oprot.writeBool(self.success)
5309
      oprot.writeFieldEnd()
3431 rajveer 5310
    if self.ucx is not None:
559 chandransh 5311
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5312
      self.ucx.write(oprot)
5313
      oprot.writeFieldEnd()
5314
    oprot.writeFieldStop()
5315
    oprot.writeStructEnd()
5316
 
3431 rajveer 5317
  def validate(self):
5318
    return
5319
 
5320
 
559 chandransh 5321
  def __repr__(self):
5322
    L = ['%s=%r' % (key, value)
5323
      for key, value in self.__dict__.iteritems()]
5324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5325
 
5326
  def __eq__(self, other):
5327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5328
 
5329
  def __ne__(self, other):
5330
    return not (self == other)
5331
 
5332
class addAddressForUser_args:
5333
  """
5334
  Attributes:
5335
   - userId
5336
   - address
5337
   - setDefault
5338
  """
5339
 
5340
  thrift_spec = (
5341
    None, # 0
5342
    (1, TType.I64, 'userId', None, None, ), # 1
5343
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5344
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5345
  )
5346
 
567 rajveer 5347
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5348
    self.userId = userId
5349
    self.address = address
5350
    self.setDefault = setDefault
5351
 
5352
  def read(self, iprot):
5353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5355
      return
5356
    iprot.readStructBegin()
5357
    while True:
5358
      (fname, ftype, fid) = iprot.readFieldBegin()
5359
      if ftype == TType.STOP:
5360
        break
5361
      if fid == 1:
5362
        if ftype == TType.I64:
5363
          self.userId = iprot.readI64();
5364
        else:
5365
          iprot.skip(ftype)
122 ashish 5366
      elif fid == 2:
559 chandransh 5367
        if ftype == TType.STRUCT:
5368
          self.address = Address()
5369
          self.address.read(iprot)
122 ashish 5370
        else:
5371
          iprot.skip(ftype)
5372
      elif fid == 3:
5373
        if ftype == TType.BOOL:
559 chandransh 5374
          self.setDefault = iprot.readBool();
122 ashish 5375
        else:
5376
          iprot.skip(ftype)
5377
      else:
5378
        iprot.skip(ftype)
5379
      iprot.readFieldEnd()
5380
    iprot.readStructEnd()
5381
 
5382
  def write(self, oprot):
5383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5385
      return
559 chandransh 5386
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5387
    if self.userId is not None:
559 chandransh 5388
      oprot.writeFieldBegin('userId', TType.I64, 1)
5389
      oprot.writeI64(self.userId)
122 ashish 5390
      oprot.writeFieldEnd()
3431 rajveer 5391
    if self.address is not None:
559 chandransh 5392
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5393
      self.address.write(oprot)
122 ashish 5394
      oprot.writeFieldEnd()
3431 rajveer 5395
    if self.setDefault is not None:
567 rajveer 5396
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5397
      oprot.writeBool(self.setDefault)
5398
      oprot.writeFieldEnd()
122 ashish 5399
    oprot.writeFieldStop()
5400
    oprot.writeStructEnd()
5401
 
3431 rajveer 5402
  def validate(self):
5403
    return
5404
 
5405
 
122 ashish 5406
  def __repr__(self):
5407
    L = ['%s=%r' % (key, value)
5408
      for key, value in self.__dict__.iteritems()]
5409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5410
 
5411
  def __eq__(self, other):
5412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5413
 
5414
  def __ne__(self, other):
5415
    return not (self == other)
5416
 
559 chandransh 5417
class addAddressForUser_result:
122 ashish 5418
  """
5419
  Attributes:
5420
   - success
559 chandransh 5421
   - ucx
122 ashish 5422
  """
5423
 
5424
  thrift_spec = (
567 rajveer 5425
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5426
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5427
  )
5428
 
559 chandransh 5429
  def __init__(self, success=None, ucx=None,):
122 ashish 5430
    self.success = success
559 chandransh 5431
    self.ucx = ucx
122 ashish 5432
 
5433
  def read(self, iprot):
5434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5436
      return
5437
    iprot.readStructBegin()
5438
    while True:
5439
      (fname, ftype, fid) = iprot.readFieldBegin()
5440
      if ftype == TType.STOP:
5441
        break
5442
      if fid == 0:
567 rajveer 5443
        if ftype == TType.I64:
5444
          self.success = iprot.readI64();
122 ashish 5445
        else:
5446
          iprot.skip(ftype)
5447
      elif fid == 1:
5448
        if ftype == TType.STRUCT:
559 chandransh 5449
          self.ucx = UserContextException()
5450
          self.ucx.read(iprot)
122 ashish 5451
        else:
5452
          iprot.skip(ftype)
5453
      else:
5454
        iprot.skip(ftype)
5455
      iprot.readFieldEnd()
5456
    iprot.readStructEnd()
5457
 
5458
  def write(self, oprot):
5459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5461
      return
559 chandransh 5462
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5463
    if self.success is not None:
567 rajveer 5464
      oprot.writeFieldBegin('success', TType.I64, 0)
5465
      oprot.writeI64(self.success)
122 ashish 5466
      oprot.writeFieldEnd()
3431 rajveer 5467
    if self.ucx is not None:
559 chandransh 5468
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5469
      self.ucx.write(oprot)
122 ashish 5470
      oprot.writeFieldEnd()
5471
    oprot.writeFieldStop()
5472
    oprot.writeStructEnd()
5473
 
3431 rajveer 5474
  def validate(self):
5475
    return
5476
 
5477
 
122 ashish 5478
  def __repr__(self):
5479
    L = ['%s=%r' % (key, value)
5480
      for key, value in self.__dict__.iteritems()]
5481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5482
 
5483
  def __eq__(self, other):
5484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5485
 
5486
  def __ne__(self, other):
5487
    return not (self == other)
5488
 
559 chandransh 5489
class removeAddressForUser_args:
94 ashish 5490
  """
5491
  Attributes:
559 chandransh 5492
   - userid
5493
   - addressId
94 ashish 5494
  """
5495
 
5496
  thrift_spec = (
5497
    None, # 0
559 chandransh 5498
    (1, TType.I64, 'userid', None, None, ), # 1
5499
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5500
  )
5501
 
559 chandransh 5502
  def __init__(self, userid=None, addressId=None,):
5503
    self.userid = userid
5504
    self.addressId = addressId
94 ashish 5505
 
5506
  def read(self, iprot):
5507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5509
      return
5510
    iprot.readStructBegin()
5511
    while True:
5512
      (fname, ftype, fid) = iprot.readFieldBegin()
5513
      if ftype == TType.STOP:
5514
        break
5515
      if fid == 1:
559 chandransh 5516
        if ftype == TType.I64:
5517
          self.userid = iprot.readI64();
94 ashish 5518
        else:
5519
          iprot.skip(ftype)
559 chandransh 5520
      elif fid == 2:
5521
        if ftype == TType.I64:
5522
          self.addressId = iprot.readI64();
5523
        else:
5524
          iprot.skip(ftype)
94 ashish 5525
      else:
5526
        iprot.skip(ftype)
5527
      iprot.readFieldEnd()
5528
    iprot.readStructEnd()
5529
 
5530
  def write(self, oprot):
5531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5533
      return
559 chandransh 5534
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5535
    if self.userid is not None:
559 chandransh 5536
      oprot.writeFieldBegin('userid', TType.I64, 1)
5537
      oprot.writeI64(self.userid)
94 ashish 5538
      oprot.writeFieldEnd()
3431 rajveer 5539
    if self.addressId is not None:
559 chandransh 5540
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5541
      oprot.writeI64(self.addressId)
5542
      oprot.writeFieldEnd()
94 ashish 5543
    oprot.writeFieldStop()
5544
    oprot.writeStructEnd()
5545
 
3431 rajveer 5546
  def validate(self):
5547
    return
5548
 
5549
 
94 ashish 5550
  def __repr__(self):
5551
    L = ['%s=%r' % (key, value)
5552
      for key, value in self.__dict__.iteritems()]
5553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5554
 
5555
  def __eq__(self, other):
5556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5557
 
5558
  def __ne__(self, other):
5559
    return not (self == other)
5560
 
559 chandransh 5561
class removeAddressForUser_result:
94 ashish 5562
  """
5563
  Attributes:
5564
   - success
5565
   - ucx
5566
  """
5567
 
5568
  thrift_spec = (
5569
    (0, TType.BOOL, 'success', None, None, ), # 0
5570
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5571
  )
5572
 
5573
  def __init__(self, success=None, ucx=None,):
5574
    self.success = success
5575
    self.ucx = ucx
5576
 
5577
  def read(self, iprot):
5578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5580
      return
5581
    iprot.readStructBegin()
5582
    while True:
5583
      (fname, ftype, fid) = iprot.readFieldBegin()
5584
      if ftype == TType.STOP:
5585
        break
5586
      if fid == 0:
5587
        if ftype == TType.BOOL:
5588
          self.success = iprot.readBool();
5589
        else:
5590
          iprot.skip(ftype)
5591
      elif fid == 1:
5592
        if ftype == TType.STRUCT:
5593
          self.ucx = UserContextException()
5594
          self.ucx.read(iprot)
5595
        else:
5596
          iprot.skip(ftype)
5597
      else:
5598
        iprot.skip(ftype)
5599
      iprot.readFieldEnd()
5600
    iprot.readStructEnd()
5601
 
5602
  def write(self, oprot):
5603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5605
      return
559 chandransh 5606
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5607
    if self.success is not None:
94 ashish 5608
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5609
      oprot.writeBool(self.success)
5610
      oprot.writeFieldEnd()
3431 rajveer 5611
    if self.ucx is not None:
94 ashish 5612
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5613
      self.ucx.write(oprot)
5614
      oprot.writeFieldEnd()
5615
    oprot.writeFieldStop()
5616
    oprot.writeStructEnd()
5617
 
3431 rajveer 5618
  def validate(self):
5619
    return
5620
 
5621
 
94 ashish 5622
  def __repr__(self):
5623
    L = ['%s=%r' % (key, value)
5624
      for key, value in self.__dict__.iteritems()]
5625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5626
 
5627
  def __eq__(self, other):
5628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5629
 
5630
  def __ne__(self, other):
5631
    return not (self == other)
5632
 
559 chandransh 5633
class setUserAsLoggedIn_args:
94 ashish 5634
  """
5635
  Attributes:
559 chandransh 5636
   - userId
94 ashish 5637
   - timestamp
5638
  """
5639
 
5640
  thrift_spec = (
5641
    None, # 0
559 chandransh 5642
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5643
    (2, TType.I64, 'timestamp', None, None, ), # 2
5644
  )
5645
 
559 chandransh 5646
  def __init__(self, userId=None, timestamp=None,):
5647
    self.userId = userId
94 ashish 5648
    self.timestamp = timestamp
5649
 
5650
  def read(self, iprot):
5651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5653
      return
5654
    iprot.readStructBegin()
5655
    while True:
5656
      (fname, ftype, fid) = iprot.readFieldBegin()
5657
      if ftype == TType.STOP:
5658
        break
5659
      if fid == 1:
559 chandransh 5660
        if ftype == TType.I64:
5661
          self.userId = iprot.readI64();
94 ashish 5662
        else:
5663
          iprot.skip(ftype)
5664
      elif fid == 2:
5665
        if ftype == TType.I64:
5666
          self.timestamp = iprot.readI64();
5667
        else:
5668
          iprot.skip(ftype)
5669
      else:
5670
        iprot.skip(ftype)
5671
      iprot.readFieldEnd()
5672
    iprot.readStructEnd()
5673
 
5674
  def write(self, oprot):
5675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5677
      return
559 chandransh 5678
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5679
    if self.userId is not None:
559 chandransh 5680
      oprot.writeFieldBegin('userId', TType.I64, 1)
5681
      oprot.writeI64(self.userId)
94 ashish 5682
      oprot.writeFieldEnd()
3431 rajveer 5683
    if self.timestamp is not None:
94 ashish 5684
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5685
      oprot.writeI64(self.timestamp)
5686
      oprot.writeFieldEnd()
5687
    oprot.writeFieldStop()
5688
    oprot.writeStructEnd()
5689
 
3431 rajveer 5690
  def validate(self):
5691
    return
5692
 
5693
 
94 ashish 5694
  def __repr__(self):
5695
    L = ['%s=%r' % (key, value)
5696
      for key, value in self.__dict__.iteritems()]
5697
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5698
 
5699
  def __eq__(self, other):
5700
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5701
 
5702
  def __ne__(self, other):
5703
    return not (self == other)
5704
 
559 chandransh 5705
class setUserAsLoggedIn_result:
94 ashish 5706
  """
5707
  Attributes:
5708
   - success
5709
   - ucx
5710
  """
5711
 
5712
  thrift_spec = (
5713
    (0, TType.BOOL, 'success', None, None, ), # 0
5714
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5715
  )
5716
 
5717
  def __init__(self, success=None, ucx=None,):
5718
    self.success = success
5719
    self.ucx = ucx
5720
 
5721
  def read(self, iprot):
5722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5724
      return
5725
    iprot.readStructBegin()
5726
    while True:
5727
      (fname, ftype, fid) = iprot.readFieldBegin()
5728
      if ftype == TType.STOP:
5729
        break
5730
      if fid == 0:
5731
        if ftype == TType.BOOL:
5732
          self.success = iprot.readBool();
5733
        else:
5734
          iprot.skip(ftype)
5735
      elif fid == 1:
5736
        if ftype == TType.STRUCT:
5737
          self.ucx = UserContextException()
5738
          self.ucx.read(iprot)
5739
        else:
5740
          iprot.skip(ftype)
5741
      else:
5742
        iprot.skip(ftype)
5743
      iprot.readFieldEnd()
5744
    iprot.readStructEnd()
5745
 
5746
  def write(self, oprot):
5747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5749
      return
559 chandransh 5750
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5751
    if self.success is not None:
94 ashish 5752
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5753
      oprot.writeBool(self.success)
5754
      oprot.writeFieldEnd()
3431 rajveer 5755
    if self.ucx is not None:
94 ashish 5756
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5757
      self.ucx.write(oprot)
5758
      oprot.writeFieldEnd()
5759
    oprot.writeFieldStop()
5760
    oprot.writeStructEnd()
5761
 
3431 rajveer 5762
  def validate(self):
5763
    return
5764
 
5765
 
94 ashish 5766
  def __repr__(self):
5767
    L = ['%s=%r' % (key, value)
5768
      for key, value in self.__dict__.iteritems()]
5769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5770
 
5771
  def __eq__(self, other):
5772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5773
 
5774
  def __ne__(self, other):
5775
    return not (self == other)
5776
 
559 chandransh 5777
class setUserAsLoggedOut_args:
94 ashish 5778
  """
5779
  Attributes:
5780
   - userid
5781
   - timestamp
5782
  """
5783
 
5784
  thrift_spec = (
5785
    None, # 0
559 chandransh 5786
    (1, TType.I64, 'userid', None, None, ), # 1
5787
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5788
  )
5789
 
559 chandransh 5790
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5791
    self.userid = userid
5792
    self.timestamp = timestamp
5793
 
5794
  def read(self, iprot):
5795
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5796
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5797
      return
5798
    iprot.readStructBegin()
5799
    while True:
5800
      (fname, ftype, fid) = iprot.readFieldBegin()
5801
      if ftype == TType.STOP:
5802
        break
5803
      if fid == 1:
5804
        if ftype == TType.I64:
5805
          self.userid = iprot.readI64();
5806
        else:
5807
          iprot.skip(ftype)
559 chandransh 5808
      elif fid == 2:
94 ashish 5809
        if ftype == TType.I64:
5810
          self.timestamp = iprot.readI64();
5811
        else:
5812
          iprot.skip(ftype)
5813
      else:
5814
        iprot.skip(ftype)
5815
      iprot.readFieldEnd()
5816
    iprot.readStructEnd()
5817
 
5818
  def write(self, oprot):
5819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5821
      return
559 chandransh 5822
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5823
    if self.userid is not None:
559 chandransh 5824
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5825
      oprot.writeI64(self.userid)
5826
      oprot.writeFieldEnd()
3431 rajveer 5827
    if self.timestamp is not None:
559 chandransh 5828
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5829
      oprot.writeI64(self.timestamp)
5830
      oprot.writeFieldEnd()
5831
    oprot.writeFieldStop()
5832
    oprot.writeStructEnd()
5833
 
3431 rajveer 5834
  def validate(self):
5835
    return
5836
 
5837
 
94 ashish 5838
  def __repr__(self):
5839
    L = ['%s=%r' % (key, value)
5840
      for key, value in self.__dict__.iteritems()]
5841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5842
 
5843
  def __eq__(self, other):
5844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5845
 
5846
  def __ne__(self, other):
5847
    return not (self == other)
5848
 
559 chandransh 5849
class setUserAsLoggedOut_result:
94 ashish 5850
  """
5851
  Attributes:
5852
   - success
5853
   - ucx
5854
  """
5855
 
5856
  thrift_spec = (
5857
    (0, TType.BOOL, 'success', None, None, ), # 0
5858
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5859
  )
5860
 
5861
  def __init__(self, success=None, ucx=None,):
5862
    self.success = success
5863
    self.ucx = ucx
5864
 
5865
  def read(self, iprot):
5866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5868
      return
5869
    iprot.readStructBegin()
5870
    while True:
5871
      (fname, ftype, fid) = iprot.readFieldBegin()
5872
      if ftype == TType.STOP:
5873
        break
5874
      if fid == 0:
5875
        if ftype == TType.BOOL:
5876
          self.success = iprot.readBool();
5877
        else:
5878
          iprot.skip(ftype)
5879
      elif fid == 1:
5880
        if ftype == TType.STRUCT:
5881
          self.ucx = UserContextException()
5882
          self.ucx.read(iprot)
5883
        else:
5884
          iprot.skip(ftype)
5885
      else:
5886
        iprot.skip(ftype)
5887
      iprot.readFieldEnd()
5888
    iprot.readStructEnd()
5889
 
5890
  def write(self, oprot):
5891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5893
      return
559 chandransh 5894
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5895
    if self.success is not None:
94 ashish 5896
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5897
      oprot.writeBool(self.success)
5898
      oprot.writeFieldEnd()
3431 rajveer 5899
    if self.ucx is not None:
94 ashish 5900
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5901
      self.ucx.write(oprot)
5902
      oprot.writeFieldEnd()
5903
    oprot.writeFieldStop()
5904
    oprot.writeStructEnd()
5905
 
3431 rajveer 5906
  def validate(self):
5907
    return
5908
 
5909
 
94 ashish 5910
  def __repr__(self):
5911
    L = ['%s=%r' % (key, value)
5912
      for key, value in self.__dict__.iteritems()]
5913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5914
 
5915
  def __eq__(self, other):
5916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5917
 
5918
  def __ne__(self, other):
5919
    return not (self == other)
5920
 
559 chandransh 5921
class setDefaultAddress_args:
94 ashish 5922
  """
5923
  Attributes:
5924
   - userid
5925
   - addressId
5926
  """
5927
 
5928
  thrift_spec = (
5929
    None, # 0
5930
    (1, TType.I64, 'userid', None, None, ), # 1
5931
    (2, TType.I64, 'addressId', None, None, ), # 2
5932
  )
5933
 
5934
  def __init__(self, userid=None, addressId=None,):
5935
    self.userid = userid
5936
    self.addressId = addressId
5937
 
5938
  def read(self, iprot):
5939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5941
      return
5942
    iprot.readStructBegin()
5943
    while True:
5944
      (fname, ftype, fid) = iprot.readFieldBegin()
5945
      if ftype == TType.STOP:
5946
        break
5947
      if fid == 1:
5948
        if ftype == TType.I64:
5949
          self.userid = iprot.readI64();
5950
        else:
5951
          iprot.skip(ftype)
5952
      elif fid == 2:
5953
        if ftype == TType.I64:
5954
          self.addressId = iprot.readI64();
5955
        else:
5956
          iprot.skip(ftype)
5957
      else:
5958
        iprot.skip(ftype)
5959
      iprot.readFieldEnd()
5960
    iprot.readStructEnd()
5961
 
5962
  def write(self, oprot):
5963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5965
      return
559 chandransh 5966
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5967
    if self.userid is not None:
94 ashish 5968
      oprot.writeFieldBegin('userid', TType.I64, 1)
5969
      oprot.writeI64(self.userid)
5970
      oprot.writeFieldEnd()
3431 rajveer 5971
    if self.addressId is not None:
94 ashish 5972
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5973
      oprot.writeI64(self.addressId)
5974
      oprot.writeFieldEnd()
5975
    oprot.writeFieldStop()
5976
    oprot.writeStructEnd()
5977
 
3431 rajveer 5978
  def validate(self):
5979
    return
5980
 
5981
 
94 ashish 5982
  def __repr__(self):
5983
    L = ['%s=%r' % (key, value)
5984
      for key, value in self.__dict__.iteritems()]
5985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5986
 
5987
  def __eq__(self, other):
5988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5989
 
5990
  def __ne__(self, other):
5991
    return not (self == other)
5992
 
559 chandransh 5993
class setDefaultAddress_result:
94 ashish 5994
  """
5995
  Attributes:
5996
   - success
5997
   - ucx
5998
  """
5999
 
6000
  thrift_spec = (
6001
    (0, TType.BOOL, 'success', None, None, ), # 0
6002
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6003
  )
6004
 
6005
  def __init__(self, success=None, ucx=None,):
6006
    self.success = success
6007
    self.ucx = ucx
6008
 
6009
  def read(self, iprot):
6010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6012
      return
6013
    iprot.readStructBegin()
6014
    while True:
6015
      (fname, ftype, fid) = iprot.readFieldBegin()
6016
      if ftype == TType.STOP:
6017
        break
6018
      if fid == 0:
6019
        if ftype == TType.BOOL:
6020
          self.success = iprot.readBool();
6021
        else:
6022
          iprot.skip(ftype)
6023
      elif fid == 1:
6024
        if ftype == TType.STRUCT:
6025
          self.ucx = UserContextException()
6026
          self.ucx.read(iprot)
6027
        else:
6028
          iprot.skip(ftype)
6029
      else:
6030
        iprot.skip(ftype)
6031
      iprot.readFieldEnd()
6032
    iprot.readStructEnd()
6033
 
6034
  def write(self, oprot):
6035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6037
      return
559 chandransh 6038
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6039
    if self.success is not None:
94 ashish 6040
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6041
      oprot.writeBool(self.success)
6042
      oprot.writeFieldEnd()
3431 rajveer 6043
    if self.ucx is not None:
94 ashish 6044
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6045
      self.ucx.write(oprot)
6046
      oprot.writeFieldEnd()
6047
    oprot.writeFieldStop()
6048
    oprot.writeStructEnd()
6049
 
3431 rajveer 6050
  def validate(self):
6051
    return
6052
 
6053
 
94 ashish 6054
  def __repr__(self):
6055
    L = ['%s=%r' % (key, value)
6056
      for key, value in self.__dict__.iteritems()]
6057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6058
 
6059
  def __eq__(self, other):
6060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6061
 
6062
  def __ne__(self, other):
6063
    return not (self == other)
6064
 
559 chandransh 6065
class updatePassword_args:
94 ashish 6066
  """
6067
  Attributes:
559 chandransh 6068
   - userid
594 rajveer 6069
   - oldPassword
6070
   - newPassword
94 ashish 6071
  """
6072
 
6073
  thrift_spec = (
6074
    None, # 0
559 chandransh 6075
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6076
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6077
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6078
  )
6079
 
594 rajveer 6080
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6081
    self.userid = userid
594 rajveer 6082
    self.oldPassword = oldPassword
6083
    self.newPassword = newPassword
94 ashish 6084
 
6085
  def read(self, iprot):
6086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6088
      return
6089
    iprot.readStructBegin()
6090
    while True:
6091
      (fname, ftype, fid) = iprot.readFieldBegin()
6092
      if ftype == TType.STOP:
6093
        break
6094
      if fid == 1:
6095
        if ftype == TType.I64:
559 chandransh 6096
          self.userid = iprot.readI64();
94 ashish 6097
        else:
6098
          iprot.skip(ftype)
6099
      elif fid == 2:
559 chandransh 6100
        if ftype == TType.STRING:
594 rajveer 6101
          self.oldPassword = iprot.readString();
94 ashish 6102
        else:
6103
          iprot.skip(ftype)
594 rajveer 6104
      elif fid == 3:
6105
        if ftype == TType.STRING:
6106
          self.newPassword = iprot.readString();
6107
        else:
6108
          iprot.skip(ftype)
94 ashish 6109
      else:
6110
        iprot.skip(ftype)
6111
      iprot.readFieldEnd()
6112
    iprot.readStructEnd()
6113
 
6114
  def write(self, oprot):
6115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6117
      return
559 chandransh 6118
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6119
    if self.userid is not None:
559 chandransh 6120
      oprot.writeFieldBegin('userid', TType.I64, 1)
6121
      oprot.writeI64(self.userid)
94 ashish 6122
      oprot.writeFieldEnd()
3431 rajveer 6123
    if self.oldPassword is not None:
594 rajveer 6124
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6125
      oprot.writeString(self.oldPassword)
94 ashish 6126
      oprot.writeFieldEnd()
3431 rajveer 6127
    if self.newPassword is not None:
594 rajveer 6128
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6129
      oprot.writeString(self.newPassword)
6130
      oprot.writeFieldEnd()
94 ashish 6131
    oprot.writeFieldStop()
6132
    oprot.writeStructEnd()
6133
 
3431 rajveer 6134
  def validate(self):
6135
    return
6136
 
6137
 
94 ashish 6138
  def __repr__(self):
6139
    L = ['%s=%r' % (key, value)
6140
      for key, value in self.__dict__.iteritems()]
6141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6142
 
6143
  def __eq__(self, other):
6144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6145
 
6146
  def __ne__(self, other):
6147
    return not (self == other)
6148
 
559 chandransh 6149
class updatePassword_result:
94 ashish 6150
  """
6151
  Attributes:
6152
   - success
6153
   - ucx
6154
  """
6155
 
6156
  thrift_spec = (
6157
    (0, TType.BOOL, 'success', None, None, ), # 0
6158
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6159
  )
6160
 
6161
  def __init__(self, success=None, ucx=None,):
6162
    self.success = success
6163
    self.ucx = ucx
6164
 
6165
  def read(self, iprot):
6166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6168
      return
6169
    iprot.readStructBegin()
6170
    while True:
6171
      (fname, ftype, fid) = iprot.readFieldBegin()
6172
      if ftype == TType.STOP:
6173
        break
6174
      if fid == 0:
6175
        if ftype == TType.BOOL:
6176
          self.success = iprot.readBool();
6177
        else:
6178
          iprot.skip(ftype)
6179
      elif fid == 1:
6180
        if ftype == TType.STRUCT:
6181
          self.ucx = UserContextException()
6182
          self.ucx.read(iprot)
6183
        else:
6184
          iprot.skip(ftype)
6185
      else:
6186
        iprot.skip(ftype)
6187
      iprot.readFieldEnd()
6188
    iprot.readStructEnd()
6189
 
6190
  def write(self, oprot):
6191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6193
      return
559 chandransh 6194
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6195
    if self.success is not None:
94 ashish 6196
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6197
      oprot.writeBool(self.success)
6198
      oprot.writeFieldEnd()
3431 rajveer 6199
    if self.ucx is not None:
94 ashish 6200
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6201
      self.ucx.write(oprot)
6202
      oprot.writeFieldEnd()
6203
    oprot.writeFieldStop()
6204
    oprot.writeStructEnd()
6205
 
3431 rajveer 6206
  def validate(self):
6207
    return
6208
 
6209
 
94 ashish 6210
  def __repr__(self):
6211
    L = ['%s=%r' % (key, value)
6212
      for key, value in self.__dict__.iteritems()]
6213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6214
 
6215
  def __eq__(self, other):
6216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6217
 
6218
  def __ne__(self, other):
6219
    return not (self == other)
6220
 
581 rajveer 6221
class forgotPassword_args:
6222
  """
6223
  Attributes:
6224
   - email
884 rajveer 6225
   - newPassword
581 rajveer 6226
  """
6227
 
6228
  thrift_spec = (
6229
    None, # 0
6230
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6231
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6232
  )
6233
 
884 rajveer 6234
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6235
    self.email = email
884 rajveer 6236
    self.newPassword = newPassword
581 rajveer 6237
 
6238
  def read(self, iprot):
6239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6241
      return
6242
    iprot.readStructBegin()
6243
    while True:
6244
      (fname, ftype, fid) = iprot.readFieldBegin()
6245
      if ftype == TType.STOP:
6246
        break
6247
      if fid == 1:
6248
        if ftype == TType.STRING:
6249
          self.email = iprot.readString();
6250
        else:
6251
          iprot.skip(ftype)
884 rajveer 6252
      elif fid == 2:
6253
        if ftype == TType.STRING:
6254
          self.newPassword = iprot.readString();
6255
        else:
6256
          iprot.skip(ftype)
581 rajveer 6257
      else:
6258
        iprot.skip(ftype)
6259
      iprot.readFieldEnd()
6260
    iprot.readStructEnd()
6261
 
6262
  def write(self, oprot):
6263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6265
      return
6266
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6267
    if self.email is not None:
581 rajveer 6268
      oprot.writeFieldBegin('email', TType.STRING, 1)
6269
      oprot.writeString(self.email)
6270
      oprot.writeFieldEnd()
3431 rajveer 6271
    if self.newPassword is not None:
884 rajveer 6272
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6273
      oprot.writeString(self.newPassword)
6274
      oprot.writeFieldEnd()
581 rajveer 6275
    oprot.writeFieldStop()
6276
    oprot.writeStructEnd()
6277
 
3431 rajveer 6278
  def validate(self):
6279
    return
6280
 
6281
 
581 rajveer 6282
  def __repr__(self):
6283
    L = ['%s=%r' % (key, value)
6284
      for key, value in self.__dict__.iteritems()]
6285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6286
 
6287
  def __eq__(self, other):
6288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6289
 
6290
  def __ne__(self, other):
6291
    return not (self == other)
6292
 
6293
class forgotPassword_result:
6294
  """
6295
  Attributes:
6296
   - success
6297
   - ucx
6298
  """
6299
 
6300
  thrift_spec = (
6301
    (0, TType.BOOL, 'success', None, None, ), # 0
6302
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6303
  )
6304
 
6305
  def __init__(self, success=None, ucx=None,):
6306
    self.success = success
6307
    self.ucx = ucx
6308
 
6309
  def read(self, iprot):
6310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6312
      return
6313
    iprot.readStructBegin()
6314
    while True:
6315
      (fname, ftype, fid) = iprot.readFieldBegin()
6316
      if ftype == TType.STOP:
6317
        break
6318
      if fid == 0:
6319
        if ftype == TType.BOOL:
6320
          self.success = iprot.readBool();
6321
        else:
6322
          iprot.skip(ftype)
6323
      elif fid == 1:
6324
        if ftype == TType.STRUCT:
6325
          self.ucx = UserContextException()
6326
          self.ucx.read(iprot)
6327
        else:
6328
          iprot.skip(ftype)
6329
      else:
6330
        iprot.skip(ftype)
6331
      iprot.readFieldEnd()
6332
    iprot.readStructEnd()
6333
 
6334
  def write(self, oprot):
6335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6337
      return
6338
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6339
    if self.success is not None:
581 rajveer 6340
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6341
      oprot.writeBool(self.success)
6342
      oprot.writeFieldEnd()
3431 rajveer 6343
    if self.ucx is not None:
581 rajveer 6344
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6345
      self.ucx.write(oprot)
6346
      oprot.writeFieldEnd()
6347
    oprot.writeFieldStop()
6348
    oprot.writeStructEnd()
6349
 
3431 rajveer 6350
  def validate(self):
6351
    return
6352
 
6353
 
581 rajveer 6354
  def __repr__(self):
6355
    L = ['%s=%r' % (key, value)
6356
      for key, value in self.__dict__.iteritems()]
6357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6358
 
6359
  def __eq__(self, other):
6360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6361
 
6362
  def __ne__(self, other):
6363
    return not (self == other)
6364
 
594 rajveer 6365
class getAllAddressesForUser_args:
6366
  """
6367
  Attributes:
6368
   - userId
6369
  """
6370
 
6371
  thrift_spec = (
6372
    None, # 0
6373
    (1, TType.I64, 'userId', None, None, ), # 1
6374
  )
6375
 
6376
  def __init__(self, userId=None,):
6377
    self.userId = userId
6378
 
6379
  def read(self, iprot):
6380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6382
      return
6383
    iprot.readStructBegin()
6384
    while True:
6385
      (fname, ftype, fid) = iprot.readFieldBegin()
6386
      if ftype == TType.STOP:
6387
        break
6388
      if fid == 1:
6389
        if ftype == TType.I64:
6390
          self.userId = iprot.readI64();
6391
        else:
6392
          iprot.skip(ftype)
6393
      else:
6394
        iprot.skip(ftype)
6395
      iprot.readFieldEnd()
6396
    iprot.readStructEnd()
6397
 
6398
  def write(self, oprot):
6399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6401
      return
6402
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6403
    if self.userId is not None:
594 rajveer 6404
      oprot.writeFieldBegin('userId', TType.I64, 1)
6405
      oprot.writeI64(self.userId)
6406
      oprot.writeFieldEnd()
6407
    oprot.writeFieldStop()
6408
    oprot.writeStructEnd()
6409
 
3431 rajveer 6410
  def validate(self):
6411
    return
6412
 
6413
 
594 rajveer 6414
  def __repr__(self):
6415
    L = ['%s=%r' % (key, value)
6416
      for key, value in self.__dict__.iteritems()]
6417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6418
 
6419
  def __eq__(self, other):
6420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6421
 
6422
  def __ne__(self, other):
6423
    return not (self == other)
6424
 
6425
class getAllAddressesForUser_result:
6426
  """
6427
  Attributes:
6428
   - success
6429
   - ucx
6430
  """
6431
 
6432
  thrift_spec = (
6433
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6434
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6435
  )
6436
 
6437
  def __init__(self, success=None, ucx=None,):
6438
    self.success = success
6439
    self.ucx = ucx
6440
 
6441
  def read(self, iprot):
6442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6444
      return
6445
    iprot.readStructBegin()
6446
    while True:
6447
      (fname, ftype, fid) = iprot.readFieldBegin()
6448
      if ftype == TType.STOP:
6449
        break
6450
      if fid == 0:
6451
        if ftype == TType.LIST:
6452
          self.success = []
7746 amit.gupta 6453
          (_etype93, _size90) = iprot.readListBegin()
6454
          for _i94 in xrange(_size90):
6455
            _elem95 = Address()
6456
            _elem95.read(iprot)
6457
            self.success.append(_elem95)
594 rajveer 6458
          iprot.readListEnd()
6459
        else:
6460
          iprot.skip(ftype)
6461
      elif fid == 1:
6462
        if ftype == TType.STRUCT:
6463
          self.ucx = UserContextException()
6464
          self.ucx.read(iprot)
6465
        else:
6466
          iprot.skip(ftype)
6467
      else:
6468
        iprot.skip(ftype)
6469
      iprot.readFieldEnd()
6470
    iprot.readStructEnd()
6471
 
6472
  def write(self, oprot):
6473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6475
      return
6476
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6477
    if self.success is not None:
594 rajveer 6478
      oprot.writeFieldBegin('success', TType.LIST, 0)
6479
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 6480
      for iter96 in self.success:
6481
        iter96.write(oprot)
594 rajveer 6482
      oprot.writeListEnd()
6483
      oprot.writeFieldEnd()
3431 rajveer 6484
    if self.ucx is not None:
594 rajveer 6485
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6486
      self.ucx.write(oprot)
6487
      oprot.writeFieldEnd()
6488
    oprot.writeFieldStop()
6489
    oprot.writeStructEnd()
6490
 
3431 rajveer 6491
  def validate(self):
6492
    return
6493
 
6494
 
594 rajveer 6495
  def __repr__(self):
6496
    L = ['%s=%r' % (key, value)
6497
      for key, value in self.__dict__.iteritems()]
6498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6499
 
6500
  def __eq__(self, other):
6501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6502
 
6503
  def __ne__(self, other):
6504
    return not (self == other)
6505
 
1894 vikas 6506
class getAddressById_args:
6507
  """
6508
  Attributes:
6509
   - addressId
6510
  """
6511
 
6512
  thrift_spec = (
6513
    None, # 0
6514
    (1, TType.I64, 'addressId', None, None, ), # 1
6515
  )
6516
 
6517
  def __init__(self, addressId=None,):
6518
    self.addressId = addressId
6519
 
6520
  def read(self, iprot):
6521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6523
      return
6524
    iprot.readStructBegin()
6525
    while True:
6526
      (fname, ftype, fid) = iprot.readFieldBegin()
6527
      if ftype == TType.STOP:
6528
        break
6529
      if fid == 1:
6530
        if ftype == TType.I64:
6531
          self.addressId = iprot.readI64();
6532
        else:
6533
          iprot.skip(ftype)
6534
      else:
6535
        iprot.skip(ftype)
6536
      iprot.readFieldEnd()
6537
    iprot.readStructEnd()
6538
 
6539
  def write(self, oprot):
6540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6542
      return
6543
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6544
    if self.addressId is not None:
1894 vikas 6545
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6546
      oprot.writeI64(self.addressId)
6547
      oprot.writeFieldEnd()
6548
    oprot.writeFieldStop()
6549
    oprot.writeStructEnd()
6550
 
3431 rajveer 6551
  def validate(self):
6552
    return
6553
 
6554
 
1894 vikas 6555
  def __repr__(self):
6556
    L = ['%s=%r' % (key, value)
6557
      for key, value in self.__dict__.iteritems()]
6558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6559
 
6560
  def __eq__(self, other):
6561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6562
 
6563
  def __ne__(self, other):
6564
    return not (self == other)
6565
 
6566
class getAddressById_result:
6567
  """
6568
  Attributes:
6569
   - success
6570
   - ucx
6571
  """
6572
 
6573
  thrift_spec = (
6574
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6575
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6576
  )
6577
 
6578
  def __init__(self, success=None, ucx=None,):
6579
    self.success = success
6580
    self.ucx = ucx
6581
 
6582
  def read(self, iprot):
6583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6585
      return
6586
    iprot.readStructBegin()
6587
    while True:
6588
      (fname, ftype, fid) = iprot.readFieldBegin()
6589
      if ftype == TType.STOP:
6590
        break
6591
      if fid == 0:
6592
        if ftype == TType.STRUCT:
6593
          self.success = Address()
6594
          self.success.read(iprot)
6595
        else:
6596
          iprot.skip(ftype)
6597
      elif fid == 1:
6598
        if ftype == TType.STRUCT:
6599
          self.ucx = UserContextException()
6600
          self.ucx.read(iprot)
6601
        else:
6602
          iprot.skip(ftype)
6603
      else:
6604
        iprot.skip(ftype)
6605
      iprot.readFieldEnd()
6606
    iprot.readStructEnd()
6607
 
6608
  def write(self, oprot):
6609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6611
      return
6612
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6613
    if self.success is not None:
1894 vikas 6614
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6615
      self.success.write(oprot)
6616
      oprot.writeFieldEnd()
3431 rajveer 6617
    if self.ucx is not None:
1894 vikas 6618
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6619
      self.ucx.write(oprot)
6620
      oprot.writeFieldEnd()
6621
    oprot.writeFieldStop()
6622
    oprot.writeStructEnd()
6623
 
3431 rajveer 6624
  def validate(self):
6625
    return
6626
 
6627
 
1894 vikas 6628
  def __repr__(self):
6629
    L = ['%s=%r' % (key, value)
6630
      for key, value in self.__dict__.iteritems()]
6631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6632
 
6633
  def __eq__(self, other):
6634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6635
 
6636
  def __ne__(self, other):
6637
    return not (self == other)
6638
 
594 rajveer 6639
class getDefaultAddressId_args:
6640
  """
6641
  Attributes:
6642
   - userId
6643
  """
6644
 
6645
  thrift_spec = (
6646
    None, # 0
6647
    (1, TType.I64, 'userId', None, None, ), # 1
6648
  )
6649
 
6650
  def __init__(self, userId=None,):
6651
    self.userId = userId
6652
 
6653
  def read(self, iprot):
6654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6656
      return
6657
    iprot.readStructBegin()
6658
    while True:
6659
      (fname, ftype, fid) = iprot.readFieldBegin()
6660
      if ftype == TType.STOP:
6661
        break
6662
      if fid == 1:
6663
        if ftype == TType.I64:
6664
          self.userId = iprot.readI64();
6665
        else:
6666
          iprot.skip(ftype)
6667
      else:
6668
        iprot.skip(ftype)
6669
      iprot.readFieldEnd()
6670
    iprot.readStructEnd()
6671
 
6672
  def write(self, oprot):
6673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6675
      return
6676
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6677
    if self.userId is not None:
594 rajveer 6678
      oprot.writeFieldBegin('userId', TType.I64, 1)
6679
      oprot.writeI64(self.userId)
6680
      oprot.writeFieldEnd()
6681
    oprot.writeFieldStop()
6682
    oprot.writeStructEnd()
6683
 
3431 rajveer 6684
  def validate(self):
6685
    return
6686
 
6687
 
594 rajveer 6688
  def __repr__(self):
6689
    L = ['%s=%r' % (key, value)
6690
      for key, value in self.__dict__.iteritems()]
6691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6692
 
6693
  def __eq__(self, other):
6694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6695
 
6696
  def __ne__(self, other):
6697
    return not (self == other)
6698
 
6699
class getDefaultAddressId_result:
6700
  """
6701
  Attributes:
6702
   - success
6703
   - ucx
6704
  """
6705
 
6706
  thrift_spec = (
6707
    (0, TType.I64, 'success', None, None, ), # 0
6708
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6709
  )
6710
 
6711
  def __init__(self, success=None, ucx=None,):
6712
    self.success = success
6713
    self.ucx = ucx
6714
 
6715
  def read(self, iprot):
6716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6718
      return
6719
    iprot.readStructBegin()
6720
    while True:
6721
      (fname, ftype, fid) = iprot.readFieldBegin()
6722
      if ftype == TType.STOP:
6723
        break
6724
      if fid == 0:
6725
        if ftype == TType.I64:
6726
          self.success = iprot.readI64();
6727
        else:
6728
          iprot.skip(ftype)
6729
      elif fid == 1:
6730
        if ftype == TType.STRUCT:
6731
          self.ucx = UserContextException()
6732
          self.ucx.read(iprot)
6733
        else:
6734
          iprot.skip(ftype)
6735
      else:
6736
        iprot.skip(ftype)
6737
      iprot.readFieldEnd()
6738
    iprot.readStructEnd()
6739
 
6740
  def write(self, oprot):
6741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6743
      return
6744
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6745
    if self.success is not None:
594 rajveer 6746
      oprot.writeFieldBegin('success', TType.I64, 0)
6747
      oprot.writeI64(self.success)
6748
      oprot.writeFieldEnd()
3431 rajveer 6749
    if self.ucx is not None:
594 rajveer 6750
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6751
      self.ucx.write(oprot)
6752
      oprot.writeFieldEnd()
6753
    oprot.writeFieldStop()
6754
    oprot.writeStructEnd()
6755
 
3431 rajveer 6756
  def validate(self):
6757
    return
6758
 
6759
 
594 rajveer 6760
  def __repr__(self):
6761
    L = ['%s=%r' % (key, value)
6762
      for key, value in self.__dict__.iteritems()]
6763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6764
 
6765
  def __eq__(self, other):
6766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6767
 
6768
  def __ne__(self, other):
6769
    return not (self == other)
6770
 
785 rajveer 6771
class getDefaultPincode_args:
6772
  """
6773
  Attributes:
6774
   - userId
6775
  """
6776
 
6777
  thrift_spec = (
6778
    None, # 0
6779
    (1, TType.I64, 'userId', None, None, ), # 1
6780
  )
6781
 
6782
  def __init__(self, userId=None,):
6783
    self.userId = userId
6784
 
6785
  def read(self, iprot):
6786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6788
      return
6789
    iprot.readStructBegin()
6790
    while True:
6791
      (fname, ftype, fid) = iprot.readFieldBegin()
6792
      if ftype == TType.STOP:
6793
        break
6794
      if fid == 1:
6795
        if ftype == TType.I64:
6796
          self.userId = iprot.readI64();
6797
        else:
6798
          iprot.skip(ftype)
6799
      else:
6800
        iprot.skip(ftype)
6801
      iprot.readFieldEnd()
6802
    iprot.readStructEnd()
6803
 
6804
  def write(self, oprot):
6805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6807
      return
6808
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6809
    if self.userId is not None:
785 rajveer 6810
      oprot.writeFieldBegin('userId', TType.I64, 1)
6811
      oprot.writeI64(self.userId)
6812
      oprot.writeFieldEnd()
6813
    oprot.writeFieldStop()
6814
    oprot.writeStructEnd()
6815
 
3431 rajveer 6816
  def validate(self):
6817
    return
6818
 
6819
 
785 rajveer 6820
  def __repr__(self):
6821
    L = ['%s=%r' % (key, value)
6822
      for key, value in self.__dict__.iteritems()]
6823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6824
 
6825
  def __eq__(self, other):
6826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6827
 
6828
  def __ne__(self, other):
6829
    return not (self == other)
6830
 
6831
class getDefaultPincode_result:
6832
  """
6833
  Attributes:
6834
   - success
6835
   - ucx
6836
  """
6837
 
6838
  thrift_spec = (
6839
    (0, TType.STRING, 'success', None, None, ), # 0
6840
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6841
  )
6842
 
6843
  def __init__(self, success=None, ucx=None,):
6844
    self.success = success
6845
    self.ucx = ucx
6846
 
6847
  def read(self, iprot):
6848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6850
      return
6851
    iprot.readStructBegin()
6852
    while True:
6853
      (fname, ftype, fid) = iprot.readFieldBegin()
6854
      if ftype == TType.STOP:
6855
        break
6856
      if fid == 0:
6857
        if ftype == TType.STRING:
6858
          self.success = iprot.readString();
6859
        else:
6860
          iprot.skip(ftype)
6861
      elif fid == 1:
6862
        if ftype == TType.STRUCT:
6863
          self.ucx = UserContextException()
6864
          self.ucx.read(iprot)
6865
        else:
6866
          iprot.skip(ftype)
6867
      else:
6868
        iprot.skip(ftype)
6869
      iprot.readFieldEnd()
6870
    iprot.readStructEnd()
6871
 
6872
  def write(self, oprot):
6873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6875
      return
6876
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6877
    if self.success is not None:
785 rajveer 6878
      oprot.writeFieldBegin('success', TType.STRING, 0)
6879
      oprot.writeString(self.success)
6880
      oprot.writeFieldEnd()
3431 rajveer 6881
    if self.ucx is not None:
785 rajveer 6882
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6883
      self.ucx.write(oprot)
6884
      oprot.writeFieldEnd()
6885
    oprot.writeFieldStop()
6886
    oprot.writeStructEnd()
6887
 
3431 rajveer 6888
  def validate(self):
6889
    return
6890
 
6891
 
785 rajveer 6892
  def __repr__(self):
6893
    L = ['%s=%r' % (key, value)
6894
      for key, value in self.__dict__.iteritems()]
6895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6896
 
6897
  def __eq__(self, other):
6898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6899
 
6900
  def __ne__(self, other):
6901
    return not (self == other)
6902
 
1274 varun.gupt 6903
class saveUserCommunication_args:
6904
  """
6905
  Attributes:
6906
   - userId
6907
   - replyTo
6908
   - communicationType
6909
   - orderId
6910
   - airwaybillNo
6911
   - productName
6912
   - subject
6913
   - message
6914
  """
6915
 
6916
  thrift_spec = (
6917
    None, # 0
6918
    (1, TType.I64, 'userId', None, None, ), # 1
6919
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6920
    (3, TType.I64, 'communicationType', None, None, ), # 3
6921
    (4, TType.I64, 'orderId', None, None, ), # 4
6922
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6923
    (6, TType.STRING, 'productName', None, None, ), # 6
6924
    (7, TType.STRING, 'subject', None, None, ), # 7
6925
    (8, TType.STRING, 'message', None, None, ), # 8
6926
  )
6927
 
6928
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6929
    self.userId = userId
6930
    self.replyTo = replyTo
6931
    self.communicationType = communicationType
6932
    self.orderId = orderId
6933
    self.airwaybillNo = airwaybillNo
6934
    self.productName = productName
6935
    self.subject = subject
6936
    self.message = message
6937
 
6938
  def read(self, iprot):
6939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6941
      return
6942
    iprot.readStructBegin()
6943
    while True:
6944
      (fname, ftype, fid) = iprot.readFieldBegin()
6945
      if ftype == TType.STOP:
6946
        break
6947
      if fid == 1:
6948
        if ftype == TType.I64:
6949
          self.userId = iprot.readI64();
6950
        else:
6951
          iprot.skip(ftype)
6952
      elif fid == 2:
6953
        if ftype == TType.STRING:
6954
          self.replyTo = iprot.readString();
6955
        else:
6956
          iprot.skip(ftype)
6957
      elif fid == 3:
6958
        if ftype == TType.I64:
6959
          self.communicationType = iprot.readI64();
6960
        else:
6961
          iprot.skip(ftype)
6962
      elif fid == 4:
6963
        if ftype == TType.I64:
6964
          self.orderId = iprot.readI64();
6965
        else:
6966
          iprot.skip(ftype)
6967
      elif fid == 5:
6968
        if ftype == TType.STRING:
6969
          self.airwaybillNo = iprot.readString();
6970
        else:
6971
          iprot.skip(ftype)
6972
      elif fid == 6:
6973
        if ftype == TType.STRING:
6974
          self.productName = iprot.readString();
6975
        else:
6976
          iprot.skip(ftype)
6977
      elif fid == 7:
6978
        if ftype == TType.STRING:
6979
          self.subject = iprot.readString();
6980
        else:
6981
          iprot.skip(ftype)
6982
      elif fid == 8:
6983
        if ftype == TType.STRING:
6984
          self.message = iprot.readString();
6985
        else:
6986
          iprot.skip(ftype)
6987
      else:
6988
        iprot.skip(ftype)
6989
      iprot.readFieldEnd()
6990
    iprot.readStructEnd()
6991
 
6992
  def write(self, oprot):
6993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6995
      return
6996
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6997
    if self.userId is not None:
1274 varun.gupt 6998
      oprot.writeFieldBegin('userId', TType.I64, 1)
6999
      oprot.writeI64(self.userId)
7000
      oprot.writeFieldEnd()
3431 rajveer 7001
    if self.replyTo is not None:
1274 varun.gupt 7002
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7003
      oprot.writeString(self.replyTo)
7004
      oprot.writeFieldEnd()
3431 rajveer 7005
    if self.communicationType is not None:
1274 varun.gupt 7006
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7007
      oprot.writeI64(self.communicationType)
7008
      oprot.writeFieldEnd()
3431 rajveer 7009
    if self.orderId is not None:
1274 varun.gupt 7010
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7011
      oprot.writeI64(self.orderId)
7012
      oprot.writeFieldEnd()
3431 rajveer 7013
    if self.airwaybillNo is not None:
1274 varun.gupt 7014
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7015
      oprot.writeString(self.airwaybillNo)
7016
      oprot.writeFieldEnd()
3431 rajveer 7017
    if self.productName is not None:
1274 varun.gupt 7018
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7019
      oprot.writeString(self.productName)
7020
      oprot.writeFieldEnd()
3431 rajveer 7021
    if self.subject is not None:
1274 varun.gupt 7022
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7023
      oprot.writeString(self.subject)
7024
      oprot.writeFieldEnd()
3431 rajveer 7025
    if self.message is not None:
1274 varun.gupt 7026
      oprot.writeFieldBegin('message', TType.STRING, 8)
7027
      oprot.writeString(self.message)
7028
      oprot.writeFieldEnd()
7029
    oprot.writeFieldStop()
7030
    oprot.writeStructEnd()
7031
 
3431 rajveer 7032
  def validate(self):
7033
    return
7034
 
7035
 
1274 varun.gupt 7036
  def __repr__(self):
7037
    L = ['%s=%r' % (key, value)
7038
      for key, value in self.__dict__.iteritems()]
7039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7040
 
7041
  def __eq__(self, other):
7042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7043
 
7044
  def __ne__(self, other):
7045
    return not (self == other)
7046
 
7047
class saveUserCommunication_result:
7048
  """
7049
  Attributes:
7050
   - success
7051
   - ucx
7052
  """
7053
 
7054
  thrift_spec = (
7055
    (0, TType.BOOL, 'success', None, None, ), # 0
7056
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7057
  )
7058
 
7059
  def __init__(self, success=None, ucx=None,):
7060
    self.success = success
7061
    self.ucx = ucx
7062
 
7063
  def read(self, iprot):
7064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7066
      return
7067
    iprot.readStructBegin()
7068
    while True:
7069
      (fname, ftype, fid) = iprot.readFieldBegin()
7070
      if ftype == TType.STOP:
7071
        break
7072
      if fid == 0:
7073
        if ftype == TType.BOOL:
7074
          self.success = iprot.readBool();
7075
        else:
7076
          iprot.skip(ftype)
7077
      elif fid == 1:
7078
        if ftype == TType.STRUCT:
7079
          self.ucx = UserCommunicationException()
7080
          self.ucx.read(iprot)
7081
        else:
7082
          iprot.skip(ftype)
7083
      else:
7084
        iprot.skip(ftype)
7085
      iprot.readFieldEnd()
7086
    iprot.readStructEnd()
7087
 
7088
  def write(self, oprot):
7089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7091
      return
7092
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7093
    if self.success is not None:
1274 varun.gupt 7094
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7095
      oprot.writeBool(self.success)
7096
      oprot.writeFieldEnd()
3431 rajveer 7097
    if self.ucx is not None:
1274 varun.gupt 7098
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7099
      self.ucx.write(oprot)
7100
      oprot.writeFieldEnd()
7101
    oprot.writeFieldStop()
7102
    oprot.writeStructEnd()
7103
 
3431 rajveer 7104
  def validate(self):
7105
    return
7106
 
7107
 
1274 varun.gupt 7108
  def __repr__(self):
7109
    L = ['%s=%r' % (key, value)
7110
      for key, value in self.__dict__.iteritems()]
7111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7112
 
7113
  def __eq__(self, other):
7114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7115
 
7116
  def __ne__(self, other):
7117
    return not (self == other)
7118
 
1590 varun.gupt 7119
class getUserCommunicationById_args:
7120
  """
7121
  Attributes:
7122
   - id
7123
  """
7124
 
7125
  thrift_spec = (
7126
    None, # 0
7127
    (1, TType.I64, 'id', None, None, ), # 1
7128
  )
7129
 
7130
  def __init__(self, id=None,):
7131
    self.id = id
7132
 
7133
  def read(self, iprot):
7134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7136
      return
7137
    iprot.readStructBegin()
7138
    while True:
7139
      (fname, ftype, fid) = iprot.readFieldBegin()
7140
      if ftype == TType.STOP:
7141
        break
7142
      if fid == 1:
7143
        if ftype == TType.I64:
7144
          self.id = iprot.readI64();
7145
        else:
7146
          iprot.skip(ftype)
7147
      else:
7148
        iprot.skip(ftype)
7149
      iprot.readFieldEnd()
7150
    iprot.readStructEnd()
7151
 
7152
  def write(self, oprot):
7153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7155
      return
7156
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7157
    if self.id is not None:
1590 varun.gupt 7158
      oprot.writeFieldBegin('id', TType.I64, 1)
7159
      oprot.writeI64(self.id)
7160
      oprot.writeFieldEnd()
7161
    oprot.writeFieldStop()
7162
    oprot.writeStructEnd()
7163
 
3431 rajveer 7164
  def validate(self):
7165
    return
7166
 
7167
 
1590 varun.gupt 7168
  def __repr__(self):
7169
    L = ['%s=%r' % (key, value)
7170
      for key, value in self.__dict__.iteritems()]
7171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7172
 
7173
  def __eq__(self, other):
7174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7175
 
7176
  def __ne__(self, other):
7177
    return not (self == other)
7178
 
7179
class getUserCommunicationById_result:
7180
  """
7181
  Attributes:
7182
   - success
7183
   - ucx
7184
  """
7185
 
7186
  thrift_spec = (
7187
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7188
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7189
  )
7190
 
7191
  def __init__(self, success=None, ucx=None,):
7192
    self.success = success
7193
    self.ucx = ucx
7194
 
7195
  def read(self, iprot):
7196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7198
      return
7199
    iprot.readStructBegin()
7200
    while True:
7201
      (fname, ftype, fid) = iprot.readFieldBegin()
7202
      if ftype == TType.STOP:
7203
        break
7204
      if fid == 0:
7205
        if ftype == TType.STRUCT:
7206
          self.success = UserCommunication()
7207
          self.success.read(iprot)
7208
        else:
7209
          iprot.skip(ftype)
7210
      elif fid == 1:
7211
        if ftype == TType.STRUCT:
7212
          self.ucx = UserCommunicationException()
7213
          self.ucx.read(iprot)
7214
        else:
7215
          iprot.skip(ftype)
7216
      else:
7217
        iprot.skip(ftype)
7218
      iprot.readFieldEnd()
7219
    iprot.readStructEnd()
7220
 
7221
  def write(self, oprot):
7222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7224
      return
7225
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7226
    if self.success is not None:
1590 varun.gupt 7227
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7228
      self.success.write(oprot)
7229
      oprot.writeFieldEnd()
3431 rajveer 7230
    if self.ucx is not None:
1590 varun.gupt 7231
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7232
      self.ucx.write(oprot)
7233
      oprot.writeFieldEnd()
7234
    oprot.writeFieldStop()
7235
    oprot.writeStructEnd()
7236
 
3431 rajveer 7237
  def validate(self):
7238
    return
7239
 
7240
 
1590 varun.gupt 7241
  def __repr__(self):
7242
    L = ['%s=%r' % (key, value)
7243
      for key, value in self.__dict__.iteritems()]
7244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7245
 
7246
  def __eq__(self, other):
7247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7248
 
7249
  def __ne__(self, other):
7250
    return not (self == other)
7251
 
7252
class getUserCommunicationByUser_args:
7253
  """
7254
  Attributes:
7255
   - userId
7256
  """
7257
 
7258
  thrift_spec = (
7259
    None, # 0
7260
    (1, TType.I64, 'userId', None, None, ), # 1
7261
  )
7262
 
7263
  def __init__(self, userId=None,):
7264
    self.userId = userId
7265
 
7266
  def read(self, iprot):
7267
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7268
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7269
      return
7270
    iprot.readStructBegin()
7271
    while True:
7272
      (fname, ftype, fid) = iprot.readFieldBegin()
7273
      if ftype == TType.STOP:
7274
        break
7275
      if fid == 1:
7276
        if ftype == TType.I64:
7277
          self.userId = iprot.readI64();
7278
        else:
7279
          iprot.skip(ftype)
7280
      else:
7281
        iprot.skip(ftype)
7282
      iprot.readFieldEnd()
7283
    iprot.readStructEnd()
7284
 
7285
  def write(self, oprot):
7286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7288
      return
7289
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7290
    if self.userId is not None:
1590 varun.gupt 7291
      oprot.writeFieldBegin('userId', TType.I64, 1)
7292
      oprot.writeI64(self.userId)
7293
      oprot.writeFieldEnd()
7294
    oprot.writeFieldStop()
7295
    oprot.writeStructEnd()
7296
 
3431 rajveer 7297
  def validate(self):
7298
    return
7299
 
7300
 
1590 varun.gupt 7301
  def __repr__(self):
7302
    L = ['%s=%r' % (key, value)
7303
      for key, value in self.__dict__.iteritems()]
7304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7305
 
7306
  def __eq__(self, other):
7307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7308
 
7309
  def __ne__(self, other):
7310
    return not (self == other)
7311
 
7312
class getUserCommunicationByUser_result:
7313
  """
7314
  Attributes:
7315
   - success
7316
   - ucx
7317
  """
7318
 
7319
  thrift_spec = (
7320
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7321
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7322
  )
7323
 
7324
  def __init__(self, success=None, ucx=None,):
7325
    self.success = success
7326
    self.ucx = ucx
7327
 
7328
  def read(self, iprot):
7329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7331
      return
7332
    iprot.readStructBegin()
7333
    while True:
7334
      (fname, ftype, fid) = iprot.readFieldBegin()
7335
      if ftype == TType.STOP:
7336
        break
7337
      if fid == 0:
7338
        if ftype == TType.LIST:
7339
          self.success = []
7746 amit.gupta 7340
          (_etype100, _size97) = iprot.readListBegin()
7341
          for _i101 in xrange(_size97):
7342
            _elem102 = UserCommunication()
7343
            _elem102.read(iprot)
7344
            self.success.append(_elem102)
1590 varun.gupt 7345
          iprot.readListEnd()
7346
        else:
7347
          iprot.skip(ftype)
7348
      elif fid == 1:
7349
        if ftype == TType.STRUCT:
7350
          self.ucx = UserCommunicationException()
7351
          self.ucx.read(iprot)
7352
        else:
7353
          iprot.skip(ftype)
7354
      else:
7355
        iprot.skip(ftype)
7356
      iprot.readFieldEnd()
7357
    iprot.readStructEnd()
7358
 
7359
  def write(self, oprot):
7360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7362
      return
7363
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7364
    if self.success is not None:
1590 varun.gupt 7365
      oprot.writeFieldBegin('success', TType.LIST, 0)
7366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 7367
      for iter103 in self.success:
7368
        iter103.write(oprot)
1590 varun.gupt 7369
      oprot.writeListEnd()
7370
      oprot.writeFieldEnd()
3431 rajveer 7371
    if self.ucx is not None:
1590 varun.gupt 7372
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7373
      self.ucx.write(oprot)
7374
      oprot.writeFieldEnd()
7375
    oprot.writeFieldStop()
7376
    oprot.writeStructEnd()
7377
 
3431 rajveer 7378
  def validate(self):
7379
    return
7380
 
7381
 
1590 varun.gupt 7382
  def __repr__(self):
7383
    L = ['%s=%r' % (key, value)
7384
      for key, value in self.__dict__.iteritems()]
7385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7386
 
7387
  def __eq__(self, other):
7388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7389
 
7390
  def __ne__(self, other):
7391
    return not (self == other)
7392
 
7393
class getAllUserCommunications_args:
7394
 
7395
  thrift_spec = (
7396
  )
7397
 
7398
  def read(self, iprot):
7399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7401
      return
7402
    iprot.readStructBegin()
7403
    while True:
7404
      (fname, ftype, fid) = iprot.readFieldBegin()
7405
      if ftype == TType.STOP:
7406
        break
7407
      else:
7408
        iprot.skip(ftype)
7409
      iprot.readFieldEnd()
7410
    iprot.readStructEnd()
7411
 
7412
  def write(self, oprot):
7413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7415
      return
7416
    oprot.writeStructBegin('getAllUserCommunications_args')
7417
    oprot.writeFieldStop()
7418
    oprot.writeStructEnd()
7419
 
3431 rajveer 7420
  def validate(self):
7421
    return
7422
 
7423
 
1590 varun.gupt 7424
  def __repr__(self):
7425
    L = ['%s=%r' % (key, value)
7426
      for key, value in self.__dict__.iteritems()]
7427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7428
 
7429
  def __eq__(self, other):
7430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7431
 
7432
  def __ne__(self, other):
7433
    return not (self == other)
7434
 
7435
class getAllUserCommunications_result:
7436
  """
7437
  Attributes:
7438
   - success
7439
   - ucx
7440
  """
7441
 
7442
  thrift_spec = (
7443
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7444
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7445
  )
7446
 
7447
  def __init__(self, success=None, ucx=None,):
7448
    self.success = success
7449
    self.ucx = ucx
7450
 
7451
  def read(self, iprot):
7452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7454
      return
7455
    iprot.readStructBegin()
7456
    while True:
7457
      (fname, ftype, fid) = iprot.readFieldBegin()
7458
      if ftype == TType.STOP:
7459
        break
7460
      if fid == 0:
7461
        if ftype == TType.LIST:
7462
          self.success = []
7746 amit.gupta 7463
          (_etype107, _size104) = iprot.readListBegin()
7464
          for _i108 in xrange(_size104):
7465
            _elem109 = UserCommunication()
7466
            _elem109.read(iprot)
7467
            self.success.append(_elem109)
1590 varun.gupt 7468
          iprot.readListEnd()
7469
        else:
7470
          iprot.skip(ftype)
7471
      elif fid == 1:
7472
        if ftype == TType.STRUCT:
7473
          self.ucx = UserCommunicationException()
7474
          self.ucx.read(iprot)
7475
        else:
7476
          iprot.skip(ftype)
7477
      else:
7478
        iprot.skip(ftype)
7479
      iprot.readFieldEnd()
7480
    iprot.readStructEnd()
7481
 
7482
  def write(self, oprot):
7483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7485
      return
7486
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7487
    if self.success is not None:
1590 varun.gupt 7488
      oprot.writeFieldBegin('success', TType.LIST, 0)
7489
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 7490
      for iter110 in self.success:
7491
        iter110.write(oprot)
1590 varun.gupt 7492
      oprot.writeListEnd()
7493
      oprot.writeFieldEnd()
3431 rajveer 7494
    if self.ucx is not None:
1590 varun.gupt 7495
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7496
      self.ucx.write(oprot)
7497
      oprot.writeFieldEnd()
7498
    oprot.writeFieldStop()
7499
    oprot.writeStructEnd()
7500
 
3431 rajveer 7501
  def validate(self):
7502
    return
7503
 
7504
 
1590 varun.gupt 7505
  def __repr__(self):
7506
    L = ['%s=%r' % (key, value)
7507
      for key, value in self.__dict__.iteritems()]
7508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7509
 
7510
  def __eq__(self, other):
7511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7512
 
7513
  def __ne__(self, other):
7514
    return not (self == other)
7515
 
5407 amar.kumar 7516
class removeUserCommunication_args:
7517
  """
7518
  Attributes:
7519
   - id
7520
  """
7521
 
7522
  thrift_spec = (
7523
    None, # 0
7524
    (1, TType.I64, 'id', None, None, ), # 1
7525
  )
7526
 
7527
  def __init__(self, id=None,):
7528
    self.id = id
7529
 
7530
  def read(self, iprot):
7531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7533
      return
7534
    iprot.readStructBegin()
7535
    while True:
7536
      (fname, ftype, fid) = iprot.readFieldBegin()
7537
      if ftype == TType.STOP:
7538
        break
7539
      if fid == 1:
7540
        if ftype == TType.I64:
7541
          self.id = iprot.readI64();
7542
        else:
7543
          iprot.skip(ftype)
7544
      else:
7545
        iprot.skip(ftype)
7546
      iprot.readFieldEnd()
7547
    iprot.readStructEnd()
7548
 
7549
  def write(self, oprot):
7550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7552
      return
7553
    oprot.writeStructBegin('removeUserCommunication_args')
7554
    if self.id is not None:
7555
      oprot.writeFieldBegin('id', TType.I64, 1)
7556
      oprot.writeI64(self.id)
7557
      oprot.writeFieldEnd()
7558
    oprot.writeFieldStop()
7559
    oprot.writeStructEnd()
7560
 
7561
  def validate(self):
7562
    return
7563
 
7564
 
7565
  def __repr__(self):
7566
    L = ['%s=%r' % (key, value)
7567
      for key, value in self.__dict__.iteritems()]
7568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7569
 
7570
  def __eq__(self, other):
7571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7572
 
7573
  def __ne__(self, other):
7574
    return not (self == other)
7575
 
7576
class removeUserCommunication_result:
7577
  """
7578
  Attributes:
7579
   - ucx
7580
  """
7581
 
7582
  thrift_spec = (
7583
    None, # 0
7584
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7585
  )
7586
 
7587
  def __init__(self, ucx=None,):
7588
    self.ucx = ucx
7589
 
7590
  def read(self, iprot):
7591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7593
      return
7594
    iprot.readStructBegin()
7595
    while True:
7596
      (fname, ftype, fid) = iprot.readFieldBegin()
7597
      if ftype == TType.STOP:
7598
        break
7599
      if fid == 1:
7600
        if ftype == TType.STRUCT:
7601
          self.ucx = UserCommunicationException()
7602
          self.ucx.read(iprot)
7603
        else:
7604
          iprot.skip(ftype)
7605
      else:
7606
        iprot.skip(ftype)
7607
      iprot.readFieldEnd()
7608
    iprot.readStructEnd()
7609
 
7610
  def write(self, oprot):
7611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7613
      return
7614
    oprot.writeStructBegin('removeUserCommunication_result')
7615
    if self.ucx is not None:
7616
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7617
      self.ucx.write(oprot)
7618
      oprot.writeFieldEnd()
7619
    oprot.writeFieldStop()
7620
    oprot.writeStructEnd()
7621
 
7622
  def validate(self):
7623
    return
7624
 
7625
 
7626
  def __repr__(self):
7627
    L = ['%s=%r' % (key, value)
7628
      for key, value in self.__dict__.iteritems()]
7629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7630
 
7631
  def __eq__(self, other):
7632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7633
 
7634
  def __ne__(self, other):
7635
    return not (self == other)
7636
 
1845 vikas 7637
class createMasterAffiliate_args:
7638
  """
7639
  Attributes:
7640
   - name
1859 vikas 7641
   - addedOn
1845 vikas 7642
  """
7643
 
7644
  thrift_spec = (
7645
    None, # 0
7646
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7647
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7648
  )
7649
 
1859 vikas 7650
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7651
    self.name = name
1859 vikas 7652
    self.addedOn = addedOn
1845 vikas 7653
 
7654
  def read(self, iprot):
7655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7657
      return
7658
    iprot.readStructBegin()
7659
    while True:
7660
      (fname, ftype, fid) = iprot.readFieldBegin()
7661
      if ftype == TType.STOP:
7662
        break
7663
      if fid == 1:
7664
        if ftype == TType.STRING:
7665
          self.name = iprot.readString();
7666
        else:
7667
          iprot.skip(ftype)
1859 vikas 7668
      elif fid == 2:
7669
        if ftype == TType.I64:
7670
          self.addedOn = iprot.readI64();
7671
        else:
7672
          iprot.skip(ftype)
1845 vikas 7673
      else:
7674
        iprot.skip(ftype)
7675
      iprot.readFieldEnd()
7676
    iprot.readStructEnd()
7677
 
7678
  def write(self, oprot):
7679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7681
      return
7682
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7683
    if self.name is not None:
1845 vikas 7684
      oprot.writeFieldBegin('name', TType.STRING, 1)
7685
      oprot.writeString(self.name)
7686
      oprot.writeFieldEnd()
3431 rajveer 7687
    if self.addedOn is not None:
1859 vikas 7688
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7689
      oprot.writeI64(self.addedOn)
7690
      oprot.writeFieldEnd()
1845 vikas 7691
    oprot.writeFieldStop()
7692
    oprot.writeStructEnd()
7693
 
3431 rajveer 7694
  def validate(self):
7695
    return
7696
 
7697
 
1845 vikas 7698
  def __repr__(self):
7699
    L = ['%s=%r' % (key, value)
7700
      for key, value in self.__dict__.iteritems()]
7701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7702
 
7703
  def __eq__(self, other):
7704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7705
 
7706
  def __ne__(self, other):
7707
    return not (self == other)
7708
 
7709
class createMasterAffiliate_result:
7710
  """
7711
  Attributes:
7712
   - success
7713
   - utx
7714
  """
7715
 
7716
  thrift_spec = (
7717
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7718
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7719
  )
7720
 
7721
  def __init__(self, success=None, utx=None,):
7722
    self.success = success
7723
    self.utx = utx
7724
 
7725
  def read(self, iprot):
7726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7728
      return
7729
    iprot.readStructBegin()
7730
    while True:
7731
      (fname, ftype, fid) = iprot.readFieldBegin()
7732
      if ftype == TType.STOP:
7733
        break
7734
      if fid == 0:
7735
        if ftype == TType.STRUCT:
7736
          self.success = MasterAffiliate()
7737
          self.success.read(iprot)
7738
        else:
7739
          iprot.skip(ftype)
7740
      elif fid == 1:
7741
        if ftype == TType.STRUCT:
1996 vikas 7742
          self.utx = UserAffiliateException()
1845 vikas 7743
          self.utx.read(iprot)
7744
        else:
7745
          iprot.skip(ftype)
7746
      else:
7747
        iprot.skip(ftype)
7748
      iprot.readFieldEnd()
7749
    iprot.readStructEnd()
7750
 
7751
  def write(self, oprot):
7752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7754
      return
7755
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7756
    if self.success is not None:
1845 vikas 7757
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7758
      self.success.write(oprot)
7759
      oprot.writeFieldEnd()
3431 rajveer 7760
    if self.utx is not None:
1845 vikas 7761
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7762
      self.utx.write(oprot)
7763
      oprot.writeFieldEnd()
7764
    oprot.writeFieldStop()
7765
    oprot.writeStructEnd()
7766
 
3431 rajveer 7767
  def validate(self):
7768
    return
7769
 
7770
 
1845 vikas 7771
  def __repr__(self):
7772
    L = ['%s=%r' % (key, value)
7773
      for key, value in self.__dict__.iteritems()]
7774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7775
 
7776
  def __eq__(self, other):
7777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7778
 
7779
  def __ne__(self, other):
7780
    return not (self == other)
7781
 
1899 vikas 7782
class getAllMasterAffiliates_args:
7783
 
7784
  thrift_spec = (
7785
  )
7786
 
7787
  def read(self, iprot):
7788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7790
      return
7791
    iprot.readStructBegin()
7792
    while True:
7793
      (fname, ftype, fid) = iprot.readFieldBegin()
7794
      if ftype == TType.STOP:
7795
        break
7796
      else:
7797
        iprot.skip(ftype)
7798
      iprot.readFieldEnd()
7799
    iprot.readStructEnd()
7800
 
7801
  def write(self, oprot):
7802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7804
      return
7805
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7806
    oprot.writeFieldStop()
7807
    oprot.writeStructEnd()
7808
 
3431 rajveer 7809
  def validate(self):
7810
    return
7811
 
7812
 
1899 vikas 7813
  def __repr__(self):
7814
    L = ['%s=%r' % (key, value)
7815
      for key, value in self.__dict__.iteritems()]
7816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7817
 
7818
  def __eq__(self, other):
7819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7820
 
7821
  def __ne__(self, other):
7822
    return not (self == other)
7823
 
7824
class getAllMasterAffiliates_result:
7825
  """
7826
  Attributes:
7827
   - success
7828
   - utx
7829
  """
7830
 
7831
  thrift_spec = (
7832
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7833
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7834
  )
7835
 
7836
  def __init__(self, success=None, utx=None,):
7837
    self.success = success
7838
    self.utx = utx
7839
 
7840
  def read(self, iprot):
7841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7843
      return
7844
    iprot.readStructBegin()
7845
    while True:
7846
      (fname, ftype, fid) = iprot.readFieldBegin()
7847
      if ftype == TType.STOP:
7848
        break
7849
      if fid == 0:
7850
        if ftype == TType.LIST:
7851
          self.success = []
7746 amit.gupta 7852
          (_etype114, _size111) = iprot.readListBegin()
7853
          for _i115 in xrange(_size111):
7854
            _elem116 = MasterAffiliate()
7855
            _elem116.read(iprot)
7856
            self.success.append(_elem116)
1899 vikas 7857
          iprot.readListEnd()
7858
        else:
7859
          iprot.skip(ftype)
7860
      elif fid == 1:
7861
        if ftype == TType.STRUCT:
1996 vikas 7862
          self.utx = UserAffiliateException()
1899 vikas 7863
          self.utx.read(iprot)
7864
        else:
7865
          iprot.skip(ftype)
7866
      else:
7867
        iprot.skip(ftype)
7868
      iprot.readFieldEnd()
7869
    iprot.readStructEnd()
7870
 
7871
  def write(self, oprot):
7872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7874
      return
7875
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7876
    if self.success is not None:
1899 vikas 7877
      oprot.writeFieldBegin('success', TType.LIST, 0)
7878
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 7879
      for iter117 in self.success:
7880
        iter117.write(oprot)
1899 vikas 7881
      oprot.writeListEnd()
7882
      oprot.writeFieldEnd()
3431 rajveer 7883
    if self.utx is not None:
1899 vikas 7884
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7885
      self.utx.write(oprot)
7886
      oprot.writeFieldEnd()
7887
    oprot.writeFieldStop()
7888
    oprot.writeStructEnd()
7889
 
3431 rajveer 7890
  def validate(self):
7891
    return
7892
 
7893
 
1899 vikas 7894
  def __repr__(self):
7895
    L = ['%s=%r' % (key, value)
7896
      for key, value in self.__dict__.iteritems()]
7897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7898
 
7899
  def __eq__(self, other):
7900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7901
 
7902
  def __ne__(self, other):
7903
    return not (self == other)
7904
 
1845 vikas 7905
class getMasterAffiliateById_args:
7906
  """
7907
  Attributes:
7908
   - id
7909
  """
7910
 
7911
  thrift_spec = (
7912
    None, # 0
7913
    (1, TType.I64, 'id', None, None, ), # 1
7914
  )
7915
 
7916
  def __init__(self, id=None,):
7917
    self.id = id
7918
 
7919
  def read(self, iprot):
7920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7922
      return
7923
    iprot.readStructBegin()
7924
    while True:
7925
      (fname, ftype, fid) = iprot.readFieldBegin()
7926
      if ftype == TType.STOP:
7927
        break
7928
      if fid == 1:
7929
        if ftype == TType.I64:
7930
          self.id = iprot.readI64();
7931
        else:
7932
          iprot.skip(ftype)
7933
      else:
7934
        iprot.skip(ftype)
7935
      iprot.readFieldEnd()
7936
    iprot.readStructEnd()
7937
 
7938
  def write(self, oprot):
7939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7941
      return
7942
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7943
    if self.id is not None:
1845 vikas 7944
      oprot.writeFieldBegin('id', TType.I64, 1)
7945
      oprot.writeI64(self.id)
7946
      oprot.writeFieldEnd()
7947
    oprot.writeFieldStop()
7948
    oprot.writeStructEnd()
7949
 
3431 rajveer 7950
  def validate(self):
7951
    return
7952
 
7953
 
1845 vikas 7954
  def __repr__(self):
7955
    L = ['%s=%r' % (key, value)
7956
      for key, value in self.__dict__.iteritems()]
7957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7958
 
7959
  def __eq__(self, other):
7960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7961
 
7962
  def __ne__(self, other):
7963
    return not (self == other)
7964
 
7965
class getMasterAffiliateById_result:
7966
  """
7967
  Attributes:
7968
   - success
7969
   - utx
7970
  """
7971
 
7972
  thrift_spec = (
7973
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7974
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7975
  )
7976
 
7977
  def __init__(self, success=None, utx=None,):
7978
    self.success = success
7979
    self.utx = utx
7980
 
7981
  def read(self, iprot):
7982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7984
      return
7985
    iprot.readStructBegin()
7986
    while True:
7987
      (fname, ftype, fid) = iprot.readFieldBegin()
7988
      if ftype == TType.STOP:
7989
        break
7990
      if fid == 0:
7991
        if ftype == TType.STRUCT:
7992
          self.success = MasterAffiliate()
7993
          self.success.read(iprot)
7994
        else:
7995
          iprot.skip(ftype)
7996
      elif fid == 1:
7997
        if ftype == TType.STRUCT:
1996 vikas 7998
          self.utx = UserAffiliateException()
1845 vikas 7999
          self.utx.read(iprot)
8000
        else:
8001
          iprot.skip(ftype)
8002
      else:
8003
        iprot.skip(ftype)
8004
      iprot.readFieldEnd()
8005
    iprot.readStructEnd()
8006
 
8007
  def write(self, oprot):
8008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8010
      return
8011
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 8012
    if self.success is not None:
1845 vikas 8013
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8014
      self.success.write(oprot)
8015
      oprot.writeFieldEnd()
3431 rajveer 8016
    if self.utx is not None:
1845 vikas 8017
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8018
      self.utx.write(oprot)
8019
      oprot.writeFieldEnd()
8020
    oprot.writeFieldStop()
8021
    oprot.writeStructEnd()
8022
 
3431 rajveer 8023
  def validate(self):
8024
    return
8025
 
8026
 
1845 vikas 8027
  def __repr__(self):
8028
    L = ['%s=%r' % (key, value)
8029
      for key, value in self.__dict__.iteritems()]
8030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8031
 
8032
  def __eq__(self, other):
8033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8034
 
8035
  def __ne__(self, other):
8036
    return not (self == other)
8037
 
8038
class getMasterAffiliateByName_args:
8039
  """
8040
  Attributes:
8041
   - name
8042
  """
8043
 
8044
  thrift_spec = (
8045
    None, # 0
8046
    (1, TType.STRING, 'name', None, None, ), # 1
8047
  )
8048
 
8049
  def __init__(self, name=None,):
8050
    self.name = name
8051
 
8052
  def read(self, iprot):
8053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8055
      return
8056
    iprot.readStructBegin()
8057
    while True:
8058
      (fname, ftype, fid) = iprot.readFieldBegin()
8059
      if ftype == TType.STOP:
8060
        break
8061
      if fid == 1:
8062
        if ftype == TType.STRING:
8063
          self.name = iprot.readString();
8064
        else:
8065
          iprot.skip(ftype)
8066
      else:
8067
        iprot.skip(ftype)
8068
      iprot.readFieldEnd()
8069
    iprot.readStructEnd()
8070
 
8071
  def write(self, oprot):
8072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8074
      return
8075
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8076
    if self.name is not None:
1845 vikas 8077
      oprot.writeFieldBegin('name', TType.STRING, 1)
8078
      oprot.writeString(self.name)
8079
      oprot.writeFieldEnd()
8080
    oprot.writeFieldStop()
8081
    oprot.writeStructEnd()
8082
 
3431 rajveer 8083
  def validate(self):
8084
    return
8085
 
8086
 
1845 vikas 8087
  def __repr__(self):
8088
    L = ['%s=%r' % (key, value)
8089
      for key, value in self.__dict__.iteritems()]
8090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8091
 
8092
  def __eq__(self, other):
8093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8094
 
8095
  def __ne__(self, other):
8096
    return not (self == other)
8097
 
8098
class getMasterAffiliateByName_result:
8099
  """
8100
  Attributes:
8101
   - success
8102
   - utx
8103
  """
8104
 
8105
  thrift_spec = (
8106
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8107
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8108
  )
8109
 
8110
  def __init__(self, success=None, utx=None,):
8111
    self.success = success
8112
    self.utx = utx
8113
 
8114
  def read(self, iprot):
8115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8117
      return
8118
    iprot.readStructBegin()
8119
    while True:
8120
      (fname, ftype, fid) = iprot.readFieldBegin()
8121
      if ftype == TType.STOP:
8122
        break
8123
      if fid == 0:
8124
        if ftype == TType.STRUCT:
8125
          self.success = MasterAffiliate()
8126
          self.success.read(iprot)
8127
        else:
8128
          iprot.skip(ftype)
8129
      elif fid == 1:
8130
        if ftype == TType.STRUCT:
1996 vikas 8131
          self.utx = UserAffiliateException()
1845 vikas 8132
          self.utx.read(iprot)
8133
        else:
8134
          iprot.skip(ftype)
8135
      else:
8136
        iprot.skip(ftype)
8137
      iprot.readFieldEnd()
8138
    iprot.readStructEnd()
8139
 
8140
  def write(self, oprot):
8141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8143
      return
8144
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8145
    if self.success is not None:
1845 vikas 8146
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8147
      self.success.write(oprot)
8148
      oprot.writeFieldEnd()
3431 rajveer 8149
    if self.utx is not None:
1845 vikas 8150
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8151
      self.utx.write(oprot)
8152
      oprot.writeFieldEnd()
8153
    oprot.writeFieldStop()
8154
    oprot.writeStructEnd()
8155
 
3431 rajveer 8156
  def validate(self):
8157
    return
8158
 
8159
 
1845 vikas 8160
  def __repr__(self):
8161
    L = ['%s=%r' % (key, value)
8162
      for key, value in self.__dict__.iteritems()]
8163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8164
 
8165
  def __eq__(self, other):
8166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8167
 
8168
  def __ne__(self, other):
8169
    return not (self == other)
8170
 
8171
class createAffiliate_args:
8172
  """
8173
  Attributes:
8174
   - name
8175
   - url
8176
   - masterAffiliateId
1859 vikas 8177
   - addedOn
1845 vikas 8178
  """
8179
 
8180
  thrift_spec = (
8181
    None, # 0
8182
    (1, TType.STRING, 'name', None, None, ), # 1
8183
    (2, TType.STRING, 'url', None, None, ), # 2
8184
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8185
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8186
  )
8187
 
1859 vikas 8188
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8189
    self.name = name
8190
    self.url = url
8191
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8192
    self.addedOn = addedOn
1845 vikas 8193
 
8194
  def read(self, iprot):
8195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8197
      return
8198
    iprot.readStructBegin()
8199
    while True:
8200
      (fname, ftype, fid) = iprot.readFieldBegin()
8201
      if ftype == TType.STOP:
8202
        break
8203
      if fid == 1:
8204
        if ftype == TType.STRING:
8205
          self.name = iprot.readString();
8206
        else:
8207
          iprot.skip(ftype)
8208
      elif fid == 2:
8209
        if ftype == TType.STRING:
8210
          self.url = iprot.readString();
8211
        else:
8212
          iprot.skip(ftype)
8213
      elif fid == 3:
8214
        if ftype == TType.I64:
8215
          self.masterAffiliateId = iprot.readI64();
8216
        else:
8217
          iprot.skip(ftype)
1859 vikas 8218
      elif fid == 4:
8219
        if ftype == TType.I64:
8220
          self.addedOn = iprot.readI64();
8221
        else:
8222
          iprot.skip(ftype)
1845 vikas 8223
      else:
8224
        iprot.skip(ftype)
8225
      iprot.readFieldEnd()
8226
    iprot.readStructEnd()
8227
 
8228
  def write(self, oprot):
8229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8231
      return
8232
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8233
    if self.name is not None:
1845 vikas 8234
      oprot.writeFieldBegin('name', TType.STRING, 1)
8235
      oprot.writeString(self.name)
8236
      oprot.writeFieldEnd()
3431 rajveer 8237
    if self.url is not None:
1845 vikas 8238
      oprot.writeFieldBegin('url', TType.STRING, 2)
8239
      oprot.writeString(self.url)
8240
      oprot.writeFieldEnd()
3431 rajveer 8241
    if self.masterAffiliateId is not None:
1845 vikas 8242
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8243
      oprot.writeI64(self.masterAffiliateId)
8244
      oprot.writeFieldEnd()
3431 rajveer 8245
    if self.addedOn is not None:
1859 vikas 8246
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8247
      oprot.writeI64(self.addedOn)
8248
      oprot.writeFieldEnd()
1845 vikas 8249
    oprot.writeFieldStop()
8250
    oprot.writeStructEnd()
8251
 
3431 rajveer 8252
  def validate(self):
8253
    return
8254
 
8255
 
1845 vikas 8256
  def __repr__(self):
8257
    L = ['%s=%r' % (key, value)
8258
      for key, value in self.__dict__.iteritems()]
8259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8260
 
8261
  def __eq__(self, other):
8262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8263
 
8264
  def __ne__(self, other):
8265
    return not (self == other)
8266
 
8267
class createAffiliate_result:
8268
  """
8269
  Attributes:
8270
   - success
8271
   - utx
8272
  """
8273
 
8274
  thrift_spec = (
8275
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8276
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8277
  )
8278
 
8279
  def __init__(self, success=None, utx=None,):
8280
    self.success = success
8281
    self.utx = utx
8282
 
8283
  def read(self, iprot):
8284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8286
      return
8287
    iprot.readStructBegin()
8288
    while True:
8289
      (fname, ftype, fid) = iprot.readFieldBegin()
8290
      if ftype == TType.STOP:
8291
        break
8292
      if fid == 0:
8293
        if ftype == TType.STRUCT:
8294
          self.success = Affiliate()
8295
          self.success.read(iprot)
8296
        else:
8297
          iprot.skip(ftype)
8298
      elif fid == 1:
8299
        if ftype == TType.STRUCT:
1996 vikas 8300
          self.utx = UserAffiliateException()
1845 vikas 8301
          self.utx.read(iprot)
8302
        else:
8303
          iprot.skip(ftype)
8304
      else:
8305
        iprot.skip(ftype)
8306
      iprot.readFieldEnd()
8307
    iprot.readStructEnd()
8308
 
8309
  def write(self, oprot):
8310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8312
      return
8313
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8314
    if self.success is not None:
1845 vikas 8315
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8316
      self.success.write(oprot)
8317
      oprot.writeFieldEnd()
3431 rajveer 8318
    if self.utx is not None:
1845 vikas 8319
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8320
      self.utx.write(oprot)
8321
      oprot.writeFieldEnd()
8322
    oprot.writeFieldStop()
8323
    oprot.writeStructEnd()
8324
 
3431 rajveer 8325
  def validate(self):
8326
    return
8327
 
8328
 
1845 vikas 8329
  def __repr__(self):
8330
    L = ['%s=%r' % (key, value)
8331
      for key, value in self.__dict__.iteritems()]
8332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8333
 
8334
  def __eq__(self, other):
8335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8336
 
8337
  def __ne__(self, other):
8338
    return not (self == other)
8339
 
8340
class getAffiliateById_args:
8341
  """
8342
  Attributes:
8343
   - id
8344
  """
8345
 
8346
  thrift_spec = (
8347
    None, # 0
8348
    (1, TType.I64, 'id', None, None, ), # 1
8349
  )
8350
 
8351
  def __init__(self, id=None,):
8352
    self.id = id
8353
 
8354
  def read(self, iprot):
8355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8357
      return
8358
    iprot.readStructBegin()
8359
    while True:
8360
      (fname, ftype, fid) = iprot.readFieldBegin()
8361
      if ftype == TType.STOP:
8362
        break
8363
      if fid == 1:
8364
        if ftype == TType.I64:
8365
          self.id = iprot.readI64();
8366
        else:
8367
          iprot.skip(ftype)
8368
      else:
8369
        iprot.skip(ftype)
8370
      iprot.readFieldEnd()
8371
    iprot.readStructEnd()
8372
 
8373
  def write(self, oprot):
8374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8376
      return
8377
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8378
    if self.id is not None:
1845 vikas 8379
      oprot.writeFieldBegin('id', TType.I64, 1)
8380
      oprot.writeI64(self.id)
8381
      oprot.writeFieldEnd()
8382
    oprot.writeFieldStop()
8383
    oprot.writeStructEnd()
8384
 
3431 rajveer 8385
  def validate(self):
8386
    return
8387
 
8388
 
1845 vikas 8389
  def __repr__(self):
8390
    L = ['%s=%r' % (key, value)
8391
      for key, value in self.__dict__.iteritems()]
8392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8393
 
8394
  def __eq__(self, other):
8395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8396
 
8397
  def __ne__(self, other):
8398
    return not (self == other)
8399
 
8400
class getAffiliateById_result:
8401
  """
8402
  Attributes:
8403
   - success
8404
   - utx
8405
  """
8406
 
8407
  thrift_spec = (
8408
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8409
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8410
  )
8411
 
8412
  def __init__(self, success=None, utx=None,):
8413
    self.success = success
8414
    self.utx = utx
8415
 
8416
  def read(self, iprot):
8417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8419
      return
8420
    iprot.readStructBegin()
8421
    while True:
8422
      (fname, ftype, fid) = iprot.readFieldBegin()
8423
      if ftype == TType.STOP:
8424
        break
8425
      if fid == 0:
8426
        if ftype == TType.STRUCT:
8427
          self.success = Affiliate()
8428
          self.success.read(iprot)
8429
        else:
8430
          iprot.skip(ftype)
8431
      elif fid == 1:
8432
        if ftype == TType.STRUCT:
1996 vikas 8433
          self.utx = UserAffiliateException()
1845 vikas 8434
          self.utx.read(iprot)
8435
        else:
8436
          iprot.skip(ftype)
8437
      else:
8438
        iprot.skip(ftype)
8439
      iprot.readFieldEnd()
8440
    iprot.readStructEnd()
8441
 
8442
  def write(self, oprot):
8443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8445
      return
8446
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8447
    if self.success is not None:
1845 vikas 8448
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8449
      self.success.write(oprot)
8450
      oprot.writeFieldEnd()
3431 rajveer 8451
    if self.utx is not None:
1845 vikas 8452
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8453
      self.utx.write(oprot)
8454
      oprot.writeFieldEnd()
8455
    oprot.writeFieldStop()
8456
    oprot.writeStructEnd()
8457
 
3431 rajveer 8458
  def validate(self):
8459
    return
8460
 
8461
 
1845 vikas 8462
  def __repr__(self):
8463
    L = ['%s=%r' % (key, value)
8464
      for key, value in self.__dict__.iteritems()]
8465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8466
 
8467
  def __eq__(self, other):
8468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8469
 
8470
  def __ne__(self, other):
8471
    return not (self == other)
8472
 
8473
class getAffiliateByName_args:
8474
  """
8475
  Attributes:
8476
   - name
8477
  """
8478
 
8479
  thrift_spec = (
8480
    None, # 0
8481
    (1, TType.STRING, 'name', None, None, ), # 1
8482
  )
8483
 
8484
  def __init__(self, name=None,):
8485
    self.name = name
8486
 
8487
  def read(self, iprot):
8488
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8489
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8490
      return
8491
    iprot.readStructBegin()
8492
    while True:
8493
      (fname, ftype, fid) = iprot.readFieldBegin()
8494
      if ftype == TType.STOP:
8495
        break
8496
      if fid == 1:
8497
        if ftype == TType.STRING:
8498
          self.name = iprot.readString();
8499
        else:
8500
          iprot.skip(ftype)
8501
      else:
8502
        iprot.skip(ftype)
8503
      iprot.readFieldEnd()
8504
    iprot.readStructEnd()
8505
 
8506
  def write(self, oprot):
8507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8509
      return
8510
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8511
    if self.name is not None:
1845 vikas 8512
      oprot.writeFieldBegin('name', TType.STRING, 1)
8513
      oprot.writeString(self.name)
8514
      oprot.writeFieldEnd()
8515
    oprot.writeFieldStop()
8516
    oprot.writeStructEnd()
8517
 
3431 rajveer 8518
  def validate(self):
8519
    return
8520
 
8521
 
1845 vikas 8522
  def __repr__(self):
8523
    L = ['%s=%r' % (key, value)
8524
      for key, value in self.__dict__.iteritems()]
8525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8526
 
8527
  def __eq__(self, other):
8528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8529
 
8530
  def __ne__(self, other):
8531
    return not (self == other)
8532
 
8533
class getAffiliateByName_result:
8534
  """
8535
  Attributes:
8536
   - success
8537
   - utx
8538
  """
8539
 
8540
  thrift_spec = (
8541
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8542
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8543
  )
8544
 
8545
  def __init__(self, success=None, utx=None,):
8546
    self.success = success
8547
    self.utx = utx
8548
 
8549
  def read(self, iprot):
8550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8552
      return
8553
    iprot.readStructBegin()
8554
    while True:
8555
      (fname, ftype, fid) = iprot.readFieldBegin()
8556
      if ftype == TType.STOP:
8557
        break
8558
      if fid == 0:
8559
        if ftype == TType.STRUCT:
8560
          self.success = Affiliate()
8561
          self.success.read(iprot)
8562
        else:
8563
          iprot.skip(ftype)
8564
      elif fid == 1:
8565
        if ftype == TType.STRUCT:
1996 vikas 8566
          self.utx = UserAffiliateException()
1845 vikas 8567
          self.utx.read(iprot)
8568
        else:
8569
          iprot.skip(ftype)
8570
      else:
8571
        iprot.skip(ftype)
8572
      iprot.readFieldEnd()
8573
    iprot.readStructEnd()
8574
 
8575
  def write(self, oprot):
8576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8578
      return
8579
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8580
    if self.success is not None:
1845 vikas 8581
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8582
      self.success.write(oprot)
8583
      oprot.writeFieldEnd()
3431 rajveer 8584
    if self.utx is not None:
1845 vikas 8585
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8586
      self.utx.write(oprot)
8587
      oprot.writeFieldEnd()
8588
    oprot.writeFieldStop()
8589
    oprot.writeStructEnd()
8590
 
3431 rajveer 8591
  def validate(self):
8592
    return
8593
 
8594
 
1845 vikas 8595
  def __repr__(self):
8596
    L = ['%s=%r' % (key, value)
8597
      for key, value in self.__dict__.iteritems()]
8598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8599
 
8600
  def __eq__(self, other):
8601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8602
 
8603
  def __ne__(self, other):
8604
    return not (self == other)
8605
 
1996 vikas 8606
class getTrackerById_args:
1845 vikas 8607
  """
8608
  Attributes:
8609
   - id
8610
  """
8611
 
8612
  thrift_spec = (
8613
    None, # 0
8614
    (1, TType.I64, 'id', None, None, ), # 1
8615
  )
8616
 
8617
  def __init__(self, id=None,):
8618
    self.id = id
8619
 
8620
  def read(self, iprot):
8621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8623
      return
8624
    iprot.readStructBegin()
8625
    while True:
8626
      (fname, ftype, fid) = iprot.readFieldBegin()
8627
      if ftype == TType.STOP:
8628
        break
8629
      if fid == 1:
8630
        if ftype == TType.I64:
8631
          self.id = iprot.readI64();
8632
        else:
8633
          iprot.skip(ftype)
8634
      else:
8635
        iprot.skip(ftype)
8636
      iprot.readFieldEnd()
8637
    iprot.readStructEnd()
8638
 
8639
  def write(self, oprot):
8640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8642
      return
1996 vikas 8643
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8644
    if self.id is not None:
1845 vikas 8645
      oprot.writeFieldBegin('id', TType.I64, 1)
8646
      oprot.writeI64(self.id)
8647
      oprot.writeFieldEnd()
8648
    oprot.writeFieldStop()
8649
    oprot.writeStructEnd()
8650
 
3431 rajveer 8651
  def validate(self):
8652
    return
8653
 
8654
 
1845 vikas 8655
  def __repr__(self):
8656
    L = ['%s=%r' % (key, value)
8657
      for key, value in self.__dict__.iteritems()]
8658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8659
 
8660
  def __eq__(self, other):
8661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8662
 
8663
  def __ne__(self, other):
8664
    return not (self == other)
8665
 
8666
class getTrackerById_result:
8667
  """
8668
  Attributes:
8669
   - success
8670
   - utx
8671
  """
8672
 
8673
  thrift_spec = (
8674
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8675
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8676
  )
8677
 
8678
  def __init__(self, success=None, utx=None,):
8679
    self.success = success
8680
    self.utx = utx
8681
 
8682
  def read(self, iprot):
8683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8685
      return
8686
    iprot.readStructBegin()
8687
    while True:
8688
      (fname, ftype, fid) = iprot.readFieldBegin()
8689
      if ftype == TType.STOP:
8690
        break
8691
      if fid == 0:
8692
        if ftype == TType.STRUCT:
8693
          self.success = Tracker()
8694
          self.success.read(iprot)
8695
        else:
8696
          iprot.skip(ftype)
8697
      elif fid == 1:
8698
        if ftype == TType.STRUCT:
1996 vikas 8699
          self.utx = UserAffiliateException()
1845 vikas 8700
          self.utx.read(iprot)
8701
        else:
8702
          iprot.skip(ftype)
8703
      else:
8704
        iprot.skip(ftype)
8705
      iprot.readFieldEnd()
8706
    iprot.readStructEnd()
8707
 
8708
  def write(self, oprot):
8709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8711
      return
8712
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8713
    if self.success is not None:
1845 vikas 8714
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8715
      self.success.write(oprot)
8716
      oprot.writeFieldEnd()
3431 rajveer 8717
    if self.utx is not None:
1845 vikas 8718
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8719
      self.utx.write(oprot)
8720
      oprot.writeFieldEnd()
8721
    oprot.writeFieldStop()
8722
    oprot.writeStructEnd()
8723
 
3431 rajveer 8724
  def validate(self):
8725
    return
8726
 
8727
 
1845 vikas 8728
  def __repr__(self):
8729
    L = ['%s=%r' % (key, value)
8730
      for key, value in self.__dict__.iteritems()]
8731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8732
 
8733
  def __eq__(self, other):
8734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8735
 
8736
  def __ne__(self, other):
8737
    return not (self == other)
8738
 
1996 vikas 8739
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8740
  """
8741
  Attributes:
1996 vikas 8742
   - id
1845 vikas 8743
  """
8744
 
8745
  thrift_spec = (
8746
    None, # 0
1996 vikas 8747
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8748
  )
8749
 
1996 vikas 8750
  def __init__(self, id=None,):
8751
    self.id = id
1845 vikas 8752
 
8753
  def read(self, iprot):
8754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8756
      return
8757
    iprot.readStructBegin()
8758
    while True:
8759
      (fname, ftype, fid) = iprot.readFieldBegin()
8760
      if ftype == TType.STOP:
8761
        break
8762
      if fid == 1:
8763
        if ftype == TType.I64:
1996 vikas 8764
          self.id = iprot.readI64();
1845 vikas 8765
        else:
8766
          iprot.skip(ftype)
8767
      else:
8768
        iprot.skip(ftype)
8769
      iprot.readFieldEnd()
8770
    iprot.readStructEnd()
8771
 
8772
  def write(self, oprot):
8773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8775
      return
1996 vikas 8776
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8777
    if self.id is not None:
1996 vikas 8778
      oprot.writeFieldBegin('id', TType.I64, 1)
8779
      oprot.writeI64(self.id)
1845 vikas 8780
      oprot.writeFieldEnd()
8781
    oprot.writeFieldStop()
8782
    oprot.writeStructEnd()
8783
 
3431 rajveer 8784
  def validate(self):
8785
    return
8786
 
8787
 
1845 vikas 8788
  def __repr__(self):
8789
    L = ['%s=%r' % (key, value)
8790
      for key, value in self.__dict__.iteritems()]
8791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8792
 
8793
  def __eq__(self, other):
8794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8795
 
8796
  def __ne__(self, other):
8797
    return not (self == other)
8798
 
1996 vikas 8799
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8800
  """
8801
  Attributes:
8802
   - success
8803
   - utx
8804
  """
8805
 
8806
  thrift_spec = (
1996 vikas 8807
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8808
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8809
  )
8810
 
8811
  def __init__(self, success=None, utx=None,):
8812
    self.success = success
8813
    self.utx = utx
8814
 
8815
  def read(self, iprot):
8816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8818
      return
8819
    iprot.readStructBegin()
8820
    while True:
8821
      (fname, ftype, fid) = iprot.readFieldBegin()
8822
      if ftype == TType.STOP:
8823
        break
8824
      if fid == 0:
8825
        if ftype == TType.LIST:
8826
          self.success = []
7746 amit.gupta 8827
          (_etype121, _size118) = iprot.readListBegin()
8828
          for _i122 in xrange(_size118):
8829
            _elem123 = Affiliate()
8830
            _elem123.read(iprot)
8831
            self.success.append(_elem123)
1845 vikas 8832
          iprot.readListEnd()
8833
        else:
8834
          iprot.skip(ftype)
8835
      elif fid == 1:
8836
        if ftype == TType.STRUCT:
1996 vikas 8837
          self.utx = UserAffiliateException()
1845 vikas 8838
          self.utx.read(iprot)
8839
        else:
8840
          iprot.skip(ftype)
8841
      else:
8842
        iprot.skip(ftype)
8843
      iprot.readFieldEnd()
8844
    iprot.readStructEnd()
8845
 
8846
  def write(self, oprot):
8847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8849
      return
1996 vikas 8850
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8851
    if self.success is not None:
1845 vikas 8852
      oprot.writeFieldBegin('success', TType.LIST, 0)
8853
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 8854
      for iter124 in self.success:
8855
        iter124.write(oprot)
1845 vikas 8856
      oprot.writeListEnd()
8857
      oprot.writeFieldEnd()
3431 rajveer 8858
    if self.utx is not None:
1845 vikas 8859
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8860
      self.utx.write(oprot)
8861
      oprot.writeFieldEnd()
8862
    oprot.writeFieldStop()
8863
    oprot.writeStructEnd()
8864
 
3431 rajveer 8865
  def validate(self):
8866
    return
8867
 
8868
 
1845 vikas 8869
  def __repr__(self):
8870
    L = ['%s=%r' % (key, value)
8871
      for key, value in self.__dict__.iteritems()]
8872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8873
 
8874
  def __eq__(self, other):
8875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8876
 
8877
  def __ne__(self, other):
8878
    return not (self == other)
8879
 
8880
class addTrackLog_args:
8881
  """
8882
  Attributes:
1996 vikas 8883
   - affiliateId
1845 vikas 8884
   - userId
8885
   - event
8886
   - url
8887
   - data
1859 vikas 8888
   - addedOn
1845 vikas 8889
  """
8890
 
8891
  thrift_spec = (
8892
    None, # 0
1996 vikas 8893
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8894
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8895
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8896
    (4, TType.STRING, 'url', None, None, ), # 4
8897
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8898
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8899
  )
8900
 
1996 vikas 8901
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8902
    self.affiliateId = affiliateId
1845 vikas 8903
    self.userId = userId
8904
    self.event = event
8905
    self.url = url
8906
    self.data = data
1859 vikas 8907
    self.addedOn = addedOn
1845 vikas 8908
 
8909
  def read(self, iprot):
8910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8912
      return
8913
    iprot.readStructBegin()
8914
    while True:
8915
      (fname, ftype, fid) = iprot.readFieldBegin()
8916
      if ftype == TType.STOP:
8917
        break
8918
      if fid == 1:
8919
        if ftype == TType.I64:
1996 vikas 8920
          self.affiliateId = iprot.readI64();
1845 vikas 8921
        else:
8922
          iprot.skip(ftype)
8923
      elif fid == 2:
8924
        if ftype == TType.I64:
8925
          self.userId = iprot.readI64();
8926
        else:
8927
          iprot.skip(ftype)
8928
      elif fid == 3:
3378 vikas 8929
        if ftype == TType.I32:
8930
          self.event = iprot.readI32();
1845 vikas 8931
        else:
8932
          iprot.skip(ftype)
8933
      elif fid == 4:
8934
        if ftype == TType.STRING:
8935
          self.url = iprot.readString();
8936
        else:
8937
          iprot.skip(ftype)
8938
      elif fid == 5:
8939
        if ftype == TType.STRING:
8940
          self.data = iprot.readString();
8941
        else:
8942
          iprot.skip(ftype)
1859 vikas 8943
      elif fid == 6:
8944
        if ftype == TType.I64:
8945
          self.addedOn = iprot.readI64();
8946
        else:
8947
          iprot.skip(ftype)
1845 vikas 8948
      else:
8949
        iprot.skip(ftype)
8950
      iprot.readFieldEnd()
8951
    iprot.readStructEnd()
8952
 
8953
  def write(self, oprot):
8954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8956
      return
8957
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8958
    if self.affiliateId is not None:
1996 vikas 8959
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8960
      oprot.writeI64(self.affiliateId)
1845 vikas 8961
      oprot.writeFieldEnd()
3431 rajveer 8962
    if self.userId is not None:
1845 vikas 8963
      oprot.writeFieldBegin('userId', TType.I64, 2)
8964
      oprot.writeI64(self.userId)
8965
      oprot.writeFieldEnd()
3431 rajveer 8966
    if self.event is not None:
3378 vikas 8967
      oprot.writeFieldBegin('event', TType.I32, 3)
8968
      oprot.writeI32(self.event)
1845 vikas 8969
      oprot.writeFieldEnd()
3431 rajveer 8970
    if self.url is not None:
1845 vikas 8971
      oprot.writeFieldBegin('url', TType.STRING, 4)
8972
      oprot.writeString(self.url)
8973
      oprot.writeFieldEnd()
3431 rajveer 8974
    if self.data is not None:
1845 vikas 8975
      oprot.writeFieldBegin('data', TType.STRING, 5)
8976
      oprot.writeString(self.data)
8977
      oprot.writeFieldEnd()
3431 rajveer 8978
    if self.addedOn is not None:
1859 vikas 8979
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8980
      oprot.writeI64(self.addedOn)
8981
      oprot.writeFieldEnd()
1845 vikas 8982
    oprot.writeFieldStop()
8983
    oprot.writeStructEnd()
8984
 
3431 rajveer 8985
  def validate(self):
8986
    return
8987
 
8988
 
1845 vikas 8989
  def __repr__(self):
8990
    L = ['%s=%r' % (key, value)
8991
      for key, value in self.__dict__.iteritems()]
8992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8993
 
8994
  def __eq__(self, other):
8995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8996
 
8997
  def __ne__(self, other):
8998
    return not (self == other)
8999
 
9000
class addTrackLog_result:
9001
  """
9002
  Attributes:
9003
   - success
9004
   - utx
9005
  """
9006
 
9007
  thrift_spec = (
9008
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 9009
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9010
  )
9011
 
9012
  def __init__(self, success=None, utx=None,):
9013
    self.success = success
9014
    self.utx = utx
9015
 
9016
  def read(self, iprot):
9017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9019
      return
9020
    iprot.readStructBegin()
9021
    while True:
9022
      (fname, ftype, fid) = iprot.readFieldBegin()
9023
      if ftype == TType.STOP:
9024
        break
9025
      if fid == 0:
9026
        if ftype == TType.I64:
9027
          self.success = iprot.readI64();
9028
        else:
9029
          iprot.skip(ftype)
9030
      elif fid == 1:
9031
        if ftype == TType.STRUCT:
1996 vikas 9032
          self.utx = UserAffiliateException()
1845 vikas 9033
          self.utx.read(iprot)
9034
        else:
9035
          iprot.skip(ftype)
9036
      else:
9037
        iprot.skip(ftype)
9038
      iprot.readFieldEnd()
9039
    iprot.readStructEnd()
9040
 
9041
  def write(self, oprot):
9042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9044
      return
9045
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 9046
    if self.success is not None:
1845 vikas 9047
      oprot.writeFieldBegin('success', TType.I64, 0)
9048
      oprot.writeI64(self.success)
9049
      oprot.writeFieldEnd()
3431 rajveer 9050
    if self.utx is not None:
1845 vikas 9051
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9052
      self.utx.write(oprot)
9053
      oprot.writeFieldEnd()
9054
    oprot.writeFieldStop()
9055
    oprot.writeStructEnd()
9056
 
3431 rajveer 9057
  def validate(self):
9058
    return
9059
 
9060
 
1845 vikas 9061
  def __repr__(self):
9062
    L = ['%s=%r' % (key, value)
9063
      for key, value in self.__dict__.iteritems()]
9064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9065
 
9066
  def __eq__(self, other):
9067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9068
 
9069
  def __ne__(self, other):
9070
    return not (self == other)
9071
 
9072
class getTrackLogById_args:
9073
  """
9074
  Attributes:
9075
   - id
9076
  """
9077
 
9078
  thrift_spec = (
9079
    None, # 0
9080
    (1, TType.I64, 'id', None, None, ), # 1
9081
  )
9082
 
9083
  def __init__(self, id=None,):
9084
    self.id = id
9085
 
9086
  def read(self, iprot):
9087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9089
      return
9090
    iprot.readStructBegin()
9091
    while True:
9092
      (fname, ftype, fid) = iprot.readFieldBegin()
9093
      if ftype == TType.STOP:
9094
        break
9095
      if fid == 1:
9096
        if ftype == TType.I64:
9097
          self.id = iprot.readI64();
9098
        else:
9099
          iprot.skip(ftype)
9100
      else:
9101
        iprot.skip(ftype)
9102
      iprot.readFieldEnd()
9103
    iprot.readStructEnd()
9104
 
9105
  def write(self, oprot):
9106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9108
      return
9109
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9110
    if self.id is not None:
1845 vikas 9111
      oprot.writeFieldBegin('id', TType.I64, 1)
9112
      oprot.writeI64(self.id)
9113
      oprot.writeFieldEnd()
9114
    oprot.writeFieldStop()
9115
    oprot.writeStructEnd()
9116
 
3431 rajveer 9117
  def validate(self):
9118
    return
9119
 
9120
 
1845 vikas 9121
  def __repr__(self):
9122
    L = ['%s=%r' % (key, value)
9123
      for key, value in self.__dict__.iteritems()]
9124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9125
 
9126
  def __eq__(self, other):
9127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9128
 
9129
  def __ne__(self, other):
9130
    return not (self == other)
9131
 
9132
class getTrackLogById_result:
9133
  """
9134
  Attributes:
9135
   - success
9136
   - utx
9137
  """
9138
 
9139
  thrift_spec = (
9140
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9141
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9142
  )
9143
 
9144
  def __init__(self, success=None, utx=None,):
9145
    self.success = success
9146
    self.utx = utx
9147
 
9148
  def read(self, iprot):
9149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9151
      return
9152
    iprot.readStructBegin()
9153
    while True:
9154
      (fname, ftype, fid) = iprot.readFieldBegin()
9155
      if ftype == TType.STOP:
9156
        break
9157
      if fid == 0:
9158
        if ftype == TType.STRUCT:
9159
          self.success = TrackLog()
9160
          self.success.read(iprot)
9161
        else:
9162
          iprot.skip(ftype)
9163
      elif fid == 1:
9164
        if ftype == TType.STRUCT:
1996 vikas 9165
          self.utx = UserAffiliateException()
1845 vikas 9166
          self.utx.read(iprot)
9167
        else:
9168
          iprot.skip(ftype)
9169
      else:
9170
        iprot.skip(ftype)
9171
      iprot.readFieldEnd()
9172
    iprot.readStructEnd()
9173
 
9174
  def write(self, oprot):
9175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9177
      return
9178
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9179
    if self.success is not None:
1845 vikas 9180
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9181
      self.success.write(oprot)
9182
      oprot.writeFieldEnd()
3431 rajveer 9183
    if self.utx is not None:
1845 vikas 9184
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9185
      self.utx.write(oprot)
9186
      oprot.writeFieldEnd()
9187
    oprot.writeFieldStop()
9188
    oprot.writeStructEnd()
9189
 
3431 rajveer 9190
  def validate(self):
9191
    return
9192
 
9193
 
1845 vikas 9194
  def __repr__(self):
9195
    L = ['%s=%r' % (key, value)
9196
      for key, value in self.__dict__.iteritems()]
9197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9198
 
9199
  def __eq__(self, other):
9200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9201
 
9202
  def __ne__(self, other):
9203
    return not (self == other)
9204
 
1996 vikas 9205
class getTrackLogsByAffiliate_args:
1845 vikas 9206
  """
9207
  Attributes:
1996 vikas 9208
   - affiliateId
3293 vikas 9209
   - startDate
9210
   - endDate
1845 vikas 9211
  """
9212
 
9213
  thrift_spec = (
9214
    None, # 0
1996 vikas 9215
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9216
    (2, TType.I64, 'startDate', None, None, ), # 2
9217
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9218
  )
9219
 
3293 vikas 9220
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9221
    self.affiliateId = affiliateId
3293 vikas 9222
    self.startDate = startDate
9223
    self.endDate = endDate
1845 vikas 9224
 
9225
  def read(self, iprot):
9226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9228
      return
9229
    iprot.readStructBegin()
9230
    while True:
9231
      (fname, ftype, fid) = iprot.readFieldBegin()
9232
      if ftype == TType.STOP:
9233
        break
9234
      if fid == 1:
9235
        if ftype == TType.I64:
1996 vikas 9236
          self.affiliateId = iprot.readI64();
1845 vikas 9237
        else:
9238
          iprot.skip(ftype)
3293 vikas 9239
      elif fid == 2:
9240
        if ftype == TType.I64:
9241
          self.startDate = iprot.readI64();
9242
        else:
9243
          iprot.skip(ftype)
9244
      elif fid == 3:
9245
        if ftype == TType.I64:
9246
          self.endDate = iprot.readI64();
9247
        else:
9248
          iprot.skip(ftype)
1845 vikas 9249
      else:
9250
        iprot.skip(ftype)
9251
      iprot.readFieldEnd()
9252
    iprot.readStructEnd()
9253
 
9254
  def write(self, oprot):
9255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9257
      return
1996 vikas 9258
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9259
    if self.affiliateId is not None:
1996 vikas 9260
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9261
      oprot.writeI64(self.affiliateId)
1845 vikas 9262
      oprot.writeFieldEnd()
3431 rajveer 9263
    if self.startDate is not None:
3293 vikas 9264
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9265
      oprot.writeI64(self.startDate)
9266
      oprot.writeFieldEnd()
3431 rajveer 9267
    if self.endDate is not None:
3293 vikas 9268
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9269
      oprot.writeI64(self.endDate)
9270
      oprot.writeFieldEnd()
1845 vikas 9271
    oprot.writeFieldStop()
9272
    oprot.writeStructEnd()
9273
 
3431 rajveer 9274
  def validate(self):
9275
    return
9276
 
9277
 
1845 vikas 9278
  def __repr__(self):
9279
    L = ['%s=%r' % (key, value)
9280
      for key, value in self.__dict__.iteritems()]
9281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9282
 
9283
  def __eq__(self, other):
9284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9285
 
9286
  def __ne__(self, other):
9287
    return not (self == other)
9288
 
1996 vikas 9289
class getTrackLogsByAffiliate_result:
1845 vikas 9290
  """
9291
  Attributes:
9292
   - success
9293
   - utx
9294
  """
9295
 
9296
  thrift_spec = (
9297
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9298
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9299
  )
9300
 
9301
  def __init__(self, success=None, utx=None,):
9302
    self.success = success
9303
    self.utx = utx
9304
 
9305
  def read(self, iprot):
9306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9308
      return
9309
    iprot.readStructBegin()
9310
    while True:
9311
      (fname, ftype, fid) = iprot.readFieldBegin()
9312
      if ftype == TType.STOP:
9313
        break
9314
      if fid == 0:
9315
        if ftype == TType.LIST:
9316
          self.success = []
7746 amit.gupta 9317
          (_etype128, _size125) = iprot.readListBegin()
9318
          for _i129 in xrange(_size125):
9319
            _elem130 = TrackLog()
9320
            _elem130.read(iprot)
9321
            self.success.append(_elem130)
1845 vikas 9322
          iprot.readListEnd()
9323
        else:
9324
          iprot.skip(ftype)
9325
      elif fid == 1:
9326
        if ftype == TType.STRUCT:
1996 vikas 9327
          self.utx = UserAffiliateException()
1845 vikas 9328
          self.utx.read(iprot)
9329
        else:
9330
          iprot.skip(ftype)
9331
      else:
9332
        iprot.skip(ftype)
9333
      iprot.readFieldEnd()
9334
    iprot.readStructEnd()
9335
 
9336
  def write(self, oprot):
9337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9339
      return
1996 vikas 9340
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9341
    if self.success is not None:
1845 vikas 9342
      oprot.writeFieldBegin('success', TType.LIST, 0)
9343
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 9344
      for iter131 in self.success:
9345
        iter131.write(oprot)
1845 vikas 9346
      oprot.writeListEnd()
9347
      oprot.writeFieldEnd()
3431 rajveer 9348
    if self.utx is not None:
1845 vikas 9349
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9350
      self.utx.write(oprot)
9351
      oprot.writeFieldEnd()
9352
    oprot.writeFieldStop()
9353
    oprot.writeStructEnd()
9354
 
3431 rajveer 9355
  def validate(self):
9356
    return
9357
 
9358
 
1845 vikas 9359
  def __repr__(self):
9360
    L = ['%s=%r' % (key, value)
9361
      for key, value in self.__dict__.iteritems()]
9362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9363
 
9364
  def __eq__(self, other):
9365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9366
 
9367
  def __ne__(self, other):
9368
    return not (self == other)
9369
 
9370
class getTrackLogsByUser_args:
9371
  """
9372
  Attributes:
9373
   - userId
9374
  """
9375
 
9376
  thrift_spec = (
9377
    None, # 0
9378
    (1, TType.I64, 'userId', None, None, ), # 1
9379
  )
9380
 
9381
  def __init__(self, userId=None,):
9382
    self.userId = userId
9383
 
9384
  def read(self, iprot):
9385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9387
      return
9388
    iprot.readStructBegin()
9389
    while True:
9390
      (fname, ftype, fid) = iprot.readFieldBegin()
9391
      if ftype == TType.STOP:
9392
        break
9393
      if fid == 1:
9394
        if ftype == TType.I64:
9395
          self.userId = iprot.readI64();
9396
        else:
9397
          iprot.skip(ftype)
9398
      else:
9399
        iprot.skip(ftype)
9400
      iprot.readFieldEnd()
9401
    iprot.readStructEnd()
9402
 
9403
  def write(self, oprot):
9404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9406
      return
9407
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9408
    if self.userId is not None:
1845 vikas 9409
      oprot.writeFieldBegin('userId', TType.I64, 1)
9410
      oprot.writeI64(self.userId)
9411
      oprot.writeFieldEnd()
9412
    oprot.writeFieldStop()
9413
    oprot.writeStructEnd()
9414
 
3431 rajveer 9415
  def validate(self):
9416
    return
9417
 
9418
 
1845 vikas 9419
  def __repr__(self):
9420
    L = ['%s=%r' % (key, value)
9421
      for key, value in self.__dict__.iteritems()]
9422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9423
 
9424
  def __eq__(self, other):
9425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9426
 
9427
  def __ne__(self, other):
9428
    return not (self == other)
9429
 
9430
class getTrackLogsByUser_result:
9431
  """
9432
  Attributes:
9433
   - success
9434
   - utx
9435
  """
9436
 
9437
  thrift_spec = (
9438
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9439
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9440
  )
9441
 
9442
  def __init__(self, success=None, utx=None,):
9443
    self.success = success
9444
    self.utx = utx
9445
 
9446
  def read(self, iprot):
9447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9449
      return
9450
    iprot.readStructBegin()
9451
    while True:
9452
      (fname, ftype, fid) = iprot.readFieldBegin()
9453
      if ftype == TType.STOP:
9454
        break
9455
      if fid == 0:
9456
        if ftype == TType.LIST:
9457
          self.success = []
7746 amit.gupta 9458
          (_etype135, _size132) = iprot.readListBegin()
9459
          for _i136 in xrange(_size132):
9460
            _elem137 = TrackLog()
9461
            _elem137.read(iprot)
9462
            self.success.append(_elem137)
1845 vikas 9463
          iprot.readListEnd()
9464
        else:
9465
          iprot.skip(ftype)
9466
      elif fid == 1:
9467
        if ftype == TType.STRUCT:
1996 vikas 9468
          self.utx = UserAffiliateException()
1845 vikas 9469
          self.utx.read(iprot)
9470
        else:
9471
          iprot.skip(ftype)
9472
      else:
9473
        iprot.skip(ftype)
9474
      iprot.readFieldEnd()
9475
    iprot.readStructEnd()
9476
 
9477
  def write(self, oprot):
9478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9480
      return
9481
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9482
    if self.success is not None:
1845 vikas 9483
      oprot.writeFieldBegin('success', TType.LIST, 0)
9484
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 9485
      for iter138 in self.success:
9486
        iter138.write(oprot)
1845 vikas 9487
      oprot.writeListEnd()
9488
      oprot.writeFieldEnd()
3431 rajveer 9489
    if self.utx is not None:
1845 vikas 9490
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9491
      self.utx.write(oprot)
9492
      oprot.writeFieldEnd()
9493
    oprot.writeFieldStop()
9494
    oprot.writeStructEnd()
9495
 
3431 rajveer 9496
  def validate(self):
9497
    return
9498
 
9499
 
1845 vikas 9500
  def __repr__(self):
9501
    L = ['%s=%r' % (key, value)
9502
      for key, value in self.__dict__.iteritems()]
9503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9504
 
9505
  def __eq__(self, other):
9506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9507
 
9508
  def __ne__(self, other):
9509
    return not (self == other)
9510
 
9511
class getTrackLogs_args:
9512
  """
9513
  Attributes:
9514
   - userId
9515
   - event
9516
   - url
9517
  """
9518
 
9519
  thrift_spec = (
9520
    None, # 0
1996 vikas 9521
    (1, TType.I64, 'userId', None, None, ), # 1
9522
    (2, TType.STRING, 'event', None, None, ), # 2
9523
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9524
  )
9525
 
1996 vikas 9526
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9527
    self.userId = userId
9528
    self.event = event
9529
    self.url = url
9530
 
9531
  def read(self, iprot):
9532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9534
      return
9535
    iprot.readStructBegin()
9536
    while True:
9537
      (fname, ftype, fid) = iprot.readFieldBegin()
9538
      if ftype == TType.STOP:
9539
        break
9540
      if fid == 1:
9541
        if ftype == TType.I64:
1996 vikas 9542
          self.userId = iprot.readI64();
1845 vikas 9543
        else:
9544
          iprot.skip(ftype)
9545
      elif fid == 2:
9546
        if ftype == TType.STRING:
9547
          self.event = iprot.readString();
9548
        else:
9549
          iprot.skip(ftype)
1996 vikas 9550
      elif fid == 3:
1845 vikas 9551
        if ftype == TType.STRING:
9552
          self.url = iprot.readString();
9553
        else:
9554
          iprot.skip(ftype)
9555
      else:
9556
        iprot.skip(ftype)
9557
      iprot.readFieldEnd()
9558
    iprot.readStructEnd()
9559
 
9560
  def write(self, oprot):
9561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9563
      return
9564
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9565
    if self.userId is not None:
1996 vikas 9566
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9567
      oprot.writeI64(self.userId)
9568
      oprot.writeFieldEnd()
3431 rajveer 9569
    if self.event is not None:
1996 vikas 9570
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9571
      oprot.writeString(self.event)
9572
      oprot.writeFieldEnd()
3431 rajveer 9573
    if self.url is not None:
1996 vikas 9574
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9575
      oprot.writeString(self.url)
9576
      oprot.writeFieldEnd()
9577
    oprot.writeFieldStop()
9578
    oprot.writeStructEnd()
9579
 
3431 rajveer 9580
  def validate(self):
9581
    return
9582
 
9583
 
1845 vikas 9584
  def __repr__(self):
9585
    L = ['%s=%r' % (key, value)
9586
      for key, value in self.__dict__.iteritems()]
9587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9588
 
9589
  def __eq__(self, other):
9590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9591
 
9592
  def __ne__(self, other):
9593
    return not (self == other)
9594
 
9595
class getTrackLogs_result:
9596
  """
9597
  Attributes:
9598
   - success
9599
   - utx
9600
  """
9601
 
9602
  thrift_spec = (
9603
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9604
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9605
  )
9606
 
9607
  def __init__(self, success=None, utx=None,):
9608
    self.success = success
9609
    self.utx = utx
9610
 
9611
  def read(self, iprot):
9612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9614
      return
9615
    iprot.readStructBegin()
9616
    while True:
9617
      (fname, ftype, fid) = iprot.readFieldBegin()
9618
      if ftype == TType.STOP:
9619
        break
9620
      if fid == 0:
9621
        if ftype == TType.LIST:
9622
          self.success = []
7746 amit.gupta 9623
          (_etype142, _size139) = iprot.readListBegin()
9624
          for _i143 in xrange(_size139):
9625
            _elem144 = TrackLog()
9626
            _elem144.read(iprot)
9627
            self.success.append(_elem144)
1845 vikas 9628
          iprot.readListEnd()
9629
        else:
9630
          iprot.skip(ftype)
9631
      elif fid == 1:
9632
        if ftype == TType.STRUCT:
1996 vikas 9633
          self.utx = UserAffiliateException()
1845 vikas 9634
          self.utx.read(iprot)
9635
        else:
9636
          iprot.skip(ftype)
9637
      else:
9638
        iprot.skip(ftype)
9639
      iprot.readFieldEnd()
9640
    iprot.readStructEnd()
9641
 
9642
  def write(self, oprot):
9643
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9644
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9645
      return
9646
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9647
    if self.success is not None:
1845 vikas 9648
      oprot.writeFieldBegin('success', TType.LIST, 0)
9649
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 9650
      for iter145 in self.success:
9651
        iter145.write(oprot)
1845 vikas 9652
      oprot.writeListEnd()
9653
      oprot.writeFieldEnd()
3431 rajveer 9654
    if self.utx is not None:
1845 vikas 9655
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9656
      self.utx.write(oprot)
9657
      oprot.writeFieldEnd()
9658
    oprot.writeFieldStop()
9659
    oprot.writeStructEnd()
9660
 
3431 rajveer 9661
  def validate(self):
9662
    return
9663
 
9664
 
1845 vikas 9665
  def __repr__(self):
9666
    L = ['%s=%r' % (key, value)
9667
      for key, value in self.__dict__.iteritems()]
9668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9669
 
9670
  def __eq__(self, other):
9671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9672
 
9673
  def __ne__(self, other):
9674
    return not (self == other)
9675
 
559 chandransh 9676
class getCurrentCart_args:
94 ashish 9677
  """
9678
  Attributes:
559 chandransh 9679
   - userId
9680
  """
9681
 
9682
  thrift_spec = (
9683
    None, # 0
9684
    (1, TType.I64, 'userId', None, None, ), # 1
9685
  )
9686
 
9687
  def __init__(self, userId=None,):
9688
    self.userId = userId
9689
 
9690
  def read(self, iprot):
9691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9693
      return
9694
    iprot.readStructBegin()
9695
    while True:
9696
      (fname, ftype, fid) = iprot.readFieldBegin()
9697
      if ftype == TType.STOP:
9698
        break
9699
      if fid == 1:
9700
        if ftype == TType.I64:
9701
          self.userId = iprot.readI64();
9702
        else:
9703
          iprot.skip(ftype)
9704
      else:
9705
        iprot.skip(ftype)
9706
      iprot.readFieldEnd()
9707
    iprot.readStructEnd()
9708
 
9709
  def write(self, oprot):
9710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9712
      return
9713
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9714
    if self.userId is not None:
559 chandransh 9715
      oprot.writeFieldBegin('userId', TType.I64, 1)
9716
      oprot.writeI64(self.userId)
9717
      oprot.writeFieldEnd()
9718
    oprot.writeFieldStop()
9719
    oprot.writeStructEnd()
9720
 
3431 rajveer 9721
  def validate(self):
9722
    return
9723
 
9724
 
559 chandransh 9725
  def __repr__(self):
9726
    L = ['%s=%r' % (key, value)
9727
      for key, value in self.__dict__.iteritems()]
9728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9729
 
9730
  def __eq__(self, other):
9731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9732
 
9733
  def __ne__(self, other):
9734
    return not (self == other)
9735
 
9736
class getCurrentCart_result:
9737
  """
9738
  Attributes:
94 ashish 9739
   - success
559 chandransh 9740
   - scx
94 ashish 9741
  """
9742
 
9743
  thrift_spec = (
559 chandransh 9744
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9745
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9746
  )
9747
 
559 chandransh 9748
  def __init__(self, success=None, scx=None,):
94 ashish 9749
    self.success = success
559 chandransh 9750
    self.scx = scx
94 ashish 9751
 
9752
  def read(self, iprot):
9753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9755
      return
9756
    iprot.readStructBegin()
9757
    while True:
9758
      (fname, ftype, fid) = iprot.readFieldBegin()
9759
      if ftype == TType.STOP:
9760
        break
9761
      if fid == 0:
559 chandransh 9762
        if ftype == TType.STRUCT:
9763
          self.success = Cart()
9764
          self.success.read(iprot)
94 ashish 9765
        else:
9766
          iprot.skip(ftype)
9767
      elif fid == 1:
9768
        if ftype == TType.STRUCT:
559 chandransh 9769
          self.scx = ShoppingCartException()
9770
          self.scx.read(iprot)
94 ashish 9771
        else:
9772
          iprot.skip(ftype)
9773
      else:
9774
        iprot.skip(ftype)
9775
      iprot.readFieldEnd()
9776
    iprot.readStructEnd()
9777
 
9778
  def write(self, oprot):
9779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9781
      return
559 chandransh 9782
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9783
    if self.success is not None:
559 chandransh 9784
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9785
      self.success.write(oprot)
94 ashish 9786
      oprot.writeFieldEnd()
3431 rajveer 9787
    if self.scx is not None:
559 chandransh 9788
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9789
      self.scx.write(oprot)
94 ashish 9790
      oprot.writeFieldEnd()
9791
    oprot.writeFieldStop()
9792
    oprot.writeStructEnd()
9793
 
3431 rajveer 9794
  def validate(self):
9795
    return
9796
 
9797
 
94 ashish 9798
  def __repr__(self):
9799
    L = ['%s=%r' % (key, value)
9800
      for key, value in self.__dict__.iteritems()]
9801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9802
 
9803
  def __eq__(self, other):
9804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9805
 
9806
  def __ne__(self, other):
9807
    return not (self == other)
9808
 
559 chandransh 9809
class getCart_args:
504 rajveer 9810
  """
9811
  Attributes:
559 chandransh 9812
   - cartId
504 rajveer 9813
  """
9814
 
9815
  thrift_spec = (
9816
    None, # 0
559 chandransh 9817
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9818
  )
9819
 
559 chandransh 9820
  def __init__(self, cartId=None,):
9821
    self.cartId = cartId
504 rajveer 9822
 
9823
  def read(self, iprot):
9824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9826
      return
9827
    iprot.readStructBegin()
9828
    while True:
9829
      (fname, ftype, fid) = iprot.readFieldBegin()
9830
      if ftype == TType.STOP:
9831
        break
9832
      if fid == 1:
9833
        if ftype == TType.I64:
559 chandransh 9834
          self.cartId = iprot.readI64();
504 rajveer 9835
        else:
9836
          iprot.skip(ftype)
9837
      else:
9838
        iprot.skip(ftype)
9839
      iprot.readFieldEnd()
9840
    iprot.readStructEnd()
9841
 
9842
  def write(self, oprot):
9843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9845
      return
559 chandransh 9846
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9847
    if self.cartId is not None:
559 chandransh 9848
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9849
      oprot.writeI64(self.cartId)
504 rajveer 9850
      oprot.writeFieldEnd()
9851
    oprot.writeFieldStop()
9852
    oprot.writeStructEnd()
9853
 
3431 rajveer 9854
  def validate(self):
9855
    return
9856
 
9857
 
504 rajveer 9858
  def __repr__(self):
9859
    L = ['%s=%r' % (key, value)
9860
      for key, value in self.__dict__.iteritems()]
9861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9862
 
9863
  def __eq__(self, other):
9864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9865
 
9866
  def __ne__(self, other):
9867
    return not (self == other)
9868
 
559 chandransh 9869
class getCart_result:
504 rajveer 9870
  """
9871
  Attributes:
9872
   - success
559 chandransh 9873
   - scx
504 rajveer 9874
  """
9875
 
9876
  thrift_spec = (
559 chandransh 9877
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9878
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9879
  )
9880
 
559 chandransh 9881
  def __init__(self, success=None, scx=None,):
504 rajveer 9882
    self.success = success
559 chandransh 9883
    self.scx = scx
504 rajveer 9884
 
9885
  def read(self, iprot):
9886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9888
      return
9889
    iprot.readStructBegin()
9890
    while True:
9891
      (fname, ftype, fid) = iprot.readFieldBegin()
9892
      if ftype == TType.STOP:
9893
        break
9894
      if fid == 0:
559 chandransh 9895
        if ftype == TType.STRUCT:
9896
          self.success = Cart()
9897
          self.success.read(iprot)
504 rajveer 9898
        else:
9899
          iprot.skip(ftype)
9900
      elif fid == 1:
9901
        if ftype == TType.STRUCT:
559 chandransh 9902
          self.scx = ShoppingCartException()
9903
          self.scx.read(iprot)
504 rajveer 9904
        else:
9905
          iprot.skip(ftype)
9906
      else:
9907
        iprot.skip(ftype)
9908
      iprot.readFieldEnd()
9909
    iprot.readStructEnd()
9910
 
9911
  def write(self, oprot):
9912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9914
      return
559 chandransh 9915
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9916
    if self.success is not None:
559 chandransh 9917
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9918
      self.success.write(oprot)
504 rajveer 9919
      oprot.writeFieldEnd()
3431 rajveer 9920
    if self.scx is not None:
559 chandransh 9921
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9922
      self.scx.write(oprot)
504 rajveer 9923
      oprot.writeFieldEnd()
9924
    oprot.writeFieldStop()
9925
    oprot.writeStructEnd()
9926
 
3431 rajveer 9927
  def validate(self):
9928
    return
9929
 
9930
 
504 rajveer 9931
  def __repr__(self):
9932
    L = ['%s=%r' % (key, value)
9933
      for key, value in self.__dict__.iteritems()]
9934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9935
 
9936
  def __eq__(self, other):
9937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9938
 
9939
  def __ne__(self, other):
9940
    return not (self == other)
9941
 
559 chandransh 9942
class getCartsByTime_args:
9943
  """
9944
  Attributes:
9945
   - from_time
9946
   - to_time
9947
   - status
9948
  """
9949
 
9950
  thrift_spec = (
9951
    None, # 0
9952
    (1, TType.I64, 'from_time', None, None, ), # 1
9953
    (2, TType.I64, 'to_time', None, None, ), # 2
9954
    (3, TType.I32, 'status', None, None, ), # 3
9955
  )
9956
 
9957
  def __init__(self, from_time=None, to_time=None, status=None,):
9958
    self.from_time = from_time
9959
    self.to_time = to_time
9960
    self.status = status
9961
 
9962
  def read(self, iprot):
9963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9965
      return
9966
    iprot.readStructBegin()
9967
    while True:
9968
      (fname, ftype, fid) = iprot.readFieldBegin()
9969
      if ftype == TType.STOP:
9970
        break
9971
      if fid == 1:
94 ashish 9972
        if ftype == TType.I64:
559 chandransh 9973
          self.from_time = iprot.readI64();
94 ashish 9974
        else:
9975
          iprot.skip(ftype)
122 ashish 9976
      elif fid == 2:
559 chandransh 9977
        if ftype == TType.I64:
9978
          self.to_time = iprot.readI64();
122 ashish 9979
        else:
9980
          iprot.skip(ftype)
559 chandransh 9981
      elif fid == 3:
9982
        if ftype == TType.I32:
9983
          self.status = iprot.readI32();
9984
        else:
9985
          iprot.skip(ftype)
94 ashish 9986
      else:
9987
        iprot.skip(ftype)
9988
      iprot.readFieldEnd()
9989
    iprot.readStructEnd()
9990
 
9991
  def write(self, oprot):
9992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9994
      return
559 chandransh 9995
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9996
    if self.from_time is not None:
559 chandransh 9997
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9998
      oprot.writeI64(self.from_time)
94 ashish 9999
      oprot.writeFieldEnd()
3431 rajveer 10000
    if self.to_time is not None:
559 chandransh 10001
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10002
      oprot.writeI64(self.to_time)
122 ashish 10003
      oprot.writeFieldEnd()
3431 rajveer 10004
    if self.status is not None:
559 chandransh 10005
      oprot.writeFieldBegin('status', TType.I32, 3)
10006
      oprot.writeI32(self.status)
10007
      oprot.writeFieldEnd()
94 ashish 10008
    oprot.writeFieldStop()
10009
    oprot.writeStructEnd()
10010
 
3431 rajveer 10011
  def validate(self):
10012
    return
10013
 
10014
 
94 ashish 10015
  def __repr__(self):
10016
    L = ['%s=%r' % (key, value)
10017
      for key, value in self.__dict__.iteritems()]
10018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10019
 
10020
  def __eq__(self, other):
10021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10022
 
10023
  def __ne__(self, other):
10024
    return not (self == other)
10025
 
559 chandransh 10026
class getCartsByTime_result:
94 ashish 10027
  """
10028
  Attributes:
10029
   - success
559 chandransh 10030
   - scx
94 ashish 10031
  """
10032
 
10033
  thrift_spec = (
559 chandransh 10034
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10035
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10036
  )
10037
 
559 chandransh 10038
  def __init__(self, success=None, scx=None,):
94 ashish 10039
    self.success = success
559 chandransh 10040
    self.scx = scx
94 ashish 10041
 
10042
  def read(self, iprot):
10043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10045
      return
10046
    iprot.readStructBegin()
10047
    while True:
10048
      (fname, ftype, fid) = iprot.readFieldBegin()
10049
      if ftype == TType.STOP:
10050
        break
10051
      if fid == 0:
559 chandransh 10052
        if ftype == TType.LIST:
10053
          self.success = []
7746 amit.gupta 10054
          (_etype149, _size146) = iprot.readListBegin()
10055
          for _i150 in xrange(_size146):
10056
            _elem151 = Cart()
10057
            _elem151.read(iprot)
10058
            self.success.append(_elem151)
559 chandransh 10059
          iprot.readListEnd()
94 ashish 10060
        else:
10061
          iprot.skip(ftype)
10062
      elif fid == 1:
10063
        if ftype == TType.STRUCT:
559 chandransh 10064
          self.scx = ShoppingCartException()
10065
          self.scx.read(iprot)
94 ashish 10066
        else:
10067
          iprot.skip(ftype)
10068
      else:
10069
        iprot.skip(ftype)
10070
      iprot.readFieldEnd()
10071
    iprot.readStructEnd()
10072
 
10073
  def write(self, oprot):
10074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10076
      return
559 chandransh 10077
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10078
    if self.success is not None:
559 chandransh 10079
      oprot.writeFieldBegin('success', TType.LIST, 0)
10080
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 10081
      for iter152 in self.success:
10082
        iter152.write(oprot)
559 chandransh 10083
      oprot.writeListEnd()
94 ashish 10084
      oprot.writeFieldEnd()
3431 rajveer 10085
    if self.scx is not None:
559 chandransh 10086
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10087
      self.scx.write(oprot)
94 ashish 10088
      oprot.writeFieldEnd()
10089
    oprot.writeFieldStop()
10090
    oprot.writeStructEnd()
10091
 
3431 rajveer 10092
  def validate(self):
10093
    return
10094
 
10095
 
94 ashish 10096
  def __repr__(self):
10097
    L = ['%s=%r' % (key, value)
10098
      for key, value in self.__dict__.iteritems()]
10099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10100
 
10101
  def __eq__(self, other):
10102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10103
 
10104
  def __ne__(self, other):
10105
    return not (self == other)
10106
 
559 chandransh 10107
class addItemToCart_args:
10108
  """
10109
  Attributes:
10110
   - cartId
10111
   - itemId
10112
   - quantity
3557 rajveer 10113
   - sourceId
559 chandransh 10114
  """
10115
 
10116
  thrift_spec = (
10117
    None, # 0
10118
    (1, TType.I64, 'cartId', None, None, ), # 1
10119
    (2, TType.I64, 'itemId', None, None, ), # 2
10120
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10121
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10122
  )
10123
 
3557 rajveer 10124
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10125
    self.cartId = cartId
10126
    self.itemId = itemId
10127
    self.quantity = quantity
3557 rajveer 10128
    self.sourceId = sourceId
559 chandransh 10129
 
10130
  def read(self, iprot):
10131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10133
      return
10134
    iprot.readStructBegin()
10135
    while True:
10136
      (fname, ftype, fid) = iprot.readFieldBegin()
10137
      if ftype == TType.STOP:
10138
        break
10139
      if fid == 1:
10140
        if ftype == TType.I64:
10141
          self.cartId = iprot.readI64();
10142
        else:
10143
          iprot.skip(ftype)
10144
      elif fid == 2:
10145
        if ftype == TType.I64:
10146
          self.itemId = iprot.readI64();
10147
        else:
10148
          iprot.skip(ftype)
10149
      elif fid == 3:
10150
        if ftype == TType.I64:
10151
          self.quantity = iprot.readI64();
10152
        else:
10153
          iprot.skip(ftype)
3557 rajveer 10154
      elif fid == 4:
10155
        if ftype == TType.I64:
10156
          self.sourceId = iprot.readI64();
10157
        else:
10158
          iprot.skip(ftype)
559 chandransh 10159
      else:
10160
        iprot.skip(ftype)
10161
      iprot.readFieldEnd()
10162
    iprot.readStructEnd()
10163
 
10164
  def write(self, oprot):
10165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10167
      return
10168
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10169
    if self.cartId is not None:
559 chandransh 10170
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10171
      oprot.writeI64(self.cartId)
10172
      oprot.writeFieldEnd()
3431 rajveer 10173
    if self.itemId is not None:
559 chandransh 10174
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10175
      oprot.writeI64(self.itemId)
10176
      oprot.writeFieldEnd()
3431 rajveer 10177
    if self.quantity is not None:
559 chandransh 10178
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10179
      oprot.writeI64(self.quantity)
10180
      oprot.writeFieldEnd()
3557 rajveer 10181
    if self.sourceId is not None:
10182
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10183
      oprot.writeI64(self.sourceId)
10184
      oprot.writeFieldEnd()
559 chandransh 10185
    oprot.writeFieldStop()
10186
    oprot.writeStructEnd()
10187
 
3431 rajveer 10188
  def validate(self):
10189
    return
10190
 
10191
 
559 chandransh 10192
  def __repr__(self):
10193
    L = ['%s=%r' % (key, value)
10194
      for key, value in self.__dict__.iteritems()]
10195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10196
 
10197
  def __eq__(self, other):
10198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10199
 
10200
  def __ne__(self, other):
10201
    return not (self == other)
10202
 
10203
class addItemToCart_result:
10204
  """
10205
  Attributes:
2035 rajveer 10206
   - success
559 chandransh 10207
   - scx
10208
  """
10209
 
10210
  thrift_spec = (
2035 rajveer 10211
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10212
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10213
  )
10214
 
2035 rajveer 10215
  def __init__(self, success=None, scx=None,):
10216
    self.success = success
559 chandransh 10217
    self.scx = scx
10218
 
10219
  def read(self, iprot):
10220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10222
      return
10223
    iprot.readStructBegin()
10224
    while True:
10225
      (fname, ftype, fid) = iprot.readFieldBegin()
10226
      if ftype == TType.STOP:
10227
        break
2035 rajveer 10228
      if fid == 0:
10229
        if ftype == TType.STRING:
10230
          self.success = iprot.readString();
10231
        else:
10232
          iprot.skip(ftype)
10233
      elif fid == 1:
559 chandransh 10234
        if ftype == TType.STRUCT:
10235
          self.scx = ShoppingCartException()
10236
          self.scx.read(iprot)
10237
        else:
10238
          iprot.skip(ftype)
10239
      else:
10240
        iprot.skip(ftype)
10241
      iprot.readFieldEnd()
10242
    iprot.readStructEnd()
10243
 
10244
  def write(self, oprot):
10245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10247
      return
10248
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10249
    if self.success is not None:
2035 rajveer 10250
      oprot.writeFieldBegin('success', TType.STRING, 0)
10251
      oprot.writeString(self.success)
10252
      oprot.writeFieldEnd()
3431 rajveer 10253
    if self.scx is not None:
559 chandransh 10254
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10255
      self.scx.write(oprot)
10256
      oprot.writeFieldEnd()
10257
    oprot.writeFieldStop()
10258
    oprot.writeStructEnd()
10259
 
3431 rajveer 10260
  def validate(self):
10261
    return
10262
 
10263
 
559 chandransh 10264
  def __repr__(self):
10265
    L = ['%s=%r' % (key, value)
10266
      for key, value in self.__dict__.iteritems()]
10267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10268
 
10269
  def __eq__(self, other):
10270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10271
 
10272
  def __ne__(self, other):
10273
    return not (self == other)
10274
 
10275
class deleteItemFromCart_args:
10276
  """
10277
  Attributes:
10278
   - cartId
10279
   - itemId
10280
  """
10281
 
10282
  thrift_spec = (
10283
    None, # 0
10284
    (1, TType.I64, 'cartId', None, None, ), # 1
10285
    (2, TType.I64, 'itemId', None, None, ), # 2
10286
  )
10287
 
10288
  def __init__(self, cartId=None, itemId=None,):
10289
    self.cartId = cartId
10290
    self.itemId = itemId
10291
 
10292
  def read(self, iprot):
10293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10295
      return
10296
    iprot.readStructBegin()
10297
    while True:
10298
      (fname, ftype, fid) = iprot.readFieldBegin()
10299
      if ftype == TType.STOP:
10300
        break
10301
      if fid == 1:
10302
        if ftype == TType.I64:
10303
          self.cartId = iprot.readI64();
10304
        else:
10305
          iprot.skip(ftype)
10306
      elif fid == 2:
10307
        if ftype == TType.I64:
10308
          self.itemId = iprot.readI64();
10309
        else:
10310
          iprot.skip(ftype)
10311
      else:
10312
        iprot.skip(ftype)
10313
      iprot.readFieldEnd()
10314
    iprot.readStructEnd()
10315
 
10316
  def write(self, oprot):
10317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10319
      return
10320
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10321
    if self.cartId is not None:
559 chandransh 10322
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10323
      oprot.writeI64(self.cartId)
10324
      oprot.writeFieldEnd()
3431 rajveer 10325
    if self.itemId is not None:
559 chandransh 10326
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10327
      oprot.writeI64(self.itemId)
10328
      oprot.writeFieldEnd()
10329
    oprot.writeFieldStop()
10330
    oprot.writeStructEnd()
10331
 
3431 rajveer 10332
  def validate(self):
10333
    return
10334
 
10335
 
559 chandransh 10336
  def __repr__(self):
10337
    L = ['%s=%r' % (key, value)
10338
      for key, value in self.__dict__.iteritems()]
10339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10340
 
10341
  def __eq__(self, other):
10342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10343
 
10344
  def __ne__(self, other):
10345
    return not (self == other)
10346
 
10347
class deleteItemFromCart_result:
10348
  """
10349
  Attributes:
10350
   - scx
10351
  """
10352
 
10353
  thrift_spec = (
10354
    None, # 0
10355
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10356
  )
10357
 
10358
  def __init__(self, scx=None,):
10359
    self.scx = scx
10360
 
10361
  def read(self, iprot):
10362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10364
      return
10365
    iprot.readStructBegin()
10366
    while True:
10367
      (fname, ftype, fid) = iprot.readFieldBegin()
10368
      if ftype == TType.STOP:
10369
        break
10370
      if fid == 1:
10371
        if ftype == TType.STRUCT:
10372
          self.scx = ShoppingCartException()
10373
          self.scx.read(iprot)
10374
        else:
10375
          iprot.skip(ftype)
10376
      else:
10377
        iprot.skip(ftype)
10378
      iprot.readFieldEnd()
10379
    iprot.readStructEnd()
10380
 
10381
  def write(self, oprot):
10382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10384
      return
10385
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10386
    if self.scx is not None:
559 chandransh 10387
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10388
      self.scx.write(oprot)
10389
      oprot.writeFieldEnd()
10390
    oprot.writeFieldStop()
10391
    oprot.writeStructEnd()
10392
 
3431 rajveer 10393
  def validate(self):
10394
    return
10395
 
10396
 
559 chandransh 10397
  def __repr__(self):
10398
    L = ['%s=%r' % (key, value)
10399
      for key, value in self.__dict__.iteritems()]
10400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10401
 
10402
  def __eq__(self, other):
10403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10404
 
10405
  def __ne__(self, other):
10406
    return not (self == other)
10407
 
10408
class addAddressToCart_args:
10409
  """
10410
  Attributes:
10411
   - cartId
10412
   - addressId
10413
  """
10414
 
10415
  thrift_spec = (
10416
    None, # 0
10417
    (1, TType.I64, 'cartId', None, None, ), # 1
10418
    (2, TType.I64, 'addressId', None, None, ), # 2
10419
  )
10420
 
10421
  def __init__(self, cartId=None, addressId=None,):
10422
    self.cartId = cartId
10423
    self.addressId = addressId
10424
 
10425
  def read(self, iprot):
10426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10428
      return
10429
    iprot.readStructBegin()
10430
    while True:
10431
      (fname, ftype, fid) = iprot.readFieldBegin()
10432
      if ftype == TType.STOP:
10433
        break
10434
      if fid == 1:
10435
        if ftype == TType.I64:
10436
          self.cartId = iprot.readI64();
10437
        else:
10438
          iprot.skip(ftype)
10439
      elif fid == 2:
10440
        if ftype == TType.I64:
10441
          self.addressId = iprot.readI64();
10442
        else:
10443
          iprot.skip(ftype)
10444
      else:
10445
        iprot.skip(ftype)
10446
      iprot.readFieldEnd()
10447
    iprot.readStructEnd()
10448
 
10449
  def write(self, oprot):
10450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10452
      return
10453
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10454
    if self.cartId is not None:
559 chandransh 10455
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10456
      oprot.writeI64(self.cartId)
10457
      oprot.writeFieldEnd()
3431 rajveer 10458
    if self.addressId is not None:
559 chandransh 10459
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10460
      oprot.writeI64(self.addressId)
10461
      oprot.writeFieldEnd()
10462
    oprot.writeFieldStop()
10463
    oprot.writeStructEnd()
10464
 
3431 rajveer 10465
  def validate(self):
10466
    return
10467
 
10468
 
559 chandransh 10469
  def __repr__(self):
10470
    L = ['%s=%r' % (key, value)
10471
      for key, value in self.__dict__.iteritems()]
10472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10473
 
10474
  def __eq__(self, other):
10475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10476
 
10477
  def __ne__(self, other):
10478
    return not (self == other)
10479
 
10480
class addAddressToCart_result:
575 chandransh 10481
  """
10482
  Attributes:
10483
   - scx
10484
  """
559 chandransh 10485
 
10486
  thrift_spec = (
575 chandransh 10487
    None, # 0
10488
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10489
  )
10490
 
575 chandransh 10491
  def __init__(self, scx=None,):
10492
    self.scx = scx
10493
 
559 chandransh 10494
  def read(self, iprot):
10495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10497
      return
10498
    iprot.readStructBegin()
10499
    while True:
10500
      (fname, ftype, fid) = iprot.readFieldBegin()
10501
      if ftype == TType.STOP:
10502
        break
575 chandransh 10503
      if fid == 1:
10504
        if ftype == TType.STRUCT:
10505
          self.scx = ShoppingCartException()
10506
          self.scx.read(iprot)
10507
        else:
10508
          iprot.skip(ftype)
559 chandransh 10509
      else:
10510
        iprot.skip(ftype)
10511
      iprot.readFieldEnd()
10512
    iprot.readStructEnd()
10513
 
10514
  def write(self, oprot):
10515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10517
      return
10518
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10519
    if self.scx is not None:
575 chandransh 10520
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10521
      self.scx.write(oprot)
10522
      oprot.writeFieldEnd()
559 chandransh 10523
    oprot.writeFieldStop()
10524
    oprot.writeStructEnd()
10525
 
3431 rajveer 10526
  def validate(self):
10527
    return
10528
 
10529
 
559 chandransh 10530
  def __repr__(self):
10531
    L = ['%s=%r' % (key, value)
10532
      for key, value in self.__dict__.iteritems()]
10533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10534
 
10535
  def __eq__(self, other):
10536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10537
 
10538
  def __ne__(self, other):
10539
    return not (self == other)
10540
 
5553 rajveer 10541
class addStoreToCart_args:
10542
  """
10543
  Attributes:
10544
   - cartId
10545
   - storeId
10546
  """
10547
 
10548
  thrift_spec = (
10549
    None, # 0
10550
    (1, TType.I64, 'cartId', None, None, ), # 1
10551
    (2, TType.I64, 'storeId', None, None, ), # 2
10552
  )
10553
 
10554
  def __init__(self, cartId=None, storeId=None,):
10555
    self.cartId = cartId
10556
    self.storeId = storeId
10557
 
10558
  def read(self, iprot):
10559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10561
      return
10562
    iprot.readStructBegin()
10563
    while True:
10564
      (fname, ftype, fid) = iprot.readFieldBegin()
10565
      if ftype == TType.STOP:
10566
        break
10567
      if fid == 1:
10568
        if ftype == TType.I64:
10569
          self.cartId = iprot.readI64();
10570
        else:
10571
          iprot.skip(ftype)
10572
      elif fid == 2:
10573
        if ftype == TType.I64:
10574
          self.storeId = iprot.readI64();
10575
        else:
10576
          iprot.skip(ftype)
10577
      else:
10578
        iprot.skip(ftype)
10579
      iprot.readFieldEnd()
10580
    iprot.readStructEnd()
10581
 
10582
  def write(self, oprot):
10583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10585
      return
10586
    oprot.writeStructBegin('addStoreToCart_args')
10587
    if self.cartId is not None:
10588
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10589
      oprot.writeI64(self.cartId)
10590
      oprot.writeFieldEnd()
10591
    if self.storeId is not None:
10592
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10593
      oprot.writeI64(self.storeId)
10594
      oprot.writeFieldEnd()
10595
    oprot.writeFieldStop()
10596
    oprot.writeStructEnd()
10597
 
10598
  def validate(self):
10599
    return
10600
 
10601
 
10602
  def __repr__(self):
10603
    L = ['%s=%r' % (key, value)
10604
      for key, value in self.__dict__.iteritems()]
10605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10606
 
10607
  def __eq__(self, other):
10608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10609
 
10610
  def __ne__(self, other):
10611
    return not (self == other)
10612
 
10613
class addStoreToCart_result:
10614
  """
10615
  Attributes:
10616
   - scx
10617
  """
10618
 
10619
  thrift_spec = (
10620
    None, # 0
10621
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10622
  )
10623
 
10624
  def __init__(self, scx=None,):
10625
    self.scx = scx
10626
 
10627
  def read(self, iprot):
10628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10630
      return
10631
    iprot.readStructBegin()
10632
    while True:
10633
      (fname, ftype, fid) = iprot.readFieldBegin()
10634
      if ftype == TType.STOP:
10635
        break
10636
      if fid == 1:
10637
        if ftype == TType.STRUCT:
10638
          self.scx = ShoppingCartException()
10639
          self.scx.read(iprot)
10640
        else:
10641
          iprot.skip(ftype)
10642
      else:
10643
        iprot.skip(ftype)
10644
      iprot.readFieldEnd()
10645
    iprot.readStructEnd()
10646
 
10647
  def write(self, oprot):
10648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10650
      return
10651
    oprot.writeStructBegin('addStoreToCart_result')
10652
    if self.scx is not None:
10653
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10654
      self.scx.write(oprot)
10655
      oprot.writeFieldEnd()
10656
    oprot.writeFieldStop()
10657
    oprot.writeStructEnd()
10658
 
10659
  def validate(self):
10660
    return
10661
 
10662
 
10663
  def __repr__(self):
10664
    L = ['%s=%r' % (key, value)
10665
      for key, value in self.__dict__.iteritems()]
10666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10667
 
10668
  def __eq__(self, other):
10669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10670
 
10671
  def __ne__(self, other):
10672
    return not (self == other)
10673
 
1976 varun.gupt 10674
class applyCouponToCart_args:
10675
  """
10676
  Attributes:
6922 anupam.sin 10677
   - cart
1976 varun.gupt 10678
   - couponCode
10679
  """
10680
 
10681
  thrift_spec = (
10682
    None, # 0
6922 anupam.sin 10683
    (1, TType.STRUCT, 'cart', (Cart, Cart.thrift_spec), None, ), # 1
1976 varun.gupt 10684
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10685
  )
10686
 
6922 anupam.sin 10687
  def __init__(self, cart=None, couponCode=None,):
10688
    self.cart = cart
1976 varun.gupt 10689
    self.couponCode = couponCode
10690
 
10691
  def read(self, iprot):
10692
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10693
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10694
      return
10695
    iprot.readStructBegin()
10696
    while True:
10697
      (fname, ftype, fid) = iprot.readFieldBegin()
10698
      if ftype == TType.STOP:
10699
        break
10700
      if fid == 1:
6922 anupam.sin 10701
        if ftype == TType.STRUCT:
10702
          self.cart = Cart()
10703
          self.cart.read(iprot)
1976 varun.gupt 10704
        else:
10705
          iprot.skip(ftype)
10706
      elif fid == 2:
10707
        if ftype == TType.STRING:
10708
          self.couponCode = iprot.readString();
10709
        else:
10710
          iprot.skip(ftype)
10711
      else:
10712
        iprot.skip(ftype)
10713
      iprot.readFieldEnd()
10714
    iprot.readStructEnd()
10715
 
10716
  def write(self, oprot):
10717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10719
      return
10720
    oprot.writeStructBegin('applyCouponToCart_args')
6922 anupam.sin 10721
    if self.cart is not None:
10722
      oprot.writeFieldBegin('cart', TType.STRUCT, 1)
10723
      self.cart.write(oprot)
1976 varun.gupt 10724
      oprot.writeFieldEnd()
3431 rajveer 10725
    if self.couponCode is not None:
1976 varun.gupt 10726
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10727
      oprot.writeString(self.couponCode)
10728
      oprot.writeFieldEnd()
10729
    oprot.writeFieldStop()
10730
    oprot.writeStructEnd()
10731
 
3431 rajveer 10732
  def validate(self):
10733
    return
10734
 
10735
 
1976 varun.gupt 10736
  def __repr__(self):
10737
    L = ['%s=%r' % (key, value)
10738
      for key, value in self.__dict__.iteritems()]
10739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10740
 
10741
  def __eq__(self, other):
10742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10743
 
10744
  def __ne__(self, other):
10745
    return not (self == other)
10746
 
10747
class applyCouponToCart_result:
10748
  """
10749
  Attributes:
10750
   - scx
10751
  """
10752
 
10753
  thrift_spec = (
10754
    None, # 0
10755
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10756
  )
10757
 
10758
  def __init__(self, scx=None,):
10759
    self.scx = scx
10760
 
10761
  def read(self, iprot):
10762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10764
      return
10765
    iprot.readStructBegin()
10766
    while True:
10767
      (fname, ftype, fid) = iprot.readFieldBegin()
10768
      if ftype == TType.STOP:
10769
        break
10770
      if fid == 1:
10771
        if ftype == TType.STRUCT:
10772
          self.scx = ShoppingCartException()
10773
          self.scx.read(iprot)
10774
        else:
10775
          iprot.skip(ftype)
10776
      else:
10777
        iprot.skip(ftype)
10778
      iprot.readFieldEnd()
10779
    iprot.readStructEnd()
10780
 
10781
  def write(self, oprot):
10782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10784
      return
10785
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10786
    if self.scx is not None:
1976 varun.gupt 10787
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10788
      self.scx.write(oprot)
10789
      oprot.writeFieldEnd()
10790
    oprot.writeFieldStop()
10791
    oprot.writeStructEnd()
10792
 
3431 rajveer 10793
  def validate(self):
10794
    return
10795
 
10796
 
1976 varun.gupt 10797
  def __repr__(self):
10798
    L = ['%s=%r' % (key, value)
10799
      for key, value in self.__dict__.iteritems()]
10800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10801
 
10802
  def __eq__(self, other):
10803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10804
 
10805
  def __ne__(self, other):
10806
    return not (self == other)
10807
 
10808
class removeCoupon_args:
10809
  """
10810
  Attributes:
10811
   - cartId
10812
  """
10813
 
10814
  thrift_spec = (
10815
    None, # 0
10816
    (1, TType.I64, 'cartId', None, None, ), # 1
10817
  )
10818
 
10819
  def __init__(self, cartId=None,):
10820
    self.cartId = cartId
10821
 
10822
  def read(self, iprot):
10823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10825
      return
10826
    iprot.readStructBegin()
10827
    while True:
10828
      (fname, ftype, fid) = iprot.readFieldBegin()
10829
      if ftype == TType.STOP:
10830
        break
10831
      if fid == 1:
10832
        if ftype == TType.I64:
10833
          self.cartId = iprot.readI64();
10834
        else:
10835
          iprot.skip(ftype)
10836
      else:
10837
        iprot.skip(ftype)
10838
      iprot.readFieldEnd()
10839
    iprot.readStructEnd()
10840
 
10841
  def write(self, oprot):
10842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10844
      return
10845
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10846
    if self.cartId is not None:
1976 varun.gupt 10847
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10848
      oprot.writeI64(self.cartId)
10849
      oprot.writeFieldEnd()
10850
    oprot.writeFieldStop()
10851
    oprot.writeStructEnd()
10852
 
3431 rajveer 10853
  def validate(self):
10854
    return
10855
 
10856
 
1976 varun.gupt 10857
  def __repr__(self):
10858
    L = ['%s=%r' % (key, value)
10859
      for key, value in self.__dict__.iteritems()]
10860
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10861
 
10862
  def __eq__(self, other):
10863
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10864
 
10865
  def __ne__(self, other):
10866
    return not (self == other)
10867
 
10868
class removeCoupon_result:
10869
  """
10870
  Attributes:
10871
   - scx
10872
  """
10873
 
10874
  thrift_spec = (
10875
    None, # 0
10876
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10877
  )
10878
 
10879
  def __init__(self, scx=None,):
10880
    self.scx = scx
10881
 
10882
  def read(self, iprot):
10883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10885
      return
10886
    iprot.readStructBegin()
10887
    while True:
10888
      (fname, ftype, fid) = iprot.readFieldBegin()
10889
      if ftype == TType.STOP:
10890
        break
10891
      if fid == 1:
10892
        if ftype == TType.STRUCT:
10893
          self.scx = ShoppingCartException()
10894
          self.scx.read(iprot)
10895
        else:
10896
          iprot.skip(ftype)
10897
      else:
10898
        iprot.skip(ftype)
10899
      iprot.readFieldEnd()
10900
    iprot.readStructEnd()
10901
 
10902
  def write(self, oprot):
10903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10905
      return
10906
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10907
    if self.scx is not None:
1976 varun.gupt 10908
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10909
      self.scx.write(oprot)
10910
      oprot.writeFieldEnd()
10911
    oprot.writeFieldStop()
10912
    oprot.writeStructEnd()
10913
 
3431 rajveer 10914
  def validate(self):
10915
    return
10916
 
10917
 
1976 varun.gupt 10918
  def __repr__(self):
10919
    L = ['%s=%r' % (key, value)
10920
      for key, value in self.__dict__.iteritems()]
10921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10922
 
10923
  def __eq__(self, other):
10924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10925
 
10926
  def __ne__(self, other):
10927
    return not (self == other)
10928
 
3554 varun.gupt 10929
class deleteDiscountsFromCart_args:
10930
  """
10931
  Attributes:
10932
   - cartId
10933
  """
10934
 
10935
  thrift_spec = (
10936
    None, # 0
10937
    (1, TType.I64, 'cartId', None, None, ), # 1
10938
  )
10939
 
10940
  def __init__(self, cartId=None,):
10941
    self.cartId = cartId
10942
 
10943
  def read(self, iprot):
10944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10946
      return
10947
    iprot.readStructBegin()
10948
    while True:
10949
      (fname, ftype, fid) = iprot.readFieldBegin()
10950
      if ftype == TType.STOP:
10951
        break
10952
      if fid == 1:
10953
        if ftype == TType.I64:
10954
          self.cartId = iprot.readI64();
10955
        else:
10956
          iprot.skip(ftype)
10957
      else:
10958
        iprot.skip(ftype)
10959
      iprot.readFieldEnd()
10960
    iprot.readStructEnd()
10961
 
10962
  def write(self, oprot):
10963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10965
      return
10966
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10967
    if self.cartId is not None:
10968
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10969
      oprot.writeI64(self.cartId)
10970
      oprot.writeFieldEnd()
10971
    oprot.writeFieldStop()
10972
    oprot.writeStructEnd()
10973
 
10974
  def validate(self):
10975
    return
10976
 
10977
 
10978
  def __repr__(self):
10979
    L = ['%s=%r' % (key, value)
10980
      for key, value in self.__dict__.iteritems()]
10981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10982
 
10983
  def __eq__(self, other):
10984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10985
 
10986
  def __ne__(self, other):
10987
    return not (self == other)
10988
 
10989
class deleteDiscountsFromCart_result:
10990
  """
10991
  Attributes:
10992
   - scx
10993
  """
10994
 
10995
  thrift_spec = (
10996
    None, # 0
10997
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10998
  )
10999
 
11000
  def __init__(self, scx=None,):
11001
    self.scx = scx
11002
 
11003
  def read(self, iprot):
11004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11006
      return
11007
    iprot.readStructBegin()
11008
    while True:
11009
      (fname, ftype, fid) = iprot.readFieldBegin()
11010
      if ftype == TType.STOP:
11011
        break
11012
      if fid == 1:
11013
        if ftype == TType.STRUCT:
11014
          self.scx = ShoppingCartException()
11015
          self.scx.read(iprot)
11016
        else:
11017
          iprot.skip(ftype)
11018
      else:
11019
        iprot.skip(ftype)
11020
      iprot.readFieldEnd()
11021
    iprot.readStructEnd()
11022
 
11023
  def write(self, oprot):
11024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11026
      return
11027
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11028
    if self.scx is not None:
11029
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11030
      self.scx.write(oprot)
11031
      oprot.writeFieldEnd()
11032
    oprot.writeFieldStop()
11033
    oprot.writeStructEnd()
11034
 
11035
  def validate(self):
11036
    return
11037
 
11038
 
11039
  def __repr__(self):
11040
    L = ['%s=%r' % (key, value)
11041
      for key, value in self.__dict__.iteritems()]
11042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11043
 
11044
  def __eq__(self, other):
11045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11046
 
11047
  def __ne__(self, other):
11048
    return not (self == other)
11049
 
11050
class saveDiscounts_args:
11051
  """
11052
  Attributes:
11053
   - discounts
11054
  """
11055
 
11056
  thrift_spec = (
11057
    None, # 0
11058
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11059
  )
11060
 
11061
  def __init__(self, discounts=None,):
11062
    self.discounts = discounts
11063
 
11064
  def read(self, iprot):
11065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11067
      return
11068
    iprot.readStructBegin()
11069
    while True:
11070
      (fname, ftype, fid) = iprot.readFieldBegin()
11071
      if ftype == TType.STOP:
11072
        break
11073
      if fid == 1:
11074
        if ftype == TType.LIST:
11075
          self.discounts = []
7746 amit.gupta 11076
          (_etype156, _size153) = iprot.readListBegin()
11077
          for _i157 in xrange(_size153):
11078
            _elem158 = Discount()
11079
            _elem158.read(iprot)
11080
            self.discounts.append(_elem158)
3554 varun.gupt 11081
          iprot.readListEnd()
11082
        else:
11083
          iprot.skip(ftype)
11084
      else:
11085
        iprot.skip(ftype)
11086
      iprot.readFieldEnd()
11087
    iprot.readStructEnd()
11088
 
11089
  def write(self, oprot):
11090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11092
      return
11093
    oprot.writeStructBegin('saveDiscounts_args')
11094
    if self.discounts is not None:
11095
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11096
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
7746 amit.gupta 11097
      for iter159 in self.discounts:
11098
        iter159.write(oprot)
3554 varun.gupt 11099
      oprot.writeListEnd()
11100
      oprot.writeFieldEnd()
11101
    oprot.writeFieldStop()
11102
    oprot.writeStructEnd()
11103
 
11104
  def validate(self):
11105
    return
11106
 
11107
 
11108
  def __repr__(self):
11109
    L = ['%s=%r' % (key, value)
11110
      for key, value in self.__dict__.iteritems()]
11111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11112
 
11113
  def __eq__(self, other):
11114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11115
 
11116
  def __ne__(self, other):
11117
    return not (self == other)
11118
 
11119
class saveDiscounts_result:
11120
  """
11121
  Attributes:
11122
   - scx
11123
  """
11124
 
11125
  thrift_spec = (
11126
    None, # 0
11127
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11128
  )
11129
 
11130
  def __init__(self, scx=None,):
11131
    self.scx = scx
11132
 
11133
  def read(self, iprot):
11134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11136
      return
11137
    iprot.readStructBegin()
11138
    while True:
11139
      (fname, ftype, fid) = iprot.readFieldBegin()
11140
      if ftype == TType.STOP:
11141
        break
11142
      if fid == 1:
11143
        if ftype == TType.STRUCT:
11144
          self.scx = ShoppingCartException()
11145
          self.scx.read(iprot)
11146
        else:
11147
          iprot.skip(ftype)
11148
      else:
11149
        iprot.skip(ftype)
11150
      iprot.readFieldEnd()
11151
    iprot.readStructEnd()
11152
 
11153
  def write(self, oprot):
11154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11156
      return
11157
    oprot.writeStructBegin('saveDiscounts_result')
11158
    if self.scx is not None:
11159
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11160
      self.scx.write(oprot)
11161
      oprot.writeFieldEnd()
11162
    oprot.writeFieldStop()
11163
    oprot.writeStructEnd()
11164
 
11165
  def validate(self):
11166
    return
11167
 
11168
 
11169
  def __repr__(self):
11170
    L = ['%s=%r' % (key, value)
11171
      for key, value in self.__dict__.iteritems()]
11172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11173
 
11174
  def __eq__(self, other):
11175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11176
 
11177
  def __ne__(self, other):
11178
    return not (self == other)
11179
 
690 chandransh 11180
class createOrders_args:
559 chandransh 11181
  """
11182
  Attributes:
11183
   - cartId
2815 vikas 11184
   - sessionSource
11185
   - sessionStartTime
3858 vikas 11186
   - firstSource
11187
   - firstSourceTime
5326 rajveer 11188
   - userId
6389 rajveer 11189
   - schemeId
11526 amit.gupta 11190
   - orderSource
559 chandransh 11191
  """
11192
 
11193
  thrift_spec = (
11194
    None, # 0
11195
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11196
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11197
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11198
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11199
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11200
    (6, TType.I64, 'userId', None, None, ), # 6
6389 rajveer 11201
    (7, TType.I64, 'schemeId', None, None, ), # 7
11526 amit.gupta 11202
    (8, TType.I64, 'orderSource', None, None, ), # 8
559 chandransh 11203
  )
11204
 
11526 amit.gupta 11205
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None, orderSource=None,):
559 chandransh 11206
    self.cartId = cartId
2815 vikas 11207
    self.sessionSource = sessionSource
11208
    self.sessionStartTime = sessionStartTime
3858 vikas 11209
    self.firstSource = firstSource
11210
    self.firstSourceTime = firstSourceTime
5326 rajveer 11211
    self.userId = userId
6389 rajveer 11212
    self.schemeId = schemeId
11526 amit.gupta 11213
    self.orderSource = orderSource
559 chandransh 11214
 
11215
  def read(self, iprot):
11216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11218
      return
11219
    iprot.readStructBegin()
11220
    while True:
11221
      (fname, ftype, fid) = iprot.readFieldBegin()
11222
      if ftype == TType.STOP:
11223
        break
11224
      if fid == 1:
11225
        if ftype == TType.I64:
11226
          self.cartId = iprot.readI64();
11227
        else:
11228
          iprot.skip(ftype)
2815 vikas 11229
      elif fid == 2:
11230
        if ftype == TType.STRING:
11231
          self.sessionSource = iprot.readString();
11232
        else:
11233
          iprot.skip(ftype)
11234
      elif fid == 3:
11235
        if ftype == TType.I64:
11236
          self.sessionStartTime = iprot.readI64();
11237
        else:
11238
          iprot.skip(ftype)
3858 vikas 11239
      elif fid == 4:
11240
        if ftype == TType.STRING:
11241
          self.firstSource = iprot.readString();
11242
        else:
11243
          iprot.skip(ftype)
11244
      elif fid == 5:
11245
        if ftype == TType.I64:
11246
          self.firstSourceTime = iprot.readI64();
11247
        else:
11248
          iprot.skip(ftype)
5326 rajveer 11249
      elif fid == 6:
11250
        if ftype == TType.I64:
11251
          self.userId = iprot.readI64();
11252
        else:
11253
          iprot.skip(ftype)
6389 rajveer 11254
      elif fid == 7:
11255
        if ftype == TType.I64:
11256
          self.schemeId = iprot.readI64();
11257
        else:
11258
          iprot.skip(ftype)
11526 amit.gupta 11259
      elif fid == 8:
11260
        if ftype == TType.I64:
11261
          self.orderSource = iprot.readI64();
11262
        else:
11263
          iprot.skip(ftype)
559 chandransh 11264
      else:
11265
        iprot.skip(ftype)
11266
      iprot.readFieldEnd()
11267
    iprot.readStructEnd()
11268
 
11269
  def write(self, oprot):
11270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11272
      return
690 chandransh 11273
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11274
    if self.cartId is not None:
559 chandransh 11275
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11276
      oprot.writeI64(self.cartId)
11277
      oprot.writeFieldEnd()
3431 rajveer 11278
    if self.sessionSource is not None:
2815 vikas 11279
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11280
      oprot.writeString(self.sessionSource)
11281
      oprot.writeFieldEnd()
3431 rajveer 11282
    if self.sessionStartTime is not None:
2815 vikas 11283
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11284
      oprot.writeI64(self.sessionStartTime)
11285
      oprot.writeFieldEnd()
3858 vikas 11286
    if self.firstSource is not None:
11287
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11288
      oprot.writeString(self.firstSource)
11289
      oprot.writeFieldEnd()
11290
    if self.firstSourceTime is not None:
11291
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11292
      oprot.writeI64(self.firstSourceTime)
11293
      oprot.writeFieldEnd()
5326 rajveer 11294
    if self.userId is not None:
11295
      oprot.writeFieldBegin('userId', TType.I64, 6)
11296
      oprot.writeI64(self.userId)
11297
      oprot.writeFieldEnd()
6389 rajveer 11298
    if self.schemeId is not None:
11299
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
11300
      oprot.writeI64(self.schemeId)
11301
      oprot.writeFieldEnd()
11526 amit.gupta 11302
    if self.orderSource is not None:
11303
      oprot.writeFieldBegin('orderSource', TType.I64, 8)
11304
      oprot.writeI64(self.orderSource)
11305
      oprot.writeFieldEnd()
559 chandransh 11306
    oprot.writeFieldStop()
11307
    oprot.writeStructEnd()
11308
 
3431 rajveer 11309
  def validate(self):
11310
    return
11311
 
11312
 
559 chandransh 11313
  def __repr__(self):
11314
    L = ['%s=%r' % (key, value)
11315
      for key, value in self.__dict__.iteritems()]
11316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11317
 
11318
  def __eq__(self, other):
11319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11320
 
11321
  def __ne__(self, other):
11322
    return not (self == other)
11323
 
690 chandransh 11324
class createOrders_result:
559 chandransh 11325
  """
11326
  Attributes:
94 ashish 11327
   - success
559 chandransh 11328
   - scx
94 ashish 11329
  """
11330
 
11331
  thrift_spec = (
575 chandransh 11332
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11333
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11334
  )
11335
 
559 chandransh 11336
  def __init__(self, success=None, scx=None,):
94 ashish 11337
    self.success = success
559 chandransh 11338
    self.scx = scx
94 ashish 11339
 
11340
  def read(self, iprot):
11341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11343
      return
11344
    iprot.readStructBegin()
11345
    while True:
11346
      (fname, ftype, fid) = iprot.readFieldBegin()
11347
      if ftype == TType.STOP:
11348
        break
11349
      if fid == 0:
575 chandransh 11350
        if ftype == TType.I64:
11351
          self.success = iprot.readI64();
94 ashish 11352
        else:
11353
          iprot.skip(ftype)
11354
      elif fid == 1:
11355
        if ftype == TType.STRUCT:
559 chandransh 11356
          self.scx = ShoppingCartException()
11357
          self.scx.read(iprot)
94 ashish 11358
        else:
11359
          iprot.skip(ftype)
11360
      else:
11361
        iprot.skip(ftype)
11362
      iprot.readFieldEnd()
11363
    iprot.readStructEnd()
11364
 
11365
  def write(self, oprot):
11366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11368
      return
690 chandransh 11369
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11370
    if self.success is not None:
575 chandransh 11371
      oprot.writeFieldBegin('success', TType.I64, 0)
11372
      oprot.writeI64(self.success)
94 ashish 11373
      oprot.writeFieldEnd()
3431 rajveer 11374
    if self.scx is not None:
559 chandransh 11375
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11376
      self.scx.write(oprot)
94 ashish 11377
      oprot.writeFieldEnd()
11378
    oprot.writeFieldStop()
11379
    oprot.writeStructEnd()
11380
 
3431 rajveer 11381
  def validate(self):
11382
    return
11383
 
11384
 
94 ashish 11385
  def __repr__(self):
11386
    L = ['%s=%r' % (key, value)
11387
      for key, value in self.__dict__.iteritems()]
11388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11389
 
11390
  def __eq__(self, other):
11391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11392
 
11393
  def __ne__(self, other):
11394
    return not (self == other)
11395
 
559 chandransh 11396
class validateCart_args:
94 ashish 11397
  """
11398
  Attributes:
559 chandransh 11399
   - cartId
3557 rajveer 11400
   - sourceId
94 ashish 11401
  """
11402
 
11403
  thrift_spec = (
11404
    None, # 0
559 chandransh 11405
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11406
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11407
  )
11408
 
3557 rajveer 11409
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11410
    self.cartId = cartId
3557 rajveer 11411
    self.sourceId = sourceId
94 ashish 11412
 
11413
  def read(self, iprot):
11414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11416
      return
11417
    iprot.readStructBegin()
11418
    while True:
11419
      (fname, ftype, fid) = iprot.readFieldBegin()
11420
      if ftype == TType.STOP:
11421
        break
11422
      if fid == 1:
11423
        if ftype == TType.I64:
559 chandransh 11424
          self.cartId = iprot.readI64();
94 ashish 11425
        else:
11426
          iprot.skip(ftype)
3557 rajveer 11427
      elif fid == 2:
11428
        if ftype == TType.I64:
11429
          self.sourceId = iprot.readI64();
11430
        else:
11431
          iprot.skip(ftype)
94 ashish 11432
      else:
11433
        iprot.skip(ftype)
11434
      iprot.readFieldEnd()
11435
    iprot.readStructEnd()
11436
 
11437
  def write(self, oprot):
11438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11440
      return
559 chandransh 11441
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11442
    if self.cartId is not None:
559 chandransh 11443
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11444
      oprot.writeI64(self.cartId)
94 ashish 11445
      oprot.writeFieldEnd()
3557 rajveer 11446
    if self.sourceId is not None:
11447
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11448
      oprot.writeI64(self.sourceId)
11449
      oprot.writeFieldEnd()
94 ashish 11450
    oprot.writeFieldStop()
11451
    oprot.writeStructEnd()
11452
 
3431 rajveer 11453
  def validate(self):
11454
    return
11455
 
11456
 
94 ashish 11457
  def __repr__(self):
11458
    L = ['%s=%r' % (key, value)
11459
      for key, value in self.__dict__.iteritems()]
11460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11461
 
11462
  def __eq__(self, other):
11463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11464
 
11465
  def __ne__(self, other):
11466
    return not (self == other)
11467
 
559 chandransh 11468
class validateCart_result:
94 ashish 11469
  """
11470
  Attributes:
11471
   - success
575 chandransh 11472
   - scex
94 ashish 11473
  """
11474
 
11475
  thrift_spec = (
6736 amit.gupta 11476
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
575 chandransh 11477
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11478
  )
11479
 
575 chandransh 11480
  def __init__(self, success=None, scex=None,):
94 ashish 11481
    self.success = success
575 chandransh 11482
    self.scex = scex
94 ashish 11483
 
11484
  def read(self, iprot):
11485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11487
      return
11488
    iprot.readStructBegin()
11489
    while True:
11490
      (fname, ftype, fid) = iprot.readFieldBegin()
11491
      if ftype == TType.STOP:
11492
        break
11493
      if fid == 0:
6736 amit.gupta 11494
        if ftype == TType.LIST:
11495
          self.success = []
7746 amit.gupta 11496
          (_etype163, _size160) = iprot.readListBegin()
11497
          for _i164 in xrange(_size160):
11498
            _elem165 = iprot.readString();
11499
            self.success.append(_elem165)
6736 amit.gupta 11500
          iprot.readListEnd()
94 ashish 11501
        else:
11502
          iprot.skip(ftype)
575 chandransh 11503
      elif fid == 1:
11504
        if ftype == TType.STRUCT:
11505
          self.scex = ShoppingCartException()
11506
          self.scex.read(iprot)
11507
        else:
11508
          iprot.skip(ftype)
94 ashish 11509
      else:
11510
        iprot.skip(ftype)
11511
      iprot.readFieldEnd()
11512
    iprot.readStructEnd()
11513
 
11514
  def write(self, oprot):
11515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11517
      return
559 chandransh 11518
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11519
    if self.success is not None:
6736 amit.gupta 11520
      oprot.writeFieldBegin('success', TType.LIST, 0)
11521
      oprot.writeListBegin(TType.STRING, len(self.success))
7746 amit.gupta 11522
      for iter166 in self.success:
11523
        oprot.writeString(iter166)
6736 amit.gupta 11524
      oprot.writeListEnd()
94 ashish 11525
      oprot.writeFieldEnd()
3431 rajveer 11526
    if self.scex is not None:
575 chandransh 11527
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11528
      self.scex.write(oprot)
11529
      oprot.writeFieldEnd()
559 chandransh 11530
    oprot.writeFieldStop()
11531
    oprot.writeStructEnd()
11532
 
3431 rajveer 11533
  def validate(self):
11534
    return
11535
 
11536
 
559 chandransh 11537
  def __repr__(self):
11538
    L = ['%s=%r' % (key, value)
11539
      for key, value in self.__dict__.iteritems()]
11540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11541
 
11542
  def __eq__(self, other):
11543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11544
 
11545
  def __ne__(self, other):
11546
    return not (self == other)
11547
 
690 chandransh 11548
class mergeCart_args:
575 chandransh 11549
  """
11550
  Attributes:
690 chandransh 11551
   - fromCartId
11552
   - toCartId
11553
  """
11554
 
11555
  thrift_spec = (
11556
    None, # 0
11557
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11558
    (2, TType.I64, 'toCartId', None, None, ), # 2
11559
  )
11560
 
11561
  def __init__(self, fromCartId=None, toCartId=None,):
11562
    self.fromCartId = fromCartId
11563
    self.toCartId = toCartId
11564
 
11565
  def read(self, iprot):
11566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11568
      return
11569
    iprot.readStructBegin()
11570
    while True:
11571
      (fname, ftype, fid) = iprot.readFieldBegin()
11572
      if ftype == TType.STOP:
11573
        break
11574
      if fid == 1:
11575
        if ftype == TType.I64:
11576
          self.fromCartId = iprot.readI64();
11577
        else:
11578
          iprot.skip(ftype)
11579
      elif fid == 2:
11580
        if ftype == TType.I64:
11581
          self.toCartId = iprot.readI64();
11582
        else:
11583
          iprot.skip(ftype)
11584
      else:
11585
        iprot.skip(ftype)
11586
      iprot.readFieldEnd()
11587
    iprot.readStructEnd()
11588
 
11589
  def write(self, oprot):
11590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11592
      return
11593
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11594
    if self.fromCartId is not None:
690 chandransh 11595
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11596
      oprot.writeI64(self.fromCartId)
11597
      oprot.writeFieldEnd()
3431 rajveer 11598
    if self.toCartId is not None:
690 chandransh 11599
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11600
      oprot.writeI64(self.toCartId)
11601
      oprot.writeFieldEnd()
11602
    oprot.writeFieldStop()
11603
    oprot.writeStructEnd()
11604
 
3431 rajveer 11605
  def validate(self):
11606
    return
11607
 
11608
 
690 chandransh 11609
  def __repr__(self):
11610
    L = ['%s=%r' % (key, value)
11611
      for key, value in self.__dict__.iteritems()]
11612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11613
 
11614
  def __eq__(self, other):
11615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11616
 
11617
  def __ne__(self, other):
11618
    return not (self == other)
11619
 
11620
class mergeCart_result:
11621
 
11622
  thrift_spec = (
11623
  )
11624
 
11625
  def read(self, iprot):
11626
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11627
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11628
      return
11629
    iprot.readStructBegin()
11630
    while True:
11631
      (fname, ftype, fid) = iprot.readFieldBegin()
11632
      if ftype == TType.STOP:
11633
        break
11634
      else:
11635
        iprot.skip(ftype)
11636
      iprot.readFieldEnd()
11637
    iprot.readStructEnd()
11638
 
11639
  def write(self, oprot):
11640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11642
      return
11643
    oprot.writeStructBegin('mergeCart_result')
11644
    oprot.writeFieldStop()
11645
    oprot.writeStructEnd()
11646
 
3431 rajveer 11647
  def validate(self):
11648
    return
11649
 
11650
 
690 chandransh 11651
  def __repr__(self):
11652
    L = ['%s=%r' % (key, value)
11653
      for key, value in self.__dict__.iteritems()]
11654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11655
 
11656
  def __eq__(self, other):
11657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11658
 
11659
  def __ne__(self, other):
11660
    return not (self == other)
11661
 
11662
class checkOut_args:
11663
  """
11664
  Attributes:
575 chandransh 11665
   - cartId
11666
  """
11667
 
11668
  thrift_spec = (
11669
    None, # 0
11670
    (1, TType.I64, 'cartId', None, None, ), # 1
11671
  )
11672
 
11673
  def __init__(self, cartId=None,):
11674
    self.cartId = cartId
11675
 
11676
  def read(self, iprot):
11677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11679
      return
11680
    iprot.readStructBegin()
11681
    while True:
11682
      (fname, ftype, fid) = iprot.readFieldBegin()
11683
      if ftype == TType.STOP:
11684
        break
11685
      if fid == 1:
11686
        if ftype == TType.I64:
11687
          self.cartId = iprot.readI64();
11688
        else:
11689
          iprot.skip(ftype)
11690
      else:
11691
        iprot.skip(ftype)
11692
      iprot.readFieldEnd()
11693
    iprot.readStructEnd()
11694
 
11695
  def write(self, oprot):
11696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11698
      return
690 chandransh 11699
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11700
    if self.cartId is not None:
575 chandransh 11701
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11702
      oprot.writeI64(self.cartId)
11703
      oprot.writeFieldEnd()
11704
    oprot.writeFieldStop()
11705
    oprot.writeStructEnd()
11706
 
3431 rajveer 11707
  def validate(self):
11708
    return
11709
 
11710
 
575 chandransh 11711
  def __repr__(self):
11712
    L = ['%s=%r' % (key, value)
11713
      for key, value in self.__dict__.iteritems()]
11714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11715
 
11716
  def __eq__(self, other):
11717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11718
 
11719
  def __ne__(self, other):
11720
    return not (self == other)
11721
 
690 chandransh 11722
class checkOut_result:
575 chandransh 11723
  """
11724
  Attributes:
11725
   - success
11726
   - scex
11727
  """
11728
 
11729
  thrift_spec = (
11730
    (0, TType.BOOL, 'success', None, None, ), # 0
11731
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11732
  )
11733
 
11734
  def __init__(self, success=None, scex=None,):
11735
    self.success = success
11736
    self.scex = scex
11737
 
11738
  def read(self, iprot):
11739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11741
      return
11742
    iprot.readStructBegin()
11743
    while True:
11744
      (fname, ftype, fid) = iprot.readFieldBegin()
11745
      if ftype == TType.STOP:
11746
        break
11747
      if fid == 0:
11748
        if ftype == TType.BOOL:
11749
          self.success = iprot.readBool();
11750
        else:
11751
          iprot.skip(ftype)
11752
      elif fid == 1:
11753
        if ftype == TType.STRUCT:
11754
          self.scex = ShoppingCartException()
11755
          self.scex.read(iprot)
11756
        else:
11757
          iprot.skip(ftype)
11758
      else:
11759
        iprot.skip(ftype)
11760
      iprot.readFieldEnd()
11761
    iprot.readStructEnd()
11762
 
11763
  def write(self, oprot):
11764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11766
      return
690 chandransh 11767
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11768
    if self.success is not None:
575 chandransh 11769
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11770
      oprot.writeBool(self.success)
11771
      oprot.writeFieldEnd()
3431 rajveer 11772
    if self.scex is not None:
575 chandransh 11773
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11774
      self.scex.write(oprot)
11775
      oprot.writeFieldEnd()
11776
    oprot.writeFieldStop()
11777
    oprot.writeStructEnd()
11778
 
3431 rajveer 11779
  def validate(self):
11780
    return
11781
 
11782
 
575 chandransh 11783
  def __repr__(self):
11784
    L = ['%s=%r' % (key, value)
11785
      for key, value in self.__dict__.iteritems()]
11786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11787
 
11788
  def __eq__(self, other):
11789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11790
 
11791
  def __ne__(self, other):
11792
    return not (self == other)
11793
 
690 chandransh 11794
class resetCart_args:
559 chandransh 11795
  """
11796
  Attributes:
690 chandransh 11797
   - cartId
11798
   - items
559 chandransh 11799
  """
11800
 
11801
  thrift_spec = (
11802
    None, # 0
690 chandransh 11803
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11804
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11805
  )
11806
 
690 chandransh 11807
  def __init__(self, cartId=None, items=None,):
11808
    self.cartId = cartId
11809
    self.items = items
559 chandransh 11810
 
11811
  def read(self, iprot):
11812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11814
      return
11815
    iprot.readStructBegin()
11816
    while True:
11817
      (fname, ftype, fid) = iprot.readFieldBegin()
11818
      if ftype == TType.STOP:
11819
        break
11820
      if fid == 1:
11821
        if ftype == TType.I64:
690 chandransh 11822
          self.cartId = iprot.readI64();
559 chandransh 11823
        else:
11824
          iprot.skip(ftype)
11825
      elif fid == 2:
690 chandransh 11826
        if ftype == TType.MAP:
11827
          self.items = {}
7746 amit.gupta 11828
          (_ktype168, _vtype169, _size167 ) = iprot.readMapBegin() 
11829
          for _i171 in xrange(_size167):
11830
            _key172 = iprot.readI64();
11831
            _val173 = iprot.readDouble();
11832
            self.items[_key172] = _val173
690 chandransh 11833
          iprot.readMapEnd()
559 chandransh 11834
        else:
11835
          iprot.skip(ftype)
11836
      else:
11837
        iprot.skip(ftype)
11838
      iprot.readFieldEnd()
11839
    iprot.readStructEnd()
11840
 
11841
  def write(self, oprot):
11842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11844
      return
690 chandransh 11845
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11846
    if self.cartId is not None:
690 chandransh 11847
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11848
      oprot.writeI64(self.cartId)
94 ashish 11849
      oprot.writeFieldEnd()
3431 rajveer 11850
    if self.items is not None:
690 chandransh 11851
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11852
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
7746 amit.gupta 11853
      for kiter174,viter175 in self.items.items():
11854
        oprot.writeI64(kiter174)
11855
        oprot.writeDouble(viter175)
690 chandransh 11856
      oprot.writeMapEnd()
559 chandransh 11857
      oprot.writeFieldEnd()
94 ashish 11858
    oprot.writeFieldStop()
11859
    oprot.writeStructEnd()
11860
 
3431 rajveer 11861
  def validate(self):
11862
    return
11863
 
11864
 
94 ashish 11865
  def __repr__(self):
11866
    L = ['%s=%r' % (key, value)
11867
      for key, value in self.__dict__.iteritems()]
11868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11869
 
11870
  def __eq__(self, other):
11871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11872
 
11873
  def __ne__(self, other):
11874
    return not (self == other)
11875
 
690 chandransh 11876
class resetCart_result:
11877
  """
11878
  Attributes:
11879
   - success
11880
   - scex
11881
  """
559 chandransh 11882
 
11883
  thrift_spec = (
690 chandransh 11884
    (0, TType.BOOL, 'success', None, None, ), # 0
11885
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11886
  )
11887
 
690 chandransh 11888
  def __init__(self, success=None, scex=None,):
11889
    self.success = success
11890
    self.scex = scex
11891
 
559 chandransh 11892
  def read(self, iprot):
11893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11895
      return
11896
    iprot.readStructBegin()
11897
    while True:
11898
      (fname, ftype, fid) = iprot.readFieldBegin()
11899
      if ftype == TType.STOP:
11900
        break
690 chandransh 11901
      if fid == 0:
11902
        if ftype == TType.BOOL:
11903
          self.success = iprot.readBool();
11904
        else:
11905
          iprot.skip(ftype)
11906
      elif fid == 1:
11907
        if ftype == TType.STRUCT:
11908
          self.scex = ShoppingCartException()
11909
          self.scex.read(iprot)
11910
        else:
11911
          iprot.skip(ftype)
559 chandransh 11912
      else:
11913
        iprot.skip(ftype)
11914
      iprot.readFieldEnd()
11915
    iprot.readStructEnd()
11916
 
11917
  def write(self, oprot):
11918
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11919
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11920
      return
690 chandransh 11921
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11922
    if self.success is not None:
690 chandransh 11923
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11924
      oprot.writeBool(self.success)
11925
      oprot.writeFieldEnd()
3431 rajveer 11926
    if self.scex is not None:
690 chandransh 11927
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11928
      self.scex.write(oprot)
11929
      oprot.writeFieldEnd()
559 chandransh 11930
    oprot.writeFieldStop()
11931
    oprot.writeStructEnd()
11932
 
3431 rajveer 11933
  def validate(self):
11934
    return
11935
 
11936
 
559 chandransh 11937
  def __repr__(self):
11938
    L = ['%s=%r' % (key, value)
11939
      for key, value in self.__dict__.iteritems()]
11940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11941
 
11942
  def __eq__(self, other):
11943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11944
 
11945
  def __ne__(self, other):
11946
    return not (self == other)
11947
 
2981 rajveer 11948
class getUserCount_args:
94 ashish 11949
  """
11950
  Attributes:
2981 rajveer 11951
   - userType
559 chandransh 11952
  """
11953
 
11954
  thrift_spec = (
11955
    None, # 0
2981 rajveer 11956
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11957
  )
11958
 
2981 rajveer 11959
  def __init__(self, userType=None,):
11960
    self.userType = userType
559 chandransh 11961
 
11962
  def read(self, iprot):
11963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11965
      return
11966
    iprot.readStructBegin()
11967
    while True:
11968
      (fname, ftype, fid) = iprot.readFieldBegin()
11969
      if ftype == TType.STOP:
11970
        break
11971
      if fid == 1:
2981 rajveer 11972
        if ftype == TType.I32:
11973
          self.userType = iprot.readI32();
559 chandransh 11974
        else:
11975
          iprot.skip(ftype)
11976
      else:
11977
        iprot.skip(ftype)
11978
      iprot.readFieldEnd()
11979
    iprot.readStructEnd()
11980
 
11981
  def write(self, oprot):
11982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11984
      return
2981 rajveer 11985
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11986
    if self.userType is not None:
2981 rajveer 11987
      oprot.writeFieldBegin('userType', TType.I32, 1)
11988
      oprot.writeI32(self.userType)
559 chandransh 11989
      oprot.writeFieldEnd()
11990
    oprot.writeFieldStop()
11991
    oprot.writeStructEnd()
11992
 
3431 rajveer 11993
  def validate(self):
11994
    return
11995
 
11996
 
559 chandransh 11997
  def __repr__(self):
11998
    L = ['%s=%r' % (key, value)
11999
      for key, value in self.__dict__.iteritems()]
12000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12001
 
12002
  def __eq__(self, other):
12003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12004
 
12005
  def __ne__(self, other):
12006
    return not (self == other)
12007
 
2981 rajveer 12008
class getUserCount_result:
94 ashish 12009
  """
12010
  Attributes:
12011
   - success
12012
  """
12013
 
12014
  thrift_spec = (
2981 rajveer 12015
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12016
  )
12017
 
2981 rajveer 12018
  def __init__(self, success=None,):
94 ashish 12019
    self.success = success
12020
 
12021
  def read(self, iprot):
12022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12024
      return
12025
    iprot.readStructBegin()
12026
    while True:
12027
      (fname, ftype, fid) = iprot.readFieldBegin()
12028
      if ftype == TType.STOP:
12029
        break
12030
      if fid == 0:
2981 rajveer 12031
        if ftype == TType.I64:
12032
          self.success = iprot.readI64();
94 ashish 12033
        else:
12034
          iprot.skip(ftype)
12035
      else:
12036
        iprot.skip(ftype)
12037
      iprot.readFieldEnd()
12038
    iprot.readStructEnd()
12039
 
12040
  def write(self, oprot):
12041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12043
      return
2981 rajveer 12044
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12045
    if self.success is not None:
2981 rajveer 12046
      oprot.writeFieldBegin('success', TType.I64, 0)
12047
      oprot.writeI64(self.success)
94 ashish 12048
      oprot.writeFieldEnd()
12049
    oprot.writeFieldStop()
12050
    oprot.writeStructEnd()
12051
 
3431 rajveer 12052
  def validate(self):
12053
    return
12054
 
12055
 
94 ashish 12056
  def __repr__(self):
12057
    L = ['%s=%r' % (key, value)
12058
      for key, value in self.__dict__.iteritems()]
12059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12060
 
12061
  def __eq__(self, other):
12062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12063
 
12064
  def __ne__(self, other):
12065
    return not (self == other)
12066
 
2981 rajveer 12067
class getAllUsers_args:
94 ashish 12068
  """
12069
  Attributes:
2981 rajveer 12070
   - userType
12071
   - startDate
12072
   - endDate
94 ashish 12073
  """
12074
 
12075
  thrift_spec = (
12076
    None, # 0
2981 rajveer 12077
    (1, TType.I32, 'userType', None, None, ), # 1
12078
    (2, TType.I64, 'startDate', None, None, ), # 2
12079
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12080
  )
12081
 
2981 rajveer 12082
  def __init__(self, userType=None, startDate=None, endDate=None,):
12083
    self.userType = userType
12084
    self.startDate = startDate
12085
    self.endDate = endDate
94 ashish 12086
 
12087
  def read(self, iprot):
12088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12090
      return
12091
    iprot.readStructBegin()
12092
    while True:
12093
      (fname, ftype, fid) = iprot.readFieldBegin()
12094
      if ftype == TType.STOP:
12095
        break
12096
      if fid == 1:
2981 rajveer 12097
        if ftype == TType.I32:
12098
          self.userType = iprot.readI32();
94 ashish 12099
        else:
12100
          iprot.skip(ftype)
12101
      elif fid == 2:
559 chandransh 12102
        if ftype == TType.I64:
2981 rajveer 12103
          self.startDate = iprot.readI64();
94 ashish 12104
        else:
12105
          iprot.skip(ftype)
2981 rajveer 12106
      elif fid == 3:
12107
        if ftype == TType.I64:
12108
          self.endDate = iprot.readI64();
12109
        else:
12110
          iprot.skip(ftype)
94 ashish 12111
      else:
12112
        iprot.skip(ftype)
12113
      iprot.readFieldEnd()
12114
    iprot.readStructEnd()
12115
 
12116
  def write(self, oprot):
12117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12119
      return
2981 rajveer 12120
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12121
    if self.userType is not None:
2981 rajveer 12122
      oprot.writeFieldBegin('userType', TType.I32, 1)
12123
      oprot.writeI32(self.userType)
94 ashish 12124
      oprot.writeFieldEnd()
3431 rajveer 12125
    if self.startDate is not None:
2981 rajveer 12126
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12127
      oprot.writeI64(self.startDate)
94 ashish 12128
      oprot.writeFieldEnd()
3431 rajveer 12129
    if self.endDate is not None:
2981 rajveer 12130
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12131
      oprot.writeI64(self.endDate)
12132
      oprot.writeFieldEnd()
94 ashish 12133
    oprot.writeFieldStop()
12134
    oprot.writeStructEnd()
12135
 
3431 rajveer 12136
  def validate(self):
12137
    return
12138
 
12139
 
94 ashish 12140
  def __repr__(self):
12141
    L = ['%s=%r' % (key, value)
12142
      for key, value in self.__dict__.iteritems()]
12143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12144
 
12145
  def __eq__(self, other):
12146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12147
 
12148
  def __ne__(self, other):
12149
    return not (self == other)
12150
 
2981 rajveer 12151
class getAllUsers_result:
94 ashish 12152
  """
12153
  Attributes:
12154
   - success
12155
  """
12156
 
12157
  thrift_spec = (
2981 rajveer 12158
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12159
  )
12160
 
2981 rajveer 12161
  def __init__(self, success=None,):
94 ashish 12162
    self.success = success
12163
 
12164
  def read(self, iprot):
12165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12167
      return
12168
    iprot.readStructBegin()
12169
    while True:
12170
      (fname, ftype, fid) = iprot.readFieldBegin()
12171
      if ftype == TType.STOP:
12172
        break
12173
      if fid == 0:
2981 rajveer 12174
        if ftype == TType.LIST:
12175
          self.success = []
7746 amit.gupta 12176
          (_etype179, _size176) = iprot.readListBegin()
12177
          for _i180 in xrange(_size176):
12178
            _elem181 = User()
12179
            _elem181.read(iprot)
12180
            self.success.append(_elem181)
2981 rajveer 12181
          iprot.readListEnd()
94 ashish 12182
        else:
12183
          iprot.skip(ftype)
12184
      else:
12185
        iprot.skip(ftype)
12186
      iprot.readFieldEnd()
12187
    iprot.readStructEnd()
12188
 
12189
  def write(self, oprot):
12190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12192
      return
2981 rajveer 12193
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12194
    if self.success is not None:
2981 rajveer 12195
      oprot.writeFieldBegin('success', TType.LIST, 0)
12196
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7746 amit.gupta 12197
      for iter182 in self.success:
12198
        iter182.write(oprot)
2981 rajveer 12199
      oprot.writeListEnd()
94 ashish 12200
      oprot.writeFieldEnd()
12201
    oprot.writeFieldStop()
12202
    oprot.writeStructEnd()
12203
 
3431 rajveer 12204
  def validate(self):
12205
    return
12206
 
12207
 
94 ashish 12208
  def __repr__(self):
12209
    L = ['%s=%r' % (key, value)
12210
      for key, value in self.__dict__.iteritems()]
12211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12212
 
12213
  def __eq__(self, other):
12214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12215
 
12216
  def __ne__(self, other):
12217
    return not (self == other)
12218
 
2981 rajveer 12219
class getMyResearchItems_args:
559 chandransh 12220
  """
12221
  Attributes:
772 rajveer 12222
   - userId
559 chandransh 12223
  """
12224
 
12225
  thrift_spec = (
12226
    None, # 0
772 rajveer 12227
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12228
  )
12229
 
772 rajveer 12230
  def __init__(self, userId=None,):
12231
    self.userId = userId
559 chandransh 12232
 
12233
  def read(self, iprot):
12234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12236
      return
12237
    iprot.readStructBegin()
12238
    while True:
12239
      (fname, ftype, fid) = iprot.readFieldBegin()
12240
      if ftype == TType.STOP:
12241
        break
12242
      if fid == 1:
12243
        if ftype == TType.I64:
772 rajveer 12244
          self.userId = iprot.readI64();
559 chandransh 12245
        else:
12246
          iprot.skip(ftype)
12247
      else:
12248
        iprot.skip(ftype)
12249
      iprot.readFieldEnd()
12250
    iprot.readStructEnd()
12251
 
12252
  def write(self, oprot):
12253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12255
      return
2981 rajveer 12256
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12257
    if self.userId is not None:
772 rajveer 12258
      oprot.writeFieldBegin('userId', TType.I64, 1)
12259
      oprot.writeI64(self.userId)
559 chandransh 12260
      oprot.writeFieldEnd()
12261
    oprot.writeFieldStop()
12262
    oprot.writeStructEnd()
12263
 
3431 rajveer 12264
  def validate(self):
12265
    return
12266
 
12267
 
559 chandransh 12268
  def __repr__(self):
12269
    L = ['%s=%r' % (key, value)
12270
      for key, value in self.__dict__.iteritems()]
12271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12272
 
12273
  def __eq__(self, other):
12274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12275
 
12276
  def __ne__(self, other):
12277
    return not (self == other)
12278
 
2981 rajveer 12279
class getMyResearchItems_result:
559 chandransh 12280
  """
12281
  Attributes:
130 ashish 12282
   - success
559 chandransh 12283
   - scx
130 ashish 12284
  """
12285
 
12286
  thrift_spec = (
2981 rajveer 12287
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12288
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12289
  )
12290
 
559 chandransh 12291
  def __init__(self, success=None, scx=None,):
130 ashish 12292
    self.success = success
559 chandransh 12293
    self.scx = scx
130 ashish 12294
 
12295
  def read(self, iprot):
12296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12298
      return
12299
    iprot.readStructBegin()
12300
    while True:
12301
      (fname, ftype, fid) = iprot.readFieldBegin()
12302
      if ftype == TType.STOP:
12303
        break
12304
      if fid == 0:
2981 rajveer 12305
        if ftype == TType.LIST:
12306
          self.success = []
7746 amit.gupta 12307
          (_etype186, _size183) = iprot.readListBegin()
12308
          for _i187 in xrange(_size183):
12309
            _elem188 = iprot.readI64();
12310
            self.success.append(_elem188)
2981 rajveer 12311
          iprot.readListEnd()
130 ashish 12312
        else:
12313
          iprot.skip(ftype)
12314
      elif fid == 1:
12315
        if ftype == TType.STRUCT:
559 chandransh 12316
          self.scx = WidgetException()
12317
          self.scx.read(iprot)
130 ashish 12318
        else:
12319
          iprot.skip(ftype)
12320
      else:
12321
        iprot.skip(ftype)
12322
      iprot.readFieldEnd()
12323
    iprot.readStructEnd()
12324
 
12325
  def write(self, oprot):
12326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12328
      return
2981 rajveer 12329
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12330
    if self.success is not None:
2981 rajveer 12331
      oprot.writeFieldBegin('success', TType.LIST, 0)
12332
      oprot.writeListBegin(TType.I64, len(self.success))
7746 amit.gupta 12333
      for iter189 in self.success:
12334
        oprot.writeI64(iter189)
2981 rajveer 12335
      oprot.writeListEnd()
130 ashish 12336
      oprot.writeFieldEnd()
3431 rajveer 12337
    if self.scx is not None:
559 chandransh 12338
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12339
      self.scx.write(oprot)
130 ashish 12340
      oprot.writeFieldEnd()
12341
    oprot.writeFieldStop()
12342
    oprot.writeStructEnd()
12343
 
3431 rajveer 12344
  def validate(self):
12345
    return
12346
 
12347
 
130 ashish 12348
  def __repr__(self):
12349
    L = ['%s=%r' % (key, value)
12350
      for key, value in self.__dict__.iteritems()]
12351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12352
 
12353
  def __eq__(self, other):
12354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12355
 
12356
  def __ne__(self, other):
12357
    return not (self == other)
12358
 
2981 rajveer 12359
class updateMyResearch_args:
130 ashish 12360
  """
12361
  Attributes:
2981 rajveer 12362
   - userId
12363
   - itemId
130 ashish 12364
  """
12365
 
12366
  thrift_spec = (
12367
    None, # 0
2981 rajveer 12368
    (1, TType.I64, 'userId', None, None, ), # 1
12369
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12370
  )
12371
 
2981 rajveer 12372
  def __init__(self, userId=None, itemId=None,):
12373
    self.userId = userId
12374
    self.itemId = itemId
130 ashish 12375
 
12376
  def read(self, iprot):
12377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12379
      return
12380
    iprot.readStructBegin()
12381
    while True:
12382
      (fname, ftype, fid) = iprot.readFieldBegin()
12383
      if ftype == TType.STOP:
12384
        break
12385
      if fid == 1:
559 chandransh 12386
        if ftype == TType.I64:
2981 rajveer 12387
          self.userId = iprot.readI64();
130 ashish 12388
        else:
12389
          iprot.skip(ftype)
12390
      elif fid == 2:
559 chandransh 12391
        if ftype == TType.I64:
2981 rajveer 12392
          self.itemId = iprot.readI64();
559 chandransh 12393
        else:
12394
          iprot.skip(ftype)
130 ashish 12395
      else:
12396
        iprot.skip(ftype)
12397
      iprot.readFieldEnd()
12398
    iprot.readStructEnd()
12399
 
12400
  def write(self, oprot):
12401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12403
      return
2981 rajveer 12404
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12405
    if self.userId is not None:
2981 rajveer 12406
      oprot.writeFieldBegin('userId', TType.I64, 1)
12407
      oprot.writeI64(self.userId)
130 ashish 12408
      oprot.writeFieldEnd()
3431 rajveer 12409
    if self.itemId is not None:
2981 rajveer 12410
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12411
      oprot.writeI64(self.itemId)
130 ashish 12412
      oprot.writeFieldEnd()
12413
    oprot.writeFieldStop()
12414
    oprot.writeStructEnd()
12415
 
3431 rajveer 12416
  def validate(self):
12417
    return
12418
 
12419
 
130 ashish 12420
  def __repr__(self):
12421
    L = ['%s=%r' % (key, value)
12422
      for key, value in self.__dict__.iteritems()]
12423
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12424
 
12425
  def __eq__(self, other):
12426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12427
 
12428
  def __ne__(self, other):
12429
    return not (self == other)
12430
 
2981 rajveer 12431
class updateMyResearch_result:
12432
  """
12433
  Attributes:
12434
   - success
12435
   - scx
12436
  """
559 chandransh 12437
 
12438
  thrift_spec = (
2981 rajveer 12439
    (0, TType.BOOL, 'success', None, None, ), # 0
12440
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12441
  )
12442
 
2981 rajveer 12443
  def __init__(self, success=None, scx=None,):
12444
    self.success = success
12445
    self.scx = scx
12446
 
559 chandransh 12447
  def read(self, iprot):
12448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12450
      return
12451
    iprot.readStructBegin()
12452
    while True:
12453
      (fname, ftype, fid) = iprot.readFieldBegin()
12454
      if ftype == TType.STOP:
12455
        break
2981 rajveer 12456
      if fid == 0:
12457
        if ftype == TType.BOOL:
12458
          self.success = iprot.readBool();
12459
        else:
12460
          iprot.skip(ftype)
12461
      elif fid == 1:
12462
        if ftype == TType.STRUCT:
12463
          self.scx = WidgetException()
12464
          self.scx.read(iprot)
12465
        else:
12466
          iprot.skip(ftype)
559 chandransh 12467
      else:
12468
        iprot.skip(ftype)
12469
      iprot.readFieldEnd()
12470
    iprot.readStructEnd()
12471
 
12472
  def write(self, oprot):
12473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12475
      return
2981 rajveer 12476
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12477
    if self.success is not None:
2981 rajveer 12478
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12479
      oprot.writeBool(self.success)
12480
      oprot.writeFieldEnd()
3431 rajveer 12481
    if self.scx is not None:
2981 rajveer 12482
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12483
      self.scx.write(oprot)
12484
      oprot.writeFieldEnd()
559 chandransh 12485
    oprot.writeFieldStop()
12486
    oprot.writeStructEnd()
12487
 
3431 rajveer 12488
  def validate(self):
12489
    return
12490
 
12491
 
559 chandransh 12492
  def __repr__(self):
12493
    L = ['%s=%r' % (key, value)
12494
      for key, value in self.__dict__.iteritems()]
12495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12496
 
12497
  def __eq__(self, other):
12498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12499
 
12500
  def __ne__(self, other):
12501
    return not (self == other)
12502
 
2981 rajveer 12503
class deleteItemFromMyResearch_args:
1596 ankur.sing 12504
  """
12505
  Attributes:
2981 rajveer 12506
   - userId
12507
   - itemId
1596 ankur.sing 12508
  """
559 chandransh 12509
 
1596 ankur.sing 12510
  thrift_spec = (
12511
    None, # 0
2981 rajveer 12512
    (1, TType.I64, 'userId', None, None, ), # 1
12513
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12514
  )
12515
 
2981 rajveer 12516
  def __init__(self, userId=None, itemId=None,):
12517
    self.userId = userId
12518
    self.itemId = itemId
1596 ankur.sing 12519
 
12520
  def read(self, iprot):
12521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12523
      return
12524
    iprot.readStructBegin()
12525
    while True:
12526
      (fname, ftype, fid) = iprot.readFieldBegin()
12527
      if ftype == TType.STOP:
12528
        break
12529
      if fid == 1:
2981 rajveer 12530
        if ftype == TType.I64:
12531
          self.userId = iprot.readI64();
1596 ankur.sing 12532
        else:
12533
          iprot.skip(ftype)
2981 rajveer 12534
      elif fid == 2:
12535
        if ftype == TType.I64:
12536
          self.itemId = iprot.readI64();
12537
        else:
12538
          iprot.skip(ftype)
1596 ankur.sing 12539
      else:
12540
        iprot.skip(ftype)
12541
      iprot.readFieldEnd()
12542
    iprot.readStructEnd()
12543
 
12544
  def write(self, oprot):
12545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12547
      return
2981 rajveer 12548
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12549
    if self.userId is not None:
2981 rajveer 12550
      oprot.writeFieldBegin('userId', TType.I64, 1)
12551
      oprot.writeI64(self.userId)
1596 ankur.sing 12552
      oprot.writeFieldEnd()
3431 rajveer 12553
    if self.itemId is not None:
2981 rajveer 12554
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12555
      oprot.writeI64(self.itemId)
12556
      oprot.writeFieldEnd()
1596 ankur.sing 12557
    oprot.writeFieldStop()
12558
    oprot.writeStructEnd()
12559
 
3431 rajveer 12560
  def validate(self):
12561
    return
12562
 
12563
 
1596 ankur.sing 12564
  def __repr__(self):
12565
    L = ['%s=%r' % (key, value)
12566
      for key, value in self.__dict__.iteritems()]
12567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12568
 
12569
  def __eq__(self, other):
12570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12571
 
12572
  def __ne__(self, other):
12573
    return not (self == other)
12574
 
2981 rajveer 12575
class deleteItemFromMyResearch_result:
1596 ankur.sing 12576
  """
12577
  Attributes:
2981 rajveer 12578
   - scx
1596 ankur.sing 12579
  """
12580
 
12581
  thrift_spec = (
2981 rajveer 12582
    None, # 0
12583
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12584
  )
12585
 
2981 rajveer 12586
  def __init__(self, scx=None,):
12587
    self.scx = scx
1596 ankur.sing 12588
 
12589
  def read(self, iprot):
12590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12592
      return
12593
    iprot.readStructBegin()
12594
    while True:
12595
      (fname, ftype, fid) = iprot.readFieldBegin()
12596
      if ftype == TType.STOP:
12597
        break
2981 rajveer 12598
      if fid == 1:
12599
        if ftype == TType.STRUCT:
12600
          self.scx = WidgetException()
12601
          self.scx.read(iprot)
1596 ankur.sing 12602
        else:
12603
          iprot.skip(ftype)
12604
      else:
12605
        iprot.skip(ftype)
12606
      iprot.readFieldEnd()
12607
    iprot.readStructEnd()
12608
 
12609
  def write(self, oprot):
12610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12612
      return
2981 rajveer 12613
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12614
    if self.scx is not None:
2981 rajveer 12615
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12616
      self.scx.write(oprot)
1596 ankur.sing 12617
      oprot.writeFieldEnd()
12618
    oprot.writeFieldStop()
12619
    oprot.writeStructEnd()
12620
 
3431 rajveer 12621
  def validate(self):
12622
    return
12623
 
12624
 
1596 ankur.sing 12625
  def __repr__(self):
12626
    L = ['%s=%r' % (key, value)
12627
      for key, value in self.__dict__.iteritems()]
12628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12629
 
12630
  def __eq__(self, other):
12631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12632
 
12633
  def __ne__(self, other):
12634
    return not (self == other)
12635
 
2981 rajveer 12636
class getBrowseHistoryItems_args:
1673 ankur.sing 12637
  """
12638
  Attributes:
2981 rajveer 12639
   - userId
1673 ankur.sing 12640
  """
1596 ankur.sing 12641
 
1673 ankur.sing 12642
  thrift_spec = (
12643
    None, # 0
2981 rajveer 12644
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12645
  )
12646
 
2981 rajveer 12647
  def __init__(self, userId=None,):
12648
    self.userId = userId
1673 ankur.sing 12649
 
12650
  def read(self, iprot):
12651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12653
      return
12654
    iprot.readStructBegin()
12655
    while True:
12656
      (fname, ftype, fid) = iprot.readFieldBegin()
12657
      if ftype == TType.STOP:
12658
        break
12659
      if fid == 1:
1891 ankur.sing 12660
        if ftype == TType.I64:
2981 rajveer 12661
          self.userId = iprot.readI64();
1891 ankur.sing 12662
        else:
12663
          iprot.skip(ftype)
1673 ankur.sing 12664
      else:
12665
        iprot.skip(ftype)
12666
      iprot.readFieldEnd()
12667
    iprot.readStructEnd()
12668
 
12669
  def write(self, oprot):
12670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12672
      return
2981 rajveer 12673
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12674
    if self.userId is not None:
2981 rajveer 12675
      oprot.writeFieldBegin('userId', TType.I64, 1)
12676
      oprot.writeI64(self.userId)
1673 ankur.sing 12677
      oprot.writeFieldEnd()
12678
    oprot.writeFieldStop()
12679
    oprot.writeStructEnd()
12680
 
3431 rajveer 12681
  def validate(self):
12682
    return
12683
 
12684
 
1673 ankur.sing 12685
  def __repr__(self):
12686
    L = ['%s=%r' % (key, value)
12687
      for key, value in self.__dict__.iteritems()]
12688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12689
 
12690
  def __eq__(self, other):
12691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12692
 
12693
  def __ne__(self, other):
12694
    return not (self == other)
12695
 
2981 rajveer 12696
class getBrowseHistoryItems_result:
1673 ankur.sing 12697
  """
12698
  Attributes:
12699
   - success
2981 rajveer 12700
   - scx
1673 ankur.sing 12701
  """
12702
 
12703
  thrift_spec = (
2981 rajveer 12704
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12705
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12706
  )
12707
 
2981 rajveer 12708
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12709
    self.success = success
2981 rajveer 12710
    self.scx = scx
1673 ankur.sing 12711
 
12712
  def read(self, iprot):
12713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12715
      return
12716
    iprot.readStructBegin()
12717
    while True:
12718
      (fname, ftype, fid) = iprot.readFieldBegin()
12719
      if ftype == TType.STOP:
12720
        break
12721
      if fid == 0:
12722
        if ftype == TType.LIST:
12723
          self.success = []
7746 amit.gupta 12724
          (_etype193, _size190) = iprot.readListBegin()
12725
          for _i194 in xrange(_size190):
12726
            _elem195 = iprot.readI64();
12727
            self.success.append(_elem195)
1673 ankur.sing 12728
          iprot.readListEnd()
12729
        else:
12730
          iprot.skip(ftype)
2981 rajveer 12731
      elif fid == 1:
12732
        if ftype == TType.STRUCT:
12733
          self.scx = WidgetException()
12734
          self.scx.read(iprot)
12735
        else:
12736
          iprot.skip(ftype)
1673 ankur.sing 12737
      else:
12738
        iprot.skip(ftype)
12739
      iprot.readFieldEnd()
12740
    iprot.readStructEnd()
12741
 
12742
  def write(self, oprot):
12743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12745
      return
2981 rajveer 12746
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12747
    if self.success is not None:
1673 ankur.sing 12748
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12749
      oprot.writeListBegin(TType.I64, len(self.success))
7746 amit.gupta 12750
      for iter196 in self.success:
12751
        oprot.writeI64(iter196)
1673 ankur.sing 12752
      oprot.writeListEnd()
12753
      oprot.writeFieldEnd()
3431 rajveer 12754
    if self.scx is not None:
2981 rajveer 12755
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12756
      self.scx.write(oprot)
2642 varun.gupt 12757
      oprot.writeFieldEnd()
12758
    oprot.writeFieldStop()
12759
    oprot.writeStructEnd()
12760
 
3431 rajveer 12761
  def validate(self):
12762
    return
12763
 
12764
 
2642 varun.gupt 12765
  def __repr__(self):
12766
    L = ['%s=%r' % (key, value)
12767
      for key, value in self.__dict__.iteritems()]
12768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12769
 
12770
  def __eq__(self, other):
12771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12772
 
12773
  def __ne__(self, other):
12774
    return not (self == other)
12775
 
2981 rajveer 12776
class updateBrowseHistory_args:
2642 varun.gupt 12777
  """
12778
  Attributes:
2981 rajveer 12779
   - userId
12780
   - itemId
2642 varun.gupt 12781
  """
12782
 
12783
  thrift_spec = (
12784
    None, # 0
2981 rajveer 12785
    (1, TType.I64, 'userId', None, None, ), # 1
12786
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12787
  )
12788
 
2981 rajveer 12789
  def __init__(self, userId=None, itemId=None,):
12790
    self.userId = userId
12791
    self.itemId = itemId
2642 varun.gupt 12792
 
12793
  def read(self, iprot):
12794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12796
      return
12797
    iprot.readStructBegin()
12798
    while True:
12799
      (fname, ftype, fid) = iprot.readFieldBegin()
12800
      if ftype == TType.STOP:
12801
        break
12802
      if fid == 1:
12803
        if ftype == TType.I64:
2981 rajveer 12804
          self.userId = iprot.readI64();
2642 varun.gupt 12805
        else:
12806
          iprot.skip(ftype)
12807
      elif fid == 2:
12808
        if ftype == TType.I64:
2981 rajveer 12809
          self.itemId = iprot.readI64();
2642 varun.gupt 12810
        else:
12811
          iprot.skip(ftype)
12812
      else:
12813
        iprot.skip(ftype)
12814
      iprot.readFieldEnd()
12815
    iprot.readStructEnd()
12816
 
12817
  def write(self, oprot):
12818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12820
      return
2981 rajveer 12821
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12822
    if self.userId is not None:
2981 rajveer 12823
      oprot.writeFieldBegin('userId', TType.I64, 1)
12824
      oprot.writeI64(self.userId)
2642 varun.gupt 12825
      oprot.writeFieldEnd()
3431 rajveer 12826
    if self.itemId is not None:
2981 rajveer 12827
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12828
      oprot.writeI64(self.itemId)
2642 varun.gupt 12829
      oprot.writeFieldEnd()
12830
    oprot.writeFieldStop()
12831
    oprot.writeStructEnd()
12832
 
3431 rajveer 12833
  def validate(self):
12834
    return
12835
 
12836
 
2642 varun.gupt 12837
  def __repr__(self):
12838
    L = ['%s=%r' % (key, value)
12839
      for key, value in self.__dict__.iteritems()]
12840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12841
 
12842
  def __eq__(self, other):
12843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12844
 
12845
  def __ne__(self, other):
12846
    return not (self == other)
12847
 
2981 rajveer 12848
class updateBrowseHistory_result:
2642 varun.gupt 12849
 
12850
  thrift_spec = (
12851
  )
12852
 
12853
  def read(self, iprot):
12854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12856
      return
12857
    iprot.readStructBegin()
12858
    while True:
12859
      (fname, ftype, fid) = iprot.readFieldBegin()
12860
      if ftype == TType.STOP:
12861
        break
12862
      else:
12863
        iprot.skip(ftype)
12864
      iprot.readFieldEnd()
12865
    iprot.readStructEnd()
12866
 
12867
  def write(self, oprot):
12868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12870
      return
2981 rajveer 12871
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12872
    oprot.writeFieldStop()
12873
    oprot.writeStructEnd()
12874
 
3431 rajveer 12875
  def validate(self):
12876
    return
12877
 
12878
 
2642 varun.gupt 12879
  def __repr__(self):
12880
    L = ['%s=%r' % (key, value)
12881
      for key, value in self.__dict__.iteritems()]
12882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12883
 
12884
  def __eq__(self, other):
12885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12886
 
12887
  def __ne__(self, other):
12888
    return not (self == other)
12889
 
3385 varun.gupt 12890
class getCartsWithCouponCount_args:
12891
  """
12892
  Attributes:
12893
   - couponCode
12894
  """
2642 varun.gupt 12895
 
3385 varun.gupt 12896
  thrift_spec = (
12897
    None, # 0
12898
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12899
  )
12900
 
12901
  def __init__(self, couponCode=None,):
12902
    self.couponCode = couponCode
12903
 
12904
  def read(self, iprot):
12905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12907
      return
12908
    iprot.readStructBegin()
12909
    while True:
12910
      (fname, ftype, fid) = iprot.readFieldBegin()
12911
      if ftype == TType.STOP:
12912
        break
12913
      if fid == 1:
12914
        if ftype == TType.STRING:
12915
          self.couponCode = iprot.readString();
12916
        else:
12917
          iprot.skip(ftype)
12918
      else:
12919
        iprot.skip(ftype)
12920
      iprot.readFieldEnd()
12921
    iprot.readStructEnd()
12922
 
12923
  def write(self, oprot):
12924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12926
      return
12927
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12928
    if self.couponCode is not None:
3385 varun.gupt 12929
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12930
      oprot.writeString(self.couponCode)
12931
      oprot.writeFieldEnd()
12932
    oprot.writeFieldStop()
12933
    oprot.writeStructEnd()
12934
 
3431 rajveer 12935
  def validate(self):
12936
    return
12937
 
12938
 
3385 varun.gupt 12939
  def __repr__(self):
12940
    L = ['%s=%r' % (key, value)
12941
      for key, value in self.__dict__.iteritems()]
12942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12943
 
12944
  def __eq__(self, other):
12945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12946
 
12947
  def __ne__(self, other):
12948
    return not (self == other)
12949
 
12950
class getCartsWithCouponCount_result:
12951
  """
12952
  Attributes:
12953
   - success
12954
  """
12955
 
12956
  thrift_spec = (
12957
    (0, TType.I64, 'success', None, None, ), # 0
12958
  )
12959
 
12960
  def __init__(self, success=None,):
12961
    self.success = success
12962
 
12963
  def read(self, iprot):
12964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12966
      return
12967
    iprot.readStructBegin()
12968
    while True:
12969
      (fname, ftype, fid) = iprot.readFieldBegin()
12970
      if ftype == TType.STOP:
12971
        break
12972
      if fid == 0:
12973
        if ftype == TType.I64:
12974
          self.success = iprot.readI64();
12975
        else:
12976
          iprot.skip(ftype)
12977
      else:
12978
        iprot.skip(ftype)
12979
      iprot.readFieldEnd()
12980
    iprot.readStructEnd()
12981
 
12982
  def write(self, oprot):
12983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12985
      return
12986
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 12987
    if self.success is not None:
3385 varun.gupt 12988
      oprot.writeFieldBegin('success', TType.I64, 0)
12989
      oprot.writeI64(self.success)
12990
      oprot.writeFieldEnd()
12991
    oprot.writeFieldStop()
12992
    oprot.writeStructEnd()
12993
 
3431 rajveer 12994
  def validate(self):
12995
    return
12996
 
12997
 
3385 varun.gupt 12998
  def __repr__(self):
12999
    L = ['%s=%r' % (key, value)
13000
      for key, value in self.__dict__.iteritems()]
13001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13002
 
13003
  def __eq__(self, other):
13004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13005
 
13006
  def __ne__(self, other):
13007
    return not (self == other)
3499 mandeep.dh 13008
 
13009
class increaseTrustLevel_args:
13010
  """
13011
  Attributes:
13012
   - userId
13013
   - trustLevelDelta
13014
  """
13015
 
13016
  thrift_spec = (
13017
    None, # 0
13018
    (1, TType.I64, 'userId', None, None, ), # 1
13019
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13020
  )
13021
 
13022
  def __init__(self, userId=None, trustLevelDelta=None,):
13023
    self.userId = userId
13024
    self.trustLevelDelta = trustLevelDelta
13025
 
13026
  def read(self, iprot):
13027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13029
      return
13030
    iprot.readStructBegin()
13031
    while True:
13032
      (fname, ftype, fid) = iprot.readFieldBegin()
13033
      if ftype == TType.STOP:
13034
        break
13035
      if fid == 1:
13036
        if ftype == TType.I64:
13037
          self.userId = iprot.readI64();
13038
        else:
13039
          iprot.skip(ftype)
13040
      elif fid == 2:
13041
        if ftype == TType.DOUBLE:
13042
          self.trustLevelDelta = iprot.readDouble();
13043
        else:
13044
          iprot.skip(ftype)
13045
      else:
13046
        iprot.skip(ftype)
13047
      iprot.readFieldEnd()
13048
    iprot.readStructEnd()
13049
 
13050
  def write(self, oprot):
13051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13053
      return
13054
    oprot.writeStructBegin('increaseTrustLevel_args')
13055
    if self.userId is not None:
13056
      oprot.writeFieldBegin('userId', TType.I64, 1)
13057
      oprot.writeI64(self.userId)
13058
      oprot.writeFieldEnd()
13059
    if self.trustLevelDelta is not None:
13060
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13061
      oprot.writeDouble(self.trustLevelDelta)
13062
      oprot.writeFieldEnd()
13063
    oprot.writeFieldStop()
13064
    oprot.writeStructEnd()
13065
 
13066
  def validate(self):
13067
    return
13068
 
13069
 
13070
  def __repr__(self):
13071
    L = ['%s=%r' % (key, value)
13072
      for key, value in self.__dict__.iteritems()]
13073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13074
 
13075
  def __eq__(self, other):
13076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13077
 
13078
  def __ne__(self, other):
13079
    return not (self == other)
4668 varun.gupt 13080
 
5407 amar.kumar 13081
class getTrustLevel_args:
13082
  """
13083
  Attributes:
13084
   - userId
13085
  """
13086
 
13087
  thrift_spec = (
13088
    None, # 0
13089
    (1, TType.I64, 'userId', None, None, ), # 1
13090
  )
13091
 
13092
  def __init__(self, userId=None,):
13093
    self.userId = userId
13094
 
13095
  def read(self, iprot):
13096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13098
      return
13099
    iprot.readStructBegin()
13100
    while True:
13101
      (fname, ftype, fid) = iprot.readFieldBegin()
13102
      if ftype == TType.STOP:
13103
        break
13104
      if fid == 1:
13105
        if ftype == TType.I64:
13106
          self.userId = iprot.readI64();
13107
        else:
13108
          iprot.skip(ftype)
13109
      else:
13110
        iprot.skip(ftype)
13111
      iprot.readFieldEnd()
13112
    iprot.readStructEnd()
13113
 
13114
  def write(self, oprot):
13115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13117
      return
13118
    oprot.writeStructBegin('getTrustLevel_args')
13119
    if self.userId is not None:
13120
      oprot.writeFieldBegin('userId', TType.I64, 1)
13121
      oprot.writeI64(self.userId)
13122
      oprot.writeFieldEnd()
13123
    oprot.writeFieldStop()
13124
    oprot.writeStructEnd()
13125
 
13126
  def validate(self):
13127
    return
13128
 
13129
 
13130
  def __repr__(self):
13131
    L = ['%s=%r' % (key, value)
13132
      for key, value in self.__dict__.iteritems()]
13133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13134
 
13135
  def __eq__(self, other):
13136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13137
 
13138
  def __ne__(self, other):
13139
    return not (self == other)
13140
 
13141
class getTrustLevel_result:
13142
  """
13143
  Attributes:
13144
   - success
13145
  """
13146
 
13147
  thrift_spec = (
13148
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13149
  )
13150
 
13151
  def __init__(self, success=None,):
13152
    self.success = success
13153
 
13154
  def read(self, iprot):
13155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13157
      return
13158
    iprot.readStructBegin()
13159
    while True:
13160
      (fname, ftype, fid) = iprot.readFieldBegin()
13161
      if ftype == TType.STOP:
13162
        break
13163
      if fid == 0:
13164
        if ftype == TType.DOUBLE:
13165
          self.success = iprot.readDouble();
13166
        else:
13167
          iprot.skip(ftype)
13168
      else:
13169
        iprot.skip(ftype)
13170
      iprot.readFieldEnd()
13171
    iprot.readStructEnd()
13172
 
13173
  def write(self, oprot):
13174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13176
      return
13177
    oprot.writeStructBegin('getTrustLevel_result')
13178
    if self.success is not None:
13179
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13180
      oprot.writeDouble(self.success)
13181
      oprot.writeFieldEnd()
13182
    oprot.writeFieldStop()
13183
    oprot.writeStructEnd()
13184
 
13185
  def validate(self):
13186
    return
13187
 
13188
 
13189
  def __repr__(self):
13190
    L = ['%s=%r' % (key, value)
13191
      for key, value in self.__dict__.iteritems()]
13192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13193
 
13194
  def __eq__(self, other):
13195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13196
 
13197
  def __ne__(self, other):
13198
    return not (self == other)
13199
 
4668 varun.gupt 13200
class showCODOption_args:
13201
  """
13202
  Attributes:
13203
   - cartId
13204
   - sourceId
13205
   - pincode
13206
  """
13207
 
13208
  thrift_spec = (
13209
    None, # 0
13210
    (1, TType.I64, 'cartId', None, None, ), # 1
13211
    (2, TType.I64, 'sourceId', None, None, ), # 2
13212
    (3, TType.STRING, 'pincode', None, None, ), # 3
13213
  )
13214
 
13215
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13216
    self.cartId = cartId
13217
    self.sourceId = sourceId
13218
    self.pincode = pincode
13219
 
13220
  def read(self, iprot):
13221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13223
      return
13224
    iprot.readStructBegin()
13225
    while True:
13226
      (fname, ftype, fid) = iprot.readFieldBegin()
13227
      if ftype == TType.STOP:
13228
        break
13229
      if fid == 1:
13230
        if ftype == TType.I64:
13231
          self.cartId = iprot.readI64();
13232
        else:
13233
          iprot.skip(ftype)
13234
      elif fid == 2:
13235
        if ftype == TType.I64:
13236
          self.sourceId = iprot.readI64();
13237
        else:
13238
          iprot.skip(ftype)
13239
      elif fid == 3:
13240
        if ftype == TType.STRING:
13241
          self.pincode = iprot.readString();
13242
        else:
13243
          iprot.skip(ftype)
13244
      else:
13245
        iprot.skip(ftype)
13246
      iprot.readFieldEnd()
13247
    iprot.readStructEnd()
13248
 
13249
  def write(self, oprot):
13250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13252
      return
13253
    oprot.writeStructBegin('showCODOption_args')
13254
    if self.cartId is not None:
13255
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13256
      oprot.writeI64(self.cartId)
13257
      oprot.writeFieldEnd()
13258
    if self.sourceId is not None:
13259
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13260
      oprot.writeI64(self.sourceId)
13261
      oprot.writeFieldEnd()
13262
    if self.pincode is not None:
13263
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13264
      oprot.writeString(self.pincode)
13265
      oprot.writeFieldEnd()
13266
    oprot.writeFieldStop()
13267
    oprot.writeStructEnd()
13268
 
13269
  def validate(self):
13270
    return
13271
 
13272
 
13273
  def __repr__(self):
13274
    L = ['%s=%r' % (key, value)
13275
      for key, value in self.__dict__.iteritems()]
13276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13277
 
13278
  def __eq__(self, other):
13279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13280
 
13281
  def __ne__(self, other):
13282
    return not (self == other)
13283
 
13284
class showCODOption_result:
13285
  """
13286
  Attributes:
13287
   - success
13288
  """
13289
 
13290
  thrift_spec = (
13291
    (0, TType.BOOL, 'success', None, None, ), # 0
13292
  )
13293
 
13294
  def __init__(self, success=None,):
13295
    self.success = success
13296
 
13297
  def read(self, iprot):
13298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13300
      return
13301
    iprot.readStructBegin()
13302
    while True:
13303
      (fname, ftype, fid) = iprot.readFieldBegin()
13304
      if ftype == TType.STOP:
13305
        break
13306
      if fid == 0:
13307
        if ftype == TType.BOOL:
13308
          self.success = iprot.readBool();
13309
        else:
13310
          iprot.skip(ftype)
13311
      else:
13312
        iprot.skip(ftype)
13313
      iprot.readFieldEnd()
13314
    iprot.readStructEnd()
13315
 
13316
  def write(self, oprot):
13317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13319
      return
13320
    oprot.writeStructBegin('showCODOption_result')
13321
    if self.success is not None:
13322
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13323
      oprot.writeBool(self.success)
13324
      oprot.writeFieldEnd()
13325
    oprot.writeFieldStop()
13326
    oprot.writeStructEnd()
13327
 
13328
  def validate(self):
13329
    return
13330
 
13331
 
13332
  def __repr__(self):
13333
    L = ['%s=%r' % (key, value)
13334
      for key, value in self.__dict__.iteritems()]
13335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13336
 
13337
  def __eq__(self, other):
13338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13339
 
13340
  def __ne__(self, other):
13341
    return not (self == other)
5623 anupam.sin 13342
 
13343
class getUserEmails_args:
13344
  """
13345
  Attributes:
13346
   - startDate
13347
   - endDate
13348
  """
13349
 
13350
  thrift_spec = (
13351
    None, # 0
13352
    (1, TType.I64, 'startDate', None, None, ), # 1
13353
    (2, TType.I64, 'endDate', None, None, ), # 2
13354
  )
13355
 
13356
  def __init__(self, startDate=None, endDate=None,):
13357
    self.startDate = startDate
13358
    self.endDate = endDate
13359
 
13360
  def read(self, iprot):
13361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13363
      return
13364
    iprot.readStructBegin()
13365
    while True:
13366
      (fname, ftype, fid) = iprot.readFieldBegin()
13367
      if ftype == TType.STOP:
13368
        break
13369
      if fid == 1:
13370
        if ftype == TType.I64:
13371
          self.startDate = iprot.readI64();
13372
        else:
13373
          iprot.skip(ftype)
13374
      elif fid == 2:
13375
        if ftype == TType.I64:
13376
          self.endDate = iprot.readI64();
13377
        else:
13378
          iprot.skip(ftype)
13379
      else:
13380
        iprot.skip(ftype)
13381
      iprot.readFieldEnd()
13382
    iprot.readStructEnd()
13383
 
13384
  def write(self, oprot):
13385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13387
      return
13388
    oprot.writeStructBegin('getUserEmails_args')
13389
    if self.startDate is not None:
13390
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13391
      oprot.writeI64(self.startDate)
13392
      oprot.writeFieldEnd()
13393
    if self.endDate is not None:
13394
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13395
      oprot.writeI64(self.endDate)
13396
      oprot.writeFieldEnd()
13397
    oprot.writeFieldStop()
13398
    oprot.writeStructEnd()
13399
 
13400
  def validate(self):
13401
    return
13402
 
13403
 
13404
  def __repr__(self):
13405
    L = ['%s=%r' % (key, value)
13406
      for key, value in self.__dict__.iteritems()]
13407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13408
 
13409
  def __eq__(self, other):
13410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13411
 
13412
  def __ne__(self, other):
13413
    return not (self == other)
13414
 
13415
class getUserEmails_result:
13416
  """
13417
  Attributes:
13418
   - success
13419
  """
13420
 
13421
  thrift_spec = (
13422
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13423
  )
13424
 
13425
  def __init__(self, success=None,):
13426
    self.success = success
13427
 
13428
  def read(self, iprot):
13429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13431
      return
13432
    iprot.readStructBegin()
13433
    while True:
13434
      (fname, ftype, fid) = iprot.readFieldBegin()
13435
      if ftype == TType.STOP:
13436
        break
13437
      if fid == 0:
13438
        if ftype == TType.LIST:
13439
          self.success = []
7746 amit.gupta 13440
          (_etype200, _size197) = iprot.readListBegin()
13441
          for _i201 in xrange(_size197):
13442
            _elem202 = iprot.readString();
13443
            self.success.append(_elem202)
5623 anupam.sin 13444
          iprot.readListEnd()
13445
        else:
13446
          iprot.skip(ftype)
13447
      else:
13448
        iprot.skip(ftype)
13449
      iprot.readFieldEnd()
13450
    iprot.readStructEnd()
13451
 
13452
  def write(self, oprot):
13453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13455
      return
13456
    oprot.writeStructBegin('getUserEmails_result')
13457
    if self.success is not None:
13458
      oprot.writeFieldBegin('success', TType.LIST, 0)
13459
      oprot.writeListBegin(TType.STRING, len(self.success))
7746 amit.gupta 13460
      for iter203 in self.success:
13461
        oprot.writeString(iter203)
5623 anupam.sin 13462
      oprot.writeListEnd()
13463
      oprot.writeFieldEnd()
13464
    oprot.writeFieldStop()
13465
    oprot.writeStructEnd()
13466
 
13467
  def validate(self):
13468
    return
13469
 
13470
 
13471
  def __repr__(self):
13472
    L = ['%s=%r' % (key, value)
13473
      for key, value in self.__dict__.iteritems()]
13474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13475
 
13476
  def __eq__(self, other):
13477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13478
 
13479
  def __ne__(self, other):
13480
    return not (self == other)
6821 amar.kumar 13481
 
6903 anupam.sin 13482
class insureItem_args:
13483
  """
13484
  Attributes:
13485
   - itemId
13486
   - cartId
13487
   - toInsure
9299 kshitij.so 13488
   - insurerType
6903 anupam.sin 13489
  """
13490
 
13491
  thrift_spec = (
13492
    None, # 0
13493
    (1, TType.I64, 'itemId', None, None, ), # 1
13494
    (2, TType.I64, 'cartId', None, None, ), # 2
13495
    (3, TType.BOOL, 'toInsure', None, None, ), # 3
9299 kshitij.so 13496
    (4, TType.I32, 'insurerType', None, None, ), # 4
6903 anupam.sin 13497
  )
13498
 
9299 kshitij.so 13499
  def __init__(self, itemId=None, cartId=None, toInsure=None, insurerType=None,):
6903 anupam.sin 13500
    self.itemId = itemId
13501
    self.cartId = cartId
13502
    self.toInsure = toInsure
9299 kshitij.so 13503
    self.insurerType = insurerType
6903 anupam.sin 13504
 
13505
  def read(self, iprot):
13506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13508
      return
13509
    iprot.readStructBegin()
13510
    while True:
13511
      (fname, ftype, fid) = iprot.readFieldBegin()
13512
      if ftype == TType.STOP:
13513
        break
13514
      if fid == 1:
13515
        if ftype == TType.I64:
13516
          self.itemId = iprot.readI64();
13517
        else:
13518
          iprot.skip(ftype)
13519
      elif fid == 2:
13520
        if ftype == TType.I64:
13521
          self.cartId = iprot.readI64();
13522
        else:
13523
          iprot.skip(ftype)
13524
      elif fid == 3:
13525
        if ftype == TType.BOOL:
13526
          self.toInsure = iprot.readBool();
13527
        else:
13528
          iprot.skip(ftype)
9299 kshitij.so 13529
      elif fid == 4:
13530
        if ftype == TType.I32:
13531
          self.insurerType = iprot.readI32();
13532
        else:
13533
          iprot.skip(ftype)
6903 anupam.sin 13534
      else:
13535
        iprot.skip(ftype)
13536
      iprot.readFieldEnd()
13537
    iprot.readStructEnd()
13538
 
13539
  def write(self, oprot):
13540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13542
      return
13543
    oprot.writeStructBegin('insureItem_args')
13544
    if self.itemId is not None:
13545
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13546
      oprot.writeI64(self.itemId)
13547
      oprot.writeFieldEnd()
13548
    if self.cartId is not None:
13549
      oprot.writeFieldBegin('cartId', TType.I64, 2)
13550
      oprot.writeI64(self.cartId)
13551
      oprot.writeFieldEnd()
13552
    if self.toInsure is not None:
13553
      oprot.writeFieldBegin('toInsure', TType.BOOL, 3)
13554
      oprot.writeBool(self.toInsure)
13555
      oprot.writeFieldEnd()
9299 kshitij.so 13556
    if self.insurerType is not None:
13557
      oprot.writeFieldBegin('insurerType', TType.I32, 4)
13558
      oprot.writeI32(self.insurerType)
13559
      oprot.writeFieldEnd()
6903 anupam.sin 13560
    oprot.writeFieldStop()
13561
    oprot.writeStructEnd()
13562
 
13563
  def validate(self):
13564
    return
13565
 
13566
 
13567
  def __repr__(self):
13568
    L = ['%s=%r' % (key, value)
13569
      for key, value in self.__dict__.iteritems()]
13570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13571
 
13572
  def __eq__(self, other):
13573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13574
 
13575
  def __ne__(self, other):
13576
    return not (self == other)
13577
 
13578
class insureItem_result:
13579
  """
13580
  Attributes:
13581
   - success
13582
  """
13583
 
13584
  thrift_spec = (
13585
    (0, TType.BOOL, 'success', None, None, ), # 0
13586
  )
13587
 
13588
  def __init__(self, success=None,):
13589
    self.success = success
13590
 
13591
  def read(self, iprot):
13592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13594
      return
13595
    iprot.readStructBegin()
13596
    while True:
13597
      (fname, ftype, fid) = iprot.readFieldBegin()
13598
      if ftype == TType.STOP:
13599
        break
13600
      if fid == 0:
13601
        if ftype == TType.BOOL:
13602
          self.success = iprot.readBool();
13603
        else:
13604
          iprot.skip(ftype)
13605
      else:
13606
        iprot.skip(ftype)
13607
      iprot.readFieldEnd()
13608
    iprot.readStructEnd()
13609
 
13610
  def write(self, oprot):
13611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13613
      return
13614
    oprot.writeStructBegin('insureItem_result')
13615
    if self.success is not None:
13616
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13617
      oprot.writeBool(self.success)
13618
      oprot.writeFieldEnd()
13619
    oprot.writeFieldStop()
13620
    oprot.writeStructEnd()
13621
 
13622
  def validate(self):
13623
    return
13624
 
13625
 
13626
  def __repr__(self):
13627
    L = ['%s=%r' % (key, value)
13628
      for key, value in self.__dict__.iteritems()]
13629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13630
 
13631
  def __eq__(self, other):
13632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13633
 
13634
  def __ne__(self, other):
13635
    return not (self == other)
13636
 
13637
class cancelInsurance_args:
13638
  """
13639
  Attributes:
13640
   - cartId
13641
  """
13642
 
13643
  thrift_spec = (
13644
    None, # 0
13645
    (1, TType.I64, 'cartId', None, None, ), # 1
13646
  )
13647
 
13648
  def __init__(self, cartId=None,):
13649
    self.cartId = cartId
13650
 
13651
  def read(self, iprot):
13652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13654
      return
13655
    iprot.readStructBegin()
13656
    while True:
13657
      (fname, ftype, fid) = iprot.readFieldBegin()
13658
      if ftype == TType.STOP:
13659
        break
13660
      if fid == 1:
13661
        if ftype == TType.I64:
13662
          self.cartId = iprot.readI64();
13663
        else:
13664
          iprot.skip(ftype)
13665
      else:
13666
        iprot.skip(ftype)
13667
      iprot.readFieldEnd()
13668
    iprot.readStructEnd()
13669
 
13670
  def write(self, oprot):
13671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13673
      return
13674
    oprot.writeStructBegin('cancelInsurance_args')
13675
    if self.cartId is not None:
13676
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13677
      oprot.writeI64(self.cartId)
13678
      oprot.writeFieldEnd()
13679
    oprot.writeFieldStop()
13680
    oprot.writeStructEnd()
13681
 
13682
  def validate(self):
13683
    return
13684
 
13685
 
13686
  def __repr__(self):
13687
    L = ['%s=%r' % (key, value)
13688
      for key, value in self.__dict__.iteritems()]
13689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13690
 
13691
  def __eq__(self, other):
13692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13693
 
13694
  def __ne__(self, other):
13695
    return not (self == other)
13696
 
13697
class cancelInsurance_result:
13698
  """
13699
  Attributes:
13700
   - success
13701
  """
13702
 
13703
  thrift_spec = (
13704
    (0, TType.BOOL, 'success', None, None, ), # 0
13705
  )
13706
 
13707
  def __init__(self, success=None,):
13708
    self.success = success
13709
 
13710
  def read(self, iprot):
13711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13713
      return
13714
    iprot.readStructBegin()
13715
    while True:
13716
      (fname, ftype, fid) = iprot.readFieldBegin()
13717
      if ftype == TType.STOP:
13718
        break
13719
      if fid == 0:
13720
        if ftype == TType.BOOL:
13721
          self.success = iprot.readBool();
13722
        else:
13723
          iprot.skip(ftype)
13724
      else:
13725
        iprot.skip(ftype)
13726
      iprot.readFieldEnd()
13727
    iprot.readStructEnd()
13728
 
13729
  def write(self, oprot):
13730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13732
      return
13733
    oprot.writeStructBegin('cancelInsurance_result')
13734
    if self.success is not None:
13735
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13736
      oprot.writeBool(self.success)
13737
      oprot.writeFieldEnd()
13738
    oprot.writeFieldStop()
13739
    oprot.writeStructEnd()
13740
 
13741
  def validate(self):
13742
    return
13743
 
13744
 
13745
  def __repr__(self):
13746
    L = ['%s=%r' % (key, value)
13747
      for key, value in self.__dict__.iteritems()]
13748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13749
 
13750
  def __eq__(self, other):
13751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13752
 
13753
  def __ne__(self, other):
13754
    return not (self == other)
13755
 
13756
class storeInsuranceSpecificDetails_args:
13757
  """
13758
  Attributes:
13759
   - addressId
13760
   - dob
13761
   - guardianName
13762
  """
13763
 
13764
  thrift_spec = (
13765
    None, # 0
13766
    (1, TType.I64, 'addressId', None, None, ), # 1
13767
    (2, TType.STRING, 'dob', None, None, ), # 2
13768
    (3, TType.STRING, 'guardianName', None, None, ), # 3
13769
  )
13770
 
13771
  def __init__(self, addressId=None, dob=None, guardianName=None,):
13772
    self.addressId = addressId
13773
    self.dob = dob
13774
    self.guardianName = guardianName
13775
 
13776
  def read(self, iprot):
13777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13779
      return
13780
    iprot.readStructBegin()
13781
    while True:
13782
      (fname, ftype, fid) = iprot.readFieldBegin()
13783
      if ftype == TType.STOP:
13784
        break
13785
      if fid == 1:
13786
        if ftype == TType.I64:
13787
          self.addressId = iprot.readI64();
13788
        else:
13789
          iprot.skip(ftype)
13790
      elif fid == 2:
13791
        if ftype == TType.STRING:
13792
          self.dob = iprot.readString();
13793
        else:
13794
          iprot.skip(ftype)
13795
      elif fid == 3:
13796
        if ftype == TType.STRING:
13797
          self.guardianName = iprot.readString();
13798
        else:
13799
          iprot.skip(ftype)
13800
      else:
13801
        iprot.skip(ftype)
13802
      iprot.readFieldEnd()
13803
    iprot.readStructEnd()
13804
 
13805
  def write(self, oprot):
13806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13808
      return
13809
    oprot.writeStructBegin('storeInsuranceSpecificDetails_args')
13810
    if self.addressId is not None:
13811
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13812
      oprot.writeI64(self.addressId)
13813
      oprot.writeFieldEnd()
13814
    if self.dob is not None:
13815
      oprot.writeFieldBegin('dob', TType.STRING, 2)
13816
      oprot.writeString(self.dob)
13817
      oprot.writeFieldEnd()
13818
    if self.guardianName is not None:
13819
      oprot.writeFieldBegin('guardianName', TType.STRING, 3)
13820
      oprot.writeString(self.guardianName)
13821
      oprot.writeFieldEnd()
13822
    oprot.writeFieldStop()
13823
    oprot.writeStructEnd()
13824
 
13825
  def validate(self):
13826
    return
13827
 
13828
 
13829
  def __repr__(self):
13830
    L = ['%s=%r' % (key, value)
13831
      for key, value in self.__dict__.iteritems()]
13832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13833
 
13834
  def __eq__(self, other):
13835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13836
 
13837
  def __ne__(self, other):
13838
    return not (self == other)
13839
 
13840
class storeInsuranceSpecificDetails_result:
13841
  """
13842
  Attributes:
13843
   - success
13844
  """
13845
 
13846
  thrift_spec = (
13847
    (0, TType.BOOL, 'success', None, None, ), # 0
13848
  )
13849
 
13850
  def __init__(self, success=None,):
13851
    self.success = success
13852
 
13853
  def read(self, iprot):
13854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13856
      return
13857
    iprot.readStructBegin()
13858
    while True:
13859
      (fname, ftype, fid) = iprot.readFieldBegin()
13860
      if ftype == TType.STOP:
13861
        break
13862
      if fid == 0:
13863
        if ftype == TType.BOOL:
13864
          self.success = iprot.readBool();
13865
        else:
13866
          iprot.skip(ftype)
13867
      else:
13868
        iprot.skip(ftype)
13869
      iprot.readFieldEnd()
13870
    iprot.readStructEnd()
13871
 
13872
  def write(self, oprot):
13873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13875
      return
13876
    oprot.writeStructBegin('storeInsuranceSpecificDetails_result')
13877
    if self.success is not None:
13878
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13879
      oprot.writeBool(self.success)
13880
      oprot.writeFieldEnd()
13881
    oprot.writeFieldStop()
13882
    oprot.writeStructEnd()
13883
 
13884
  def validate(self):
13885
    return
13886
 
13887
 
13888
  def __repr__(self):
13889
    L = ['%s=%r' % (key, value)
13890
      for key, value in self.__dict__.iteritems()]
13891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13892
 
13893
  def __eq__(self, other):
13894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13895
 
13896
  def __ne__(self, other):
13897
    return not (self == other)
13898
 
13899
class isInsuranceDetailPresent_args:
13900
  """
13901
  Attributes:
13902
   - addressId
13903
  """
13904
 
13905
  thrift_spec = (
13906
    None, # 0
13907
    (1, TType.I64, 'addressId', None, None, ), # 1
13908
  )
13909
 
13910
  def __init__(self, addressId=None,):
13911
    self.addressId = addressId
13912
 
13913
  def read(self, iprot):
13914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13916
      return
13917
    iprot.readStructBegin()
13918
    while True:
13919
      (fname, ftype, fid) = iprot.readFieldBegin()
13920
      if ftype == TType.STOP:
13921
        break
13922
      if fid == 1:
13923
        if ftype == TType.I64:
13924
          self.addressId = iprot.readI64();
13925
        else:
13926
          iprot.skip(ftype)
13927
      else:
13928
        iprot.skip(ftype)
13929
      iprot.readFieldEnd()
13930
    iprot.readStructEnd()
13931
 
13932
  def write(self, oprot):
13933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13935
      return
13936
    oprot.writeStructBegin('isInsuranceDetailPresent_args')
13937
    if self.addressId is not None:
13938
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13939
      oprot.writeI64(self.addressId)
13940
      oprot.writeFieldEnd()
13941
    oprot.writeFieldStop()
13942
    oprot.writeStructEnd()
13943
 
13944
  def validate(self):
13945
    return
13946
 
13947
 
13948
  def __repr__(self):
13949
    L = ['%s=%r' % (key, value)
13950
      for key, value in self.__dict__.iteritems()]
13951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13952
 
13953
  def __eq__(self, other):
13954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13955
 
13956
  def __ne__(self, other):
13957
    return not (self == other)
13958
 
13959
class isInsuranceDetailPresent_result:
13960
  """
13961
  Attributes:
13962
   - success
13963
  """
13964
 
13965
  thrift_spec = (
13966
    (0, TType.BOOL, 'success', None, None, ), # 0
13967
  )
13968
 
13969
  def __init__(self, success=None,):
13970
    self.success = success
13971
 
13972
  def read(self, iprot):
13973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13975
      return
13976
    iprot.readStructBegin()
13977
    while True:
13978
      (fname, ftype, fid) = iprot.readFieldBegin()
13979
      if ftype == TType.STOP:
13980
        break
13981
      if fid == 0:
13982
        if ftype == TType.BOOL:
13983
          self.success = iprot.readBool();
13984
        else:
13985
          iprot.skip(ftype)
13986
      else:
13987
        iprot.skip(ftype)
13988
      iprot.readFieldEnd()
13989
    iprot.readStructEnd()
13990
 
13991
  def write(self, oprot):
13992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13994
      return
13995
    oprot.writeStructBegin('isInsuranceDetailPresent_result')
13996
    if self.success is not None:
13997
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13998
      oprot.writeBool(self.success)
13999
      oprot.writeFieldEnd()
14000
    oprot.writeFieldStop()
14001
    oprot.writeStructEnd()
14002
 
14003
  def validate(self):
14004
    return
14005
 
14006
 
14007
  def __repr__(self):
14008
    L = ['%s=%r' % (key, value)
14009
      for key, value in self.__dict__.iteritems()]
14010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14011
 
14012
  def __eq__(self, other):
14013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14014
 
14015
  def __ne__(self, other):
14016
    return not (self == other)
14017
 
9791 rajveer 14018
class getProductsAddedToCart_args:
6821 amar.kumar 14019
  """
14020
  Attributes:
14021
   - startDate
14022
   - endDate
14023
  """
14024
 
14025
  thrift_spec = (
14026
    None, # 0
9791 rajveer 14027
    (1, TType.I64, 'startDate', None, None, ), # 1
14028
    (2, TType.I64, 'endDate', None, None, ), # 2
6821 amar.kumar 14029
  )
14030
 
9791 rajveer 14031
  def __init__(self, startDate=None, endDate=None,):
6821 amar.kumar 14032
    self.startDate = startDate
14033
    self.endDate = endDate
14034
 
14035
  def read(self, iprot):
14036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14038
      return
14039
    iprot.readStructBegin()
14040
    while True:
14041
      (fname, ftype, fid) = iprot.readFieldBegin()
14042
      if ftype == TType.STOP:
14043
        break
14044
      if fid == 1:
14045
        if ftype == TType.I64:
9791 rajveer 14046
          self.startDate = iprot.readI64();
6821 amar.kumar 14047
        else:
14048
          iprot.skip(ftype)
14049
      elif fid == 2:
14050
        if ftype == TType.I64:
14051
          self.endDate = iprot.readI64();
14052
        else:
14053
          iprot.skip(ftype)
14054
      else:
14055
        iprot.skip(ftype)
14056
      iprot.readFieldEnd()
14057
    iprot.readStructEnd()
14058
 
14059
  def write(self, oprot):
14060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14062
      return
9791 rajveer 14063
    oprot.writeStructBegin('getProductsAddedToCart_args')
6821 amar.kumar 14064
    if self.startDate is not None:
9791 rajveer 14065
      oprot.writeFieldBegin('startDate', TType.I64, 1)
6821 amar.kumar 14066
      oprot.writeI64(self.startDate)
14067
      oprot.writeFieldEnd()
14068
    if self.endDate is not None:
9791 rajveer 14069
      oprot.writeFieldBegin('endDate', TType.I64, 2)
6821 amar.kumar 14070
      oprot.writeI64(self.endDate)
14071
      oprot.writeFieldEnd()
14072
    oprot.writeFieldStop()
14073
    oprot.writeStructEnd()
14074
 
14075
  def validate(self):
14076
    return
14077
 
14078
 
14079
  def __repr__(self):
14080
    L = ['%s=%r' % (key, value)
14081
      for key, value in self.__dict__.iteritems()]
14082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14083
 
14084
  def __eq__(self, other):
14085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14086
 
14087
  def __ne__(self, other):
14088
    return not (self == other)
14089
 
9791 rajveer 14090
class getProductsAddedToCart_result:
6821 amar.kumar 14091
  """
14092
  Attributes:
14093
   - success
14094
  """
14095
 
14096
  thrift_spec = (
9791 rajveer 14097
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6821 amar.kumar 14098
  )
14099
 
14100
  def __init__(self, success=None,):
14101
    self.success = success
14102
 
14103
  def read(self, iprot):
14104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14106
      return
14107
    iprot.readStructBegin()
14108
    while True:
14109
      (fname, ftype, fid) = iprot.readFieldBegin()
14110
      if ftype == TType.STOP:
14111
        break
14112
      if fid == 0:
9791 rajveer 14113
        if ftype == TType.LIST:
14114
          self.success = []
14115
          (_etype207, _size204) = iprot.readListBegin()
14116
          for _i208 in xrange(_size204):
14117
            _elem209 = iprot.readI64();
14118
            self.success.append(_elem209)
14119
          iprot.readListEnd()
6821 amar.kumar 14120
        else:
14121
          iprot.skip(ftype)
14122
      else:
14123
        iprot.skip(ftype)
14124
      iprot.readFieldEnd()
14125
    iprot.readStructEnd()
14126
 
14127
  def write(self, oprot):
14128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14130
      return
9791 rajveer 14131
    oprot.writeStructBegin('getProductsAddedToCart_result')
6821 amar.kumar 14132
    if self.success is not None:
9791 rajveer 14133
      oprot.writeFieldBegin('success', TType.LIST, 0)
14134
      oprot.writeListBegin(TType.I64, len(self.success))
14135
      for iter210 in self.success:
14136
        oprot.writeI64(iter210)
14137
      oprot.writeListEnd()
6821 amar.kumar 14138
      oprot.writeFieldEnd()
14139
    oprot.writeFieldStop()
14140
    oprot.writeStructEnd()
14141
 
14142
  def validate(self):
14143
    return
14144
 
14145
 
14146
  def __repr__(self):
14147
    L = ['%s=%r' % (key, value)
14148
      for key, value in self.__dict__.iteritems()]
14149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14150
 
14151
  def __eq__(self, other):
14152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14153
 
14154
  def __ne__(self, other):
14155
    return not (self == other)