Subversion Repositories SmartDukaan

Rev

Rev 11526 | Rev 11679 | 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
 
11592 amit.gupta 642
  def validateCartPlus(self, cartId, sourceId):
643
    """
644
    This method is speciically used to avoid overloadaed calls to userClient
6821 amar.kumar 645
 
11592 amit.gupta 646
    Parameters:
647
     - cartId
648
     - sourceId
649
    """
650
    pass
651
 
652
 
3376 rajveer 653
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 654
  """
655
  service
656
  """
657
  def __init__(self, iprot, oprot=None):
3376 rajveer 658
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 659
 
559 chandransh 660
  def createAnonymousUser(self, jsessionId):
94 ashish 661
    """
662
    Parameters:
559 chandransh 663
     - jsessionId
94 ashish 664
    """
559 chandransh 665
    self.send_createAnonymousUser(jsessionId)
666
    return self.recv_createAnonymousUser()
94 ashish 667
 
559 chandransh 668
  def send_createAnonymousUser(self, jsessionId):
669
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
670
    args = createAnonymousUser_args()
671
    args.jsessionId = jsessionId
94 ashish 672
    args.write(self._oprot)
673
    self._oprot.writeMessageEnd()
674
    self._oprot.trans.flush()
675
 
559 chandransh 676
  def recv_createAnonymousUser(self, ):
94 ashish 677
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
678
    if mtype == TMessageType.EXCEPTION:
679
      x = TApplicationException()
680
      x.read(self._iprot)
681
      self._iprot.readMessageEnd()
682
      raise x
559 chandransh 683
    result = createAnonymousUser_result()
94 ashish 684
    result.read(self._iprot)
685
    self._iprot.readMessageEnd()
3431 rajveer 686
    if result.success is not None:
94 ashish 687
      return result.success
3431 rajveer 688
    if result.ucex is not None:
559 chandransh 689
      raise result.ucex
690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 691
 
559 chandransh 692
  def getUserById(self, userId):
94 ashish 693
    """
694
    Parameters:
695
     - userId
696
    """
559 chandransh 697
    self.send_getUserById(userId)
698
    return self.recv_getUserById()
94 ashish 699
 
559 chandransh 700
  def send_getUserById(self, userId):
701
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
702
    args = getUserById_args()
94 ashish 703
    args.userId = userId
704
    args.write(self._oprot)
705
    self._oprot.writeMessageEnd()
706
    self._oprot.trans.flush()
707
 
559 chandransh 708
  def recv_getUserById(self, ):
94 ashish 709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
710
    if mtype == TMessageType.EXCEPTION:
711
      x = TApplicationException()
712
      x.read(self._iprot)
713
      self._iprot.readMessageEnd()
714
      raise x
559 chandransh 715
    result = getUserById_result()
94 ashish 716
    result.read(self._iprot)
717
    self._iprot.readMessageEnd()
3431 rajveer 718
    if result.success is not None:
94 ashish 719
      return result.success
3431 rajveer 720
    if result.ucex is not None:
559 chandransh 721
      raise result.ucex
722
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 723
 
5326 rajveer 724
  def getUserByCartId(self, cartId):
725
    """
726
    Parameters:
727
     - cartId
728
    """
729
    self.send_getUserByCartId(cartId)
730
    return self.recv_getUserByCartId()
731
 
732
  def send_getUserByCartId(self, cartId):
733
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
734
    args = getUserByCartId_args()
735
    args.cartId = cartId
736
    args.write(self._oprot)
737
    self._oprot.writeMessageEnd()
738
    self._oprot.trans.flush()
739
 
740
  def recv_getUserByCartId(self, ):
741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
742
    if mtype == TMessageType.EXCEPTION:
743
      x = TApplicationException()
744
      x.read(self._iprot)
745
      self._iprot.readMessageEnd()
746
      raise x
747
    result = getUserByCartId_result()
748
    result.read(self._iprot)
749
    self._iprot.readMessageEnd()
750
    if result.success is not None:
751
      return result.success
752
    if result.ucex is not None:
753
      raise result.ucex
754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
755
 
1491 vikas 756
  def getUserByEmail(self, email):
757
    """
758
    Parameters:
759
     - email
760
    """
761
    self.send_getUserByEmail(email)
762
    return self.recv_getUserByEmail()
763
 
764
  def send_getUserByEmail(self, email):
765
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
766
    args = getUserByEmail_args()
767
    args.email = email
768
    args.write(self._oprot)
769
    self._oprot.writeMessageEnd()
770
    self._oprot.trans.flush()
771
 
772
  def recv_getUserByEmail(self, ):
773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
774
    if mtype == TMessageType.EXCEPTION:
775
      x = TApplicationException()
776
      x.read(self._iprot)
777
      self._iprot.readMessageEnd()
778
      raise x
779
    result = getUserByEmail_result()
780
    result.read(self._iprot)
781
    self._iprot.readMessageEnd()
3431 rajveer 782
    if result.success is not None:
1491 vikas 783
      return result.success
3431 rajveer 784
    if result.ucex is not None:
1491 vikas 785
      raise result.ucex
786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
787
 
3032 mandeep.dh 788
  def getUserByMobileNumber(self, mobileNumber):
789
    """
790
    Parameters:
791
     - mobileNumber
792
    """
793
    self.send_getUserByMobileNumber(mobileNumber)
794
    return self.recv_getUserByMobileNumber()
795
 
796
  def send_getUserByMobileNumber(self, mobileNumber):
797
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
798
    args = getUserByMobileNumber_args()
799
    args.mobileNumber = mobileNumber
800
    args.write(self._oprot)
801
    self._oprot.writeMessageEnd()
802
    self._oprot.trans.flush()
803
 
804
  def recv_getUserByMobileNumber(self, ):
805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
806
    if mtype == TMessageType.EXCEPTION:
807
      x = TApplicationException()
808
      x.read(self._iprot)
809
      self._iprot.readMessageEnd()
810
      raise x
811
    result = getUserByMobileNumber_result()
812
    result.read(self._iprot)
813
    self._iprot.readMessageEnd()
3431 rajveer 814
    if result.success is not None:
3032 mandeep.dh 815
      return result.success
3431 rajveer 816
    if result.ucex is not None:
3032 mandeep.dh 817
      raise result.ucex
818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
819
 
559 chandransh 820
  def createUser(self, user):
94 ashish 821
    """
822
    Parameters:
559 chandransh 823
     - user
94 ashish 824
    """
559 chandransh 825
    self.send_createUser(user)
826
    return self.recv_createUser()
94 ashish 827
 
559 chandransh 828
  def send_createUser(self, user):
829
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
830
    args = createUser_args()
831
    args.user = user
94 ashish 832
    args.write(self._oprot)
833
    self._oprot.writeMessageEnd()
834
    self._oprot.trans.flush()
835
 
559 chandransh 836
  def recv_createUser(self, ):
94 ashish 837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
838
    if mtype == TMessageType.EXCEPTION:
839
      x = TApplicationException()
840
      x.read(self._iprot)
841
      self._iprot.readMessageEnd()
842
      raise x
559 chandransh 843
    result = createUser_result()
94 ashish 844
    result.read(self._iprot)
845
    self._iprot.readMessageEnd()
3431 rajveer 846
    if result.success is not None:
94 ashish 847
      return result.success
3431 rajveer 848
    if result.ucex is not None:
559 chandransh 849
      raise result.ucex
850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 851
 
559 chandransh 852
  def updateUser(self, user):
94 ashish 853
    """
854
    Parameters:
559 chandransh 855
     - user
94 ashish 856
    """
559 chandransh 857
    self.send_updateUser(user)
858
    return self.recv_updateUser()
94 ashish 859
 
559 chandransh 860
  def send_updateUser(self, user):
861
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
862
    args = updateUser_args()
863
    args.user = user
94 ashish 864
    args.write(self._oprot)
865
    self._oprot.writeMessageEnd()
866
    self._oprot.trans.flush()
867
 
559 chandransh 868
  def recv_updateUser(self, ):
94 ashish 869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
870
    if mtype == TMessageType.EXCEPTION:
871
      x = TApplicationException()
872
      x.read(self._iprot)
873
      self._iprot.readMessageEnd()
874
      raise x
559 chandransh 875
    result = updateUser_result()
94 ashish 876
    result.read(self._iprot)
877
    self._iprot.readMessageEnd()
3431 rajveer 878
    if result.success is not None:
94 ashish 879
      return result.success
3431 rajveer 880
    if result.ucex is not None:
559 chandransh 881
      raise result.ucex
882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 883
 
559 chandransh 884
  def authenticateUser(self, email, password):
94 ashish 885
    """
886
    Parameters:
887
     - email
888
     - password
889
    """
559 chandransh 890
    self.send_authenticateUser(email, password)
122 ashish 891
    return self.recv_authenticateUser()
892
 
559 chandransh 893
  def send_authenticateUser(self, email, password):
122 ashish 894
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
895
    args = authenticateUser_args()
559 chandransh 896
    args.email = email
122 ashish 897
    args.password = password
898
    args.write(self._oprot)
899
    self._oprot.writeMessageEnd()
900
    self._oprot.trans.flush()
901
 
902
  def recv_authenticateUser(self, ):
903
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
904
    if mtype == TMessageType.EXCEPTION:
905
      x = TApplicationException()
906
      x.read(self._iprot)
907
      self._iprot.readMessageEnd()
908
      raise x
909
    result = authenticateUser_result()
910
    result.read(self._iprot)
911
    self._iprot.readMessageEnd()
3431 rajveer 912
    if result.success is not None:
122 ashish 913
      return result.success
3431 rajveer 914
    if result.auex is not None:
559 chandransh 915
      raise result.auex
122 ashish 916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
917
 
94 ashish 918
  def userExists(self, email):
919
    """
920
    Parameters:
921
     - email
922
    """
923
    self.send_userExists(email)
924
    return self.recv_userExists()
925
 
926
  def send_userExists(self, email):
927
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
928
    args = userExists_args()
929
    args.email = email
930
    args.write(self._oprot)
931
    self._oprot.writeMessageEnd()
932
    self._oprot.trans.flush()
933
 
934
  def recv_userExists(self, ):
935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
936
    if mtype == TMessageType.EXCEPTION:
937
      x = TApplicationException()
938
      x.read(self._iprot)
939
      self._iprot.readMessageEnd()
940
      raise x
941
    result = userExists_result()
942
    result.read(self._iprot)
943
    self._iprot.readMessageEnd()
3431 rajveer 944
    if result.success is not None:
94 ashish 945
      return result.success
3431 rajveer 946
    if result.ucx is not None:
94 ashish 947
      raise result.ucx
948
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
949
 
567 rajveer 950
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 951
    """
952
    Parameters:
953
     - userId
954
     - address
513 rajveer 955
     - setDefault
94 ashish 956
    """
567 rajveer 957
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 958
    return self.recv_addAddressForUser()
959
 
567 rajveer 960
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 961
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
962
    args = addAddressForUser_args()
559 chandransh 963
    args.userId = userId
94 ashish 964
    args.address = address
513 rajveer 965
    args.setDefault = setDefault
94 ashish 966
    args.write(self._oprot)
967
    self._oprot.writeMessageEnd()
968
    self._oprot.trans.flush()
969
 
970
  def recv_addAddressForUser(self, ):
971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
972
    if mtype == TMessageType.EXCEPTION:
973
      x = TApplicationException()
974
      x.read(self._iprot)
975
      self._iprot.readMessageEnd()
976
      raise x
977
    result = addAddressForUser_result()
978
    result.read(self._iprot)
979
    self._iprot.readMessageEnd()
3431 rajveer 980
    if result.success is not None:
94 ashish 981
      return result.success
3431 rajveer 982
    if result.ucx is not None:
94 ashish 983
      raise result.ucx
984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
985
 
986
  def removeAddressForUser(self, userid, addressId):
987
    """
988
    Parameters:
989
     - userid
990
     - addressId
991
    """
992
    self.send_removeAddressForUser(userid, addressId)
993
    return self.recv_removeAddressForUser()
994
 
995
  def send_removeAddressForUser(self, userid, addressId):
996
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
997
    args = removeAddressForUser_args()
998
    args.userid = userid
999
    args.addressId = addressId
1000
    args.write(self._oprot)
1001
    self._oprot.writeMessageEnd()
1002
    self._oprot.trans.flush()
1003
 
1004
  def recv_removeAddressForUser(self, ):
1005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1006
    if mtype == TMessageType.EXCEPTION:
1007
      x = TApplicationException()
1008
      x.read(self._iprot)
1009
      self._iprot.readMessageEnd()
1010
      raise x
1011
    result = removeAddressForUser_result()
1012
    result.read(self._iprot)
1013
    self._iprot.readMessageEnd()
3431 rajveer 1014
    if result.success is not None:
94 ashish 1015
      return result.success
3431 rajveer 1016
    if result.ucx is not None:
94 ashish 1017
      raise result.ucx
1018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1019
 
1020
  def setUserAsLoggedIn(self, userId, timestamp):
1021
    """
1022
    Parameters:
1023
     - userId
1024
     - timestamp
1025
    """
1026
    self.send_setUserAsLoggedIn(userId, timestamp)
1027
    return self.recv_setUserAsLoggedIn()
1028
 
1029
  def send_setUserAsLoggedIn(self, userId, timestamp):
1030
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1031
    args = setUserAsLoggedIn_args()
1032
    args.userId = userId
1033
    args.timestamp = timestamp
1034
    args.write(self._oprot)
1035
    self._oprot.writeMessageEnd()
1036
    self._oprot.trans.flush()
1037
 
1038
  def recv_setUserAsLoggedIn(self, ):
1039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1040
    if mtype == TMessageType.EXCEPTION:
1041
      x = TApplicationException()
1042
      x.read(self._iprot)
1043
      self._iprot.readMessageEnd()
1044
      raise x
1045
    result = setUserAsLoggedIn_result()
1046
    result.read(self._iprot)
1047
    self._iprot.readMessageEnd()
3431 rajveer 1048
    if result.success is not None:
94 ashish 1049
      return result.success
3431 rajveer 1050
    if result.ucx is not None:
94 ashish 1051
      raise result.ucx
1052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1053
 
1054
  def setUserAsLoggedOut(self, userid, timestamp):
1055
    """
1056
    Parameters:
1057
     - userid
1058
     - timestamp
1059
    """
1060
    self.send_setUserAsLoggedOut(userid, timestamp)
1061
    return self.recv_setUserAsLoggedOut()
1062
 
1063
  def send_setUserAsLoggedOut(self, userid, timestamp):
1064
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1065
    args = setUserAsLoggedOut_args()
1066
    args.userid = userid
1067
    args.timestamp = timestamp
1068
    args.write(self._oprot)
1069
    self._oprot.writeMessageEnd()
1070
    self._oprot.trans.flush()
1071
 
1072
  def recv_setUserAsLoggedOut(self, ):
1073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1074
    if mtype == TMessageType.EXCEPTION:
1075
      x = TApplicationException()
1076
      x.read(self._iprot)
1077
      self._iprot.readMessageEnd()
1078
      raise x
1079
    result = setUserAsLoggedOut_result()
1080
    result.read(self._iprot)
1081
    self._iprot.readMessageEnd()
3431 rajveer 1082
    if result.success is not None:
94 ashish 1083
      return result.success
3431 rajveer 1084
    if result.ucx is not None:
94 ashish 1085
      raise result.ucx
1086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1087
 
504 rajveer 1088
  def setDefaultAddress(self, userid, addressId):
1089
    """
1090
    Parameters:
1091
     - userid
1092
     - addressId
1093
    """
1094
    self.send_setDefaultAddress(userid, addressId)
1095
    return self.recv_setDefaultAddress()
1096
 
1097
  def send_setDefaultAddress(self, userid, addressId):
1098
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1099
    args = setDefaultAddress_args()
1100
    args.userid = userid
1101
    args.addressId = addressId
1102
    args.write(self._oprot)
1103
    self._oprot.writeMessageEnd()
1104
    self._oprot.trans.flush()
1105
 
1106
  def recv_setDefaultAddress(self, ):
1107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1108
    if mtype == TMessageType.EXCEPTION:
1109
      x = TApplicationException()
1110
      x.read(self._iprot)
1111
      self._iprot.readMessageEnd()
1112
      raise x
1113
    result = setDefaultAddress_result()
1114
    result.read(self._iprot)
1115
    self._iprot.readMessageEnd()
3431 rajveer 1116
    if result.success is not None:
504 rajveer 1117
      return result.success
3431 rajveer 1118
    if result.ucx is not None:
504 rajveer 1119
      raise result.ucx
1120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1121
 
594 rajveer 1122
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1123
    """
1124
    Parameters:
1125
     - userid
594 rajveer 1126
     - oldPassword
1127
     - newPassword
94 ashish 1128
    """
594 rajveer 1129
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1130
    return self.recv_updatePassword()
1131
 
594 rajveer 1132
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1133
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1134
    args = updatePassword_args()
1135
    args.userid = userid
594 rajveer 1136
    args.oldPassword = oldPassword
1137
    args.newPassword = newPassword
94 ashish 1138
    args.write(self._oprot)
1139
    self._oprot.writeMessageEnd()
1140
    self._oprot.trans.flush()
1141
 
1142
  def recv_updatePassword(self, ):
1143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1144
    if mtype == TMessageType.EXCEPTION:
1145
      x = TApplicationException()
1146
      x.read(self._iprot)
1147
      self._iprot.readMessageEnd()
1148
      raise x
1149
    result = updatePassword_result()
1150
    result.read(self._iprot)
1151
    self._iprot.readMessageEnd()
3431 rajveer 1152
    if result.success is not None:
94 ashish 1153
      return result.success
3431 rajveer 1154
    if result.ucx is not None:
94 ashish 1155
      raise result.ucx
1156
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1157
 
884 rajveer 1158
  def forgotPassword(self, email, newPassword):
581 rajveer 1159
    """
1160
    Parameters:
1161
     - email
884 rajveer 1162
     - newPassword
581 rajveer 1163
    """
884 rajveer 1164
    self.send_forgotPassword(email, newPassword)
581 rajveer 1165
    return self.recv_forgotPassword()
1166
 
884 rajveer 1167
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1168
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1169
    args = forgotPassword_args()
1170
    args.email = email
884 rajveer 1171
    args.newPassword = newPassword
581 rajveer 1172
    args.write(self._oprot)
1173
    self._oprot.writeMessageEnd()
1174
    self._oprot.trans.flush()
1175
 
1176
  def recv_forgotPassword(self, ):
1177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1178
    if mtype == TMessageType.EXCEPTION:
1179
      x = TApplicationException()
1180
      x.read(self._iprot)
1181
      self._iprot.readMessageEnd()
1182
      raise x
1183
    result = forgotPassword_result()
1184
    result.read(self._iprot)
1185
    self._iprot.readMessageEnd()
3431 rajveer 1186
    if result.success is not None:
581 rajveer 1187
      return result.success
3431 rajveer 1188
    if result.ucx is not None:
581 rajveer 1189
      raise result.ucx
1190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1191
 
594 rajveer 1192
  def getAllAddressesForUser(self, userId):
1193
    """
1194
    Parameters:
1195
     - userId
1196
    """
1197
    self.send_getAllAddressesForUser(userId)
1198
    return self.recv_getAllAddressesForUser()
1199
 
1200
  def send_getAllAddressesForUser(self, userId):
1201
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1202
    args = getAllAddressesForUser_args()
1203
    args.userId = userId
1204
    args.write(self._oprot)
1205
    self._oprot.writeMessageEnd()
1206
    self._oprot.trans.flush()
1207
 
1208
  def recv_getAllAddressesForUser(self, ):
1209
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1210
    if mtype == TMessageType.EXCEPTION:
1211
      x = TApplicationException()
1212
      x.read(self._iprot)
1213
      self._iprot.readMessageEnd()
1214
      raise x
1215
    result = getAllAddressesForUser_result()
1216
    result.read(self._iprot)
1217
    self._iprot.readMessageEnd()
3431 rajveer 1218
    if result.success is not None:
594 rajveer 1219
      return result.success
3431 rajveer 1220
    if result.ucx is not None:
594 rajveer 1221
      raise result.ucx
1222
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1223
 
1894 vikas 1224
  def getAddressById(self, addressId):
1225
    """
1226
    Parameters:
1227
     - addressId
1228
    """
1229
    self.send_getAddressById(addressId)
1230
    return self.recv_getAddressById()
1231
 
1232
  def send_getAddressById(self, addressId):
1233
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1234
    args = getAddressById_args()
1235
    args.addressId = addressId
1236
    args.write(self._oprot)
1237
    self._oprot.writeMessageEnd()
1238
    self._oprot.trans.flush()
1239
 
1240
  def recv_getAddressById(self, ):
1241
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1242
    if mtype == TMessageType.EXCEPTION:
1243
      x = TApplicationException()
1244
      x.read(self._iprot)
1245
      self._iprot.readMessageEnd()
1246
      raise x
1247
    result = getAddressById_result()
1248
    result.read(self._iprot)
1249
    self._iprot.readMessageEnd()
3431 rajveer 1250
    if result.success is not None:
1894 vikas 1251
      return result.success
3431 rajveer 1252
    if result.ucx is not None:
1894 vikas 1253
      raise result.ucx
1254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1255
 
594 rajveer 1256
  def getDefaultAddressId(self, userId):
1257
    """
1258
    Parameters:
1259
     - userId
1260
    """
1261
    self.send_getDefaultAddressId(userId)
1262
    return self.recv_getDefaultAddressId()
1263
 
1264
  def send_getDefaultAddressId(self, userId):
1265
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1266
    args = getDefaultAddressId_args()
1267
    args.userId = userId
1268
    args.write(self._oprot)
1269
    self._oprot.writeMessageEnd()
1270
    self._oprot.trans.flush()
1271
 
1272
  def recv_getDefaultAddressId(self, ):
1273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1274
    if mtype == TMessageType.EXCEPTION:
1275
      x = TApplicationException()
1276
      x.read(self._iprot)
1277
      self._iprot.readMessageEnd()
1278
      raise x
1279
    result = getDefaultAddressId_result()
1280
    result.read(self._iprot)
1281
    self._iprot.readMessageEnd()
3431 rajveer 1282
    if result.success is not None:
594 rajveer 1283
      return result.success
3431 rajveer 1284
    if result.ucx is not None:
594 rajveer 1285
      raise result.ucx
1286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1287
 
785 rajveer 1288
  def getDefaultPincode(self, userId):
1289
    """
1290
    Parameters:
1291
     - userId
1292
    """
1293
    self.send_getDefaultPincode(userId)
1294
    return self.recv_getDefaultPincode()
1295
 
1296
  def send_getDefaultPincode(self, userId):
1297
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1298
    args = getDefaultPincode_args()
1299
    args.userId = userId
1300
    args.write(self._oprot)
1301
    self._oprot.writeMessageEnd()
1302
    self._oprot.trans.flush()
1303
 
1304
  def recv_getDefaultPincode(self, ):
1305
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1306
    if mtype == TMessageType.EXCEPTION:
1307
      x = TApplicationException()
1308
      x.read(self._iprot)
1309
      self._iprot.readMessageEnd()
1310
      raise x
1311
    result = getDefaultPincode_result()
1312
    result.read(self._iprot)
1313
    self._iprot.readMessageEnd()
3431 rajveer 1314
    if result.success is not None:
785 rajveer 1315
      return result.success
3431 rajveer 1316
    if result.ucx is not None:
785 rajveer 1317
      raise result.ucx
1318
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1319
 
1274 varun.gupt 1320
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1321
    """
1322
    Parameters:
1323
     - userId
1324
     - replyTo
1325
     - communicationType
1326
     - orderId
1327
     - airwaybillNo
1328
     - productName
1329
     - subject
1330
     - message
1331
    """
1332
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1333
    return self.recv_saveUserCommunication()
1334
 
1335
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1336
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1337
    args = saveUserCommunication_args()
1338
    args.userId = userId
1339
    args.replyTo = replyTo
1340
    args.communicationType = communicationType
1341
    args.orderId = orderId
1342
    args.airwaybillNo = airwaybillNo
1343
    args.productName = productName
1344
    args.subject = subject
1345
    args.message = message
1346
    args.write(self._oprot)
1347
    self._oprot.writeMessageEnd()
1348
    self._oprot.trans.flush()
1349
 
1350
  def recv_saveUserCommunication(self, ):
1351
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1352
    if mtype == TMessageType.EXCEPTION:
1353
      x = TApplicationException()
1354
      x.read(self._iprot)
1355
      self._iprot.readMessageEnd()
1356
      raise x
1357
    result = saveUserCommunication_result()
1358
    result.read(self._iprot)
1359
    self._iprot.readMessageEnd()
3431 rajveer 1360
    if result.success is not None:
1274 varun.gupt 1361
      return result.success
3431 rajveer 1362
    if result.ucx is not None:
1274 varun.gupt 1363
      raise result.ucx
1364
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1365
 
1590 varun.gupt 1366
  def getUserCommunicationById(self, id):
1367
    """
1368
    Parameters:
1369
     - id
1370
    """
1371
    self.send_getUserCommunicationById(id)
1372
    return self.recv_getUserCommunicationById()
1373
 
1374
  def send_getUserCommunicationById(self, id):
1375
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1376
    args = getUserCommunicationById_args()
1377
    args.id = id
1378
    args.write(self._oprot)
1379
    self._oprot.writeMessageEnd()
1380
    self._oprot.trans.flush()
1381
 
1382
  def recv_getUserCommunicationById(self, ):
1383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1384
    if mtype == TMessageType.EXCEPTION:
1385
      x = TApplicationException()
1386
      x.read(self._iprot)
1387
      self._iprot.readMessageEnd()
1388
      raise x
1389
    result = getUserCommunicationById_result()
1390
    result.read(self._iprot)
1391
    self._iprot.readMessageEnd()
3431 rajveer 1392
    if result.success is not None:
1590 varun.gupt 1393
      return result.success
3431 rajveer 1394
    if result.ucx is not None:
1590 varun.gupt 1395
      raise result.ucx
1396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1397
 
1398
  def getUserCommunicationByUser(self, userId):
1399
    """
1400
    Parameters:
1401
     - userId
1402
    """
1403
    self.send_getUserCommunicationByUser(userId)
1404
    return self.recv_getUserCommunicationByUser()
1405
 
1406
  def send_getUserCommunicationByUser(self, userId):
1407
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1408
    args = getUserCommunicationByUser_args()
1409
    args.userId = userId
1410
    args.write(self._oprot)
1411
    self._oprot.writeMessageEnd()
1412
    self._oprot.trans.flush()
1413
 
1414
  def recv_getUserCommunicationByUser(self, ):
1415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1416
    if mtype == TMessageType.EXCEPTION:
1417
      x = TApplicationException()
1418
      x.read(self._iprot)
1419
      self._iprot.readMessageEnd()
1420
      raise x
1421
    result = getUserCommunicationByUser_result()
1422
    result.read(self._iprot)
1423
    self._iprot.readMessageEnd()
3431 rajveer 1424
    if result.success is not None:
1590 varun.gupt 1425
      return result.success
3431 rajveer 1426
    if result.ucx is not None:
1590 varun.gupt 1427
      raise result.ucx
1428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1429
 
1430
  def getAllUserCommunications(self, ):
1431
    self.send_getAllUserCommunications()
1432
    return self.recv_getAllUserCommunications()
1433
 
1434
  def send_getAllUserCommunications(self, ):
1435
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1436
    args = getAllUserCommunications_args()
1437
    args.write(self._oprot)
1438
    self._oprot.writeMessageEnd()
1439
    self._oprot.trans.flush()
1440
 
1441
  def recv_getAllUserCommunications(self, ):
1442
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1443
    if mtype == TMessageType.EXCEPTION:
1444
      x = TApplicationException()
1445
      x.read(self._iprot)
1446
      self._iprot.readMessageEnd()
1447
      raise x
1448
    result = getAllUserCommunications_result()
1449
    result.read(self._iprot)
1450
    self._iprot.readMessageEnd()
3431 rajveer 1451
    if result.success is not None:
1590 varun.gupt 1452
      return result.success
3431 rajveer 1453
    if result.ucx is not None:
1590 varun.gupt 1454
      raise result.ucx
1455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1456
 
5407 amar.kumar 1457
  def removeUserCommunication(self, id):
1458
    """
1459
    Parameters:
1460
     - id
1461
    """
1462
    self.send_removeUserCommunication(id)
1463
    self.recv_removeUserCommunication()
1464
 
1465
  def send_removeUserCommunication(self, id):
1466
    self._oprot.writeMessageBegin('removeUserCommunication', TMessageType.CALL, self._seqid)
1467
    args = removeUserCommunication_args()
1468
    args.id = id
1469
    args.write(self._oprot)
1470
    self._oprot.writeMessageEnd()
1471
    self._oprot.trans.flush()
1472
 
1473
  def recv_removeUserCommunication(self, ):
1474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1475
    if mtype == TMessageType.EXCEPTION:
1476
      x = TApplicationException()
1477
      x.read(self._iprot)
1478
      self._iprot.readMessageEnd()
1479
      raise x
1480
    result = removeUserCommunication_result()
1481
    result.read(self._iprot)
1482
    self._iprot.readMessageEnd()
1483
    if result.ucx is not None:
1484
      raise result.ucx
1485
    return
1486
 
1859 vikas 1487
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1488
    """
1489
    Parameters:
1490
     - name
1859 vikas 1491
     - addedOn
1845 vikas 1492
    """
1859 vikas 1493
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1494
    return self.recv_createMasterAffiliate()
1495
 
1859 vikas 1496
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1497
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1498
    args = createMasterAffiliate_args()
1499
    args.name = name
1859 vikas 1500
    args.addedOn = addedOn
1845 vikas 1501
    args.write(self._oprot)
1502
    self._oprot.writeMessageEnd()
1503
    self._oprot.trans.flush()
1504
 
1505
  def recv_createMasterAffiliate(self, ):
1506
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1507
    if mtype == TMessageType.EXCEPTION:
1508
      x = TApplicationException()
1509
      x.read(self._iprot)
1510
      self._iprot.readMessageEnd()
1511
      raise x
1512
    result = createMasterAffiliate_result()
1513
    result.read(self._iprot)
1514
    self._iprot.readMessageEnd()
3431 rajveer 1515
    if result.success is not None:
1845 vikas 1516
      return result.success
3431 rajveer 1517
    if result.utx is not None:
1845 vikas 1518
      raise result.utx
1519
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1520
 
1899 vikas 1521
  def getAllMasterAffiliates(self, ):
1522
    self.send_getAllMasterAffiliates()
1523
    return self.recv_getAllMasterAffiliates()
1524
 
1525
  def send_getAllMasterAffiliates(self, ):
1526
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1527
    args = getAllMasterAffiliates_args()
1528
    args.write(self._oprot)
1529
    self._oprot.writeMessageEnd()
1530
    self._oprot.trans.flush()
1531
 
1532
  def recv_getAllMasterAffiliates(self, ):
1533
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1534
    if mtype == TMessageType.EXCEPTION:
1535
      x = TApplicationException()
1536
      x.read(self._iprot)
1537
      self._iprot.readMessageEnd()
1538
      raise x
1539
    result = getAllMasterAffiliates_result()
1540
    result.read(self._iprot)
1541
    self._iprot.readMessageEnd()
3431 rajveer 1542
    if result.success is not None:
1899 vikas 1543
      return result.success
3431 rajveer 1544
    if result.utx is not None:
1899 vikas 1545
      raise result.utx
1546
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1547
 
1845 vikas 1548
  def getMasterAffiliateById(self, id):
1549
    """
1550
    Parameters:
1551
     - id
1552
    """
1553
    self.send_getMasterAffiliateById(id)
1554
    return self.recv_getMasterAffiliateById()
1555
 
1556
  def send_getMasterAffiliateById(self, id):
1557
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1558
    args = getMasterAffiliateById_args()
1559
    args.id = id
1560
    args.write(self._oprot)
1561
    self._oprot.writeMessageEnd()
1562
    self._oprot.trans.flush()
1563
 
1564
  def recv_getMasterAffiliateById(self, ):
1565
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1566
    if mtype == TMessageType.EXCEPTION:
1567
      x = TApplicationException()
1568
      x.read(self._iprot)
1569
      self._iprot.readMessageEnd()
1570
      raise x
1571
    result = getMasterAffiliateById_result()
1572
    result.read(self._iprot)
1573
    self._iprot.readMessageEnd()
3431 rajveer 1574
    if result.success is not None:
1845 vikas 1575
      return result.success
3431 rajveer 1576
    if result.utx is not None:
1845 vikas 1577
      raise result.utx
1578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1579
 
1580
  def getMasterAffiliateByName(self, name):
1581
    """
1582
    Parameters:
1583
     - name
1584
    """
1585
    self.send_getMasterAffiliateByName(name)
1586
    return self.recv_getMasterAffiliateByName()
1587
 
1588
  def send_getMasterAffiliateByName(self, name):
1589
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1590
    args = getMasterAffiliateByName_args()
1591
    args.name = name
1592
    args.write(self._oprot)
1593
    self._oprot.writeMessageEnd()
1594
    self._oprot.trans.flush()
1595
 
1596
  def recv_getMasterAffiliateByName(self, ):
1597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1598
    if mtype == TMessageType.EXCEPTION:
1599
      x = TApplicationException()
1600
      x.read(self._iprot)
1601
      self._iprot.readMessageEnd()
1602
      raise x
1603
    result = getMasterAffiliateByName_result()
1604
    result.read(self._iprot)
1605
    self._iprot.readMessageEnd()
3431 rajveer 1606
    if result.success is not None:
1845 vikas 1607
      return result.success
3431 rajveer 1608
    if result.utx is not None:
1845 vikas 1609
      raise result.utx
1610
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1611
 
1859 vikas 1612
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1613
    """
1614
    Parameters:
1615
     - name
1616
     - url
1617
     - masterAffiliateId
1859 vikas 1618
     - addedOn
1845 vikas 1619
    """
1859 vikas 1620
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1621
    return self.recv_createAffiliate()
1622
 
1859 vikas 1623
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1624
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1625
    args = createAffiliate_args()
1626
    args.name = name
1627
    args.url = url
1628
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1629
    args.addedOn = addedOn
1845 vikas 1630
    args.write(self._oprot)
1631
    self._oprot.writeMessageEnd()
1632
    self._oprot.trans.flush()
1633
 
1634
  def recv_createAffiliate(self, ):
1635
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1636
    if mtype == TMessageType.EXCEPTION:
1637
      x = TApplicationException()
1638
      x.read(self._iprot)
1639
      self._iprot.readMessageEnd()
1640
      raise x
1641
    result = createAffiliate_result()
1642
    result.read(self._iprot)
1643
    self._iprot.readMessageEnd()
3431 rajveer 1644
    if result.success is not None:
1845 vikas 1645
      return result.success
3431 rajveer 1646
    if result.utx is not None:
1845 vikas 1647
      raise result.utx
1648
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1649
 
1650
  def getAffiliateById(self, id):
1651
    """
1652
    Parameters:
1653
     - id
1654
    """
1655
    self.send_getAffiliateById(id)
1656
    return self.recv_getAffiliateById()
1657
 
1658
  def send_getAffiliateById(self, id):
1659
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1660
    args = getAffiliateById_args()
1661
    args.id = id
1662
    args.write(self._oprot)
1663
    self._oprot.writeMessageEnd()
1664
    self._oprot.trans.flush()
1665
 
1666
  def recv_getAffiliateById(self, ):
1667
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1668
    if mtype == TMessageType.EXCEPTION:
1669
      x = TApplicationException()
1670
      x.read(self._iprot)
1671
      self._iprot.readMessageEnd()
1672
      raise x
1673
    result = getAffiliateById_result()
1674
    result.read(self._iprot)
1675
    self._iprot.readMessageEnd()
3431 rajveer 1676
    if result.success is not None:
1845 vikas 1677
      return result.success
3431 rajveer 1678
    if result.utx is not None:
1845 vikas 1679
      raise result.utx
1680
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1681
 
1682
  def getAffiliateByName(self, name):
1683
    """
1684
    Parameters:
1685
     - name
1686
    """
1687
    self.send_getAffiliateByName(name)
1688
    return self.recv_getAffiliateByName()
1689
 
1690
  def send_getAffiliateByName(self, name):
1691
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1692
    args = getAffiliateByName_args()
1693
    args.name = name
1694
    args.write(self._oprot)
1695
    self._oprot.writeMessageEnd()
1696
    self._oprot.trans.flush()
1697
 
1698
  def recv_getAffiliateByName(self, ):
1699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1700
    if mtype == TMessageType.EXCEPTION:
1701
      x = TApplicationException()
1702
      x.read(self._iprot)
1703
      self._iprot.readMessageEnd()
1704
      raise x
1705
    result = getAffiliateByName_result()
1706
    result.read(self._iprot)
1707
    self._iprot.readMessageEnd()
3431 rajveer 1708
    if result.success is not None:
1845 vikas 1709
      return result.success
3431 rajveer 1710
    if result.utx is not None:
1845 vikas 1711
      raise result.utx
1712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1713
 
1996 vikas 1714
  def getTrackerById(self, id):
1845 vikas 1715
    """
1716
    Parameters:
1717
     - id
1718
    """
1996 vikas 1719
    self.send_getTrackerById(id)
1845 vikas 1720
    return self.recv_getTrackerById()
1721
 
1996 vikas 1722
  def send_getTrackerById(self, id):
1845 vikas 1723
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1724
    args = getTrackerById_args()
1996 vikas 1725
    args.id = id
1845 vikas 1726
    args.write(self._oprot)
1727
    self._oprot.writeMessageEnd()
1728
    self._oprot.trans.flush()
1729
 
1730
  def recv_getTrackerById(self, ):
1731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1732
    if mtype == TMessageType.EXCEPTION:
1733
      x = TApplicationException()
1734
      x.read(self._iprot)
1735
      self._iprot.readMessageEnd()
1736
      raise x
1737
    result = getTrackerById_result()
1738
    result.read(self._iprot)
1739
    self._iprot.readMessageEnd()
3431 rajveer 1740
    if result.success is not None:
1845 vikas 1741
      return result.success
3431 rajveer 1742
    if result.utx is not None:
1845 vikas 1743
      raise result.utx
1744
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1745
 
1996 vikas 1746
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1747
    """
1748
    Parameters:
1996 vikas 1749
     - id
1845 vikas 1750
    """
1996 vikas 1751
    self.send_getAffiliatesByMasterAffiliate(id)
1752
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1753
 
1996 vikas 1754
  def send_getAffiliatesByMasterAffiliate(self, id):
1755
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1756
    args = getAffiliatesByMasterAffiliate_args()
1757
    args.id = id
1845 vikas 1758
    args.write(self._oprot)
1759
    self._oprot.writeMessageEnd()
1760
    self._oprot.trans.flush()
1761
 
1996 vikas 1762
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1764
    if mtype == TMessageType.EXCEPTION:
1765
      x = TApplicationException()
1766
      x.read(self._iprot)
1767
      self._iprot.readMessageEnd()
1768
      raise x
1996 vikas 1769
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1770
    result.read(self._iprot)
1771
    self._iprot.readMessageEnd()
3431 rajveer 1772
    if result.success is not None:
1845 vikas 1773
      return result.success
3431 rajveer 1774
    if result.utx is not None:
1845 vikas 1775
      raise result.utx
1996 vikas 1776
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1777
 
1996 vikas 1778
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1779
    """
1780
    Parameters:
1996 vikas 1781
     - affiliateId
1845 vikas 1782
     - userId
1783
     - event
1784
     - url
1785
     - data
1859 vikas 1786
     - addedOn
1845 vikas 1787
    """
1996 vikas 1788
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1789
    return self.recv_addTrackLog()
1790
 
1996 vikas 1791
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1792
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1793
    args = addTrackLog_args()
1996 vikas 1794
    args.affiliateId = affiliateId
1845 vikas 1795
    args.userId = userId
1796
    args.event = event
1797
    args.url = url
1798
    args.data = data
1859 vikas 1799
    args.addedOn = addedOn
1845 vikas 1800
    args.write(self._oprot)
1801
    self._oprot.writeMessageEnd()
1802
    self._oprot.trans.flush()
1803
 
1804
  def recv_addTrackLog(self, ):
1805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1806
    if mtype == TMessageType.EXCEPTION:
1807
      x = TApplicationException()
1808
      x.read(self._iprot)
1809
      self._iprot.readMessageEnd()
1810
      raise x
1811
    result = addTrackLog_result()
1812
    result.read(self._iprot)
1813
    self._iprot.readMessageEnd()
3431 rajveer 1814
    if result.success is not None:
1845 vikas 1815
      return result.success
3431 rajveer 1816
    if result.utx is not None:
1845 vikas 1817
      raise result.utx
1818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1819
 
1820
  def getTrackLogById(self, id):
1821
    """
1822
    Parameters:
1823
     - id
1824
    """
1825
    self.send_getTrackLogById(id)
1826
    return self.recv_getTrackLogById()
1827
 
1828
  def send_getTrackLogById(self, id):
1829
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1830
    args = getTrackLogById_args()
1831
    args.id = id
1832
    args.write(self._oprot)
1833
    self._oprot.writeMessageEnd()
1834
    self._oprot.trans.flush()
1835
 
1836
  def recv_getTrackLogById(self, ):
1837
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1838
    if mtype == TMessageType.EXCEPTION:
1839
      x = TApplicationException()
1840
      x.read(self._iprot)
1841
      self._iprot.readMessageEnd()
1842
      raise x
1843
    result = getTrackLogById_result()
1844
    result.read(self._iprot)
1845
    self._iprot.readMessageEnd()
3431 rajveer 1846
    if result.success is not None:
1845 vikas 1847
      return result.success
3431 rajveer 1848
    if result.utx is not None:
1845 vikas 1849
      raise result.utx
1850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1851
 
3293 vikas 1852
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1853
    """
1854
    Parameters:
1996 vikas 1855
     - affiliateId
3293 vikas 1856
     - startDate
1857
     - endDate
1845 vikas 1858
    """
3293 vikas 1859
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1860
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1861
 
3293 vikas 1862
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1863
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1864
    args = getTrackLogsByAffiliate_args()
1865
    args.affiliateId = affiliateId
3293 vikas 1866
    args.startDate = startDate
1867
    args.endDate = endDate
1845 vikas 1868
    args.write(self._oprot)
1869
    self._oprot.writeMessageEnd()
1870
    self._oprot.trans.flush()
1871
 
1996 vikas 1872
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1873
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1874
    if mtype == TMessageType.EXCEPTION:
1875
      x = TApplicationException()
1876
      x.read(self._iprot)
1877
      self._iprot.readMessageEnd()
1878
      raise x
1996 vikas 1879
    result = getTrackLogsByAffiliate_result()
1845 vikas 1880
    result.read(self._iprot)
1881
    self._iprot.readMessageEnd()
3431 rajveer 1882
    if result.success is not None:
1845 vikas 1883
      return result.success
3431 rajveer 1884
    if result.utx is not None:
1845 vikas 1885
      raise result.utx
1996 vikas 1886
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1887
 
1888
  def getTrackLogsByUser(self, userId):
1889
    """
1890
    Parameters:
1891
     - userId
1892
    """
1893
    self.send_getTrackLogsByUser(userId)
1894
    return self.recv_getTrackLogsByUser()
1895
 
1896
  def send_getTrackLogsByUser(self, userId):
1897
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1898
    args = getTrackLogsByUser_args()
1899
    args.userId = userId
1900
    args.write(self._oprot)
1901
    self._oprot.writeMessageEnd()
1902
    self._oprot.trans.flush()
1903
 
1904
  def recv_getTrackLogsByUser(self, ):
1905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1906
    if mtype == TMessageType.EXCEPTION:
1907
      x = TApplicationException()
1908
      x.read(self._iprot)
1909
      self._iprot.readMessageEnd()
1910
      raise x
1911
    result = getTrackLogsByUser_result()
1912
    result.read(self._iprot)
1913
    self._iprot.readMessageEnd()
3431 rajveer 1914
    if result.success is not None:
1845 vikas 1915
      return result.success
3431 rajveer 1916
    if result.utx is not None:
1845 vikas 1917
      raise result.utx
1918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1919
 
1996 vikas 1920
  def getTrackLogs(self, userId, event, url):
1845 vikas 1921
    """
1922
    Parameters:
1923
     - userId
1924
     - event
1925
     - url
1926
    """
1996 vikas 1927
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1928
    return self.recv_getTrackLogs()
1929
 
1996 vikas 1930
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1931
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1932
    args = getTrackLogs_args()
1933
    args.userId = userId
1934
    args.event = event
1935
    args.url = url
1936
    args.write(self._oprot)
1937
    self._oprot.writeMessageEnd()
1938
    self._oprot.trans.flush()
1939
 
1940
  def recv_getTrackLogs(self, ):
1941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1942
    if mtype == TMessageType.EXCEPTION:
1943
      x = TApplicationException()
1944
      x.read(self._iprot)
1945
      self._iprot.readMessageEnd()
1946
      raise x
1947
    result = getTrackLogs_result()
1948
    result.read(self._iprot)
1949
    self._iprot.readMessageEnd()
3431 rajveer 1950
    if result.success is not None:
1845 vikas 1951
      return result.success
3431 rajveer 1952
    if result.utx is not None:
1845 vikas 1953
      raise result.utx
1954
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1955
 
559 chandransh 1956
  def getCurrentCart(self, userId):
94 ashish 1957
    """
1958
    Parameters:
559 chandransh 1959
     - userId
94 ashish 1960
    """
559 chandransh 1961
    self.send_getCurrentCart(userId)
1962
    return self.recv_getCurrentCart()
94 ashish 1963
 
559 chandransh 1964
  def send_getCurrentCart(self, userId):
1965
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1966
    args = getCurrentCart_args()
1967
    args.userId = userId
94 ashish 1968
    args.write(self._oprot)
1969
    self._oprot.writeMessageEnd()
1970
    self._oprot.trans.flush()
1971
 
559 chandransh 1972
  def recv_getCurrentCart(self, ):
94 ashish 1973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1974
    if mtype == TMessageType.EXCEPTION:
1975
      x = TApplicationException()
1976
      x.read(self._iprot)
1977
      self._iprot.readMessageEnd()
1978
      raise x
559 chandransh 1979
    result = getCurrentCart_result()
94 ashish 1980
    result.read(self._iprot)
1981
    self._iprot.readMessageEnd()
3431 rajveer 1982
    if result.success is not None:
94 ashish 1983
      return result.success
3431 rajveer 1984
    if result.scx is not None:
559 chandransh 1985
      raise result.scx
1986
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1987
 
559 chandransh 1988
  def getCart(self, cartId):
94 ashish 1989
    """
1990
    Parameters:
559 chandransh 1991
     - cartId
94 ashish 1992
    """
559 chandransh 1993
    self.send_getCart(cartId)
1994
    return self.recv_getCart()
94 ashish 1995
 
559 chandransh 1996
  def send_getCart(self, cartId):
1997
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1998
    args = getCart_args()
1999
    args.cartId = cartId
94 ashish 2000
    args.write(self._oprot)
2001
    self._oprot.writeMessageEnd()
2002
    self._oprot.trans.flush()
2003
 
559 chandransh 2004
  def recv_getCart(self, ):
94 ashish 2005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2006
    if mtype == TMessageType.EXCEPTION:
2007
      x = TApplicationException()
2008
      x.read(self._iprot)
2009
      self._iprot.readMessageEnd()
2010
      raise x
559 chandransh 2011
    result = getCart_result()
94 ashish 2012
    result.read(self._iprot)
2013
    self._iprot.readMessageEnd()
3431 rajveer 2014
    if result.success is not None:
94 ashish 2015
      return result.success
3431 rajveer 2016
    if result.scx is not None:
559 chandransh 2017
      raise result.scx
2018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2019
 
559 chandransh 2020
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2021
    """
2022
    Parameters:
559 chandransh 2023
     - from_time
2024
     - to_time
2025
     - status
94 ashish 2026
    """
559 chandransh 2027
    self.send_getCartsByTime(from_time, to_time, status)
2028
    return self.recv_getCartsByTime()
94 ashish 2029
 
559 chandransh 2030
  def send_getCartsByTime(self, from_time, to_time, status):
2031
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2032
    args = getCartsByTime_args()
2033
    args.from_time = from_time
2034
    args.to_time = to_time
2035
    args.status = status
94 ashish 2036
    args.write(self._oprot)
2037
    self._oprot.writeMessageEnd()
2038
    self._oprot.trans.flush()
2039
 
559 chandransh 2040
  def recv_getCartsByTime(self, ):
94 ashish 2041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2042
    if mtype == TMessageType.EXCEPTION:
2043
      x = TApplicationException()
2044
      x.read(self._iprot)
2045
      self._iprot.readMessageEnd()
2046
      raise x
559 chandransh 2047
    result = getCartsByTime_result()
94 ashish 2048
    result.read(self._iprot)
2049
    self._iprot.readMessageEnd()
3431 rajveer 2050
    if result.success is not None:
94 ashish 2051
      return result.success
3431 rajveer 2052
    if result.scx is not None:
559 chandransh 2053
      raise result.scx
2054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2055
 
3557 rajveer 2056
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2057
    """
2058
    Parameters:
2059
     - cartId
2060
     - itemId
2061
     - quantity
3557 rajveer 2062
     - sourceId
559 chandransh 2063
    """
3557 rajveer 2064
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2065
    return self.recv_addItemToCart()
559 chandransh 2066
 
3557 rajveer 2067
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2068
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2069
    args = addItemToCart_args()
2070
    args.cartId = cartId
2071
    args.itemId = itemId
2072
    args.quantity = quantity
3557 rajveer 2073
    args.sourceId = sourceId
559 chandransh 2074
    args.write(self._oprot)
2075
    self._oprot.writeMessageEnd()
2076
    self._oprot.trans.flush()
2077
 
2078
  def recv_addItemToCart(self, ):
2079
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2080
    if mtype == TMessageType.EXCEPTION:
2081
      x = TApplicationException()
2082
      x.read(self._iprot)
2083
      self._iprot.readMessageEnd()
2084
      raise x
2085
    result = addItemToCart_result()
2086
    result.read(self._iprot)
2087
    self._iprot.readMessageEnd()
3431 rajveer 2088
    if result.success is not None:
2035 rajveer 2089
      return result.success
3431 rajveer 2090
    if result.scx is not None:
559 chandransh 2091
      raise result.scx
2035 rajveer 2092
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2093
 
2094
  def deleteItemFromCart(self, cartId, itemId):
2095
    """
2096
    Parameters:
2097
     - cartId
2098
     - itemId
2099
    """
2100
    self.send_deleteItemFromCart(cartId, itemId)
2101
    self.recv_deleteItemFromCart()
2102
 
2103
  def send_deleteItemFromCart(self, cartId, itemId):
2104
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2105
    args = deleteItemFromCart_args()
2106
    args.cartId = cartId
2107
    args.itemId = itemId
2108
    args.write(self._oprot)
2109
    self._oprot.writeMessageEnd()
2110
    self._oprot.trans.flush()
2111
 
2112
  def recv_deleteItemFromCart(self, ):
2113
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2114
    if mtype == TMessageType.EXCEPTION:
2115
      x = TApplicationException()
2116
      x.read(self._iprot)
2117
      self._iprot.readMessageEnd()
2118
      raise x
2119
    result = deleteItemFromCart_result()
2120
    result.read(self._iprot)
2121
    self._iprot.readMessageEnd()
3431 rajveer 2122
    if result.scx is not None:
559 chandransh 2123
      raise result.scx
2124
    return
2125
 
2126
  def addAddressToCart(self, cartId, addressId):
2127
    """
2128
    Parameters:
2129
     - cartId
2130
     - addressId
2131
    """
2132
    self.send_addAddressToCart(cartId, addressId)
2133
    self.recv_addAddressToCart()
2134
 
2135
  def send_addAddressToCart(self, cartId, addressId):
2136
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2137
    args = addAddressToCart_args()
2138
    args.cartId = cartId
2139
    args.addressId = addressId
2140
    args.write(self._oprot)
2141
    self._oprot.writeMessageEnd()
2142
    self._oprot.trans.flush()
2143
 
2144
  def recv_addAddressToCart(self, ):
2145
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2146
    if mtype == TMessageType.EXCEPTION:
2147
      x = TApplicationException()
2148
      x.read(self._iprot)
2149
      self._iprot.readMessageEnd()
2150
      raise x
2151
    result = addAddressToCart_result()
2152
    result.read(self._iprot)
2153
    self._iprot.readMessageEnd()
3431 rajveer 2154
    if result.scx is not None:
575 chandransh 2155
      raise result.scx
559 chandransh 2156
    return
2157
 
5553 rajveer 2158
  def addStoreToCart(self, cartId, storeId):
2159
    """
2160
    Parameters:
2161
     - cartId
2162
     - storeId
2163
    """
2164
    self.send_addStoreToCart(cartId, storeId)
2165
    self.recv_addStoreToCart()
2166
 
2167
  def send_addStoreToCart(self, cartId, storeId):
2168
    self._oprot.writeMessageBegin('addStoreToCart', TMessageType.CALL, self._seqid)
2169
    args = addStoreToCart_args()
2170
    args.cartId = cartId
2171
    args.storeId = storeId
2172
    args.write(self._oprot)
2173
    self._oprot.writeMessageEnd()
2174
    self._oprot.trans.flush()
2175
 
2176
  def recv_addStoreToCart(self, ):
2177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2178
    if mtype == TMessageType.EXCEPTION:
2179
      x = TApplicationException()
2180
      x.read(self._iprot)
2181
      self._iprot.readMessageEnd()
2182
      raise x
2183
    result = addStoreToCart_result()
2184
    result.read(self._iprot)
2185
    self._iprot.readMessageEnd()
2186
    if result.scx is not None:
2187
      raise result.scx
2188
    return
2189
 
6922 anupam.sin 2190
  def applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2191
    """
2192
    Parameters:
6922 anupam.sin 2193
     - cart
1976 varun.gupt 2194
     - couponCode
2195
    """
6922 anupam.sin 2196
    self.send_applyCouponToCart(cart, couponCode)
1976 varun.gupt 2197
    self.recv_applyCouponToCart()
2198
 
6922 anupam.sin 2199
  def send_applyCouponToCart(self, cart, couponCode):
1976 varun.gupt 2200
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2201
    args = applyCouponToCart_args()
6922 anupam.sin 2202
    args.cart = cart
1976 varun.gupt 2203
    args.couponCode = couponCode
2204
    args.write(self._oprot)
2205
    self._oprot.writeMessageEnd()
2206
    self._oprot.trans.flush()
2207
 
2208
  def recv_applyCouponToCart(self, ):
2209
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2210
    if mtype == TMessageType.EXCEPTION:
2211
      x = TApplicationException()
2212
      x.read(self._iprot)
2213
      self._iprot.readMessageEnd()
2214
      raise x
2215
    result = applyCouponToCart_result()
2216
    result.read(self._iprot)
2217
    self._iprot.readMessageEnd()
3431 rajveer 2218
    if result.scx is not None:
1976 varun.gupt 2219
      raise result.scx
2220
    return
2221
 
2222
  def removeCoupon(self, cartId):
2223
    """
2224
    Parameters:
2225
     - cartId
2226
    """
2227
    self.send_removeCoupon(cartId)
2228
    self.recv_removeCoupon()
2229
 
2230
  def send_removeCoupon(self, cartId):
2231
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2232
    args = removeCoupon_args()
2233
    args.cartId = cartId
2234
    args.write(self._oprot)
2235
    self._oprot.writeMessageEnd()
2236
    self._oprot.trans.flush()
2237
 
2238
  def recv_removeCoupon(self, ):
2239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2240
    if mtype == TMessageType.EXCEPTION:
2241
      x = TApplicationException()
2242
      x.read(self._iprot)
2243
      self._iprot.readMessageEnd()
2244
      raise x
2245
    result = removeCoupon_result()
2246
    result.read(self._iprot)
2247
    self._iprot.readMessageEnd()
3431 rajveer 2248
    if result.scx is not None:
1976 varun.gupt 2249
      raise result.scx
2250
    return
2251
 
3554 varun.gupt 2252
  def deleteDiscountsFromCart(self, cartId):
2253
    """
2254
    Deletes all the discounts associated with the cart
2255
 
2256
    Parameters:
2257
     - cartId
2258
    """
2259
    self.send_deleteDiscountsFromCart(cartId)
2260
    self.recv_deleteDiscountsFromCart()
2261
 
2262
  def send_deleteDiscountsFromCart(self, cartId):
2263
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2264
    args = deleteDiscountsFromCart_args()
2265
    args.cartId = cartId
2266
    args.write(self._oprot)
2267
    self._oprot.writeMessageEnd()
2268
    self._oprot.trans.flush()
2269
 
2270
  def recv_deleteDiscountsFromCart(self, ):
2271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2272
    if mtype == TMessageType.EXCEPTION:
2273
      x = TApplicationException()
2274
      x.read(self._iprot)
2275
      self._iprot.readMessageEnd()
2276
      raise x
2277
    result = deleteDiscountsFromCart_result()
2278
    result.read(self._iprot)
2279
    self._iprot.readMessageEnd()
2280
    if result.scx is not None:
2281
      raise result.scx
2282
    return
2283
 
2284
  def saveDiscounts(self, discounts):
2285
    """
2286
    Accepts a list of thrift objects of Discount type and saves them
2287
 
2288
    Parameters:
2289
     - discounts
2290
    """
2291
    self.send_saveDiscounts(discounts)
2292
    self.recv_saveDiscounts()
2293
 
2294
  def send_saveDiscounts(self, discounts):
2295
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2296
    args = saveDiscounts_args()
2297
    args.discounts = discounts
2298
    args.write(self._oprot)
2299
    self._oprot.writeMessageEnd()
2300
    self._oprot.trans.flush()
2301
 
2302
  def recv_saveDiscounts(self, ):
2303
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2304
    if mtype == TMessageType.EXCEPTION:
2305
      x = TApplicationException()
2306
      x.read(self._iprot)
2307
      self._iprot.readMessageEnd()
2308
      raise x
2309
    result = saveDiscounts_result()
2310
    result.read(self._iprot)
2311
    self._iprot.readMessageEnd()
2312
    if result.scx is not None:
2313
      raise result.scx
2314
    return
2315
 
11526 amit.gupta 2316
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource):
559 chandransh 2317
    """
690 chandransh 2318
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2319
 
559 chandransh 2320
    Parameters:
2321
     - cartId
2815 vikas 2322
     - sessionSource
2323
     - sessionStartTime
3858 vikas 2324
     - firstSource
2325
     - firstSourceTime
5326 rajveer 2326
     - userId
6389 rajveer 2327
     - schemeId
11526 amit.gupta 2328
     - orderSource
559 chandransh 2329
    """
11526 amit.gupta 2330
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource)
690 chandransh 2331
    return self.recv_createOrders()
559 chandransh 2332
 
11526 amit.gupta 2333
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId, schemeId, orderSource):
690 chandransh 2334
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2335
    args = createOrders_args()
559 chandransh 2336
    args.cartId = cartId
2815 vikas 2337
    args.sessionSource = sessionSource
2338
    args.sessionStartTime = sessionStartTime
3858 vikas 2339
    args.firstSource = firstSource
2340
    args.firstSourceTime = firstSourceTime
5326 rajveer 2341
    args.userId = userId
6389 rajveer 2342
    args.schemeId = schemeId
11526 amit.gupta 2343
    args.orderSource = orderSource
559 chandransh 2344
    args.write(self._oprot)
2345
    self._oprot.writeMessageEnd()
2346
    self._oprot.trans.flush()
2347
 
690 chandransh 2348
  def recv_createOrders(self, ):
559 chandransh 2349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2350
    if mtype == TMessageType.EXCEPTION:
2351
      x = TApplicationException()
2352
      x.read(self._iprot)
2353
      self._iprot.readMessageEnd()
2354
      raise x
690 chandransh 2355
    result = createOrders_result()
559 chandransh 2356
    result.read(self._iprot)
2357
    self._iprot.readMessageEnd()
3431 rajveer 2358
    if result.success is not None:
130 ashish 2359
      return result.success
3431 rajveer 2360
    if result.scx is not None:
559 chandransh 2361
      raise result.scx
690 chandransh 2362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2363
 
3557 rajveer 2364
  def validateCart(self, cartId, sourceId):
130 ashish 2365
    """
690 chandransh 2366
    Validates that:
2367
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2368
    2. All of the lines in the cart are active items.
690 chandransh 2369
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2370
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2371
 
130 ashish 2372
    Parameters:
559 chandransh 2373
     - cartId
3557 rajveer 2374
     - sourceId
130 ashish 2375
    """
3557 rajveer 2376
    self.send_validateCart(cartId, sourceId)
559 chandransh 2377
    return self.recv_validateCart()
130 ashish 2378
 
3557 rajveer 2379
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2380
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2381
    args = validateCart_args()
2382
    args.cartId = cartId
3557 rajveer 2383
    args.sourceId = sourceId
130 ashish 2384
    args.write(self._oprot)
2385
    self._oprot.writeMessageEnd()
2386
    self._oprot.trans.flush()
2387
 
559 chandransh 2388
  def recv_validateCart(self, ):
130 ashish 2389
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2390
    if mtype == TMessageType.EXCEPTION:
2391
      x = TApplicationException()
2392
      x.read(self._iprot)
2393
      self._iprot.readMessageEnd()
2394
      raise x
559 chandransh 2395
    result = validateCart_result()
130 ashish 2396
    result.read(self._iprot)
2397
    self._iprot.readMessageEnd()
3431 rajveer 2398
    if result.success is not None:
130 ashish 2399
      return result.success
3431 rajveer 2400
    if result.scex is not None:
575 chandransh 2401
      raise result.scex
559 chandransh 2402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2403
 
690 chandransh 2404
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2405
    """
690 chandransh 2406
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2407
 
575 chandransh 2408
    Parameters:
690 chandransh 2409
     - fromCartId
2410
     - toCartId
2411
    """
2412
    self.send_mergeCart(fromCartId, toCartId)
2413
    self.recv_mergeCart()
2414
 
2415
  def send_mergeCart(self, fromCartId, toCartId):
2416
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2417
    args = mergeCart_args()
2418
    args.fromCartId = fromCartId
2419
    args.toCartId = toCartId
2420
    args.write(self._oprot)
2421
    self._oprot.writeMessageEnd()
2422
    self._oprot.trans.flush()
2423
 
2424
  def recv_mergeCart(self, ):
2425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2426
    if mtype == TMessageType.EXCEPTION:
2427
      x = TApplicationException()
2428
      x.read(self._iprot)
2429
      self._iprot.readMessageEnd()
2430
      raise x
2431
    result = mergeCart_result()
2432
    result.read(self._iprot)
2433
    self._iprot.readMessageEnd()
2434
    return
2435
 
2436
  def checkOut(self, cartId):
2437
    """
2438
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2439
 
690 chandransh 2440
    Parameters:
575 chandransh 2441
     - cartId
2442
    """
690 chandransh 2443
    self.send_checkOut(cartId)
2444
    return self.recv_checkOut()
575 chandransh 2445
 
690 chandransh 2446
  def send_checkOut(self, cartId):
2447
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2448
    args = checkOut_args()
575 chandransh 2449
    args.cartId = cartId
2450
    args.write(self._oprot)
2451
    self._oprot.writeMessageEnd()
2452
    self._oprot.trans.flush()
2453
 
690 chandransh 2454
  def recv_checkOut(self, ):
575 chandransh 2455
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2456
    if mtype == TMessageType.EXCEPTION:
2457
      x = TApplicationException()
2458
      x.read(self._iprot)
2459
      self._iprot.readMessageEnd()
2460
      raise x
690 chandransh 2461
    result = checkOut_result()
575 chandransh 2462
    result.read(self._iprot)
2463
    self._iprot.readMessageEnd()
3431 rajveer 2464
    if result.success is not None:
575 chandransh 2465
      return result.success
3431 rajveer 2466
    if result.scex is not None:
575 chandransh 2467
      raise result.scex
690 chandransh 2468
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2469
 
690 chandransh 2470
  def resetCart(self, cartId, items):
559 chandransh 2471
    """
690 chandransh 2472
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2473
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2474
 
559 chandransh 2475
    Parameters:
690 chandransh 2476
     - cartId
2477
     - items
559 chandransh 2478
    """
690 chandransh 2479
    self.send_resetCart(cartId, items)
2480
    return self.recv_resetCart()
130 ashish 2481
 
690 chandransh 2482
  def send_resetCart(self, cartId, items):
2483
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2484
    args = resetCart_args()
2485
    args.cartId = cartId
2486
    args.items = items
559 chandransh 2487
    args.write(self._oprot)
2488
    self._oprot.writeMessageEnd()
2489
    self._oprot.trans.flush()
2490
 
690 chandransh 2491
  def recv_resetCart(self, ):
559 chandransh 2492
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2493
    if mtype == TMessageType.EXCEPTION:
2494
      x = TApplicationException()
2495
      x.read(self._iprot)
2496
      self._iprot.readMessageEnd()
2497
      raise x
690 chandransh 2498
    result = resetCart_result()
559 chandransh 2499
    result.read(self._iprot)
2500
    self._iprot.readMessageEnd()
3431 rajveer 2501
    if result.success is not None:
690 chandransh 2502
      return result.success
3431 rajveer 2503
    if result.scex is not None:
690 chandransh 2504
      raise result.scex
2505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2506
 
2981 rajveer 2507
  def getUserCount(self, userType):
559 chandransh 2508
    """
2981 rajveer 2509
    Returns number of registered users.
2510
    If userType = null, then it returns count of all users, including anonymous
2511
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2512
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2513
 
559 chandransh 2514
    Parameters:
2981 rajveer 2515
     - userType
559 chandransh 2516
    """
2981 rajveer 2517
    self.send_getUserCount(userType)
2518
    return self.recv_getUserCount()
559 chandransh 2519
 
2981 rajveer 2520
  def send_getUserCount(self, userType):
2521
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2522
    args = getUserCount_args()
2523
    args.userType = userType
559 chandransh 2524
    args.write(self._oprot)
2525
    self._oprot.writeMessageEnd()
2526
    self._oprot.trans.flush()
2527
 
2981 rajveer 2528
  def recv_getUserCount(self, ):
559 chandransh 2529
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2530
    if mtype == TMessageType.EXCEPTION:
2531
      x = TApplicationException()
2532
      x.read(self._iprot)
2533
      self._iprot.readMessageEnd()
2534
      raise x
2981 rajveer 2535
    result = getUserCount_result()
559 chandransh 2536
    result.read(self._iprot)
2537
    self._iprot.readMessageEnd()
3431 rajveer 2538
    if result.success is not None:
559 chandransh 2539
      return result.success
2981 rajveer 2540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2541
 
2981 rajveer 2542
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2543
    """
2981 rajveer 2544
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2545
    If any of startDate or endDate is -1, then that filter is ignored.
2546
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2547
 
2548
 
559 chandransh 2549
    Parameters:
2981 rajveer 2550
     - userType
2551
     - startDate
2552
     - endDate
559 chandransh 2553
    """
2981 rajveer 2554
    self.send_getAllUsers(userType, startDate, endDate)
2555
    return self.recv_getAllUsers()
559 chandransh 2556
 
2981 rajveer 2557
  def send_getAllUsers(self, userType, startDate, endDate):
2558
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2559
    args = getAllUsers_args()
2560
    args.userType = userType
2561
    args.startDate = startDate
2562
    args.endDate = endDate
559 chandransh 2563
    args.write(self._oprot)
2564
    self._oprot.writeMessageEnd()
2565
    self._oprot.trans.flush()
2566
 
2981 rajveer 2567
  def recv_getAllUsers(self, ):
559 chandransh 2568
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2569
    if mtype == TMessageType.EXCEPTION:
2570
      x = TApplicationException()
2571
      x.read(self._iprot)
2572
      self._iprot.readMessageEnd()
2573
      raise x
2981 rajveer 2574
    result = getAllUsers_result()
559 chandransh 2575
    result.read(self._iprot)
2576
    self._iprot.readMessageEnd()
3431 rajveer 2577
    if result.success is not None:
559 chandransh 2578
      return result.success
2981 rajveer 2579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2580
 
2981 rajveer 2581
  def getMyResearchItems(self, userId):
559 chandransh 2582
    """
2981 rajveer 2583
    Returns list of item ids in myresearch for the user
3431 rajveer 2584
 
559 chandransh 2585
    Parameters:
772 rajveer 2586
     - userId
559 chandransh 2587
    """
2981 rajveer 2588
    self.send_getMyResearchItems(userId)
2589
    return self.recv_getMyResearchItems()
559 chandransh 2590
 
2981 rajveer 2591
  def send_getMyResearchItems(self, userId):
2592
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2593
    args = getMyResearchItems_args()
772 rajveer 2594
    args.userId = userId
559 chandransh 2595
    args.write(self._oprot)
2596
    self._oprot.writeMessageEnd()
2597
    self._oprot.trans.flush()
2598
 
2981 rajveer 2599
  def recv_getMyResearchItems(self, ):
559 chandransh 2600
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2601
    if mtype == TMessageType.EXCEPTION:
2602
      x = TApplicationException()
2603
      x.read(self._iprot)
2604
      self._iprot.readMessageEnd()
2605
      raise x
2981 rajveer 2606
    result = getMyResearchItems_result()
559 chandransh 2607
    result.read(self._iprot)
2608
    self._iprot.readMessageEnd()
3431 rajveer 2609
    if result.success is not None:
559 chandransh 2610
      return result.success
3431 rajveer 2611
    if result.scx is not None:
559 chandransh 2612
      raise result.scx
2981 rajveer 2613
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2614
 
2981 rajveer 2615
  def updateMyResearch(self, userId, itemId):
559 chandransh 2616
    """
2981 rajveer 2617
    add item to my research for a user
3431 rajveer 2618
 
559 chandransh 2619
    Parameters:
2981 rajveer 2620
     - userId
2621
     - itemId
559 chandransh 2622
    """
2981 rajveer 2623
    self.send_updateMyResearch(userId, itemId)
2624
    return self.recv_updateMyResearch()
559 chandransh 2625
 
2981 rajveer 2626
  def send_updateMyResearch(self, userId, itemId):
2627
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2628
    args = updateMyResearch_args()
2629
    args.userId = userId
2630
    args.itemId = itemId
559 chandransh 2631
    args.write(self._oprot)
2632
    self._oprot.writeMessageEnd()
2633
    self._oprot.trans.flush()
2634
 
2981 rajveer 2635
  def recv_updateMyResearch(self, ):
559 chandransh 2636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2637
    if mtype == TMessageType.EXCEPTION:
2638
      x = TApplicationException()
2639
      x.read(self._iprot)
2640
      self._iprot.readMessageEnd()
2641
      raise x
2981 rajveer 2642
    result = updateMyResearch_result()
559 chandransh 2643
    result.read(self._iprot)
2644
    self._iprot.readMessageEnd()
3431 rajveer 2645
    if result.success is not None:
2981 rajveer 2646
      return result.success
3431 rajveer 2647
    if result.scx is not None:
2981 rajveer 2648
      raise result.scx
2649
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2650
 
2981 rajveer 2651
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2652
    """
2981 rajveer 2653
    delete item from my research for a user
3431 rajveer 2654
 
1596 ankur.sing 2655
    Parameters:
2981 rajveer 2656
     - userId
2657
     - itemId
1596 ankur.sing 2658
    """
2981 rajveer 2659
    self.send_deleteItemFromMyResearch(userId, itemId)
2660
    self.recv_deleteItemFromMyResearch()
559 chandransh 2661
 
2981 rajveer 2662
  def send_deleteItemFromMyResearch(self, userId, itemId):
2663
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2664
    args = deleteItemFromMyResearch_args()
2665
    args.userId = userId
2666
    args.itemId = itemId
1596 ankur.sing 2667
    args.write(self._oprot)
2668
    self._oprot.writeMessageEnd()
2669
    self._oprot.trans.flush()
2670
 
2981 rajveer 2671
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2673
    if mtype == TMessageType.EXCEPTION:
2674
      x = TApplicationException()
2675
      x.read(self._iprot)
2676
      self._iprot.readMessageEnd()
2677
      raise x
2981 rajveer 2678
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2679
    result.read(self._iprot)
2680
    self._iprot.readMessageEnd()
3431 rajveer 2681
    if result.scx is not None:
2981 rajveer 2682
      raise result.scx
2683
    return
1596 ankur.sing 2684
 
2981 rajveer 2685
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2686
    """
2981 rajveer 2687
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2688
 
1673 ankur.sing 2689
    Parameters:
2981 rajveer 2690
     - userId
1673 ankur.sing 2691
    """
2981 rajveer 2692
    self.send_getBrowseHistoryItems(userId)
2693
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2694
 
2981 rajveer 2695
  def send_getBrowseHistoryItems(self, userId):
2696
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2697
    args = getBrowseHistoryItems_args()
2698
    args.userId = userId
1673 ankur.sing 2699
    args.write(self._oprot)
2700
    self._oprot.writeMessageEnd()
2701
    self._oprot.trans.flush()
2702
 
2981 rajveer 2703
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2705
    if mtype == TMessageType.EXCEPTION:
2706
      x = TApplicationException()
2707
      x.read(self._iprot)
2708
      self._iprot.readMessageEnd()
2709
      raise x
2981 rajveer 2710
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2711
    result.read(self._iprot)
2712
    self._iprot.readMessageEnd()
3431 rajveer 2713
    if result.success is not None:
1673 ankur.sing 2714
      return result.success
3431 rajveer 2715
    if result.scx is not None:
2981 rajveer 2716
      raise result.scx
2717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2718
 
2981 rajveer 2719
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2720
    """
2981 rajveer 2721
    add item to browse history for a user
3431 rajveer 2722
 
2642 varun.gupt 2723
    Parameters:
2981 rajveer 2724
     - userId
2725
     - itemId
2642 varun.gupt 2726
    """
2981 rajveer 2727
    self.send_updateBrowseHistory(userId, itemId)
2728
    self.recv_updateBrowseHistory()
1673 ankur.sing 2729
 
2981 rajveer 2730
  def send_updateBrowseHistory(self, userId, itemId):
2731
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2732
    args = updateBrowseHistory_args()
2733
    args.userId = userId
2734
    args.itemId = itemId
2642 varun.gupt 2735
    args.write(self._oprot)
2736
    self._oprot.writeMessageEnd()
2737
    self._oprot.trans.flush()
2738
 
2981 rajveer 2739
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2741
    if mtype == TMessageType.EXCEPTION:
2742
      x = TApplicationException()
2743
      x.read(self._iprot)
2744
      self._iprot.readMessageEnd()
2745
      raise x
2981 rajveer 2746
    result = updateBrowseHistory_result()
2642 varun.gupt 2747
    result.read(self._iprot)
2748
    self._iprot.readMessageEnd()
2749
    return
2750
 
3385 varun.gupt 2751
  def getCartsWithCouponCount(self, couponCode):
2752
    """
2753
    Returns count of Carts with given coupon applied
3431 rajveer 2754
 
3385 varun.gupt 2755
    Parameters:
2756
     - couponCode
2757
    """
2758
    self.send_getCartsWithCouponCount(couponCode)
2759
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2760
 
3385 varun.gupt 2761
  def send_getCartsWithCouponCount(self, couponCode):
2762
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2763
    args = getCartsWithCouponCount_args()
2764
    args.couponCode = couponCode
2765
    args.write(self._oprot)
2766
    self._oprot.writeMessageEnd()
2767
    self._oprot.trans.flush()
2768
 
2769
  def recv_getCartsWithCouponCount(self, ):
2770
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2771
    if mtype == TMessageType.EXCEPTION:
2772
      x = TApplicationException()
2773
      x.read(self._iprot)
2774
      self._iprot.readMessageEnd()
2775
      raise x
2776
    result = getCartsWithCouponCount_result()
2777
    result.read(self._iprot)
2778
    self._iprot.readMessageEnd()
3431 rajveer 2779
    if result.success is not None:
3385 varun.gupt 2780
      return result.success
2781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2782
 
3499 mandeep.dh 2783
  def increaseTrustLevel(self, userId, trustLevelDelta):
2784
    """
2785
    Updates COD trust level of a user
3385 varun.gupt 2786
 
3499 mandeep.dh 2787
    Parameters:
2788
     - userId
2789
     - trustLevelDelta
2790
    """
2791
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2792
 
2793
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2794
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2795
    args = increaseTrustLevel_args()
2796
    args.userId = userId
2797
    args.trustLevelDelta = trustLevelDelta
2798
    args.write(self._oprot)
2799
    self._oprot.writeMessageEnd()
2800
    self._oprot.trans.flush()
5407 amar.kumar 2801
  def getTrustLevel(self, userId):
2802
    """
2803
    Get trust level of a user
2804
 
2805
    Parameters:
2806
     - userId
2807
    """
2808
    self.send_getTrustLevel(userId)
2809
    return self.recv_getTrustLevel()
2810
 
2811
  def send_getTrustLevel(self, userId):
2812
    self._oprot.writeMessageBegin('getTrustLevel', TMessageType.CALL, self._seqid)
2813
    args = getTrustLevel_args()
2814
    args.userId = userId
2815
    args.write(self._oprot)
2816
    self._oprot.writeMessageEnd()
2817
    self._oprot.trans.flush()
2818
 
2819
  def recv_getTrustLevel(self, ):
2820
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2821
    if mtype == TMessageType.EXCEPTION:
2822
      x = TApplicationException()
2823
      x.read(self._iprot)
2824
      self._iprot.readMessageEnd()
2825
      raise x
2826
    result = getTrustLevel_result()
2827
    result.read(self._iprot)
2828
    self._iprot.readMessageEnd()
2829
    if result.success is not None:
2830
      return result.success
2831
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrustLevel failed: unknown result");
2832
 
4668 varun.gupt 2833
  def showCODOption(self, cartId, sourceId, pincode):
2834
    """
2835
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2836
 
4668 varun.gupt 2837
    Parameters:
2838
     - cartId
2839
     - sourceId
2840
     - pincode
2841
    """
2842
    self.send_showCODOption(cartId, sourceId, pincode)
2843
    return self.recv_showCODOption()
2844
 
2845
  def send_showCODOption(self, cartId, sourceId, pincode):
2846
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2847
    args = showCODOption_args()
2848
    args.cartId = cartId
2849
    args.sourceId = sourceId
2850
    args.pincode = pincode
2851
    args.write(self._oprot)
2852
    self._oprot.writeMessageEnd()
2853
    self._oprot.trans.flush()
2854
 
2855
  def recv_showCODOption(self, ):
2856
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2857
    if mtype == TMessageType.EXCEPTION:
2858
      x = TApplicationException()
2859
      x.read(self._iprot)
2860
      self._iprot.readMessageEnd()
2861
      raise x
2862
    result = showCODOption_result()
2863
    result.read(self._iprot)
2864
    self._iprot.readMessageEnd()
2865
    if result.success is not None:
2866
      return result.success
2867
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2868
 
5623 anupam.sin 2869
  def getUserEmails(self, startDate, endDate):
2870
    """
2871
    Get email addresses for users activated within a given date range
4668 varun.gupt 2872
 
5623 anupam.sin 2873
    Parameters:
2874
     - startDate
2875
     - endDate
2876
    """
2877
    self.send_getUserEmails(startDate, endDate)
2878
    return self.recv_getUserEmails()
2879
 
2880
  def send_getUserEmails(self, startDate, endDate):
2881
    self._oprot.writeMessageBegin('getUserEmails', TMessageType.CALL, self._seqid)
2882
    args = getUserEmails_args()
2883
    args.startDate = startDate
2884
    args.endDate = endDate
2885
    args.write(self._oprot)
2886
    self._oprot.writeMessageEnd()
2887
    self._oprot.trans.flush()
2888
 
2889
  def recv_getUserEmails(self, ):
2890
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2891
    if mtype == TMessageType.EXCEPTION:
2892
      x = TApplicationException()
2893
      x.read(self._iprot)
2894
      self._iprot.readMessageEnd()
2895
      raise x
2896
    result = getUserEmails_result()
2897
    result.read(self._iprot)
2898
    self._iprot.readMessageEnd()
2899
    if result.success is not None:
2900
      return result.success
2901
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserEmails failed: unknown result");
2902
 
9299 kshitij.so 2903
  def insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 2904
    """
2905
    Mark a cart lineitem as insured. Returns true/false.
2906
 
2907
    Parameters:
2908
     - itemId
2909
     - cartId
2910
     - toInsure
9299 kshitij.so 2911
     - insurerType
6903 anupam.sin 2912
    """
9299 kshitij.so 2913
    self.send_insureItem(itemId, cartId, toInsure, insurerType)
6903 anupam.sin 2914
    return self.recv_insureItem()
2915
 
9299 kshitij.so 2916
  def send_insureItem(self, itemId, cartId, toInsure, insurerType):
6903 anupam.sin 2917
    self._oprot.writeMessageBegin('insureItem', TMessageType.CALL, self._seqid)
2918
    args = insureItem_args()
2919
    args.itemId = itemId
2920
    args.cartId = cartId
2921
    args.toInsure = toInsure
9299 kshitij.so 2922
    args.insurerType = insurerType
6903 anupam.sin 2923
    args.write(self._oprot)
2924
    self._oprot.writeMessageEnd()
2925
    self._oprot.trans.flush()
2926
 
2927
  def recv_insureItem(self, ):
2928
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2929
    if mtype == TMessageType.EXCEPTION:
2930
      x = TApplicationException()
2931
      x.read(self._iprot)
2932
      self._iprot.readMessageEnd()
2933
      raise x
2934
    result = insureItem_result()
2935
    result.read(self._iprot)
2936
    self._iprot.readMessageEnd()
2937
    if result.success is not None:
2938
      return result.success
2939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insureItem failed: unknown result");
2940
 
2941
  def cancelInsurance(self, cartId):
2942
    """
2943
    Cancel insurance for all items in the cart
2944
 
2945
    Parameters:
2946
     - cartId
2947
    """
2948
    self.send_cancelInsurance(cartId)
2949
    return self.recv_cancelInsurance()
2950
 
2951
  def send_cancelInsurance(self, cartId):
2952
    self._oprot.writeMessageBegin('cancelInsurance', TMessageType.CALL, self._seqid)
2953
    args = cancelInsurance_args()
2954
    args.cartId = cartId
2955
    args.write(self._oprot)
2956
    self._oprot.writeMessageEnd()
2957
    self._oprot.trans.flush()
2958
 
2959
  def recv_cancelInsurance(self, ):
2960
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2961
    if mtype == TMessageType.EXCEPTION:
2962
      x = TApplicationException()
2963
      x.read(self._iprot)
2964
      self._iprot.readMessageEnd()
2965
      raise x
2966
    result = cancelInsurance_result()
2967
    result.read(self._iprot)
2968
    self._iprot.readMessageEnd()
2969
    if result.success is not None:
2970
      return result.success
2971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "cancelInsurance failed: unknown result");
2972
 
2973
  def storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2974
    """
2975
    Stores insurance specific details like date of birth and guardianName
2976
 
2977
    Parameters:
2978
     - addressId
2979
     - dob
2980
     - guardianName
2981
    """
2982
    self.send_storeInsuranceSpecificDetails(addressId, dob, guardianName)
2983
    return self.recv_storeInsuranceSpecificDetails()
2984
 
2985
  def send_storeInsuranceSpecificDetails(self, addressId, dob, guardianName):
2986
    self._oprot.writeMessageBegin('storeInsuranceSpecificDetails', TMessageType.CALL, self._seqid)
2987
    args = storeInsuranceSpecificDetails_args()
2988
    args.addressId = addressId
2989
    args.dob = dob
2990
    args.guardianName = guardianName
2991
    args.write(self._oprot)
2992
    self._oprot.writeMessageEnd()
2993
    self._oprot.trans.flush()
2994
 
2995
  def recv_storeInsuranceSpecificDetails(self, ):
2996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2997
    if mtype == TMessageType.EXCEPTION:
2998
      x = TApplicationException()
2999
      x.read(self._iprot)
3000
      self._iprot.readMessageEnd()
3001
      raise x
3002
    result = storeInsuranceSpecificDetails_result()
3003
    result.read(self._iprot)
3004
    self._iprot.readMessageEnd()
3005
    if result.success is not None:
3006
      return result.success
3007
    raise TApplicationException(TApplicationException.MISSING_RESULT, "storeInsuranceSpecificDetails failed: unknown result");
3008
 
3009
  def isInsuranceDetailPresent(self, addressId):
3010
    """
3011
    Return true or false based on whether the user has stored any insurance info corresponding to the given addressId
3012
 
3013
    Parameters:
3014
     - addressId
3015
    """
3016
    self.send_isInsuranceDetailPresent(addressId)
3017
    return self.recv_isInsuranceDetailPresent()
3018
 
3019
  def send_isInsuranceDetailPresent(self, addressId):
3020
    self._oprot.writeMessageBegin('isInsuranceDetailPresent', TMessageType.CALL, self._seqid)
3021
    args = isInsuranceDetailPresent_args()
3022
    args.addressId = addressId
3023
    args.write(self._oprot)
3024
    self._oprot.writeMessageEnd()
3025
    self._oprot.trans.flush()
3026
 
3027
  def recv_isInsuranceDetailPresent(self, ):
3028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3029
    if mtype == TMessageType.EXCEPTION:
3030
      x = TApplicationException()
3031
      x.read(self._iprot)
3032
      self._iprot.readMessageEnd()
3033
      raise x
3034
    result = isInsuranceDetailPresent_result()
3035
    result.read(self._iprot)
3036
    self._iprot.readMessageEnd()
3037
    if result.success is not None:
3038
      return result.success
3039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isInsuranceDetailPresent failed: unknown result");
3040
 
9791 rajveer 3041
  def getProductsAddedToCart(self, startDate, endDate):
6821 amar.kumar 3042
    """
9791 rajveer 3043
    Returns list of item ids which added to cart from startDate to endDate
5623 anupam.sin 3044
 
6821 amar.kumar 3045
    Parameters:
3046
     - startDate
3047
     - endDate
3048
    """
9791 rajveer 3049
    self.send_getProductsAddedToCart(startDate, endDate)
3050
    return self.recv_getProductsAddedToCart()
6821 amar.kumar 3051
 
9791 rajveer 3052
  def send_getProductsAddedToCart(self, startDate, endDate):
3053
    self._oprot.writeMessageBegin('getProductsAddedToCart', TMessageType.CALL, self._seqid)
3054
    args = getProductsAddedToCart_args()
6821 amar.kumar 3055
    args.startDate = startDate
3056
    args.endDate = endDate
3057
    args.write(self._oprot)
3058
    self._oprot.writeMessageEnd()
3059
    self._oprot.trans.flush()
3060
 
9791 rajveer 3061
  def recv_getProductsAddedToCart(self, ):
6821 amar.kumar 3062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3063
    if mtype == TMessageType.EXCEPTION:
3064
      x = TApplicationException()
3065
      x.read(self._iprot)
3066
      self._iprot.readMessageEnd()
3067
      raise x
9791 rajveer 3068
    result = getProductsAddedToCart_result()
6821 amar.kumar 3069
    result.read(self._iprot)
3070
    self._iprot.readMessageEnd()
3071
    if result.success is not None:
3072
      return result.success
9791 rajveer 3073
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductsAddedToCart failed: unknown result");
6821 amar.kumar 3074
 
11592 amit.gupta 3075
  def validateCartPlus(self, cartId, sourceId):
3076
    """
3077
    This method is speciically used to avoid overloadaed calls to userClient
6821 amar.kumar 3078
 
11592 amit.gupta 3079
    Parameters:
3080
     - cartId
3081
     - sourceId
3082
    """
3083
    self.send_validateCartPlus(cartId, sourceId)
3084
    return self.recv_validateCartPlus()
3085
 
3086
  def send_validateCartPlus(self, cartId, sourceId):
3087
    self._oprot.writeMessageBegin('validateCartPlus', TMessageType.CALL, self._seqid)
3088
    args = validateCartPlus_args()
3089
    args.cartId = cartId
3090
    args.sourceId = sourceId
3091
    args.write(self._oprot)
3092
    self._oprot.writeMessageEnd()
3093
    self._oprot.trans.flush()
3094
 
3095
  def recv_validateCartPlus(self, ):
3096
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3097
    if mtype == TMessageType.EXCEPTION:
3098
      x = TApplicationException()
3099
      x.read(self._iprot)
3100
      self._iprot.readMessageEnd()
3101
      raise x
3102
    result = validateCartPlus_result()
3103
    result.read(self._iprot)
3104
    self._iprot.readMessageEnd()
3105
    if result.success is not None:
3106
      return result.success
3107
    if result.scex is not None:
3108
      raise result.scex
3109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCartPlus failed: unknown result");
3110
 
3111
 
3376 rajveer 3112
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 3113
  def __init__(self, handler):
3376 rajveer 3114
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 3115
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3116
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 3117
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 3118
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 3119
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 3120
    self._processMap["createUser"] = Processor.process_createUser
3121
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 3122
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3123
    self._processMap["userExists"] = Processor.process_userExists
3124
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3125
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3126
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3127
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3128
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3129
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3130
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3131
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3132
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3133
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3134
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3135
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3136
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3137
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3138
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
5407 amar.kumar 3139
    self._processMap["removeUserCommunication"] = Processor.process_removeUserCommunication
1845 vikas 3140
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3141
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3142
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3143
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3144
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3145
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3146
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3147
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3148
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3149
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3150
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3151
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3152
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3153
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3154
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3155
    self._processMap["getCart"] = Processor.process_getCart
3156
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3157
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3158
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3159
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
5553 rajveer 3160
    self._processMap["addStoreToCart"] = Processor.process_addStoreToCart
1976 varun.gupt 3161
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3162
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3163
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3164
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3165
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3166
    self._processMap["validateCart"] = Processor.process_validateCart
3167
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3168
    self._processMap["checkOut"] = Processor.process_checkOut
3169
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3170
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3171
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2981 rajveer 3172
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3173
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3174
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3175
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3176
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3177
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3178
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
5407 amar.kumar 3179
    self._processMap["getTrustLevel"] = Processor.process_getTrustLevel
4668 varun.gupt 3180
    self._processMap["showCODOption"] = Processor.process_showCODOption
5623 anupam.sin 3181
    self._processMap["getUserEmails"] = Processor.process_getUserEmails
6903 anupam.sin 3182
    self._processMap["insureItem"] = Processor.process_insureItem
3183
    self._processMap["cancelInsurance"] = Processor.process_cancelInsurance
3184
    self._processMap["storeInsuranceSpecificDetails"] = Processor.process_storeInsuranceSpecificDetails
3185
    self._processMap["isInsuranceDetailPresent"] = Processor.process_isInsuranceDetailPresent
9791 rajveer 3186
    self._processMap["getProductsAddedToCart"] = Processor.process_getProductsAddedToCart
11592 amit.gupta 3187
    self._processMap["validateCartPlus"] = Processor.process_validateCartPlus
94 ashish 3188
 
3189
  def process(self, iprot, oprot):
3190
    (name, type, seqid) = iprot.readMessageBegin()
3191
    if name not in self._processMap:
3192
      iprot.skip(TType.STRUCT)
3193
      iprot.readMessageEnd()
3194
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3195
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3196
      x.write(oprot)
3197
      oprot.writeMessageEnd()
3198
      oprot.trans.flush()
3199
      return
3200
    else:
3201
      self._processMap[name](self, seqid, iprot, oprot)
3202
    return True
3203
 
559 chandransh 3204
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3205
    args = createAnonymousUser_args()
94 ashish 3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
559 chandransh 3208
    result = createAnonymousUser_result()
94 ashish 3209
    try:
559 chandransh 3210
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3211
    except UserContextException, ucex:
3212
      result.ucex = ucex
3213
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
3217
 
559 chandransh 3218
  def process_getUserById(self, seqid, iprot, oprot):
3219
    args = getUserById_args()
94 ashish 3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
559 chandransh 3222
    result = getUserById_result()
94 ashish 3223
    try:
559 chandransh 3224
      result.success = self._handler.getUserById(args.userId)
3225
    except UserContextException, ucex:
3226
      result.ucex = ucex
3227
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
3231
 
5326 rajveer 3232
  def process_getUserByCartId(self, seqid, iprot, oprot):
3233
    args = getUserByCartId_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = getUserByCartId_result()
3237
    try:
3238
      result.success = self._handler.getUserByCartId(args.cartId)
3239
    except UserContextException, ucex:
3240
      result.ucex = ucex
3241
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
1491 vikas 3246
  def process_getUserByEmail(self, seqid, iprot, oprot):
3247
    args = getUserByEmail_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = getUserByEmail_result()
3251
    try:
3252
      result.success = self._handler.getUserByEmail(args.email)
3253
    except UserContextException, ucex:
3254
      result.ucex = ucex
3255
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
3032 mandeep.dh 3260
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3261
    args = getUserByMobileNumber_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = getUserByMobileNumber_result()
3265
    try:
3266
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3267
    except UserContextException, ucex:
3268
      result.ucex = ucex
3269
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
559 chandransh 3274
  def process_createUser(self, seqid, iprot, oprot):
3275
    args = createUser_args()
94 ashish 3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
559 chandransh 3278
    result = createUser_result()
94 ashish 3279
    try:
559 chandransh 3280
      result.success = self._handler.createUser(args.user)
3281
    except UserContextException, ucex:
3282
      result.ucex = ucex
3283
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
559 chandransh 3288
  def process_updateUser(self, seqid, iprot, oprot):
3289
    args = updateUser_args()
94 ashish 3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
559 chandransh 3292
    result = updateUser_result()
94 ashish 3293
    try:
559 chandransh 3294
      result.success = self._handler.updateUser(args.user)
3295
    except UserContextException, ucex:
3296
      result.ucex = ucex
3297
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3298
    result.write(oprot)
3299
    oprot.writeMessageEnd()
3300
    oprot.trans.flush()
3301
 
122 ashish 3302
  def process_authenticateUser(self, seqid, iprot, oprot):
3303
    args = authenticateUser_args()
3304
    args.read(iprot)
3305
    iprot.readMessageEnd()
3306
    result = authenticateUser_result()
3307
    try:
559 chandransh 3308
      result.success = self._handler.authenticateUser(args.email, args.password)
3309
    except AuthenticationException, auex:
3310
      result.auex = auex
122 ashish 3311
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3312
    result.write(oprot)
3313
    oprot.writeMessageEnd()
3314
    oprot.trans.flush()
3315
 
94 ashish 3316
  def process_userExists(self, seqid, iprot, oprot):
3317
    args = userExists_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = userExists_result()
3321
    try:
3322
      result.success = self._handler.userExists(args.email)
3323
    except UserContextException, ucx:
3324
      result.ucx = ucx
3325
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
3330
  def process_addAddressForUser(self, seqid, iprot, oprot):
3331
    args = addAddressForUser_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = addAddressForUser_result()
3335
    try:
567 rajveer 3336
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3337
    except UserContextException, ucx:
3338
      result.ucx = ucx
3339
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
3344
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3345
    args = removeAddressForUser_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = removeAddressForUser_result()
3349
    try:
3350
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3351
    except UserContextException, ucx:
3352
      result.ucx = ucx
3353
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
3358
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3359
    args = setUserAsLoggedIn_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = setUserAsLoggedIn_result()
3363
    try:
3364
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3365
    except UserContextException, ucx:
3366
      result.ucx = ucx
3367
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
3372
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3373
    args = setUserAsLoggedOut_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = setUserAsLoggedOut_result()
3377
    try:
3378
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3379
    except UserContextException, ucx:
3380
      result.ucx = ucx
3381
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
504 rajveer 3386
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3387
    args = setDefaultAddress_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = setDefaultAddress_result()
3391
    try:
3392
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3393
    except UserContextException, ucx:
3394
      result.ucx = ucx
3395
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
94 ashish 3400
  def process_updatePassword(self, seqid, iprot, oprot):
3401
    args = updatePassword_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = updatePassword_result()
3405
    try:
594 rajveer 3406
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3407
    except UserContextException, ucx:
3408
      result.ucx = ucx
3409
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
581 rajveer 3414
  def process_forgotPassword(self, seqid, iprot, oprot):
3415
    args = forgotPassword_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = forgotPassword_result()
3419
    try:
884 rajveer 3420
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3421
    except UserContextException, ucx:
3422
      result.ucx = ucx
3423
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
594 rajveer 3428
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3429
    args = getAllAddressesForUser_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = getAllAddressesForUser_result()
3433
    try:
3434
      result.success = self._handler.getAllAddressesForUser(args.userId)
3435
    except UserContextException, ucx:
3436
      result.ucx = ucx
3437
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
1894 vikas 3442
  def process_getAddressById(self, seqid, iprot, oprot):
3443
    args = getAddressById_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = getAddressById_result()
3447
    try:
3448
      result.success = self._handler.getAddressById(args.addressId)
3449
    except UserContextException, ucx:
3450
      result.ucx = ucx
3451
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
594 rajveer 3456
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3457
    args = getDefaultAddressId_args()
3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
3460
    result = getDefaultAddressId_result()
3461
    try:
3462
      result.success = self._handler.getDefaultAddressId(args.userId)
3463
    except UserContextException, ucx:
3464
      result.ucx = ucx
3465
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3466
    result.write(oprot)
3467
    oprot.writeMessageEnd()
3468
    oprot.trans.flush()
3469
 
785 rajveer 3470
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3471
    args = getDefaultPincode_args()
3472
    args.read(iprot)
3473
    iprot.readMessageEnd()
3474
    result = getDefaultPincode_result()
3475
    try:
3476
      result.success = self._handler.getDefaultPincode(args.userId)
3477
    except UserContextException, ucx:
3478
      result.ucx = ucx
3479
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
1274 varun.gupt 3484
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3485
    args = saveUserCommunication_args()
3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
3488
    result = saveUserCommunication_result()
3489
    try:
3490
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3491
    except UserCommunicationException, ucx:
3492
      result.ucx = ucx
3493
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3494
    result.write(oprot)
3495
    oprot.writeMessageEnd()
3496
    oprot.trans.flush()
3497
 
1590 varun.gupt 3498
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3499
    args = getUserCommunicationById_args()
3500
    args.read(iprot)
3501
    iprot.readMessageEnd()
3502
    result = getUserCommunicationById_result()
3503
    try:
3504
      result.success = self._handler.getUserCommunicationById(args.id)
3505
    except UserCommunicationException, ucx:
3506
      result.ucx = ucx
3507
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3508
    result.write(oprot)
3509
    oprot.writeMessageEnd()
3510
    oprot.trans.flush()
3511
 
3512
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3513
    args = getUserCommunicationByUser_args()
3514
    args.read(iprot)
3515
    iprot.readMessageEnd()
3516
    result = getUserCommunicationByUser_result()
3517
    try:
3518
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3519
    except UserCommunicationException, ucx:
3520
      result.ucx = ucx
3521
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3522
    result.write(oprot)
3523
    oprot.writeMessageEnd()
3524
    oprot.trans.flush()
3525
 
3526
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3527
    args = getAllUserCommunications_args()
3528
    args.read(iprot)
3529
    iprot.readMessageEnd()
3530
    result = getAllUserCommunications_result()
3531
    try:
3532
      result.success = self._handler.getAllUserCommunications()
3533
    except UserCommunicationException, ucx:
3534
      result.ucx = ucx
3535
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3536
    result.write(oprot)
3537
    oprot.writeMessageEnd()
3538
    oprot.trans.flush()
3539
 
5407 amar.kumar 3540
  def process_removeUserCommunication(self, seqid, iprot, oprot):
3541
    args = removeUserCommunication_args()
3542
    args.read(iprot)
3543
    iprot.readMessageEnd()
3544
    result = removeUserCommunication_result()
3545
    try:
3546
      self._handler.removeUserCommunication(args.id)
3547
    except UserCommunicationException, ucx:
3548
      result.ucx = ucx
3549
    oprot.writeMessageBegin("removeUserCommunication", TMessageType.REPLY, seqid)
3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
1845 vikas 3554
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3555
    args = createMasterAffiliate_args()
3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
3558
    result = createMasterAffiliate_result()
3559
    try:
1859 vikas 3560
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3561
    except UserAffiliateException, utx:
1845 vikas 3562
      result.utx = utx
3563
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3564
    result.write(oprot)
3565
    oprot.writeMessageEnd()
3566
    oprot.trans.flush()
3567
 
1899 vikas 3568
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3569
    args = getAllMasterAffiliates_args()
3570
    args.read(iprot)
3571
    iprot.readMessageEnd()
3572
    result = getAllMasterAffiliates_result()
3573
    try:
3574
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3575
    except UserAffiliateException, utx:
1899 vikas 3576
      result.utx = utx
3577
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3578
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
3581
 
1845 vikas 3582
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3583
    args = getMasterAffiliateById_args()
3584
    args.read(iprot)
3585
    iprot.readMessageEnd()
3586
    result = getMasterAffiliateById_result()
3587
    try:
3588
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3589
    except UserAffiliateException, utx:
1845 vikas 3590
      result.utx = utx
3591
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3592
    result.write(oprot)
3593
    oprot.writeMessageEnd()
3594
    oprot.trans.flush()
3595
 
3596
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3597
    args = getMasterAffiliateByName_args()
3598
    args.read(iprot)
3599
    iprot.readMessageEnd()
3600
    result = getMasterAffiliateByName_result()
3601
    try:
3602
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3603
    except UserAffiliateException, utx:
1845 vikas 3604
      result.utx = utx
3605
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
3610
  def process_createAffiliate(self, seqid, iprot, oprot):
3611
    args = createAffiliate_args()
3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
3614
    result = createAffiliate_result()
3615
    try:
1859 vikas 3616
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3617
    except UserAffiliateException, utx:
1845 vikas 3618
      result.utx = utx
3619
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3620
    result.write(oprot)
3621
    oprot.writeMessageEnd()
3622
    oprot.trans.flush()
3623
 
3624
  def process_getAffiliateById(self, seqid, iprot, oprot):
3625
    args = getAffiliateById_args()
3626
    args.read(iprot)
3627
    iprot.readMessageEnd()
3628
    result = getAffiliateById_result()
3629
    try:
3630
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3631
    except UserAffiliateException, utx:
1845 vikas 3632
      result.utx = utx
3633
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
3637
 
3638
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3639
    args = getAffiliateByName_args()
3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
3642
    result = getAffiliateByName_result()
3643
    try:
3644
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3645
    except UserAffiliateException, utx:
1845 vikas 3646
      result.utx = utx
3647
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
3652
  def process_getTrackerById(self, seqid, iprot, oprot):
3653
    args = getTrackerById_args()
3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
3656
    result = getTrackerById_result()
3657
    try:
1996 vikas 3658
      result.success = self._handler.getTrackerById(args.id)
3659
    except UserAffiliateException, utx:
1845 vikas 3660
      result.utx = utx
3661
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
3665
 
1996 vikas 3666
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3667
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
1996 vikas 3670
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3671
    try:
1996 vikas 3672
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3673
    except UserAffiliateException, utx:
1845 vikas 3674
      result.utx = utx
1996 vikas 3675
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
3679
 
3680
  def process_addTrackLog(self, seqid, iprot, oprot):
3681
    args = addTrackLog_args()
3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
3684
    result = addTrackLog_result()
3685
    try:
1996 vikas 3686
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3687
    except UserAffiliateException, utx:
1845 vikas 3688
      result.utx = utx
3689
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
3694
  def process_getTrackLogById(self, seqid, iprot, oprot):
3695
    args = getTrackLogById_args()
3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
3698
    result = getTrackLogById_result()
3699
    try:
3700
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3701
    except UserAffiliateException, utx:
1845 vikas 3702
      result.utx = utx
3703
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
3707
 
1996 vikas 3708
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3709
    args = getTrackLogsByAffiliate_args()
1845 vikas 3710
    args.read(iprot)
3711
    iprot.readMessageEnd()
1996 vikas 3712
    result = getTrackLogsByAffiliate_result()
1845 vikas 3713
    try:
3293 vikas 3714
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3715
    except UserAffiliateException, utx:
1845 vikas 3716
      result.utx = utx
1996 vikas 3717
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
3721
 
3722
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3723
    args = getTrackLogsByUser_args()
3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
3726
    result = getTrackLogsByUser_result()
3727
    try:
3728
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3729
    except UserAffiliateException, utx:
1845 vikas 3730
      result.utx = utx
3731
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3732
    result.write(oprot)
3733
    oprot.writeMessageEnd()
3734
    oprot.trans.flush()
3735
 
3736
  def process_getTrackLogs(self, seqid, iprot, oprot):
3737
    args = getTrackLogs_args()
3738
    args.read(iprot)
3739
    iprot.readMessageEnd()
3740
    result = getTrackLogs_result()
3741
    try:
1996 vikas 3742
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3743
    except UserAffiliateException, utx:
1845 vikas 3744
      result.utx = utx
3745
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
3749
 
559 chandransh 3750
  def process_getCurrentCart(self, seqid, iprot, oprot):
3751
    args = getCurrentCart_args()
94 ashish 3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
559 chandransh 3754
    result = getCurrentCart_result()
94 ashish 3755
    try:
559 chandransh 3756
      result.success = self._handler.getCurrentCart(args.userId)
3757
    except ShoppingCartException, scx:
3758
      result.scx = scx
3759
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
559 chandransh 3764
  def process_getCart(self, seqid, iprot, oprot):
3765
    args = getCart_args()
94 ashish 3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
559 chandransh 3768
    result = getCart_result()
94 ashish 3769
    try:
559 chandransh 3770
      result.success = self._handler.getCart(args.cartId)
3771
    except ShoppingCartException, scx:
3772
      result.scx = scx
3773
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3774
    result.write(oprot)
3775
    oprot.writeMessageEnd()
3776
    oprot.trans.flush()
3777
 
559 chandransh 3778
  def process_getCartsByTime(self, seqid, iprot, oprot):
3779
    args = getCartsByTime_args()
94 ashish 3780
    args.read(iprot)
3781
    iprot.readMessageEnd()
559 chandransh 3782
    result = getCartsByTime_result()
94 ashish 3783
    try:
559 chandransh 3784
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3785
    except ShoppingCartException, scx:
3786
      result.scx = scx
3787
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3788
    result.write(oprot)
3789
    oprot.writeMessageEnd()
3790
    oprot.trans.flush()
3791
 
559 chandransh 3792
  def process_addItemToCart(self, seqid, iprot, oprot):
3793
    args = addItemToCart_args()
130 ashish 3794
    args.read(iprot)
3795
    iprot.readMessageEnd()
559 chandransh 3796
    result = addItemToCart_result()
130 ashish 3797
    try:
3557 rajveer 3798
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3799
    except ShoppingCartException, scx:
3800
      result.scx = scx
3801
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3802
    result.write(oprot)
3803
    oprot.writeMessageEnd()
3804
    oprot.trans.flush()
3805
 
559 chandransh 3806
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3807
    args = deleteItemFromCart_args()
3808
    args.read(iprot)
3809
    iprot.readMessageEnd()
3810
    result = deleteItemFromCart_result()
3811
    try:
3812
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3813
    except ShoppingCartException, scx:
3814
      result.scx = scx
3815
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3816
    result.write(oprot)
3817
    oprot.writeMessageEnd()
3818
    oprot.trans.flush()
130 ashish 3819
 
559 chandransh 3820
  def process_addAddressToCart(self, seqid, iprot, oprot):
3821
    args = addAddressToCart_args()
3822
    args.read(iprot)
3823
    iprot.readMessageEnd()
3824
    result = addAddressToCart_result()
575 chandransh 3825
    try:
3826
      self._handler.addAddressToCart(args.cartId, args.addressId)
3827
    except ShoppingCartException, scx:
3828
      result.scx = scx
559 chandransh 3829
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3830
    result.write(oprot)
3831
    oprot.writeMessageEnd()
3832
    oprot.trans.flush()
3833
 
5553 rajveer 3834
  def process_addStoreToCart(self, seqid, iprot, oprot):
3835
    args = addStoreToCart_args()
3836
    args.read(iprot)
3837
    iprot.readMessageEnd()
3838
    result = addStoreToCart_result()
3839
    try:
3840
      self._handler.addStoreToCart(args.cartId, args.storeId)
3841
    except ShoppingCartException, scx:
3842
      result.scx = scx
3843
    oprot.writeMessageBegin("addStoreToCart", TMessageType.REPLY, seqid)
3844
    result.write(oprot)
3845
    oprot.writeMessageEnd()
3846
    oprot.trans.flush()
3847
 
1976 varun.gupt 3848
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3849
    args = applyCouponToCart_args()
3850
    args.read(iprot)
3851
    iprot.readMessageEnd()
3852
    result = applyCouponToCart_result()
3853
    try:
6922 anupam.sin 3854
      self._handler.applyCouponToCart(args.cart, args.couponCode)
1976 varun.gupt 3855
    except ShoppingCartException, scx:
3856
      result.scx = scx
3857
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3858
    result.write(oprot)
3859
    oprot.writeMessageEnd()
3860
    oprot.trans.flush()
3861
 
3862
  def process_removeCoupon(self, seqid, iprot, oprot):
3863
    args = removeCoupon_args()
3864
    args.read(iprot)
3865
    iprot.readMessageEnd()
3866
    result = removeCoupon_result()
3867
    try:
3868
      self._handler.removeCoupon(args.cartId)
3869
    except ShoppingCartException, scx:
3870
      result.scx = scx
3871
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3872
    result.write(oprot)
3873
    oprot.writeMessageEnd()
3874
    oprot.trans.flush()
3875
 
3554 varun.gupt 3876
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3877
    args = deleteDiscountsFromCart_args()
3878
    args.read(iprot)
3879
    iprot.readMessageEnd()
3880
    result = deleteDiscountsFromCart_result()
3881
    try:
3882
      self._handler.deleteDiscountsFromCart(args.cartId)
3883
    except ShoppingCartException, scx:
3884
      result.scx = scx
3885
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3886
    result.write(oprot)
3887
    oprot.writeMessageEnd()
3888
    oprot.trans.flush()
3889
 
3890
  def process_saveDiscounts(self, seqid, iprot, oprot):
3891
    args = saveDiscounts_args()
3892
    args.read(iprot)
3893
    iprot.readMessageEnd()
3894
    result = saveDiscounts_result()
3895
    try:
3896
      self._handler.saveDiscounts(args.discounts)
3897
    except ShoppingCartException, scx:
3898
      result.scx = scx
3899
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3900
    result.write(oprot)
3901
    oprot.writeMessageEnd()
3902
    oprot.trans.flush()
3903
 
690 chandransh 3904
  def process_createOrders(self, seqid, iprot, oprot):
3905
    args = createOrders_args()
559 chandransh 3906
    args.read(iprot)
3907
    iprot.readMessageEnd()
690 chandransh 3908
    result = createOrders_result()
559 chandransh 3909
    try:
11526 amit.gupta 3910
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId, args.schemeId, args.orderSource)
559 chandransh 3911
    except ShoppingCartException, scx:
3912
      result.scx = scx
690 chandransh 3913
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3914
    result.write(oprot)
3915
    oprot.writeMessageEnd()
3916
    oprot.trans.flush()
3917
 
3918
  def process_validateCart(self, seqid, iprot, oprot):
3919
    args = validateCart_args()
3920
    args.read(iprot)
3921
    iprot.readMessageEnd()
3922
    result = validateCart_result()
575 chandransh 3923
    try:
3557 rajveer 3924
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3925
    except ShoppingCartException, scex:
3926
      result.scex = scex
559 chandransh 3927
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3928
    result.write(oprot)
3929
    oprot.writeMessageEnd()
3930
    oprot.trans.flush()
3931
 
690 chandransh 3932
  def process_mergeCart(self, seqid, iprot, oprot):
3933
    args = mergeCart_args()
575 chandransh 3934
    args.read(iprot)
3935
    iprot.readMessageEnd()
690 chandransh 3936
    result = mergeCart_result()
3937
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3938
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3939
    result.write(oprot)
3940
    oprot.writeMessageEnd()
3941
    oprot.trans.flush()
3942
 
3943
  def process_checkOut(self, seqid, iprot, oprot):
3944
    args = checkOut_args()
3945
    args.read(iprot)
3946
    iprot.readMessageEnd()
3947
    result = checkOut_result()
575 chandransh 3948
    try:
690 chandransh 3949
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3950
    except ShoppingCartException, scex:
3951
      result.scex = scex
690 chandransh 3952
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3953
    result.write(oprot)
3954
    oprot.writeMessageEnd()
3955
    oprot.trans.flush()
3956
 
690 chandransh 3957
  def process_resetCart(self, seqid, iprot, oprot):
3958
    args = resetCart_args()
559 chandransh 3959
    args.read(iprot)
3960
    iprot.readMessageEnd()
690 chandransh 3961
    result = resetCart_result()
3962
    try:
3963
      result.success = self._handler.resetCart(args.cartId, args.items)
3964
    except ShoppingCartException, scex:
3965
      result.scex = scex
3966
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3967
    result.write(oprot)
3968
    oprot.writeMessageEnd()
3969
    oprot.trans.flush()
3970
 
2981 rajveer 3971
  def process_getUserCount(self, seqid, iprot, oprot):
3972
    args = getUserCount_args()
559 chandransh 3973
    args.read(iprot)
3974
    iprot.readMessageEnd()
2981 rajveer 3975
    result = getUserCount_result()
3976
    result.success = self._handler.getUserCount(args.userType)
3977
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3978
    result.write(oprot)
3979
    oprot.writeMessageEnd()
3980
    oprot.trans.flush()
3981
 
2981 rajveer 3982
  def process_getAllUsers(self, seqid, iprot, oprot):
3983
    args = getAllUsers_args()
559 chandransh 3984
    args.read(iprot)
3985
    iprot.readMessageEnd()
2981 rajveer 3986
    result = getAllUsers_result()
3987
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3988
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3989
    result.write(oprot)
3990
    oprot.writeMessageEnd()
3991
    oprot.trans.flush()
3992
 
2981 rajveer 3993
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3994
    args = getMyResearchItems_args()
559 chandransh 3995
    args.read(iprot)
3996
    iprot.readMessageEnd()
2981 rajveer 3997
    result = getMyResearchItems_result()
559 chandransh 3998
    try:
2981 rajveer 3999
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 4000
    except WidgetException, scx:
4001
      result.scx = scx
2981 rajveer 4002
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 4003
    result.write(oprot)
4004
    oprot.writeMessageEnd()
4005
    oprot.trans.flush()
4006
 
2981 rajveer 4007
  def process_updateMyResearch(self, seqid, iprot, oprot):
4008
    args = updateMyResearch_args()
772 rajveer 4009
    args.read(iprot)
4010
    iprot.readMessageEnd()
2981 rajveer 4011
    result = updateMyResearch_result()
4012
    try:
4013
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
4014
    except WidgetException, scx:
4015
      result.scx = scx
4016
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 4017
    result.write(oprot)
4018
    oprot.writeMessageEnd()
4019
    oprot.trans.flush()
559 chandransh 4020
 
2981 rajveer 4021
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
4022
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 4023
    args.read(iprot)
4024
    iprot.readMessageEnd()
2981 rajveer 4025
    result = deleteItemFromMyResearch_result()
4026
    try:
4027
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
4028
    except WidgetException, scx:
4029
      result.scx = scx
4030
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 4031
    result.write(oprot)
4032
    oprot.writeMessageEnd()
4033
    oprot.trans.flush()
772 rajveer 4034
 
2981 rajveer 4035
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
4036
    args = getBrowseHistoryItems_args()
1673 ankur.sing 4037
    args.read(iprot)
4038
    iprot.readMessageEnd()
2981 rajveer 4039
    result = getBrowseHistoryItems_result()
4040
    try:
4041
      result.success = self._handler.getBrowseHistoryItems(args.userId)
4042
    except WidgetException, scx:
4043
      result.scx = scx
4044
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 4045
    result.write(oprot)
4046
    oprot.writeMessageEnd()
4047
    oprot.trans.flush()
1596 ankur.sing 4048
 
2981 rajveer 4049
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4050
    args = updateBrowseHistory_args()
2642 varun.gupt 4051
    args.read(iprot)
4052
    iprot.readMessageEnd()
2981 rajveer 4053
    result = updateBrowseHistory_result()
4054
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4055
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4056
    result.write(oprot)
4057
    oprot.writeMessageEnd()
4058
    oprot.trans.flush()
1673 ankur.sing 4059
 
3385 varun.gupt 4060
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4061
    args = getCartsWithCouponCount_args()
4062
    args.read(iprot)
4063
    iprot.readMessageEnd()
4064
    result = getCartsWithCouponCount_result()
4065
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4066
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4067
    result.write(oprot)
4068
    oprot.writeMessageEnd()
4069
    oprot.trans.flush()
2642 varun.gupt 4070
 
3499 mandeep.dh 4071
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4072
    args = increaseTrustLevel_args()
4073
    args.read(iprot)
4074
    iprot.readMessageEnd()
4075
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4076
    return
3385 varun.gupt 4077
 
5407 amar.kumar 4078
  def process_getTrustLevel(self, seqid, iprot, oprot):
4079
    args = getTrustLevel_args()
4080
    args.read(iprot)
4081
    iprot.readMessageEnd()
4082
    result = getTrustLevel_result()
4083
    result.success = self._handler.getTrustLevel(args.userId)
4084
    oprot.writeMessageBegin("getTrustLevel", TMessageType.REPLY, seqid)
4085
    result.write(oprot)
4086
    oprot.writeMessageEnd()
4087
    oprot.trans.flush()
4088
 
4668 varun.gupt 4089
  def process_showCODOption(self, seqid, iprot, oprot):
4090
    args = showCODOption_args()
4091
    args.read(iprot)
4092
    iprot.readMessageEnd()
4093
    result = showCODOption_result()
4094
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
4095
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
4096
    result.write(oprot)
4097
    oprot.writeMessageEnd()
4098
    oprot.trans.flush()
3499 mandeep.dh 4099
 
5623 anupam.sin 4100
  def process_getUserEmails(self, seqid, iprot, oprot):
4101
    args = getUserEmails_args()
4102
    args.read(iprot)
4103
    iprot.readMessageEnd()
4104
    result = getUserEmails_result()
4105
    result.success = self._handler.getUserEmails(args.startDate, args.endDate)
4106
    oprot.writeMessageBegin("getUserEmails", TMessageType.REPLY, seqid)
4107
    result.write(oprot)
4108
    oprot.writeMessageEnd()
4109
    oprot.trans.flush()
4668 varun.gupt 4110
 
6903 anupam.sin 4111
  def process_insureItem(self, seqid, iprot, oprot):
4112
    args = insureItem_args()
4113
    args.read(iprot)
4114
    iprot.readMessageEnd()
4115
    result = insureItem_result()
9299 kshitij.so 4116
    result.success = self._handler.insureItem(args.itemId, args.cartId, args.toInsure, args.insurerType)
6903 anupam.sin 4117
    oprot.writeMessageBegin("insureItem", TMessageType.REPLY, seqid)
4118
    result.write(oprot)
4119
    oprot.writeMessageEnd()
4120
    oprot.trans.flush()
4121
 
4122
  def process_cancelInsurance(self, seqid, iprot, oprot):
4123
    args = cancelInsurance_args()
4124
    args.read(iprot)
4125
    iprot.readMessageEnd()
4126
    result = cancelInsurance_result()
4127
    result.success = self._handler.cancelInsurance(args.cartId)
4128
    oprot.writeMessageBegin("cancelInsurance", TMessageType.REPLY, seqid)
4129
    result.write(oprot)
4130
    oprot.writeMessageEnd()
4131
    oprot.trans.flush()
4132
 
4133
  def process_storeInsuranceSpecificDetails(self, seqid, iprot, oprot):
4134
    args = storeInsuranceSpecificDetails_args()
4135
    args.read(iprot)
4136
    iprot.readMessageEnd()
4137
    result = storeInsuranceSpecificDetails_result()
4138
    result.success = self._handler.storeInsuranceSpecificDetails(args.addressId, args.dob, args.guardianName)
4139
    oprot.writeMessageBegin("storeInsuranceSpecificDetails", TMessageType.REPLY, seqid)
4140
    result.write(oprot)
4141
    oprot.writeMessageEnd()
4142
    oprot.trans.flush()
4143
 
4144
  def process_isInsuranceDetailPresent(self, seqid, iprot, oprot):
4145
    args = isInsuranceDetailPresent_args()
4146
    args.read(iprot)
4147
    iprot.readMessageEnd()
4148
    result = isInsuranceDetailPresent_result()
4149
    result.success = self._handler.isInsuranceDetailPresent(args.addressId)
4150
    oprot.writeMessageBegin("isInsuranceDetailPresent", TMessageType.REPLY, seqid)
4151
    result.write(oprot)
4152
    oprot.writeMessageEnd()
4153
    oprot.trans.flush()
4154
 
9791 rajveer 4155
  def process_getProductsAddedToCart(self, seqid, iprot, oprot):
4156
    args = getProductsAddedToCart_args()
6821 amar.kumar 4157
    args.read(iprot)
4158
    iprot.readMessageEnd()
9791 rajveer 4159
    result = getProductsAddedToCart_result()
4160
    result.success = self._handler.getProductsAddedToCart(args.startDate, args.endDate)
4161
    oprot.writeMessageBegin("getProductsAddedToCart", TMessageType.REPLY, seqid)
6821 amar.kumar 4162
    result.write(oprot)
4163
    oprot.writeMessageEnd()
4164
    oprot.trans.flush()
5623 anupam.sin 4165
 
11592 amit.gupta 4166
  def process_validateCartPlus(self, seqid, iprot, oprot):
4167
    args = validateCartPlus_args()
4168
    args.read(iprot)
4169
    iprot.readMessageEnd()
4170
    result = validateCartPlus_result()
4171
    try:
4172
      result.success = self._handler.validateCartPlus(args.cartId, args.sourceId)
4173
    except ShoppingCartException, scex:
4174
      result.scex = scex
4175
    oprot.writeMessageBegin("validateCartPlus", TMessageType.REPLY, seqid)
4176
    result.write(oprot)
4177
    oprot.writeMessageEnd()
4178
    oprot.trans.flush()
6821 amar.kumar 4179
 
11592 amit.gupta 4180
 
94 ashish 4181
# HELPER FUNCTIONS AND STRUCTURES
4182
 
559 chandransh 4183
class createAnonymousUser_args:
94 ashish 4184
  """
4185
  Attributes:
559 chandransh 4186
   - jsessionId
94 ashish 4187
  """
4188
 
4189
  thrift_spec = (
4190
    None, # 0
559 chandransh 4191
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4192
  )
4193
 
559 chandransh 4194
  def __init__(self, jsessionId=None,):
4195
    self.jsessionId = jsessionId
94 ashish 4196
 
4197
  def read(self, iprot):
4198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4200
      return
4201
    iprot.readStructBegin()
4202
    while True:
4203
      (fname, ftype, fid) = iprot.readFieldBegin()
4204
      if ftype == TType.STOP:
4205
        break
4206
      if fid == 1:
559 chandransh 4207
        if ftype == TType.STRING:
4208
          self.jsessionId = iprot.readString();
94 ashish 4209
        else:
4210
          iprot.skip(ftype)
4211
      else:
4212
        iprot.skip(ftype)
4213
      iprot.readFieldEnd()
4214
    iprot.readStructEnd()
4215
 
4216
  def write(self, oprot):
4217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4219
      return
559 chandransh 4220
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4221
    if self.jsessionId is not None:
559 chandransh 4222
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4223
      oprot.writeString(self.jsessionId)
94 ashish 4224
      oprot.writeFieldEnd()
4225
    oprot.writeFieldStop()
4226
    oprot.writeStructEnd()
4227
 
3431 rajveer 4228
  def validate(self):
4229
    return
4230
 
4231
 
94 ashish 4232
  def __repr__(self):
4233
    L = ['%s=%r' % (key, value)
4234
      for key, value in self.__dict__.iteritems()]
4235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4236
 
4237
  def __eq__(self, other):
4238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4239
 
4240
  def __ne__(self, other):
4241
    return not (self == other)
4242
 
559 chandransh 4243
class createAnonymousUser_result:
94 ashish 4244
  """
4245
  Attributes:
4246
   - success
559 chandransh 4247
   - ucex
94 ashish 4248
  """
4249
 
4250
  thrift_spec = (
559 chandransh 4251
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4252
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4253
  )
4254
 
559 chandransh 4255
  def __init__(self, success=None, ucex=None,):
94 ashish 4256
    self.success = success
559 chandransh 4257
    self.ucex = ucex
94 ashish 4258
 
4259
  def read(self, iprot):
4260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4262
      return
4263
    iprot.readStructBegin()
4264
    while True:
4265
      (fname, ftype, fid) = iprot.readFieldBegin()
4266
      if ftype == TType.STOP:
4267
        break
4268
      if fid == 0:
4269
        if ftype == TType.STRUCT:
559 chandransh 4270
          self.success = User()
94 ashish 4271
          self.success.read(iprot)
4272
        else:
4273
          iprot.skip(ftype)
4274
      elif fid == 1:
4275
        if ftype == TType.STRUCT:
559 chandransh 4276
          self.ucex = UserContextException()
4277
          self.ucex.read(iprot)
94 ashish 4278
        else:
4279
          iprot.skip(ftype)
4280
      else:
4281
        iprot.skip(ftype)
4282
      iprot.readFieldEnd()
4283
    iprot.readStructEnd()
4284
 
4285
  def write(self, oprot):
4286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4288
      return
559 chandransh 4289
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4290
    if self.success is not None:
94 ashish 4291
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4292
      self.success.write(oprot)
4293
      oprot.writeFieldEnd()
3431 rajveer 4294
    if self.ucex is not None:
559 chandransh 4295
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4296
      self.ucex.write(oprot)
94 ashish 4297
      oprot.writeFieldEnd()
4298
    oprot.writeFieldStop()
4299
    oprot.writeStructEnd()
4300
 
3431 rajveer 4301
  def validate(self):
4302
    return
4303
 
4304
 
94 ashish 4305
  def __repr__(self):
4306
    L = ['%s=%r' % (key, value)
4307
      for key, value in self.__dict__.iteritems()]
4308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4309
 
4310
  def __eq__(self, other):
4311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4312
 
4313
  def __ne__(self, other):
4314
    return not (self == other)
4315
 
559 chandransh 4316
class getUserById_args:
94 ashish 4317
  """
4318
  Attributes:
4319
   - userId
4320
  """
4321
 
4322
  thrift_spec = (
4323
    None, # 0
4324
    (1, TType.I64, 'userId', None, None, ), # 1
4325
  )
4326
 
559 chandransh 4327
  def __init__(self, userId=None,):
94 ashish 4328
    self.userId = userId
4329
 
4330
  def read(self, iprot):
4331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4333
      return
4334
    iprot.readStructBegin()
4335
    while True:
4336
      (fname, ftype, fid) = iprot.readFieldBegin()
4337
      if ftype == TType.STOP:
4338
        break
4339
      if fid == 1:
4340
        if ftype == TType.I64:
4341
          self.userId = iprot.readI64();
4342
        else:
4343
          iprot.skip(ftype)
4344
      else:
4345
        iprot.skip(ftype)
4346
      iprot.readFieldEnd()
4347
    iprot.readStructEnd()
4348
 
4349
  def write(self, oprot):
4350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4352
      return
559 chandransh 4353
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4354
    if self.userId is not None:
94 ashish 4355
      oprot.writeFieldBegin('userId', TType.I64, 1)
4356
      oprot.writeI64(self.userId)
4357
      oprot.writeFieldEnd()
4358
    oprot.writeFieldStop()
4359
    oprot.writeStructEnd()
4360
 
3431 rajveer 4361
  def validate(self):
4362
    return
4363
 
4364
 
94 ashish 4365
  def __repr__(self):
4366
    L = ['%s=%r' % (key, value)
4367
      for key, value in self.__dict__.iteritems()]
4368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4369
 
4370
  def __eq__(self, other):
4371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4372
 
4373
  def __ne__(self, other):
4374
    return not (self == other)
4375
 
559 chandransh 4376
class getUserById_result:
94 ashish 4377
  """
4378
  Attributes:
4379
   - success
559 chandransh 4380
   - ucex
94 ashish 4381
  """
4382
 
4383
  thrift_spec = (
559 chandransh 4384
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4385
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4386
  )
4387
 
559 chandransh 4388
  def __init__(self, success=None, ucex=None,):
94 ashish 4389
    self.success = success
559 chandransh 4390
    self.ucex = ucex
94 ashish 4391
 
4392
  def read(self, iprot):
4393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4395
      return
4396
    iprot.readStructBegin()
4397
    while True:
4398
      (fname, ftype, fid) = iprot.readFieldBegin()
4399
      if ftype == TType.STOP:
4400
        break
4401
      if fid == 0:
4402
        if ftype == TType.STRUCT:
559 chandransh 4403
          self.success = User()
94 ashish 4404
          self.success.read(iprot)
4405
        else:
4406
          iprot.skip(ftype)
4407
      elif fid == 1:
4408
        if ftype == TType.STRUCT:
559 chandransh 4409
          self.ucex = UserContextException()
4410
          self.ucex.read(iprot)
94 ashish 4411
        else:
4412
          iprot.skip(ftype)
4413
      else:
4414
        iprot.skip(ftype)
4415
      iprot.readFieldEnd()
4416
    iprot.readStructEnd()
4417
 
4418
  def write(self, oprot):
4419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4421
      return
559 chandransh 4422
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4423
    if self.success is not None:
94 ashish 4424
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4425
      self.success.write(oprot)
4426
      oprot.writeFieldEnd()
3431 rajveer 4427
    if self.ucex is not None:
559 chandransh 4428
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4429
      self.ucex.write(oprot)
94 ashish 4430
      oprot.writeFieldEnd()
4431
    oprot.writeFieldStop()
4432
    oprot.writeStructEnd()
4433
 
3431 rajveer 4434
  def validate(self):
4435
    return
4436
 
4437
 
94 ashish 4438
  def __repr__(self):
4439
    L = ['%s=%r' % (key, value)
4440
      for key, value in self.__dict__.iteritems()]
4441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4442
 
4443
  def __eq__(self, other):
4444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4445
 
4446
  def __ne__(self, other):
4447
    return not (self == other)
4448
 
5326 rajveer 4449
class getUserByCartId_args:
1491 vikas 4450
  """
4451
  Attributes:
5326 rajveer 4452
   - cartId
1491 vikas 4453
  """
4454
 
4455
  thrift_spec = (
4456
    None, # 0
5326 rajveer 4457
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4458
  )
4459
 
5326 rajveer 4460
  def __init__(self, cartId=None,):
4461
    self.cartId = cartId
1491 vikas 4462
 
4463
  def read(self, iprot):
4464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4466
      return
4467
    iprot.readStructBegin()
4468
    while True:
4469
      (fname, ftype, fid) = iprot.readFieldBegin()
4470
      if ftype == TType.STOP:
4471
        break
4472
      if fid == 1:
5326 rajveer 4473
        if ftype == TType.I64:
4474
          self.cartId = iprot.readI64();
1491 vikas 4475
        else:
4476
          iprot.skip(ftype)
4477
      else:
4478
        iprot.skip(ftype)
4479
      iprot.readFieldEnd()
4480
    iprot.readStructEnd()
4481
 
4482
  def write(self, oprot):
4483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4485
      return
5326 rajveer 4486
    oprot.writeStructBegin('getUserByCartId_args')
4487
    if self.cartId is not None:
4488
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4489
      oprot.writeI64(self.cartId)
1491 vikas 4490
      oprot.writeFieldEnd()
4491
    oprot.writeFieldStop()
4492
    oprot.writeStructEnd()
4493
 
3431 rajveer 4494
  def validate(self):
4495
    return
4496
 
4497
 
1491 vikas 4498
  def __repr__(self):
4499
    L = ['%s=%r' % (key, value)
4500
      for key, value in self.__dict__.iteritems()]
4501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4502
 
4503
  def __eq__(self, other):
4504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4505
 
4506
  def __ne__(self, other):
4507
    return not (self == other)
4508
 
5326 rajveer 4509
class getUserByCartId_result:
1491 vikas 4510
  """
4511
  Attributes:
4512
   - success
4513
   - ucex
4514
  """
4515
 
4516
  thrift_spec = (
4517
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4518
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4519
  )
4520
 
4521
  def __init__(self, success=None, ucex=None,):
4522
    self.success = success
4523
    self.ucex = ucex
4524
 
4525
  def read(self, iprot):
4526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4528
      return
4529
    iprot.readStructBegin()
4530
    while True:
4531
      (fname, ftype, fid) = iprot.readFieldBegin()
4532
      if ftype == TType.STOP:
4533
        break
4534
      if fid == 0:
4535
        if ftype == TType.STRUCT:
4536
          self.success = User()
4537
          self.success.read(iprot)
4538
        else:
4539
          iprot.skip(ftype)
4540
      elif fid == 1:
4541
        if ftype == TType.STRUCT:
4542
          self.ucex = UserContextException()
4543
          self.ucex.read(iprot)
4544
        else:
4545
          iprot.skip(ftype)
4546
      else:
4547
        iprot.skip(ftype)
4548
      iprot.readFieldEnd()
4549
    iprot.readStructEnd()
4550
 
4551
  def write(self, oprot):
4552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4554
      return
5326 rajveer 4555
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4556
    if self.success is not None:
1491 vikas 4557
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4558
      self.success.write(oprot)
4559
      oprot.writeFieldEnd()
3431 rajveer 4560
    if self.ucex is not None:
1491 vikas 4561
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4562
      self.ucex.write(oprot)
4563
      oprot.writeFieldEnd()
4564
    oprot.writeFieldStop()
4565
    oprot.writeStructEnd()
4566
 
3431 rajveer 4567
  def validate(self):
4568
    return
4569
 
4570
 
1491 vikas 4571
  def __repr__(self):
4572
    L = ['%s=%r' % (key, value)
4573
      for key, value in self.__dict__.iteritems()]
4574
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4575
 
4576
  def __eq__(self, other):
4577
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4578
 
4579
  def __ne__(self, other):
4580
    return not (self == other)
4581
 
5326 rajveer 4582
class getUserByEmail_args:
3032 mandeep.dh 4583
  """
4584
  Attributes:
5326 rajveer 4585
   - email
3032 mandeep.dh 4586
  """
4587
 
4588
  thrift_spec = (
4589
    None, # 0
5326 rajveer 4590
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4591
  )
4592
 
5326 rajveer 4593
  def __init__(self, email=None,):
4594
    self.email = email
3032 mandeep.dh 4595
 
4596
  def read(self, iprot):
4597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4599
      return
4600
    iprot.readStructBegin()
4601
    while True:
4602
      (fname, ftype, fid) = iprot.readFieldBegin()
4603
      if ftype == TType.STOP:
4604
        break
4605
      if fid == 1:
5326 rajveer 4606
        if ftype == TType.STRING:
4607
          self.email = iprot.readString();
3032 mandeep.dh 4608
        else:
4609
          iprot.skip(ftype)
4610
      else:
4611
        iprot.skip(ftype)
4612
      iprot.readFieldEnd()
4613
    iprot.readStructEnd()
4614
 
4615
  def write(self, oprot):
4616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4618
      return
5326 rajveer 4619
    oprot.writeStructBegin('getUserByEmail_args')
4620
    if self.email is not None:
4621
      oprot.writeFieldBegin('email', TType.STRING, 1)
4622
      oprot.writeString(self.email)
3032 mandeep.dh 4623
      oprot.writeFieldEnd()
4624
    oprot.writeFieldStop()
4625
    oprot.writeStructEnd()
4626
 
3431 rajveer 4627
  def validate(self):
4628
    return
4629
 
4630
 
3032 mandeep.dh 4631
  def __repr__(self):
4632
    L = ['%s=%r' % (key, value)
4633
      for key, value in self.__dict__.iteritems()]
4634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4635
 
4636
  def __eq__(self, other):
4637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4638
 
4639
  def __ne__(self, other):
4640
    return not (self == other)
4641
 
5326 rajveer 4642
class getUserByEmail_result:
3032 mandeep.dh 4643
  """
4644
  Attributes:
4645
   - success
4646
   - ucex
4647
  """
4648
 
4649
  thrift_spec = (
4650
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4651
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4652
  )
4653
 
4654
  def __init__(self, success=None, ucex=None,):
4655
    self.success = success
4656
    self.ucex = ucex
4657
 
4658
  def read(self, iprot):
4659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4661
      return
4662
    iprot.readStructBegin()
4663
    while True:
4664
      (fname, ftype, fid) = iprot.readFieldBegin()
4665
      if ftype == TType.STOP:
4666
        break
4667
      if fid == 0:
4668
        if ftype == TType.STRUCT:
4669
          self.success = User()
4670
          self.success.read(iprot)
4671
        else:
4672
          iprot.skip(ftype)
4673
      elif fid == 1:
4674
        if ftype == TType.STRUCT:
4675
          self.ucex = UserContextException()
4676
          self.ucex.read(iprot)
4677
        else:
4678
          iprot.skip(ftype)
4679
      else:
4680
        iprot.skip(ftype)
4681
      iprot.readFieldEnd()
4682
    iprot.readStructEnd()
4683
 
4684
  def write(self, oprot):
4685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4687
      return
5326 rajveer 4688
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4689
    if self.success is not None:
3032 mandeep.dh 4690
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4691
      self.success.write(oprot)
4692
      oprot.writeFieldEnd()
3431 rajveer 4693
    if self.ucex is not None:
3032 mandeep.dh 4694
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4695
      self.ucex.write(oprot)
4696
      oprot.writeFieldEnd()
4697
    oprot.writeFieldStop()
4698
    oprot.writeStructEnd()
4699
 
3431 rajveer 4700
  def validate(self):
4701
    return
4702
 
4703
 
3032 mandeep.dh 4704
  def __repr__(self):
4705
    L = ['%s=%r' % (key, value)
4706
      for key, value in self.__dict__.iteritems()]
4707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4708
 
4709
  def __eq__(self, other):
4710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4711
 
4712
  def __ne__(self, other):
4713
    return not (self == other)
4714
 
5326 rajveer 4715
class getUserByMobileNumber_args:
94 ashish 4716
  """
4717
  Attributes:
5326 rajveer 4718
   - mobileNumber
94 ashish 4719
  """
4720
 
4721
  thrift_spec = (
4722
    None, # 0
5326 rajveer 4723
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4724
  )
4725
 
5326 rajveer 4726
  def __init__(self, mobileNumber=None,):
4727
    self.mobileNumber = mobileNumber
94 ashish 4728
 
4729
  def read(self, iprot):
4730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4732
      return
4733
    iprot.readStructBegin()
4734
    while True:
4735
      (fname, ftype, fid) = iprot.readFieldBegin()
4736
      if ftype == TType.STOP:
4737
        break
4738
      if fid == 1:
5326 rajveer 4739
        if ftype == TType.I64:
4740
          self.mobileNumber = iprot.readI64();
94 ashish 4741
        else:
4742
          iprot.skip(ftype)
4743
      else:
4744
        iprot.skip(ftype)
4745
      iprot.readFieldEnd()
4746
    iprot.readStructEnd()
4747
 
4748
  def write(self, oprot):
4749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4751
      return
5326 rajveer 4752
    oprot.writeStructBegin('getUserByMobileNumber_args')
4753
    if self.mobileNumber is not None:
4754
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4755
      oprot.writeI64(self.mobileNumber)
94 ashish 4756
      oprot.writeFieldEnd()
4757
    oprot.writeFieldStop()
4758
    oprot.writeStructEnd()
4759
 
3431 rajveer 4760
  def validate(self):
4761
    return
4762
 
4763
 
94 ashish 4764
  def __repr__(self):
4765
    L = ['%s=%r' % (key, value)
4766
      for key, value in self.__dict__.iteritems()]
4767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4768
 
4769
  def __eq__(self, other):
4770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4771
 
4772
  def __ne__(self, other):
4773
    return not (self == other)
4774
 
5326 rajveer 4775
class getUserByMobileNumber_result:
94 ashish 4776
  """
4777
  Attributes:
4778
   - success
559 chandransh 4779
   - ucex
94 ashish 4780
  """
4781
 
4782
  thrift_spec = (
559 chandransh 4783
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4784
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4785
  )
4786
 
559 chandransh 4787
  def __init__(self, success=None, ucex=None,):
94 ashish 4788
    self.success = success
559 chandransh 4789
    self.ucex = ucex
94 ashish 4790
 
4791
  def read(self, iprot):
4792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4794
      return
4795
    iprot.readStructBegin()
4796
    while True:
4797
      (fname, ftype, fid) = iprot.readFieldBegin()
4798
      if ftype == TType.STOP:
4799
        break
4800
      if fid == 0:
4801
        if ftype == TType.STRUCT:
559 chandransh 4802
          self.success = User()
94 ashish 4803
          self.success.read(iprot)
4804
        else:
4805
          iprot.skip(ftype)
4806
      elif fid == 1:
4807
        if ftype == TType.STRUCT:
559 chandransh 4808
          self.ucex = UserContextException()
4809
          self.ucex.read(iprot)
94 ashish 4810
        else:
4811
          iprot.skip(ftype)
4812
      else:
4813
        iprot.skip(ftype)
4814
      iprot.readFieldEnd()
4815
    iprot.readStructEnd()
4816
 
4817
  def write(self, oprot):
4818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4820
      return
5326 rajveer 4821
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4822
    if self.success is not None:
94 ashish 4823
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4824
      self.success.write(oprot)
4825
      oprot.writeFieldEnd()
3431 rajveer 4826
    if self.ucex is not None:
559 chandransh 4827
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4828
      self.ucex.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_args:
94 ashish 4849
  """
4850
  Attributes:
559 chandransh 4851
   - user
94 ashish 4852
  """
4853
 
4854
  thrift_spec = (
4855
    None, # 0
559 chandransh 4856
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4857
  )
4858
 
559 chandransh 4859
  def __init__(self, user=None,):
4860
    self.user = user
94 ashish 4861
 
4862
  def read(self, iprot):
4863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4865
      return
4866
    iprot.readStructBegin()
4867
    while True:
4868
      (fname, ftype, fid) = iprot.readFieldBegin()
4869
      if ftype == TType.STOP:
4870
        break
4871
      if fid == 1:
559 chandransh 4872
        if ftype == TType.STRUCT:
4873
          self.user = User()
4874
          self.user.read(iprot)
94 ashish 4875
        else:
4876
          iprot.skip(ftype)
4877
      else:
4878
        iprot.skip(ftype)
4879
      iprot.readFieldEnd()
4880
    iprot.readStructEnd()
4881
 
4882
  def write(self, oprot):
4883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4885
      return
5326 rajveer 4886
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4887
    if self.user is not None:
559 chandransh 4888
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4889
      self.user.write(oprot)
94 ashish 4890
      oprot.writeFieldEnd()
4891
    oprot.writeFieldStop()
4892
    oprot.writeStructEnd()
4893
 
3431 rajveer 4894
  def validate(self):
4895
    return
4896
 
4897
 
94 ashish 4898
  def __repr__(self):
4899
    L = ['%s=%r' % (key, value)
4900
      for key, value in self.__dict__.iteritems()]
4901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4902
 
4903
  def __eq__(self, other):
4904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4905
 
4906
  def __ne__(self, other):
4907
    return not (self == other)
4908
 
5326 rajveer 4909
class createUser_result:
94 ashish 4910
  """
4911
  Attributes:
4912
   - success
559 chandransh 4913
   - ucex
94 ashish 4914
  """
4915
 
4916
  thrift_spec = (
559 chandransh 4917
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4918
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4919
  )
4920
 
559 chandransh 4921
  def __init__(self, success=None, ucex=None,):
94 ashish 4922
    self.success = success
559 chandransh 4923
    self.ucex = ucex
94 ashish 4924
 
4925
  def read(self, iprot):
4926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4928
      return
4929
    iprot.readStructBegin()
4930
    while True:
4931
      (fname, ftype, fid) = iprot.readFieldBegin()
4932
      if ftype == TType.STOP:
4933
        break
4934
      if fid == 0:
4935
        if ftype == TType.STRUCT:
559 chandransh 4936
          self.success = User()
94 ashish 4937
          self.success.read(iprot)
4938
        else:
4939
          iprot.skip(ftype)
4940
      elif fid == 1:
4941
        if ftype == TType.STRUCT:
559 chandransh 4942
          self.ucex = UserContextException()
4943
          self.ucex.read(iprot)
94 ashish 4944
        else:
4945
          iprot.skip(ftype)
4946
      else:
4947
        iprot.skip(ftype)
4948
      iprot.readFieldEnd()
4949
    iprot.readStructEnd()
4950
 
4951
  def write(self, oprot):
4952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4954
      return
5326 rajveer 4955
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4956
    if self.success is not None:
94 ashish 4957
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4958
      self.success.write(oprot)
4959
      oprot.writeFieldEnd()
3431 rajveer 4960
    if self.ucex is not None:
559 chandransh 4961
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4962
      self.ucex.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_args:
94 ashish 4983
  """
4984
  Attributes:
5326 rajveer 4985
   - user
94 ashish 4986
  """
4987
 
4988
  thrift_spec = (
4989
    None, # 0
5326 rajveer 4990
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4991
  )
4992
 
5326 rajveer 4993
  def __init__(self, user=None,):
4994
    self.user = user
94 ashish 4995
 
4996
  def read(self, iprot):
4997
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4998
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4999
      return
5000
    iprot.readStructBegin()
5001
    while True:
5002
      (fname, ftype, fid) = iprot.readFieldBegin()
5003
      if ftype == TType.STOP:
5004
        break
5005
      if fid == 1:
5326 rajveer 5006
        if ftype == TType.STRUCT:
5007
          self.user = User()
5008
          self.user.read(iprot)
94 ashish 5009
        else:
5010
          iprot.skip(ftype)
5011
      else:
5012
        iprot.skip(ftype)
5013
      iprot.readFieldEnd()
5014
    iprot.readStructEnd()
5015
 
5016
  def write(self, oprot):
5017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5019
      return
5326 rajveer 5020
    oprot.writeStructBegin('updateUser_args')
5021
    if self.user is not None:
5022
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
5023
      self.user.write(oprot)
94 ashish 5024
      oprot.writeFieldEnd()
5025
    oprot.writeFieldStop()
5026
    oprot.writeStructEnd()
5027
 
3431 rajveer 5028
  def validate(self):
5029
    return
5030
 
5031
 
94 ashish 5032
  def __repr__(self):
5033
    L = ['%s=%r' % (key, value)
5034
      for key, value in self.__dict__.iteritems()]
5035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5036
 
5037
  def __eq__(self, other):
5038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5039
 
5040
  def __ne__(self, other):
5041
    return not (self == other)
5042
 
5326 rajveer 5043
class updateUser_result:
94 ashish 5044
  """
5045
  Attributes:
5046
   - success
559 chandransh 5047
   - ucex
94 ashish 5048
  """
5049
 
5050
  thrift_spec = (
5326 rajveer 5051
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 5052
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 5053
  )
5054
 
559 chandransh 5055
  def __init__(self, success=None, ucex=None,):
94 ashish 5056
    self.success = success
559 chandransh 5057
    self.ucex = ucex
94 ashish 5058
 
5059
  def read(self, iprot):
5060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5062
      return
5063
    iprot.readStructBegin()
5064
    while True:
5065
      (fname, ftype, fid) = iprot.readFieldBegin()
5066
      if ftype == TType.STOP:
5067
        break
5068
      if fid == 0:
5326 rajveer 5069
        if ftype == TType.STRUCT:
5070
          self.success = User()
5071
          self.success.read(iprot)
94 ashish 5072
        else:
5073
          iprot.skip(ftype)
5074
      elif fid == 1:
5075
        if ftype == TType.STRUCT:
559 chandransh 5076
          self.ucex = UserContextException()
5077
          self.ucex.read(iprot)
94 ashish 5078
        else:
5079
          iprot.skip(ftype)
5080
      else:
5081
        iprot.skip(ftype)
5082
      iprot.readFieldEnd()
5083
    iprot.readStructEnd()
5084
 
5085
  def write(self, oprot):
5086
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5087
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5088
      return
5326 rajveer 5089
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 5090
    if self.success is not None:
5326 rajveer 5091
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5092
      self.success.write(oprot)
94 ashish 5093
      oprot.writeFieldEnd()
3431 rajveer 5094
    if self.ucex is not None:
559 chandransh 5095
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5096
      self.ucex.write(oprot)
94 ashish 5097
      oprot.writeFieldEnd()
5098
    oprot.writeFieldStop()
5099
    oprot.writeStructEnd()
5100
 
3431 rajveer 5101
  def validate(self):
5102
    return
5103
 
5104
 
94 ashish 5105
  def __repr__(self):
5106
    L = ['%s=%r' % (key, value)
5107
      for key, value in self.__dict__.iteritems()]
5108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5109
 
5110
  def __eq__(self, other):
5111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5112
 
5113
  def __ne__(self, other):
5114
    return not (self == other)
5115
 
559 chandransh 5116
class authenticateUser_args:
94 ashish 5117
  """
5118
  Attributes:
5119
   - email
5120
   - password
5121
  """
5122
 
5123
  thrift_spec = (
5124
    None, # 0
5125
    (1, TType.STRING, 'email', None, None, ), # 1
5126
    (2, TType.STRING, 'password', None, None, ), # 2
5127
  )
5128
 
5129
  def __init__(self, email=None, password=None,):
5130
    self.email = email
5131
    self.password = password
5132
 
5133
  def read(self, iprot):
5134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5136
      return
5137
    iprot.readStructBegin()
5138
    while True:
5139
      (fname, ftype, fid) = iprot.readFieldBegin()
5140
      if ftype == TType.STOP:
5141
        break
5142
      if fid == 1:
5143
        if ftype == TType.STRING:
5144
          self.email = iprot.readString();
5145
        else:
5146
          iprot.skip(ftype)
5147
      elif fid == 2:
5148
        if ftype == TType.STRING:
5149
          self.password = iprot.readString();
5150
        else:
5151
          iprot.skip(ftype)
5152
      else:
5153
        iprot.skip(ftype)
5154
      iprot.readFieldEnd()
5155
    iprot.readStructEnd()
5156
 
5157
  def write(self, oprot):
5158
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5159
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5160
      return
559 chandransh 5161
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5162
    if self.email is not None:
94 ashish 5163
      oprot.writeFieldBegin('email', TType.STRING, 1)
5164
      oprot.writeString(self.email)
5165
      oprot.writeFieldEnd()
3431 rajveer 5166
    if self.password is not None:
94 ashish 5167
      oprot.writeFieldBegin('password', TType.STRING, 2)
5168
      oprot.writeString(self.password)
5169
      oprot.writeFieldEnd()
5170
    oprot.writeFieldStop()
5171
    oprot.writeStructEnd()
5172
 
3431 rajveer 5173
  def validate(self):
5174
    return
5175
 
5176
 
94 ashish 5177
  def __repr__(self):
5178
    L = ['%s=%r' % (key, value)
5179
      for key, value in self.__dict__.iteritems()]
5180
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5181
 
5182
  def __eq__(self, other):
5183
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5184
 
5185
  def __ne__(self, other):
5186
    return not (self == other)
5187
 
559 chandransh 5188
class authenticateUser_result:
94 ashish 5189
  """
5190
  Attributes:
5191
   - success
559 chandransh 5192
   - auex
94 ashish 5193
  """
5194
 
5195
  thrift_spec = (
559 chandransh 5196
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5197
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5198
  )
5199
 
559 chandransh 5200
  def __init__(self, success=None, auex=None,):
94 ashish 5201
    self.success = success
559 chandransh 5202
    self.auex = auex
94 ashish 5203
 
5204
  def read(self, iprot):
5205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5207
      return
5208
    iprot.readStructBegin()
5209
    while True:
5210
      (fname, ftype, fid) = iprot.readFieldBegin()
5211
      if ftype == TType.STOP:
5212
        break
5213
      if fid == 0:
5214
        if ftype == TType.STRUCT:
559 chandransh 5215
          self.success = User()
94 ashish 5216
          self.success.read(iprot)
5217
        else:
5218
          iprot.skip(ftype)
5219
      elif fid == 1:
5220
        if ftype == TType.STRUCT:
559 chandransh 5221
          self.auex = AuthenticationException()
5222
          self.auex.read(iprot)
94 ashish 5223
        else:
5224
          iprot.skip(ftype)
5225
      else:
5226
        iprot.skip(ftype)
5227
      iprot.readFieldEnd()
5228
    iprot.readStructEnd()
5229
 
5230
  def write(self, oprot):
5231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5233
      return
559 chandransh 5234
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5235
    if self.success is not None:
94 ashish 5236
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5237
      self.success.write(oprot)
5238
      oprot.writeFieldEnd()
3431 rajveer 5239
    if self.auex is not None:
559 chandransh 5240
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5241
      self.auex.write(oprot)
94 ashish 5242
      oprot.writeFieldEnd()
5243
    oprot.writeFieldStop()
5244
    oprot.writeStructEnd()
5245
 
3431 rajveer 5246
  def validate(self):
5247
    return
5248
 
5249
 
94 ashish 5250
  def __repr__(self):
5251
    L = ['%s=%r' % (key, value)
5252
      for key, value in self.__dict__.iteritems()]
5253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5254
 
5255
  def __eq__(self, other):
5256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5257
 
5258
  def __ne__(self, other):
5259
    return not (self == other)
5260
 
559 chandransh 5261
class userExists_args:
122 ashish 5262
  """
5263
  Attributes:
559 chandransh 5264
   - email
122 ashish 5265
  """
5266
 
5267
  thrift_spec = (
5268
    None, # 0
559 chandransh 5269
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5270
  )
5271
 
559 chandransh 5272
  def __init__(self, email=None,):
5273
    self.email = email
122 ashish 5274
 
5275
  def read(self, iprot):
5276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5278
      return
5279
    iprot.readStructBegin()
5280
    while True:
5281
      (fname, ftype, fid) = iprot.readFieldBegin()
5282
      if ftype == TType.STOP:
5283
        break
5284
      if fid == 1:
5285
        if ftype == TType.STRING:
559 chandransh 5286
          self.email = iprot.readString();
122 ashish 5287
        else:
5288
          iprot.skip(ftype)
559 chandransh 5289
      else:
5290
        iprot.skip(ftype)
5291
      iprot.readFieldEnd()
5292
    iprot.readStructEnd()
5293
 
5294
  def write(self, oprot):
5295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5297
      return
5298
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5299
    if self.email is not None:
559 chandransh 5300
      oprot.writeFieldBegin('email', TType.STRING, 1)
5301
      oprot.writeString(self.email)
5302
      oprot.writeFieldEnd()
5303
    oprot.writeFieldStop()
5304
    oprot.writeStructEnd()
5305
 
3431 rajveer 5306
  def validate(self):
5307
    return
5308
 
5309
 
559 chandransh 5310
  def __repr__(self):
5311
    L = ['%s=%r' % (key, value)
5312
      for key, value in self.__dict__.iteritems()]
5313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5314
 
5315
  def __eq__(self, other):
5316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5317
 
5318
  def __ne__(self, other):
5319
    return not (self == other)
5320
 
5321
class userExists_result:
5322
  """
5323
  Attributes:
5324
   - success
5325
   - ucx
5326
  """
5327
 
5328
  thrift_spec = (
5329
    (0, TType.BOOL, 'success', None, None, ), # 0
5330
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5331
  )
5332
 
5333
  def __init__(self, success=None, ucx=None,):
5334
    self.success = success
5335
    self.ucx = ucx
5336
 
5337
  def read(self, iprot):
5338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5340
      return
5341
    iprot.readStructBegin()
5342
    while True:
5343
      (fname, ftype, fid) = iprot.readFieldBegin()
5344
      if ftype == TType.STOP:
5345
        break
5346
      if fid == 0:
5347
        if ftype == TType.BOOL:
5348
          self.success = iprot.readBool();
5349
        else:
5350
          iprot.skip(ftype)
5351
      elif fid == 1:
5352
        if ftype == TType.STRUCT:
5353
          self.ucx = UserContextException()
5354
          self.ucx.read(iprot)
5355
        else:
5356
          iprot.skip(ftype)
5357
      else:
5358
        iprot.skip(ftype)
5359
      iprot.readFieldEnd()
5360
    iprot.readStructEnd()
5361
 
5362
  def write(self, oprot):
5363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5365
      return
5366
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5367
    if self.success is not None:
559 chandransh 5368
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5369
      oprot.writeBool(self.success)
5370
      oprot.writeFieldEnd()
3431 rajveer 5371
    if self.ucx is not None:
559 chandransh 5372
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5373
      self.ucx.write(oprot)
5374
      oprot.writeFieldEnd()
5375
    oprot.writeFieldStop()
5376
    oprot.writeStructEnd()
5377
 
3431 rajveer 5378
  def validate(self):
5379
    return
5380
 
5381
 
559 chandransh 5382
  def __repr__(self):
5383
    L = ['%s=%r' % (key, value)
5384
      for key, value in self.__dict__.iteritems()]
5385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5386
 
5387
  def __eq__(self, other):
5388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5389
 
5390
  def __ne__(self, other):
5391
    return not (self == other)
5392
 
5393
class addAddressForUser_args:
5394
  """
5395
  Attributes:
5396
   - userId
5397
   - address
5398
   - setDefault
5399
  """
5400
 
5401
  thrift_spec = (
5402
    None, # 0
5403
    (1, TType.I64, 'userId', None, None, ), # 1
5404
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5405
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5406
  )
5407
 
567 rajveer 5408
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5409
    self.userId = userId
5410
    self.address = address
5411
    self.setDefault = setDefault
5412
 
5413
  def read(self, iprot):
5414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5416
      return
5417
    iprot.readStructBegin()
5418
    while True:
5419
      (fname, ftype, fid) = iprot.readFieldBegin()
5420
      if ftype == TType.STOP:
5421
        break
5422
      if fid == 1:
5423
        if ftype == TType.I64:
5424
          self.userId = iprot.readI64();
5425
        else:
5426
          iprot.skip(ftype)
122 ashish 5427
      elif fid == 2:
559 chandransh 5428
        if ftype == TType.STRUCT:
5429
          self.address = Address()
5430
          self.address.read(iprot)
122 ashish 5431
        else:
5432
          iprot.skip(ftype)
5433
      elif fid == 3:
5434
        if ftype == TType.BOOL:
559 chandransh 5435
          self.setDefault = iprot.readBool();
122 ashish 5436
        else:
5437
          iprot.skip(ftype)
5438
      else:
5439
        iprot.skip(ftype)
5440
      iprot.readFieldEnd()
5441
    iprot.readStructEnd()
5442
 
5443
  def write(self, oprot):
5444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5446
      return
559 chandransh 5447
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5448
    if self.userId is not None:
559 chandransh 5449
      oprot.writeFieldBegin('userId', TType.I64, 1)
5450
      oprot.writeI64(self.userId)
122 ashish 5451
      oprot.writeFieldEnd()
3431 rajveer 5452
    if self.address is not None:
559 chandransh 5453
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5454
      self.address.write(oprot)
122 ashish 5455
      oprot.writeFieldEnd()
3431 rajveer 5456
    if self.setDefault is not None:
567 rajveer 5457
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5458
      oprot.writeBool(self.setDefault)
5459
      oprot.writeFieldEnd()
122 ashish 5460
    oprot.writeFieldStop()
5461
    oprot.writeStructEnd()
5462
 
3431 rajveer 5463
  def validate(self):
5464
    return
5465
 
5466
 
122 ashish 5467
  def __repr__(self):
5468
    L = ['%s=%r' % (key, value)
5469
      for key, value in self.__dict__.iteritems()]
5470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5471
 
5472
  def __eq__(self, other):
5473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5474
 
5475
  def __ne__(self, other):
5476
    return not (self == other)
5477
 
559 chandransh 5478
class addAddressForUser_result:
122 ashish 5479
  """
5480
  Attributes:
5481
   - success
559 chandransh 5482
   - ucx
122 ashish 5483
  """
5484
 
5485
  thrift_spec = (
567 rajveer 5486
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5487
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5488
  )
5489
 
559 chandransh 5490
  def __init__(self, success=None, ucx=None,):
122 ashish 5491
    self.success = success
559 chandransh 5492
    self.ucx = ucx
122 ashish 5493
 
5494
  def read(self, iprot):
5495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5497
      return
5498
    iprot.readStructBegin()
5499
    while True:
5500
      (fname, ftype, fid) = iprot.readFieldBegin()
5501
      if ftype == TType.STOP:
5502
        break
5503
      if fid == 0:
567 rajveer 5504
        if ftype == TType.I64:
5505
          self.success = iprot.readI64();
122 ashish 5506
        else:
5507
          iprot.skip(ftype)
5508
      elif fid == 1:
5509
        if ftype == TType.STRUCT:
559 chandransh 5510
          self.ucx = UserContextException()
5511
          self.ucx.read(iprot)
122 ashish 5512
        else:
5513
          iprot.skip(ftype)
5514
      else:
5515
        iprot.skip(ftype)
5516
      iprot.readFieldEnd()
5517
    iprot.readStructEnd()
5518
 
5519
  def write(self, oprot):
5520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5522
      return
559 chandransh 5523
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5524
    if self.success is not None:
567 rajveer 5525
      oprot.writeFieldBegin('success', TType.I64, 0)
5526
      oprot.writeI64(self.success)
122 ashish 5527
      oprot.writeFieldEnd()
3431 rajveer 5528
    if self.ucx is not None:
559 chandransh 5529
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5530
      self.ucx.write(oprot)
122 ashish 5531
      oprot.writeFieldEnd()
5532
    oprot.writeFieldStop()
5533
    oprot.writeStructEnd()
5534
 
3431 rajveer 5535
  def validate(self):
5536
    return
5537
 
5538
 
122 ashish 5539
  def __repr__(self):
5540
    L = ['%s=%r' % (key, value)
5541
      for key, value in self.__dict__.iteritems()]
5542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5543
 
5544
  def __eq__(self, other):
5545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5546
 
5547
  def __ne__(self, other):
5548
    return not (self == other)
5549
 
559 chandransh 5550
class removeAddressForUser_args:
94 ashish 5551
  """
5552
  Attributes:
559 chandransh 5553
   - userid
5554
   - addressId
94 ashish 5555
  """
5556
 
5557
  thrift_spec = (
5558
    None, # 0
559 chandransh 5559
    (1, TType.I64, 'userid', None, None, ), # 1
5560
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5561
  )
5562
 
559 chandransh 5563
  def __init__(self, userid=None, addressId=None,):
5564
    self.userid = userid
5565
    self.addressId = addressId
94 ashish 5566
 
5567
  def read(self, iprot):
5568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5570
      return
5571
    iprot.readStructBegin()
5572
    while True:
5573
      (fname, ftype, fid) = iprot.readFieldBegin()
5574
      if ftype == TType.STOP:
5575
        break
5576
      if fid == 1:
559 chandransh 5577
        if ftype == TType.I64:
5578
          self.userid = iprot.readI64();
94 ashish 5579
        else:
5580
          iprot.skip(ftype)
559 chandransh 5581
      elif fid == 2:
5582
        if ftype == TType.I64:
5583
          self.addressId = iprot.readI64();
5584
        else:
5585
          iprot.skip(ftype)
94 ashish 5586
      else:
5587
        iprot.skip(ftype)
5588
      iprot.readFieldEnd()
5589
    iprot.readStructEnd()
5590
 
5591
  def write(self, oprot):
5592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5594
      return
559 chandransh 5595
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5596
    if self.userid is not None:
559 chandransh 5597
      oprot.writeFieldBegin('userid', TType.I64, 1)
5598
      oprot.writeI64(self.userid)
94 ashish 5599
      oprot.writeFieldEnd()
3431 rajveer 5600
    if self.addressId is not None:
559 chandransh 5601
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5602
      oprot.writeI64(self.addressId)
5603
      oprot.writeFieldEnd()
94 ashish 5604
    oprot.writeFieldStop()
5605
    oprot.writeStructEnd()
5606
 
3431 rajveer 5607
  def validate(self):
5608
    return
5609
 
5610
 
94 ashish 5611
  def __repr__(self):
5612
    L = ['%s=%r' % (key, value)
5613
      for key, value in self.__dict__.iteritems()]
5614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5615
 
5616
  def __eq__(self, other):
5617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5618
 
5619
  def __ne__(self, other):
5620
    return not (self == other)
5621
 
559 chandransh 5622
class removeAddressForUser_result:
94 ashish 5623
  """
5624
  Attributes:
5625
   - success
5626
   - ucx
5627
  """
5628
 
5629
  thrift_spec = (
5630
    (0, TType.BOOL, 'success', None, None, ), # 0
5631
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5632
  )
5633
 
5634
  def __init__(self, success=None, ucx=None,):
5635
    self.success = success
5636
    self.ucx = ucx
5637
 
5638
  def read(self, iprot):
5639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5641
      return
5642
    iprot.readStructBegin()
5643
    while True:
5644
      (fname, ftype, fid) = iprot.readFieldBegin()
5645
      if ftype == TType.STOP:
5646
        break
5647
      if fid == 0:
5648
        if ftype == TType.BOOL:
5649
          self.success = iprot.readBool();
5650
        else:
5651
          iprot.skip(ftype)
5652
      elif fid == 1:
5653
        if ftype == TType.STRUCT:
5654
          self.ucx = UserContextException()
5655
          self.ucx.read(iprot)
5656
        else:
5657
          iprot.skip(ftype)
5658
      else:
5659
        iprot.skip(ftype)
5660
      iprot.readFieldEnd()
5661
    iprot.readStructEnd()
5662
 
5663
  def write(self, oprot):
5664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5666
      return
559 chandransh 5667
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5668
    if self.success is not None:
94 ashish 5669
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5670
      oprot.writeBool(self.success)
5671
      oprot.writeFieldEnd()
3431 rajveer 5672
    if self.ucx is not None:
94 ashish 5673
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5674
      self.ucx.write(oprot)
5675
      oprot.writeFieldEnd()
5676
    oprot.writeFieldStop()
5677
    oprot.writeStructEnd()
5678
 
3431 rajveer 5679
  def validate(self):
5680
    return
5681
 
5682
 
94 ashish 5683
  def __repr__(self):
5684
    L = ['%s=%r' % (key, value)
5685
      for key, value in self.__dict__.iteritems()]
5686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5687
 
5688
  def __eq__(self, other):
5689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5690
 
5691
  def __ne__(self, other):
5692
    return not (self == other)
5693
 
559 chandransh 5694
class setUserAsLoggedIn_args:
94 ashish 5695
  """
5696
  Attributes:
559 chandransh 5697
   - userId
94 ashish 5698
   - timestamp
5699
  """
5700
 
5701
  thrift_spec = (
5702
    None, # 0
559 chandransh 5703
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5704
    (2, TType.I64, 'timestamp', None, None, ), # 2
5705
  )
5706
 
559 chandransh 5707
  def __init__(self, userId=None, timestamp=None,):
5708
    self.userId = userId
94 ashish 5709
    self.timestamp = timestamp
5710
 
5711
  def read(self, iprot):
5712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5714
      return
5715
    iprot.readStructBegin()
5716
    while True:
5717
      (fname, ftype, fid) = iprot.readFieldBegin()
5718
      if ftype == TType.STOP:
5719
        break
5720
      if fid == 1:
559 chandransh 5721
        if ftype == TType.I64:
5722
          self.userId = iprot.readI64();
94 ashish 5723
        else:
5724
          iprot.skip(ftype)
5725
      elif fid == 2:
5726
        if ftype == TType.I64:
5727
          self.timestamp = iprot.readI64();
5728
        else:
5729
          iprot.skip(ftype)
5730
      else:
5731
        iprot.skip(ftype)
5732
      iprot.readFieldEnd()
5733
    iprot.readStructEnd()
5734
 
5735
  def write(self, oprot):
5736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5738
      return
559 chandransh 5739
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5740
    if self.userId is not None:
559 chandransh 5741
      oprot.writeFieldBegin('userId', TType.I64, 1)
5742
      oprot.writeI64(self.userId)
94 ashish 5743
      oprot.writeFieldEnd()
3431 rajveer 5744
    if self.timestamp is not None:
94 ashish 5745
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5746
      oprot.writeI64(self.timestamp)
5747
      oprot.writeFieldEnd()
5748
    oprot.writeFieldStop()
5749
    oprot.writeStructEnd()
5750
 
3431 rajveer 5751
  def validate(self):
5752
    return
5753
 
5754
 
94 ashish 5755
  def __repr__(self):
5756
    L = ['%s=%r' % (key, value)
5757
      for key, value in self.__dict__.iteritems()]
5758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5759
 
5760
  def __eq__(self, other):
5761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5762
 
5763
  def __ne__(self, other):
5764
    return not (self == other)
5765
 
559 chandransh 5766
class setUserAsLoggedIn_result:
94 ashish 5767
  """
5768
  Attributes:
5769
   - success
5770
   - ucx
5771
  """
5772
 
5773
  thrift_spec = (
5774
    (0, TType.BOOL, 'success', None, None, ), # 0
5775
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5776
  )
5777
 
5778
  def __init__(self, success=None, ucx=None,):
5779
    self.success = success
5780
    self.ucx = ucx
5781
 
5782
  def read(self, iprot):
5783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5785
      return
5786
    iprot.readStructBegin()
5787
    while True:
5788
      (fname, ftype, fid) = iprot.readFieldBegin()
5789
      if ftype == TType.STOP:
5790
        break
5791
      if fid == 0:
5792
        if ftype == TType.BOOL:
5793
          self.success = iprot.readBool();
5794
        else:
5795
          iprot.skip(ftype)
5796
      elif fid == 1:
5797
        if ftype == TType.STRUCT:
5798
          self.ucx = UserContextException()
5799
          self.ucx.read(iprot)
5800
        else:
5801
          iprot.skip(ftype)
5802
      else:
5803
        iprot.skip(ftype)
5804
      iprot.readFieldEnd()
5805
    iprot.readStructEnd()
5806
 
5807
  def write(self, oprot):
5808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5810
      return
559 chandransh 5811
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5812
    if self.success is not None:
94 ashish 5813
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5814
      oprot.writeBool(self.success)
5815
      oprot.writeFieldEnd()
3431 rajveer 5816
    if self.ucx is not None:
94 ashish 5817
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5818
      self.ucx.write(oprot)
5819
      oprot.writeFieldEnd()
5820
    oprot.writeFieldStop()
5821
    oprot.writeStructEnd()
5822
 
3431 rajveer 5823
  def validate(self):
5824
    return
5825
 
5826
 
94 ashish 5827
  def __repr__(self):
5828
    L = ['%s=%r' % (key, value)
5829
      for key, value in self.__dict__.iteritems()]
5830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5831
 
5832
  def __eq__(self, other):
5833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5834
 
5835
  def __ne__(self, other):
5836
    return not (self == other)
5837
 
559 chandransh 5838
class setUserAsLoggedOut_args:
94 ashish 5839
  """
5840
  Attributes:
5841
   - userid
5842
   - timestamp
5843
  """
5844
 
5845
  thrift_spec = (
5846
    None, # 0
559 chandransh 5847
    (1, TType.I64, 'userid', None, None, ), # 1
5848
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5849
  )
5850
 
559 chandransh 5851
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5852
    self.userid = userid
5853
    self.timestamp = timestamp
5854
 
5855
  def read(self, iprot):
5856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5858
      return
5859
    iprot.readStructBegin()
5860
    while True:
5861
      (fname, ftype, fid) = iprot.readFieldBegin()
5862
      if ftype == TType.STOP:
5863
        break
5864
      if fid == 1:
5865
        if ftype == TType.I64:
5866
          self.userid = iprot.readI64();
5867
        else:
5868
          iprot.skip(ftype)
559 chandransh 5869
      elif fid == 2:
94 ashish 5870
        if ftype == TType.I64:
5871
          self.timestamp = iprot.readI64();
5872
        else:
5873
          iprot.skip(ftype)
5874
      else:
5875
        iprot.skip(ftype)
5876
      iprot.readFieldEnd()
5877
    iprot.readStructEnd()
5878
 
5879
  def write(self, oprot):
5880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5882
      return
559 chandransh 5883
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5884
    if self.userid is not None:
559 chandransh 5885
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5886
      oprot.writeI64(self.userid)
5887
      oprot.writeFieldEnd()
3431 rajveer 5888
    if self.timestamp is not None:
559 chandransh 5889
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5890
      oprot.writeI64(self.timestamp)
5891
      oprot.writeFieldEnd()
5892
    oprot.writeFieldStop()
5893
    oprot.writeStructEnd()
5894
 
3431 rajveer 5895
  def validate(self):
5896
    return
5897
 
5898
 
94 ashish 5899
  def __repr__(self):
5900
    L = ['%s=%r' % (key, value)
5901
      for key, value in self.__dict__.iteritems()]
5902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5903
 
5904
  def __eq__(self, other):
5905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5906
 
5907
  def __ne__(self, other):
5908
    return not (self == other)
5909
 
559 chandransh 5910
class setUserAsLoggedOut_result:
94 ashish 5911
  """
5912
  Attributes:
5913
   - success
5914
   - ucx
5915
  """
5916
 
5917
  thrift_spec = (
5918
    (0, TType.BOOL, 'success', None, None, ), # 0
5919
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5920
  )
5921
 
5922
  def __init__(self, success=None, ucx=None,):
5923
    self.success = success
5924
    self.ucx = ucx
5925
 
5926
  def read(self, iprot):
5927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5929
      return
5930
    iprot.readStructBegin()
5931
    while True:
5932
      (fname, ftype, fid) = iprot.readFieldBegin()
5933
      if ftype == TType.STOP:
5934
        break
5935
      if fid == 0:
5936
        if ftype == TType.BOOL:
5937
          self.success = iprot.readBool();
5938
        else:
5939
          iprot.skip(ftype)
5940
      elif fid == 1:
5941
        if ftype == TType.STRUCT:
5942
          self.ucx = UserContextException()
5943
          self.ucx.read(iprot)
5944
        else:
5945
          iprot.skip(ftype)
5946
      else:
5947
        iprot.skip(ftype)
5948
      iprot.readFieldEnd()
5949
    iprot.readStructEnd()
5950
 
5951
  def write(self, oprot):
5952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5954
      return
559 chandransh 5955
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5956
    if self.success is not None:
94 ashish 5957
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5958
      oprot.writeBool(self.success)
5959
      oprot.writeFieldEnd()
3431 rajveer 5960
    if self.ucx is not None:
94 ashish 5961
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5962
      self.ucx.write(oprot)
5963
      oprot.writeFieldEnd()
5964
    oprot.writeFieldStop()
5965
    oprot.writeStructEnd()
5966
 
3431 rajveer 5967
  def validate(self):
5968
    return
5969
 
5970
 
94 ashish 5971
  def __repr__(self):
5972
    L = ['%s=%r' % (key, value)
5973
      for key, value in self.__dict__.iteritems()]
5974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5975
 
5976
  def __eq__(self, other):
5977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5978
 
5979
  def __ne__(self, other):
5980
    return not (self == other)
5981
 
559 chandransh 5982
class setDefaultAddress_args:
94 ashish 5983
  """
5984
  Attributes:
5985
   - userid
5986
   - addressId
5987
  """
5988
 
5989
  thrift_spec = (
5990
    None, # 0
5991
    (1, TType.I64, 'userid', None, None, ), # 1
5992
    (2, TType.I64, 'addressId', None, None, ), # 2
5993
  )
5994
 
5995
  def __init__(self, userid=None, addressId=None,):
5996
    self.userid = userid
5997
    self.addressId = addressId
5998
 
5999
  def read(self, iprot):
6000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6002
      return
6003
    iprot.readStructBegin()
6004
    while True:
6005
      (fname, ftype, fid) = iprot.readFieldBegin()
6006
      if ftype == TType.STOP:
6007
        break
6008
      if fid == 1:
6009
        if ftype == TType.I64:
6010
          self.userid = iprot.readI64();
6011
        else:
6012
          iprot.skip(ftype)
6013
      elif fid == 2:
6014
        if ftype == TType.I64:
6015
          self.addressId = iprot.readI64();
6016
        else:
6017
          iprot.skip(ftype)
6018
      else:
6019
        iprot.skip(ftype)
6020
      iprot.readFieldEnd()
6021
    iprot.readStructEnd()
6022
 
6023
  def write(self, oprot):
6024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6026
      return
559 chandransh 6027
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 6028
    if self.userid is not None:
94 ashish 6029
      oprot.writeFieldBegin('userid', TType.I64, 1)
6030
      oprot.writeI64(self.userid)
6031
      oprot.writeFieldEnd()
3431 rajveer 6032
    if self.addressId is not None:
94 ashish 6033
      oprot.writeFieldBegin('addressId', TType.I64, 2)
6034
      oprot.writeI64(self.addressId)
6035
      oprot.writeFieldEnd()
6036
    oprot.writeFieldStop()
6037
    oprot.writeStructEnd()
6038
 
3431 rajveer 6039
  def validate(self):
6040
    return
6041
 
6042
 
94 ashish 6043
  def __repr__(self):
6044
    L = ['%s=%r' % (key, value)
6045
      for key, value in self.__dict__.iteritems()]
6046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6047
 
6048
  def __eq__(self, other):
6049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6050
 
6051
  def __ne__(self, other):
6052
    return not (self == other)
6053
 
559 chandransh 6054
class setDefaultAddress_result:
94 ashish 6055
  """
6056
  Attributes:
6057
   - success
6058
   - ucx
6059
  """
6060
 
6061
  thrift_spec = (
6062
    (0, TType.BOOL, 'success', None, None, ), # 0
6063
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6064
  )
6065
 
6066
  def __init__(self, success=None, ucx=None,):
6067
    self.success = success
6068
    self.ucx = ucx
6069
 
6070
  def read(self, iprot):
6071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6073
      return
6074
    iprot.readStructBegin()
6075
    while True:
6076
      (fname, ftype, fid) = iprot.readFieldBegin()
6077
      if ftype == TType.STOP:
6078
        break
6079
      if fid == 0:
6080
        if ftype == TType.BOOL:
6081
          self.success = iprot.readBool();
6082
        else:
6083
          iprot.skip(ftype)
6084
      elif fid == 1:
6085
        if ftype == TType.STRUCT:
6086
          self.ucx = UserContextException()
6087
          self.ucx.read(iprot)
6088
        else:
6089
          iprot.skip(ftype)
6090
      else:
6091
        iprot.skip(ftype)
6092
      iprot.readFieldEnd()
6093
    iprot.readStructEnd()
6094
 
6095
  def write(self, oprot):
6096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6098
      return
559 chandransh 6099
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6100
    if self.success is not None:
94 ashish 6101
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6102
      oprot.writeBool(self.success)
6103
      oprot.writeFieldEnd()
3431 rajveer 6104
    if self.ucx is not None:
94 ashish 6105
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6106
      self.ucx.write(oprot)
6107
      oprot.writeFieldEnd()
6108
    oprot.writeFieldStop()
6109
    oprot.writeStructEnd()
6110
 
3431 rajveer 6111
  def validate(self):
6112
    return
6113
 
6114
 
94 ashish 6115
  def __repr__(self):
6116
    L = ['%s=%r' % (key, value)
6117
      for key, value in self.__dict__.iteritems()]
6118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6119
 
6120
  def __eq__(self, other):
6121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6122
 
6123
  def __ne__(self, other):
6124
    return not (self == other)
6125
 
559 chandransh 6126
class updatePassword_args:
94 ashish 6127
  """
6128
  Attributes:
559 chandransh 6129
   - userid
594 rajveer 6130
   - oldPassword
6131
   - newPassword
94 ashish 6132
  """
6133
 
6134
  thrift_spec = (
6135
    None, # 0
559 chandransh 6136
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6137
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6138
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6139
  )
6140
 
594 rajveer 6141
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6142
    self.userid = userid
594 rajveer 6143
    self.oldPassword = oldPassword
6144
    self.newPassword = newPassword
94 ashish 6145
 
6146
  def read(self, iprot):
6147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6149
      return
6150
    iprot.readStructBegin()
6151
    while True:
6152
      (fname, ftype, fid) = iprot.readFieldBegin()
6153
      if ftype == TType.STOP:
6154
        break
6155
      if fid == 1:
6156
        if ftype == TType.I64:
559 chandransh 6157
          self.userid = iprot.readI64();
94 ashish 6158
        else:
6159
          iprot.skip(ftype)
6160
      elif fid == 2:
559 chandransh 6161
        if ftype == TType.STRING:
594 rajveer 6162
          self.oldPassword = iprot.readString();
94 ashish 6163
        else:
6164
          iprot.skip(ftype)
594 rajveer 6165
      elif fid == 3:
6166
        if ftype == TType.STRING:
6167
          self.newPassword = iprot.readString();
6168
        else:
6169
          iprot.skip(ftype)
94 ashish 6170
      else:
6171
        iprot.skip(ftype)
6172
      iprot.readFieldEnd()
6173
    iprot.readStructEnd()
6174
 
6175
  def write(self, oprot):
6176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6178
      return
559 chandransh 6179
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6180
    if self.userid is not None:
559 chandransh 6181
      oprot.writeFieldBegin('userid', TType.I64, 1)
6182
      oprot.writeI64(self.userid)
94 ashish 6183
      oprot.writeFieldEnd()
3431 rajveer 6184
    if self.oldPassword is not None:
594 rajveer 6185
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6186
      oprot.writeString(self.oldPassword)
94 ashish 6187
      oprot.writeFieldEnd()
3431 rajveer 6188
    if self.newPassword is not None:
594 rajveer 6189
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6190
      oprot.writeString(self.newPassword)
6191
      oprot.writeFieldEnd()
94 ashish 6192
    oprot.writeFieldStop()
6193
    oprot.writeStructEnd()
6194
 
3431 rajveer 6195
  def validate(self):
6196
    return
6197
 
6198
 
94 ashish 6199
  def __repr__(self):
6200
    L = ['%s=%r' % (key, value)
6201
      for key, value in self.__dict__.iteritems()]
6202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6203
 
6204
  def __eq__(self, other):
6205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6206
 
6207
  def __ne__(self, other):
6208
    return not (self == other)
6209
 
559 chandransh 6210
class updatePassword_result:
94 ashish 6211
  """
6212
  Attributes:
6213
   - success
6214
   - ucx
6215
  """
6216
 
6217
  thrift_spec = (
6218
    (0, TType.BOOL, 'success', None, None, ), # 0
6219
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6220
  )
6221
 
6222
  def __init__(self, success=None, ucx=None,):
6223
    self.success = success
6224
    self.ucx = ucx
6225
 
6226
  def read(self, iprot):
6227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6229
      return
6230
    iprot.readStructBegin()
6231
    while True:
6232
      (fname, ftype, fid) = iprot.readFieldBegin()
6233
      if ftype == TType.STOP:
6234
        break
6235
      if fid == 0:
6236
        if ftype == TType.BOOL:
6237
          self.success = iprot.readBool();
6238
        else:
6239
          iprot.skip(ftype)
6240
      elif fid == 1:
6241
        if ftype == TType.STRUCT:
6242
          self.ucx = UserContextException()
6243
          self.ucx.read(iprot)
6244
        else:
6245
          iprot.skip(ftype)
6246
      else:
6247
        iprot.skip(ftype)
6248
      iprot.readFieldEnd()
6249
    iprot.readStructEnd()
6250
 
6251
  def write(self, oprot):
6252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6254
      return
559 chandransh 6255
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6256
    if self.success is not None:
94 ashish 6257
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6258
      oprot.writeBool(self.success)
6259
      oprot.writeFieldEnd()
3431 rajveer 6260
    if self.ucx is not None:
94 ashish 6261
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6262
      self.ucx.write(oprot)
6263
      oprot.writeFieldEnd()
6264
    oprot.writeFieldStop()
6265
    oprot.writeStructEnd()
6266
 
3431 rajveer 6267
  def validate(self):
6268
    return
6269
 
6270
 
94 ashish 6271
  def __repr__(self):
6272
    L = ['%s=%r' % (key, value)
6273
      for key, value in self.__dict__.iteritems()]
6274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6275
 
6276
  def __eq__(self, other):
6277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6278
 
6279
  def __ne__(self, other):
6280
    return not (self == other)
6281
 
581 rajveer 6282
class forgotPassword_args:
6283
  """
6284
  Attributes:
6285
   - email
884 rajveer 6286
   - newPassword
581 rajveer 6287
  """
6288
 
6289
  thrift_spec = (
6290
    None, # 0
6291
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6292
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6293
  )
6294
 
884 rajveer 6295
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6296
    self.email = email
884 rajveer 6297
    self.newPassword = newPassword
581 rajveer 6298
 
6299
  def read(self, iprot):
6300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6302
      return
6303
    iprot.readStructBegin()
6304
    while True:
6305
      (fname, ftype, fid) = iprot.readFieldBegin()
6306
      if ftype == TType.STOP:
6307
        break
6308
      if fid == 1:
6309
        if ftype == TType.STRING:
6310
          self.email = iprot.readString();
6311
        else:
6312
          iprot.skip(ftype)
884 rajveer 6313
      elif fid == 2:
6314
        if ftype == TType.STRING:
6315
          self.newPassword = iprot.readString();
6316
        else:
6317
          iprot.skip(ftype)
581 rajveer 6318
      else:
6319
        iprot.skip(ftype)
6320
      iprot.readFieldEnd()
6321
    iprot.readStructEnd()
6322
 
6323
  def write(self, oprot):
6324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6326
      return
6327
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6328
    if self.email is not None:
581 rajveer 6329
      oprot.writeFieldBegin('email', TType.STRING, 1)
6330
      oprot.writeString(self.email)
6331
      oprot.writeFieldEnd()
3431 rajveer 6332
    if self.newPassword is not None:
884 rajveer 6333
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6334
      oprot.writeString(self.newPassword)
6335
      oprot.writeFieldEnd()
581 rajveer 6336
    oprot.writeFieldStop()
6337
    oprot.writeStructEnd()
6338
 
3431 rajveer 6339
  def validate(self):
6340
    return
6341
 
6342
 
581 rajveer 6343
  def __repr__(self):
6344
    L = ['%s=%r' % (key, value)
6345
      for key, value in self.__dict__.iteritems()]
6346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6347
 
6348
  def __eq__(self, other):
6349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6350
 
6351
  def __ne__(self, other):
6352
    return not (self == other)
6353
 
6354
class forgotPassword_result:
6355
  """
6356
  Attributes:
6357
   - success
6358
   - ucx
6359
  """
6360
 
6361
  thrift_spec = (
6362
    (0, TType.BOOL, 'success', None, None, ), # 0
6363
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6364
  )
6365
 
6366
  def __init__(self, success=None, ucx=None,):
6367
    self.success = success
6368
    self.ucx = ucx
6369
 
6370
  def read(self, iprot):
6371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6373
      return
6374
    iprot.readStructBegin()
6375
    while True:
6376
      (fname, ftype, fid) = iprot.readFieldBegin()
6377
      if ftype == TType.STOP:
6378
        break
6379
      if fid == 0:
6380
        if ftype == TType.BOOL:
6381
          self.success = iprot.readBool();
6382
        else:
6383
          iprot.skip(ftype)
6384
      elif fid == 1:
6385
        if ftype == TType.STRUCT:
6386
          self.ucx = UserContextException()
6387
          self.ucx.read(iprot)
6388
        else:
6389
          iprot.skip(ftype)
6390
      else:
6391
        iprot.skip(ftype)
6392
      iprot.readFieldEnd()
6393
    iprot.readStructEnd()
6394
 
6395
  def write(self, oprot):
6396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6398
      return
6399
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6400
    if self.success is not None:
581 rajveer 6401
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6402
      oprot.writeBool(self.success)
6403
      oprot.writeFieldEnd()
3431 rajveer 6404
    if self.ucx is not None:
581 rajveer 6405
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6406
      self.ucx.write(oprot)
6407
      oprot.writeFieldEnd()
6408
    oprot.writeFieldStop()
6409
    oprot.writeStructEnd()
6410
 
3431 rajveer 6411
  def validate(self):
6412
    return
6413
 
6414
 
581 rajveer 6415
  def __repr__(self):
6416
    L = ['%s=%r' % (key, value)
6417
      for key, value in self.__dict__.iteritems()]
6418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6419
 
6420
  def __eq__(self, other):
6421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6422
 
6423
  def __ne__(self, other):
6424
    return not (self == other)
6425
 
594 rajveer 6426
class getAllAddressesForUser_args:
6427
  """
6428
  Attributes:
6429
   - userId
6430
  """
6431
 
6432
  thrift_spec = (
6433
    None, # 0
6434
    (1, TType.I64, 'userId', None, None, ), # 1
6435
  )
6436
 
6437
  def __init__(self, userId=None,):
6438
    self.userId = userId
6439
 
6440
  def read(self, iprot):
6441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6443
      return
6444
    iprot.readStructBegin()
6445
    while True:
6446
      (fname, ftype, fid) = iprot.readFieldBegin()
6447
      if ftype == TType.STOP:
6448
        break
6449
      if fid == 1:
6450
        if ftype == TType.I64:
6451
          self.userId = iprot.readI64();
6452
        else:
6453
          iprot.skip(ftype)
6454
      else:
6455
        iprot.skip(ftype)
6456
      iprot.readFieldEnd()
6457
    iprot.readStructEnd()
6458
 
6459
  def write(self, oprot):
6460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6462
      return
6463
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6464
    if self.userId is not None:
594 rajveer 6465
      oprot.writeFieldBegin('userId', TType.I64, 1)
6466
      oprot.writeI64(self.userId)
6467
      oprot.writeFieldEnd()
6468
    oprot.writeFieldStop()
6469
    oprot.writeStructEnd()
6470
 
3431 rajveer 6471
  def validate(self):
6472
    return
6473
 
6474
 
594 rajveer 6475
  def __repr__(self):
6476
    L = ['%s=%r' % (key, value)
6477
      for key, value in self.__dict__.iteritems()]
6478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6479
 
6480
  def __eq__(self, other):
6481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6482
 
6483
  def __ne__(self, other):
6484
    return not (self == other)
6485
 
6486
class getAllAddressesForUser_result:
6487
  """
6488
  Attributes:
6489
   - success
6490
   - ucx
6491
  """
6492
 
6493
  thrift_spec = (
6494
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6495
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6496
  )
6497
 
6498
  def __init__(self, success=None, ucx=None,):
6499
    self.success = success
6500
    self.ucx = ucx
6501
 
6502
  def read(self, iprot):
6503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6505
      return
6506
    iprot.readStructBegin()
6507
    while True:
6508
      (fname, ftype, fid) = iprot.readFieldBegin()
6509
      if ftype == TType.STOP:
6510
        break
6511
      if fid == 0:
6512
        if ftype == TType.LIST:
6513
          self.success = []
11592 amit.gupta 6514
          (_etype100, _size97) = iprot.readListBegin()
6515
          for _i101 in xrange(_size97):
6516
            _elem102 = Address()
6517
            _elem102.read(iprot)
6518
            self.success.append(_elem102)
594 rajveer 6519
          iprot.readListEnd()
6520
        else:
6521
          iprot.skip(ftype)
6522
      elif fid == 1:
6523
        if ftype == TType.STRUCT:
6524
          self.ucx = UserContextException()
6525
          self.ucx.read(iprot)
6526
        else:
6527
          iprot.skip(ftype)
6528
      else:
6529
        iprot.skip(ftype)
6530
      iprot.readFieldEnd()
6531
    iprot.readStructEnd()
6532
 
6533
  def write(self, oprot):
6534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6536
      return
6537
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6538
    if self.success is not None:
594 rajveer 6539
      oprot.writeFieldBegin('success', TType.LIST, 0)
6540
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 6541
      for iter103 in self.success:
6542
        iter103.write(oprot)
594 rajveer 6543
      oprot.writeListEnd()
6544
      oprot.writeFieldEnd()
3431 rajveer 6545
    if self.ucx is not None:
594 rajveer 6546
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6547
      self.ucx.write(oprot)
6548
      oprot.writeFieldEnd()
6549
    oprot.writeFieldStop()
6550
    oprot.writeStructEnd()
6551
 
3431 rajveer 6552
  def validate(self):
6553
    return
6554
 
6555
 
594 rajveer 6556
  def __repr__(self):
6557
    L = ['%s=%r' % (key, value)
6558
      for key, value in self.__dict__.iteritems()]
6559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6560
 
6561
  def __eq__(self, other):
6562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6563
 
6564
  def __ne__(self, other):
6565
    return not (self == other)
6566
 
1894 vikas 6567
class getAddressById_args:
6568
  """
6569
  Attributes:
6570
   - addressId
6571
  """
6572
 
6573
  thrift_spec = (
6574
    None, # 0
6575
    (1, TType.I64, 'addressId', None, None, ), # 1
6576
  )
6577
 
6578
  def __init__(self, addressId=None,):
6579
    self.addressId = addressId
6580
 
6581
  def read(self, iprot):
6582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6584
      return
6585
    iprot.readStructBegin()
6586
    while True:
6587
      (fname, ftype, fid) = iprot.readFieldBegin()
6588
      if ftype == TType.STOP:
6589
        break
6590
      if fid == 1:
6591
        if ftype == TType.I64:
6592
          self.addressId = iprot.readI64();
6593
        else:
6594
          iprot.skip(ftype)
6595
      else:
6596
        iprot.skip(ftype)
6597
      iprot.readFieldEnd()
6598
    iprot.readStructEnd()
6599
 
6600
  def write(self, oprot):
6601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6603
      return
6604
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6605
    if self.addressId is not None:
1894 vikas 6606
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6607
      oprot.writeI64(self.addressId)
6608
      oprot.writeFieldEnd()
6609
    oprot.writeFieldStop()
6610
    oprot.writeStructEnd()
6611
 
3431 rajveer 6612
  def validate(self):
6613
    return
6614
 
6615
 
1894 vikas 6616
  def __repr__(self):
6617
    L = ['%s=%r' % (key, value)
6618
      for key, value in self.__dict__.iteritems()]
6619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6620
 
6621
  def __eq__(self, other):
6622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6623
 
6624
  def __ne__(self, other):
6625
    return not (self == other)
6626
 
6627
class getAddressById_result:
6628
  """
6629
  Attributes:
6630
   - success
6631
   - ucx
6632
  """
6633
 
6634
  thrift_spec = (
6635
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6636
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6637
  )
6638
 
6639
  def __init__(self, success=None, ucx=None,):
6640
    self.success = success
6641
    self.ucx = ucx
6642
 
6643
  def read(self, iprot):
6644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6646
      return
6647
    iprot.readStructBegin()
6648
    while True:
6649
      (fname, ftype, fid) = iprot.readFieldBegin()
6650
      if ftype == TType.STOP:
6651
        break
6652
      if fid == 0:
6653
        if ftype == TType.STRUCT:
6654
          self.success = Address()
6655
          self.success.read(iprot)
6656
        else:
6657
          iprot.skip(ftype)
6658
      elif fid == 1:
6659
        if ftype == TType.STRUCT:
6660
          self.ucx = UserContextException()
6661
          self.ucx.read(iprot)
6662
        else:
6663
          iprot.skip(ftype)
6664
      else:
6665
        iprot.skip(ftype)
6666
      iprot.readFieldEnd()
6667
    iprot.readStructEnd()
6668
 
6669
  def write(self, oprot):
6670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6672
      return
6673
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6674
    if self.success is not None:
1894 vikas 6675
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6676
      self.success.write(oprot)
6677
      oprot.writeFieldEnd()
3431 rajveer 6678
    if self.ucx is not None:
1894 vikas 6679
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6680
      self.ucx.write(oprot)
6681
      oprot.writeFieldEnd()
6682
    oprot.writeFieldStop()
6683
    oprot.writeStructEnd()
6684
 
3431 rajveer 6685
  def validate(self):
6686
    return
6687
 
6688
 
1894 vikas 6689
  def __repr__(self):
6690
    L = ['%s=%r' % (key, value)
6691
      for key, value in self.__dict__.iteritems()]
6692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6693
 
6694
  def __eq__(self, other):
6695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6696
 
6697
  def __ne__(self, other):
6698
    return not (self == other)
6699
 
594 rajveer 6700
class getDefaultAddressId_args:
6701
  """
6702
  Attributes:
6703
   - userId
6704
  """
6705
 
6706
  thrift_spec = (
6707
    None, # 0
6708
    (1, TType.I64, 'userId', None, None, ), # 1
6709
  )
6710
 
6711
  def __init__(self, userId=None,):
6712
    self.userId = userId
6713
 
6714
  def read(self, iprot):
6715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6717
      return
6718
    iprot.readStructBegin()
6719
    while True:
6720
      (fname, ftype, fid) = iprot.readFieldBegin()
6721
      if ftype == TType.STOP:
6722
        break
6723
      if fid == 1:
6724
        if ftype == TType.I64:
6725
          self.userId = iprot.readI64();
6726
        else:
6727
          iprot.skip(ftype)
6728
      else:
6729
        iprot.skip(ftype)
6730
      iprot.readFieldEnd()
6731
    iprot.readStructEnd()
6732
 
6733
  def write(self, oprot):
6734
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6735
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6736
      return
6737
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6738
    if self.userId is not None:
594 rajveer 6739
      oprot.writeFieldBegin('userId', TType.I64, 1)
6740
      oprot.writeI64(self.userId)
6741
      oprot.writeFieldEnd()
6742
    oprot.writeFieldStop()
6743
    oprot.writeStructEnd()
6744
 
3431 rajveer 6745
  def validate(self):
6746
    return
6747
 
6748
 
594 rajveer 6749
  def __repr__(self):
6750
    L = ['%s=%r' % (key, value)
6751
      for key, value in self.__dict__.iteritems()]
6752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6753
 
6754
  def __eq__(self, other):
6755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6756
 
6757
  def __ne__(self, other):
6758
    return not (self == other)
6759
 
6760
class getDefaultAddressId_result:
6761
  """
6762
  Attributes:
6763
   - success
6764
   - ucx
6765
  """
6766
 
6767
  thrift_spec = (
6768
    (0, TType.I64, 'success', None, None, ), # 0
6769
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6770
  )
6771
 
6772
  def __init__(self, success=None, ucx=None,):
6773
    self.success = success
6774
    self.ucx = ucx
6775
 
6776
  def read(self, iprot):
6777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6779
      return
6780
    iprot.readStructBegin()
6781
    while True:
6782
      (fname, ftype, fid) = iprot.readFieldBegin()
6783
      if ftype == TType.STOP:
6784
        break
6785
      if fid == 0:
6786
        if ftype == TType.I64:
6787
          self.success = iprot.readI64();
6788
        else:
6789
          iprot.skip(ftype)
6790
      elif fid == 1:
6791
        if ftype == TType.STRUCT:
6792
          self.ucx = UserContextException()
6793
          self.ucx.read(iprot)
6794
        else:
6795
          iprot.skip(ftype)
6796
      else:
6797
        iprot.skip(ftype)
6798
      iprot.readFieldEnd()
6799
    iprot.readStructEnd()
6800
 
6801
  def write(self, oprot):
6802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6804
      return
6805
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6806
    if self.success is not None:
594 rajveer 6807
      oprot.writeFieldBegin('success', TType.I64, 0)
6808
      oprot.writeI64(self.success)
6809
      oprot.writeFieldEnd()
3431 rajveer 6810
    if self.ucx is not None:
594 rajveer 6811
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6812
      self.ucx.write(oprot)
6813
      oprot.writeFieldEnd()
6814
    oprot.writeFieldStop()
6815
    oprot.writeStructEnd()
6816
 
3431 rajveer 6817
  def validate(self):
6818
    return
6819
 
6820
 
594 rajveer 6821
  def __repr__(self):
6822
    L = ['%s=%r' % (key, value)
6823
      for key, value in self.__dict__.iteritems()]
6824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6825
 
6826
  def __eq__(self, other):
6827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6828
 
6829
  def __ne__(self, other):
6830
    return not (self == other)
6831
 
785 rajveer 6832
class getDefaultPincode_args:
6833
  """
6834
  Attributes:
6835
   - userId
6836
  """
6837
 
6838
  thrift_spec = (
6839
    None, # 0
6840
    (1, TType.I64, 'userId', None, None, ), # 1
6841
  )
6842
 
6843
  def __init__(self, userId=None,):
6844
    self.userId = userId
6845
 
6846
  def read(self, iprot):
6847
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6848
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6849
      return
6850
    iprot.readStructBegin()
6851
    while True:
6852
      (fname, ftype, fid) = iprot.readFieldBegin()
6853
      if ftype == TType.STOP:
6854
        break
6855
      if fid == 1:
6856
        if ftype == TType.I64:
6857
          self.userId = iprot.readI64();
6858
        else:
6859
          iprot.skip(ftype)
6860
      else:
6861
        iprot.skip(ftype)
6862
      iprot.readFieldEnd()
6863
    iprot.readStructEnd()
6864
 
6865
  def write(self, oprot):
6866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6868
      return
6869
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6870
    if self.userId is not None:
785 rajveer 6871
      oprot.writeFieldBegin('userId', TType.I64, 1)
6872
      oprot.writeI64(self.userId)
6873
      oprot.writeFieldEnd()
6874
    oprot.writeFieldStop()
6875
    oprot.writeStructEnd()
6876
 
3431 rajveer 6877
  def validate(self):
6878
    return
6879
 
6880
 
785 rajveer 6881
  def __repr__(self):
6882
    L = ['%s=%r' % (key, value)
6883
      for key, value in self.__dict__.iteritems()]
6884
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6885
 
6886
  def __eq__(self, other):
6887
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6888
 
6889
  def __ne__(self, other):
6890
    return not (self == other)
6891
 
6892
class getDefaultPincode_result:
6893
  """
6894
  Attributes:
6895
   - success
6896
   - ucx
6897
  """
6898
 
6899
  thrift_spec = (
6900
    (0, TType.STRING, 'success', None, None, ), # 0
6901
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6902
  )
6903
 
6904
  def __init__(self, success=None, ucx=None,):
6905
    self.success = success
6906
    self.ucx = ucx
6907
 
6908
  def read(self, iprot):
6909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6911
      return
6912
    iprot.readStructBegin()
6913
    while True:
6914
      (fname, ftype, fid) = iprot.readFieldBegin()
6915
      if ftype == TType.STOP:
6916
        break
6917
      if fid == 0:
6918
        if ftype == TType.STRING:
6919
          self.success = iprot.readString();
6920
        else:
6921
          iprot.skip(ftype)
6922
      elif fid == 1:
6923
        if ftype == TType.STRUCT:
6924
          self.ucx = UserContextException()
6925
          self.ucx.read(iprot)
6926
        else:
6927
          iprot.skip(ftype)
6928
      else:
6929
        iprot.skip(ftype)
6930
      iprot.readFieldEnd()
6931
    iprot.readStructEnd()
6932
 
6933
  def write(self, oprot):
6934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6936
      return
6937
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6938
    if self.success is not None:
785 rajveer 6939
      oprot.writeFieldBegin('success', TType.STRING, 0)
6940
      oprot.writeString(self.success)
6941
      oprot.writeFieldEnd()
3431 rajveer 6942
    if self.ucx is not None:
785 rajveer 6943
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6944
      self.ucx.write(oprot)
6945
      oprot.writeFieldEnd()
6946
    oprot.writeFieldStop()
6947
    oprot.writeStructEnd()
6948
 
3431 rajveer 6949
  def validate(self):
6950
    return
6951
 
6952
 
785 rajveer 6953
  def __repr__(self):
6954
    L = ['%s=%r' % (key, value)
6955
      for key, value in self.__dict__.iteritems()]
6956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6957
 
6958
  def __eq__(self, other):
6959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6960
 
6961
  def __ne__(self, other):
6962
    return not (self == other)
6963
 
1274 varun.gupt 6964
class saveUserCommunication_args:
6965
  """
6966
  Attributes:
6967
   - userId
6968
   - replyTo
6969
   - communicationType
6970
   - orderId
6971
   - airwaybillNo
6972
   - productName
6973
   - subject
6974
   - message
6975
  """
6976
 
6977
  thrift_spec = (
6978
    None, # 0
6979
    (1, TType.I64, 'userId', None, None, ), # 1
6980
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6981
    (3, TType.I64, 'communicationType', None, None, ), # 3
6982
    (4, TType.I64, 'orderId', None, None, ), # 4
6983
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6984
    (6, TType.STRING, 'productName', None, None, ), # 6
6985
    (7, TType.STRING, 'subject', None, None, ), # 7
6986
    (8, TType.STRING, 'message', None, None, ), # 8
6987
  )
6988
 
6989
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6990
    self.userId = userId
6991
    self.replyTo = replyTo
6992
    self.communicationType = communicationType
6993
    self.orderId = orderId
6994
    self.airwaybillNo = airwaybillNo
6995
    self.productName = productName
6996
    self.subject = subject
6997
    self.message = message
6998
 
6999
  def read(self, iprot):
7000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7002
      return
7003
    iprot.readStructBegin()
7004
    while True:
7005
      (fname, ftype, fid) = iprot.readFieldBegin()
7006
      if ftype == TType.STOP:
7007
        break
7008
      if fid == 1:
7009
        if ftype == TType.I64:
7010
          self.userId = iprot.readI64();
7011
        else:
7012
          iprot.skip(ftype)
7013
      elif fid == 2:
7014
        if ftype == TType.STRING:
7015
          self.replyTo = iprot.readString();
7016
        else:
7017
          iprot.skip(ftype)
7018
      elif fid == 3:
7019
        if ftype == TType.I64:
7020
          self.communicationType = iprot.readI64();
7021
        else:
7022
          iprot.skip(ftype)
7023
      elif fid == 4:
7024
        if ftype == TType.I64:
7025
          self.orderId = iprot.readI64();
7026
        else:
7027
          iprot.skip(ftype)
7028
      elif fid == 5:
7029
        if ftype == TType.STRING:
7030
          self.airwaybillNo = iprot.readString();
7031
        else:
7032
          iprot.skip(ftype)
7033
      elif fid == 6:
7034
        if ftype == TType.STRING:
7035
          self.productName = iprot.readString();
7036
        else:
7037
          iprot.skip(ftype)
7038
      elif fid == 7:
7039
        if ftype == TType.STRING:
7040
          self.subject = iprot.readString();
7041
        else:
7042
          iprot.skip(ftype)
7043
      elif fid == 8:
7044
        if ftype == TType.STRING:
7045
          self.message = iprot.readString();
7046
        else:
7047
          iprot.skip(ftype)
7048
      else:
7049
        iprot.skip(ftype)
7050
      iprot.readFieldEnd()
7051
    iprot.readStructEnd()
7052
 
7053
  def write(self, oprot):
7054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7056
      return
7057
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7058
    if self.userId is not None:
1274 varun.gupt 7059
      oprot.writeFieldBegin('userId', TType.I64, 1)
7060
      oprot.writeI64(self.userId)
7061
      oprot.writeFieldEnd()
3431 rajveer 7062
    if self.replyTo is not None:
1274 varun.gupt 7063
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7064
      oprot.writeString(self.replyTo)
7065
      oprot.writeFieldEnd()
3431 rajveer 7066
    if self.communicationType is not None:
1274 varun.gupt 7067
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7068
      oprot.writeI64(self.communicationType)
7069
      oprot.writeFieldEnd()
3431 rajveer 7070
    if self.orderId is not None:
1274 varun.gupt 7071
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7072
      oprot.writeI64(self.orderId)
7073
      oprot.writeFieldEnd()
3431 rajveer 7074
    if self.airwaybillNo is not None:
1274 varun.gupt 7075
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7076
      oprot.writeString(self.airwaybillNo)
7077
      oprot.writeFieldEnd()
3431 rajveer 7078
    if self.productName is not None:
1274 varun.gupt 7079
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7080
      oprot.writeString(self.productName)
7081
      oprot.writeFieldEnd()
3431 rajveer 7082
    if self.subject is not None:
1274 varun.gupt 7083
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7084
      oprot.writeString(self.subject)
7085
      oprot.writeFieldEnd()
3431 rajveer 7086
    if self.message is not None:
1274 varun.gupt 7087
      oprot.writeFieldBegin('message', TType.STRING, 8)
7088
      oprot.writeString(self.message)
7089
      oprot.writeFieldEnd()
7090
    oprot.writeFieldStop()
7091
    oprot.writeStructEnd()
7092
 
3431 rajveer 7093
  def validate(self):
7094
    return
7095
 
7096
 
1274 varun.gupt 7097
  def __repr__(self):
7098
    L = ['%s=%r' % (key, value)
7099
      for key, value in self.__dict__.iteritems()]
7100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7101
 
7102
  def __eq__(self, other):
7103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7104
 
7105
  def __ne__(self, other):
7106
    return not (self == other)
7107
 
7108
class saveUserCommunication_result:
7109
  """
7110
  Attributes:
7111
   - success
7112
   - ucx
7113
  """
7114
 
7115
  thrift_spec = (
7116
    (0, TType.BOOL, 'success', None, None, ), # 0
7117
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7118
  )
7119
 
7120
  def __init__(self, success=None, ucx=None,):
7121
    self.success = success
7122
    self.ucx = ucx
7123
 
7124
  def read(self, iprot):
7125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7127
      return
7128
    iprot.readStructBegin()
7129
    while True:
7130
      (fname, ftype, fid) = iprot.readFieldBegin()
7131
      if ftype == TType.STOP:
7132
        break
7133
      if fid == 0:
7134
        if ftype == TType.BOOL:
7135
          self.success = iprot.readBool();
7136
        else:
7137
          iprot.skip(ftype)
7138
      elif fid == 1:
7139
        if ftype == TType.STRUCT:
7140
          self.ucx = UserCommunicationException()
7141
          self.ucx.read(iprot)
7142
        else:
7143
          iprot.skip(ftype)
7144
      else:
7145
        iprot.skip(ftype)
7146
      iprot.readFieldEnd()
7147
    iprot.readStructEnd()
7148
 
7149
  def write(self, oprot):
7150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7152
      return
7153
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7154
    if self.success is not None:
1274 varun.gupt 7155
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7156
      oprot.writeBool(self.success)
7157
      oprot.writeFieldEnd()
3431 rajveer 7158
    if self.ucx is not None:
1274 varun.gupt 7159
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7160
      self.ucx.write(oprot)
7161
      oprot.writeFieldEnd()
7162
    oprot.writeFieldStop()
7163
    oprot.writeStructEnd()
7164
 
3431 rajveer 7165
  def validate(self):
7166
    return
7167
 
7168
 
1274 varun.gupt 7169
  def __repr__(self):
7170
    L = ['%s=%r' % (key, value)
7171
      for key, value in self.__dict__.iteritems()]
7172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7173
 
7174
  def __eq__(self, other):
7175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7176
 
7177
  def __ne__(self, other):
7178
    return not (self == other)
7179
 
1590 varun.gupt 7180
class getUserCommunicationById_args:
7181
  """
7182
  Attributes:
7183
   - id
7184
  """
7185
 
7186
  thrift_spec = (
7187
    None, # 0
7188
    (1, TType.I64, 'id', None, None, ), # 1
7189
  )
7190
 
7191
  def __init__(self, id=None,):
7192
    self.id = id
7193
 
7194
  def read(self, iprot):
7195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7197
      return
7198
    iprot.readStructBegin()
7199
    while True:
7200
      (fname, ftype, fid) = iprot.readFieldBegin()
7201
      if ftype == TType.STOP:
7202
        break
7203
      if fid == 1:
7204
        if ftype == TType.I64:
7205
          self.id = iprot.readI64();
7206
        else:
7207
          iprot.skip(ftype)
7208
      else:
7209
        iprot.skip(ftype)
7210
      iprot.readFieldEnd()
7211
    iprot.readStructEnd()
7212
 
7213
  def write(self, oprot):
7214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7216
      return
7217
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7218
    if self.id is not None:
1590 varun.gupt 7219
      oprot.writeFieldBegin('id', TType.I64, 1)
7220
      oprot.writeI64(self.id)
7221
      oprot.writeFieldEnd()
7222
    oprot.writeFieldStop()
7223
    oprot.writeStructEnd()
7224
 
3431 rajveer 7225
  def validate(self):
7226
    return
7227
 
7228
 
1590 varun.gupt 7229
  def __repr__(self):
7230
    L = ['%s=%r' % (key, value)
7231
      for key, value in self.__dict__.iteritems()]
7232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7233
 
7234
  def __eq__(self, other):
7235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7236
 
7237
  def __ne__(self, other):
7238
    return not (self == other)
7239
 
7240
class getUserCommunicationById_result:
7241
  """
7242
  Attributes:
7243
   - success
7244
   - ucx
7245
  """
7246
 
7247
  thrift_spec = (
7248
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7249
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7250
  )
7251
 
7252
  def __init__(self, success=None, ucx=None,):
7253
    self.success = success
7254
    self.ucx = ucx
7255
 
7256
  def read(self, iprot):
7257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7259
      return
7260
    iprot.readStructBegin()
7261
    while True:
7262
      (fname, ftype, fid) = iprot.readFieldBegin()
7263
      if ftype == TType.STOP:
7264
        break
7265
      if fid == 0:
7266
        if ftype == TType.STRUCT:
7267
          self.success = UserCommunication()
7268
          self.success.read(iprot)
7269
        else:
7270
          iprot.skip(ftype)
7271
      elif fid == 1:
7272
        if ftype == TType.STRUCT:
7273
          self.ucx = UserCommunicationException()
7274
          self.ucx.read(iprot)
7275
        else:
7276
          iprot.skip(ftype)
7277
      else:
7278
        iprot.skip(ftype)
7279
      iprot.readFieldEnd()
7280
    iprot.readStructEnd()
7281
 
7282
  def write(self, oprot):
7283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7285
      return
7286
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7287
    if self.success is not None:
1590 varun.gupt 7288
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7289
      self.success.write(oprot)
7290
      oprot.writeFieldEnd()
3431 rajveer 7291
    if self.ucx is not None:
1590 varun.gupt 7292
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7293
      self.ucx.write(oprot)
7294
      oprot.writeFieldEnd()
7295
    oprot.writeFieldStop()
7296
    oprot.writeStructEnd()
7297
 
3431 rajveer 7298
  def validate(self):
7299
    return
7300
 
7301
 
1590 varun.gupt 7302
  def __repr__(self):
7303
    L = ['%s=%r' % (key, value)
7304
      for key, value in self.__dict__.iteritems()]
7305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7306
 
7307
  def __eq__(self, other):
7308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7309
 
7310
  def __ne__(self, other):
7311
    return not (self == other)
7312
 
7313
class getUserCommunicationByUser_args:
7314
  """
7315
  Attributes:
7316
   - userId
7317
  """
7318
 
7319
  thrift_spec = (
7320
    None, # 0
7321
    (1, TType.I64, 'userId', None, None, ), # 1
7322
  )
7323
 
7324
  def __init__(self, userId=None,):
7325
    self.userId = userId
7326
 
7327
  def read(self, iprot):
7328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7330
      return
7331
    iprot.readStructBegin()
7332
    while True:
7333
      (fname, ftype, fid) = iprot.readFieldBegin()
7334
      if ftype == TType.STOP:
7335
        break
7336
      if fid == 1:
7337
        if ftype == TType.I64:
7338
          self.userId = iprot.readI64();
7339
        else:
7340
          iprot.skip(ftype)
7341
      else:
7342
        iprot.skip(ftype)
7343
      iprot.readFieldEnd()
7344
    iprot.readStructEnd()
7345
 
7346
  def write(self, oprot):
7347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7349
      return
7350
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7351
    if self.userId is not None:
1590 varun.gupt 7352
      oprot.writeFieldBegin('userId', TType.I64, 1)
7353
      oprot.writeI64(self.userId)
7354
      oprot.writeFieldEnd()
7355
    oprot.writeFieldStop()
7356
    oprot.writeStructEnd()
7357
 
3431 rajveer 7358
  def validate(self):
7359
    return
7360
 
7361
 
1590 varun.gupt 7362
  def __repr__(self):
7363
    L = ['%s=%r' % (key, value)
7364
      for key, value in self.__dict__.iteritems()]
7365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7366
 
7367
  def __eq__(self, other):
7368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7369
 
7370
  def __ne__(self, other):
7371
    return not (self == other)
7372
 
7373
class getUserCommunicationByUser_result:
7374
  """
7375
  Attributes:
7376
   - success
7377
   - ucx
7378
  """
7379
 
7380
  thrift_spec = (
7381
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7382
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7383
  )
7384
 
7385
  def __init__(self, success=None, ucx=None,):
7386
    self.success = success
7387
    self.ucx = ucx
7388
 
7389
  def read(self, iprot):
7390
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7391
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7392
      return
7393
    iprot.readStructBegin()
7394
    while True:
7395
      (fname, ftype, fid) = iprot.readFieldBegin()
7396
      if ftype == TType.STOP:
7397
        break
7398
      if fid == 0:
7399
        if ftype == TType.LIST:
7400
          self.success = []
11592 amit.gupta 7401
          (_etype107, _size104) = iprot.readListBegin()
7402
          for _i108 in xrange(_size104):
7403
            _elem109 = UserCommunication()
7404
            _elem109.read(iprot)
7405
            self.success.append(_elem109)
1590 varun.gupt 7406
          iprot.readListEnd()
7407
        else:
7408
          iprot.skip(ftype)
7409
      elif fid == 1:
7410
        if ftype == TType.STRUCT:
7411
          self.ucx = UserCommunicationException()
7412
          self.ucx.read(iprot)
7413
        else:
7414
          iprot.skip(ftype)
7415
      else:
7416
        iprot.skip(ftype)
7417
      iprot.readFieldEnd()
7418
    iprot.readStructEnd()
7419
 
7420
  def write(self, oprot):
7421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7423
      return
7424
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7425
    if self.success is not None:
1590 varun.gupt 7426
      oprot.writeFieldBegin('success', TType.LIST, 0)
7427
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 7428
      for iter110 in self.success:
7429
        iter110.write(oprot)
1590 varun.gupt 7430
      oprot.writeListEnd()
7431
      oprot.writeFieldEnd()
3431 rajveer 7432
    if self.ucx is not None:
1590 varun.gupt 7433
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7434
      self.ucx.write(oprot)
7435
      oprot.writeFieldEnd()
7436
    oprot.writeFieldStop()
7437
    oprot.writeStructEnd()
7438
 
3431 rajveer 7439
  def validate(self):
7440
    return
7441
 
7442
 
1590 varun.gupt 7443
  def __repr__(self):
7444
    L = ['%s=%r' % (key, value)
7445
      for key, value in self.__dict__.iteritems()]
7446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7447
 
7448
  def __eq__(self, other):
7449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7450
 
7451
  def __ne__(self, other):
7452
    return not (self == other)
7453
 
7454
class getAllUserCommunications_args:
7455
 
7456
  thrift_spec = (
7457
  )
7458
 
7459
  def read(self, iprot):
7460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7462
      return
7463
    iprot.readStructBegin()
7464
    while True:
7465
      (fname, ftype, fid) = iprot.readFieldBegin()
7466
      if ftype == TType.STOP:
7467
        break
7468
      else:
7469
        iprot.skip(ftype)
7470
      iprot.readFieldEnd()
7471
    iprot.readStructEnd()
7472
 
7473
  def write(self, oprot):
7474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7476
      return
7477
    oprot.writeStructBegin('getAllUserCommunications_args')
7478
    oprot.writeFieldStop()
7479
    oprot.writeStructEnd()
7480
 
3431 rajveer 7481
  def validate(self):
7482
    return
7483
 
7484
 
1590 varun.gupt 7485
  def __repr__(self):
7486
    L = ['%s=%r' % (key, value)
7487
      for key, value in self.__dict__.iteritems()]
7488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7489
 
7490
  def __eq__(self, other):
7491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7492
 
7493
  def __ne__(self, other):
7494
    return not (self == other)
7495
 
7496
class getAllUserCommunications_result:
7497
  """
7498
  Attributes:
7499
   - success
7500
   - ucx
7501
  """
7502
 
7503
  thrift_spec = (
7504
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7505
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7506
  )
7507
 
7508
  def __init__(self, success=None, ucx=None,):
7509
    self.success = success
7510
    self.ucx = ucx
7511
 
7512
  def read(self, iprot):
7513
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7514
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7515
      return
7516
    iprot.readStructBegin()
7517
    while True:
7518
      (fname, ftype, fid) = iprot.readFieldBegin()
7519
      if ftype == TType.STOP:
7520
        break
7521
      if fid == 0:
7522
        if ftype == TType.LIST:
7523
          self.success = []
11592 amit.gupta 7524
          (_etype114, _size111) = iprot.readListBegin()
7525
          for _i115 in xrange(_size111):
7526
            _elem116 = UserCommunication()
7527
            _elem116.read(iprot)
7528
            self.success.append(_elem116)
1590 varun.gupt 7529
          iprot.readListEnd()
7530
        else:
7531
          iprot.skip(ftype)
7532
      elif fid == 1:
7533
        if ftype == TType.STRUCT:
7534
          self.ucx = UserCommunicationException()
7535
          self.ucx.read(iprot)
7536
        else:
7537
          iprot.skip(ftype)
7538
      else:
7539
        iprot.skip(ftype)
7540
      iprot.readFieldEnd()
7541
    iprot.readStructEnd()
7542
 
7543
  def write(self, oprot):
7544
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7545
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7546
      return
7547
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7548
    if self.success is not None:
1590 varun.gupt 7549
      oprot.writeFieldBegin('success', TType.LIST, 0)
7550
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 7551
      for iter117 in self.success:
7552
        iter117.write(oprot)
1590 varun.gupt 7553
      oprot.writeListEnd()
7554
      oprot.writeFieldEnd()
3431 rajveer 7555
    if self.ucx is not None:
1590 varun.gupt 7556
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7557
      self.ucx.write(oprot)
7558
      oprot.writeFieldEnd()
7559
    oprot.writeFieldStop()
7560
    oprot.writeStructEnd()
7561
 
3431 rajveer 7562
  def validate(self):
7563
    return
7564
 
7565
 
1590 varun.gupt 7566
  def __repr__(self):
7567
    L = ['%s=%r' % (key, value)
7568
      for key, value in self.__dict__.iteritems()]
7569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7570
 
7571
  def __eq__(self, other):
7572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7573
 
7574
  def __ne__(self, other):
7575
    return not (self == other)
7576
 
5407 amar.kumar 7577
class removeUserCommunication_args:
7578
  """
7579
  Attributes:
7580
   - id
7581
  """
7582
 
7583
  thrift_spec = (
7584
    None, # 0
7585
    (1, TType.I64, 'id', None, None, ), # 1
7586
  )
7587
 
7588
  def __init__(self, id=None,):
7589
    self.id = id
7590
 
7591
  def read(self, iprot):
7592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7594
      return
7595
    iprot.readStructBegin()
7596
    while True:
7597
      (fname, ftype, fid) = iprot.readFieldBegin()
7598
      if ftype == TType.STOP:
7599
        break
7600
      if fid == 1:
7601
        if ftype == TType.I64:
7602
          self.id = iprot.readI64();
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_args')
7615
    if self.id is not None:
7616
      oprot.writeFieldBegin('id', TType.I64, 1)
7617
      oprot.writeI64(self.id)
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
 
7637
class removeUserCommunication_result:
7638
  """
7639
  Attributes:
7640
   - ucx
7641
  """
7642
 
7643
  thrift_spec = (
7644
    None, # 0
7645
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7646
  )
7647
 
7648
  def __init__(self, ucx=None,):
7649
    self.ucx = ucx
7650
 
7651
  def read(self, iprot):
7652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7654
      return
7655
    iprot.readStructBegin()
7656
    while True:
7657
      (fname, ftype, fid) = iprot.readFieldBegin()
7658
      if ftype == TType.STOP:
7659
        break
7660
      if fid == 1:
7661
        if ftype == TType.STRUCT:
7662
          self.ucx = UserCommunicationException()
7663
          self.ucx.read(iprot)
7664
        else:
7665
          iprot.skip(ftype)
7666
      else:
7667
        iprot.skip(ftype)
7668
      iprot.readFieldEnd()
7669
    iprot.readStructEnd()
7670
 
7671
  def write(self, oprot):
7672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7674
      return
7675
    oprot.writeStructBegin('removeUserCommunication_result')
7676
    if self.ucx is not None:
7677
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7678
      self.ucx.write(oprot)
7679
      oprot.writeFieldEnd()
7680
    oprot.writeFieldStop()
7681
    oprot.writeStructEnd()
7682
 
7683
  def validate(self):
7684
    return
7685
 
7686
 
7687
  def __repr__(self):
7688
    L = ['%s=%r' % (key, value)
7689
      for key, value in self.__dict__.iteritems()]
7690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7691
 
7692
  def __eq__(self, other):
7693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7694
 
7695
  def __ne__(self, other):
7696
    return not (self == other)
7697
 
1845 vikas 7698
class createMasterAffiliate_args:
7699
  """
7700
  Attributes:
7701
   - name
1859 vikas 7702
   - addedOn
1845 vikas 7703
  """
7704
 
7705
  thrift_spec = (
7706
    None, # 0
7707
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7708
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7709
  )
7710
 
1859 vikas 7711
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7712
    self.name = name
1859 vikas 7713
    self.addedOn = addedOn
1845 vikas 7714
 
7715
  def read(self, iprot):
7716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7718
      return
7719
    iprot.readStructBegin()
7720
    while True:
7721
      (fname, ftype, fid) = iprot.readFieldBegin()
7722
      if ftype == TType.STOP:
7723
        break
7724
      if fid == 1:
7725
        if ftype == TType.STRING:
7726
          self.name = iprot.readString();
7727
        else:
7728
          iprot.skip(ftype)
1859 vikas 7729
      elif fid == 2:
7730
        if ftype == TType.I64:
7731
          self.addedOn = iprot.readI64();
7732
        else:
7733
          iprot.skip(ftype)
1845 vikas 7734
      else:
7735
        iprot.skip(ftype)
7736
      iprot.readFieldEnd()
7737
    iprot.readStructEnd()
7738
 
7739
  def write(self, oprot):
7740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7742
      return
7743
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7744
    if self.name is not None:
1845 vikas 7745
      oprot.writeFieldBegin('name', TType.STRING, 1)
7746
      oprot.writeString(self.name)
7747
      oprot.writeFieldEnd()
3431 rajveer 7748
    if self.addedOn is not None:
1859 vikas 7749
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7750
      oprot.writeI64(self.addedOn)
7751
      oprot.writeFieldEnd()
1845 vikas 7752
    oprot.writeFieldStop()
7753
    oprot.writeStructEnd()
7754
 
3431 rajveer 7755
  def validate(self):
7756
    return
7757
 
7758
 
1845 vikas 7759
  def __repr__(self):
7760
    L = ['%s=%r' % (key, value)
7761
      for key, value in self.__dict__.iteritems()]
7762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7763
 
7764
  def __eq__(self, other):
7765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7766
 
7767
  def __ne__(self, other):
7768
    return not (self == other)
7769
 
7770
class createMasterAffiliate_result:
7771
  """
7772
  Attributes:
7773
   - success
7774
   - utx
7775
  """
7776
 
7777
  thrift_spec = (
7778
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7779
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7780
  )
7781
 
7782
  def __init__(self, success=None, utx=None,):
7783
    self.success = success
7784
    self.utx = utx
7785
 
7786
  def read(self, iprot):
7787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7789
      return
7790
    iprot.readStructBegin()
7791
    while True:
7792
      (fname, ftype, fid) = iprot.readFieldBegin()
7793
      if ftype == TType.STOP:
7794
        break
7795
      if fid == 0:
7796
        if ftype == TType.STRUCT:
7797
          self.success = MasterAffiliate()
7798
          self.success.read(iprot)
7799
        else:
7800
          iprot.skip(ftype)
7801
      elif fid == 1:
7802
        if ftype == TType.STRUCT:
1996 vikas 7803
          self.utx = UserAffiliateException()
1845 vikas 7804
          self.utx.read(iprot)
7805
        else:
7806
          iprot.skip(ftype)
7807
      else:
7808
        iprot.skip(ftype)
7809
      iprot.readFieldEnd()
7810
    iprot.readStructEnd()
7811
 
7812
  def write(self, oprot):
7813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7815
      return
7816
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7817
    if self.success is not None:
1845 vikas 7818
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7819
      self.success.write(oprot)
7820
      oprot.writeFieldEnd()
3431 rajveer 7821
    if self.utx is not None:
1845 vikas 7822
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7823
      self.utx.write(oprot)
7824
      oprot.writeFieldEnd()
7825
    oprot.writeFieldStop()
7826
    oprot.writeStructEnd()
7827
 
3431 rajveer 7828
  def validate(self):
7829
    return
7830
 
7831
 
1845 vikas 7832
  def __repr__(self):
7833
    L = ['%s=%r' % (key, value)
7834
      for key, value in self.__dict__.iteritems()]
7835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7836
 
7837
  def __eq__(self, other):
7838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7839
 
7840
  def __ne__(self, other):
7841
    return not (self == other)
7842
 
1899 vikas 7843
class getAllMasterAffiliates_args:
7844
 
7845
  thrift_spec = (
7846
  )
7847
 
7848
  def read(self, iprot):
7849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7851
      return
7852
    iprot.readStructBegin()
7853
    while True:
7854
      (fname, ftype, fid) = iprot.readFieldBegin()
7855
      if ftype == TType.STOP:
7856
        break
7857
      else:
7858
        iprot.skip(ftype)
7859
      iprot.readFieldEnd()
7860
    iprot.readStructEnd()
7861
 
7862
  def write(self, oprot):
7863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7865
      return
7866
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7867
    oprot.writeFieldStop()
7868
    oprot.writeStructEnd()
7869
 
3431 rajveer 7870
  def validate(self):
7871
    return
7872
 
7873
 
1899 vikas 7874
  def __repr__(self):
7875
    L = ['%s=%r' % (key, value)
7876
      for key, value in self.__dict__.iteritems()]
7877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7878
 
7879
  def __eq__(self, other):
7880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7881
 
7882
  def __ne__(self, other):
7883
    return not (self == other)
7884
 
7885
class getAllMasterAffiliates_result:
7886
  """
7887
  Attributes:
7888
   - success
7889
   - utx
7890
  """
7891
 
7892
  thrift_spec = (
7893
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7894
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7895
  )
7896
 
7897
  def __init__(self, success=None, utx=None,):
7898
    self.success = success
7899
    self.utx = utx
7900
 
7901
  def read(self, iprot):
7902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7904
      return
7905
    iprot.readStructBegin()
7906
    while True:
7907
      (fname, ftype, fid) = iprot.readFieldBegin()
7908
      if ftype == TType.STOP:
7909
        break
7910
      if fid == 0:
7911
        if ftype == TType.LIST:
7912
          self.success = []
11592 amit.gupta 7913
          (_etype121, _size118) = iprot.readListBegin()
7914
          for _i122 in xrange(_size118):
7915
            _elem123 = MasterAffiliate()
7916
            _elem123.read(iprot)
7917
            self.success.append(_elem123)
1899 vikas 7918
          iprot.readListEnd()
7919
        else:
7920
          iprot.skip(ftype)
7921
      elif fid == 1:
7922
        if ftype == TType.STRUCT:
1996 vikas 7923
          self.utx = UserAffiliateException()
1899 vikas 7924
          self.utx.read(iprot)
7925
        else:
7926
          iprot.skip(ftype)
7927
      else:
7928
        iprot.skip(ftype)
7929
      iprot.readFieldEnd()
7930
    iprot.readStructEnd()
7931
 
7932
  def write(self, oprot):
7933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7935
      return
7936
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7937
    if self.success is not None:
1899 vikas 7938
      oprot.writeFieldBegin('success', TType.LIST, 0)
7939
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 7940
      for iter124 in self.success:
7941
        iter124.write(oprot)
1899 vikas 7942
      oprot.writeListEnd()
7943
      oprot.writeFieldEnd()
3431 rajveer 7944
    if self.utx is not None:
1899 vikas 7945
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7946
      self.utx.write(oprot)
7947
      oprot.writeFieldEnd()
7948
    oprot.writeFieldStop()
7949
    oprot.writeStructEnd()
7950
 
3431 rajveer 7951
  def validate(self):
7952
    return
7953
 
7954
 
1899 vikas 7955
  def __repr__(self):
7956
    L = ['%s=%r' % (key, value)
7957
      for key, value in self.__dict__.iteritems()]
7958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7959
 
7960
  def __eq__(self, other):
7961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7962
 
7963
  def __ne__(self, other):
7964
    return not (self == other)
7965
 
1845 vikas 7966
class getMasterAffiliateById_args:
7967
  """
7968
  Attributes:
7969
   - id
7970
  """
7971
 
7972
  thrift_spec = (
7973
    None, # 0
7974
    (1, TType.I64, 'id', None, None, ), # 1
7975
  )
7976
 
7977
  def __init__(self, id=None,):
7978
    self.id = id
7979
 
7980
  def read(self, iprot):
7981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7983
      return
7984
    iprot.readStructBegin()
7985
    while True:
7986
      (fname, ftype, fid) = iprot.readFieldBegin()
7987
      if ftype == TType.STOP:
7988
        break
7989
      if fid == 1:
7990
        if ftype == TType.I64:
7991
          self.id = iprot.readI64();
7992
        else:
7993
          iprot.skip(ftype)
7994
      else:
7995
        iprot.skip(ftype)
7996
      iprot.readFieldEnd()
7997
    iprot.readStructEnd()
7998
 
7999
  def write(self, oprot):
8000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8002
      return
8003
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 8004
    if self.id is not None:
1845 vikas 8005
      oprot.writeFieldBegin('id', TType.I64, 1)
8006
      oprot.writeI64(self.id)
8007
      oprot.writeFieldEnd()
8008
    oprot.writeFieldStop()
8009
    oprot.writeStructEnd()
8010
 
3431 rajveer 8011
  def validate(self):
8012
    return
8013
 
8014
 
1845 vikas 8015
  def __repr__(self):
8016
    L = ['%s=%r' % (key, value)
8017
      for key, value in self.__dict__.iteritems()]
8018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8019
 
8020
  def __eq__(self, other):
8021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8022
 
8023
  def __ne__(self, other):
8024
    return not (self == other)
8025
 
8026
class getMasterAffiliateById_result:
8027
  """
8028
  Attributes:
8029
   - success
8030
   - utx
8031
  """
8032
 
8033
  thrift_spec = (
8034
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8035
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8036
  )
8037
 
8038
  def __init__(self, success=None, utx=None,):
8039
    self.success = success
8040
    self.utx = utx
8041
 
8042
  def read(self, iprot):
8043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8045
      return
8046
    iprot.readStructBegin()
8047
    while True:
8048
      (fname, ftype, fid) = iprot.readFieldBegin()
8049
      if ftype == TType.STOP:
8050
        break
8051
      if fid == 0:
8052
        if ftype == TType.STRUCT:
8053
          self.success = MasterAffiliate()
8054
          self.success.read(iprot)
8055
        else:
8056
          iprot.skip(ftype)
8057
      elif fid == 1:
8058
        if ftype == TType.STRUCT:
1996 vikas 8059
          self.utx = UserAffiliateException()
1845 vikas 8060
          self.utx.read(iprot)
8061
        else:
8062
          iprot.skip(ftype)
8063
      else:
8064
        iprot.skip(ftype)
8065
      iprot.readFieldEnd()
8066
    iprot.readStructEnd()
8067
 
8068
  def write(self, oprot):
8069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8071
      return
8072
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 8073
    if self.success is not None:
1845 vikas 8074
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8075
      self.success.write(oprot)
8076
      oprot.writeFieldEnd()
3431 rajveer 8077
    if self.utx is not None:
1845 vikas 8078
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8079
      self.utx.write(oprot)
8080
      oprot.writeFieldEnd()
8081
    oprot.writeFieldStop()
8082
    oprot.writeStructEnd()
8083
 
3431 rajveer 8084
  def validate(self):
8085
    return
8086
 
8087
 
1845 vikas 8088
  def __repr__(self):
8089
    L = ['%s=%r' % (key, value)
8090
      for key, value in self.__dict__.iteritems()]
8091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8092
 
8093
  def __eq__(self, other):
8094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8095
 
8096
  def __ne__(self, other):
8097
    return not (self == other)
8098
 
8099
class getMasterAffiliateByName_args:
8100
  """
8101
  Attributes:
8102
   - name
8103
  """
8104
 
8105
  thrift_spec = (
8106
    None, # 0
8107
    (1, TType.STRING, 'name', None, None, ), # 1
8108
  )
8109
 
8110
  def __init__(self, name=None,):
8111
    self.name = name
8112
 
8113
  def read(self, iprot):
8114
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8115
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8116
      return
8117
    iprot.readStructBegin()
8118
    while True:
8119
      (fname, ftype, fid) = iprot.readFieldBegin()
8120
      if ftype == TType.STOP:
8121
        break
8122
      if fid == 1:
8123
        if ftype == TType.STRING:
8124
          self.name = iprot.readString();
8125
        else:
8126
          iprot.skip(ftype)
8127
      else:
8128
        iprot.skip(ftype)
8129
      iprot.readFieldEnd()
8130
    iprot.readStructEnd()
8131
 
8132
  def write(self, oprot):
8133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8135
      return
8136
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8137
    if self.name is not None:
1845 vikas 8138
      oprot.writeFieldBegin('name', TType.STRING, 1)
8139
      oprot.writeString(self.name)
8140
      oprot.writeFieldEnd()
8141
    oprot.writeFieldStop()
8142
    oprot.writeStructEnd()
8143
 
3431 rajveer 8144
  def validate(self):
8145
    return
8146
 
8147
 
1845 vikas 8148
  def __repr__(self):
8149
    L = ['%s=%r' % (key, value)
8150
      for key, value in self.__dict__.iteritems()]
8151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8152
 
8153
  def __eq__(self, other):
8154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8155
 
8156
  def __ne__(self, other):
8157
    return not (self == other)
8158
 
8159
class getMasterAffiliateByName_result:
8160
  """
8161
  Attributes:
8162
   - success
8163
   - utx
8164
  """
8165
 
8166
  thrift_spec = (
8167
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8168
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8169
  )
8170
 
8171
  def __init__(self, success=None, utx=None,):
8172
    self.success = success
8173
    self.utx = utx
8174
 
8175
  def read(self, iprot):
8176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8178
      return
8179
    iprot.readStructBegin()
8180
    while True:
8181
      (fname, ftype, fid) = iprot.readFieldBegin()
8182
      if ftype == TType.STOP:
8183
        break
8184
      if fid == 0:
8185
        if ftype == TType.STRUCT:
8186
          self.success = MasterAffiliate()
8187
          self.success.read(iprot)
8188
        else:
8189
          iprot.skip(ftype)
8190
      elif fid == 1:
8191
        if ftype == TType.STRUCT:
1996 vikas 8192
          self.utx = UserAffiliateException()
1845 vikas 8193
          self.utx.read(iprot)
8194
        else:
8195
          iprot.skip(ftype)
8196
      else:
8197
        iprot.skip(ftype)
8198
      iprot.readFieldEnd()
8199
    iprot.readStructEnd()
8200
 
8201
  def write(self, oprot):
8202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8204
      return
8205
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8206
    if self.success is not None:
1845 vikas 8207
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8208
      self.success.write(oprot)
8209
      oprot.writeFieldEnd()
3431 rajveer 8210
    if self.utx is not None:
1845 vikas 8211
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8212
      self.utx.write(oprot)
8213
      oprot.writeFieldEnd()
8214
    oprot.writeFieldStop()
8215
    oprot.writeStructEnd()
8216
 
3431 rajveer 8217
  def validate(self):
8218
    return
8219
 
8220
 
1845 vikas 8221
  def __repr__(self):
8222
    L = ['%s=%r' % (key, value)
8223
      for key, value in self.__dict__.iteritems()]
8224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8225
 
8226
  def __eq__(self, other):
8227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8228
 
8229
  def __ne__(self, other):
8230
    return not (self == other)
8231
 
8232
class createAffiliate_args:
8233
  """
8234
  Attributes:
8235
   - name
8236
   - url
8237
   - masterAffiliateId
1859 vikas 8238
   - addedOn
1845 vikas 8239
  """
8240
 
8241
  thrift_spec = (
8242
    None, # 0
8243
    (1, TType.STRING, 'name', None, None, ), # 1
8244
    (2, TType.STRING, 'url', None, None, ), # 2
8245
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8246
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8247
  )
8248
 
1859 vikas 8249
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8250
    self.name = name
8251
    self.url = url
8252
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8253
    self.addedOn = addedOn
1845 vikas 8254
 
8255
  def read(self, iprot):
8256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8258
      return
8259
    iprot.readStructBegin()
8260
    while True:
8261
      (fname, ftype, fid) = iprot.readFieldBegin()
8262
      if ftype == TType.STOP:
8263
        break
8264
      if fid == 1:
8265
        if ftype == TType.STRING:
8266
          self.name = iprot.readString();
8267
        else:
8268
          iprot.skip(ftype)
8269
      elif fid == 2:
8270
        if ftype == TType.STRING:
8271
          self.url = iprot.readString();
8272
        else:
8273
          iprot.skip(ftype)
8274
      elif fid == 3:
8275
        if ftype == TType.I64:
8276
          self.masterAffiliateId = iprot.readI64();
8277
        else:
8278
          iprot.skip(ftype)
1859 vikas 8279
      elif fid == 4:
8280
        if ftype == TType.I64:
8281
          self.addedOn = iprot.readI64();
8282
        else:
8283
          iprot.skip(ftype)
1845 vikas 8284
      else:
8285
        iprot.skip(ftype)
8286
      iprot.readFieldEnd()
8287
    iprot.readStructEnd()
8288
 
8289
  def write(self, oprot):
8290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8292
      return
8293
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8294
    if self.name is not None:
1845 vikas 8295
      oprot.writeFieldBegin('name', TType.STRING, 1)
8296
      oprot.writeString(self.name)
8297
      oprot.writeFieldEnd()
3431 rajveer 8298
    if self.url is not None:
1845 vikas 8299
      oprot.writeFieldBegin('url', TType.STRING, 2)
8300
      oprot.writeString(self.url)
8301
      oprot.writeFieldEnd()
3431 rajveer 8302
    if self.masterAffiliateId is not None:
1845 vikas 8303
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8304
      oprot.writeI64(self.masterAffiliateId)
8305
      oprot.writeFieldEnd()
3431 rajveer 8306
    if self.addedOn is not None:
1859 vikas 8307
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8308
      oprot.writeI64(self.addedOn)
8309
      oprot.writeFieldEnd()
1845 vikas 8310
    oprot.writeFieldStop()
8311
    oprot.writeStructEnd()
8312
 
3431 rajveer 8313
  def validate(self):
8314
    return
8315
 
8316
 
1845 vikas 8317
  def __repr__(self):
8318
    L = ['%s=%r' % (key, value)
8319
      for key, value in self.__dict__.iteritems()]
8320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8321
 
8322
  def __eq__(self, other):
8323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8324
 
8325
  def __ne__(self, other):
8326
    return not (self == other)
8327
 
8328
class createAffiliate_result:
8329
  """
8330
  Attributes:
8331
   - success
8332
   - utx
8333
  """
8334
 
8335
  thrift_spec = (
8336
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8337
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8338
  )
8339
 
8340
  def __init__(self, success=None, utx=None,):
8341
    self.success = success
8342
    self.utx = utx
8343
 
8344
  def read(self, iprot):
8345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8347
      return
8348
    iprot.readStructBegin()
8349
    while True:
8350
      (fname, ftype, fid) = iprot.readFieldBegin()
8351
      if ftype == TType.STOP:
8352
        break
8353
      if fid == 0:
8354
        if ftype == TType.STRUCT:
8355
          self.success = Affiliate()
8356
          self.success.read(iprot)
8357
        else:
8358
          iprot.skip(ftype)
8359
      elif fid == 1:
8360
        if ftype == TType.STRUCT:
1996 vikas 8361
          self.utx = UserAffiliateException()
1845 vikas 8362
          self.utx.read(iprot)
8363
        else:
8364
          iprot.skip(ftype)
8365
      else:
8366
        iprot.skip(ftype)
8367
      iprot.readFieldEnd()
8368
    iprot.readStructEnd()
8369
 
8370
  def write(self, oprot):
8371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8373
      return
8374
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8375
    if self.success is not None:
1845 vikas 8376
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8377
      self.success.write(oprot)
8378
      oprot.writeFieldEnd()
3431 rajveer 8379
    if self.utx is not None:
1845 vikas 8380
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8381
      self.utx.write(oprot)
8382
      oprot.writeFieldEnd()
8383
    oprot.writeFieldStop()
8384
    oprot.writeStructEnd()
8385
 
3431 rajveer 8386
  def validate(self):
8387
    return
8388
 
8389
 
1845 vikas 8390
  def __repr__(self):
8391
    L = ['%s=%r' % (key, value)
8392
      for key, value in self.__dict__.iteritems()]
8393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8394
 
8395
  def __eq__(self, other):
8396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8397
 
8398
  def __ne__(self, other):
8399
    return not (self == other)
8400
 
8401
class getAffiliateById_args:
8402
  """
8403
  Attributes:
8404
   - id
8405
  """
8406
 
8407
  thrift_spec = (
8408
    None, # 0
8409
    (1, TType.I64, 'id', None, None, ), # 1
8410
  )
8411
 
8412
  def __init__(self, id=None,):
8413
    self.id = id
8414
 
8415
  def read(self, iprot):
8416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8418
      return
8419
    iprot.readStructBegin()
8420
    while True:
8421
      (fname, ftype, fid) = iprot.readFieldBegin()
8422
      if ftype == TType.STOP:
8423
        break
8424
      if fid == 1:
8425
        if ftype == TType.I64:
8426
          self.id = iprot.readI64();
8427
        else:
8428
          iprot.skip(ftype)
8429
      else:
8430
        iprot.skip(ftype)
8431
      iprot.readFieldEnd()
8432
    iprot.readStructEnd()
8433
 
8434
  def write(self, oprot):
8435
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8436
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8437
      return
8438
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8439
    if self.id is not None:
1845 vikas 8440
      oprot.writeFieldBegin('id', TType.I64, 1)
8441
      oprot.writeI64(self.id)
8442
      oprot.writeFieldEnd()
8443
    oprot.writeFieldStop()
8444
    oprot.writeStructEnd()
8445
 
3431 rajveer 8446
  def validate(self):
8447
    return
8448
 
8449
 
1845 vikas 8450
  def __repr__(self):
8451
    L = ['%s=%r' % (key, value)
8452
      for key, value in self.__dict__.iteritems()]
8453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8454
 
8455
  def __eq__(self, other):
8456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8457
 
8458
  def __ne__(self, other):
8459
    return not (self == other)
8460
 
8461
class getAffiliateById_result:
8462
  """
8463
  Attributes:
8464
   - success
8465
   - utx
8466
  """
8467
 
8468
  thrift_spec = (
8469
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8470
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8471
  )
8472
 
8473
  def __init__(self, success=None, utx=None,):
8474
    self.success = success
8475
    self.utx = utx
8476
 
8477
  def read(self, iprot):
8478
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8479
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8480
      return
8481
    iprot.readStructBegin()
8482
    while True:
8483
      (fname, ftype, fid) = iprot.readFieldBegin()
8484
      if ftype == TType.STOP:
8485
        break
8486
      if fid == 0:
8487
        if ftype == TType.STRUCT:
8488
          self.success = Affiliate()
8489
          self.success.read(iprot)
8490
        else:
8491
          iprot.skip(ftype)
8492
      elif fid == 1:
8493
        if ftype == TType.STRUCT:
1996 vikas 8494
          self.utx = UserAffiliateException()
1845 vikas 8495
          self.utx.read(iprot)
8496
        else:
8497
          iprot.skip(ftype)
8498
      else:
8499
        iprot.skip(ftype)
8500
      iprot.readFieldEnd()
8501
    iprot.readStructEnd()
8502
 
8503
  def write(self, oprot):
8504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8506
      return
8507
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8508
    if self.success is not None:
1845 vikas 8509
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8510
      self.success.write(oprot)
8511
      oprot.writeFieldEnd()
3431 rajveer 8512
    if self.utx is not None:
1845 vikas 8513
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8514
      self.utx.write(oprot)
8515
      oprot.writeFieldEnd()
8516
    oprot.writeFieldStop()
8517
    oprot.writeStructEnd()
8518
 
3431 rajveer 8519
  def validate(self):
8520
    return
8521
 
8522
 
1845 vikas 8523
  def __repr__(self):
8524
    L = ['%s=%r' % (key, value)
8525
      for key, value in self.__dict__.iteritems()]
8526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8527
 
8528
  def __eq__(self, other):
8529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8530
 
8531
  def __ne__(self, other):
8532
    return not (self == other)
8533
 
8534
class getAffiliateByName_args:
8535
  """
8536
  Attributes:
8537
   - name
8538
  """
8539
 
8540
  thrift_spec = (
8541
    None, # 0
8542
    (1, TType.STRING, 'name', None, None, ), # 1
8543
  )
8544
 
8545
  def __init__(self, name=None,):
8546
    self.name = name
8547
 
8548
  def read(self, iprot):
8549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8551
      return
8552
    iprot.readStructBegin()
8553
    while True:
8554
      (fname, ftype, fid) = iprot.readFieldBegin()
8555
      if ftype == TType.STOP:
8556
        break
8557
      if fid == 1:
8558
        if ftype == TType.STRING:
8559
          self.name = iprot.readString();
8560
        else:
8561
          iprot.skip(ftype)
8562
      else:
8563
        iprot.skip(ftype)
8564
      iprot.readFieldEnd()
8565
    iprot.readStructEnd()
8566
 
8567
  def write(self, oprot):
8568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8570
      return
8571
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8572
    if self.name is not None:
1845 vikas 8573
      oprot.writeFieldBegin('name', TType.STRING, 1)
8574
      oprot.writeString(self.name)
8575
      oprot.writeFieldEnd()
8576
    oprot.writeFieldStop()
8577
    oprot.writeStructEnd()
8578
 
3431 rajveer 8579
  def validate(self):
8580
    return
8581
 
8582
 
1845 vikas 8583
  def __repr__(self):
8584
    L = ['%s=%r' % (key, value)
8585
      for key, value in self.__dict__.iteritems()]
8586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8587
 
8588
  def __eq__(self, other):
8589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8590
 
8591
  def __ne__(self, other):
8592
    return not (self == other)
8593
 
8594
class getAffiliateByName_result:
8595
  """
8596
  Attributes:
8597
   - success
8598
   - utx
8599
  """
8600
 
8601
  thrift_spec = (
8602
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8603
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8604
  )
8605
 
8606
  def __init__(self, success=None, utx=None,):
8607
    self.success = success
8608
    self.utx = utx
8609
 
8610
  def read(self, iprot):
8611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8613
      return
8614
    iprot.readStructBegin()
8615
    while True:
8616
      (fname, ftype, fid) = iprot.readFieldBegin()
8617
      if ftype == TType.STOP:
8618
        break
8619
      if fid == 0:
8620
        if ftype == TType.STRUCT:
8621
          self.success = Affiliate()
8622
          self.success.read(iprot)
8623
        else:
8624
          iprot.skip(ftype)
8625
      elif fid == 1:
8626
        if ftype == TType.STRUCT:
1996 vikas 8627
          self.utx = UserAffiliateException()
1845 vikas 8628
          self.utx.read(iprot)
8629
        else:
8630
          iprot.skip(ftype)
8631
      else:
8632
        iprot.skip(ftype)
8633
      iprot.readFieldEnd()
8634
    iprot.readStructEnd()
8635
 
8636
  def write(self, oprot):
8637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8639
      return
8640
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8641
    if self.success is not None:
1845 vikas 8642
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8643
      self.success.write(oprot)
8644
      oprot.writeFieldEnd()
3431 rajveer 8645
    if self.utx is not None:
1845 vikas 8646
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8647
      self.utx.write(oprot)
8648
      oprot.writeFieldEnd()
8649
    oprot.writeFieldStop()
8650
    oprot.writeStructEnd()
8651
 
3431 rajveer 8652
  def validate(self):
8653
    return
8654
 
8655
 
1845 vikas 8656
  def __repr__(self):
8657
    L = ['%s=%r' % (key, value)
8658
      for key, value in self.__dict__.iteritems()]
8659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8660
 
8661
  def __eq__(self, other):
8662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8663
 
8664
  def __ne__(self, other):
8665
    return not (self == other)
8666
 
1996 vikas 8667
class getTrackerById_args:
1845 vikas 8668
  """
8669
  Attributes:
8670
   - id
8671
  """
8672
 
8673
  thrift_spec = (
8674
    None, # 0
8675
    (1, TType.I64, 'id', None, None, ), # 1
8676
  )
8677
 
8678
  def __init__(self, id=None,):
8679
    self.id = id
8680
 
8681
  def read(self, iprot):
8682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8684
      return
8685
    iprot.readStructBegin()
8686
    while True:
8687
      (fname, ftype, fid) = iprot.readFieldBegin()
8688
      if ftype == TType.STOP:
8689
        break
8690
      if fid == 1:
8691
        if ftype == TType.I64:
8692
          self.id = iprot.readI64();
8693
        else:
8694
          iprot.skip(ftype)
8695
      else:
8696
        iprot.skip(ftype)
8697
      iprot.readFieldEnd()
8698
    iprot.readStructEnd()
8699
 
8700
  def write(self, oprot):
8701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8703
      return
1996 vikas 8704
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8705
    if self.id is not None:
1845 vikas 8706
      oprot.writeFieldBegin('id', TType.I64, 1)
8707
      oprot.writeI64(self.id)
8708
      oprot.writeFieldEnd()
8709
    oprot.writeFieldStop()
8710
    oprot.writeStructEnd()
8711
 
3431 rajveer 8712
  def validate(self):
8713
    return
8714
 
8715
 
1845 vikas 8716
  def __repr__(self):
8717
    L = ['%s=%r' % (key, value)
8718
      for key, value in self.__dict__.iteritems()]
8719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8720
 
8721
  def __eq__(self, other):
8722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8723
 
8724
  def __ne__(self, other):
8725
    return not (self == other)
8726
 
8727
class getTrackerById_result:
8728
  """
8729
  Attributes:
8730
   - success
8731
   - utx
8732
  """
8733
 
8734
  thrift_spec = (
8735
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8736
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8737
  )
8738
 
8739
  def __init__(self, success=None, utx=None,):
8740
    self.success = success
8741
    self.utx = utx
8742
 
8743
  def read(self, iprot):
8744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8746
      return
8747
    iprot.readStructBegin()
8748
    while True:
8749
      (fname, ftype, fid) = iprot.readFieldBegin()
8750
      if ftype == TType.STOP:
8751
        break
8752
      if fid == 0:
8753
        if ftype == TType.STRUCT:
8754
          self.success = Tracker()
8755
          self.success.read(iprot)
8756
        else:
8757
          iprot.skip(ftype)
8758
      elif fid == 1:
8759
        if ftype == TType.STRUCT:
1996 vikas 8760
          self.utx = UserAffiliateException()
1845 vikas 8761
          self.utx.read(iprot)
8762
        else:
8763
          iprot.skip(ftype)
8764
      else:
8765
        iprot.skip(ftype)
8766
      iprot.readFieldEnd()
8767
    iprot.readStructEnd()
8768
 
8769
  def write(self, oprot):
8770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8772
      return
8773
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8774
    if self.success is not None:
1845 vikas 8775
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8776
      self.success.write(oprot)
8777
      oprot.writeFieldEnd()
3431 rajveer 8778
    if self.utx is not None:
1845 vikas 8779
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8780
      self.utx.write(oprot)
8781
      oprot.writeFieldEnd()
8782
    oprot.writeFieldStop()
8783
    oprot.writeStructEnd()
8784
 
3431 rajveer 8785
  def validate(self):
8786
    return
8787
 
8788
 
1845 vikas 8789
  def __repr__(self):
8790
    L = ['%s=%r' % (key, value)
8791
      for key, value in self.__dict__.iteritems()]
8792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8793
 
8794
  def __eq__(self, other):
8795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8796
 
8797
  def __ne__(self, other):
8798
    return not (self == other)
8799
 
1996 vikas 8800
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8801
  """
8802
  Attributes:
1996 vikas 8803
   - id
1845 vikas 8804
  """
8805
 
8806
  thrift_spec = (
8807
    None, # 0
1996 vikas 8808
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8809
  )
8810
 
1996 vikas 8811
  def __init__(self, id=None,):
8812
    self.id = id
1845 vikas 8813
 
8814
  def read(self, iprot):
8815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8817
      return
8818
    iprot.readStructBegin()
8819
    while True:
8820
      (fname, ftype, fid) = iprot.readFieldBegin()
8821
      if ftype == TType.STOP:
8822
        break
8823
      if fid == 1:
8824
        if ftype == TType.I64:
1996 vikas 8825
          self.id = iprot.readI64();
1845 vikas 8826
        else:
8827
          iprot.skip(ftype)
8828
      else:
8829
        iprot.skip(ftype)
8830
      iprot.readFieldEnd()
8831
    iprot.readStructEnd()
8832
 
8833
  def write(self, oprot):
8834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8836
      return
1996 vikas 8837
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8838
    if self.id is not None:
1996 vikas 8839
      oprot.writeFieldBegin('id', TType.I64, 1)
8840
      oprot.writeI64(self.id)
1845 vikas 8841
      oprot.writeFieldEnd()
8842
    oprot.writeFieldStop()
8843
    oprot.writeStructEnd()
8844
 
3431 rajveer 8845
  def validate(self):
8846
    return
8847
 
8848
 
1845 vikas 8849
  def __repr__(self):
8850
    L = ['%s=%r' % (key, value)
8851
      for key, value in self.__dict__.iteritems()]
8852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8853
 
8854
  def __eq__(self, other):
8855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8856
 
8857
  def __ne__(self, other):
8858
    return not (self == other)
8859
 
1996 vikas 8860
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8861
  """
8862
  Attributes:
8863
   - success
8864
   - utx
8865
  """
8866
 
8867
  thrift_spec = (
1996 vikas 8868
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8869
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8870
  )
8871
 
8872
  def __init__(self, success=None, utx=None,):
8873
    self.success = success
8874
    self.utx = utx
8875
 
8876
  def read(self, iprot):
8877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8879
      return
8880
    iprot.readStructBegin()
8881
    while True:
8882
      (fname, ftype, fid) = iprot.readFieldBegin()
8883
      if ftype == TType.STOP:
8884
        break
8885
      if fid == 0:
8886
        if ftype == TType.LIST:
8887
          self.success = []
11592 amit.gupta 8888
          (_etype128, _size125) = iprot.readListBegin()
8889
          for _i129 in xrange(_size125):
8890
            _elem130 = Affiliate()
8891
            _elem130.read(iprot)
8892
            self.success.append(_elem130)
1845 vikas 8893
          iprot.readListEnd()
8894
        else:
8895
          iprot.skip(ftype)
8896
      elif fid == 1:
8897
        if ftype == TType.STRUCT:
1996 vikas 8898
          self.utx = UserAffiliateException()
1845 vikas 8899
          self.utx.read(iprot)
8900
        else:
8901
          iprot.skip(ftype)
8902
      else:
8903
        iprot.skip(ftype)
8904
      iprot.readFieldEnd()
8905
    iprot.readStructEnd()
8906
 
8907
  def write(self, oprot):
8908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8910
      return
1996 vikas 8911
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8912
    if self.success is not None:
1845 vikas 8913
      oprot.writeFieldBegin('success', TType.LIST, 0)
8914
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 8915
      for iter131 in self.success:
8916
        iter131.write(oprot)
1845 vikas 8917
      oprot.writeListEnd()
8918
      oprot.writeFieldEnd()
3431 rajveer 8919
    if self.utx is not None:
1845 vikas 8920
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8921
      self.utx.write(oprot)
8922
      oprot.writeFieldEnd()
8923
    oprot.writeFieldStop()
8924
    oprot.writeStructEnd()
8925
 
3431 rajveer 8926
  def validate(self):
8927
    return
8928
 
8929
 
1845 vikas 8930
  def __repr__(self):
8931
    L = ['%s=%r' % (key, value)
8932
      for key, value in self.__dict__.iteritems()]
8933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8934
 
8935
  def __eq__(self, other):
8936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8937
 
8938
  def __ne__(self, other):
8939
    return not (self == other)
8940
 
8941
class addTrackLog_args:
8942
  """
8943
  Attributes:
1996 vikas 8944
   - affiliateId
1845 vikas 8945
   - userId
8946
   - event
8947
   - url
8948
   - data
1859 vikas 8949
   - addedOn
1845 vikas 8950
  """
8951
 
8952
  thrift_spec = (
8953
    None, # 0
1996 vikas 8954
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8955
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8956
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8957
    (4, TType.STRING, 'url', None, None, ), # 4
8958
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8959
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8960
  )
8961
 
1996 vikas 8962
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8963
    self.affiliateId = affiliateId
1845 vikas 8964
    self.userId = userId
8965
    self.event = event
8966
    self.url = url
8967
    self.data = data
1859 vikas 8968
    self.addedOn = addedOn
1845 vikas 8969
 
8970
  def read(self, iprot):
8971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8973
      return
8974
    iprot.readStructBegin()
8975
    while True:
8976
      (fname, ftype, fid) = iprot.readFieldBegin()
8977
      if ftype == TType.STOP:
8978
        break
8979
      if fid == 1:
8980
        if ftype == TType.I64:
1996 vikas 8981
          self.affiliateId = iprot.readI64();
1845 vikas 8982
        else:
8983
          iprot.skip(ftype)
8984
      elif fid == 2:
8985
        if ftype == TType.I64:
8986
          self.userId = iprot.readI64();
8987
        else:
8988
          iprot.skip(ftype)
8989
      elif fid == 3:
3378 vikas 8990
        if ftype == TType.I32:
8991
          self.event = iprot.readI32();
1845 vikas 8992
        else:
8993
          iprot.skip(ftype)
8994
      elif fid == 4:
8995
        if ftype == TType.STRING:
8996
          self.url = iprot.readString();
8997
        else:
8998
          iprot.skip(ftype)
8999
      elif fid == 5:
9000
        if ftype == TType.STRING:
9001
          self.data = iprot.readString();
9002
        else:
9003
          iprot.skip(ftype)
1859 vikas 9004
      elif fid == 6:
9005
        if ftype == TType.I64:
9006
          self.addedOn = iprot.readI64();
9007
        else:
9008
          iprot.skip(ftype)
1845 vikas 9009
      else:
9010
        iprot.skip(ftype)
9011
      iprot.readFieldEnd()
9012
    iprot.readStructEnd()
9013
 
9014
  def write(self, oprot):
9015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9017
      return
9018
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 9019
    if self.affiliateId is not None:
1996 vikas 9020
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9021
      oprot.writeI64(self.affiliateId)
1845 vikas 9022
      oprot.writeFieldEnd()
3431 rajveer 9023
    if self.userId is not None:
1845 vikas 9024
      oprot.writeFieldBegin('userId', TType.I64, 2)
9025
      oprot.writeI64(self.userId)
9026
      oprot.writeFieldEnd()
3431 rajveer 9027
    if self.event is not None:
3378 vikas 9028
      oprot.writeFieldBegin('event', TType.I32, 3)
9029
      oprot.writeI32(self.event)
1845 vikas 9030
      oprot.writeFieldEnd()
3431 rajveer 9031
    if self.url is not None:
1845 vikas 9032
      oprot.writeFieldBegin('url', TType.STRING, 4)
9033
      oprot.writeString(self.url)
9034
      oprot.writeFieldEnd()
3431 rajveer 9035
    if self.data is not None:
1845 vikas 9036
      oprot.writeFieldBegin('data', TType.STRING, 5)
9037
      oprot.writeString(self.data)
9038
      oprot.writeFieldEnd()
3431 rajveer 9039
    if self.addedOn is not None:
1859 vikas 9040
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
9041
      oprot.writeI64(self.addedOn)
9042
      oprot.writeFieldEnd()
1845 vikas 9043
    oprot.writeFieldStop()
9044
    oprot.writeStructEnd()
9045
 
3431 rajveer 9046
  def validate(self):
9047
    return
9048
 
9049
 
1845 vikas 9050
  def __repr__(self):
9051
    L = ['%s=%r' % (key, value)
9052
      for key, value in self.__dict__.iteritems()]
9053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9054
 
9055
  def __eq__(self, other):
9056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9057
 
9058
  def __ne__(self, other):
9059
    return not (self == other)
9060
 
9061
class addTrackLog_result:
9062
  """
9063
  Attributes:
9064
   - success
9065
   - utx
9066
  """
9067
 
9068
  thrift_spec = (
9069
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 9070
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9071
  )
9072
 
9073
  def __init__(self, success=None, utx=None,):
9074
    self.success = success
9075
    self.utx = utx
9076
 
9077
  def read(self, iprot):
9078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9080
      return
9081
    iprot.readStructBegin()
9082
    while True:
9083
      (fname, ftype, fid) = iprot.readFieldBegin()
9084
      if ftype == TType.STOP:
9085
        break
9086
      if fid == 0:
9087
        if ftype == TType.I64:
9088
          self.success = iprot.readI64();
9089
        else:
9090
          iprot.skip(ftype)
9091
      elif fid == 1:
9092
        if ftype == TType.STRUCT:
1996 vikas 9093
          self.utx = UserAffiliateException()
1845 vikas 9094
          self.utx.read(iprot)
9095
        else:
9096
          iprot.skip(ftype)
9097
      else:
9098
        iprot.skip(ftype)
9099
      iprot.readFieldEnd()
9100
    iprot.readStructEnd()
9101
 
9102
  def write(self, oprot):
9103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9105
      return
9106
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 9107
    if self.success is not None:
1845 vikas 9108
      oprot.writeFieldBegin('success', TType.I64, 0)
9109
      oprot.writeI64(self.success)
9110
      oprot.writeFieldEnd()
3431 rajveer 9111
    if self.utx is not None:
1845 vikas 9112
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9113
      self.utx.write(oprot)
9114
      oprot.writeFieldEnd()
9115
    oprot.writeFieldStop()
9116
    oprot.writeStructEnd()
9117
 
3431 rajveer 9118
  def validate(self):
9119
    return
9120
 
9121
 
1845 vikas 9122
  def __repr__(self):
9123
    L = ['%s=%r' % (key, value)
9124
      for key, value in self.__dict__.iteritems()]
9125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9126
 
9127
  def __eq__(self, other):
9128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9129
 
9130
  def __ne__(self, other):
9131
    return not (self == other)
9132
 
9133
class getTrackLogById_args:
9134
  """
9135
  Attributes:
9136
   - id
9137
  """
9138
 
9139
  thrift_spec = (
9140
    None, # 0
9141
    (1, TType.I64, 'id', None, None, ), # 1
9142
  )
9143
 
9144
  def __init__(self, id=None,):
9145
    self.id = id
9146
 
9147
  def read(self, iprot):
9148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9150
      return
9151
    iprot.readStructBegin()
9152
    while True:
9153
      (fname, ftype, fid) = iprot.readFieldBegin()
9154
      if ftype == TType.STOP:
9155
        break
9156
      if fid == 1:
9157
        if ftype == TType.I64:
9158
          self.id = iprot.readI64();
9159
        else:
9160
          iprot.skip(ftype)
9161
      else:
9162
        iprot.skip(ftype)
9163
      iprot.readFieldEnd()
9164
    iprot.readStructEnd()
9165
 
9166
  def write(self, oprot):
9167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9169
      return
9170
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9171
    if self.id is not None:
1845 vikas 9172
      oprot.writeFieldBegin('id', TType.I64, 1)
9173
      oprot.writeI64(self.id)
9174
      oprot.writeFieldEnd()
9175
    oprot.writeFieldStop()
9176
    oprot.writeStructEnd()
9177
 
3431 rajveer 9178
  def validate(self):
9179
    return
9180
 
9181
 
1845 vikas 9182
  def __repr__(self):
9183
    L = ['%s=%r' % (key, value)
9184
      for key, value in self.__dict__.iteritems()]
9185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9186
 
9187
  def __eq__(self, other):
9188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9189
 
9190
  def __ne__(self, other):
9191
    return not (self == other)
9192
 
9193
class getTrackLogById_result:
9194
  """
9195
  Attributes:
9196
   - success
9197
   - utx
9198
  """
9199
 
9200
  thrift_spec = (
9201
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9202
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9203
  )
9204
 
9205
  def __init__(self, success=None, utx=None,):
9206
    self.success = success
9207
    self.utx = utx
9208
 
9209
  def read(self, iprot):
9210
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9211
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9212
      return
9213
    iprot.readStructBegin()
9214
    while True:
9215
      (fname, ftype, fid) = iprot.readFieldBegin()
9216
      if ftype == TType.STOP:
9217
        break
9218
      if fid == 0:
9219
        if ftype == TType.STRUCT:
9220
          self.success = TrackLog()
9221
          self.success.read(iprot)
9222
        else:
9223
          iprot.skip(ftype)
9224
      elif fid == 1:
9225
        if ftype == TType.STRUCT:
1996 vikas 9226
          self.utx = UserAffiliateException()
1845 vikas 9227
          self.utx.read(iprot)
9228
        else:
9229
          iprot.skip(ftype)
9230
      else:
9231
        iprot.skip(ftype)
9232
      iprot.readFieldEnd()
9233
    iprot.readStructEnd()
9234
 
9235
  def write(self, oprot):
9236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9238
      return
9239
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9240
    if self.success is not None:
1845 vikas 9241
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9242
      self.success.write(oprot)
9243
      oprot.writeFieldEnd()
3431 rajveer 9244
    if self.utx is not None:
1845 vikas 9245
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9246
      self.utx.write(oprot)
9247
      oprot.writeFieldEnd()
9248
    oprot.writeFieldStop()
9249
    oprot.writeStructEnd()
9250
 
3431 rajveer 9251
  def validate(self):
9252
    return
9253
 
9254
 
1845 vikas 9255
  def __repr__(self):
9256
    L = ['%s=%r' % (key, value)
9257
      for key, value in self.__dict__.iteritems()]
9258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9259
 
9260
  def __eq__(self, other):
9261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9262
 
9263
  def __ne__(self, other):
9264
    return not (self == other)
9265
 
1996 vikas 9266
class getTrackLogsByAffiliate_args:
1845 vikas 9267
  """
9268
  Attributes:
1996 vikas 9269
   - affiliateId
3293 vikas 9270
   - startDate
9271
   - endDate
1845 vikas 9272
  """
9273
 
9274
  thrift_spec = (
9275
    None, # 0
1996 vikas 9276
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9277
    (2, TType.I64, 'startDate', None, None, ), # 2
9278
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9279
  )
9280
 
3293 vikas 9281
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9282
    self.affiliateId = affiliateId
3293 vikas 9283
    self.startDate = startDate
9284
    self.endDate = endDate
1845 vikas 9285
 
9286
  def read(self, iprot):
9287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9289
      return
9290
    iprot.readStructBegin()
9291
    while True:
9292
      (fname, ftype, fid) = iprot.readFieldBegin()
9293
      if ftype == TType.STOP:
9294
        break
9295
      if fid == 1:
9296
        if ftype == TType.I64:
1996 vikas 9297
          self.affiliateId = iprot.readI64();
1845 vikas 9298
        else:
9299
          iprot.skip(ftype)
3293 vikas 9300
      elif fid == 2:
9301
        if ftype == TType.I64:
9302
          self.startDate = iprot.readI64();
9303
        else:
9304
          iprot.skip(ftype)
9305
      elif fid == 3:
9306
        if ftype == TType.I64:
9307
          self.endDate = iprot.readI64();
9308
        else:
9309
          iprot.skip(ftype)
1845 vikas 9310
      else:
9311
        iprot.skip(ftype)
9312
      iprot.readFieldEnd()
9313
    iprot.readStructEnd()
9314
 
9315
  def write(self, oprot):
9316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9318
      return
1996 vikas 9319
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9320
    if self.affiliateId is not None:
1996 vikas 9321
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9322
      oprot.writeI64(self.affiliateId)
1845 vikas 9323
      oprot.writeFieldEnd()
3431 rajveer 9324
    if self.startDate is not None:
3293 vikas 9325
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9326
      oprot.writeI64(self.startDate)
9327
      oprot.writeFieldEnd()
3431 rajveer 9328
    if self.endDate is not None:
3293 vikas 9329
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9330
      oprot.writeI64(self.endDate)
9331
      oprot.writeFieldEnd()
1845 vikas 9332
    oprot.writeFieldStop()
9333
    oprot.writeStructEnd()
9334
 
3431 rajveer 9335
  def validate(self):
9336
    return
9337
 
9338
 
1845 vikas 9339
  def __repr__(self):
9340
    L = ['%s=%r' % (key, value)
9341
      for key, value in self.__dict__.iteritems()]
9342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9343
 
9344
  def __eq__(self, other):
9345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9346
 
9347
  def __ne__(self, other):
9348
    return not (self == other)
9349
 
1996 vikas 9350
class getTrackLogsByAffiliate_result:
1845 vikas 9351
  """
9352
  Attributes:
9353
   - success
9354
   - utx
9355
  """
9356
 
9357
  thrift_spec = (
9358
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9359
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9360
  )
9361
 
9362
  def __init__(self, success=None, utx=None,):
9363
    self.success = success
9364
    self.utx = utx
9365
 
9366
  def read(self, iprot):
9367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9369
      return
9370
    iprot.readStructBegin()
9371
    while True:
9372
      (fname, ftype, fid) = iprot.readFieldBegin()
9373
      if ftype == TType.STOP:
9374
        break
9375
      if fid == 0:
9376
        if ftype == TType.LIST:
9377
          self.success = []
11592 amit.gupta 9378
          (_etype135, _size132) = iprot.readListBegin()
9379
          for _i136 in xrange(_size132):
9380
            _elem137 = TrackLog()
9381
            _elem137.read(iprot)
9382
            self.success.append(_elem137)
1845 vikas 9383
          iprot.readListEnd()
9384
        else:
9385
          iprot.skip(ftype)
9386
      elif fid == 1:
9387
        if ftype == TType.STRUCT:
1996 vikas 9388
          self.utx = UserAffiliateException()
1845 vikas 9389
          self.utx.read(iprot)
9390
        else:
9391
          iprot.skip(ftype)
9392
      else:
9393
        iprot.skip(ftype)
9394
      iprot.readFieldEnd()
9395
    iprot.readStructEnd()
9396
 
9397
  def write(self, oprot):
9398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9400
      return
1996 vikas 9401
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9402
    if self.success is not None:
1845 vikas 9403
      oprot.writeFieldBegin('success', TType.LIST, 0)
9404
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 9405
      for iter138 in self.success:
9406
        iter138.write(oprot)
1845 vikas 9407
      oprot.writeListEnd()
9408
      oprot.writeFieldEnd()
3431 rajveer 9409
    if self.utx is not None:
1845 vikas 9410
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9411
      self.utx.write(oprot)
9412
      oprot.writeFieldEnd()
9413
    oprot.writeFieldStop()
9414
    oprot.writeStructEnd()
9415
 
3431 rajveer 9416
  def validate(self):
9417
    return
9418
 
9419
 
1845 vikas 9420
  def __repr__(self):
9421
    L = ['%s=%r' % (key, value)
9422
      for key, value in self.__dict__.iteritems()]
9423
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9424
 
9425
  def __eq__(self, other):
9426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9427
 
9428
  def __ne__(self, other):
9429
    return not (self == other)
9430
 
9431
class getTrackLogsByUser_args:
9432
  """
9433
  Attributes:
9434
   - userId
9435
  """
9436
 
9437
  thrift_spec = (
9438
    None, # 0
9439
    (1, TType.I64, 'userId', None, None, ), # 1
9440
  )
9441
 
9442
  def __init__(self, userId=None,):
9443
    self.userId = userId
9444
 
9445
  def read(self, iprot):
9446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9448
      return
9449
    iprot.readStructBegin()
9450
    while True:
9451
      (fname, ftype, fid) = iprot.readFieldBegin()
9452
      if ftype == TType.STOP:
9453
        break
9454
      if fid == 1:
9455
        if ftype == TType.I64:
9456
          self.userId = iprot.readI64();
9457
        else:
9458
          iprot.skip(ftype)
9459
      else:
9460
        iprot.skip(ftype)
9461
      iprot.readFieldEnd()
9462
    iprot.readStructEnd()
9463
 
9464
  def write(self, oprot):
9465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9467
      return
9468
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9469
    if self.userId is not None:
1845 vikas 9470
      oprot.writeFieldBegin('userId', TType.I64, 1)
9471
      oprot.writeI64(self.userId)
9472
      oprot.writeFieldEnd()
9473
    oprot.writeFieldStop()
9474
    oprot.writeStructEnd()
9475
 
3431 rajveer 9476
  def validate(self):
9477
    return
9478
 
9479
 
1845 vikas 9480
  def __repr__(self):
9481
    L = ['%s=%r' % (key, value)
9482
      for key, value in self.__dict__.iteritems()]
9483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9484
 
9485
  def __eq__(self, other):
9486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9487
 
9488
  def __ne__(self, other):
9489
    return not (self == other)
9490
 
9491
class getTrackLogsByUser_result:
9492
  """
9493
  Attributes:
9494
   - success
9495
   - utx
9496
  """
9497
 
9498
  thrift_spec = (
9499
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9500
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9501
  )
9502
 
9503
  def __init__(self, success=None, utx=None,):
9504
    self.success = success
9505
    self.utx = utx
9506
 
9507
  def read(self, iprot):
9508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9510
      return
9511
    iprot.readStructBegin()
9512
    while True:
9513
      (fname, ftype, fid) = iprot.readFieldBegin()
9514
      if ftype == TType.STOP:
9515
        break
9516
      if fid == 0:
9517
        if ftype == TType.LIST:
9518
          self.success = []
11592 amit.gupta 9519
          (_etype142, _size139) = iprot.readListBegin()
9520
          for _i143 in xrange(_size139):
9521
            _elem144 = TrackLog()
9522
            _elem144.read(iprot)
9523
            self.success.append(_elem144)
1845 vikas 9524
          iprot.readListEnd()
9525
        else:
9526
          iprot.skip(ftype)
9527
      elif fid == 1:
9528
        if ftype == TType.STRUCT:
1996 vikas 9529
          self.utx = UserAffiliateException()
1845 vikas 9530
          self.utx.read(iprot)
9531
        else:
9532
          iprot.skip(ftype)
9533
      else:
9534
        iprot.skip(ftype)
9535
      iprot.readFieldEnd()
9536
    iprot.readStructEnd()
9537
 
9538
  def write(self, oprot):
9539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9541
      return
9542
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9543
    if self.success is not None:
1845 vikas 9544
      oprot.writeFieldBegin('success', TType.LIST, 0)
9545
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 9546
      for iter145 in self.success:
9547
        iter145.write(oprot)
1845 vikas 9548
      oprot.writeListEnd()
9549
      oprot.writeFieldEnd()
3431 rajveer 9550
    if self.utx is not None:
1845 vikas 9551
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9552
      self.utx.write(oprot)
9553
      oprot.writeFieldEnd()
9554
    oprot.writeFieldStop()
9555
    oprot.writeStructEnd()
9556
 
3431 rajveer 9557
  def validate(self):
9558
    return
9559
 
9560
 
1845 vikas 9561
  def __repr__(self):
9562
    L = ['%s=%r' % (key, value)
9563
      for key, value in self.__dict__.iteritems()]
9564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9565
 
9566
  def __eq__(self, other):
9567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9568
 
9569
  def __ne__(self, other):
9570
    return not (self == other)
9571
 
9572
class getTrackLogs_args:
9573
  """
9574
  Attributes:
9575
   - userId
9576
   - event
9577
   - url
9578
  """
9579
 
9580
  thrift_spec = (
9581
    None, # 0
1996 vikas 9582
    (1, TType.I64, 'userId', None, None, ), # 1
9583
    (2, TType.STRING, 'event', None, None, ), # 2
9584
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9585
  )
9586
 
1996 vikas 9587
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9588
    self.userId = userId
9589
    self.event = event
9590
    self.url = url
9591
 
9592
  def read(self, iprot):
9593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9595
      return
9596
    iprot.readStructBegin()
9597
    while True:
9598
      (fname, ftype, fid) = iprot.readFieldBegin()
9599
      if ftype == TType.STOP:
9600
        break
9601
      if fid == 1:
9602
        if ftype == TType.I64:
1996 vikas 9603
          self.userId = iprot.readI64();
1845 vikas 9604
        else:
9605
          iprot.skip(ftype)
9606
      elif fid == 2:
9607
        if ftype == TType.STRING:
9608
          self.event = iprot.readString();
9609
        else:
9610
          iprot.skip(ftype)
1996 vikas 9611
      elif fid == 3:
1845 vikas 9612
        if ftype == TType.STRING:
9613
          self.url = iprot.readString();
9614
        else:
9615
          iprot.skip(ftype)
9616
      else:
9617
        iprot.skip(ftype)
9618
      iprot.readFieldEnd()
9619
    iprot.readStructEnd()
9620
 
9621
  def write(self, oprot):
9622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9624
      return
9625
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9626
    if self.userId is not None:
1996 vikas 9627
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9628
      oprot.writeI64(self.userId)
9629
      oprot.writeFieldEnd()
3431 rajveer 9630
    if self.event is not None:
1996 vikas 9631
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9632
      oprot.writeString(self.event)
9633
      oprot.writeFieldEnd()
3431 rajveer 9634
    if self.url is not None:
1996 vikas 9635
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9636
      oprot.writeString(self.url)
9637
      oprot.writeFieldEnd()
9638
    oprot.writeFieldStop()
9639
    oprot.writeStructEnd()
9640
 
3431 rajveer 9641
  def validate(self):
9642
    return
9643
 
9644
 
1845 vikas 9645
  def __repr__(self):
9646
    L = ['%s=%r' % (key, value)
9647
      for key, value in self.__dict__.iteritems()]
9648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9649
 
9650
  def __eq__(self, other):
9651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9652
 
9653
  def __ne__(self, other):
9654
    return not (self == other)
9655
 
9656
class getTrackLogs_result:
9657
  """
9658
  Attributes:
9659
   - success
9660
   - utx
9661
  """
9662
 
9663
  thrift_spec = (
9664
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9665
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9666
  )
9667
 
9668
  def __init__(self, success=None, utx=None,):
9669
    self.success = success
9670
    self.utx = utx
9671
 
9672
  def read(self, iprot):
9673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9675
      return
9676
    iprot.readStructBegin()
9677
    while True:
9678
      (fname, ftype, fid) = iprot.readFieldBegin()
9679
      if ftype == TType.STOP:
9680
        break
9681
      if fid == 0:
9682
        if ftype == TType.LIST:
9683
          self.success = []
11592 amit.gupta 9684
          (_etype149, _size146) = iprot.readListBegin()
9685
          for _i150 in xrange(_size146):
9686
            _elem151 = TrackLog()
9687
            _elem151.read(iprot)
9688
            self.success.append(_elem151)
1845 vikas 9689
          iprot.readListEnd()
9690
        else:
9691
          iprot.skip(ftype)
9692
      elif fid == 1:
9693
        if ftype == TType.STRUCT:
1996 vikas 9694
          self.utx = UserAffiliateException()
1845 vikas 9695
          self.utx.read(iprot)
9696
        else:
9697
          iprot.skip(ftype)
9698
      else:
9699
        iprot.skip(ftype)
9700
      iprot.readFieldEnd()
9701
    iprot.readStructEnd()
9702
 
9703
  def write(self, oprot):
9704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9706
      return
9707
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9708
    if self.success is not None:
1845 vikas 9709
      oprot.writeFieldBegin('success', TType.LIST, 0)
9710
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 9711
      for iter152 in self.success:
9712
        iter152.write(oprot)
1845 vikas 9713
      oprot.writeListEnd()
9714
      oprot.writeFieldEnd()
3431 rajveer 9715
    if self.utx is not None:
1845 vikas 9716
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9717
      self.utx.write(oprot)
9718
      oprot.writeFieldEnd()
9719
    oprot.writeFieldStop()
9720
    oprot.writeStructEnd()
9721
 
3431 rajveer 9722
  def validate(self):
9723
    return
9724
 
9725
 
1845 vikas 9726
  def __repr__(self):
9727
    L = ['%s=%r' % (key, value)
9728
      for key, value in self.__dict__.iteritems()]
9729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9730
 
9731
  def __eq__(self, other):
9732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9733
 
9734
  def __ne__(self, other):
9735
    return not (self == other)
9736
 
559 chandransh 9737
class getCurrentCart_args:
94 ashish 9738
  """
9739
  Attributes:
559 chandransh 9740
   - userId
9741
  """
9742
 
9743
  thrift_spec = (
9744
    None, # 0
9745
    (1, TType.I64, 'userId', None, None, ), # 1
9746
  )
9747
 
9748
  def __init__(self, userId=None,):
9749
    self.userId = userId
9750
 
9751
  def read(self, iprot):
9752
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9753
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9754
      return
9755
    iprot.readStructBegin()
9756
    while True:
9757
      (fname, ftype, fid) = iprot.readFieldBegin()
9758
      if ftype == TType.STOP:
9759
        break
9760
      if fid == 1:
9761
        if ftype == TType.I64:
9762
          self.userId = iprot.readI64();
9763
        else:
9764
          iprot.skip(ftype)
9765
      else:
9766
        iprot.skip(ftype)
9767
      iprot.readFieldEnd()
9768
    iprot.readStructEnd()
9769
 
9770
  def write(self, oprot):
9771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9773
      return
9774
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9775
    if self.userId is not None:
559 chandransh 9776
      oprot.writeFieldBegin('userId', TType.I64, 1)
9777
      oprot.writeI64(self.userId)
9778
      oprot.writeFieldEnd()
9779
    oprot.writeFieldStop()
9780
    oprot.writeStructEnd()
9781
 
3431 rajveer 9782
  def validate(self):
9783
    return
9784
 
9785
 
559 chandransh 9786
  def __repr__(self):
9787
    L = ['%s=%r' % (key, value)
9788
      for key, value in self.__dict__.iteritems()]
9789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9790
 
9791
  def __eq__(self, other):
9792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9793
 
9794
  def __ne__(self, other):
9795
    return not (self == other)
9796
 
9797
class getCurrentCart_result:
9798
  """
9799
  Attributes:
94 ashish 9800
   - success
559 chandransh 9801
   - scx
94 ashish 9802
  """
9803
 
9804
  thrift_spec = (
559 chandransh 9805
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9806
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9807
  )
9808
 
559 chandransh 9809
  def __init__(self, success=None, scx=None,):
94 ashish 9810
    self.success = success
559 chandransh 9811
    self.scx = scx
94 ashish 9812
 
9813
  def read(self, iprot):
9814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9816
      return
9817
    iprot.readStructBegin()
9818
    while True:
9819
      (fname, ftype, fid) = iprot.readFieldBegin()
9820
      if ftype == TType.STOP:
9821
        break
9822
      if fid == 0:
559 chandransh 9823
        if ftype == TType.STRUCT:
9824
          self.success = Cart()
9825
          self.success.read(iprot)
94 ashish 9826
        else:
9827
          iprot.skip(ftype)
9828
      elif fid == 1:
9829
        if ftype == TType.STRUCT:
559 chandransh 9830
          self.scx = ShoppingCartException()
9831
          self.scx.read(iprot)
94 ashish 9832
        else:
9833
          iprot.skip(ftype)
9834
      else:
9835
        iprot.skip(ftype)
9836
      iprot.readFieldEnd()
9837
    iprot.readStructEnd()
9838
 
9839
  def write(self, oprot):
9840
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9841
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9842
      return
559 chandransh 9843
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9844
    if self.success is not None:
559 chandransh 9845
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9846
      self.success.write(oprot)
94 ashish 9847
      oprot.writeFieldEnd()
3431 rajveer 9848
    if self.scx is not None:
559 chandransh 9849
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9850
      self.scx.write(oprot)
94 ashish 9851
      oprot.writeFieldEnd()
9852
    oprot.writeFieldStop()
9853
    oprot.writeStructEnd()
9854
 
3431 rajveer 9855
  def validate(self):
9856
    return
9857
 
9858
 
94 ashish 9859
  def __repr__(self):
9860
    L = ['%s=%r' % (key, value)
9861
      for key, value in self.__dict__.iteritems()]
9862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9863
 
9864
  def __eq__(self, other):
9865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9866
 
9867
  def __ne__(self, other):
9868
    return not (self == other)
9869
 
559 chandransh 9870
class getCart_args:
504 rajveer 9871
  """
9872
  Attributes:
559 chandransh 9873
   - cartId
504 rajveer 9874
  """
9875
 
9876
  thrift_spec = (
9877
    None, # 0
559 chandransh 9878
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9879
  )
9880
 
559 chandransh 9881
  def __init__(self, cartId=None,):
9882
    self.cartId = cartId
504 rajveer 9883
 
9884
  def read(self, iprot):
9885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9887
      return
9888
    iprot.readStructBegin()
9889
    while True:
9890
      (fname, ftype, fid) = iprot.readFieldBegin()
9891
      if ftype == TType.STOP:
9892
        break
9893
      if fid == 1:
9894
        if ftype == TType.I64:
559 chandransh 9895
          self.cartId = iprot.readI64();
504 rajveer 9896
        else:
9897
          iprot.skip(ftype)
9898
      else:
9899
        iprot.skip(ftype)
9900
      iprot.readFieldEnd()
9901
    iprot.readStructEnd()
9902
 
9903
  def write(self, oprot):
9904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9906
      return
559 chandransh 9907
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9908
    if self.cartId is not None:
559 chandransh 9909
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9910
      oprot.writeI64(self.cartId)
504 rajveer 9911
      oprot.writeFieldEnd()
9912
    oprot.writeFieldStop()
9913
    oprot.writeStructEnd()
9914
 
3431 rajveer 9915
  def validate(self):
9916
    return
9917
 
9918
 
504 rajveer 9919
  def __repr__(self):
9920
    L = ['%s=%r' % (key, value)
9921
      for key, value in self.__dict__.iteritems()]
9922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9923
 
9924
  def __eq__(self, other):
9925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9926
 
9927
  def __ne__(self, other):
9928
    return not (self == other)
9929
 
559 chandransh 9930
class getCart_result:
504 rajveer 9931
  """
9932
  Attributes:
9933
   - success
559 chandransh 9934
   - scx
504 rajveer 9935
  """
9936
 
9937
  thrift_spec = (
559 chandransh 9938
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9939
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9940
  )
9941
 
559 chandransh 9942
  def __init__(self, success=None, scx=None,):
504 rajveer 9943
    self.success = success
559 chandransh 9944
    self.scx = scx
504 rajveer 9945
 
9946
  def read(self, iprot):
9947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9949
      return
9950
    iprot.readStructBegin()
9951
    while True:
9952
      (fname, ftype, fid) = iprot.readFieldBegin()
9953
      if ftype == TType.STOP:
9954
        break
9955
      if fid == 0:
559 chandransh 9956
        if ftype == TType.STRUCT:
9957
          self.success = Cart()
9958
          self.success.read(iprot)
504 rajveer 9959
        else:
9960
          iprot.skip(ftype)
9961
      elif fid == 1:
9962
        if ftype == TType.STRUCT:
559 chandransh 9963
          self.scx = ShoppingCartException()
9964
          self.scx.read(iprot)
504 rajveer 9965
        else:
9966
          iprot.skip(ftype)
9967
      else:
9968
        iprot.skip(ftype)
9969
      iprot.readFieldEnd()
9970
    iprot.readStructEnd()
9971
 
9972
  def write(self, oprot):
9973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9975
      return
559 chandransh 9976
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9977
    if self.success is not None:
559 chandransh 9978
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9979
      self.success.write(oprot)
504 rajveer 9980
      oprot.writeFieldEnd()
3431 rajveer 9981
    if self.scx is not None:
559 chandransh 9982
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9983
      self.scx.write(oprot)
504 rajveer 9984
      oprot.writeFieldEnd()
9985
    oprot.writeFieldStop()
9986
    oprot.writeStructEnd()
9987
 
3431 rajveer 9988
  def validate(self):
9989
    return
9990
 
9991
 
504 rajveer 9992
  def __repr__(self):
9993
    L = ['%s=%r' % (key, value)
9994
      for key, value in self.__dict__.iteritems()]
9995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9996
 
9997
  def __eq__(self, other):
9998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9999
 
10000
  def __ne__(self, other):
10001
    return not (self == other)
10002
 
559 chandransh 10003
class getCartsByTime_args:
10004
  """
10005
  Attributes:
10006
   - from_time
10007
   - to_time
10008
   - status
10009
  """
10010
 
10011
  thrift_spec = (
10012
    None, # 0
10013
    (1, TType.I64, 'from_time', None, None, ), # 1
10014
    (2, TType.I64, 'to_time', None, None, ), # 2
10015
    (3, TType.I32, 'status', None, None, ), # 3
10016
  )
10017
 
10018
  def __init__(self, from_time=None, to_time=None, status=None,):
10019
    self.from_time = from_time
10020
    self.to_time = to_time
10021
    self.status = status
10022
 
10023
  def read(self, iprot):
10024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10026
      return
10027
    iprot.readStructBegin()
10028
    while True:
10029
      (fname, ftype, fid) = iprot.readFieldBegin()
10030
      if ftype == TType.STOP:
10031
        break
10032
      if fid == 1:
94 ashish 10033
        if ftype == TType.I64:
559 chandransh 10034
          self.from_time = iprot.readI64();
94 ashish 10035
        else:
10036
          iprot.skip(ftype)
122 ashish 10037
      elif fid == 2:
559 chandransh 10038
        if ftype == TType.I64:
10039
          self.to_time = iprot.readI64();
122 ashish 10040
        else:
10041
          iprot.skip(ftype)
559 chandransh 10042
      elif fid == 3:
10043
        if ftype == TType.I32:
10044
          self.status = iprot.readI32();
10045
        else:
10046
          iprot.skip(ftype)
94 ashish 10047
      else:
10048
        iprot.skip(ftype)
10049
      iprot.readFieldEnd()
10050
    iprot.readStructEnd()
10051
 
10052
  def write(self, oprot):
10053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10055
      return
559 chandransh 10056
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10057
    if self.from_time is not None:
559 chandransh 10058
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10059
      oprot.writeI64(self.from_time)
94 ashish 10060
      oprot.writeFieldEnd()
3431 rajveer 10061
    if self.to_time is not None:
559 chandransh 10062
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10063
      oprot.writeI64(self.to_time)
122 ashish 10064
      oprot.writeFieldEnd()
3431 rajveer 10065
    if self.status is not None:
559 chandransh 10066
      oprot.writeFieldBegin('status', TType.I32, 3)
10067
      oprot.writeI32(self.status)
10068
      oprot.writeFieldEnd()
94 ashish 10069
    oprot.writeFieldStop()
10070
    oprot.writeStructEnd()
10071
 
3431 rajveer 10072
  def validate(self):
10073
    return
10074
 
10075
 
94 ashish 10076
  def __repr__(self):
10077
    L = ['%s=%r' % (key, value)
10078
      for key, value in self.__dict__.iteritems()]
10079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10080
 
10081
  def __eq__(self, other):
10082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10083
 
10084
  def __ne__(self, other):
10085
    return not (self == other)
10086
 
559 chandransh 10087
class getCartsByTime_result:
94 ashish 10088
  """
10089
  Attributes:
10090
   - success
559 chandransh 10091
   - scx
94 ashish 10092
  """
10093
 
10094
  thrift_spec = (
559 chandransh 10095
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10096
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10097
  )
10098
 
559 chandransh 10099
  def __init__(self, success=None, scx=None,):
94 ashish 10100
    self.success = success
559 chandransh 10101
    self.scx = scx
94 ashish 10102
 
10103
  def read(self, iprot):
10104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10106
      return
10107
    iprot.readStructBegin()
10108
    while True:
10109
      (fname, ftype, fid) = iprot.readFieldBegin()
10110
      if ftype == TType.STOP:
10111
        break
10112
      if fid == 0:
559 chandransh 10113
        if ftype == TType.LIST:
10114
          self.success = []
11592 amit.gupta 10115
          (_etype156, _size153) = iprot.readListBegin()
10116
          for _i157 in xrange(_size153):
10117
            _elem158 = Cart()
10118
            _elem158.read(iprot)
10119
            self.success.append(_elem158)
559 chandransh 10120
          iprot.readListEnd()
94 ashish 10121
        else:
10122
          iprot.skip(ftype)
10123
      elif fid == 1:
10124
        if ftype == TType.STRUCT:
559 chandransh 10125
          self.scx = ShoppingCartException()
10126
          self.scx.read(iprot)
94 ashish 10127
        else:
10128
          iprot.skip(ftype)
10129
      else:
10130
        iprot.skip(ftype)
10131
      iprot.readFieldEnd()
10132
    iprot.readStructEnd()
10133
 
10134
  def write(self, oprot):
10135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10137
      return
559 chandransh 10138
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10139
    if self.success is not None:
559 chandransh 10140
      oprot.writeFieldBegin('success', TType.LIST, 0)
10141
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 10142
      for iter159 in self.success:
10143
        iter159.write(oprot)
559 chandransh 10144
      oprot.writeListEnd()
94 ashish 10145
      oprot.writeFieldEnd()
3431 rajveer 10146
    if self.scx is not None:
559 chandransh 10147
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10148
      self.scx.write(oprot)
94 ashish 10149
      oprot.writeFieldEnd()
10150
    oprot.writeFieldStop()
10151
    oprot.writeStructEnd()
10152
 
3431 rajveer 10153
  def validate(self):
10154
    return
10155
 
10156
 
94 ashish 10157
  def __repr__(self):
10158
    L = ['%s=%r' % (key, value)
10159
      for key, value in self.__dict__.iteritems()]
10160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10161
 
10162
  def __eq__(self, other):
10163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10164
 
10165
  def __ne__(self, other):
10166
    return not (self == other)
10167
 
559 chandransh 10168
class addItemToCart_args:
10169
  """
10170
  Attributes:
10171
   - cartId
10172
   - itemId
10173
   - quantity
3557 rajveer 10174
   - sourceId
559 chandransh 10175
  """
10176
 
10177
  thrift_spec = (
10178
    None, # 0
10179
    (1, TType.I64, 'cartId', None, None, ), # 1
10180
    (2, TType.I64, 'itemId', None, None, ), # 2
10181
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10182
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10183
  )
10184
 
3557 rajveer 10185
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10186
    self.cartId = cartId
10187
    self.itemId = itemId
10188
    self.quantity = quantity
3557 rajveer 10189
    self.sourceId = sourceId
559 chandransh 10190
 
10191
  def read(self, iprot):
10192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10194
      return
10195
    iprot.readStructBegin()
10196
    while True:
10197
      (fname, ftype, fid) = iprot.readFieldBegin()
10198
      if ftype == TType.STOP:
10199
        break
10200
      if fid == 1:
10201
        if ftype == TType.I64:
10202
          self.cartId = iprot.readI64();
10203
        else:
10204
          iprot.skip(ftype)
10205
      elif fid == 2:
10206
        if ftype == TType.I64:
10207
          self.itemId = iprot.readI64();
10208
        else:
10209
          iprot.skip(ftype)
10210
      elif fid == 3:
10211
        if ftype == TType.I64:
10212
          self.quantity = iprot.readI64();
10213
        else:
10214
          iprot.skip(ftype)
3557 rajveer 10215
      elif fid == 4:
10216
        if ftype == TType.I64:
10217
          self.sourceId = iprot.readI64();
10218
        else:
10219
          iprot.skip(ftype)
559 chandransh 10220
      else:
10221
        iprot.skip(ftype)
10222
      iprot.readFieldEnd()
10223
    iprot.readStructEnd()
10224
 
10225
  def write(self, oprot):
10226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10228
      return
10229
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10230
    if self.cartId is not None:
559 chandransh 10231
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10232
      oprot.writeI64(self.cartId)
10233
      oprot.writeFieldEnd()
3431 rajveer 10234
    if self.itemId is not None:
559 chandransh 10235
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10236
      oprot.writeI64(self.itemId)
10237
      oprot.writeFieldEnd()
3431 rajveer 10238
    if self.quantity is not None:
559 chandransh 10239
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10240
      oprot.writeI64(self.quantity)
10241
      oprot.writeFieldEnd()
3557 rajveer 10242
    if self.sourceId is not None:
10243
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10244
      oprot.writeI64(self.sourceId)
10245
      oprot.writeFieldEnd()
559 chandransh 10246
    oprot.writeFieldStop()
10247
    oprot.writeStructEnd()
10248
 
3431 rajveer 10249
  def validate(self):
10250
    return
10251
 
10252
 
559 chandransh 10253
  def __repr__(self):
10254
    L = ['%s=%r' % (key, value)
10255
      for key, value in self.__dict__.iteritems()]
10256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10257
 
10258
  def __eq__(self, other):
10259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10260
 
10261
  def __ne__(self, other):
10262
    return not (self == other)
10263
 
10264
class addItemToCart_result:
10265
  """
10266
  Attributes:
2035 rajveer 10267
   - success
559 chandransh 10268
   - scx
10269
  """
10270
 
10271
  thrift_spec = (
2035 rajveer 10272
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10273
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10274
  )
10275
 
2035 rajveer 10276
  def __init__(self, success=None, scx=None,):
10277
    self.success = success
559 chandransh 10278
    self.scx = scx
10279
 
10280
  def read(self, iprot):
10281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10283
      return
10284
    iprot.readStructBegin()
10285
    while True:
10286
      (fname, ftype, fid) = iprot.readFieldBegin()
10287
      if ftype == TType.STOP:
10288
        break
2035 rajveer 10289
      if fid == 0:
10290
        if ftype == TType.STRING:
10291
          self.success = iprot.readString();
10292
        else:
10293
          iprot.skip(ftype)
10294
      elif fid == 1:
559 chandransh 10295
        if ftype == TType.STRUCT:
10296
          self.scx = ShoppingCartException()
10297
          self.scx.read(iprot)
10298
        else:
10299
          iprot.skip(ftype)
10300
      else:
10301
        iprot.skip(ftype)
10302
      iprot.readFieldEnd()
10303
    iprot.readStructEnd()
10304
 
10305
  def write(self, oprot):
10306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10308
      return
10309
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10310
    if self.success is not None:
2035 rajveer 10311
      oprot.writeFieldBegin('success', TType.STRING, 0)
10312
      oprot.writeString(self.success)
10313
      oprot.writeFieldEnd()
3431 rajveer 10314
    if self.scx is not None:
559 chandransh 10315
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10316
      self.scx.write(oprot)
10317
      oprot.writeFieldEnd()
10318
    oprot.writeFieldStop()
10319
    oprot.writeStructEnd()
10320
 
3431 rajveer 10321
  def validate(self):
10322
    return
10323
 
10324
 
559 chandransh 10325
  def __repr__(self):
10326
    L = ['%s=%r' % (key, value)
10327
      for key, value in self.__dict__.iteritems()]
10328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10329
 
10330
  def __eq__(self, other):
10331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10332
 
10333
  def __ne__(self, other):
10334
    return not (self == other)
10335
 
10336
class deleteItemFromCart_args:
10337
  """
10338
  Attributes:
10339
   - cartId
10340
   - itemId
10341
  """
10342
 
10343
  thrift_spec = (
10344
    None, # 0
10345
    (1, TType.I64, 'cartId', None, None, ), # 1
10346
    (2, TType.I64, 'itemId', None, None, ), # 2
10347
  )
10348
 
10349
  def __init__(self, cartId=None, itemId=None,):
10350
    self.cartId = cartId
10351
    self.itemId = itemId
10352
 
10353
  def read(self, iprot):
10354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10356
      return
10357
    iprot.readStructBegin()
10358
    while True:
10359
      (fname, ftype, fid) = iprot.readFieldBegin()
10360
      if ftype == TType.STOP:
10361
        break
10362
      if fid == 1:
10363
        if ftype == TType.I64:
10364
          self.cartId = iprot.readI64();
10365
        else:
10366
          iprot.skip(ftype)
10367
      elif fid == 2:
10368
        if ftype == TType.I64:
10369
          self.itemId = iprot.readI64();
10370
        else:
10371
          iprot.skip(ftype)
10372
      else:
10373
        iprot.skip(ftype)
10374
      iprot.readFieldEnd()
10375
    iprot.readStructEnd()
10376
 
10377
  def write(self, oprot):
10378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10380
      return
10381
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10382
    if self.cartId is not None:
559 chandransh 10383
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10384
      oprot.writeI64(self.cartId)
10385
      oprot.writeFieldEnd()
3431 rajveer 10386
    if self.itemId is not None:
559 chandransh 10387
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10388
      oprot.writeI64(self.itemId)
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 deleteItemFromCart_result:
10409
  """
10410
  Attributes:
10411
   - scx
10412
  """
10413
 
10414
  thrift_spec = (
10415
    None, # 0
10416
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10417
  )
10418
 
10419
  def __init__(self, scx=None,):
10420
    self.scx = scx
10421
 
10422
  def read(self, iprot):
10423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10425
      return
10426
    iprot.readStructBegin()
10427
    while True:
10428
      (fname, ftype, fid) = iprot.readFieldBegin()
10429
      if ftype == TType.STOP:
10430
        break
10431
      if fid == 1:
10432
        if ftype == TType.STRUCT:
10433
          self.scx = ShoppingCartException()
10434
          self.scx.read(iprot)
10435
        else:
10436
          iprot.skip(ftype)
10437
      else:
10438
        iprot.skip(ftype)
10439
      iprot.readFieldEnd()
10440
    iprot.readStructEnd()
10441
 
10442
  def write(self, oprot):
10443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10445
      return
10446
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10447
    if self.scx is not None:
559 chandransh 10448
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10449
      self.scx.write(oprot)
10450
      oprot.writeFieldEnd()
10451
    oprot.writeFieldStop()
10452
    oprot.writeStructEnd()
10453
 
3431 rajveer 10454
  def validate(self):
10455
    return
10456
 
10457
 
559 chandransh 10458
  def __repr__(self):
10459
    L = ['%s=%r' % (key, value)
10460
      for key, value in self.__dict__.iteritems()]
10461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10462
 
10463
  def __eq__(self, other):
10464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10465
 
10466
  def __ne__(self, other):
10467
    return not (self == other)
10468
 
10469
class addAddressToCart_args:
10470
  """
10471
  Attributes:
10472
   - cartId
10473
   - addressId
10474
  """
10475
 
10476
  thrift_spec = (
10477
    None, # 0
10478
    (1, TType.I64, 'cartId', None, None, ), # 1
10479
    (2, TType.I64, 'addressId', None, None, ), # 2
10480
  )
10481
 
10482
  def __init__(self, cartId=None, addressId=None,):
10483
    self.cartId = cartId
10484
    self.addressId = addressId
10485
 
10486
  def read(self, iprot):
10487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10489
      return
10490
    iprot.readStructBegin()
10491
    while True:
10492
      (fname, ftype, fid) = iprot.readFieldBegin()
10493
      if ftype == TType.STOP:
10494
        break
10495
      if fid == 1:
10496
        if ftype == TType.I64:
10497
          self.cartId = iprot.readI64();
10498
        else:
10499
          iprot.skip(ftype)
10500
      elif fid == 2:
10501
        if ftype == TType.I64:
10502
          self.addressId = iprot.readI64();
10503
        else:
10504
          iprot.skip(ftype)
10505
      else:
10506
        iprot.skip(ftype)
10507
      iprot.readFieldEnd()
10508
    iprot.readStructEnd()
10509
 
10510
  def write(self, oprot):
10511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10513
      return
10514
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10515
    if self.cartId is not None:
559 chandransh 10516
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10517
      oprot.writeI64(self.cartId)
10518
      oprot.writeFieldEnd()
3431 rajveer 10519
    if self.addressId is not None:
559 chandransh 10520
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10521
      oprot.writeI64(self.addressId)
10522
      oprot.writeFieldEnd()
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
 
10541
class addAddressToCart_result:
575 chandransh 10542
  """
10543
  Attributes:
10544
   - scx
10545
  """
559 chandransh 10546
 
10547
  thrift_spec = (
575 chandransh 10548
    None, # 0
10549
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10550
  )
10551
 
575 chandransh 10552
  def __init__(self, scx=None,):
10553
    self.scx = scx
10554
 
559 chandransh 10555
  def read(self, iprot):
10556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10558
      return
10559
    iprot.readStructBegin()
10560
    while True:
10561
      (fname, ftype, fid) = iprot.readFieldBegin()
10562
      if ftype == TType.STOP:
10563
        break
575 chandransh 10564
      if fid == 1:
10565
        if ftype == TType.STRUCT:
10566
          self.scx = ShoppingCartException()
10567
          self.scx.read(iprot)
10568
        else:
10569
          iprot.skip(ftype)
559 chandransh 10570
      else:
10571
        iprot.skip(ftype)
10572
      iprot.readFieldEnd()
10573
    iprot.readStructEnd()
10574
 
10575
  def write(self, oprot):
10576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10578
      return
10579
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10580
    if self.scx is not None:
575 chandransh 10581
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10582
      self.scx.write(oprot)
10583
      oprot.writeFieldEnd()
559 chandransh 10584
    oprot.writeFieldStop()
10585
    oprot.writeStructEnd()
10586
 
3431 rajveer 10587
  def validate(self):
10588
    return
10589
 
10590
 
559 chandransh 10591
  def __repr__(self):
10592
    L = ['%s=%r' % (key, value)
10593
      for key, value in self.__dict__.iteritems()]
10594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10595
 
10596
  def __eq__(self, other):
10597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10598
 
10599
  def __ne__(self, other):
10600
    return not (self == other)
10601
 
5553 rajveer 10602
class addStoreToCart_args:
10603
  """
10604
  Attributes:
10605
   - cartId
10606
   - storeId
10607
  """
10608
 
10609
  thrift_spec = (
10610
    None, # 0
10611
    (1, TType.I64, 'cartId', None, None, ), # 1
10612
    (2, TType.I64, 'storeId', None, None, ), # 2
10613
  )
10614
 
10615
  def __init__(self, cartId=None, storeId=None,):
10616
    self.cartId = cartId
10617
    self.storeId = storeId
10618
 
10619
  def read(self, iprot):
10620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10622
      return
10623
    iprot.readStructBegin()
10624
    while True:
10625
      (fname, ftype, fid) = iprot.readFieldBegin()
10626
      if ftype == TType.STOP:
10627
        break
10628
      if fid == 1:
10629
        if ftype == TType.I64:
10630
          self.cartId = iprot.readI64();
10631
        else:
10632
          iprot.skip(ftype)
10633
      elif fid == 2:
10634
        if ftype == TType.I64:
10635
          self.storeId = iprot.readI64();
10636
        else:
10637
          iprot.skip(ftype)
10638
      else:
10639
        iprot.skip(ftype)
10640
      iprot.readFieldEnd()
10641
    iprot.readStructEnd()
10642
 
10643
  def write(self, oprot):
10644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10646
      return
10647
    oprot.writeStructBegin('addStoreToCart_args')
10648
    if self.cartId is not None:
10649
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10650
      oprot.writeI64(self.cartId)
10651
      oprot.writeFieldEnd()
10652
    if self.storeId is not None:
10653
      oprot.writeFieldBegin('storeId', TType.I64, 2)
10654
      oprot.writeI64(self.storeId)
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
 
10674
class addStoreToCart_result:
10675
  """
10676
  Attributes:
10677
   - scx
10678
  """
10679
 
10680
  thrift_spec = (
10681
    None, # 0
10682
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10683
  )
10684
 
10685
  def __init__(self, scx=None,):
10686
    self.scx = scx
10687
 
10688
  def read(self, iprot):
10689
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10690
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10691
      return
10692
    iprot.readStructBegin()
10693
    while True:
10694
      (fname, ftype, fid) = iprot.readFieldBegin()
10695
      if ftype == TType.STOP:
10696
        break
10697
      if fid == 1:
10698
        if ftype == TType.STRUCT:
10699
          self.scx = ShoppingCartException()
10700
          self.scx.read(iprot)
10701
        else:
10702
          iprot.skip(ftype)
10703
      else:
10704
        iprot.skip(ftype)
10705
      iprot.readFieldEnd()
10706
    iprot.readStructEnd()
10707
 
10708
  def write(self, oprot):
10709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10711
      return
10712
    oprot.writeStructBegin('addStoreToCart_result')
10713
    if self.scx is not None:
10714
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10715
      self.scx.write(oprot)
10716
      oprot.writeFieldEnd()
10717
    oprot.writeFieldStop()
10718
    oprot.writeStructEnd()
10719
 
10720
  def validate(self):
10721
    return
10722
 
10723
 
10724
  def __repr__(self):
10725
    L = ['%s=%r' % (key, value)
10726
      for key, value in self.__dict__.iteritems()]
10727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10728
 
10729
  def __eq__(self, other):
10730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10731
 
10732
  def __ne__(self, other):
10733
    return not (self == other)
10734
 
1976 varun.gupt 10735
class applyCouponToCart_args:
10736
  """
10737
  Attributes:
6922 anupam.sin 10738
   - cart
1976 varun.gupt 10739
   - couponCode
10740
  """
10741
 
10742
  thrift_spec = (
10743
    None, # 0
6922 anupam.sin 10744
    (1, TType.STRUCT, 'cart', (Cart, Cart.thrift_spec), None, ), # 1
1976 varun.gupt 10745
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10746
  )
10747
 
6922 anupam.sin 10748
  def __init__(self, cart=None, couponCode=None,):
10749
    self.cart = cart
1976 varun.gupt 10750
    self.couponCode = couponCode
10751
 
10752
  def read(self, iprot):
10753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10755
      return
10756
    iprot.readStructBegin()
10757
    while True:
10758
      (fname, ftype, fid) = iprot.readFieldBegin()
10759
      if ftype == TType.STOP:
10760
        break
10761
      if fid == 1:
6922 anupam.sin 10762
        if ftype == TType.STRUCT:
10763
          self.cart = Cart()
10764
          self.cart.read(iprot)
1976 varun.gupt 10765
        else:
10766
          iprot.skip(ftype)
10767
      elif fid == 2:
10768
        if ftype == TType.STRING:
10769
          self.couponCode = iprot.readString();
10770
        else:
10771
          iprot.skip(ftype)
10772
      else:
10773
        iprot.skip(ftype)
10774
      iprot.readFieldEnd()
10775
    iprot.readStructEnd()
10776
 
10777
  def write(self, oprot):
10778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10780
      return
10781
    oprot.writeStructBegin('applyCouponToCart_args')
6922 anupam.sin 10782
    if self.cart is not None:
10783
      oprot.writeFieldBegin('cart', TType.STRUCT, 1)
10784
      self.cart.write(oprot)
1976 varun.gupt 10785
      oprot.writeFieldEnd()
3431 rajveer 10786
    if self.couponCode is not None:
1976 varun.gupt 10787
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10788
      oprot.writeString(self.couponCode)
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 applyCouponToCart_result:
10809
  """
10810
  Attributes:
10811
   - scx
10812
  """
10813
 
10814
  thrift_spec = (
10815
    None, # 0
10816
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10817
  )
10818
 
10819
  def __init__(self, scx=None,):
10820
    self.scx = scx
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.STRUCT:
10833
          self.scx = ShoppingCartException()
10834
          self.scx.read(iprot)
10835
        else:
10836
          iprot.skip(ftype)
10837
      else:
10838
        iprot.skip(ftype)
10839
      iprot.readFieldEnd()
10840
    iprot.readStructEnd()
10841
 
10842
  def write(self, oprot):
10843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10845
      return
10846
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10847
    if self.scx is not None:
1976 varun.gupt 10848
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10849
      self.scx.write(oprot)
10850
      oprot.writeFieldEnd()
10851
    oprot.writeFieldStop()
10852
    oprot.writeStructEnd()
10853
 
3431 rajveer 10854
  def validate(self):
10855
    return
10856
 
10857
 
1976 varun.gupt 10858
  def __repr__(self):
10859
    L = ['%s=%r' % (key, value)
10860
      for key, value in self.__dict__.iteritems()]
10861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10862
 
10863
  def __eq__(self, other):
10864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10865
 
10866
  def __ne__(self, other):
10867
    return not (self == other)
10868
 
10869
class removeCoupon_args:
10870
  """
10871
  Attributes:
10872
   - cartId
10873
  """
10874
 
10875
  thrift_spec = (
10876
    None, # 0
10877
    (1, TType.I64, 'cartId', None, None, ), # 1
10878
  )
10879
 
10880
  def __init__(self, cartId=None,):
10881
    self.cartId = cartId
10882
 
10883
  def read(self, iprot):
10884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10886
      return
10887
    iprot.readStructBegin()
10888
    while True:
10889
      (fname, ftype, fid) = iprot.readFieldBegin()
10890
      if ftype == TType.STOP:
10891
        break
10892
      if fid == 1:
10893
        if ftype == TType.I64:
10894
          self.cartId = iprot.readI64();
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_args')
3431 rajveer 10907
    if self.cartId is not None:
1976 varun.gupt 10908
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10909
      oprot.writeI64(self.cartId)
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
 
10929
class removeCoupon_result:
10930
  """
10931
  Attributes:
10932
   - scx
10933
  """
10934
 
10935
  thrift_spec = (
10936
    None, # 0
10937
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10938
  )
10939
 
10940
  def __init__(self, scx=None,):
10941
    self.scx = scx
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.STRUCT:
10954
          self.scx = ShoppingCartException()
10955
          self.scx.read(iprot)
10956
        else:
10957
          iprot.skip(ftype)
10958
      else:
10959
        iprot.skip(ftype)
10960
      iprot.readFieldEnd()
10961
    iprot.readStructEnd()
10962
 
10963
  def write(self, oprot):
10964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10966
      return
10967
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10968
    if self.scx is not None:
1976 varun.gupt 10969
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10970
      self.scx.write(oprot)
10971
      oprot.writeFieldEnd()
10972
    oprot.writeFieldStop()
10973
    oprot.writeStructEnd()
10974
 
3431 rajveer 10975
  def validate(self):
10976
    return
10977
 
10978
 
1976 varun.gupt 10979
  def __repr__(self):
10980
    L = ['%s=%r' % (key, value)
10981
      for key, value in self.__dict__.iteritems()]
10982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10983
 
10984
  def __eq__(self, other):
10985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10986
 
10987
  def __ne__(self, other):
10988
    return not (self == other)
10989
 
3554 varun.gupt 10990
class deleteDiscountsFromCart_args:
10991
  """
10992
  Attributes:
10993
   - cartId
10994
  """
10995
 
10996
  thrift_spec = (
10997
    None, # 0
10998
    (1, TType.I64, 'cartId', None, None, ), # 1
10999
  )
11000
 
11001
  def __init__(self, cartId=None,):
11002
    self.cartId = cartId
11003
 
11004
  def read(self, iprot):
11005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11007
      return
11008
    iprot.readStructBegin()
11009
    while True:
11010
      (fname, ftype, fid) = iprot.readFieldBegin()
11011
      if ftype == TType.STOP:
11012
        break
11013
      if fid == 1:
11014
        if ftype == TType.I64:
11015
          self.cartId = iprot.readI64();
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_args')
11028
    if self.cartId is not None:
11029
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11030
      oprot.writeI64(self.cartId)
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 deleteDiscountsFromCart_result:
11051
  """
11052
  Attributes:
11053
   - scx
11054
  """
11055
 
11056
  thrift_spec = (
11057
    None, # 0
11058
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11059
  )
11060
 
11061
  def __init__(self, scx=None,):
11062
    self.scx = scx
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.STRUCT:
11075
          self.scx = ShoppingCartException()
11076
          self.scx.read(iprot)
11077
        else:
11078
          iprot.skip(ftype)
11079
      else:
11080
        iprot.skip(ftype)
11081
      iprot.readFieldEnd()
11082
    iprot.readStructEnd()
11083
 
11084
  def write(self, oprot):
11085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11087
      return
11088
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11089
    if self.scx is not None:
11090
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11091
      self.scx.write(oprot)
11092
      oprot.writeFieldEnd()
11093
    oprot.writeFieldStop()
11094
    oprot.writeStructEnd()
11095
 
11096
  def validate(self):
11097
    return
11098
 
11099
 
11100
  def __repr__(self):
11101
    L = ['%s=%r' % (key, value)
11102
      for key, value in self.__dict__.iteritems()]
11103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11104
 
11105
  def __eq__(self, other):
11106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11107
 
11108
  def __ne__(self, other):
11109
    return not (self == other)
11110
 
11111
class saveDiscounts_args:
11112
  """
11113
  Attributes:
11114
   - discounts
11115
  """
11116
 
11117
  thrift_spec = (
11118
    None, # 0
11119
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11120
  )
11121
 
11122
  def __init__(self, discounts=None,):
11123
    self.discounts = discounts
11124
 
11125
  def read(self, iprot):
11126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11128
      return
11129
    iprot.readStructBegin()
11130
    while True:
11131
      (fname, ftype, fid) = iprot.readFieldBegin()
11132
      if ftype == TType.STOP:
11133
        break
11134
      if fid == 1:
11135
        if ftype == TType.LIST:
11136
          self.discounts = []
11592 amit.gupta 11137
          (_etype163, _size160) = iprot.readListBegin()
11138
          for _i164 in xrange(_size160):
11139
            _elem165 = Discount()
11140
            _elem165.read(iprot)
11141
            self.discounts.append(_elem165)
3554 varun.gupt 11142
          iprot.readListEnd()
11143
        else:
11144
          iprot.skip(ftype)
11145
      else:
11146
        iprot.skip(ftype)
11147
      iprot.readFieldEnd()
11148
    iprot.readStructEnd()
11149
 
11150
  def write(self, oprot):
11151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11153
      return
11154
    oprot.writeStructBegin('saveDiscounts_args')
11155
    if self.discounts is not None:
11156
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11157
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11592 amit.gupta 11158
      for iter166 in self.discounts:
11159
        iter166.write(oprot)
3554 varun.gupt 11160
      oprot.writeListEnd()
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
 
11180
class saveDiscounts_result:
11181
  """
11182
  Attributes:
11183
   - scx
11184
  """
11185
 
11186
  thrift_spec = (
11187
    None, # 0
11188
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11189
  )
11190
 
11191
  def __init__(self, scx=None,):
11192
    self.scx = scx
11193
 
11194
  def read(self, iprot):
11195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11197
      return
11198
    iprot.readStructBegin()
11199
    while True:
11200
      (fname, ftype, fid) = iprot.readFieldBegin()
11201
      if ftype == TType.STOP:
11202
        break
11203
      if fid == 1:
11204
        if ftype == TType.STRUCT:
11205
          self.scx = ShoppingCartException()
11206
          self.scx.read(iprot)
11207
        else:
11208
          iprot.skip(ftype)
11209
      else:
11210
        iprot.skip(ftype)
11211
      iprot.readFieldEnd()
11212
    iprot.readStructEnd()
11213
 
11214
  def write(self, oprot):
11215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11217
      return
11218
    oprot.writeStructBegin('saveDiscounts_result')
11219
    if self.scx is not None:
11220
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11221
      self.scx.write(oprot)
11222
      oprot.writeFieldEnd()
11223
    oprot.writeFieldStop()
11224
    oprot.writeStructEnd()
11225
 
11226
  def validate(self):
11227
    return
11228
 
11229
 
11230
  def __repr__(self):
11231
    L = ['%s=%r' % (key, value)
11232
      for key, value in self.__dict__.iteritems()]
11233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11234
 
11235
  def __eq__(self, other):
11236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11237
 
11238
  def __ne__(self, other):
11239
    return not (self == other)
11240
 
690 chandransh 11241
class createOrders_args:
559 chandransh 11242
  """
11243
  Attributes:
11244
   - cartId
2815 vikas 11245
   - sessionSource
11246
   - sessionStartTime
3858 vikas 11247
   - firstSource
11248
   - firstSourceTime
5326 rajveer 11249
   - userId
6389 rajveer 11250
   - schemeId
11526 amit.gupta 11251
   - orderSource
559 chandransh 11252
  """
11253
 
11254
  thrift_spec = (
11255
    None, # 0
11256
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11257
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11258
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11259
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11260
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 11261
    (6, TType.I64, 'userId', None, None, ), # 6
6389 rajveer 11262
    (7, TType.I64, 'schemeId', None, None, ), # 7
11526 amit.gupta 11263
    (8, TType.I64, 'orderSource', None, None, ), # 8
559 chandransh 11264
  )
11265
 
11526 amit.gupta 11266
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None, schemeId=None, orderSource=None,):
559 chandransh 11267
    self.cartId = cartId
2815 vikas 11268
    self.sessionSource = sessionSource
11269
    self.sessionStartTime = sessionStartTime
3858 vikas 11270
    self.firstSource = firstSource
11271
    self.firstSourceTime = firstSourceTime
5326 rajveer 11272
    self.userId = userId
6389 rajveer 11273
    self.schemeId = schemeId
11526 amit.gupta 11274
    self.orderSource = orderSource
559 chandransh 11275
 
11276
  def read(self, iprot):
11277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11279
      return
11280
    iprot.readStructBegin()
11281
    while True:
11282
      (fname, ftype, fid) = iprot.readFieldBegin()
11283
      if ftype == TType.STOP:
11284
        break
11285
      if fid == 1:
11286
        if ftype == TType.I64:
11287
          self.cartId = iprot.readI64();
11288
        else:
11289
          iprot.skip(ftype)
2815 vikas 11290
      elif fid == 2:
11291
        if ftype == TType.STRING:
11292
          self.sessionSource = iprot.readString();
11293
        else:
11294
          iprot.skip(ftype)
11295
      elif fid == 3:
11296
        if ftype == TType.I64:
11297
          self.sessionStartTime = iprot.readI64();
11298
        else:
11299
          iprot.skip(ftype)
3858 vikas 11300
      elif fid == 4:
11301
        if ftype == TType.STRING:
11302
          self.firstSource = iprot.readString();
11303
        else:
11304
          iprot.skip(ftype)
11305
      elif fid == 5:
11306
        if ftype == TType.I64:
11307
          self.firstSourceTime = iprot.readI64();
11308
        else:
11309
          iprot.skip(ftype)
5326 rajveer 11310
      elif fid == 6:
11311
        if ftype == TType.I64:
11312
          self.userId = iprot.readI64();
11313
        else:
11314
          iprot.skip(ftype)
6389 rajveer 11315
      elif fid == 7:
11316
        if ftype == TType.I64:
11317
          self.schemeId = iprot.readI64();
11318
        else:
11319
          iprot.skip(ftype)
11526 amit.gupta 11320
      elif fid == 8:
11321
        if ftype == TType.I64:
11322
          self.orderSource = iprot.readI64();
11323
        else:
11324
          iprot.skip(ftype)
559 chandransh 11325
      else:
11326
        iprot.skip(ftype)
11327
      iprot.readFieldEnd()
11328
    iprot.readStructEnd()
11329
 
11330
  def write(self, oprot):
11331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11333
      return
690 chandransh 11334
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11335
    if self.cartId is not None:
559 chandransh 11336
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11337
      oprot.writeI64(self.cartId)
11338
      oprot.writeFieldEnd()
3431 rajveer 11339
    if self.sessionSource is not None:
2815 vikas 11340
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11341
      oprot.writeString(self.sessionSource)
11342
      oprot.writeFieldEnd()
3431 rajveer 11343
    if self.sessionStartTime is not None:
2815 vikas 11344
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11345
      oprot.writeI64(self.sessionStartTime)
11346
      oprot.writeFieldEnd()
3858 vikas 11347
    if self.firstSource is not None:
11348
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11349
      oprot.writeString(self.firstSource)
11350
      oprot.writeFieldEnd()
11351
    if self.firstSourceTime is not None:
11352
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11353
      oprot.writeI64(self.firstSourceTime)
11354
      oprot.writeFieldEnd()
5326 rajveer 11355
    if self.userId is not None:
11356
      oprot.writeFieldBegin('userId', TType.I64, 6)
11357
      oprot.writeI64(self.userId)
11358
      oprot.writeFieldEnd()
6389 rajveer 11359
    if self.schemeId is not None:
11360
      oprot.writeFieldBegin('schemeId', TType.I64, 7)
11361
      oprot.writeI64(self.schemeId)
11362
      oprot.writeFieldEnd()
11526 amit.gupta 11363
    if self.orderSource is not None:
11364
      oprot.writeFieldBegin('orderSource', TType.I64, 8)
11365
      oprot.writeI64(self.orderSource)
11366
      oprot.writeFieldEnd()
559 chandransh 11367
    oprot.writeFieldStop()
11368
    oprot.writeStructEnd()
11369
 
3431 rajveer 11370
  def validate(self):
11371
    return
11372
 
11373
 
559 chandransh 11374
  def __repr__(self):
11375
    L = ['%s=%r' % (key, value)
11376
      for key, value in self.__dict__.iteritems()]
11377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11378
 
11379
  def __eq__(self, other):
11380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11381
 
11382
  def __ne__(self, other):
11383
    return not (self == other)
11384
 
690 chandransh 11385
class createOrders_result:
559 chandransh 11386
  """
11387
  Attributes:
94 ashish 11388
   - success
559 chandransh 11389
   - scx
94 ashish 11390
  """
11391
 
11392
  thrift_spec = (
575 chandransh 11393
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11394
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11395
  )
11396
 
559 chandransh 11397
  def __init__(self, success=None, scx=None,):
94 ashish 11398
    self.success = success
559 chandransh 11399
    self.scx = scx
94 ashish 11400
 
11401
  def read(self, iprot):
11402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11404
      return
11405
    iprot.readStructBegin()
11406
    while True:
11407
      (fname, ftype, fid) = iprot.readFieldBegin()
11408
      if ftype == TType.STOP:
11409
        break
11410
      if fid == 0:
575 chandransh 11411
        if ftype == TType.I64:
11412
          self.success = iprot.readI64();
94 ashish 11413
        else:
11414
          iprot.skip(ftype)
11415
      elif fid == 1:
11416
        if ftype == TType.STRUCT:
559 chandransh 11417
          self.scx = ShoppingCartException()
11418
          self.scx.read(iprot)
94 ashish 11419
        else:
11420
          iprot.skip(ftype)
11421
      else:
11422
        iprot.skip(ftype)
11423
      iprot.readFieldEnd()
11424
    iprot.readStructEnd()
11425
 
11426
  def write(self, oprot):
11427
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11428
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11429
      return
690 chandransh 11430
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11431
    if self.success is not None:
575 chandransh 11432
      oprot.writeFieldBegin('success', TType.I64, 0)
11433
      oprot.writeI64(self.success)
94 ashish 11434
      oprot.writeFieldEnd()
3431 rajveer 11435
    if self.scx is not None:
559 chandransh 11436
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11437
      self.scx.write(oprot)
94 ashish 11438
      oprot.writeFieldEnd()
11439
    oprot.writeFieldStop()
11440
    oprot.writeStructEnd()
11441
 
3431 rajveer 11442
  def validate(self):
11443
    return
11444
 
11445
 
94 ashish 11446
  def __repr__(self):
11447
    L = ['%s=%r' % (key, value)
11448
      for key, value in self.__dict__.iteritems()]
11449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11450
 
11451
  def __eq__(self, other):
11452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11453
 
11454
  def __ne__(self, other):
11455
    return not (self == other)
11456
 
559 chandransh 11457
class validateCart_args:
94 ashish 11458
  """
11459
  Attributes:
559 chandransh 11460
   - cartId
3557 rajveer 11461
   - sourceId
94 ashish 11462
  """
11463
 
11464
  thrift_spec = (
11465
    None, # 0
559 chandransh 11466
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11467
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11468
  )
11469
 
3557 rajveer 11470
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11471
    self.cartId = cartId
3557 rajveer 11472
    self.sourceId = sourceId
94 ashish 11473
 
11474
  def read(self, iprot):
11475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11477
      return
11478
    iprot.readStructBegin()
11479
    while True:
11480
      (fname, ftype, fid) = iprot.readFieldBegin()
11481
      if ftype == TType.STOP:
11482
        break
11483
      if fid == 1:
11484
        if ftype == TType.I64:
559 chandransh 11485
          self.cartId = iprot.readI64();
94 ashish 11486
        else:
11487
          iprot.skip(ftype)
3557 rajveer 11488
      elif fid == 2:
11489
        if ftype == TType.I64:
11490
          self.sourceId = iprot.readI64();
11491
        else:
11492
          iprot.skip(ftype)
94 ashish 11493
      else:
11494
        iprot.skip(ftype)
11495
      iprot.readFieldEnd()
11496
    iprot.readStructEnd()
11497
 
11498
  def write(self, oprot):
11499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11501
      return
559 chandransh 11502
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11503
    if self.cartId is not None:
559 chandransh 11504
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11505
      oprot.writeI64(self.cartId)
94 ashish 11506
      oprot.writeFieldEnd()
3557 rajveer 11507
    if self.sourceId is not None:
11508
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11509
      oprot.writeI64(self.sourceId)
11510
      oprot.writeFieldEnd()
94 ashish 11511
    oprot.writeFieldStop()
11512
    oprot.writeStructEnd()
11513
 
3431 rajveer 11514
  def validate(self):
11515
    return
11516
 
11517
 
94 ashish 11518
  def __repr__(self):
11519
    L = ['%s=%r' % (key, value)
11520
      for key, value in self.__dict__.iteritems()]
11521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11522
 
11523
  def __eq__(self, other):
11524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11525
 
11526
  def __ne__(self, other):
11527
    return not (self == other)
11528
 
559 chandransh 11529
class validateCart_result:
94 ashish 11530
  """
11531
  Attributes:
11532
   - success
575 chandransh 11533
   - scex
94 ashish 11534
  """
11535
 
11536
  thrift_spec = (
6736 amit.gupta 11537
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
575 chandransh 11538
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11539
  )
11540
 
575 chandransh 11541
  def __init__(self, success=None, scex=None,):
94 ashish 11542
    self.success = success
575 chandransh 11543
    self.scex = scex
94 ashish 11544
 
11545
  def read(self, iprot):
11546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11548
      return
11549
    iprot.readStructBegin()
11550
    while True:
11551
      (fname, ftype, fid) = iprot.readFieldBegin()
11552
      if ftype == TType.STOP:
11553
        break
11554
      if fid == 0:
6736 amit.gupta 11555
        if ftype == TType.LIST:
11556
          self.success = []
11592 amit.gupta 11557
          (_etype170, _size167) = iprot.readListBegin()
11558
          for _i171 in xrange(_size167):
11559
            _elem172 = iprot.readString();
11560
            self.success.append(_elem172)
6736 amit.gupta 11561
          iprot.readListEnd()
94 ashish 11562
        else:
11563
          iprot.skip(ftype)
575 chandransh 11564
      elif fid == 1:
11565
        if ftype == TType.STRUCT:
11566
          self.scex = ShoppingCartException()
11567
          self.scex.read(iprot)
11568
        else:
11569
          iprot.skip(ftype)
94 ashish 11570
      else:
11571
        iprot.skip(ftype)
11572
      iprot.readFieldEnd()
11573
    iprot.readStructEnd()
11574
 
11575
  def write(self, oprot):
11576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11578
      return
559 chandransh 11579
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11580
    if self.success is not None:
6736 amit.gupta 11581
      oprot.writeFieldBegin('success', TType.LIST, 0)
11582
      oprot.writeListBegin(TType.STRING, len(self.success))
11592 amit.gupta 11583
      for iter173 in self.success:
11584
        oprot.writeString(iter173)
6736 amit.gupta 11585
      oprot.writeListEnd()
94 ashish 11586
      oprot.writeFieldEnd()
3431 rajveer 11587
    if self.scex is not None:
575 chandransh 11588
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11589
      self.scex.write(oprot)
11590
      oprot.writeFieldEnd()
559 chandransh 11591
    oprot.writeFieldStop()
11592
    oprot.writeStructEnd()
11593
 
3431 rajveer 11594
  def validate(self):
11595
    return
11596
 
11597
 
559 chandransh 11598
  def __repr__(self):
11599
    L = ['%s=%r' % (key, value)
11600
      for key, value in self.__dict__.iteritems()]
11601
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11602
 
11603
  def __eq__(self, other):
11604
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11605
 
11606
  def __ne__(self, other):
11607
    return not (self == other)
11608
 
690 chandransh 11609
class mergeCart_args:
575 chandransh 11610
  """
11611
  Attributes:
690 chandransh 11612
   - fromCartId
11613
   - toCartId
11614
  """
11615
 
11616
  thrift_spec = (
11617
    None, # 0
11618
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11619
    (2, TType.I64, 'toCartId', None, None, ), # 2
11620
  )
11621
 
11622
  def __init__(self, fromCartId=None, toCartId=None,):
11623
    self.fromCartId = fromCartId
11624
    self.toCartId = toCartId
11625
 
11626
  def read(self, iprot):
11627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11629
      return
11630
    iprot.readStructBegin()
11631
    while True:
11632
      (fname, ftype, fid) = iprot.readFieldBegin()
11633
      if ftype == TType.STOP:
11634
        break
11635
      if fid == 1:
11636
        if ftype == TType.I64:
11637
          self.fromCartId = iprot.readI64();
11638
        else:
11639
          iprot.skip(ftype)
11640
      elif fid == 2:
11641
        if ftype == TType.I64:
11642
          self.toCartId = iprot.readI64();
11643
        else:
11644
          iprot.skip(ftype)
11645
      else:
11646
        iprot.skip(ftype)
11647
      iprot.readFieldEnd()
11648
    iprot.readStructEnd()
11649
 
11650
  def write(self, oprot):
11651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11653
      return
11654
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11655
    if self.fromCartId is not None:
690 chandransh 11656
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11657
      oprot.writeI64(self.fromCartId)
11658
      oprot.writeFieldEnd()
3431 rajveer 11659
    if self.toCartId is not None:
690 chandransh 11660
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11661
      oprot.writeI64(self.toCartId)
11662
      oprot.writeFieldEnd()
11663
    oprot.writeFieldStop()
11664
    oprot.writeStructEnd()
11665
 
3431 rajveer 11666
  def validate(self):
11667
    return
11668
 
11669
 
690 chandransh 11670
  def __repr__(self):
11671
    L = ['%s=%r' % (key, value)
11672
      for key, value in self.__dict__.iteritems()]
11673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11674
 
11675
  def __eq__(self, other):
11676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11677
 
11678
  def __ne__(self, other):
11679
    return not (self == other)
11680
 
11681
class mergeCart_result:
11682
 
11683
  thrift_spec = (
11684
  )
11685
 
11686
  def read(self, iprot):
11687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11689
      return
11690
    iprot.readStructBegin()
11691
    while True:
11692
      (fname, ftype, fid) = iprot.readFieldBegin()
11693
      if ftype == TType.STOP:
11694
        break
11695
      else:
11696
        iprot.skip(ftype)
11697
      iprot.readFieldEnd()
11698
    iprot.readStructEnd()
11699
 
11700
  def write(self, oprot):
11701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11703
      return
11704
    oprot.writeStructBegin('mergeCart_result')
11705
    oprot.writeFieldStop()
11706
    oprot.writeStructEnd()
11707
 
3431 rajveer 11708
  def validate(self):
11709
    return
11710
 
11711
 
690 chandransh 11712
  def __repr__(self):
11713
    L = ['%s=%r' % (key, value)
11714
      for key, value in self.__dict__.iteritems()]
11715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11716
 
11717
  def __eq__(self, other):
11718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11719
 
11720
  def __ne__(self, other):
11721
    return not (self == other)
11722
 
11723
class checkOut_args:
11724
  """
11725
  Attributes:
575 chandransh 11726
   - cartId
11727
  """
11728
 
11729
  thrift_spec = (
11730
    None, # 0
11731
    (1, TType.I64, 'cartId', None, None, ), # 1
11732
  )
11733
 
11734
  def __init__(self, cartId=None,):
11735
    self.cartId = cartId
11736
 
11737
  def read(self, iprot):
11738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11740
      return
11741
    iprot.readStructBegin()
11742
    while True:
11743
      (fname, ftype, fid) = iprot.readFieldBegin()
11744
      if ftype == TType.STOP:
11745
        break
11746
      if fid == 1:
11747
        if ftype == TType.I64:
11748
          self.cartId = iprot.readI64();
11749
        else:
11750
          iprot.skip(ftype)
11751
      else:
11752
        iprot.skip(ftype)
11753
      iprot.readFieldEnd()
11754
    iprot.readStructEnd()
11755
 
11756
  def write(self, oprot):
11757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11759
      return
690 chandransh 11760
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11761
    if self.cartId is not None:
575 chandransh 11762
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11763
      oprot.writeI64(self.cartId)
11764
      oprot.writeFieldEnd()
11765
    oprot.writeFieldStop()
11766
    oprot.writeStructEnd()
11767
 
3431 rajveer 11768
  def validate(self):
11769
    return
11770
 
11771
 
575 chandransh 11772
  def __repr__(self):
11773
    L = ['%s=%r' % (key, value)
11774
      for key, value in self.__dict__.iteritems()]
11775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11776
 
11777
  def __eq__(self, other):
11778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11779
 
11780
  def __ne__(self, other):
11781
    return not (self == other)
11782
 
690 chandransh 11783
class checkOut_result:
575 chandransh 11784
  """
11785
  Attributes:
11786
   - success
11787
   - scex
11788
  """
11789
 
11790
  thrift_spec = (
11791
    (0, TType.BOOL, 'success', None, None, ), # 0
11792
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11793
  )
11794
 
11795
  def __init__(self, success=None, scex=None,):
11796
    self.success = success
11797
    self.scex = scex
11798
 
11799
  def read(self, iprot):
11800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11802
      return
11803
    iprot.readStructBegin()
11804
    while True:
11805
      (fname, ftype, fid) = iprot.readFieldBegin()
11806
      if ftype == TType.STOP:
11807
        break
11808
      if fid == 0:
11809
        if ftype == TType.BOOL:
11810
          self.success = iprot.readBool();
11811
        else:
11812
          iprot.skip(ftype)
11813
      elif fid == 1:
11814
        if ftype == TType.STRUCT:
11815
          self.scex = ShoppingCartException()
11816
          self.scex.read(iprot)
11817
        else:
11818
          iprot.skip(ftype)
11819
      else:
11820
        iprot.skip(ftype)
11821
      iprot.readFieldEnd()
11822
    iprot.readStructEnd()
11823
 
11824
  def write(self, oprot):
11825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11827
      return
690 chandransh 11828
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11829
    if self.success is not None:
575 chandransh 11830
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11831
      oprot.writeBool(self.success)
11832
      oprot.writeFieldEnd()
3431 rajveer 11833
    if self.scex is not None:
575 chandransh 11834
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11835
      self.scex.write(oprot)
11836
      oprot.writeFieldEnd()
11837
    oprot.writeFieldStop()
11838
    oprot.writeStructEnd()
11839
 
3431 rajveer 11840
  def validate(self):
11841
    return
11842
 
11843
 
575 chandransh 11844
  def __repr__(self):
11845
    L = ['%s=%r' % (key, value)
11846
      for key, value in self.__dict__.iteritems()]
11847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11848
 
11849
  def __eq__(self, other):
11850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11851
 
11852
  def __ne__(self, other):
11853
    return not (self == other)
11854
 
690 chandransh 11855
class resetCart_args:
559 chandransh 11856
  """
11857
  Attributes:
690 chandransh 11858
   - cartId
11859
   - items
559 chandransh 11860
  """
11861
 
11862
  thrift_spec = (
11863
    None, # 0
690 chandransh 11864
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11865
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11866
  )
11867
 
690 chandransh 11868
  def __init__(self, cartId=None, items=None,):
11869
    self.cartId = cartId
11870
    self.items = items
559 chandransh 11871
 
11872
  def read(self, iprot):
11873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11875
      return
11876
    iprot.readStructBegin()
11877
    while True:
11878
      (fname, ftype, fid) = iprot.readFieldBegin()
11879
      if ftype == TType.STOP:
11880
        break
11881
      if fid == 1:
11882
        if ftype == TType.I64:
690 chandransh 11883
          self.cartId = iprot.readI64();
559 chandransh 11884
        else:
11885
          iprot.skip(ftype)
11886
      elif fid == 2:
690 chandransh 11887
        if ftype == TType.MAP:
11888
          self.items = {}
11592 amit.gupta 11889
          (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() 
11890
          for _i178 in xrange(_size174):
11891
            _key179 = iprot.readI64();
11892
            _val180 = iprot.readDouble();
11893
            self.items[_key179] = _val180
690 chandransh 11894
          iprot.readMapEnd()
559 chandransh 11895
        else:
11896
          iprot.skip(ftype)
11897
      else:
11898
        iprot.skip(ftype)
11899
      iprot.readFieldEnd()
11900
    iprot.readStructEnd()
11901
 
11902
  def write(self, oprot):
11903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11905
      return
690 chandransh 11906
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11907
    if self.cartId is not None:
690 chandransh 11908
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11909
      oprot.writeI64(self.cartId)
94 ashish 11910
      oprot.writeFieldEnd()
3431 rajveer 11911
    if self.items is not None:
690 chandransh 11912
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11913
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
11592 amit.gupta 11914
      for kiter181,viter182 in self.items.items():
11915
        oprot.writeI64(kiter181)
11916
        oprot.writeDouble(viter182)
690 chandransh 11917
      oprot.writeMapEnd()
559 chandransh 11918
      oprot.writeFieldEnd()
94 ashish 11919
    oprot.writeFieldStop()
11920
    oprot.writeStructEnd()
11921
 
3431 rajveer 11922
  def validate(self):
11923
    return
11924
 
11925
 
94 ashish 11926
  def __repr__(self):
11927
    L = ['%s=%r' % (key, value)
11928
      for key, value in self.__dict__.iteritems()]
11929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11930
 
11931
  def __eq__(self, other):
11932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11933
 
11934
  def __ne__(self, other):
11935
    return not (self == other)
11936
 
690 chandransh 11937
class resetCart_result:
11938
  """
11939
  Attributes:
11940
   - success
11941
   - scex
11942
  """
559 chandransh 11943
 
11944
  thrift_spec = (
690 chandransh 11945
    (0, TType.BOOL, 'success', None, None, ), # 0
11946
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11947
  )
11948
 
690 chandransh 11949
  def __init__(self, success=None, scex=None,):
11950
    self.success = success
11951
    self.scex = scex
11952
 
559 chandransh 11953
  def read(self, iprot):
11954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11956
      return
11957
    iprot.readStructBegin()
11958
    while True:
11959
      (fname, ftype, fid) = iprot.readFieldBegin()
11960
      if ftype == TType.STOP:
11961
        break
690 chandransh 11962
      if fid == 0:
11963
        if ftype == TType.BOOL:
11964
          self.success = iprot.readBool();
11965
        else:
11966
          iprot.skip(ftype)
11967
      elif fid == 1:
11968
        if ftype == TType.STRUCT:
11969
          self.scex = ShoppingCartException()
11970
          self.scex.read(iprot)
11971
        else:
11972
          iprot.skip(ftype)
559 chandransh 11973
      else:
11974
        iprot.skip(ftype)
11975
      iprot.readFieldEnd()
11976
    iprot.readStructEnd()
11977
 
11978
  def write(self, oprot):
11979
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11980
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11981
      return
690 chandransh 11982
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11983
    if self.success is not None:
690 chandransh 11984
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11985
      oprot.writeBool(self.success)
11986
      oprot.writeFieldEnd()
3431 rajveer 11987
    if self.scex is not None:
690 chandransh 11988
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11989
      self.scex.write(oprot)
11990
      oprot.writeFieldEnd()
559 chandransh 11991
    oprot.writeFieldStop()
11992
    oprot.writeStructEnd()
11993
 
3431 rajveer 11994
  def validate(self):
11995
    return
11996
 
11997
 
559 chandransh 11998
  def __repr__(self):
11999
    L = ['%s=%r' % (key, value)
12000
      for key, value in self.__dict__.iteritems()]
12001
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12002
 
12003
  def __eq__(self, other):
12004
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12005
 
12006
  def __ne__(self, other):
12007
    return not (self == other)
12008
 
2981 rajveer 12009
class getUserCount_args:
94 ashish 12010
  """
12011
  Attributes:
2981 rajveer 12012
   - userType
559 chandransh 12013
  """
12014
 
12015
  thrift_spec = (
12016
    None, # 0
2981 rajveer 12017
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12018
  )
12019
 
2981 rajveer 12020
  def __init__(self, userType=None,):
12021
    self.userType = userType
559 chandransh 12022
 
12023
  def read(self, iprot):
12024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12026
      return
12027
    iprot.readStructBegin()
12028
    while True:
12029
      (fname, ftype, fid) = iprot.readFieldBegin()
12030
      if ftype == TType.STOP:
12031
        break
12032
      if fid == 1:
2981 rajveer 12033
        if ftype == TType.I32:
12034
          self.userType = iprot.readI32();
559 chandransh 12035
        else:
12036
          iprot.skip(ftype)
12037
      else:
12038
        iprot.skip(ftype)
12039
      iprot.readFieldEnd()
12040
    iprot.readStructEnd()
12041
 
12042
  def write(self, oprot):
12043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12045
      return
2981 rajveer 12046
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12047
    if self.userType is not None:
2981 rajveer 12048
      oprot.writeFieldBegin('userType', TType.I32, 1)
12049
      oprot.writeI32(self.userType)
559 chandransh 12050
      oprot.writeFieldEnd()
12051
    oprot.writeFieldStop()
12052
    oprot.writeStructEnd()
12053
 
3431 rajveer 12054
  def validate(self):
12055
    return
12056
 
12057
 
559 chandransh 12058
  def __repr__(self):
12059
    L = ['%s=%r' % (key, value)
12060
      for key, value in self.__dict__.iteritems()]
12061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12062
 
12063
  def __eq__(self, other):
12064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12065
 
12066
  def __ne__(self, other):
12067
    return not (self == other)
12068
 
2981 rajveer 12069
class getUserCount_result:
94 ashish 12070
  """
12071
  Attributes:
12072
   - success
12073
  """
12074
 
12075
  thrift_spec = (
2981 rajveer 12076
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12077
  )
12078
 
2981 rajveer 12079
  def __init__(self, success=None,):
94 ashish 12080
    self.success = success
12081
 
12082
  def read(self, iprot):
12083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12085
      return
12086
    iprot.readStructBegin()
12087
    while True:
12088
      (fname, ftype, fid) = iprot.readFieldBegin()
12089
      if ftype == TType.STOP:
12090
        break
12091
      if fid == 0:
2981 rajveer 12092
        if ftype == TType.I64:
12093
          self.success = iprot.readI64();
94 ashish 12094
        else:
12095
          iprot.skip(ftype)
12096
      else:
12097
        iprot.skip(ftype)
12098
      iprot.readFieldEnd()
12099
    iprot.readStructEnd()
12100
 
12101
  def write(self, oprot):
12102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12104
      return
2981 rajveer 12105
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12106
    if self.success is not None:
2981 rajveer 12107
      oprot.writeFieldBegin('success', TType.I64, 0)
12108
      oprot.writeI64(self.success)
94 ashish 12109
      oprot.writeFieldEnd()
12110
    oprot.writeFieldStop()
12111
    oprot.writeStructEnd()
12112
 
3431 rajveer 12113
  def validate(self):
12114
    return
12115
 
12116
 
94 ashish 12117
  def __repr__(self):
12118
    L = ['%s=%r' % (key, value)
12119
      for key, value in self.__dict__.iteritems()]
12120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12121
 
12122
  def __eq__(self, other):
12123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12124
 
12125
  def __ne__(self, other):
12126
    return not (self == other)
12127
 
2981 rajveer 12128
class getAllUsers_args:
94 ashish 12129
  """
12130
  Attributes:
2981 rajveer 12131
   - userType
12132
   - startDate
12133
   - endDate
94 ashish 12134
  """
12135
 
12136
  thrift_spec = (
12137
    None, # 0
2981 rajveer 12138
    (1, TType.I32, 'userType', None, None, ), # 1
12139
    (2, TType.I64, 'startDate', None, None, ), # 2
12140
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12141
  )
12142
 
2981 rajveer 12143
  def __init__(self, userType=None, startDate=None, endDate=None,):
12144
    self.userType = userType
12145
    self.startDate = startDate
12146
    self.endDate = endDate
94 ashish 12147
 
12148
  def read(self, iprot):
12149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12151
      return
12152
    iprot.readStructBegin()
12153
    while True:
12154
      (fname, ftype, fid) = iprot.readFieldBegin()
12155
      if ftype == TType.STOP:
12156
        break
12157
      if fid == 1:
2981 rajveer 12158
        if ftype == TType.I32:
12159
          self.userType = iprot.readI32();
94 ashish 12160
        else:
12161
          iprot.skip(ftype)
12162
      elif fid == 2:
559 chandransh 12163
        if ftype == TType.I64:
2981 rajveer 12164
          self.startDate = iprot.readI64();
94 ashish 12165
        else:
12166
          iprot.skip(ftype)
2981 rajveer 12167
      elif fid == 3:
12168
        if ftype == TType.I64:
12169
          self.endDate = iprot.readI64();
12170
        else:
12171
          iprot.skip(ftype)
94 ashish 12172
      else:
12173
        iprot.skip(ftype)
12174
      iprot.readFieldEnd()
12175
    iprot.readStructEnd()
12176
 
12177
  def write(self, oprot):
12178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12180
      return
2981 rajveer 12181
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12182
    if self.userType is not None:
2981 rajveer 12183
      oprot.writeFieldBegin('userType', TType.I32, 1)
12184
      oprot.writeI32(self.userType)
94 ashish 12185
      oprot.writeFieldEnd()
3431 rajveer 12186
    if self.startDate is not None:
2981 rajveer 12187
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12188
      oprot.writeI64(self.startDate)
94 ashish 12189
      oprot.writeFieldEnd()
3431 rajveer 12190
    if self.endDate is not None:
2981 rajveer 12191
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12192
      oprot.writeI64(self.endDate)
12193
      oprot.writeFieldEnd()
94 ashish 12194
    oprot.writeFieldStop()
12195
    oprot.writeStructEnd()
12196
 
3431 rajveer 12197
  def validate(self):
12198
    return
12199
 
12200
 
94 ashish 12201
  def __repr__(self):
12202
    L = ['%s=%r' % (key, value)
12203
      for key, value in self.__dict__.iteritems()]
12204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12205
 
12206
  def __eq__(self, other):
12207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12208
 
12209
  def __ne__(self, other):
12210
    return not (self == other)
12211
 
2981 rajveer 12212
class getAllUsers_result:
94 ashish 12213
  """
12214
  Attributes:
12215
   - success
12216
  """
12217
 
12218
  thrift_spec = (
2981 rajveer 12219
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12220
  )
12221
 
2981 rajveer 12222
  def __init__(self, success=None,):
94 ashish 12223
    self.success = success
12224
 
12225
  def read(self, iprot):
12226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12228
      return
12229
    iprot.readStructBegin()
12230
    while True:
12231
      (fname, ftype, fid) = iprot.readFieldBegin()
12232
      if ftype == TType.STOP:
12233
        break
12234
      if fid == 0:
2981 rajveer 12235
        if ftype == TType.LIST:
12236
          self.success = []
11592 amit.gupta 12237
          (_etype186, _size183) = iprot.readListBegin()
12238
          for _i187 in xrange(_size183):
12239
            _elem188 = User()
12240
            _elem188.read(iprot)
12241
            self.success.append(_elem188)
2981 rajveer 12242
          iprot.readListEnd()
94 ashish 12243
        else:
12244
          iprot.skip(ftype)
12245
      else:
12246
        iprot.skip(ftype)
12247
      iprot.readFieldEnd()
12248
    iprot.readStructEnd()
12249
 
12250
  def write(self, oprot):
12251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12253
      return
2981 rajveer 12254
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12255
    if self.success is not None:
2981 rajveer 12256
      oprot.writeFieldBegin('success', TType.LIST, 0)
12257
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11592 amit.gupta 12258
      for iter189 in self.success:
12259
        iter189.write(oprot)
2981 rajveer 12260
      oprot.writeListEnd()
94 ashish 12261
      oprot.writeFieldEnd()
12262
    oprot.writeFieldStop()
12263
    oprot.writeStructEnd()
12264
 
3431 rajveer 12265
  def validate(self):
12266
    return
12267
 
12268
 
94 ashish 12269
  def __repr__(self):
12270
    L = ['%s=%r' % (key, value)
12271
      for key, value in self.__dict__.iteritems()]
12272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12273
 
12274
  def __eq__(self, other):
12275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12276
 
12277
  def __ne__(self, other):
12278
    return not (self == other)
12279
 
2981 rajveer 12280
class getMyResearchItems_args:
559 chandransh 12281
  """
12282
  Attributes:
772 rajveer 12283
   - userId
559 chandransh 12284
  """
12285
 
12286
  thrift_spec = (
12287
    None, # 0
772 rajveer 12288
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12289
  )
12290
 
772 rajveer 12291
  def __init__(self, userId=None,):
12292
    self.userId = userId
559 chandransh 12293
 
12294
  def read(self, iprot):
12295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12297
      return
12298
    iprot.readStructBegin()
12299
    while True:
12300
      (fname, ftype, fid) = iprot.readFieldBegin()
12301
      if ftype == TType.STOP:
12302
        break
12303
      if fid == 1:
12304
        if ftype == TType.I64:
772 rajveer 12305
          self.userId = iprot.readI64();
559 chandransh 12306
        else:
12307
          iprot.skip(ftype)
12308
      else:
12309
        iprot.skip(ftype)
12310
      iprot.readFieldEnd()
12311
    iprot.readStructEnd()
12312
 
12313
  def write(self, oprot):
12314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12316
      return
2981 rajveer 12317
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12318
    if self.userId is not None:
772 rajveer 12319
      oprot.writeFieldBegin('userId', TType.I64, 1)
12320
      oprot.writeI64(self.userId)
559 chandransh 12321
      oprot.writeFieldEnd()
12322
    oprot.writeFieldStop()
12323
    oprot.writeStructEnd()
12324
 
3431 rajveer 12325
  def validate(self):
12326
    return
12327
 
12328
 
559 chandransh 12329
  def __repr__(self):
12330
    L = ['%s=%r' % (key, value)
12331
      for key, value in self.__dict__.iteritems()]
12332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12333
 
12334
  def __eq__(self, other):
12335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12336
 
12337
  def __ne__(self, other):
12338
    return not (self == other)
12339
 
2981 rajveer 12340
class getMyResearchItems_result:
559 chandransh 12341
  """
12342
  Attributes:
130 ashish 12343
   - success
559 chandransh 12344
   - scx
130 ashish 12345
  """
12346
 
12347
  thrift_spec = (
2981 rajveer 12348
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12349
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12350
  )
12351
 
559 chandransh 12352
  def __init__(self, success=None, scx=None,):
130 ashish 12353
    self.success = success
559 chandransh 12354
    self.scx = scx
130 ashish 12355
 
12356
  def read(self, iprot):
12357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12359
      return
12360
    iprot.readStructBegin()
12361
    while True:
12362
      (fname, ftype, fid) = iprot.readFieldBegin()
12363
      if ftype == TType.STOP:
12364
        break
12365
      if fid == 0:
2981 rajveer 12366
        if ftype == TType.LIST:
12367
          self.success = []
11592 amit.gupta 12368
          (_etype193, _size190) = iprot.readListBegin()
12369
          for _i194 in xrange(_size190):
12370
            _elem195 = iprot.readI64();
12371
            self.success.append(_elem195)
2981 rajveer 12372
          iprot.readListEnd()
130 ashish 12373
        else:
12374
          iprot.skip(ftype)
12375
      elif fid == 1:
12376
        if ftype == TType.STRUCT:
559 chandransh 12377
          self.scx = WidgetException()
12378
          self.scx.read(iprot)
130 ashish 12379
        else:
12380
          iprot.skip(ftype)
12381
      else:
12382
        iprot.skip(ftype)
12383
      iprot.readFieldEnd()
12384
    iprot.readStructEnd()
12385
 
12386
  def write(self, oprot):
12387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12389
      return
2981 rajveer 12390
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12391
    if self.success is not None:
2981 rajveer 12392
      oprot.writeFieldBegin('success', TType.LIST, 0)
12393
      oprot.writeListBegin(TType.I64, len(self.success))
11592 amit.gupta 12394
      for iter196 in self.success:
12395
        oprot.writeI64(iter196)
2981 rajveer 12396
      oprot.writeListEnd()
130 ashish 12397
      oprot.writeFieldEnd()
3431 rajveer 12398
    if self.scx is not None:
559 chandransh 12399
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12400
      self.scx.write(oprot)
130 ashish 12401
      oprot.writeFieldEnd()
12402
    oprot.writeFieldStop()
12403
    oprot.writeStructEnd()
12404
 
3431 rajveer 12405
  def validate(self):
12406
    return
12407
 
12408
 
130 ashish 12409
  def __repr__(self):
12410
    L = ['%s=%r' % (key, value)
12411
      for key, value in self.__dict__.iteritems()]
12412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12413
 
12414
  def __eq__(self, other):
12415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12416
 
12417
  def __ne__(self, other):
12418
    return not (self == other)
12419
 
2981 rajveer 12420
class updateMyResearch_args:
130 ashish 12421
  """
12422
  Attributes:
2981 rajveer 12423
   - userId
12424
   - itemId
130 ashish 12425
  """
12426
 
12427
  thrift_spec = (
12428
    None, # 0
2981 rajveer 12429
    (1, TType.I64, 'userId', None, None, ), # 1
12430
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12431
  )
12432
 
2981 rajveer 12433
  def __init__(self, userId=None, itemId=None,):
12434
    self.userId = userId
12435
    self.itemId = itemId
130 ashish 12436
 
12437
  def read(self, iprot):
12438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12440
      return
12441
    iprot.readStructBegin()
12442
    while True:
12443
      (fname, ftype, fid) = iprot.readFieldBegin()
12444
      if ftype == TType.STOP:
12445
        break
12446
      if fid == 1:
559 chandransh 12447
        if ftype == TType.I64:
2981 rajveer 12448
          self.userId = iprot.readI64();
130 ashish 12449
        else:
12450
          iprot.skip(ftype)
12451
      elif fid == 2:
559 chandransh 12452
        if ftype == TType.I64:
2981 rajveer 12453
          self.itemId = iprot.readI64();
559 chandransh 12454
        else:
12455
          iprot.skip(ftype)
130 ashish 12456
      else:
12457
        iprot.skip(ftype)
12458
      iprot.readFieldEnd()
12459
    iprot.readStructEnd()
12460
 
12461
  def write(self, oprot):
12462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12464
      return
2981 rajveer 12465
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12466
    if self.userId is not None:
2981 rajveer 12467
      oprot.writeFieldBegin('userId', TType.I64, 1)
12468
      oprot.writeI64(self.userId)
130 ashish 12469
      oprot.writeFieldEnd()
3431 rajveer 12470
    if self.itemId is not None:
2981 rajveer 12471
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12472
      oprot.writeI64(self.itemId)
130 ashish 12473
      oprot.writeFieldEnd()
12474
    oprot.writeFieldStop()
12475
    oprot.writeStructEnd()
12476
 
3431 rajveer 12477
  def validate(self):
12478
    return
12479
 
12480
 
130 ashish 12481
  def __repr__(self):
12482
    L = ['%s=%r' % (key, value)
12483
      for key, value in self.__dict__.iteritems()]
12484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12485
 
12486
  def __eq__(self, other):
12487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12488
 
12489
  def __ne__(self, other):
12490
    return not (self == other)
12491
 
2981 rajveer 12492
class updateMyResearch_result:
12493
  """
12494
  Attributes:
12495
   - success
12496
   - scx
12497
  """
559 chandransh 12498
 
12499
  thrift_spec = (
2981 rajveer 12500
    (0, TType.BOOL, 'success', None, None, ), # 0
12501
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12502
  )
12503
 
2981 rajveer 12504
  def __init__(self, success=None, scx=None,):
12505
    self.success = success
12506
    self.scx = scx
12507
 
559 chandransh 12508
  def read(self, iprot):
12509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12511
      return
12512
    iprot.readStructBegin()
12513
    while True:
12514
      (fname, ftype, fid) = iprot.readFieldBegin()
12515
      if ftype == TType.STOP:
12516
        break
2981 rajveer 12517
      if fid == 0:
12518
        if ftype == TType.BOOL:
12519
          self.success = iprot.readBool();
12520
        else:
12521
          iprot.skip(ftype)
12522
      elif fid == 1:
12523
        if ftype == TType.STRUCT:
12524
          self.scx = WidgetException()
12525
          self.scx.read(iprot)
12526
        else:
12527
          iprot.skip(ftype)
559 chandransh 12528
      else:
12529
        iprot.skip(ftype)
12530
      iprot.readFieldEnd()
12531
    iprot.readStructEnd()
12532
 
12533
  def write(self, oprot):
12534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12536
      return
2981 rajveer 12537
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12538
    if self.success is not None:
2981 rajveer 12539
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12540
      oprot.writeBool(self.success)
12541
      oprot.writeFieldEnd()
3431 rajveer 12542
    if self.scx is not None:
2981 rajveer 12543
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12544
      self.scx.write(oprot)
12545
      oprot.writeFieldEnd()
559 chandransh 12546
    oprot.writeFieldStop()
12547
    oprot.writeStructEnd()
12548
 
3431 rajveer 12549
  def validate(self):
12550
    return
12551
 
12552
 
559 chandransh 12553
  def __repr__(self):
12554
    L = ['%s=%r' % (key, value)
12555
      for key, value in self.__dict__.iteritems()]
12556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12557
 
12558
  def __eq__(self, other):
12559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12560
 
12561
  def __ne__(self, other):
12562
    return not (self == other)
12563
 
2981 rajveer 12564
class deleteItemFromMyResearch_args:
1596 ankur.sing 12565
  """
12566
  Attributes:
2981 rajveer 12567
   - userId
12568
   - itemId
1596 ankur.sing 12569
  """
559 chandransh 12570
 
1596 ankur.sing 12571
  thrift_spec = (
12572
    None, # 0
2981 rajveer 12573
    (1, TType.I64, 'userId', None, None, ), # 1
12574
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12575
  )
12576
 
2981 rajveer 12577
  def __init__(self, userId=None, itemId=None,):
12578
    self.userId = userId
12579
    self.itemId = itemId
1596 ankur.sing 12580
 
12581
  def read(self, iprot):
12582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12584
      return
12585
    iprot.readStructBegin()
12586
    while True:
12587
      (fname, ftype, fid) = iprot.readFieldBegin()
12588
      if ftype == TType.STOP:
12589
        break
12590
      if fid == 1:
2981 rajveer 12591
        if ftype == TType.I64:
12592
          self.userId = iprot.readI64();
1596 ankur.sing 12593
        else:
12594
          iprot.skip(ftype)
2981 rajveer 12595
      elif fid == 2:
12596
        if ftype == TType.I64:
12597
          self.itemId = iprot.readI64();
12598
        else:
12599
          iprot.skip(ftype)
1596 ankur.sing 12600
      else:
12601
        iprot.skip(ftype)
12602
      iprot.readFieldEnd()
12603
    iprot.readStructEnd()
12604
 
12605
  def write(self, oprot):
12606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12608
      return
2981 rajveer 12609
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12610
    if self.userId is not None:
2981 rajveer 12611
      oprot.writeFieldBegin('userId', TType.I64, 1)
12612
      oprot.writeI64(self.userId)
1596 ankur.sing 12613
      oprot.writeFieldEnd()
3431 rajveer 12614
    if self.itemId is not None:
2981 rajveer 12615
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12616
      oprot.writeI64(self.itemId)
12617
      oprot.writeFieldEnd()
1596 ankur.sing 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 deleteItemFromMyResearch_result:
1596 ankur.sing 12637
  """
12638
  Attributes:
2981 rajveer 12639
   - scx
1596 ankur.sing 12640
  """
12641
 
12642
  thrift_spec = (
2981 rajveer 12643
    None, # 0
12644
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12645
  )
12646
 
2981 rajveer 12647
  def __init__(self, scx=None,):
12648
    self.scx = scx
1596 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
2981 rajveer 12659
      if fid == 1:
12660
        if ftype == TType.STRUCT:
12661
          self.scx = WidgetException()
12662
          self.scx.read(iprot)
1596 ankur.sing 12663
        else:
12664
          iprot.skip(ftype)
12665
      else:
12666
        iprot.skip(ftype)
12667
      iprot.readFieldEnd()
12668
    iprot.readStructEnd()
12669
 
12670
  def write(self, oprot):
12671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12673
      return
2981 rajveer 12674
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12675
    if self.scx is not None:
2981 rajveer 12676
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12677
      self.scx.write(oprot)
1596 ankur.sing 12678
      oprot.writeFieldEnd()
12679
    oprot.writeFieldStop()
12680
    oprot.writeStructEnd()
12681
 
3431 rajveer 12682
  def validate(self):
12683
    return
12684
 
12685
 
1596 ankur.sing 12686
  def __repr__(self):
12687
    L = ['%s=%r' % (key, value)
12688
      for key, value in self.__dict__.iteritems()]
12689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12690
 
12691
  def __eq__(self, other):
12692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12693
 
12694
  def __ne__(self, other):
12695
    return not (self == other)
12696
 
2981 rajveer 12697
class getBrowseHistoryItems_args:
1673 ankur.sing 12698
  """
12699
  Attributes:
2981 rajveer 12700
   - userId
1673 ankur.sing 12701
  """
1596 ankur.sing 12702
 
1673 ankur.sing 12703
  thrift_spec = (
12704
    None, # 0
2981 rajveer 12705
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12706
  )
12707
 
2981 rajveer 12708
  def __init__(self, userId=None,):
12709
    self.userId = userId
1673 ankur.sing 12710
 
12711
  def read(self, iprot):
12712
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12713
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12714
      return
12715
    iprot.readStructBegin()
12716
    while True:
12717
      (fname, ftype, fid) = iprot.readFieldBegin()
12718
      if ftype == TType.STOP:
12719
        break
12720
      if fid == 1:
1891 ankur.sing 12721
        if ftype == TType.I64:
2981 rajveer 12722
          self.userId = iprot.readI64();
1891 ankur.sing 12723
        else:
12724
          iprot.skip(ftype)
1673 ankur.sing 12725
      else:
12726
        iprot.skip(ftype)
12727
      iprot.readFieldEnd()
12728
    iprot.readStructEnd()
12729
 
12730
  def write(self, oprot):
12731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12733
      return
2981 rajveer 12734
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12735
    if self.userId is not None:
2981 rajveer 12736
      oprot.writeFieldBegin('userId', TType.I64, 1)
12737
      oprot.writeI64(self.userId)
1673 ankur.sing 12738
      oprot.writeFieldEnd()
12739
    oprot.writeFieldStop()
12740
    oprot.writeStructEnd()
12741
 
3431 rajveer 12742
  def validate(self):
12743
    return
12744
 
12745
 
1673 ankur.sing 12746
  def __repr__(self):
12747
    L = ['%s=%r' % (key, value)
12748
      for key, value in self.__dict__.iteritems()]
12749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12750
 
12751
  def __eq__(self, other):
12752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12753
 
12754
  def __ne__(self, other):
12755
    return not (self == other)
12756
 
2981 rajveer 12757
class getBrowseHistoryItems_result:
1673 ankur.sing 12758
  """
12759
  Attributes:
12760
   - success
2981 rajveer 12761
   - scx
1673 ankur.sing 12762
  """
12763
 
12764
  thrift_spec = (
2981 rajveer 12765
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12766
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12767
  )
12768
 
2981 rajveer 12769
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12770
    self.success = success
2981 rajveer 12771
    self.scx = scx
1673 ankur.sing 12772
 
12773
  def read(self, iprot):
12774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12776
      return
12777
    iprot.readStructBegin()
12778
    while True:
12779
      (fname, ftype, fid) = iprot.readFieldBegin()
12780
      if ftype == TType.STOP:
12781
        break
12782
      if fid == 0:
12783
        if ftype == TType.LIST:
12784
          self.success = []
11592 amit.gupta 12785
          (_etype200, _size197) = iprot.readListBegin()
12786
          for _i201 in xrange(_size197):
12787
            _elem202 = iprot.readI64();
12788
            self.success.append(_elem202)
1673 ankur.sing 12789
          iprot.readListEnd()
12790
        else:
12791
          iprot.skip(ftype)
2981 rajveer 12792
      elif fid == 1:
12793
        if ftype == TType.STRUCT:
12794
          self.scx = WidgetException()
12795
          self.scx.read(iprot)
12796
        else:
12797
          iprot.skip(ftype)
1673 ankur.sing 12798
      else:
12799
        iprot.skip(ftype)
12800
      iprot.readFieldEnd()
12801
    iprot.readStructEnd()
12802
 
12803
  def write(self, oprot):
12804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12806
      return
2981 rajveer 12807
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12808
    if self.success is not None:
1673 ankur.sing 12809
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12810
      oprot.writeListBegin(TType.I64, len(self.success))
11592 amit.gupta 12811
      for iter203 in self.success:
12812
        oprot.writeI64(iter203)
1673 ankur.sing 12813
      oprot.writeListEnd()
12814
      oprot.writeFieldEnd()
3431 rajveer 12815
    if self.scx is not None:
2981 rajveer 12816
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12817
      self.scx.write(oprot)
2642 varun.gupt 12818
      oprot.writeFieldEnd()
12819
    oprot.writeFieldStop()
12820
    oprot.writeStructEnd()
12821
 
3431 rajveer 12822
  def validate(self):
12823
    return
12824
 
12825
 
2642 varun.gupt 12826
  def __repr__(self):
12827
    L = ['%s=%r' % (key, value)
12828
      for key, value in self.__dict__.iteritems()]
12829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12830
 
12831
  def __eq__(self, other):
12832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12833
 
12834
  def __ne__(self, other):
12835
    return not (self == other)
12836
 
2981 rajveer 12837
class updateBrowseHistory_args:
2642 varun.gupt 12838
  """
12839
  Attributes:
2981 rajveer 12840
   - userId
12841
   - itemId
2642 varun.gupt 12842
  """
12843
 
12844
  thrift_spec = (
12845
    None, # 0
2981 rajveer 12846
    (1, TType.I64, 'userId', None, None, ), # 1
12847
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12848
  )
12849
 
2981 rajveer 12850
  def __init__(self, userId=None, itemId=None,):
12851
    self.userId = userId
12852
    self.itemId = itemId
2642 varun.gupt 12853
 
12854
  def read(self, iprot):
12855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12857
      return
12858
    iprot.readStructBegin()
12859
    while True:
12860
      (fname, ftype, fid) = iprot.readFieldBegin()
12861
      if ftype == TType.STOP:
12862
        break
12863
      if fid == 1:
12864
        if ftype == TType.I64:
2981 rajveer 12865
          self.userId = iprot.readI64();
2642 varun.gupt 12866
        else:
12867
          iprot.skip(ftype)
12868
      elif fid == 2:
12869
        if ftype == TType.I64:
2981 rajveer 12870
          self.itemId = iprot.readI64();
2642 varun.gupt 12871
        else:
12872
          iprot.skip(ftype)
12873
      else:
12874
        iprot.skip(ftype)
12875
      iprot.readFieldEnd()
12876
    iprot.readStructEnd()
12877
 
12878
  def write(self, oprot):
12879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12881
      return
2981 rajveer 12882
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12883
    if self.userId is not None:
2981 rajveer 12884
      oprot.writeFieldBegin('userId', TType.I64, 1)
12885
      oprot.writeI64(self.userId)
2642 varun.gupt 12886
      oprot.writeFieldEnd()
3431 rajveer 12887
    if self.itemId is not None:
2981 rajveer 12888
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12889
      oprot.writeI64(self.itemId)
2642 varun.gupt 12890
      oprot.writeFieldEnd()
12891
    oprot.writeFieldStop()
12892
    oprot.writeStructEnd()
12893
 
3431 rajveer 12894
  def validate(self):
12895
    return
12896
 
12897
 
2642 varun.gupt 12898
  def __repr__(self):
12899
    L = ['%s=%r' % (key, value)
12900
      for key, value in self.__dict__.iteritems()]
12901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12902
 
12903
  def __eq__(self, other):
12904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12905
 
12906
  def __ne__(self, other):
12907
    return not (self == other)
12908
 
2981 rajveer 12909
class updateBrowseHistory_result:
2642 varun.gupt 12910
 
12911
  thrift_spec = (
12912
  )
12913
 
12914
  def read(self, iprot):
12915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12917
      return
12918
    iprot.readStructBegin()
12919
    while True:
12920
      (fname, ftype, fid) = iprot.readFieldBegin()
12921
      if ftype == TType.STOP:
12922
        break
12923
      else:
12924
        iprot.skip(ftype)
12925
      iprot.readFieldEnd()
12926
    iprot.readStructEnd()
12927
 
12928
  def write(self, oprot):
12929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12931
      return
2981 rajveer 12932
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12933
    oprot.writeFieldStop()
12934
    oprot.writeStructEnd()
12935
 
3431 rajveer 12936
  def validate(self):
12937
    return
12938
 
12939
 
2642 varun.gupt 12940
  def __repr__(self):
12941
    L = ['%s=%r' % (key, value)
12942
      for key, value in self.__dict__.iteritems()]
12943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12944
 
12945
  def __eq__(self, other):
12946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12947
 
12948
  def __ne__(self, other):
12949
    return not (self == other)
12950
 
3385 varun.gupt 12951
class getCartsWithCouponCount_args:
12952
  """
12953
  Attributes:
12954
   - couponCode
12955
  """
2642 varun.gupt 12956
 
3385 varun.gupt 12957
  thrift_spec = (
12958
    None, # 0
12959
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12960
  )
12961
 
12962
  def __init__(self, couponCode=None,):
12963
    self.couponCode = couponCode
12964
 
12965
  def read(self, iprot):
12966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12968
      return
12969
    iprot.readStructBegin()
12970
    while True:
12971
      (fname, ftype, fid) = iprot.readFieldBegin()
12972
      if ftype == TType.STOP:
12973
        break
12974
      if fid == 1:
12975
        if ftype == TType.STRING:
12976
          self.couponCode = iprot.readString();
12977
        else:
12978
          iprot.skip(ftype)
12979
      else:
12980
        iprot.skip(ftype)
12981
      iprot.readFieldEnd()
12982
    iprot.readStructEnd()
12983
 
12984
  def write(self, oprot):
12985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12987
      return
12988
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12989
    if self.couponCode is not None:
3385 varun.gupt 12990
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12991
      oprot.writeString(self.couponCode)
12992
      oprot.writeFieldEnd()
12993
    oprot.writeFieldStop()
12994
    oprot.writeStructEnd()
12995
 
3431 rajveer 12996
  def validate(self):
12997
    return
12998
 
12999
 
3385 varun.gupt 13000
  def __repr__(self):
13001
    L = ['%s=%r' % (key, value)
13002
      for key, value in self.__dict__.iteritems()]
13003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13004
 
13005
  def __eq__(self, other):
13006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13007
 
13008
  def __ne__(self, other):
13009
    return not (self == other)
13010
 
13011
class getCartsWithCouponCount_result:
13012
  """
13013
  Attributes:
13014
   - success
13015
  """
13016
 
13017
  thrift_spec = (
13018
    (0, TType.I64, 'success', None, None, ), # 0
13019
  )
13020
 
13021
  def __init__(self, success=None,):
13022
    self.success = success
13023
 
13024
  def read(self, iprot):
13025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13027
      return
13028
    iprot.readStructBegin()
13029
    while True:
13030
      (fname, ftype, fid) = iprot.readFieldBegin()
13031
      if ftype == TType.STOP:
13032
        break
13033
      if fid == 0:
13034
        if ftype == TType.I64:
13035
          self.success = iprot.readI64();
13036
        else:
13037
          iprot.skip(ftype)
13038
      else:
13039
        iprot.skip(ftype)
13040
      iprot.readFieldEnd()
13041
    iprot.readStructEnd()
13042
 
13043
  def write(self, oprot):
13044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13046
      return
13047
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13048
    if self.success is not None:
3385 varun.gupt 13049
      oprot.writeFieldBegin('success', TType.I64, 0)
13050
      oprot.writeI64(self.success)
13051
      oprot.writeFieldEnd()
13052
    oprot.writeFieldStop()
13053
    oprot.writeStructEnd()
13054
 
3431 rajveer 13055
  def validate(self):
13056
    return
13057
 
13058
 
3385 varun.gupt 13059
  def __repr__(self):
13060
    L = ['%s=%r' % (key, value)
13061
      for key, value in self.__dict__.iteritems()]
13062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13063
 
13064
  def __eq__(self, other):
13065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13066
 
13067
  def __ne__(self, other):
13068
    return not (self == other)
3499 mandeep.dh 13069
 
13070
class increaseTrustLevel_args:
13071
  """
13072
  Attributes:
13073
   - userId
13074
   - trustLevelDelta
13075
  """
13076
 
13077
  thrift_spec = (
13078
    None, # 0
13079
    (1, TType.I64, 'userId', None, None, ), # 1
13080
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13081
  )
13082
 
13083
  def __init__(self, userId=None, trustLevelDelta=None,):
13084
    self.userId = userId
13085
    self.trustLevelDelta = trustLevelDelta
13086
 
13087
  def read(self, iprot):
13088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13090
      return
13091
    iprot.readStructBegin()
13092
    while True:
13093
      (fname, ftype, fid) = iprot.readFieldBegin()
13094
      if ftype == TType.STOP:
13095
        break
13096
      if fid == 1:
13097
        if ftype == TType.I64:
13098
          self.userId = iprot.readI64();
13099
        else:
13100
          iprot.skip(ftype)
13101
      elif fid == 2:
13102
        if ftype == TType.DOUBLE:
13103
          self.trustLevelDelta = iprot.readDouble();
13104
        else:
13105
          iprot.skip(ftype)
13106
      else:
13107
        iprot.skip(ftype)
13108
      iprot.readFieldEnd()
13109
    iprot.readStructEnd()
13110
 
13111
  def write(self, oprot):
13112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13114
      return
13115
    oprot.writeStructBegin('increaseTrustLevel_args')
13116
    if self.userId is not None:
13117
      oprot.writeFieldBegin('userId', TType.I64, 1)
13118
      oprot.writeI64(self.userId)
13119
      oprot.writeFieldEnd()
13120
    if self.trustLevelDelta is not None:
13121
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13122
      oprot.writeDouble(self.trustLevelDelta)
13123
      oprot.writeFieldEnd()
13124
    oprot.writeFieldStop()
13125
    oprot.writeStructEnd()
13126
 
13127
  def validate(self):
13128
    return
13129
 
13130
 
13131
  def __repr__(self):
13132
    L = ['%s=%r' % (key, value)
13133
      for key, value in self.__dict__.iteritems()]
13134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13135
 
13136
  def __eq__(self, other):
13137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13138
 
13139
  def __ne__(self, other):
13140
    return not (self == other)
4668 varun.gupt 13141
 
5407 amar.kumar 13142
class getTrustLevel_args:
13143
  """
13144
  Attributes:
13145
   - userId
13146
  """
13147
 
13148
  thrift_spec = (
13149
    None, # 0
13150
    (1, TType.I64, 'userId', None, None, ), # 1
13151
  )
13152
 
13153
  def __init__(self, userId=None,):
13154
    self.userId = userId
13155
 
13156
  def read(self, iprot):
13157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13159
      return
13160
    iprot.readStructBegin()
13161
    while True:
13162
      (fname, ftype, fid) = iprot.readFieldBegin()
13163
      if ftype == TType.STOP:
13164
        break
13165
      if fid == 1:
13166
        if ftype == TType.I64:
13167
          self.userId = iprot.readI64();
13168
        else:
13169
          iprot.skip(ftype)
13170
      else:
13171
        iprot.skip(ftype)
13172
      iprot.readFieldEnd()
13173
    iprot.readStructEnd()
13174
 
13175
  def write(self, oprot):
13176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13178
      return
13179
    oprot.writeStructBegin('getTrustLevel_args')
13180
    if self.userId is not None:
13181
      oprot.writeFieldBegin('userId', TType.I64, 1)
13182
      oprot.writeI64(self.userId)
13183
      oprot.writeFieldEnd()
13184
    oprot.writeFieldStop()
13185
    oprot.writeStructEnd()
13186
 
13187
  def validate(self):
13188
    return
13189
 
13190
 
13191
  def __repr__(self):
13192
    L = ['%s=%r' % (key, value)
13193
      for key, value in self.__dict__.iteritems()]
13194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13195
 
13196
  def __eq__(self, other):
13197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13198
 
13199
  def __ne__(self, other):
13200
    return not (self == other)
13201
 
13202
class getTrustLevel_result:
13203
  """
13204
  Attributes:
13205
   - success
13206
  """
13207
 
13208
  thrift_spec = (
13209
    (0, TType.DOUBLE, 'success', None, None, ), # 0
13210
  )
13211
 
13212
  def __init__(self, success=None,):
13213
    self.success = success
13214
 
13215
  def read(self, iprot):
13216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13218
      return
13219
    iprot.readStructBegin()
13220
    while True:
13221
      (fname, ftype, fid) = iprot.readFieldBegin()
13222
      if ftype == TType.STOP:
13223
        break
13224
      if fid == 0:
13225
        if ftype == TType.DOUBLE:
13226
          self.success = iprot.readDouble();
13227
        else:
13228
          iprot.skip(ftype)
13229
      else:
13230
        iprot.skip(ftype)
13231
      iprot.readFieldEnd()
13232
    iprot.readStructEnd()
13233
 
13234
  def write(self, oprot):
13235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13237
      return
13238
    oprot.writeStructBegin('getTrustLevel_result')
13239
    if self.success is not None:
13240
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
13241
      oprot.writeDouble(self.success)
13242
      oprot.writeFieldEnd()
13243
    oprot.writeFieldStop()
13244
    oprot.writeStructEnd()
13245
 
13246
  def validate(self):
13247
    return
13248
 
13249
 
13250
  def __repr__(self):
13251
    L = ['%s=%r' % (key, value)
13252
      for key, value in self.__dict__.iteritems()]
13253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13254
 
13255
  def __eq__(self, other):
13256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13257
 
13258
  def __ne__(self, other):
13259
    return not (self == other)
13260
 
4668 varun.gupt 13261
class showCODOption_args:
13262
  """
13263
  Attributes:
13264
   - cartId
13265
   - sourceId
13266
   - pincode
13267
  """
13268
 
13269
  thrift_spec = (
13270
    None, # 0
13271
    (1, TType.I64, 'cartId', None, None, ), # 1
13272
    (2, TType.I64, 'sourceId', None, None, ), # 2
13273
    (3, TType.STRING, 'pincode', None, None, ), # 3
13274
  )
13275
 
13276
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
13277
    self.cartId = cartId
13278
    self.sourceId = sourceId
13279
    self.pincode = pincode
13280
 
13281
  def read(self, iprot):
13282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13284
      return
13285
    iprot.readStructBegin()
13286
    while True:
13287
      (fname, ftype, fid) = iprot.readFieldBegin()
13288
      if ftype == TType.STOP:
13289
        break
13290
      if fid == 1:
13291
        if ftype == TType.I64:
13292
          self.cartId = iprot.readI64();
13293
        else:
13294
          iprot.skip(ftype)
13295
      elif fid == 2:
13296
        if ftype == TType.I64:
13297
          self.sourceId = iprot.readI64();
13298
        else:
13299
          iprot.skip(ftype)
13300
      elif fid == 3:
13301
        if ftype == TType.STRING:
13302
          self.pincode = iprot.readString();
13303
        else:
13304
          iprot.skip(ftype)
13305
      else:
13306
        iprot.skip(ftype)
13307
      iprot.readFieldEnd()
13308
    iprot.readStructEnd()
13309
 
13310
  def write(self, oprot):
13311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13313
      return
13314
    oprot.writeStructBegin('showCODOption_args')
13315
    if self.cartId is not None:
13316
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13317
      oprot.writeI64(self.cartId)
13318
      oprot.writeFieldEnd()
13319
    if self.sourceId is not None:
13320
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
13321
      oprot.writeI64(self.sourceId)
13322
      oprot.writeFieldEnd()
13323
    if self.pincode is not None:
13324
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
13325
      oprot.writeString(self.pincode)
13326
      oprot.writeFieldEnd()
13327
    oprot.writeFieldStop()
13328
    oprot.writeStructEnd()
13329
 
13330
  def validate(self):
13331
    return
13332
 
13333
 
13334
  def __repr__(self):
13335
    L = ['%s=%r' % (key, value)
13336
      for key, value in self.__dict__.iteritems()]
13337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13338
 
13339
  def __eq__(self, other):
13340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13341
 
13342
  def __ne__(self, other):
13343
    return not (self == other)
13344
 
13345
class showCODOption_result:
13346
  """
13347
  Attributes:
13348
   - success
13349
  """
13350
 
13351
  thrift_spec = (
13352
    (0, TType.BOOL, 'success', None, None, ), # 0
13353
  )
13354
 
13355
  def __init__(self, success=None,):
13356
    self.success = success
13357
 
13358
  def read(self, iprot):
13359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13361
      return
13362
    iprot.readStructBegin()
13363
    while True:
13364
      (fname, ftype, fid) = iprot.readFieldBegin()
13365
      if ftype == TType.STOP:
13366
        break
13367
      if fid == 0:
13368
        if ftype == TType.BOOL:
13369
          self.success = iprot.readBool();
13370
        else:
13371
          iprot.skip(ftype)
13372
      else:
13373
        iprot.skip(ftype)
13374
      iprot.readFieldEnd()
13375
    iprot.readStructEnd()
13376
 
13377
  def write(self, oprot):
13378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13380
      return
13381
    oprot.writeStructBegin('showCODOption_result')
13382
    if self.success is not None:
13383
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13384
      oprot.writeBool(self.success)
13385
      oprot.writeFieldEnd()
13386
    oprot.writeFieldStop()
13387
    oprot.writeStructEnd()
13388
 
13389
  def validate(self):
13390
    return
13391
 
13392
 
13393
  def __repr__(self):
13394
    L = ['%s=%r' % (key, value)
13395
      for key, value in self.__dict__.iteritems()]
13396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13397
 
13398
  def __eq__(self, other):
13399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13400
 
13401
  def __ne__(self, other):
13402
    return not (self == other)
5623 anupam.sin 13403
 
13404
class getUserEmails_args:
13405
  """
13406
  Attributes:
13407
   - startDate
13408
   - endDate
13409
  """
13410
 
13411
  thrift_spec = (
13412
    None, # 0
13413
    (1, TType.I64, 'startDate', None, None, ), # 1
13414
    (2, TType.I64, 'endDate', None, None, ), # 2
13415
  )
13416
 
13417
  def __init__(self, startDate=None, endDate=None,):
13418
    self.startDate = startDate
13419
    self.endDate = endDate
13420
 
13421
  def read(self, iprot):
13422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13424
      return
13425
    iprot.readStructBegin()
13426
    while True:
13427
      (fname, ftype, fid) = iprot.readFieldBegin()
13428
      if ftype == TType.STOP:
13429
        break
13430
      if fid == 1:
13431
        if ftype == TType.I64:
13432
          self.startDate = iprot.readI64();
13433
        else:
13434
          iprot.skip(ftype)
13435
      elif fid == 2:
13436
        if ftype == TType.I64:
13437
          self.endDate = iprot.readI64();
13438
        else:
13439
          iprot.skip(ftype)
13440
      else:
13441
        iprot.skip(ftype)
13442
      iprot.readFieldEnd()
13443
    iprot.readStructEnd()
13444
 
13445
  def write(self, oprot):
13446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13448
      return
13449
    oprot.writeStructBegin('getUserEmails_args')
13450
    if self.startDate is not None:
13451
      oprot.writeFieldBegin('startDate', TType.I64, 1)
13452
      oprot.writeI64(self.startDate)
13453
      oprot.writeFieldEnd()
13454
    if self.endDate is not None:
13455
      oprot.writeFieldBegin('endDate', TType.I64, 2)
13456
      oprot.writeI64(self.endDate)
13457
      oprot.writeFieldEnd()
13458
    oprot.writeFieldStop()
13459
    oprot.writeStructEnd()
13460
 
13461
  def validate(self):
13462
    return
13463
 
13464
 
13465
  def __repr__(self):
13466
    L = ['%s=%r' % (key, value)
13467
      for key, value in self.__dict__.iteritems()]
13468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13469
 
13470
  def __eq__(self, other):
13471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13472
 
13473
  def __ne__(self, other):
13474
    return not (self == other)
13475
 
13476
class getUserEmails_result:
13477
  """
13478
  Attributes:
13479
   - success
13480
  """
13481
 
13482
  thrift_spec = (
13483
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
13484
  )
13485
 
13486
  def __init__(self, success=None,):
13487
    self.success = success
13488
 
13489
  def read(self, iprot):
13490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13492
      return
13493
    iprot.readStructBegin()
13494
    while True:
13495
      (fname, ftype, fid) = iprot.readFieldBegin()
13496
      if ftype == TType.STOP:
13497
        break
13498
      if fid == 0:
13499
        if ftype == TType.LIST:
13500
          self.success = []
11592 amit.gupta 13501
          (_etype207, _size204) = iprot.readListBegin()
13502
          for _i208 in xrange(_size204):
13503
            _elem209 = iprot.readString();
13504
            self.success.append(_elem209)
5623 anupam.sin 13505
          iprot.readListEnd()
13506
        else:
13507
          iprot.skip(ftype)
13508
      else:
13509
        iprot.skip(ftype)
13510
      iprot.readFieldEnd()
13511
    iprot.readStructEnd()
13512
 
13513
  def write(self, oprot):
13514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13516
      return
13517
    oprot.writeStructBegin('getUserEmails_result')
13518
    if self.success is not None:
13519
      oprot.writeFieldBegin('success', TType.LIST, 0)
13520
      oprot.writeListBegin(TType.STRING, len(self.success))
11592 amit.gupta 13521
      for iter210 in self.success:
13522
        oprot.writeString(iter210)
5623 anupam.sin 13523
      oprot.writeListEnd()
13524
      oprot.writeFieldEnd()
13525
    oprot.writeFieldStop()
13526
    oprot.writeStructEnd()
13527
 
13528
  def validate(self):
13529
    return
13530
 
13531
 
13532
  def __repr__(self):
13533
    L = ['%s=%r' % (key, value)
13534
      for key, value in self.__dict__.iteritems()]
13535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13536
 
13537
  def __eq__(self, other):
13538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13539
 
13540
  def __ne__(self, other):
13541
    return not (self == other)
6821 amar.kumar 13542
 
6903 anupam.sin 13543
class insureItem_args:
13544
  """
13545
  Attributes:
13546
   - itemId
13547
   - cartId
13548
   - toInsure
9299 kshitij.so 13549
   - insurerType
6903 anupam.sin 13550
  """
13551
 
13552
  thrift_spec = (
13553
    None, # 0
13554
    (1, TType.I64, 'itemId', None, None, ), # 1
13555
    (2, TType.I64, 'cartId', None, None, ), # 2
13556
    (3, TType.BOOL, 'toInsure', None, None, ), # 3
9299 kshitij.so 13557
    (4, TType.I32, 'insurerType', None, None, ), # 4
6903 anupam.sin 13558
  )
13559
 
9299 kshitij.so 13560
  def __init__(self, itemId=None, cartId=None, toInsure=None, insurerType=None,):
6903 anupam.sin 13561
    self.itemId = itemId
13562
    self.cartId = cartId
13563
    self.toInsure = toInsure
9299 kshitij.so 13564
    self.insurerType = insurerType
6903 anupam.sin 13565
 
13566
  def read(self, iprot):
13567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13569
      return
13570
    iprot.readStructBegin()
13571
    while True:
13572
      (fname, ftype, fid) = iprot.readFieldBegin()
13573
      if ftype == TType.STOP:
13574
        break
13575
      if fid == 1:
13576
        if ftype == TType.I64:
13577
          self.itemId = iprot.readI64();
13578
        else:
13579
          iprot.skip(ftype)
13580
      elif fid == 2:
13581
        if ftype == TType.I64:
13582
          self.cartId = iprot.readI64();
13583
        else:
13584
          iprot.skip(ftype)
13585
      elif fid == 3:
13586
        if ftype == TType.BOOL:
13587
          self.toInsure = iprot.readBool();
13588
        else:
13589
          iprot.skip(ftype)
9299 kshitij.so 13590
      elif fid == 4:
13591
        if ftype == TType.I32:
13592
          self.insurerType = iprot.readI32();
13593
        else:
13594
          iprot.skip(ftype)
6903 anupam.sin 13595
      else:
13596
        iprot.skip(ftype)
13597
      iprot.readFieldEnd()
13598
    iprot.readStructEnd()
13599
 
13600
  def write(self, oprot):
13601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13603
      return
13604
    oprot.writeStructBegin('insureItem_args')
13605
    if self.itemId is not None:
13606
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13607
      oprot.writeI64(self.itemId)
13608
      oprot.writeFieldEnd()
13609
    if self.cartId is not None:
13610
      oprot.writeFieldBegin('cartId', TType.I64, 2)
13611
      oprot.writeI64(self.cartId)
13612
      oprot.writeFieldEnd()
13613
    if self.toInsure is not None:
13614
      oprot.writeFieldBegin('toInsure', TType.BOOL, 3)
13615
      oprot.writeBool(self.toInsure)
13616
      oprot.writeFieldEnd()
9299 kshitij.so 13617
    if self.insurerType is not None:
13618
      oprot.writeFieldBegin('insurerType', TType.I32, 4)
13619
      oprot.writeI32(self.insurerType)
13620
      oprot.writeFieldEnd()
6903 anupam.sin 13621
    oprot.writeFieldStop()
13622
    oprot.writeStructEnd()
13623
 
13624
  def validate(self):
13625
    return
13626
 
13627
 
13628
  def __repr__(self):
13629
    L = ['%s=%r' % (key, value)
13630
      for key, value in self.__dict__.iteritems()]
13631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13632
 
13633
  def __eq__(self, other):
13634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13635
 
13636
  def __ne__(self, other):
13637
    return not (self == other)
13638
 
13639
class insureItem_result:
13640
  """
13641
  Attributes:
13642
   - success
13643
  """
13644
 
13645
  thrift_spec = (
13646
    (0, TType.BOOL, 'success', None, None, ), # 0
13647
  )
13648
 
13649
  def __init__(self, success=None,):
13650
    self.success = success
13651
 
13652
  def read(self, iprot):
13653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13655
      return
13656
    iprot.readStructBegin()
13657
    while True:
13658
      (fname, ftype, fid) = iprot.readFieldBegin()
13659
      if ftype == TType.STOP:
13660
        break
13661
      if fid == 0:
13662
        if ftype == TType.BOOL:
13663
          self.success = iprot.readBool();
13664
        else:
13665
          iprot.skip(ftype)
13666
      else:
13667
        iprot.skip(ftype)
13668
      iprot.readFieldEnd()
13669
    iprot.readStructEnd()
13670
 
13671
  def write(self, oprot):
13672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13674
      return
13675
    oprot.writeStructBegin('insureItem_result')
13676
    if self.success is not None:
13677
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13678
      oprot.writeBool(self.success)
13679
      oprot.writeFieldEnd()
13680
    oprot.writeFieldStop()
13681
    oprot.writeStructEnd()
13682
 
13683
  def validate(self):
13684
    return
13685
 
13686
 
13687
  def __repr__(self):
13688
    L = ['%s=%r' % (key, value)
13689
      for key, value in self.__dict__.iteritems()]
13690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13691
 
13692
  def __eq__(self, other):
13693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13694
 
13695
  def __ne__(self, other):
13696
    return not (self == other)
13697
 
13698
class cancelInsurance_args:
13699
  """
13700
  Attributes:
13701
   - cartId
13702
  """
13703
 
13704
  thrift_spec = (
13705
    None, # 0
13706
    (1, TType.I64, 'cartId', None, None, ), # 1
13707
  )
13708
 
13709
  def __init__(self, cartId=None,):
13710
    self.cartId = cartId
13711
 
13712
  def read(self, iprot):
13713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13715
      return
13716
    iprot.readStructBegin()
13717
    while True:
13718
      (fname, ftype, fid) = iprot.readFieldBegin()
13719
      if ftype == TType.STOP:
13720
        break
13721
      if fid == 1:
13722
        if ftype == TType.I64:
13723
          self.cartId = iprot.readI64();
13724
        else:
13725
          iprot.skip(ftype)
13726
      else:
13727
        iprot.skip(ftype)
13728
      iprot.readFieldEnd()
13729
    iprot.readStructEnd()
13730
 
13731
  def write(self, oprot):
13732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13734
      return
13735
    oprot.writeStructBegin('cancelInsurance_args')
13736
    if self.cartId is not None:
13737
      oprot.writeFieldBegin('cartId', TType.I64, 1)
13738
      oprot.writeI64(self.cartId)
13739
      oprot.writeFieldEnd()
13740
    oprot.writeFieldStop()
13741
    oprot.writeStructEnd()
13742
 
13743
  def validate(self):
13744
    return
13745
 
13746
 
13747
  def __repr__(self):
13748
    L = ['%s=%r' % (key, value)
13749
      for key, value in self.__dict__.iteritems()]
13750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13751
 
13752
  def __eq__(self, other):
13753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13754
 
13755
  def __ne__(self, other):
13756
    return not (self == other)
13757
 
13758
class cancelInsurance_result:
13759
  """
13760
  Attributes:
13761
   - success
13762
  """
13763
 
13764
  thrift_spec = (
13765
    (0, TType.BOOL, 'success', None, None, ), # 0
13766
  )
13767
 
13768
  def __init__(self, success=None,):
13769
    self.success = success
13770
 
13771
  def read(self, iprot):
13772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13774
      return
13775
    iprot.readStructBegin()
13776
    while True:
13777
      (fname, ftype, fid) = iprot.readFieldBegin()
13778
      if ftype == TType.STOP:
13779
        break
13780
      if fid == 0:
13781
        if ftype == TType.BOOL:
13782
          self.success = iprot.readBool();
13783
        else:
13784
          iprot.skip(ftype)
13785
      else:
13786
        iprot.skip(ftype)
13787
      iprot.readFieldEnd()
13788
    iprot.readStructEnd()
13789
 
13790
  def write(self, oprot):
13791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13793
      return
13794
    oprot.writeStructBegin('cancelInsurance_result')
13795
    if self.success is not None:
13796
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13797
      oprot.writeBool(self.success)
13798
      oprot.writeFieldEnd()
13799
    oprot.writeFieldStop()
13800
    oprot.writeStructEnd()
13801
 
13802
  def validate(self):
13803
    return
13804
 
13805
 
13806
  def __repr__(self):
13807
    L = ['%s=%r' % (key, value)
13808
      for key, value in self.__dict__.iteritems()]
13809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13810
 
13811
  def __eq__(self, other):
13812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13813
 
13814
  def __ne__(self, other):
13815
    return not (self == other)
13816
 
13817
class storeInsuranceSpecificDetails_args:
13818
  """
13819
  Attributes:
13820
   - addressId
13821
   - dob
13822
   - guardianName
13823
  """
13824
 
13825
  thrift_spec = (
13826
    None, # 0
13827
    (1, TType.I64, 'addressId', None, None, ), # 1
13828
    (2, TType.STRING, 'dob', None, None, ), # 2
13829
    (3, TType.STRING, 'guardianName', None, None, ), # 3
13830
  )
13831
 
13832
  def __init__(self, addressId=None, dob=None, guardianName=None,):
13833
    self.addressId = addressId
13834
    self.dob = dob
13835
    self.guardianName = guardianName
13836
 
13837
  def read(self, iprot):
13838
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13839
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13840
      return
13841
    iprot.readStructBegin()
13842
    while True:
13843
      (fname, ftype, fid) = iprot.readFieldBegin()
13844
      if ftype == TType.STOP:
13845
        break
13846
      if fid == 1:
13847
        if ftype == TType.I64:
13848
          self.addressId = iprot.readI64();
13849
        else:
13850
          iprot.skip(ftype)
13851
      elif fid == 2:
13852
        if ftype == TType.STRING:
13853
          self.dob = iprot.readString();
13854
        else:
13855
          iprot.skip(ftype)
13856
      elif fid == 3:
13857
        if ftype == TType.STRING:
13858
          self.guardianName = iprot.readString();
13859
        else:
13860
          iprot.skip(ftype)
13861
      else:
13862
        iprot.skip(ftype)
13863
      iprot.readFieldEnd()
13864
    iprot.readStructEnd()
13865
 
13866
  def write(self, oprot):
13867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13869
      return
13870
    oprot.writeStructBegin('storeInsuranceSpecificDetails_args')
13871
    if self.addressId is not None:
13872
      oprot.writeFieldBegin('addressId', TType.I64, 1)
13873
      oprot.writeI64(self.addressId)
13874
      oprot.writeFieldEnd()
13875
    if self.dob is not None:
13876
      oprot.writeFieldBegin('dob', TType.STRING, 2)
13877
      oprot.writeString(self.dob)
13878
      oprot.writeFieldEnd()
13879
    if self.guardianName is not None:
13880
      oprot.writeFieldBegin('guardianName', TType.STRING, 3)
13881
      oprot.writeString(self.guardianName)
13882
      oprot.writeFieldEnd()
13883
    oprot.writeFieldStop()
13884
    oprot.writeStructEnd()
13885
 
13886
  def validate(self):
13887
    return
13888
 
13889
 
13890
  def __repr__(self):
13891
    L = ['%s=%r' % (key, value)
13892
      for key, value in self.__dict__.iteritems()]
13893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13894
 
13895
  def __eq__(self, other):
13896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13897
 
13898
  def __ne__(self, other):
13899
    return not (self == other)
13900
 
13901
class storeInsuranceSpecificDetails_result:
13902
  """
13903
  Attributes:
13904
   - success
13905
  """
13906
 
13907
  thrift_spec = (
13908
    (0, TType.BOOL, 'success', None, None, ), # 0
13909
  )
13910
 
13911
  def __init__(self, success=None,):
13912
    self.success = success
13913
 
13914
  def read(self, iprot):
13915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13917
      return
13918
    iprot.readStructBegin()
13919
    while True:
13920
      (fname, ftype, fid) = iprot.readFieldBegin()
13921
      if ftype == TType.STOP:
13922
        break
13923
      if fid == 0:
13924
        if ftype == TType.BOOL:
13925
          self.success = iprot.readBool();
13926
        else:
13927
          iprot.skip(ftype)
13928
      else:
13929
        iprot.skip(ftype)
13930
      iprot.readFieldEnd()
13931
    iprot.readStructEnd()
13932
 
13933
  def write(self, oprot):
13934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13936
      return
13937
    oprot.writeStructBegin('storeInsuranceSpecificDetails_result')
13938
    if self.success is not None:
13939
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13940
      oprot.writeBool(self.success)
13941
      oprot.writeFieldEnd()
13942
    oprot.writeFieldStop()
13943
    oprot.writeStructEnd()
13944
 
13945
  def validate(self):
13946
    return
13947
 
13948
 
13949
  def __repr__(self):
13950
    L = ['%s=%r' % (key, value)
13951
      for key, value in self.__dict__.iteritems()]
13952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13953
 
13954
  def __eq__(self, other):
13955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13956
 
13957
  def __ne__(self, other):
13958
    return not (self == other)
13959
 
13960
class isInsuranceDetailPresent_args:
13961
  """
13962
  Attributes:
13963
   - addressId
13964
  """
13965
 
13966
  thrift_spec = (
13967
    None, # 0
13968
    (1, TType.I64, 'addressId', None, None, ), # 1
13969
  )
13970
 
13971
  def __init__(self, addressId=None,):
13972
    self.addressId = addressId
13973
 
13974
  def read(self, iprot):
13975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13977
      return
13978
    iprot.readStructBegin()
13979
    while True:
13980
      (fname, ftype, fid) = iprot.readFieldBegin()
13981
      if ftype == TType.STOP:
13982
        break
13983
      if fid == 1:
13984
        if ftype == TType.I64:
13985
          self.addressId = iprot.readI64();
13986
        else:
13987
          iprot.skip(ftype)
13988
      else:
13989
        iprot.skip(ftype)
13990
      iprot.readFieldEnd()
13991
    iprot.readStructEnd()
13992
 
13993
  def write(self, oprot):
13994
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13995
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13996
      return
13997
    oprot.writeStructBegin('isInsuranceDetailPresent_args')
13998
    if self.addressId is not None:
13999
      oprot.writeFieldBegin('addressId', TType.I64, 1)
14000
      oprot.writeI64(self.addressId)
14001
      oprot.writeFieldEnd()
14002
    oprot.writeFieldStop()
14003
    oprot.writeStructEnd()
14004
 
14005
  def validate(self):
14006
    return
14007
 
14008
 
14009
  def __repr__(self):
14010
    L = ['%s=%r' % (key, value)
14011
      for key, value in self.__dict__.iteritems()]
14012
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14013
 
14014
  def __eq__(self, other):
14015
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14016
 
14017
  def __ne__(self, other):
14018
    return not (self == other)
14019
 
14020
class isInsuranceDetailPresent_result:
14021
  """
14022
  Attributes:
14023
   - success
14024
  """
14025
 
14026
  thrift_spec = (
14027
    (0, TType.BOOL, 'success', None, None, ), # 0
14028
  )
14029
 
14030
  def __init__(self, success=None,):
14031
    self.success = success
14032
 
14033
  def read(self, iprot):
14034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14036
      return
14037
    iprot.readStructBegin()
14038
    while True:
14039
      (fname, ftype, fid) = iprot.readFieldBegin()
14040
      if ftype == TType.STOP:
14041
        break
14042
      if fid == 0:
14043
        if ftype == TType.BOOL:
14044
          self.success = iprot.readBool();
14045
        else:
14046
          iprot.skip(ftype)
14047
      else:
14048
        iprot.skip(ftype)
14049
      iprot.readFieldEnd()
14050
    iprot.readStructEnd()
14051
 
14052
  def write(self, oprot):
14053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14055
      return
14056
    oprot.writeStructBegin('isInsuranceDetailPresent_result')
14057
    if self.success is not None:
14058
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14059
      oprot.writeBool(self.success)
14060
      oprot.writeFieldEnd()
14061
    oprot.writeFieldStop()
14062
    oprot.writeStructEnd()
14063
 
14064
  def validate(self):
14065
    return
14066
 
14067
 
14068
  def __repr__(self):
14069
    L = ['%s=%r' % (key, value)
14070
      for key, value in self.__dict__.iteritems()]
14071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14072
 
14073
  def __eq__(self, other):
14074
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14075
 
14076
  def __ne__(self, other):
14077
    return not (self == other)
14078
 
9791 rajveer 14079
class getProductsAddedToCart_args:
6821 amar.kumar 14080
  """
14081
  Attributes:
14082
   - startDate
14083
   - endDate
14084
  """
14085
 
14086
  thrift_spec = (
14087
    None, # 0
9791 rajveer 14088
    (1, TType.I64, 'startDate', None, None, ), # 1
14089
    (2, TType.I64, 'endDate', None, None, ), # 2
6821 amar.kumar 14090
  )
14091
 
9791 rajveer 14092
  def __init__(self, startDate=None, endDate=None,):
6821 amar.kumar 14093
    self.startDate = startDate
14094
    self.endDate = endDate
14095
 
14096
  def read(self, iprot):
14097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14099
      return
14100
    iprot.readStructBegin()
14101
    while True:
14102
      (fname, ftype, fid) = iprot.readFieldBegin()
14103
      if ftype == TType.STOP:
14104
        break
14105
      if fid == 1:
14106
        if ftype == TType.I64:
9791 rajveer 14107
          self.startDate = iprot.readI64();
6821 amar.kumar 14108
        else:
14109
          iprot.skip(ftype)
14110
      elif fid == 2:
14111
        if ftype == TType.I64:
14112
          self.endDate = iprot.readI64();
14113
        else:
14114
          iprot.skip(ftype)
14115
      else:
14116
        iprot.skip(ftype)
14117
      iprot.readFieldEnd()
14118
    iprot.readStructEnd()
14119
 
14120
  def write(self, oprot):
14121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14123
      return
9791 rajveer 14124
    oprot.writeStructBegin('getProductsAddedToCart_args')
6821 amar.kumar 14125
    if self.startDate is not None:
9791 rajveer 14126
      oprot.writeFieldBegin('startDate', TType.I64, 1)
6821 amar.kumar 14127
      oprot.writeI64(self.startDate)
14128
      oprot.writeFieldEnd()
14129
    if self.endDate is not None:
9791 rajveer 14130
      oprot.writeFieldBegin('endDate', TType.I64, 2)
6821 amar.kumar 14131
      oprot.writeI64(self.endDate)
14132
      oprot.writeFieldEnd()
14133
    oprot.writeFieldStop()
14134
    oprot.writeStructEnd()
14135
 
14136
  def validate(self):
14137
    return
14138
 
14139
 
14140
  def __repr__(self):
14141
    L = ['%s=%r' % (key, value)
14142
      for key, value in self.__dict__.iteritems()]
14143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14144
 
14145
  def __eq__(self, other):
14146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14147
 
14148
  def __ne__(self, other):
14149
    return not (self == other)
14150
 
9791 rajveer 14151
class getProductsAddedToCart_result:
6821 amar.kumar 14152
  """
14153
  Attributes:
14154
   - success
14155
  """
14156
 
14157
  thrift_spec = (
9791 rajveer 14158
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6821 amar.kumar 14159
  )
14160
 
14161
  def __init__(self, success=None,):
14162
    self.success = success
14163
 
14164
  def read(self, iprot):
14165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14167
      return
14168
    iprot.readStructBegin()
14169
    while True:
14170
      (fname, ftype, fid) = iprot.readFieldBegin()
14171
      if ftype == TType.STOP:
14172
        break
14173
      if fid == 0:
9791 rajveer 14174
        if ftype == TType.LIST:
14175
          self.success = []
11592 amit.gupta 14176
          (_etype214, _size211) = iprot.readListBegin()
14177
          for _i215 in xrange(_size211):
14178
            _elem216 = iprot.readI64();
14179
            self.success.append(_elem216)
9791 rajveer 14180
          iprot.readListEnd()
6821 amar.kumar 14181
        else:
14182
          iprot.skip(ftype)
14183
      else:
14184
        iprot.skip(ftype)
14185
      iprot.readFieldEnd()
14186
    iprot.readStructEnd()
14187
 
14188
  def write(self, oprot):
14189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14191
      return
9791 rajveer 14192
    oprot.writeStructBegin('getProductsAddedToCart_result')
6821 amar.kumar 14193
    if self.success is not None:
9791 rajveer 14194
      oprot.writeFieldBegin('success', TType.LIST, 0)
14195
      oprot.writeListBegin(TType.I64, len(self.success))
11592 amit.gupta 14196
      for iter217 in self.success:
14197
        oprot.writeI64(iter217)
9791 rajveer 14198
      oprot.writeListEnd()
6821 amar.kumar 14199
      oprot.writeFieldEnd()
14200
    oprot.writeFieldStop()
14201
    oprot.writeStructEnd()
14202
 
14203
  def validate(self):
14204
    return
14205
 
14206
 
14207
  def __repr__(self):
14208
    L = ['%s=%r' % (key, value)
14209
      for key, value in self.__dict__.iteritems()]
14210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14211
 
14212
  def __eq__(self, other):
14213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14214
 
14215
  def __ne__(self, other):
14216
    return not (self == other)
11592 amit.gupta 14217
 
14218
class validateCartPlus_args:
14219
  """
14220
  Attributes:
14221
   - cartId
14222
   - sourceId
14223
  """
14224
 
14225
  thrift_spec = (
14226
    None, # 0
14227
    (1, TType.I64, 'cartId', None, None, ), # 1
14228
    (2, TType.I64, 'sourceId', None, None, ), # 2
14229
  )
14230
 
14231
  def __init__(self, cartId=None, sourceId=None,):
14232
    self.cartId = cartId
14233
    self.sourceId = sourceId
14234
 
14235
  def read(self, iprot):
14236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14238
      return
14239
    iprot.readStructBegin()
14240
    while True:
14241
      (fname, ftype, fid) = iprot.readFieldBegin()
14242
      if ftype == TType.STOP:
14243
        break
14244
      if fid == 1:
14245
        if ftype == TType.I64:
14246
          self.cartId = iprot.readI64();
14247
        else:
14248
          iprot.skip(ftype)
14249
      elif fid == 2:
14250
        if ftype == TType.I64:
14251
          self.sourceId = iprot.readI64();
14252
        else:
14253
          iprot.skip(ftype)
14254
      else:
14255
        iprot.skip(ftype)
14256
      iprot.readFieldEnd()
14257
    iprot.readStructEnd()
14258
 
14259
  def write(self, oprot):
14260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14262
      return
14263
    oprot.writeStructBegin('validateCartPlus_args')
14264
    if self.cartId is not None:
14265
      oprot.writeFieldBegin('cartId', TType.I64, 1)
14266
      oprot.writeI64(self.cartId)
14267
      oprot.writeFieldEnd()
14268
    if self.sourceId is not None:
14269
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
14270
      oprot.writeI64(self.sourceId)
14271
      oprot.writeFieldEnd()
14272
    oprot.writeFieldStop()
14273
    oprot.writeStructEnd()
14274
 
14275
  def validate(self):
14276
    return
14277
 
14278
 
14279
  def __repr__(self):
14280
    L = ['%s=%r' % (key, value)
14281
      for key, value in self.__dict__.iteritems()]
14282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14283
 
14284
  def __eq__(self, other):
14285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14286
 
14287
  def __ne__(self, other):
14288
    return not (self == other)
14289
 
14290
class validateCartPlus_result:
14291
  """
14292
  Attributes:
14293
   - success
14294
   - scex
14295
  """
14296
 
14297
  thrift_spec = (
14298
    (0, TType.STRUCT, 'success', (CartPlus, CartPlus.thrift_spec), None, ), # 0
14299
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
14300
  )
14301
 
14302
  def __init__(self, success=None, scex=None,):
14303
    self.success = success
14304
    self.scex = scex
14305
 
14306
  def read(self, iprot):
14307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14309
      return
14310
    iprot.readStructBegin()
14311
    while True:
14312
      (fname, ftype, fid) = iprot.readFieldBegin()
14313
      if ftype == TType.STOP:
14314
        break
14315
      if fid == 0:
14316
        if ftype == TType.STRUCT:
14317
          self.success = CartPlus()
14318
          self.success.read(iprot)
14319
        else:
14320
          iprot.skip(ftype)
14321
      elif fid == 1:
14322
        if ftype == TType.STRUCT:
14323
          self.scex = ShoppingCartException()
14324
          self.scex.read(iprot)
14325
        else:
14326
          iprot.skip(ftype)
14327
      else:
14328
        iprot.skip(ftype)
14329
      iprot.readFieldEnd()
14330
    iprot.readStructEnd()
14331
 
14332
  def write(self, oprot):
14333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14335
      return
14336
    oprot.writeStructBegin('validateCartPlus_result')
14337
    if self.success is not None:
14338
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14339
      self.success.write(oprot)
14340
      oprot.writeFieldEnd()
14341
    if self.scex is not None:
14342
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
14343
      self.scex.write(oprot)
14344
      oprot.writeFieldEnd()
14345
    oprot.writeFieldStop()
14346
    oprot.writeStructEnd()
14347
 
14348
  def validate(self):
14349
    return
14350
 
14351
 
14352
  def __repr__(self):
14353
    L = ['%s=%r' % (key, value)
14354
      for key, value in self.__dict__.iteritems()]
14355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14356
 
14357
  def __eq__(self, other):
14358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14359
 
14360
  def __ne__(self, other):
14361
    return not (self == other)