Subversion Repositories SmartDukaan

Rev

Rev 3554 | Rev 3563 | 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
 
1491 vikas 37
  def getUserByEmail(self, email):
38
    """
39
    Parameters:
40
     - email
41
    """
42
    pass
43
 
3032 mandeep.dh 44
  def getUserByMobileNumber(self, mobileNumber):
45
    """
46
    Parameters:
47
     - mobileNumber
48
    """
49
    pass
50
 
559 chandransh 51
  def createUser(self, user):
94 ashish 52
    """
53
    Parameters:
559 chandransh 54
     - user
94 ashish 55
    """
56
    pass
57
 
559 chandransh 58
  def updateUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def deleteUser(self, userId):
94 ashish 66
    """
67
    Parameters:
68
     - userId
69
    """
70
    pass
71
 
559 chandransh 72
  def getUserState(self, userId):
94 ashish 73
    """
74
    Parameters:
75
     - userId
76
    """
77
    pass
78
 
559 chandransh 79
  def authenticateUser(self, email, password):
94 ashish 80
    """
81
    Parameters:
82
     - email
83
     - password
84
    """
85
    pass
86
 
87
  def userExists(self, email):
88
    """
89
    Parameters:
90
     - email
91
    """
92
    pass
93
 
567 rajveer 94
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 95
    """
96
    Parameters:
97
     - userId
98
     - address
513 rajveer 99
     - setDefault
94 ashish 100
    """
101
    pass
102
 
103
  def removeAddressForUser(self, userid, addressId):
104
    """
105
    Parameters:
106
     - userid
107
     - addressId
108
    """
109
    pass
110
 
111
  def setUserAsLoggedIn(self, userId, timestamp):
112
    """
113
    Parameters:
114
     - userId
115
     - timestamp
116
    """
117
    pass
118
 
119
  def setUserAsLoggedOut(self, userid, timestamp):
120
    """
121
    Parameters:
122
     - userid
123
     - timestamp
124
    """
125
    pass
126
 
504 rajveer 127
  def setDefaultAddress(self, userid, addressId):
128
    """
129
    Parameters:
130
     - userid
131
     - addressId
132
    """
133
    pass
134
 
594 rajveer 135
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 136
    """
137
    Parameters:
138
     - userid
594 rajveer 139
     - oldPassword
140
     - newPassword
94 ashish 141
    """
142
    pass
143
 
884 rajveer 144
  def forgotPassword(self, email, newPassword):
581 rajveer 145
    """
146
    Parameters:
147
     - email
884 rajveer 148
     - newPassword
581 rajveer 149
    """
150
    pass
151
 
594 rajveer 152
  def getAllAddressesForUser(self, userId):
153
    """
154
    Parameters:
155
     - userId
156
    """
157
    pass
158
 
1894 vikas 159
  def getAddressById(self, addressId):
160
    """
161
    Parameters:
162
     - addressId
163
    """
164
    pass
165
 
594 rajveer 166
  def getDefaultAddressId(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
785 rajveer 173
  def getDefaultPincode(self, userId):
174
    """
175
    Parameters:
176
     - userId
177
    """
178
    pass
179
 
1274 varun.gupt 180
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
181
    """
182
    Parameters:
183
     - userId
184
     - replyTo
185
     - communicationType
186
     - orderId
187
     - airwaybillNo
188
     - productName
189
     - subject
190
     - message
191
    """
192
    pass
193
 
1590 varun.gupt 194
  def getUserCommunicationById(self, id):
195
    """
196
    Parameters:
197
     - id
198
    """
199
    pass
200
 
201
  def getUserCommunicationByUser(self, userId):
202
    """
203
    Parameters:
204
     - userId
205
    """
206
    pass
207
 
208
  def getAllUserCommunications(self, ):
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 createCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCurrentCart(self, userId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - userId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCart(self, cartId):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - cartId
94 ashish 336
    """
337
    pass
338
 
559 chandransh 339
  def getCartsForUser(self, userId, status):
94 ashish 340
    """
341
    Parameters:
559 chandransh 342
     - userId
343
     - status
94 ashish 344
    """
345
    pass
346
 
559 chandransh 347
  def getCartsByStatus(self, status):
94 ashish 348
    """
349
    Parameters:
559 chandransh 350
     - status
94 ashish 351
    """
352
    pass
353
 
559 chandransh 354
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 355
    """
356
    Parameters:
559 chandransh 357
     - from_time
358
     - to_time
359
     - status
94 ashish 360
    """
361
    pass
362
 
559 chandransh 363
  def changeCartStatus(self, cartId, status):
130 ashish 364
    """
365
    Parameters:
559 chandransh 366
     - cartId
367
     - status
130 ashish 368
    """
369
    pass
94 ashish 370
 
3557 rajveer 371
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 372
    """
373
    Parameters:
559 chandransh 374
     - cartId
375
     - itemId
376
     - quantity
3557 rajveer 377
     - sourceId
130 ashish 378
    """
379
    pass
380
 
559 chandransh 381
  def deleteItemFromCart(self, cartId, itemId):
382
    """
383
    Parameters:
384
     - cartId
385
     - itemId
386
    """
387
    pass
130 ashish 388
 
559 chandransh 389
  def changeQuantity(self, cartId, itemId, quantity):
390
    """
391
    Parameters:
392
     - cartId
393
     - itemId
394
     - quantity
395
    """
396
    pass
397
 
398
  def changeItemStatus(self, cartId, itemId, status):
399
    """
400
    Parameters:
401
     - cartId
402
     - itemId
403
     - status
404
    """
405
    pass
406
 
407
  def addAddressToCart(self, cartId, addressId):
408
    """
409
    Parameters:
410
     - cartId
411
     - addressId
412
    """
413
    pass
414
 
1976 varun.gupt 415
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
416
    """
417
    Parameters:
418
     - cartId
419
     - couponCode
420
     - totalPrice
421
     - discountedPrice
422
    """
423
    pass
424
 
425
  def removeCoupon(self, cartId):
426
    """
427
    Parameters:
428
     - cartId
429
    """
430
    pass
431
 
3554 varun.gupt 432
  def deleteDiscountsFromCart(self, cartId):
433
    """
434
    Deletes all the discounts associated with the cart
435
 
436
    Parameters:
437
     - cartId
438
    """
439
    pass
440
 
441
  def saveDiscounts(self, discounts):
442
    """
443
    Accepts a list of thrift objects of Discount type and saves them
444
 
445
    Parameters:
446
     - discounts
447
    """
448
    pass
449
 
2815 vikas 450
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 451
    """
690 chandransh 452
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 453
 
559 chandransh 454
    Parameters:
455
     - cartId
2815 vikas 456
     - sessionSource
457
     - sessionStartTime
559 chandransh 458
    """
459
    pass
460
 
3557 rajveer 461
  def validateCart(self, cartId, sourceId):
559 chandransh 462
    """
690 chandransh 463
    Validates that:
464
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 465
    2. All of the lines in the cart are active items.
690 chandransh 466
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 467
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 468
 
559 chandransh 469
    Parameters:
470
     - cartId
3557 rajveer 471
     - sourceId
559 chandransh 472
    """
473
    pass
474
 
690 chandransh 475
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 476
    """
690 chandransh 477
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 478
 
575 chandransh 479
    Parameters:
690 chandransh 480
     - fromCartId
481
     - toCartId
482
    """
483
    pass
484
 
485
  def checkOut(self, cartId):
486
    """
487
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 488
 
690 chandransh 489
    Parameters:
575 chandransh 490
     - cartId
491
    """
492
    pass
493
 
690 chandransh 494
  def resetCart(self, cartId, items):
559 chandransh 495
    """
690 chandransh 496
    The second parameter is a map of item ids and their quantities which have been successfully processed.
497
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 498
 
559 chandransh 499
    Parameters:
690 chandransh 500
     - cartId
501
     - items
559 chandransh 502
    """
503
    pass
504
 
2981 rajveer 505
  def getUserCount(self, userType):
559 chandransh 506
    """
2981 rajveer 507
    Returns number of registered users.
508
    If userType = null, then it returns count of all users, including anonymous
509
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
510
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 511
 
559 chandransh 512
    Parameters:
2981 rajveer 513
     - userType
559 chandransh 514
    """
515
    pass
516
 
2981 rajveer 517
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 518
    """
2981 rajveer 519
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
520
    If any of startDate or endDate is -1, then that filter is ignored.
521
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 522
 
523
 
559 chandransh 524
    Parameters:
2981 rajveer 525
     - userType
526
     - startDate
527
     - endDate
559 chandransh 528
    """
529
    pass
530
 
2981 rajveer 531
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 532
    """
533
    Parameters:
2981 rajveer 534
     - user_id
535
     - entity_id
536
     - slide
537
     - note
559 chandransh 538
    """
539
    pass
540
 
2981 rajveer 541
  def getUserNotes(self, user_id, entity_id):
559 chandransh 542
    """
543
    Parameters:
2981 rajveer 544
     - user_id
545
     - entity_id
559 chandransh 546
    """
547
    pass
548
 
2981 rajveer 549
  def getMyResearchItems(self, userId):
559 chandransh 550
    """
2981 rajveer 551
    Returns list of item ids in myresearch for the user
3431 rajveer 552
 
559 chandransh 553
    Parameters:
554
     - userId
555
    """
556
    pass
557
 
2981 rajveer 558
  def updateMyResearch(self, userId, itemId):
559 chandransh 559
    """
2981 rajveer 560
    add item to my research for a user
3431 rajveer 561
 
559 chandransh 562
    Parameters:
2981 rajveer 563
     - userId
564
     - itemId
559 chandransh 565
    """
566
    pass
567
 
2981 rajveer 568
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 569
    """
2981 rajveer 570
    delete item from my research for a user
3431 rajveer 571
 
1596 ankur.sing 572
    Parameters:
2981 rajveer 573
     - userId
574
     - itemId
1596 ankur.sing 575
    """
576
    pass
559 chandransh 577
 
2981 rajveer 578
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 579
    """
2981 rajveer 580
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 581
 
1673 ankur.sing 582
    Parameters:
2981 rajveer 583
     - userId
1673 ankur.sing 584
    """
585
    pass
1596 ankur.sing 586
 
2981 rajveer 587
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 588
    """
2981 rajveer 589
    add item to browse history for a user
3431 rajveer 590
 
2642 varun.gupt 591
    Parameters:
2981 rajveer 592
     - userId
593
     - itemId
2642 varun.gupt 594
    """
595
    pass
1673 ankur.sing 596
 
3385 varun.gupt 597
  def getCartsWithCouponCount(self, couponCode):
598
    """
599
    Returns count of Carts with given coupon applied
3431 rajveer 600
 
3385 varun.gupt 601
    Parameters:
602
     - couponCode
603
    """
604
    pass
2642 varun.gupt 605
 
3499 mandeep.dh 606
  def increaseTrustLevel(self, userId, trustLevelDelta):
607
    """
608
    Updates COD trust level of a user
3385 varun.gupt 609
 
3499 mandeep.dh 610
    Parameters:
611
     - userId
612
     - trustLevelDelta
613
    """
614
    pass
615
 
616
 
3376 rajveer 617
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 618
  """
619
  service
620
  """
621
  def __init__(self, iprot, oprot=None):
3376 rajveer 622
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 623
 
559 chandransh 624
  def createAnonymousUser(self, jsessionId):
94 ashish 625
    """
626
    Parameters:
559 chandransh 627
     - jsessionId
94 ashish 628
    """
559 chandransh 629
    self.send_createAnonymousUser(jsessionId)
630
    return self.recv_createAnonymousUser()
94 ashish 631
 
559 chandransh 632
  def send_createAnonymousUser(self, jsessionId):
633
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
634
    args = createAnonymousUser_args()
635
    args.jsessionId = jsessionId
94 ashish 636
    args.write(self._oprot)
637
    self._oprot.writeMessageEnd()
638
    self._oprot.trans.flush()
639
 
559 chandransh 640
  def recv_createAnonymousUser(self, ):
94 ashish 641
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
642
    if mtype == TMessageType.EXCEPTION:
643
      x = TApplicationException()
644
      x.read(self._iprot)
645
      self._iprot.readMessageEnd()
646
      raise x
559 chandransh 647
    result = createAnonymousUser_result()
94 ashish 648
    result.read(self._iprot)
649
    self._iprot.readMessageEnd()
3431 rajveer 650
    if result.success is not None:
94 ashish 651
      return result.success
3431 rajveer 652
    if result.ucex is not None:
559 chandransh 653
      raise result.ucex
654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 655
 
559 chandransh 656
  def getUserById(self, userId):
94 ashish 657
    """
658
    Parameters:
659
     - userId
660
    """
559 chandransh 661
    self.send_getUserById(userId)
662
    return self.recv_getUserById()
94 ashish 663
 
559 chandransh 664
  def send_getUserById(self, userId):
665
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
666
    args = getUserById_args()
94 ashish 667
    args.userId = userId
668
    args.write(self._oprot)
669
    self._oprot.writeMessageEnd()
670
    self._oprot.trans.flush()
671
 
559 chandransh 672
  def recv_getUserById(self, ):
94 ashish 673
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
674
    if mtype == TMessageType.EXCEPTION:
675
      x = TApplicationException()
676
      x.read(self._iprot)
677
      self._iprot.readMessageEnd()
678
      raise x
559 chandransh 679
    result = getUserById_result()
94 ashish 680
    result.read(self._iprot)
681
    self._iprot.readMessageEnd()
3431 rajveer 682
    if result.success is not None:
94 ashish 683
      return result.success
3431 rajveer 684
    if result.ucex is not None:
559 chandransh 685
      raise result.ucex
686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 687
 
1491 vikas 688
  def getUserByEmail(self, email):
689
    """
690
    Parameters:
691
     - email
692
    """
693
    self.send_getUserByEmail(email)
694
    return self.recv_getUserByEmail()
695
 
696
  def send_getUserByEmail(self, email):
697
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
698
    args = getUserByEmail_args()
699
    args.email = email
700
    args.write(self._oprot)
701
    self._oprot.writeMessageEnd()
702
    self._oprot.trans.flush()
703
 
704
  def recv_getUserByEmail(self, ):
705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
706
    if mtype == TMessageType.EXCEPTION:
707
      x = TApplicationException()
708
      x.read(self._iprot)
709
      self._iprot.readMessageEnd()
710
      raise x
711
    result = getUserByEmail_result()
712
    result.read(self._iprot)
713
    self._iprot.readMessageEnd()
3431 rajveer 714
    if result.success is not None:
1491 vikas 715
      return result.success
3431 rajveer 716
    if result.ucex is not None:
1491 vikas 717
      raise result.ucex
718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
719
 
3032 mandeep.dh 720
  def getUserByMobileNumber(self, mobileNumber):
721
    """
722
    Parameters:
723
     - mobileNumber
724
    """
725
    self.send_getUserByMobileNumber(mobileNumber)
726
    return self.recv_getUserByMobileNumber()
727
 
728
  def send_getUserByMobileNumber(self, mobileNumber):
729
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
730
    args = getUserByMobileNumber_args()
731
    args.mobileNumber = mobileNumber
732
    args.write(self._oprot)
733
    self._oprot.writeMessageEnd()
734
    self._oprot.trans.flush()
735
 
736
  def recv_getUserByMobileNumber(self, ):
737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
738
    if mtype == TMessageType.EXCEPTION:
739
      x = TApplicationException()
740
      x.read(self._iprot)
741
      self._iprot.readMessageEnd()
742
      raise x
743
    result = getUserByMobileNumber_result()
744
    result.read(self._iprot)
745
    self._iprot.readMessageEnd()
3431 rajveer 746
    if result.success is not None:
3032 mandeep.dh 747
      return result.success
3431 rajveer 748
    if result.ucex is not None:
3032 mandeep.dh 749
      raise result.ucex
750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
751
 
559 chandransh 752
  def createUser(self, user):
94 ashish 753
    """
754
    Parameters:
559 chandransh 755
     - user
94 ashish 756
    """
559 chandransh 757
    self.send_createUser(user)
758
    return self.recv_createUser()
94 ashish 759
 
559 chandransh 760
  def send_createUser(self, user):
761
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
762
    args = createUser_args()
763
    args.user = user
94 ashish 764
    args.write(self._oprot)
765
    self._oprot.writeMessageEnd()
766
    self._oprot.trans.flush()
767
 
559 chandransh 768
  def recv_createUser(self, ):
94 ashish 769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
770
    if mtype == TMessageType.EXCEPTION:
771
      x = TApplicationException()
772
      x.read(self._iprot)
773
      self._iprot.readMessageEnd()
774
      raise x
559 chandransh 775
    result = createUser_result()
94 ashish 776
    result.read(self._iprot)
777
    self._iprot.readMessageEnd()
3431 rajveer 778
    if result.success is not None:
94 ashish 779
      return result.success
3431 rajveer 780
    if result.ucex is not None:
559 chandransh 781
      raise result.ucex
782
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 783
 
559 chandransh 784
  def updateUser(self, user):
94 ashish 785
    """
786
    Parameters:
559 chandransh 787
     - user
94 ashish 788
    """
559 chandransh 789
    self.send_updateUser(user)
790
    return self.recv_updateUser()
94 ashish 791
 
559 chandransh 792
  def send_updateUser(self, user):
793
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
794
    args = updateUser_args()
795
    args.user = user
94 ashish 796
    args.write(self._oprot)
797
    self._oprot.writeMessageEnd()
798
    self._oprot.trans.flush()
799
 
559 chandransh 800
  def recv_updateUser(self, ):
94 ashish 801
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
802
    if mtype == TMessageType.EXCEPTION:
803
      x = TApplicationException()
804
      x.read(self._iprot)
805
      self._iprot.readMessageEnd()
806
      raise x
559 chandransh 807
    result = updateUser_result()
94 ashish 808
    result.read(self._iprot)
809
    self._iprot.readMessageEnd()
3431 rajveer 810
    if result.success is not None:
94 ashish 811
      return result.success
3431 rajveer 812
    if result.ucex is not None:
559 chandransh 813
      raise result.ucex
814
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 815
 
559 chandransh 816
  def deleteUser(self, userId):
94 ashish 817
    """
818
    Parameters:
819
     - userId
820
    """
559 chandransh 821
    self.send_deleteUser(userId)
822
    return self.recv_deleteUser()
94 ashish 823
 
559 chandransh 824
  def send_deleteUser(self, userId):
825
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
826
    args = deleteUser_args()
94 ashish 827
    args.userId = userId
828
    args.write(self._oprot)
829
    self._oprot.writeMessageEnd()
830
    self._oprot.trans.flush()
831
 
559 chandransh 832
  def recv_deleteUser(self, ):
94 ashish 833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
834
    if mtype == TMessageType.EXCEPTION:
835
      x = TApplicationException()
836
      x.read(self._iprot)
837
      self._iprot.readMessageEnd()
838
      raise x
559 chandransh 839
    result = deleteUser_result()
94 ashish 840
    result.read(self._iprot)
841
    self._iprot.readMessageEnd()
3431 rajveer 842
    if result.success is not None:
94 ashish 843
      return result.success
3431 rajveer 844
    if result.ucex is not None:
559 chandransh 845
      raise result.ucex
846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 847
 
559 chandransh 848
  def getUserState(self, userId):
94 ashish 849
    """
850
    Parameters:
851
     - userId
852
    """
559 chandransh 853
    self.send_getUserState(userId)
854
    return self.recv_getUserState()
94 ashish 855
 
559 chandransh 856
  def send_getUserState(self, userId):
857
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
858
    args = getUserState_args()
94 ashish 859
    args.userId = userId
860
    args.write(self._oprot)
861
    self._oprot.writeMessageEnd()
862
    self._oprot.trans.flush()
863
 
559 chandransh 864
  def recv_getUserState(self, ):
94 ashish 865
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
866
    if mtype == TMessageType.EXCEPTION:
867
      x = TApplicationException()
868
      x.read(self._iprot)
869
      self._iprot.readMessageEnd()
870
      raise x
559 chandransh 871
    result = getUserState_result()
94 ashish 872
    result.read(self._iprot)
873
    self._iprot.readMessageEnd()
3431 rajveer 874
    if result.success is not None:
94 ashish 875
      return result.success
3431 rajveer 876
    if result.ucex is not None:
559 chandransh 877
      raise result.ucex
878
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 879
 
559 chandransh 880
  def authenticateUser(self, email, password):
94 ashish 881
    """
882
    Parameters:
883
     - email
884
     - password
885
    """
559 chandransh 886
    self.send_authenticateUser(email, password)
122 ashish 887
    return self.recv_authenticateUser()
888
 
559 chandransh 889
  def send_authenticateUser(self, email, password):
122 ashish 890
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
891
    args = authenticateUser_args()
559 chandransh 892
    args.email = email
122 ashish 893
    args.password = password
894
    args.write(self._oprot)
895
    self._oprot.writeMessageEnd()
896
    self._oprot.trans.flush()
897
 
898
  def recv_authenticateUser(self, ):
899
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
900
    if mtype == TMessageType.EXCEPTION:
901
      x = TApplicationException()
902
      x.read(self._iprot)
903
      self._iprot.readMessageEnd()
904
      raise x
905
    result = authenticateUser_result()
906
    result.read(self._iprot)
907
    self._iprot.readMessageEnd()
3431 rajveer 908
    if result.success is not None:
122 ashish 909
      return result.success
3431 rajveer 910
    if result.auex is not None:
559 chandransh 911
      raise result.auex
122 ashish 912
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
913
 
94 ashish 914
  def userExists(self, email):
915
    """
916
    Parameters:
917
     - email
918
    """
919
    self.send_userExists(email)
920
    return self.recv_userExists()
921
 
922
  def send_userExists(self, email):
923
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
924
    args = userExists_args()
925
    args.email = email
926
    args.write(self._oprot)
927
    self._oprot.writeMessageEnd()
928
    self._oprot.trans.flush()
929
 
930
  def recv_userExists(self, ):
931
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
932
    if mtype == TMessageType.EXCEPTION:
933
      x = TApplicationException()
934
      x.read(self._iprot)
935
      self._iprot.readMessageEnd()
936
      raise x
937
    result = userExists_result()
938
    result.read(self._iprot)
939
    self._iprot.readMessageEnd()
3431 rajveer 940
    if result.success is not None:
94 ashish 941
      return result.success
3431 rajveer 942
    if result.ucx is not None:
94 ashish 943
      raise result.ucx
944
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
945
 
567 rajveer 946
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 947
    """
948
    Parameters:
949
     - userId
950
     - address
513 rajveer 951
     - setDefault
94 ashish 952
    """
567 rajveer 953
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 954
    return self.recv_addAddressForUser()
955
 
567 rajveer 956
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 957
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
958
    args = addAddressForUser_args()
559 chandransh 959
    args.userId = userId
94 ashish 960
    args.address = address
513 rajveer 961
    args.setDefault = setDefault
94 ashish 962
    args.write(self._oprot)
963
    self._oprot.writeMessageEnd()
964
    self._oprot.trans.flush()
965
 
966
  def recv_addAddressForUser(self, ):
967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
968
    if mtype == TMessageType.EXCEPTION:
969
      x = TApplicationException()
970
      x.read(self._iprot)
971
      self._iprot.readMessageEnd()
972
      raise x
973
    result = addAddressForUser_result()
974
    result.read(self._iprot)
975
    self._iprot.readMessageEnd()
3431 rajveer 976
    if result.success is not None:
94 ashish 977
      return result.success
3431 rajveer 978
    if result.ucx is not None:
94 ashish 979
      raise result.ucx
980
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
981
 
982
  def removeAddressForUser(self, userid, addressId):
983
    """
984
    Parameters:
985
     - userid
986
     - addressId
987
    """
988
    self.send_removeAddressForUser(userid, addressId)
989
    return self.recv_removeAddressForUser()
990
 
991
  def send_removeAddressForUser(self, userid, addressId):
992
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
993
    args = removeAddressForUser_args()
994
    args.userid = userid
995
    args.addressId = addressId
996
    args.write(self._oprot)
997
    self._oprot.writeMessageEnd()
998
    self._oprot.trans.flush()
999
 
1000
  def recv_removeAddressForUser(self, ):
1001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1002
    if mtype == TMessageType.EXCEPTION:
1003
      x = TApplicationException()
1004
      x.read(self._iprot)
1005
      self._iprot.readMessageEnd()
1006
      raise x
1007
    result = removeAddressForUser_result()
1008
    result.read(self._iprot)
1009
    self._iprot.readMessageEnd()
3431 rajveer 1010
    if result.success is not None:
94 ashish 1011
      return result.success
3431 rajveer 1012
    if result.ucx is not None:
94 ashish 1013
      raise result.ucx
1014
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1015
 
1016
  def setUserAsLoggedIn(self, userId, timestamp):
1017
    """
1018
    Parameters:
1019
     - userId
1020
     - timestamp
1021
    """
1022
    self.send_setUserAsLoggedIn(userId, timestamp)
1023
    return self.recv_setUserAsLoggedIn()
1024
 
1025
  def send_setUserAsLoggedIn(self, userId, timestamp):
1026
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1027
    args = setUserAsLoggedIn_args()
1028
    args.userId = userId
1029
    args.timestamp = timestamp
1030
    args.write(self._oprot)
1031
    self._oprot.writeMessageEnd()
1032
    self._oprot.trans.flush()
1033
 
1034
  def recv_setUserAsLoggedIn(self, ):
1035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1036
    if mtype == TMessageType.EXCEPTION:
1037
      x = TApplicationException()
1038
      x.read(self._iprot)
1039
      self._iprot.readMessageEnd()
1040
      raise x
1041
    result = setUserAsLoggedIn_result()
1042
    result.read(self._iprot)
1043
    self._iprot.readMessageEnd()
3431 rajveer 1044
    if result.success is not None:
94 ashish 1045
      return result.success
3431 rajveer 1046
    if result.ucx is not None:
94 ashish 1047
      raise result.ucx
1048
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1049
 
1050
  def setUserAsLoggedOut(self, userid, timestamp):
1051
    """
1052
    Parameters:
1053
     - userid
1054
     - timestamp
1055
    """
1056
    self.send_setUserAsLoggedOut(userid, timestamp)
1057
    return self.recv_setUserAsLoggedOut()
1058
 
1059
  def send_setUserAsLoggedOut(self, userid, timestamp):
1060
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1061
    args = setUserAsLoggedOut_args()
1062
    args.userid = userid
1063
    args.timestamp = timestamp
1064
    args.write(self._oprot)
1065
    self._oprot.writeMessageEnd()
1066
    self._oprot.trans.flush()
1067
 
1068
  def recv_setUserAsLoggedOut(self, ):
1069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1070
    if mtype == TMessageType.EXCEPTION:
1071
      x = TApplicationException()
1072
      x.read(self._iprot)
1073
      self._iprot.readMessageEnd()
1074
      raise x
1075
    result = setUserAsLoggedOut_result()
1076
    result.read(self._iprot)
1077
    self._iprot.readMessageEnd()
3431 rajveer 1078
    if result.success is not None:
94 ashish 1079
      return result.success
3431 rajveer 1080
    if result.ucx is not None:
94 ashish 1081
      raise result.ucx
1082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1083
 
504 rajveer 1084
  def setDefaultAddress(self, userid, addressId):
1085
    """
1086
    Parameters:
1087
     - userid
1088
     - addressId
1089
    """
1090
    self.send_setDefaultAddress(userid, addressId)
1091
    return self.recv_setDefaultAddress()
1092
 
1093
  def send_setDefaultAddress(self, userid, addressId):
1094
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1095
    args = setDefaultAddress_args()
1096
    args.userid = userid
1097
    args.addressId = addressId
1098
    args.write(self._oprot)
1099
    self._oprot.writeMessageEnd()
1100
    self._oprot.trans.flush()
1101
 
1102
  def recv_setDefaultAddress(self, ):
1103
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1104
    if mtype == TMessageType.EXCEPTION:
1105
      x = TApplicationException()
1106
      x.read(self._iprot)
1107
      self._iprot.readMessageEnd()
1108
      raise x
1109
    result = setDefaultAddress_result()
1110
    result.read(self._iprot)
1111
    self._iprot.readMessageEnd()
3431 rajveer 1112
    if result.success is not None:
504 rajveer 1113
      return result.success
3431 rajveer 1114
    if result.ucx is not None:
504 rajveer 1115
      raise result.ucx
1116
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1117
 
594 rajveer 1118
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1119
    """
1120
    Parameters:
1121
     - userid
594 rajveer 1122
     - oldPassword
1123
     - newPassword
94 ashish 1124
    """
594 rajveer 1125
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1126
    return self.recv_updatePassword()
1127
 
594 rajveer 1128
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1129
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1130
    args = updatePassword_args()
1131
    args.userid = userid
594 rajveer 1132
    args.oldPassword = oldPassword
1133
    args.newPassword = newPassword
94 ashish 1134
    args.write(self._oprot)
1135
    self._oprot.writeMessageEnd()
1136
    self._oprot.trans.flush()
1137
 
1138
  def recv_updatePassword(self, ):
1139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1140
    if mtype == TMessageType.EXCEPTION:
1141
      x = TApplicationException()
1142
      x.read(self._iprot)
1143
      self._iprot.readMessageEnd()
1144
      raise x
1145
    result = updatePassword_result()
1146
    result.read(self._iprot)
1147
    self._iprot.readMessageEnd()
3431 rajveer 1148
    if result.success is not None:
94 ashish 1149
      return result.success
3431 rajveer 1150
    if result.ucx is not None:
94 ashish 1151
      raise result.ucx
1152
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1153
 
884 rajveer 1154
  def forgotPassword(self, email, newPassword):
581 rajveer 1155
    """
1156
    Parameters:
1157
     - email
884 rajveer 1158
     - newPassword
581 rajveer 1159
    """
884 rajveer 1160
    self.send_forgotPassword(email, newPassword)
581 rajveer 1161
    return self.recv_forgotPassword()
1162
 
884 rajveer 1163
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1164
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1165
    args = forgotPassword_args()
1166
    args.email = email
884 rajveer 1167
    args.newPassword = newPassword
581 rajveer 1168
    args.write(self._oprot)
1169
    self._oprot.writeMessageEnd()
1170
    self._oprot.trans.flush()
1171
 
1172
  def recv_forgotPassword(self, ):
1173
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1174
    if mtype == TMessageType.EXCEPTION:
1175
      x = TApplicationException()
1176
      x.read(self._iprot)
1177
      self._iprot.readMessageEnd()
1178
      raise x
1179
    result = forgotPassword_result()
1180
    result.read(self._iprot)
1181
    self._iprot.readMessageEnd()
3431 rajveer 1182
    if result.success is not None:
581 rajveer 1183
      return result.success
3431 rajveer 1184
    if result.ucx is not None:
581 rajveer 1185
      raise result.ucx
1186
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1187
 
594 rajveer 1188
  def getAllAddressesForUser(self, userId):
1189
    """
1190
    Parameters:
1191
     - userId
1192
    """
1193
    self.send_getAllAddressesForUser(userId)
1194
    return self.recv_getAllAddressesForUser()
1195
 
1196
  def send_getAllAddressesForUser(self, userId):
1197
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1198
    args = getAllAddressesForUser_args()
1199
    args.userId = userId
1200
    args.write(self._oprot)
1201
    self._oprot.writeMessageEnd()
1202
    self._oprot.trans.flush()
1203
 
1204
  def recv_getAllAddressesForUser(self, ):
1205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1206
    if mtype == TMessageType.EXCEPTION:
1207
      x = TApplicationException()
1208
      x.read(self._iprot)
1209
      self._iprot.readMessageEnd()
1210
      raise x
1211
    result = getAllAddressesForUser_result()
1212
    result.read(self._iprot)
1213
    self._iprot.readMessageEnd()
3431 rajveer 1214
    if result.success is not None:
594 rajveer 1215
      return result.success
3431 rajveer 1216
    if result.ucx is not None:
594 rajveer 1217
      raise result.ucx
1218
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1219
 
1894 vikas 1220
  def getAddressById(self, addressId):
1221
    """
1222
    Parameters:
1223
     - addressId
1224
    """
1225
    self.send_getAddressById(addressId)
1226
    return self.recv_getAddressById()
1227
 
1228
  def send_getAddressById(self, addressId):
1229
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1230
    args = getAddressById_args()
1231
    args.addressId = addressId
1232
    args.write(self._oprot)
1233
    self._oprot.writeMessageEnd()
1234
    self._oprot.trans.flush()
1235
 
1236
  def recv_getAddressById(self, ):
1237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1238
    if mtype == TMessageType.EXCEPTION:
1239
      x = TApplicationException()
1240
      x.read(self._iprot)
1241
      self._iprot.readMessageEnd()
1242
      raise x
1243
    result = getAddressById_result()
1244
    result.read(self._iprot)
1245
    self._iprot.readMessageEnd()
3431 rajveer 1246
    if result.success is not None:
1894 vikas 1247
      return result.success
3431 rajveer 1248
    if result.ucx is not None:
1894 vikas 1249
      raise result.ucx
1250
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1251
 
594 rajveer 1252
  def getDefaultAddressId(self, userId):
1253
    """
1254
    Parameters:
1255
     - userId
1256
    """
1257
    self.send_getDefaultAddressId(userId)
1258
    return self.recv_getDefaultAddressId()
1259
 
1260
  def send_getDefaultAddressId(self, userId):
1261
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1262
    args = getDefaultAddressId_args()
1263
    args.userId = userId
1264
    args.write(self._oprot)
1265
    self._oprot.writeMessageEnd()
1266
    self._oprot.trans.flush()
1267
 
1268
  def recv_getDefaultAddressId(self, ):
1269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1270
    if mtype == TMessageType.EXCEPTION:
1271
      x = TApplicationException()
1272
      x.read(self._iprot)
1273
      self._iprot.readMessageEnd()
1274
      raise x
1275
    result = getDefaultAddressId_result()
1276
    result.read(self._iprot)
1277
    self._iprot.readMessageEnd()
3431 rajveer 1278
    if result.success is not None:
594 rajveer 1279
      return result.success
3431 rajveer 1280
    if result.ucx is not None:
594 rajveer 1281
      raise result.ucx
1282
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1283
 
785 rajveer 1284
  def getDefaultPincode(self, userId):
1285
    """
1286
    Parameters:
1287
     - userId
1288
    """
1289
    self.send_getDefaultPincode(userId)
1290
    return self.recv_getDefaultPincode()
1291
 
1292
  def send_getDefaultPincode(self, userId):
1293
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1294
    args = getDefaultPincode_args()
1295
    args.userId = userId
1296
    args.write(self._oprot)
1297
    self._oprot.writeMessageEnd()
1298
    self._oprot.trans.flush()
1299
 
1300
  def recv_getDefaultPincode(self, ):
1301
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1302
    if mtype == TMessageType.EXCEPTION:
1303
      x = TApplicationException()
1304
      x.read(self._iprot)
1305
      self._iprot.readMessageEnd()
1306
      raise x
1307
    result = getDefaultPincode_result()
1308
    result.read(self._iprot)
1309
    self._iprot.readMessageEnd()
3431 rajveer 1310
    if result.success is not None:
785 rajveer 1311
      return result.success
3431 rajveer 1312
    if result.ucx is not None:
785 rajveer 1313
      raise result.ucx
1314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1315
 
1274 varun.gupt 1316
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1317
    """
1318
    Parameters:
1319
     - userId
1320
     - replyTo
1321
     - communicationType
1322
     - orderId
1323
     - airwaybillNo
1324
     - productName
1325
     - subject
1326
     - message
1327
    """
1328
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1329
    return self.recv_saveUserCommunication()
1330
 
1331
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1332
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1333
    args = saveUserCommunication_args()
1334
    args.userId = userId
1335
    args.replyTo = replyTo
1336
    args.communicationType = communicationType
1337
    args.orderId = orderId
1338
    args.airwaybillNo = airwaybillNo
1339
    args.productName = productName
1340
    args.subject = subject
1341
    args.message = message
1342
    args.write(self._oprot)
1343
    self._oprot.writeMessageEnd()
1344
    self._oprot.trans.flush()
1345
 
1346
  def recv_saveUserCommunication(self, ):
1347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1348
    if mtype == TMessageType.EXCEPTION:
1349
      x = TApplicationException()
1350
      x.read(self._iprot)
1351
      self._iprot.readMessageEnd()
1352
      raise x
1353
    result = saveUserCommunication_result()
1354
    result.read(self._iprot)
1355
    self._iprot.readMessageEnd()
3431 rajveer 1356
    if result.success is not None:
1274 varun.gupt 1357
      return result.success
3431 rajveer 1358
    if result.ucx is not None:
1274 varun.gupt 1359
      raise result.ucx
1360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1361
 
1590 varun.gupt 1362
  def getUserCommunicationById(self, id):
1363
    """
1364
    Parameters:
1365
     - id
1366
    """
1367
    self.send_getUserCommunicationById(id)
1368
    return self.recv_getUserCommunicationById()
1369
 
1370
  def send_getUserCommunicationById(self, id):
1371
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1372
    args = getUserCommunicationById_args()
1373
    args.id = id
1374
    args.write(self._oprot)
1375
    self._oprot.writeMessageEnd()
1376
    self._oprot.trans.flush()
1377
 
1378
  def recv_getUserCommunicationById(self, ):
1379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1380
    if mtype == TMessageType.EXCEPTION:
1381
      x = TApplicationException()
1382
      x.read(self._iprot)
1383
      self._iprot.readMessageEnd()
1384
      raise x
1385
    result = getUserCommunicationById_result()
1386
    result.read(self._iprot)
1387
    self._iprot.readMessageEnd()
3431 rajveer 1388
    if result.success is not None:
1590 varun.gupt 1389
      return result.success
3431 rajveer 1390
    if result.ucx is not None:
1590 varun.gupt 1391
      raise result.ucx
1392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1393
 
1394
  def getUserCommunicationByUser(self, userId):
1395
    """
1396
    Parameters:
1397
     - userId
1398
    """
1399
    self.send_getUserCommunicationByUser(userId)
1400
    return self.recv_getUserCommunicationByUser()
1401
 
1402
  def send_getUserCommunicationByUser(self, userId):
1403
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1404
    args = getUserCommunicationByUser_args()
1405
    args.userId = userId
1406
    args.write(self._oprot)
1407
    self._oprot.writeMessageEnd()
1408
    self._oprot.trans.flush()
1409
 
1410
  def recv_getUserCommunicationByUser(self, ):
1411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1412
    if mtype == TMessageType.EXCEPTION:
1413
      x = TApplicationException()
1414
      x.read(self._iprot)
1415
      self._iprot.readMessageEnd()
1416
      raise x
1417
    result = getUserCommunicationByUser_result()
1418
    result.read(self._iprot)
1419
    self._iprot.readMessageEnd()
3431 rajveer 1420
    if result.success is not None:
1590 varun.gupt 1421
      return result.success
3431 rajveer 1422
    if result.ucx is not None:
1590 varun.gupt 1423
      raise result.ucx
1424
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1425
 
1426
  def getAllUserCommunications(self, ):
1427
    self.send_getAllUserCommunications()
1428
    return self.recv_getAllUserCommunications()
1429
 
1430
  def send_getAllUserCommunications(self, ):
1431
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1432
    args = getAllUserCommunications_args()
1433
    args.write(self._oprot)
1434
    self._oprot.writeMessageEnd()
1435
    self._oprot.trans.flush()
1436
 
1437
  def recv_getAllUserCommunications(self, ):
1438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1439
    if mtype == TMessageType.EXCEPTION:
1440
      x = TApplicationException()
1441
      x.read(self._iprot)
1442
      self._iprot.readMessageEnd()
1443
      raise x
1444
    result = getAllUserCommunications_result()
1445
    result.read(self._iprot)
1446
    self._iprot.readMessageEnd()
3431 rajveer 1447
    if result.success is not None:
1590 varun.gupt 1448
      return result.success
3431 rajveer 1449
    if result.ucx is not None:
1590 varun.gupt 1450
      raise result.ucx
1451
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1452
 
1859 vikas 1453
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1454
    """
1455
    Parameters:
1456
     - name
1859 vikas 1457
     - addedOn
1845 vikas 1458
    """
1859 vikas 1459
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1460
    return self.recv_createMasterAffiliate()
1461
 
1859 vikas 1462
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1463
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1464
    args = createMasterAffiliate_args()
1465
    args.name = name
1859 vikas 1466
    args.addedOn = addedOn
1845 vikas 1467
    args.write(self._oprot)
1468
    self._oprot.writeMessageEnd()
1469
    self._oprot.trans.flush()
1470
 
1471
  def recv_createMasterAffiliate(self, ):
1472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1473
    if mtype == TMessageType.EXCEPTION:
1474
      x = TApplicationException()
1475
      x.read(self._iprot)
1476
      self._iprot.readMessageEnd()
1477
      raise x
1478
    result = createMasterAffiliate_result()
1479
    result.read(self._iprot)
1480
    self._iprot.readMessageEnd()
3431 rajveer 1481
    if result.success is not None:
1845 vikas 1482
      return result.success
3431 rajveer 1483
    if result.utx is not None:
1845 vikas 1484
      raise result.utx
1485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1486
 
1899 vikas 1487
  def getAllMasterAffiliates(self, ):
1488
    self.send_getAllMasterAffiliates()
1489
    return self.recv_getAllMasterAffiliates()
1490
 
1491
  def send_getAllMasterAffiliates(self, ):
1492
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1493
    args = getAllMasterAffiliates_args()
1494
    args.write(self._oprot)
1495
    self._oprot.writeMessageEnd()
1496
    self._oprot.trans.flush()
1497
 
1498
  def recv_getAllMasterAffiliates(self, ):
1499
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1500
    if mtype == TMessageType.EXCEPTION:
1501
      x = TApplicationException()
1502
      x.read(self._iprot)
1503
      self._iprot.readMessageEnd()
1504
      raise x
1505
    result = getAllMasterAffiliates_result()
1506
    result.read(self._iprot)
1507
    self._iprot.readMessageEnd()
3431 rajveer 1508
    if result.success is not None:
1899 vikas 1509
      return result.success
3431 rajveer 1510
    if result.utx is not None:
1899 vikas 1511
      raise result.utx
1512
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1513
 
1845 vikas 1514
  def getMasterAffiliateById(self, id):
1515
    """
1516
    Parameters:
1517
     - id
1518
    """
1519
    self.send_getMasterAffiliateById(id)
1520
    return self.recv_getMasterAffiliateById()
1521
 
1522
  def send_getMasterAffiliateById(self, id):
1523
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1524
    args = getMasterAffiliateById_args()
1525
    args.id = id
1526
    args.write(self._oprot)
1527
    self._oprot.writeMessageEnd()
1528
    self._oprot.trans.flush()
1529
 
1530
  def recv_getMasterAffiliateById(self, ):
1531
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1532
    if mtype == TMessageType.EXCEPTION:
1533
      x = TApplicationException()
1534
      x.read(self._iprot)
1535
      self._iprot.readMessageEnd()
1536
      raise x
1537
    result = getMasterAffiliateById_result()
1538
    result.read(self._iprot)
1539
    self._iprot.readMessageEnd()
3431 rajveer 1540
    if result.success is not None:
1845 vikas 1541
      return result.success
3431 rajveer 1542
    if result.utx is not None:
1845 vikas 1543
      raise result.utx
1544
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1545
 
1546
  def getMasterAffiliateByName(self, name):
1547
    """
1548
    Parameters:
1549
     - name
1550
    """
1551
    self.send_getMasterAffiliateByName(name)
1552
    return self.recv_getMasterAffiliateByName()
1553
 
1554
  def send_getMasterAffiliateByName(self, name):
1555
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1556
    args = getMasterAffiliateByName_args()
1557
    args.name = name
1558
    args.write(self._oprot)
1559
    self._oprot.writeMessageEnd()
1560
    self._oprot.trans.flush()
1561
 
1562
  def recv_getMasterAffiliateByName(self, ):
1563
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1564
    if mtype == TMessageType.EXCEPTION:
1565
      x = TApplicationException()
1566
      x.read(self._iprot)
1567
      self._iprot.readMessageEnd()
1568
      raise x
1569
    result = getMasterAffiliateByName_result()
1570
    result.read(self._iprot)
1571
    self._iprot.readMessageEnd()
3431 rajveer 1572
    if result.success is not None:
1845 vikas 1573
      return result.success
3431 rajveer 1574
    if result.utx is not None:
1845 vikas 1575
      raise result.utx
1576
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1577
 
1859 vikas 1578
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1579
    """
1580
    Parameters:
1581
     - name
1582
     - url
1583
     - masterAffiliateId
1859 vikas 1584
     - addedOn
1845 vikas 1585
    """
1859 vikas 1586
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1587
    return self.recv_createAffiliate()
1588
 
1859 vikas 1589
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1590
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1591
    args = createAffiliate_args()
1592
    args.name = name
1593
    args.url = url
1594
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1595
    args.addedOn = addedOn
1845 vikas 1596
    args.write(self._oprot)
1597
    self._oprot.writeMessageEnd()
1598
    self._oprot.trans.flush()
1599
 
1600
  def recv_createAffiliate(self, ):
1601
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1602
    if mtype == TMessageType.EXCEPTION:
1603
      x = TApplicationException()
1604
      x.read(self._iprot)
1605
      self._iprot.readMessageEnd()
1606
      raise x
1607
    result = createAffiliate_result()
1608
    result.read(self._iprot)
1609
    self._iprot.readMessageEnd()
3431 rajveer 1610
    if result.success is not None:
1845 vikas 1611
      return result.success
3431 rajveer 1612
    if result.utx is not None:
1845 vikas 1613
      raise result.utx
1614
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1615
 
1616
  def getAffiliateById(self, id):
1617
    """
1618
    Parameters:
1619
     - id
1620
    """
1621
    self.send_getAffiliateById(id)
1622
    return self.recv_getAffiliateById()
1623
 
1624
  def send_getAffiliateById(self, id):
1625
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1626
    args = getAffiliateById_args()
1627
    args.id = id
1628
    args.write(self._oprot)
1629
    self._oprot.writeMessageEnd()
1630
    self._oprot.trans.flush()
1631
 
1632
  def recv_getAffiliateById(self, ):
1633
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1634
    if mtype == TMessageType.EXCEPTION:
1635
      x = TApplicationException()
1636
      x.read(self._iprot)
1637
      self._iprot.readMessageEnd()
1638
      raise x
1639
    result = getAffiliateById_result()
1640
    result.read(self._iprot)
1641
    self._iprot.readMessageEnd()
3431 rajveer 1642
    if result.success is not None:
1845 vikas 1643
      return result.success
3431 rajveer 1644
    if result.utx is not None:
1845 vikas 1645
      raise result.utx
1646
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1647
 
1648
  def getAffiliateByName(self, name):
1649
    """
1650
    Parameters:
1651
     - name
1652
    """
1653
    self.send_getAffiliateByName(name)
1654
    return self.recv_getAffiliateByName()
1655
 
1656
  def send_getAffiliateByName(self, name):
1657
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1658
    args = getAffiliateByName_args()
1659
    args.name = name
1660
    args.write(self._oprot)
1661
    self._oprot.writeMessageEnd()
1662
    self._oprot.trans.flush()
1663
 
1664
  def recv_getAffiliateByName(self, ):
1665
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1666
    if mtype == TMessageType.EXCEPTION:
1667
      x = TApplicationException()
1668
      x.read(self._iprot)
1669
      self._iprot.readMessageEnd()
1670
      raise x
1671
    result = getAffiliateByName_result()
1672
    result.read(self._iprot)
1673
    self._iprot.readMessageEnd()
3431 rajveer 1674
    if result.success is not None:
1845 vikas 1675
      return result.success
3431 rajveer 1676
    if result.utx is not None:
1845 vikas 1677
      raise result.utx
1678
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1679
 
1996 vikas 1680
  def getTrackerById(self, id):
1845 vikas 1681
    """
1682
    Parameters:
1683
     - id
1684
    """
1996 vikas 1685
    self.send_getTrackerById(id)
1845 vikas 1686
    return self.recv_getTrackerById()
1687
 
1996 vikas 1688
  def send_getTrackerById(self, id):
1845 vikas 1689
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1690
    args = getTrackerById_args()
1996 vikas 1691
    args.id = id
1845 vikas 1692
    args.write(self._oprot)
1693
    self._oprot.writeMessageEnd()
1694
    self._oprot.trans.flush()
1695
 
1696
  def recv_getTrackerById(self, ):
1697
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1698
    if mtype == TMessageType.EXCEPTION:
1699
      x = TApplicationException()
1700
      x.read(self._iprot)
1701
      self._iprot.readMessageEnd()
1702
      raise x
1703
    result = getTrackerById_result()
1704
    result.read(self._iprot)
1705
    self._iprot.readMessageEnd()
3431 rajveer 1706
    if result.success is not None:
1845 vikas 1707
      return result.success
3431 rajveer 1708
    if result.utx is not None:
1845 vikas 1709
      raise result.utx
1710
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1711
 
1996 vikas 1712
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1713
    """
1714
    Parameters:
1996 vikas 1715
     - id
1845 vikas 1716
    """
1996 vikas 1717
    self.send_getAffiliatesByMasterAffiliate(id)
1718
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1719
 
1996 vikas 1720
  def send_getAffiliatesByMasterAffiliate(self, id):
1721
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1722
    args = getAffiliatesByMasterAffiliate_args()
1723
    args.id = id
1845 vikas 1724
    args.write(self._oprot)
1725
    self._oprot.writeMessageEnd()
1726
    self._oprot.trans.flush()
1727
 
1996 vikas 1728
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1729
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1730
    if mtype == TMessageType.EXCEPTION:
1731
      x = TApplicationException()
1732
      x.read(self._iprot)
1733
      self._iprot.readMessageEnd()
1734
      raise x
1996 vikas 1735
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1736
    result.read(self._iprot)
1737
    self._iprot.readMessageEnd()
3431 rajveer 1738
    if result.success is not None:
1845 vikas 1739
      return result.success
3431 rajveer 1740
    if result.utx is not None:
1845 vikas 1741
      raise result.utx
1996 vikas 1742
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1743
 
1996 vikas 1744
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1745
    """
1746
    Parameters:
1996 vikas 1747
     - affiliateId
1845 vikas 1748
     - userId
1749
     - event
1750
     - url
1751
     - data
1859 vikas 1752
     - addedOn
1845 vikas 1753
    """
1996 vikas 1754
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1755
    return self.recv_addTrackLog()
1756
 
1996 vikas 1757
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1758
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1759
    args = addTrackLog_args()
1996 vikas 1760
    args.affiliateId = affiliateId
1845 vikas 1761
    args.userId = userId
1762
    args.event = event
1763
    args.url = url
1764
    args.data = data
1859 vikas 1765
    args.addedOn = addedOn
1845 vikas 1766
    args.write(self._oprot)
1767
    self._oprot.writeMessageEnd()
1768
    self._oprot.trans.flush()
1769
 
1770
  def recv_addTrackLog(self, ):
1771
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1772
    if mtype == TMessageType.EXCEPTION:
1773
      x = TApplicationException()
1774
      x.read(self._iprot)
1775
      self._iprot.readMessageEnd()
1776
      raise x
1777
    result = addTrackLog_result()
1778
    result.read(self._iprot)
1779
    self._iprot.readMessageEnd()
3431 rajveer 1780
    if result.success is not None:
1845 vikas 1781
      return result.success
3431 rajveer 1782
    if result.utx is not None:
1845 vikas 1783
      raise result.utx
1784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1785
 
1786
  def getTrackLogById(self, id):
1787
    """
1788
    Parameters:
1789
     - id
1790
    """
1791
    self.send_getTrackLogById(id)
1792
    return self.recv_getTrackLogById()
1793
 
1794
  def send_getTrackLogById(self, id):
1795
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1796
    args = getTrackLogById_args()
1797
    args.id = id
1798
    args.write(self._oprot)
1799
    self._oprot.writeMessageEnd()
1800
    self._oprot.trans.flush()
1801
 
1802
  def recv_getTrackLogById(self, ):
1803
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1804
    if mtype == TMessageType.EXCEPTION:
1805
      x = TApplicationException()
1806
      x.read(self._iprot)
1807
      self._iprot.readMessageEnd()
1808
      raise x
1809
    result = getTrackLogById_result()
1810
    result.read(self._iprot)
1811
    self._iprot.readMessageEnd()
3431 rajveer 1812
    if result.success is not None:
1845 vikas 1813
      return result.success
3431 rajveer 1814
    if result.utx is not None:
1845 vikas 1815
      raise result.utx
1816
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1817
 
3293 vikas 1818
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1819
    """
1820
    Parameters:
1996 vikas 1821
     - affiliateId
3293 vikas 1822
     - startDate
1823
     - endDate
1845 vikas 1824
    """
3293 vikas 1825
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1826
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1827
 
3293 vikas 1828
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1829
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1830
    args = getTrackLogsByAffiliate_args()
1831
    args.affiliateId = affiliateId
3293 vikas 1832
    args.startDate = startDate
1833
    args.endDate = endDate
1845 vikas 1834
    args.write(self._oprot)
1835
    self._oprot.writeMessageEnd()
1836
    self._oprot.trans.flush()
1837
 
1996 vikas 1838
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1840
    if mtype == TMessageType.EXCEPTION:
1841
      x = TApplicationException()
1842
      x.read(self._iprot)
1843
      self._iprot.readMessageEnd()
1844
      raise x
1996 vikas 1845
    result = getTrackLogsByAffiliate_result()
1845 vikas 1846
    result.read(self._iprot)
1847
    self._iprot.readMessageEnd()
3431 rajveer 1848
    if result.success is not None:
1845 vikas 1849
      return result.success
3431 rajveer 1850
    if result.utx is not None:
1845 vikas 1851
      raise result.utx
1996 vikas 1852
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1853
 
1854
  def getTrackLogsByUser(self, userId):
1855
    """
1856
    Parameters:
1857
     - userId
1858
    """
1859
    self.send_getTrackLogsByUser(userId)
1860
    return self.recv_getTrackLogsByUser()
1861
 
1862
  def send_getTrackLogsByUser(self, userId):
1863
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1864
    args = getTrackLogsByUser_args()
1865
    args.userId = userId
1866
    args.write(self._oprot)
1867
    self._oprot.writeMessageEnd()
1868
    self._oprot.trans.flush()
1869
 
1870
  def recv_getTrackLogsByUser(self, ):
1871
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1872
    if mtype == TMessageType.EXCEPTION:
1873
      x = TApplicationException()
1874
      x.read(self._iprot)
1875
      self._iprot.readMessageEnd()
1876
      raise x
1877
    result = getTrackLogsByUser_result()
1878
    result.read(self._iprot)
1879
    self._iprot.readMessageEnd()
3431 rajveer 1880
    if result.success is not None:
1845 vikas 1881
      return result.success
3431 rajveer 1882
    if result.utx is not None:
1845 vikas 1883
      raise result.utx
1884
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1885
 
1996 vikas 1886
  def getTrackLogs(self, userId, event, url):
1845 vikas 1887
    """
1888
    Parameters:
1889
     - userId
1890
     - event
1891
     - url
1892
    """
1996 vikas 1893
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1894
    return self.recv_getTrackLogs()
1895
 
1996 vikas 1896
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1897
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1898
    args = getTrackLogs_args()
1899
    args.userId = userId
1900
    args.event = event
1901
    args.url = url
1902
    args.write(self._oprot)
1903
    self._oprot.writeMessageEnd()
1904
    self._oprot.trans.flush()
1905
 
1906
  def recv_getTrackLogs(self, ):
1907
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1908
    if mtype == TMessageType.EXCEPTION:
1909
      x = TApplicationException()
1910
      x.read(self._iprot)
1911
      self._iprot.readMessageEnd()
1912
      raise x
1913
    result = getTrackLogs_result()
1914
    result.read(self._iprot)
1915
    self._iprot.readMessageEnd()
3431 rajveer 1916
    if result.success is not None:
1845 vikas 1917
      return result.success
3431 rajveer 1918
    if result.utx is not None:
1845 vikas 1919
      raise result.utx
1920
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1921
 
559 chandransh 1922
  def createCart(self, userId):
94 ashish 1923
    """
1924
    Parameters:
559 chandransh 1925
     - userId
94 ashish 1926
    """
559 chandransh 1927
    self.send_createCart(userId)
1928
    return self.recv_createCart()
94 ashish 1929
 
559 chandransh 1930
  def send_createCart(self, userId):
1931
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1932
    args = createCart_args()
1933
    args.userId = userId
94 ashish 1934
    args.write(self._oprot)
1935
    self._oprot.writeMessageEnd()
1936
    self._oprot.trans.flush()
1937
 
559 chandransh 1938
  def recv_createCart(self, ):
94 ashish 1939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1940
    if mtype == TMessageType.EXCEPTION:
1941
      x = TApplicationException()
1942
      x.read(self._iprot)
1943
      self._iprot.readMessageEnd()
1944
      raise x
559 chandransh 1945
    result = createCart_result()
94 ashish 1946
    result.read(self._iprot)
1947
    self._iprot.readMessageEnd()
3431 rajveer 1948
    if result.success is not None:
94 ashish 1949
      return result.success
3431 rajveer 1950
    if result.scx is not None:
559 chandransh 1951
      raise result.scx
1952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1953
 
559 chandransh 1954
  def getCurrentCart(self, userId):
94 ashish 1955
    """
1956
    Parameters:
559 chandransh 1957
     - userId
94 ashish 1958
    """
559 chandransh 1959
    self.send_getCurrentCart(userId)
1960
    return self.recv_getCurrentCart()
94 ashish 1961
 
559 chandransh 1962
  def send_getCurrentCart(self, userId):
1963
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1964
    args = getCurrentCart_args()
1965
    args.userId = userId
94 ashish 1966
    args.write(self._oprot)
1967
    self._oprot.writeMessageEnd()
1968
    self._oprot.trans.flush()
1969
 
559 chandransh 1970
  def recv_getCurrentCart(self, ):
94 ashish 1971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1972
    if mtype == TMessageType.EXCEPTION:
1973
      x = TApplicationException()
1974
      x.read(self._iprot)
1975
      self._iprot.readMessageEnd()
1976
      raise x
559 chandransh 1977
    result = getCurrentCart_result()
94 ashish 1978
    result.read(self._iprot)
1979
    self._iprot.readMessageEnd()
3431 rajveer 1980
    if result.success is not None:
94 ashish 1981
      return result.success
3431 rajveer 1982
    if result.scx is not None:
559 chandransh 1983
      raise result.scx
1984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1985
 
559 chandransh 1986
  def getCart(self, cartId):
94 ashish 1987
    """
1988
    Parameters:
559 chandransh 1989
     - cartId
94 ashish 1990
    """
559 chandransh 1991
    self.send_getCart(cartId)
1992
    return self.recv_getCart()
94 ashish 1993
 
559 chandransh 1994
  def send_getCart(self, cartId):
1995
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1996
    args = getCart_args()
1997
    args.cartId = cartId
94 ashish 1998
    args.write(self._oprot)
1999
    self._oprot.writeMessageEnd()
2000
    self._oprot.trans.flush()
2001
 
559 chandransh 2002
  def recv_getCart(self, ):
94 ashish 2003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2004
    if mtype == TMessageType.EXCEPTION:
2005
      x = TApplicationException()
2006
      x.read(self._iprot)
2007
      self._iprot.readMessageEnd()
2008
      raise x
559 chandransh 2009
    result = getCart_result()
94 ashish 2010
    result.read(self._iprot)
2011
    self._iprot.readMessageEnd()
3431 rajveer 2012
    if result.success is not None:
94 ashish 2013
      return result.success
3431 rajveer 2014
    if result.scx is not None:
559 chandransh 2015
      raise result.scx
2016
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2017
 
559 chandransh 2018
  def getCartsForUser(self, userId, status):
94 ashish 2019
    """
2020
    Parameters:
559 chandransh 2021
     - userId
2022
     - status
94 ashish 2023
    """
559 chandransh 2024
    self.send_getCartsForUser(userId, status)
2025
    return self.recv_getCartsForUser()
94 ashish 2026
 
559 chandransh 2027
  def send_getCartsForUser(self, userId, status):
2028
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
2029
    args = getCartsForUser_args()
2030
    args.userId = userId
2031
    args.status = status
94 ashish 2032
    args.write(self._oprot)
2033
    self._oprot.writeMessageEnd()
2034
    self._oprot.trans.flush()
2035
 
559 chandransh 2036
  def recv_getCartsForUser(self, ):
94 ashish 2037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2038
    if mtype == TMessageType.EXCEPTION:
2039
      x = TApplicationException()
2040
      x.read(self._iprot)
2041
      self._iprot.readMessageEnd()
2042
      raise x
559 chandransh 2043
    result = getCartsForUser_result()
94 ashish 2044
    result.read(self._iprot)
2045
    self._iprot.readMessageEnd()
3431 rajveer 2046
    if result.success is not None:
94 ashish 2047
      return result.success
3431 rajveer 2048
    if result.scx is not None:
559 chandransh 2049
      raise result.scx
2050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2051
 
559 chandransh 2052
  def getCartsByStatus(self, status):
94 ashish 2053
    """
2054
    Parameters:
559 chandransh 2055
     - status
94 ashish 2056
    """
559 chandransh 2057
    self.send_getCartsByStatus(status)
2058
    return self.recv_getCartsByStatus()
94 ashish 2059
 
559 chandransh 2060
  def send_getCartsByStatus(self, status):
2061
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2062
    args = getCartsByStatus_args()
2063
    args.status = status
94 ashish 2064
    args.write(self._oprot)
2065
    self._oprot.writeMessageEnd()
2066
    self._oprot.trans.flush()
2067
 
559 chandransh 2068
  def recv_getCartsByStatus(self, ):
94 ashish 2069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2070
    if mtype == TMessageType.EXCEPTION:
2071
      x = TApplicationException()
2072
      x.read(self._iprot)
2073
      self._iprot.readMessageEnd()
2074
      raise x
559 chandransh 2075
    result = getCartsByStatus_result()
94 ashish 2076
    result.read(self._iprot)
2077
    self._iprot.readMessageEnd()
3431 rajveer 2078
    if result.success is not None:
94 ashish 2079
      return result.success
3431 rajveer 2080
    if result.scx is not None:
559 chandransh 2081
      raise result.scx
2082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2083
 
559 chandransh 2084
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2085
    """
2086
    Parameters:
559 chandransh 2087
     - from_time
2088
     - to_time
2089
     - status
94 ashish 2090
    """
559 chandransh 2091
    self.send_getCartsByTime(from_time, to_time, status)
2092
    return self.recv_getCartsByTime()
94 ashish 2093
 
559 chandransh 2094
  def send_getCartsByTime(self, from_time, to_time, status):
2095
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2096
    args = getCartsByTime_args()
2097
    args.from_time = from_time
2098
    args.to_time = to_time
2099
    args.status = status
94 ashish 2100
    args.write(self._oprot)
2101
    self._oprot.writeMessageEnd()
2102
    self._oprot.trans.flush()
2103
 
559 chandransh 2104
  def recv_getCartsByTime(self, ):
94 ashish 2105
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2106
    if mtype == TMessageType.EXCEPTION:
2107
      x = TApplicationException()
2108
      x.read(self._iprot)
2109
      self._iprot.readMessageEnd()
2110
      raise x
559 chandransh 2111
    result = getCartsByTime_result()
94 ashish 2112
    result.read(self._iprot)
2113
    self._iprot.readMessageEnd()
3431 rajveer 2114
    if result.success is not None:
94 ashish 2115
      return result.success
3431 rajveer 2116
    if result.scx is not None:
559 chandransh 2117
      raise result.scx
2118
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2119
 
559 chandransh 2120
  def changeCartStatus(self, cartId, status):
130 ashish 2121
    """
2122
    Parameters:
559 chandransh 2123
     - cartId
2124
     - status
130 ashish 2125
    """
559 chandransh 2126
    self.send_changeCartStatus(cartId, status)
2127
    self.recv_changeCartStatus()
94 ashish 2128
 
559 chandransh 2129
  def send_changeCartStatus(self, cartId, status):
2130
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2131
    args = changeCartStatus_args()
2132
    args.cartId = cartId
2133
    args.status = status
130 ashish 2134
    args.write(self._oprot)
2135
    self._oprot.writeMessageEnd()
2136
    self._oprot.trans.flush()
2137
 
559 chandransh 2138
  def recv_changeCartStatus(self, ):
130 ashish 2139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2140
    if mtype == TMessageType.EXCEPTION:
2141
      x = TApplicationException()
2142
      x.read(self._iprot)
2143
      self._iprot.readMessageEnd()
2144
      raise x
559 chandransh 2145
    result = changeCartStatus_result()
130 ashish 2146
    result.read(self._iprot)
2147
    self._iprot.readMessageEnd()
3431 rajveer 2148
    if result.scx is not None:
559 chandransh 2149
      raise result.scx
2150
    return
2151
 
3557 rajveer 2152
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2153
    """
2154
    Parameters:
2155
     - cartId
2156
     - itemId
2157
     - quantity
3557 rajveer 2158
     - sourceId
559 chandransh 2159
    """
3557 rajveer 2160
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2161
    return self.recv_addItemToCart()
559 chandransh 2162
 
3557 rajveer 2163
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2164
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2165
    args = addItemToCart_args()
2166
    args.cartId = cartId
2167
    args.itemId = itemId
2168
    args.quantity = quantity
3557 rajveer 2169
    args.sourceId = sourceId
559 chandransh 2170
    args.write(self._oprot)
2171
    self._oprot.writeMessageEnd()
2172
    self._oprot.trans.flush()
2173
 
2174
  def recv_addItemToCart(self, ):
2175
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2176
    if mtype == TMessageType.EXCEPTION:
2177
      x = TApplicationException()
2178
      x.read(self._iprot)
2179
      self._iprot.readMessageEnd()
2180
      raise x
2181
    result = addItemToCart_result()
2182
    result.read(self._iprot)
2183
    self._iprot.readMessageEnd()
3431 rajveer 2184
    if result.success is not None:
2035 rajveer 2185
      return result.success
3431 rajveer 2186
    if result.scx is not None:
559 chandransh 2187
      raise result.scx
2035 rajveer 2188
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2189
 
2190
  def deleteItemFromCart(self, cartId, itemId):
2191
    """
2192
    Parameters:
2193
     - cartId
2194
     - itemId
2195
    """
2196
    self.send_deleteItemFromCart(cartId, itemId)
2197
    self.recv_deleteItemFromCart()
2198
 
2199
  def send_deleteItemFromCart(self, cartId, itemId):
2200
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2201
    args = deleteItemFromCart_args()
2202
    args.cartId = cartId
2203
    args.itemId = itemId
2204
    args.write(self._oprot)
2205
    self._oprot.writeMessageEnd()
2206
    self._oprot.trans.flush()
2207
 
2208
  def recv_deleteItemFromCart(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 = deleteItemFromCart_result()
2216
    result.read(self._iprot)
2217
    self._iprot.readMessageEnd()
3431 rajveer 2218
    if result.scx is not None:
559 chandransh 2219
      raise result.scx
2220
    return
2221
 
2222
  def changeQuantity(self, cartId, itemId, quantity):
2223
    """
2224
    Parameters:
2225
     - cartId
2226
     - itemId
2227
     - quantity
2228
    """
2229
    self.send_changeQuantity(cartId, itemId, quantity)
2230
    self.recv_changeQuantity()
2231
 
2232
  def send_changeQuantity(self, cartId, itemId, quantity):
2233
    self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
2234
    args = changeQuantity_args()
2235
    args.cartId = cartId
2236
    args.itemId = itemId
2237
    args.quantity = quantity
2238
    args.write(self._oprot)
2239
    self._oprot.writeMessageEnd()
2240
    self._oprot.trans.flush()
2241
 
2242
  def recv_changeQuantity(self, ):
2243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2244
    if mtype == TMessageType.EXCEPTION:
2245
      x = TApplicationException()
2246
      x.read(self._iprot)
2247
      self._iprot.readMessageEnd()
2248
      raise x
2249
    result = changeQuantity_result()
2250
    result.read(self._iprot)
2251
    self._iprot.readMessageEnd()
3431 rajveer 2252
    if result.scx is not None:
559 chandransh 2253
      raise result.scx
2254
    return
2255
 
2256
  def changeItemStatus(self, cartId, itemId, status):
2257
    """
2258
    Parameters:
2259
     - cartId
2260
     - itemId
2261
     - status
2262
    """
2263
    self.send_changeItemStatus(cartId, itemId, status)
2264
    self.recv_changeItemStatus()
2265
 
2266
  def send_changeItemStatus(self, cartId, itemId, status):
2267
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2268
    args = changeItemStatus_args()
2269
    args.cartId = cartId
2270
    args.itemId = itemId
2271
    args.status = status
2272
    args.write(self._oprot)
2273
    self._oprot.writeMessageEnd()
2274
    self._oprot.trans.flush()
2275
 
2276
  def recv_changeItemStatus(self, ):
2277
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2278
    if mtype == TMessageType.EXCEPTION:
2279
      x = TApplicationException()
2280
      x.read(self._iprot)
2281
      self._iprot.readMessageEnd()
2282
      raise x
2283
    result = changeItemStatus_result()
2284
    result.read(self._iprot)
2285
    self._iprot.readMessageEnd()
3431 rajveer 2286
    if result.scx is not None:
559 chandransh 2287
      raise result.scx
2288
    return
2289
 
2290
  def addAddressToCart(self, cartId, addressId):
2291
    """
2292
    Parameters:
2293
     - cartId
2294
     - addressId
2295
    """
2296
    self.send_addAddressToCart(cartId, addressId)
2297
    self.recv_addAddressToCart()
2298
 
2299
  def send_addAddressToCart(self, cartId, addressId):
2300
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2301
    args = addAddressToCart_args()
2302
    args.cartId = cartId
2303
    args.addressId = addressId
2304
    args.write(self._oprot)
2305
    self._oprot.writeMessageEnd()
2306
    self._oprot.trans.flush()
2307
 
2308
  def recv_addAddressToCart(self, ):
2309
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2310
    if mtype == TMessageType.EXCEPTION:
2311
      x = TApplicationException()
2312
      x.read(self._iprot)
2313
      self._iprot.readMessageEnd()
2314
      raise x
2315
    result = addAddressToCart_result()
2316
    result.read(self._iprot)
2317
    self._iprot.readMessageEnd()
3431 rajveer 2318
    if result.scx is not None:
575 chandransh 2319
      raise result.scx
559 chandransh 2320
    return
2321
 
1976 varun.gupt 2322
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2323
    """
2324
    Parameters:
2325
     - cartId
2326
     - couponCode
2327
     - totalPrice
2328
     - discountedPrice
2329
    """
2330
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2331
    self.recv_applyCouponToCart()
2332
 
2333
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2334
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2335
    args = applyCouponToCart_args()
2336
    args.cartId = cartId
2337
    args.couponCode = couponCode
2338
    args.totalPrice = totalPrice
2339
    args.discountedPrice = discountedPrice
2340
    args.write(self._oprot)
2341
    self._oprot.writeMessageEnd()
2342
    self._oprot.trans.flush()
2343
 
2344
  def recv_applyCouponToCart(self, ):
2345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2346
    if mtype == TMessageType.EXCEPTION:
2347
      x = TApplicationException()
2348
      x.read(self._iprot)
2349
      self._iprot.readMessageEnd()
2350
      raise x
2351
    result = applyCouponToCart_result()
2352
    result.read(self._iprot)
2353
    self._iprot.readMessageEnd()
3431 rajveer 2354
    if result.scx is not None:
1976 varun.gupt 2355
      raise result.scx
2356
    return
2357
 
2358
  def removeCoupon(self, cartId):
2359
    """
2360
    Parameters:
2361
     - cartId
2362
    """
2363
    self.send_removeCoupon(cartId)
2364
    self.recv_removeCoupon()
2365
 
2366
  def send_removeCoupon(self, cartId):
2367
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2368
    args = removeCoupon_args()
2369
    args.cartId = cartId
2370
    args.write(self._oprot)
2371
    self._oprot.writeMessageEnd()
2372
    self._oprot.trans.flush()
2373
 
2374
  def recv_removeCoupon(self, ):
2375
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2376
    if mtype == TMessageType.EXCEPTION:
2377
      x = TApplicationException()
2378
      x.read(self._iprot)
2379
      self._iprot.readMessageEnd()
2380
      raise x
2381
    result = removeCoupon_result()
2382
    result.read(self._iprot)
2383
    self._iprot.readMessageEnd()
3431 rajveer 2384
    if result.scx is not None:
1976 varun.gupt 2385
      raise result.scx
2386
    return
2387
 
3554 varun.gupt 2388
  def deleteDiscountsFromCart(self, cartId):
2389
    """
2390
    Deletes all the discounts associated with the cart
2391
 
2392
    Parameters:
2393
     - cartId
2394
    """
2395
    self.send_deleteDiscountsFromCart(cartId)
2396
    self.recv_deleteDiscountsFromCart()
2397
 
2398
  def send_deleteDiscountsFromCart(self, cartId):
2399
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2400
    args = deleteDiscountsFromCart_args()
2401
    args.cartId = cartId
2402
    args.write(self._oprot)
2403
    self._oprot.writeMessageEnd()
2404
    self._oprot.trans.flush()
2405
 
2406
  def recv_deleteDiscountsFromCart(self, ):
2407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2408
    if mtype == TMessageType.EXCEPTION:
2409
      x = TApplicationException()
2410
      x.read(self._iprot)
2411
      self._iprot.readMessageEnd()
2412
      raise x
2413
    result = deleteDiscountsFromCart_result()
2414
    result.read(self._iprot)
2415
    self._iprot.readMessageEnd()
2416
    if result.scx is not None:
2417
      raise result.scx
2418
    return
2419
 
2420
  def saveDiscounts(self, discounts):
2421
    """
2422
    Accepts a list of thrift objects of Discount type and saves them
2423
 
2424
    Parameters:
2425
     - discounts
2426
    """
2427
    self.send_saveDiscounts(discounts)
2428
    self.recv_saveDiscounts()
2429
 
2430
  def send_saveDiscounts(self, discounts):
2431
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2432
    args = saveDiscounts_args()
2433
    args.discounts = discounts
2434
    args.write(self._oprot)
2435
    self._oprot.writeMessageEnd()
2436
    self._oprot.trans.flush()
2437
 
2438
  def recv_saveDiscounts(self, ):
2439
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2440
    if mtype == TMessageType.EXCEPTION:
2441
      x = TApplicationException()
2442
      x.read(self._iprot)
2443
      self._iprot.readMessageEnd()
2444
      raise x
2445
    result = saveDiscounts_result()
2446
    result.read(self._iprot)
2447
    self._iprot.readMessageEnd()
2448
    if result.scx is not None:
2449
      raise result.scx
2450
    return
2451
 
2815 vikas 2452
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 2453
    """
690 chandransh 2454
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2455
 
559 chandransh 2456
    Parameters:
2457
     - cartId
2815 vikas 2458
     - sessionSource
2459
     - sessionStartTime
559 chandransh 2460
    """
2815 vikas 2461
    self.send_createOrders(cartId, sessionSource, sessionStartTime)
690 chandransh 2462
    return self.recv_createOrders()
559 chandransh 2463
 
2815 vikas 2464
  def send_createOrders(self, cartId, sessionSource, sessionStartTime):
690 chandransh 2465
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2466
    args = createOrders_args()
559 chandransh 2467
    args.cartId = cartId
2815 vikas 2468
    args.sessionSource = sessionSource
2469
    args.sessionStartTime = sessionStartTime
559 chandransh 2470
    args.write(self._oprot)
2471
    self._oprot.writeMessageEnd()
2472
    self._oprot.trans.flush()
2473
 
690 chandransh 2474
  def recv_createOrders(self, ):
559 chandransh 2475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2476
    if mtype == TMessageType.EXCEPTION:
2477
      x = TApplicationException()
2478
      x.read(self._iprot)
2479
      self._iprot.readMessageEnd()
2480
      raise x
690 chandransh 2481
    result = createOrders_result()
559 chandransh 2482
    result.read(self._iprot)
2483
    self._iprot.readMessageEnd()
3431 rajveer 2484
    if result.success is not None:
130 ashish 2485
      return result.success
3431 rajveer 2486
    if result.scx is not None:
559 chandransh 2487
      raise result.scx
690 chandransh 2488
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2489
 
3557 rajveer 2490
  def validateCart(self, cartId, sourceId):
130 ashish 2491
    """
690 chandransh 2492
    Validates that:
2493
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2494
    2. All of the lines in the cart are active items.
690 chandransh 2495
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2496
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2497
 
130 ashish 2498
    Parameters:
559 chandransh 2499
     - cartId
3557 rajveer 2500
     - sourceId
130 ashish 2501
    """
3557 rajveer 2502
    self.send_validateCart(cartId, sourceId)
559 chandransh 2503
    return self.recv_validateCart()
130 ashish 2504
 
3557 rajveer 2505
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2506
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2507
    args = validateCart_args()
2508
    args.cartId = cartId
3557 rajveer 2509
    args.sourceId = sourceId
130 ashish 2510
    args.write(self._oprot)
2511
    self._oprot.writeMessageEnd()
2512
    self._oprot.trans.flush()
2513
 
559 chandransh 2514
  def recv_validateCart(self, ):
130 ashish 2515
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2516
    if mtype == TMessageType.EXCEPTION:
2517
      x = TApplicationException()
2518
      x.read(self._iprot)
2519
      self._iprot.readMessageEnd()
2520
      raise x
559 chandransh 2521
    result = validateCart_result()
130 ashish 2522
    result.read(self._iprot)
2523
    self._iprot.readMessageEnd()
3431 rajveer 2524
    if result.success is not None:
130 ashish 2525
      return result.success
3431 rajveer 2526
    if result.scex is not None:
575 chandransh 2527
      raise result.scex
559 chandransh 2528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2529
 
690 chandransh 2530
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2531
    """
690 chandransh 2532
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2533
 
575 chandransh 2534
    Parameters:
690 chandransh 2535
     - fromCartId
2536
     - toCartId
2537
    """
2538
    self.send_mergeCart(fromCartId, toCartId)
2539
    self.recv_mergeCart()
2540
 
2541
  def send_mergeCart(self, fromCartId, toCartId):
2542
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2543
    args = mergeCart_args()
2544
    args.fromCartId = fromCartId
2545
    args.toCartId = toCartId
2546
    args.write(self._oprot)
2547
    self._oprot.writeMessageEnd()
2548
    self._oprot.trans.flush()
2549
 
2550
  def recv_mergeCart(self, ):
2551
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2552
    if mtype == TMessageType.EXCEPTION:
2553
      x = TApplicationException()
2554
      x.read(self._iprot)
2555
      self._iprot.readMessageEnd()
2556
      raise x
2557
    result = mergeCart_result()
2558
    result.read(self._iprot)
2559
    self._iprot.readMessageEnd()
2560
    return
2561
 
2562
  def checkOut(self, cartId):
2563
    """
2564
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2565
 
690 chandransh 2566
    Parameters:
575 chandransh 2567
     - cartId
2568
    """
690 chandransh 2569
    self.send_checkOut(cartId)
2570
    return self.recv_checkOut()
575 chandransh 2571
 
690 chandransh 2572
  def send_checkOut(self, cartId):
2573
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2574
    args = checkOut_args()
575 chandransh 2575
    args.cartId = cartId
2576
    args.write(self._oprot)
2577
    self._oprot.writeMessageEnd()
2578
    self._oprot.trans.flush()
2579
 
690 chandransh 2580
  def recv_checkOut(self, ):
575 chandransh 2581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2582
    if mtype == TMessageType.EXCEPTION:
2583
      x = TApplicationException()
2584
      x.read(self._iprot)
2585
      self._iprot.readMessageEnd()
2586
      raise x
690 chandransh 2587
    result = checkOut_result()
575 chandransh 2588
    result.read(self._iprot)
2589
    self._iprot.readMessageEnd()
3431 rajveer 2590
    if result.success is not None:
575 chandransh 2591
      return result.success
3431 rajveer 2592
    if result.scex is not None:
575 chandransh 2593
      raise result.scex
690 chandransh 2594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2595
 
690 chandransh 2596
  def resetCart(self, cartId, items):
559 chandransh 2597
    """
690 chandransh 2598
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2599
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2600
 
559 chandransh 2601
    Parameters:
690 chandransh 2602
     - cartId
2603
     - items
559 chandransh 2604
    """
690 chandransh 2605
    self.send_resetCart(cartId, items)
2606
    return self.recv_resetCart()
130 ashish 2607
 
690 chandransh 2608
  def send_resetCart(self, cartId, items):
2609
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2610
    args = resetCart_args()
2611
    args.cartId = cartId
2612
    args.items = items
559 chandransh 2613
    args.write(self._oprot)
2614
    self._oprot.writeMessageEnd()
2615
    self._oprot.trans.flush()
2616
 
690 chandransh 2617
  def recv_resetCart(self, ):
559 chandransh 2618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2619
    if mtype == TMessageType.EXCEPTION:
2620
      x = TApplicationException()
2621
      x.read(self._iprot)
2622
      self._iprot.readMessageEnd()
2623
      raise x
690 chandransh 2624
    result = resetCart_result()
559 chandransh 2625
    result.read(self._iprot)
2626
    self._iprot.readMessageEnd()
3431 rajveer 2627
    if result.success is not None:
690 chandransh 2628
      return result.success
3431 rajveer 2629
    if result.scex is not None:
690 chandransh 2630
      raise result.scex
2631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2632
 
2981 rajveer 2633
  def getUserCount(self, userType):
559 chandransh 2634
    """
2981 rajveer 2635
    Returns number of registered users.
2636
    If userType = null, then it returns count of all users, including anonymous
2637
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2638
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2639
 
559 chandransh 2640
    Parameters:
2981 rajveer 2641
     - userType
559 chandransh 2642
    """
2981 rajveer 2643
    self.send_getUserCount(userType)
2644
    return self.recv_getUserCount()
559 chandransh 2645
 
2981 rajveer 2646
  def send_getUserCount(self, userType):
2647
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2648
    args = getUserCount_args()
2649
    args.userType = userType
559 chandransh 2650
    args.write(self._oprot)
2651
    self._oprot.writeMessageEnd()
2652
    self._oprot.trans.flush()
2653
 
2981 rajveer 2654
  def recv_getUserCount(self, ):
559 chandransh 2655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2656
    if mtype == TMessageType.EXCEPTION:
2657
      x = TApplicationException()
2658
      x.read(self._iprot)
2659
      self._iprot.readMessageEnd()
2660
      raise x
2981 rajveer 2661
    result = getUserCount_result()
559 chandransh 2662
    result.read(self._iprot)
2663
    self._iprot.readMessageEnd()
3431 rajveer 2664
    if result.success is not None:
559 chandransh 2665
      return result.success
2981 rajveer 2666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2667
 
2981 rajveer 2668
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2669
    """
2981 rajveer 2670
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2671
    If any of startDate or endDate is -1, then that filter is ignored.
2672
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2673
 
2674
 
559 chandransh 2675
    Parameters:
2981 rajveer 2676
     - userType
2677
     - startDate
2678
     - endDate
559 chandransh 2679
    """
2981 rajveer 2680
    self.send_getAllUsers(userType, startDate, endDate)
2681
    return self.recv_getAllUsers()
559 chandransh 2682
 
2981 rajveer 2683
  def send_getAllUsers(self, userType, startDate, endDate):
2684
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2685
    args = getAllUsers_args()
2686
    args.userType = userType
2687
    args.startDate = startDate
2688
    args.endDate = endDate
559 chandransh 2689
    args.write(self._oprot)
2690
    self._oprot.writeMessageEnd()
2691
    self._oprot.trans.flush()
2692
 
2981 rajveer 2693
  def recv_getAllUsers(self, ):
559 chandransh 2694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2695
    if mtype == TMessageType.EXCEPTION:
2696
      x = TApplicationException()
2697
      x.read(self._iprot)
2698
      self._iprot.readMessageEnd()
2699
      raise x
2981 rajveer 2700
    result = getAllUsers_result()
559 chandransh 2701
    result.read(self._iprot)
2702
    self._iprot.readMessageEnd()
3431 rajveer 2703
    if result.success is not None:
559 chandransh 2704
      return result.success
2981 rajveer 2705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2706
 
2981 rajveer 2707
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2708
    """
2709
    Parameters:
2981 rajveer 2710
     - user_id
2711
     - entity_id
2712
     - slide
2713
     - note
559 chandransh 2714
    """
2981 rajveer 2715
    self.send_putUserNote(user_id, entity_id, slide, note)
2716
    self.recv_putUserNote()
559 chandransh 2717
 
2981 rajveer 2718
  def send_putUserNote(self, user_id, entity_id, slide, note):
2719
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2720
    args = putUserNote_args()
2721
    args.user_id = user_id
2722
    args.entity_id = entity_id
2723
    args.slide = slide
2724
    args.note = note
559 chandransh 2725
    args.write(self._oprot)
2726
    self._oprot.writeMessageEnd()
2727
    self._oprot.trans.flush()
2728
 
2981 rajveer 2729
  def recv_putUserNote(self, ):
559 chandransh 2730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2731
    if mtype == TMessageType.EXCEPTION:
2732
      x = TApplicationException()
2733
      x.read(self._iprot)
2734
      self._iprot.readMessageEnd()
2735
      raise x
2981 rajveer 2736
    result = putUserNote_result()
559 chandransh 2737
    result.read(self._iprot)
2738
    self._iprot.readMessageEnd()
2739
    return
2740
 
2981 rajveer 2741
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2742
    """
2743
    Parameters:
2981 rajveer 2744
     - user_id
2745
     - entity_id
559 chandransh 2746
    """
2981 rajveer 2747
    self.send_getUserNotes(user_id, entity_id)
2748
    return self.recv_getUserNotes()
559 chandransh 2749
 
2981 rajveer 2750
  def send_getUserNotes(self, user_id, entity_id):
2751
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2752
    args = getUserNotes_args()
2753
    args.user_id = user_id
2754
    args.entity_id = entity_id
559 chandransh 2755
    args.write(self._oprot)
2756
    self._oprot.writeMessageEnd()
2757
    self._oprot.trans.flush()
2758
 
2981 rajveer 2759
  def recv_getUserNotes(self, ):
559 chandransh 2760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2761
    if mtype == TMessageType.EXCEPTION:
2762
      x = TApplicationException()
2763
      x.read(self._iprot)
2764
      self._iprot.readMessageEnd()
2765
      raise x
2981 rajveer 2766
    result = getUserNotes_result()
559 chandransh 2767
    result.read(self._iprot)
2768
    self._iprot.readMessageEnd()
3431 rajveer 2769
    if result.success is not None:
2981 rajveer 2770
      return result.success
2771
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2772
 
2981 rajveer 2773
  def getMyResearchItems(self, userId):
559 chandransh 2774
    """
2981 rajveer 2775
    Returns list of item ids in myresearch for the user
3431 rajveer 2776
 
559 chandransh 2777
    Parameters:
772 rajveer 2778
     - userId
559 chandransh 2779
    """
2981 rajveer 2780
    self.send_getMyResearchItems(userId)
2781
    return self.recv_getMyResearchItems()
559 chandransh 2782
 
2981 rajveer 2783
  def send_getMyResearchItems(self, userId):
2784
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2785
    args = getMyResearchItems_args()
772 rajveer 2786
    args.userId = userId
559 chandransh 2787
    args.write(self._oprot)
2788
    self._oprot.writeMessageEnd()
2789
    self._oprot.trans.flush()
2790
 
2981 rajveer 2791
  def recv_getMyResearchItems(self, ):
559 chandransh 2792
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2793
    if mtype == TMessageType.EXCEPTION:
2794
      x = TApplicationException()
2795
      x.read(self._iprot)
2796
      self._iprot.readMessageEnd()
2797
      raise x
2981 rajveer 2798
    result = getMyResearchItems_result()
559 chandransh 2799
    result.read(self._iprot)
2800
    self._iprot.readMessageEnd()
3431 rajveer 2801
    if result.success is not None:
559 chandransh 2802
      return result.success
3431 rajveer 2803
    if result.scx is not None:
559 chandransh 2804
      raise result.scx
2981 rajveer 2805
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2806
 
2981 rajveer 2807
  def updateMyResearch(self, userId, itemId):
559 chandransh 2808
    """
2981 rajveer 2809
    add item to my research for a user
3431 rajveer 2810
 
559 chandransh 2811
    Parameters:
2981 rajveer 2812
     - userId
2813
     - itemId
559 chandransh 2814
    """
2981 rajveer 2815
    self.send_updateMyResearch(userId, itemId)
2816
    return self.recv_updateMyResearch()
559 chandransh 2817
 
2981 rajveer 2818
  def send_updateMyResearch(self, userId, itemId):
2819
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2820
    args = updateMyResearch_args()
2821
    args.userId = userId
2822
    args.itemId = itemId
559 chandransh 2823
    args.write(self._oprot)
2824
    self._oprot.writeMessageEnd()
2825
    self._oprot.trans.flush()
2826
 
2981 rajveer 2827
  def recv_updateMyResearch(self, ):
559 chandransh 2828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2829
    if mtype == TMessageType.EXCEPTION:
2830
      x = TApplicationException()
2831
      x.read(self._iprot)
2832
      self._iprot.readMessageEnd()
2833
      raise x
2981 rajveer 2834
    result = updateMyResearch_result()
559 chandransh 2835
    result.read(self._iprot)
2836
    self._iprot.readMessageEnd()
3431 rajveer 2837
    if result.success is not None:
2981 rajveer 2838
      return result.success
3431 rajveer 2839
    if result.scx is not None:
2981 rajveer 2840
      raise result.scx
2841
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2842
 
2981 rajveer 2843
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2844
    """
2981 rajveer 2845
    delete item from my research for a user
3431 rajveer 2846
 
1596 ankur.sing 2847
    Parameters:
2981 rajveer 2848
     - userId
2849
     - itemId
1596 ankur.sing 2850
    """
2981 rajveer 2851
    self.send_deleteItemFromMyResearch(userId, itemId)
2852
    self.recv_deleteItemFromMyResearch()
559 chandransh 2853
 
2981 rajveer 2854
  def send_deleteItemFromMyResearch(self, userId, itemId):
2855
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2856
    args = deleteItemFromMyResearch_args()
2857
    args.userId = userId
2858
    args.itemId = itemId
1596 ankur.sing 2859
    args.write(self._oprot)
2860
    self._oprot.writeMessageEnd()
2861
    self._oprot.trans.flush()
2862
 
2981 rajveer 2863
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2865
    if mtype == TMessageType.EXCEPTION:
2866
      x = TApplicationException()
2867
      x.read(self._iprot)
2868
      self._iprot.readMessageEnd()
2869
      raise x
2981 rajveer 2870
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2871
    result.read(self._iprot)
2872
    self._iprot.readMessageEnd()
3431 rajveer 2873
    if result.scx is not None:
2981 rajveer 2874
      raise result.scx
2875
    return
1596 ankur.sing 2876
 
2981 rajveer 2877
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2878
    """
2981 rajveer 2879
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2880
 
1673 ankur.sing 2881
    Parameters:
2981 rajveer 2882
     - userId
1673 ankur.sing 2883
    """
2981 rajveer 2884
    self.send_getBrowseHistoryItems(userId)
2885
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2886
 
2981 rajveer 2887
  def send_getBrowseHistoryItems(self, userId):
2888
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2889
    args = getBrowseHistoryItems_args()
2890
    args.userId = userId
1673 ankur.sing 2891
    args.write(self._oprot)
2892
    self._oprot.writeMessageEnd()
2893
    self._oprot.trans.flush()
2894
 
2981 rajveer 2895
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2896
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2897
    if mtype == TMessageType.EXCEPTION:
2898
      x = TApplicationException()
2899
      x.read(self._iprot)
2900
      self._iprot.readMessageEnd()
2901
      raise x
2981 rajveer 2902
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2903
    result.read(self._iprot)
2904
    self._iprot.readMessageEnd()
3431 rajveer 2905
    if result.success is not None:
1673 ankur.sing 2906
      return result.success
3431 rajveer 2907
    if result.scx is not None:
2981 rajveer 2908
      raise result.scx
2909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2910
 
2981 rajveer 2911
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2912
    """
2981 rajveer 2913
    add item to browse history for a user
3431 rajveer 2914
 
2642 varun.gupt 2915
    Parameters:
2981 rajveer 2916
     - userId
2917
     - itemId
2642 varun.gupt 2918
    """
2981 rajveer 2919
    self.send_updateBrowseHistory(userId, itemId)
2920
    self.recv_updateBrowseHistory()
1673 ankur.sing 2921
 
2981 rajveer 2922
  def send_updateBrowseHistory(self, userId, itemId):
2923
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2924
    args = updateBrowseHistory_args()
2925
    args.userId = userId
2926
    args.itemId = itemId
2642 varun.gupt 2927
    args.write(self._oprot)
2928
    self._oprot.writeMessageEnd()
2929
    self._oprot.trans.flush()
2930
 
2981 rajveer 2931
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2932
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2933
    if mtype == TMessageType.EXCEPTION:
2934
      x = TApplicationException()
2935
      x.read(self._iprot)
2936
      self._iprot.readMessageEnd()
2937
      raise x
2981 rajveer 2938
    result = updateBrowseHistory_result()
2642 varun.gupt 2939
    result.read(self._iprot)
2940
    self._iprot.readMessageEnd()
2941
    return
2942
 
3385 varun.gupt 2943
  def getCartsWithCouponCount(self, couponCode):
2944
    """
2945
    Returns count of Carts with given coupon applied
3431 rajveer 2946
 
3385 varun.gupt 2947
    Parameters:
2948
     - couponCode
2949
    """
2950
    self.send_getCartsWithCouponCount(couponCode)
2951
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2952
 
3385 varun.gupt 2953
  def send_getCartsWithCouponCount(self, couponCode):
2954
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2955
    args = getCartsWithCouponCount_args()
2956
    args.couponCode = couponCode
2957
    args.write(self._oprot)
2958
    self._oprot.writeMessageEnd()
2959
    self._oprot.trans.flush()
2960
 
2961
  def recv_getCartsWithCouponCount(self, ):
2962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2963
    if mtype == TMessageType.EXCEPTION:
2964
      x = TApplicationException()
2965
      x.read(self._iprot)
2966
      self._iprot.readMessageEnd()
2967
      raise x
2968
    result = getCartsWithCouponCount_result()
2969
    result.read(self._iprot)
2970
    self._iprot.readMessageEnd()
3431 rajveer 2971
    if result.success is not None:
3385 varun.gupt 2972
      return result.success
2973
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2974
 
3499 mandeep.dh 2975
  def increaseTrustLevel(self, userId, trustLevelDelta):
2976
    """
2977
    Updates COD trust level of a user
3385 varun.gupt 2978
 
3499 mandeep.dh 2979
    Parameters:
2980
     - userId
2981
     - trustLevelDelta
2982
    """
2983
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2984
 
2985
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2986
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2987
    args = increaseTrustLevel_args()
2988
    args.userId = userId
2989
    args.trustLevelDelta = trustLevelDelta
2990
    args.write(self._oprot)
2991
    self._oprot.writeMessageEnd()
2992
    self._oprot.trans.flush()
2993
 
3376 rajveer 2994
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2995
  def __init__(self, handler):
3376 rajveer 2996
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2997
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2998
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2999
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 3000
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 3001
    self._processMap["createUser"] = Processor.process_createUser
3002
    self._processMap["updateUser"] = Processor.process_updateUser
3003
    self._processMap["deleteUser"] = Processor.process_deleteUser
3004
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 3005
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 3006
    self._processMap["userExists"] = Processor.process_userExists
3007
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
3008
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
3009
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
3010
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 3011
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 3012
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 3013
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 3014
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 3015
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 3016
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 3017
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 3018
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 3019
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
3020
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
3021
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 3022
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 3023
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 3024
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
3025
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
3026
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
3027
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
3028
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 3029
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 3030
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
3031
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
3032
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 3033
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 3034
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
3035
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 3036
    self._processMap["createCart"] = Processor.process_createCart
3037
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3038
    self._processMap["getCart"] = Processor.process_getCart
3039
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
3040
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
3041
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3042
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
3043
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3044
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3045
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
3046
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3047
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 3048
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3049
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3050
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3051
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3052
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3053
    self._processMap["validateCart"] = Processor.process_validateCart
3054
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3055
    self._processMap["checkOut"] = Processor.process_checkOut
3056
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3057
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3058
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 3059
    self._processMap["putUserNote"] = Processor.process_putUserNote
3060
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 3061
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3062
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3063
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3064
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3065
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3066
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3067
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
94 ashish 3068
 
3069
  def process(self, iprot, oprot):
3070
    (name, type, seqid) = iprot.readMessageBegin()
3071
    if name not in self._processMap:
3072
      iprot.skip(TType.STRUCT)
3073
      iprot.readMessageEnd()
3074
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3075
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3076
      x.write(oprot)
3077
      oprot.writeMessageEnd()
3078
      oprot.trans.flush()
3079
      return
3080
    else:
3081
      self._processMap[name](self, seqid, iprot, oprot)
3082
    return True
3083
 
559 chandransh 3084
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3085
    args = createAnonymousUser_args()
94 ashish 3086
    args.read(iprot)
3087
    iprot.readMessageEnd()
559 chandransh 3088
    result = createAnonymousUser_result()
94 ashish 3089
    try:
559 chandransh 3090
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3091
    except UserContextException, ucex:
3092
      result.ucex = ucex
3093
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3094
    result.write(oprot)
3095
    oprot.writeMessageEnd()
3096
    oprot.trans.flush()
3097
 
559 chandransh 3098
  def process_getUserById(self, seqid, iprot, oprot):
3099
    args = getUserById_args()
94 ashish 3100
    args.read(iprot)
3101
    iprot.readMessageEnd()
559 chandransh 3102
    result = getUserById_result()
94 ashish 3103
    try:
559 chandransh 3104
      result.success = self._handler.getUserById(args.userId)
3105
    except UserContextException, ucex:
3106
      result.ucex = ucex
3107
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3108
    result.write(oprot)
3109
    oprot.writeMessageEnd()
3110
    oprot.trans.flush()
3111
 
1491 vikas 3112
  def process_getUserByEmail(self, seqid, iprot, oprot):
3113
    args = getUserByEmail_args()
3114
    args.read(iprot)
3115
    iprot.readMessageEnd()
3116
    result = getUserByEmail_result()
3117
    try:
3118
      result.success = self._handler.getUserByEmail(args.email)
3119
    except UserContextException, ucex:
3120
      result.ucex = ucex
3121
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3122
    result.write(oprot)
3123
    oprot.writeMessageEnd()
3124
    oprot.trans.flush()
3125
 
3032 mandeep.dh 3126
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3127
    args = getUserByMobileNumber_args()
3128
    args.read(iprot)
3129
    iprot.readMessageEnd()
3130
    result = getUserByMobileNumber_result()
3131
    try:
3132
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3133
    except UserContextException, ucex:
3134
      result.ucex = ucex
3135
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3136
    result.write(oprot)
3137
    oprot.writeMessageEnd()
3138
    oprot.trans.flush()
3139
 
559 chandransh 3140
  def process_createUser(self, seqid, iprot, oprot):
3141
    args = createUser_args()
94 ashish 3142
    args.read(iprot)
3143
    iprot.readMessageEnd()
559 chandransh 3144
    result = createUser_result()
94 ashish 3145
    try:
559 chandransh 3146
      result.success = self._handler.createUser(args.user)
3147
    except UserContextException, ucex:
3148
      result.ucex = ucex
3149
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3150
    result.write(oprot)
3151
    oprot.writeMessageEnd()
3152
    oprot.trans.flush()
3153
 
559 chandransh 3154
  def process_updateUser(self, seqid, iprot, oprot):
3155
    args = updateUser_args()
94 ashish 3156
    args.read(iprot)
3157
    iprot.readMessageEnd()
559 chandransh 3158
    result = updateUser_result()
94 ashish 3159
    try:
559 chandransh 3160
      result.success = self._handler.updateUser(args.user)
3161
    except UserContextException, ucex:
3162
      result.ucex = ucex
3163
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3164
    result.write(oprot)
3165
    oprot.writeMessageEnd()
3166
    oprot.trans.flush()
3167
 
559 chandransh 3168
  def process_deleteUser(self, seqid, iprot, oprot):
3169
    args = deleteUser_args()
94 ashish 3170
    args.read(iprot)
3171
    iprot.readMessageEnd()
559 chandransh 3172
    result = deleteUser_result()
94 ashish 3173
    try:
559 chandransh 3174
      result.success = self._handler.deleteUser(args.userId)
3175
    except UserContextException, ucex:
3176
      result.ucex = ucex
3177
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3178
    result.write(oprot)
3179
    oprot.writeMessageEnd()
3180
    oprot.trans.flush()
3181
 
559 chandransh 3182
  def process_getUserState(self, seqid, iprot, oprot):
3183
    args = getUserState_args()
94 ashish 3184
    args.read(iprot)
3185
    iprot.readMessageEnd()
559 chandransh 3186
    result = getUserState_result()
94 ashish 3187
    try:
559 chandransh 3188
      result.success = self._handler.getUserState(args.userId)
3189
    except UserContextException, ucex:
3190
      result.ucex = ucex
3191
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3192
    result.write(oprot)
3193
    oprot.writeMessageEnd()
3194
    oprot.trans.flush()
3195
 
122 ashish 3196
  def process_authenticateUser(self, seqid, iprot, oprot):
3197
    args = authenticateUser_args()
3198
    args.read(iprot)
3199
    iprot.readMessageEnd()
3200
    result = authenticateUser_result()
3201
    try:
559 chandransh 3202
      result.success = self._handler.authenticateUser(args.email, args.password)
3203
    except AuthenticationException, auex:
3204
      result.auex = auex
122 ashish 3205
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3206
    result.write(oprot)
3207
    oprot.writeMessageEnd()
3208
    oprot.trans.flush()
3209
 
94 ashish 3210
  def process_userExists(self, seqid, iprot, oprot):
3211
    args = userExists_args()
3212
    args.read(iprot)
3213
    iprot.readMessageEnd()
3214
    result = userExists_result()
3215
    try:
3216
      result.success = self._handler.userExists(args.email)
3217
    except UserContextException, ucx:
3218
      result.ucx = ucx
3219
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3220
    result.write(oprot)
3221
    oprot.writeMessageEnd()
3222
    oprot.trans.flush()
3223
 
3224
  def process_addAddressForUser(self, seqid, iprot, oprot):
3225
    args = addAddressForUser_args()
3226
    args.read(iprot)
3227
    iprot.readMessageEnd()
3228
    result = addAddressForUser_result()
3229
    try:
567 rajveer 3230
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3231
    except UserContextException, ucx:
3232
      result.ucx = ucx
3233
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3234
    result.write(oprot)
3235
    oprot.writeMessageEnd()
3236
    oprot.trans.flush()
3237
 
3238
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3239
    args = removeAddressForUser_args()
3240
    args.read(iprot)
3241
    iprot.readMessageEnd()
3242
    result = removeAddressForUser_result()
3243
    try:
3244
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3245
    except UserContextException, ucx:
3246
      result.ucx = ucx
3247
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3248
    result.write(oprot)
3249
    oprot.writeMessageEnd()
3250
    oprot.trans.flush()
3251
 
3252
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3253
    args = setUserAsLoggedIn_args()
3254
    args.read(iprot)
3255
    iprot.readMessageEnd()
3256
    result = setUserAsLoggedIn_result()
3257
    try:
3258
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3259
    except UserContextException, ucx:
3260
      result.ucx = ucx
3261
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3262
    result.write(oprot)
3263
    oprot.writeMessageEnd()
3264
    oprot.trans.flush()
3265
 
3266
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3267
    args = setUserAsLoggedOut_args()
3268
    args.read(iprot)
3269
    iprot.readMessageEnd()
3270
    result = setUserAsLoggedOut_result()
3271
    try:
3272
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3273
    except UserContextException, ucx:
3274
      result.ucx = ucx
3275
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3276
    result.write(oprot)
3277
    oprot.writeMessageEnd()
3278
    oprot.trans.flush()
3279
 
504 rajveer 3280
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3281
    args = setDefaultAddress_args()
3282
    args.read(iprot)
3283
    iprot.readMessageEnd()
3284
    result = setDefaultAddress_result()
3285
    try:
3286
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3287
    except UserContextException, ucx:
3288
      result.ucx = ucx
3289
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3290
    result.write(oprot)
3291
    oprot.writeMessageEnd()
3292
    oprot.trans.flush()
3293
 
94 ashish 3294
  def process_updatePassword(self, seqid, iprot, oprot):
3295
    args = updatePassword_args()
3296
    args.read(iprot)
3297
    iprot.readMessageEnd()
3298
    result = updatePassword_result()
3299
    try:
594 rajveer 3300
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3301
    except UserContextException, ucx:
3302
      result.ucx = ucx
3303
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3304
    result.write(oprot)
3305
    oprot.writeMessageEnd()
3306
    oprot.trans.flush()
3307
 
581 rajveer 3308
  def process_forgotPassword(self, seqid, iprot, oprot):
3309
    args = forgotPassword_args()
3310
    args.read(iprot)
3311
    iprot.readMessageEnd()
3312
    result = forgotPassword_result()
3313
    try:
884 rajveer 3314
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3315
    except UserContextException, ucx:
3316
      result.ucx = ucx
3317
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3318
    result.write(oprot)
3319
    oprot.writeMessageEnd()
3320
    oprot.trans.flush()
3321
 
594 rajveer 3322
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3323
    args = getAllAddressesForUser_args()
3324
    args.read(iprot)
3325
    iprot.readMessageEnd()
3326
    result = getAllAddressesForUser_result()
3327
    try:
3328
      result.success = self._handler.getAllAddressesForUser(args.userId)
3329
    except UserContextException, ucx:
3330
      result.ucx = ucx
3331
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3332
    result.write(oprot)
3333
    oprot.writeMessageEnd()
3334
    oprot.trans.flush()
3335
 
1894 vikas 3336
  def process_getAddressById(self, seqid, iprot, oprot):
3337
    args = getAddressById_args()
3338
    args.read(iprot)
3339
    iprot.readMessageEnd()
3340
    result = getAddressById_result()
3341
    try:
3342
      result.success = self._handler.getAddressById(args.addressId)
3343
    except UserContextException, ucx:
3344
      result.ucx = ucx
3345
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3346
    result.write(oprot)
3347
    oprot.writeMessageEnd()
3348
    oprot.trans.flush()
3349
 
594 rajveer 3350
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3351
    args = getDefaultAddressId_args()
3352
    args.read(iprot)
3353
    iprot.readMessageEnd()
3354
    result = getDefaultAddressId_result()
3355
    try:
3356
      result.success = self._handler.getDefaultAddressId(args.userId)
3357
    except UserContextException, ucx:
3358
      result.ucx = ucx
3359
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3360
    result.write(oprot)
3361
    oprot.writeMessageEnd()
3362
    oprot.trans.flush()
3363
 
785 rajveer 3364
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3365
    args = getDefaultPincode_args()
3366
    args.read(iprot)
3367
    iprot.readMessageEnd()
3368
    result = getDefaultPincode_result()
3369
    try:
3370
      result.success = self._handler.getDefaultPincode(args.userId)
3371
    except UserContextException, ucx:
3372
      result.ucx = ucx
3373
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3374
    result.write(oprot)
3375
    oprot.writeMessageEnd()
3376
    oprot.trans.flush()
3377
 
1274 varun.gupt 3378
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3379
    args = saveUserCommunication_args()
3380
    args.read(iprot)
3381
    iprot.readMessageEnd()
3382
    result = saveUserCommunication_result()
3383
    try:
3384
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3385
    except UserCommunicationException, ucx:
3386
      result.ucx = ucx
3387
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3388
    result.write(oprot)
3389
    oprot.writeMessageEnd()
3390
    oprot.trans.flush()
3391
 
1590 varun.gupt 3392
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3393
    args = getUserCommunicationById_args()
3394
    args.read(iprot)
3395
    iprot.readMessageEnd()
3396
    result = getUserCommunicationById_result()
3397
    try:
3398
      result.success = self._handler.getUserCommunicationById(args.id)
3399
    except UserCommunicationException, ucx:
3400
      result.ucx = ucx
3401
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3402
    result.write(oprot)
3403
    oprot.writeMessageEnd()
3404
    oprot.trans.flush()
3405
 
3406
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3407
    args = getUserCommunicationByUser_args()
3408
    args.read(iprot)
3409
    iprot.readMessageEnd()
3410
    result = getUserCommunicationByUser_result()
3411
    try:
3412
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3413
    except UserCommunicationException, ucx:
3414
      result.ucx = ucx
3415
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3416
    result.write(oprot)
3417
    oprot.writeMessageEnd()
3418
    oprot.trans.flush()
3419
 
3420
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3421
    args = getAllUserCommunications_args()
3422
    args.read(iprot)
3423
    iprot.readMessageEnd()
3424
    result = getAllUserCommunications_result()
3425
    try:
3426
      result.success = self._handler.getAllUserCommunications()
3427
    except UserCommunicationException, ucx:
3428
      result.ucx = ucx
3429
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3430
    result.write(oprot)
3431
    oprot.writeMessageEnd()
3432
    oprot.trans.flush()
3433
 
1845 vikas 3434
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3435
    args = createMasterAffiliate_args()
3436
    args.read(iprot)
3437
    iprot.readMessageEnd()
3438
    result = createMasterAffiliate_result()
3439
    try:
1859 vikas 3440
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3441
    except UserAffiliateException, utx:
1845 vikas 3442
      result.utx = utx
3443
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3444
    result.write(oprot)
3445
    oprot.writeMessageEnd()
3446
    oprot.trans.flush()
3447
 
1899 vikas 3448
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3449
    args = getAllMasterAffiliates_args()
3450
    args.read(iprot)
3451
    iprot.readMessageEnd()
3452
    result = getAllMasterAffiliates_result()
3453
    try:
3454
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3455
    except UserAffiliateException, utx:
1899 vikas 3456
      result.utx = utx
3457
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3458
    result.write(oprot)
3459
    oprot.writeMessageEnd()
3460
    oprot.trans.flush()
3461
 
1845 vikas 3462
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3463
    args = getMasterAffiliateById_args()
3464
    args.read(iprot)
3465
    iprot.readMessageEnd()
3466
    result = getMasterAffiliateById_result()
3467
    try:
3468
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3469
    except UserAffiliateException, utx:
1845 vikas 3470
      result.utx = utx
3471
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3472
    result.write(oprot)
3473
    oprot.writeMessageEnd()
3474
    oprot.trans.flush()
3475
 
3476
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3477
    args = getMasterAffiliateByName_args()
3478
    args.read(iprot)
3479
    iprot.readMessageEnd()
3480
    result = getMasterAffiliateByName_result()
3481
    try:
3482
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3483
    except UserAffiliateException, utx:
1845 vikas 3484
      result.utx = utx
3485
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3486
    result.write(oprot)
3487
    oprot.writeMessageEnd()
3488
    oprot.trans.flush()
3489
 
3490
  def process_createAffiliate(self, seqid, iprot, oprot):
3491
    args = createAffiliate_args()
3492
    args.read(iprot)
3493
    iprot.readMessageEnd()
3494
    result = createAffiliate_result()
3495
    try:
1859 vikas 3496
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3497
    except UserAffiliateException, utx:
1845 vikas 3498
      result.utx = utx
3499
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3500
    result.write(oprot)
3501
    oprot.writeMessageEnd()
3502
    oprot.trans.flush()
3503
 
3504
  def process_getAffiliateById(self, seqid, iprot, oprot):
3505
    args = getAffiliateById_args()
3506
    args.read(iprot)
3507
    iprot.readMessageEnd()
3508
    result = getAffiliateById_result()
3509
    try:
3510
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3511
    except UserAffiliateException, utx:
1845 vikas 3512
      result.utx = utx
3513
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3514
    result.write(oprot)
3515
    oprot.writeMessageEnd()
3516
    oprot.trans.flush()
3517
 
3518
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3519
    args = getAffiliateByName_args()
3520
    args.read(iprot)
3521
    iprot.readMessageEnd()
3522
    result = getAffiliateByName_result()
3523
    try:
3524
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3525
    except UserAffiliateException, utx:
1845 vikas 3526
      result.utx = utx
3527
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3528
    result.write(oprot)
3529
    oprot.writeMessageEnd()
3530
    oprot.trans.flush()
3531
 
3532
  def process_getTrackerById(self, seqid, iprot, oprot):
3533
    args = getTrackerById_args()
3534
    args.read(iprot)
3535
    iprot.readMessageEnd()
3536
    result = getTrackerById_result()
3537
    try:
1996 vikas 3538
      result.success = self._handler.getTrackerById(args.id)
3539
    except UserAffiliateException, utx:
1845 vikas 3540
      result.utx = utx
3541
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3542
    result.write(oprot)
3543
    oprot.writeMessageEnd()
3544
    oprot.trans.flush()
3545
 
1996 vikas 3546
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3547
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3548
    args.read(iprot)
3549
    iprot.readMessageEnd()
1996 vikas 3550
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3551
    try:
1996 vikas 3552
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3553
    except UserAffiliateException, utx:
1845 vikas 3554
      result.utx = utx
1996 vikas 3555
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3556
    result.write(oprot)
3557
    oprot.writeMessageEnd()
3558
    oprot.trans.flush()
3559
 
3560
  def process_addTrackLog(self, seqid, iprot, oprot):
3561
    args = addTrackLog_args()
3562
    args.read(iprot)
3563
    iprot.readMessageEnd()
3564
    result = addTrackLog_result()
3565
    try:
1996 vikas 3566
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3567
    except UserAffiliateException, utx:
1845 vikas 3568
      result.utx = utx
3569
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3570
    result.write(oprot)
3571
    oprot.writeMessageEnd()
3572
    oprot.trans.flush()
3573
 
3574
  def process_getTrackLogById(self, seqid, iprot, oprot):
3575
    args = getTrackLogById_args()
3576
    args.read(iprot)
3577
    iprot.readMessageEnd()
3578
    result = getTrackLogById_result()
3579
    try:
3580
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3581
    except UserAffiliateException, utx:
1845 vikas 3582
      result.utx = utx
3583
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3584
    result.write(oprot)
3585
    oprot.writeMessageEnd()
3586
    oprot.trans.flush()
3587
 
1996 vikas 3588
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3589
    args = getTrackLogsByAffiliate_args()
1845 vikas 3590
    args.read(iprot)
3591
    iprot.readMessageEnd()
1996 vikas 3592
    result = getTrackLogsByAffiliate_result()
1845 vikas 3593
    try:
3293 vikas 3594
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3595
    except UserAffiliateException, utx:
1845 vikas 3596
      result.utx = utx
1996 vikas 3597
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3598
    result.write(oprot)
3599
    oprot.writeMessageEnd()
3600
    oprot.trans.flush()
3601
 
3602
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3603
    args = getTrackLogsByUser_args()
3604
    args.read(iprot)
3605
    iprot.readMessageEnd()
3606
    result = getTrackLogsByUser_result()
3607
    try:
3608
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3609
    except UserAffiliateException, utx:
1845 vikas 3610
      result.utx = utx
3611
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3612
    result.write(oprot)
3613
    oprot.writeMessageEnd()
3614
    oprot.trans.flush()
3615
 
3616
  def process_getTrackLogs(self, seqid, iprot, oprot):
3617
    args = getTrackLogs_args()
3618
    args.read(iprot)
3619
    iprot.readMessageEnd()
3620
    result = getTrackLogs_result()
3621
    try:
1996 vikas 3622
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3623
    except UserAffiliateException, utx:
1845 vikas 3624
      result.utx = utx
3625
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3626
    result.write(oprot)
3627
    oprot.writeMessageEnd()
3628
    oprot.trans.flush()
3629
 
559 chandransh 3630
  def process_createCart(self, seqid, iprot, oprot):
3631
    args = createCart_args()
94 ashish 3632
    args.read(iprot)
3633
    iprot.readMessageEnd()
559 chandransh 3634
    result = createCart_result()
94 ashish 3635
    try:
559 chandransh 3636
      result.success = self._handler.createCart(args.userId)
3637
    except ShoppingCartException, scx:
3638
      result.scx = scx
3639
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3640
    result.write(oprot)
3641
    oprot.writeMessageEnd()
3642
    oprot.trans.flush()
3643
 
559 chandransh 3644
  def process_getCurrentCart(self, seqid, iprot, oprot):
3645
    args = getCurrentCart_args()
94 ashish 3646
    args.read(iprot)
3647
    iprot.readMessageEnd()
559 chandransh 3648
    result = getCurrentCart_result()
94 ashish 3649
    try:
559 chandransh 3650
      result.success = self._handler.getCurrentCart(args.userId)
3651
    except ShoppingCartException, scx:
3652
      result.scx = scx
3653
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3654
    result.write(oprot)
3655
    oprot.writeMessageEnd()
3656
    oprot.trans.flush()
3657
 
559 chandransh 3658
  def process_getCart(self, seqid, iprot, oprot):
3659
    args = getCart_args()
94 ashish 3660
    args.read(iprot)
3661
    iprot.readMessageEnd()
559 chandransh 3662
    result = getCart_result()
94 ashish 3663
    try:
559 chandransh 3664
      result.success = self._handler.getCart(args.cartId)
3665
    except ShoppingCartException, scx:
3666
      result.scx = scx
3667
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3668
    result.write(oprot)
3669
    oprot.writeMessageEnd()
3670
    oprot.trans.flush()
3671
 
559 chandransh 3672
  def process_getCartsForUser(self, seqid, iprot, oprot):
3673
    args = getCartsForUser_args()
94 ashish 3674
    args.read(iprot)
3675
    iprot.readMessageEnd()
559 chandransh 3676
    result = getCartsForUser_result()
94 ashish 3677
    try:
559 chandransh 3678
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3679
    except ShoppingCartException, scx:
3680
      result.scx = scx
3681
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3682
    result.write(oprot)
3683
    oprot.writeMessageEnd()
3684
    oprot.trans.flush()
3685
 
559 chandransh 3686
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3687
    args = getCartsByStatus_args()
94 ashish 3688
    args.read(iprot)
3689
    iprot.readMessageEnd()
559 chandransh 3690
    result = getCartsByStatus_result()
94 ashish 3691
    try:
559 chandransh 3692
      result.success = self._handler.getCartsByStatus(args.status)
3693
    except ShoppingCartException, scx:
3694
      result.scx = scx
3695
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3696
    result.write(oprot)
3697
    oprot.writeMessageEnd()
3698
    oprot.trans.flush()
3699
 
559 chandransh 3700
  def process_getCartsByTime(self, seqid, iprot, oprot):
3701
    args = getCartsByTime_args()
94 ashish 3702
    args.read(iprot)
3703
    iprot.readMessageEnd()
559 chandransh 3704
    result = getCartsByTime_result()
94 ashish 3705
    try:
559 chandransh 3706
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3707
    except ShoppingCartException, scx:
3708
      result.scx = scx
3709
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3710
    result.write(oprot)
3711
    oprot.writeMessageEnd()
3712
    oprot.trans.flush()
3713
 
559 chandransh 3714
  def process_changeCartStatus(self, seqid, iprot, oprot):
3715
    args = changeCartStatus_args()
130 ashish 3716
    args.read(iprot)
3717
    iprot.readMessageEnd()
559 chandransh 3718
    result = changeCartStatus_result()
130 ashish 3719
    try:
559 chandransh 3720
      self._handler.changeCartStatus(args.cartId, args.status)
3721
    except ShoppingCartException, scx:
3722
      result.scx = scx
3723
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3724
    result.write(oprot)
3725
    oprot.writeMessageEnd()
3726
    oprot.trans.flush()
94 ashish 3727
 
559 chandransh 3728
  def process_addItemToCart(self, seqid, iprot, oprot):
3729
    args = addItemToCart_args()
130 ashish 3730
    args.read(iprot)
3731
    iprot.readMessageEnd()
559 chandransh 3732
    result = addItemToCart_result()
130 ashish 3733
    try:
3557 rajveer 3734
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3735
    except ShoppingCartException, scx:
3736
      result.scx = scx
3737
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3738
    result.write(oprot)
3739
    oprot.writeMessageEnd()
3740
    oprot.trans.flush()
3741
 
559 chandransh 3742
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3743
    args = deleteItemFromCart_args()
3744
    args.read(iprot)
3745
    iprot.readMessageEnd()
3746
    result = deleteItemFromCart_result()
3747
    try:
3748
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3749
    except ShoppingCartException, scx:
3750
      result.scx = scx
3751
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3752
    result.write(oprot)
3753
    oprot.writeMessageEnd()
3754
    oprot.trans.flush()
130 ashish 3755
 
559 chandransh 3756
  def process_changeQuantity(self, seqid, iprot, oprot):
3757
    args = changeQuantity_args()
3758
    args.read(iprot)
3759
    iprot.readMessageEnd()
3760
    result = changeQuantity_result()
3761
    try:
3762
      self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
3763
    except ShoppingCartException, scx:
3764
      result.scx = scx
3765
    oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
3766
    result.write(oprot)
3767
    oprot.writeMessageEnd()
3768
    oprot.trans.flush()
3769
 
3770
  def process_changeItemStatus(self, seqid, iprot, oprot):
3771
    args = changeItemStatus_args()
3772
    args.read(iprot)
3773
    iprot.readMessageEnd()
3774
    result = changeItemStatus_result()
3775
    try:
3776
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3777
    except ShoppingCartException, scx:
3778
      result.scx = scx
3779
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3780
    result.write(oprot)
3781
    oprot.writeMessageEnd()
3782
    oprot.trans.flush()
3783
 
3784
  def process_addAddressToCart(self, seqid, iprot, oprot):
3785
    args = addAddressToCart_args()
3786
    args.read(iprot)
3787
    iprot.readMessageEnd()
3788
    result = addAddressToCart_result()
575 chandransh 3789
    try:
3790
      self._handler.addAddressToCart(args.cartId, args.addressId)
3791
    except ShoppingCartException, scx:
3792
      result.scx = scx
559 chandransh 3793
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3794
    result.write(oprot)
3795
    oprot.writeMessageEnd()
3796
    oprot.trans.flush()
3797
 
1976 varun.gupt 3798
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3799
    args = applyCouponToCart_args()
3800
    args.read(iprot)
3801
    iprot.readMessageEnd()
3802
    result = applyCouponToCart_result()
3803
    try:
3804
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3805
    except ShoppingCartException, scx:
3806
      result.scx = scx
3807
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3808
    result.write(oprot)
3809
    oprot.writeMessageEnd()
3810
    oprot.trans.flush()
3811
 
3812
  def process_removeCoupon(self, seqid, iprot, oprot):
3813
    args = removeCoupon_args()
3814
    args.read(iprot)
3815
    iprot.readMessageEnd()
3816
    result = removeCoupon_result()
3817
    try:
3818
      self._handler.removeCoupon(args.cartId)
3819
    except ShoppingCartException, scx:
3820
      result.scx = scx
3821
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3822
    result.write(oprot)
3823
    oprot.writeMessageEnd()
3824
    oprot.trans.flush()
3825
 
3554 varun.gupt 3826
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3827
    args = deleteDiscountsFromCart_args()
3828
    args.read(iprot)
3829
    iprot.readMessageEnd()
3830
    result = deleteDiscountsFromCart_result()
3831
    try:
3832
      self._handler.deleteDiscountsFromCart(args.cartId)
3833
    except ShoppingCartException, scx:
3834
      result.scx = scx
3835
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3836
    result.write(oprot)
3837
    oprot.writeMessageEnd()
3838
    oprot.trans.flush()
3839
 
3840
  def process_saveDiscounts(self, seqid, iprot, oprot):
3841
    args = saveDiscounts_args()
3842
    args.read(iprot)
3843
    iprot.readMessageEnd()
3844
    result = saveDiscounts_result()
3845
    try:
3846
      self._handler.saveDiscounts(args.discounts)
3847
    except ShoppingCartException, scx:
3848
      result.scx = scx
3849
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3850
    result.write(oprot)
3851
    oprot.writeMessageEnd()
3852
    oprot.trans.flush()
3853
 
690 chandransh 3854
  def process_createOrders(self, seqid, iprot, oprot):
3855
    args = createOrders_args()
559 chandransh 3856
    args.read(iprot)
3857
    iprot.readMessageEnd()
690 chandransh 3858
    result = createOrders_result()
559 chandransh 3859
    try:
2815 vikas 3860
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime)
559 chandransh 3861
    except ShoppingCartException, scx:
3862
      result.scx = scx
690 chandransh 3863
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3864
    result.write(oprot)
3865
    oprot.writeMessageEnd()
3866
    oprot.trans.flush()
3867
 
3868
  def process_validateCart(self, seqid, iprot, oprot):
3869
    args = validateCart_args()
3870
    args.read(iprot)
3871
    iprot.readMessageEnd()
3872
    result = validateCart_result()
575 chandransh 3873
    try:
3557 rajveer 3874
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3875
    except ShoppingCartException, scex:
3876
      result.scex = scex
559 chandransh 3877
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3878
    result.write(oprot)
3879
    oprot.writeMessageEnd()
3880
    oprot.trans.flush()
3881
 
690 chandransh 3882
  def process_mergeCart(self, seqid, iprot, oprot):
3883
    args = mergeCart_args()
575 chandransh 3884
    args.read(iprot)
3885
    iprot.readMessageEnd()
690 chandransh 3886
    result = mergeCart_result()
3887
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3888
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3889
    result.write(oprot)
3890
    oprot.writeMessageEnd()
3891
    oprot.trans.flush()
3892
 
3893
  def process_checkOut(self, seqid, iprot, oprot):
3894
    args = checkOut_args()
3895
    args.read(iprot)
3896
    iprot.readMessageEnd()
3897
    result = checkOut_result()
575 chandransh 3898
    try:
690 chandransh 3899
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3900
    except ShoppingCartException, scex:
3901
      result.scex = scex
690 chandransh 3902
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3903
    result.write(oprot)
3904
    oprot.writeMessageEnd()
3905
    oprot.trans.flush()
3906
 
690 chandransh 3907
  def process_resetCart(self, seqid, iprot, oprot):
3908
    args = resetCart_args()
559 chandransh 3909
    args.read(iprot)
3910
    iprot.readMessageEnd()
690 chandransh 3911
    result = resetCart_result()
3912
    try:
3913
      result.success = self._handler.resetCart(args.cartId, args.items)
3914
    except ShoppingCartException, scex:
3915
      result.scex = scex
3916
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3917
    result.write(oprot)
3918
    oprot.writeMessageEnd()
3919
    oprot.trans.flush()
3920
 
2981 rajveer 3921
  def process_getUserCount(self, seqid, iprot, oprot):
3922
    args = getUserCount_args()
559 chandransh 3923
    args.read(iprot)
3924
    iprot.readMessageEnd()
2981 rajveer 3925
    result = getUserCount_result()
3926
    result.success = self._handler.getUserCount(args.userType)
3927
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3928
    result.write(oprot)
3929
    oprot.writeMessageEnd()
3930
    oprot.trans.flush()
3931
 
2981 rajveer 3932
  def process_getAllUsers(self, seqid, iprot, oprot):
3933
    args = getAllUsers_args()
559 chandransh 3934
    args.read(iprot)
3935
    iprot.readMessageEnd()
2981 rajveer 3936
    result = getAllUsers_result()
3937
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3938
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3939
    result.write(oprot)
3940
    oprot.writeMessageEnd()
3941
    oprot.trans.flush()
3942
 
2981 rajveer 3943
  def process_putUserNote(self, seqid, iprot, oprot):
3944
    args = putUserNote_args()
559 chandransh 3945
    args.read(iprot)
3946
    iprot.readMessageEnd()
2981 rajveer 3947
    result = putUserNote_result()
3948
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3949
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3950
    result.write(oprot)
3951
    oprot.writeMessageEnd()
3952
    oprot.trans.flush()
3953
 
2981 rajveer 3954
  def process_getUserNotes(self, seqid, iprot, oprot):
3955
    args = getUserNotes_args()
559 chandransh 3956
    args.read(iprot)
3957
    iprot.readMessageEnd()
2981 rajveer 3958
    result = getUserNotes_result()
3959
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3960
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3961
    result.write(oprot)
3962
    oprot.writeMessageEnd()
3963
    oprot.trans.flush()
3964
 
2981 rajveer 3965
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3966
    args = getMyResearchItems_args()
559 chandransh 3967
    args.read(iprot)
3968
    iprot.readMessageEnd()
2981 rajveer 3969
    result = getMyResearchItems_result()
559 chandransh 3970
    try:
2981 rajveer 3971
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3972
    except WidgetException, scx:
3973
      result.scx = scx
2981 rajveer 3974
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3975
    result.write(oprot)
3976
    oprot.writeMessageEnd()
3977
    oprot.trans.flush()
3978
 
2981 rajveer 3979
  def process_updateMyResearch(self, seqid, iprot, oprot):
3980
    args = updateMyResearch_args()
772 rajveer 3981
    args.read(iprot)
3982
    iprot.readMessageEnd()
2981 rajveer 3983
    result = updateMyResearch_result()
3984
    try:
3985
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3986
    except WidgetException, scx:
3987
      result.scx = scx
3988
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3989
    result.write(oprot)
3990
    oprot.writeMessageEnd()
3991
    oprot.trans.flush()
559 chandransh 3992
 
2981 rajveer 3993
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3994
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3995
    args.read(iprot)
3996
    iprot.readMessageEnd()
2981 rajveer 3997
    result = deleteItemFromMyResearch_result()
3998
    try:
3999
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
4000
    except WidgetException, scx:
4001
      result.scx = scx
4002
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 4003
    result.write(oprot)
4004
    oprot.writeMessageEnd()
4005
    oprot.trans.flush()
772 rajveer 4006
 
2981 rajveer 4007
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
4008
    args = getBrowseHistoryItems_args()
1673 ankur.sing 4009
    args.read(iprot)
4010
    iprot.readMessageEnd()
2981 rajveer 4011
    result = getBrowseHistoryItems_result()
4012
    try:
4013
      result.success = self._handler.getBrowseHistoryItems(args.userId)
4014
    except WidgetException, scx:
4015
      result.scx = scx
4016
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 4017
    result.write(oprot)
4018
    oprot.writeMessageEnd()
4019
    oprot.trans.flush()
1596 ankur.sing 4020
 
2981 rajveer 4021
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
4022
    args = updateBrowseHistory_args()
2642 varun.gupt 4023
    args.read(iprot)
4024
    iprot.readMessageEnd()
2981 rajveer 4025
    result = updateBrowseHistory_result()
4026
    self._handler.updateBrowseHistory(args.userId, args.itemId)
4027
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 4028
    result.write(oprot)
4029
    oprot.writeMessageEnd()
4030
    oprot.trans.flush()
1673 ankur.sing 4031
 
3385 varun.gupt 4032
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
4033
    args = getCartsWithCouponCount_args()
4034
    args.read(iprot)
4035
    iprot.readMessageEnd()
4036
    result = getCartsWithCouponCount_result()
4037
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
4038
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
4039
    result.write(oprot)
4040
    oprot.writeMessageEnd()
4041
    oprot.trans.flush()
2642 varun.gupt 4042
 
3499 mandeep.dh 4043
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
4044
    args = increaseTrustLevel_args()
4045
    args.read(iprot)
4046
    iprot.readMessageEnd()
4047
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 4048
    return
3385 varun.gupt 4049
 
3499 mandeep.dh 4050
 
94 ashish 4051
# HELPER FUNCTIONS AND STRUCTURES
4052
 
559 chandransh 4053
class createAnonymousUser_args:
94 ashish 4054
  """
4055
  Attributes:
559 chandransh 4056
   - jsessionId
94 ashish 4057
  """
4058
 
4059
  thrift_spec = (
4060
    None, # 0
559 chandransh 4061
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4062
  )
4063
 
559 chandransh 4064
  def __init__(self, jsessionId=None,):
4065
    self.jsessionId = jsessionId
94 ashish 4066
 
4067
  def read(self, iprot):
4068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4070
      return
4071
    iprot.readStructBegin()
4072
    while True:
4073
      (fname, ftype, fid) = iprot.readFieldBegin()
4074
      if ftype == TType.STOP:
4075
        break
4076
      if fid == 1:
559 chandransh 4077
        if ftype == TType.STRING:
4078
          self.jsessionId = iprot.readString();
94 ashish 4079
        else:
4080
          iprot.skip(ftype)
4081
      else:
4082
        iprot.skip(ftype)
4083
      iprot.readFieldEnd()
4084
    iprot.readStructEnd()
4085
 
4086
  def write(self, oprot):
4087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4089
      return
559 chandransh 4090
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4091
    if self.jsessionId is not None:
559 chandransh 4092
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4093
      oprot.writeString(self.jsessionId)
94 ashish 4094
      oprot.writeFieldEnd()
4095
    oprot.writeFieldStop()
4096
    oprot.writeStructEnd()
4097
 
3431 rajveer 4098
  def validate(self):
4099
    return
4100
 
4101
 
94 ashish 4102
  def __repr__(self):
4103
    L = ['%s=%r' % (key, value)
4104
      for key, value in self.__dict__.iteritems()]
4105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4106
 
4107
  def __eq__(self, other):
4108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4109
 
4110
  def __ne__(self, other):
4111
    return not (self == other)
4112
 
559 chandransh 4113
class createAnonymousUser_result:
94 ashish 4114
  """
4115
  Attributes:
4116
   - success
559 chandransh 4117
   - ucex
94 ashish 4118
  """
4119
 
4120
  thrift_spec = (
559 chandransh 4121
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4122
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4123
  )
4124
 
559 chandransh 4125
  def __init__(self, success=None, ucex=None,):
94 ashish 4126
    self.success = success
559 chandransh 4127
    self.ucex = ucex
94 ashish 4128
 
4129
  def read(self, iprot):
4130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4132
      return
4133
    iprot.readStructBegin()
4134
    while True:
4135
      (fname, ftype, fid) = iprot.readFieldBegin()
4136
      if ftype == TType.STOP:
4137
        break
4138
      if fid == 0:
4139
        if ftype == TType.STRUCT:
559 chandransh 4140
          self.success = User()
94 ashish 4141
          self.success.read(iprot)
4142
        else:
4143
          iprot.skip(ftype)
4144
      elif fid == 1:
4145
        if ftype == TType.STRUCT:
559 chandransh 4146
          self.ucex = UserContextException()
4147
          self.ucex.read(iprot)
94 ashish 4148
        else:
4149
          iprot.skip(ftype)
4150
      else:
4151
        iprot.skip(ftype)
4152
      iprot.readFieldEnd()
4153
    iprot.readStructEnd()
4154
 
4155
  def write(self, oprot):
4156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4158
      return
559 chandransh 4159
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4160
    if self.success is not None:
94 ashish 4161
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4162
      self.success.write(oprot)
4163
      oprot.writeFieldEnd()
3431 rajveer 4164
    if self.ucex is not None:
559 chandransh 4165
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4166
      self.ucex.write(oprot)
94 ashish 4167
      oprot.writeFieldEnd()
4168
    oprot.writeFieldStop()
4169
    oprot.writeStructEnd()
4170
 
3431 rajveer 4171
  def validate(self):
4172
    return
4173
 
4174
 
94 ashish 4175
  def __repr__(self):
4176
    L = ['%s=%r' % (key, value)
4177
      for key, value in self.__dict__.iteritems()]
4178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4179
 
4180
  def __eq__(self, other):
4181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4182
 
4183
  def __ne__(self, other):
4184
    return not (self == other)
4185
 
559 chandransh 4186
class getUserById_args:
94 ashish 4187
  """
4188
  Attributes:
4189
   - userId
4190
  """
4191
 
4192
  thrift_spec = (
4193
    None, # 0
4194
    (1, TType.I64, 'userId', None, None, ), # 1
4195
  )
4196
 
559 chandransh 4197
  def __init__(self, userId=None,):
94 ashish 4198
    self.userId = userId
4199
 
4200
  def read(self, iprot):
4201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4203
      return
4204
    iprot.readStructBegin()
4205
    while True:
4206
      (fname, ftype, fid) = iprot.readFieldBegin()
4207
      if ftype == TType.STOP:
4208
        break
4209
      if fid == 1:
4210
        if ftype == TType.I64:
4211
          self.userId = iprot.readI64();
4212
        else:
4213
          iprot.skip(ftype)
4214
      else:
4215
        iprot.skip(ftype)
4216
      iprot.readFieldEnd()
4217
    iprot.readStructEnd()
4218
 
4219
  def write(self, oprot):
4220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4222
      return
559 chandransh 4223
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4224
    if self.userId is not None:
94 ashish 4225
      oprot.writeFieldBegin('userId', TType.I64, 1)
4226
      oprot.writeI64(self.userId)
4227
      oprot.writeFieldEnd()
4228
    oprot.writeFieldStop()
4229
    oprot.writeStructEnd()
4230
 
3431 rajveer 4231
  def validate(self):
4232
    return
4233
 
4234
 
94 ashish 4235
  def __repr__(self):
4236
    L = ['%s=%r' % (key, value)
4237
      for key, value in self.__dict__.iteritems()]
4238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4239
 
4240
  def __eq__(self, other):
4241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4242
 
4243
  def __ne__(self, other):
4244
    return not (self == other)
4245
 
559 chandransh 4246
class getUserById_result:
94 ashish 4247
  """
4248
  Attributes:
4249
   - success
559 chandransh 4250
   - ucex
94 ashish 4251
  """
4252
 
4253
  thrift_spec = (
559 chandransh 4254
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4255
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4256
  )
4257
 
559 chandransh 4258
  def __init__(self, success=None, ucex=None,):
94 ashish 4259
    self.success = success
559 chandransh 4260
    self.ucex = ucex
94 ashish 4261
 
4262
  def read(self, iprot):
4263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4265
      return
4266
    iprot.readStructBegin()
4267
    while True:
4268
      (fname, ftype, fid) = iprot.readFieldBegin()
4269
      if ftype == TType.STOP:
4270
        break
4271
      if fid == 0:
4272
        if ftype == TType.STRUCT:
559 chandransh 4273
          self.success = User()
94 ashish 4274
          self.success.read(iprot)
4275
        else:
4276
          iprot.skip(ftype)
4277
      elif fid == 1:
4278
        if ftype == TType.STRUCT:
559 chandransh 4279
          self.ucex = UserContextException()
4280
          self.ucex.read(iprot)
94 ashish 4281
        else:
4282
          iprot.skip(ftype)
4283
      else:
4284
        iprot.skip(ftype)
4285
      iprot.readFieldEnd()
4286
    iprot.readStructEnd()
4287
 
4288
  def write(self, oprot):
4289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4291
      return
559 chandransh 4292
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4293
    if self.success is not None:
94 ashish 4294
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4295
      self.success.write(oprot)
4296
      oprot.writeFieldEnd()
3431 rajveer 4297
    if self.ucex is not None:
559 chandransh 4298
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4299
      self.ucex.write(oprot)
94 ashish 4300
      oprot.writeFieldEnd()
4301
    oprot.writeFieldStop()
4302
    oprot.writeStructEnd()
4303
 
3431 rajveer 4304
  def validate(self):
4305
    return
4306
 
4307
 
94 ashish 4308
  def __repr__(self):
4309
    L = ['%s=%r' % (key, value)
4310
      for key, value in self.__dict__.iteritems()]
4311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4312
 
4313
  def __eq__(self, other):
4314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4315
 
4316
  def __ne__(self, other):
4317
    return not (self == other)
4318
 
1491 vikas 4319
class getUserByEmail_args:
4320
  """
4321
  Attributes:
4322
   - email
4323
  """
4324
 
4325
  thrift_spec = (
4326
    None, # 0
4327
    (1, TType.STRING, 'email', None, None, ), # 1
4328
  )
4329
 
4330
  def __init__(self, email=None,):
4331
    self.email = email
4332
 
4333
  def read(self, iprot):
4334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4336
      return
4337
    iprot.readStructBegin()
4338
    while True:
4339
      (fname, ftype, fid) = iprot.readFieldBegin()
4340
      if ftype == TType.STOP:
4341
        break
4342
      if fid == 1:
4343
        if ftype == TType.STRING:
4344
          self.email = iprot.readString();
4345
        else:
4346
          iprot.skip(ftype)
4347
      else:
4348
        iprot.skip(ftype)
4349
      iprot.readFieldEnd()
4350
    iprot.readStructEnd()
4351
 
4352
  def write(self, oprot):
4353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4355
      return
4356
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4357
    if self.email is not None:
1491 vikas 4358
      oprot.writeFieldBegin('email', TType.STRING, 1)
4359
      oprot.writeString(self.email)
4360
      oprot.writeFieldEnd()
4361
    oprot.writeFieldStop()
4362
    oprot.writeStructEnd()
4363
 
3431 rajveer 4364
  def validate(self):
4365
    return
4366
 
4367
 
1491 vikas 4368
  def __repr__(self):
4369
    L = ['%s=%r' % (key, value)
4370
      for key, value in self.__dict__.iteritems()]
4371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4372
 
4373
  def __eq__(self, other):
4374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4375
 
4376
  def __ne__(self, other):
4377
    return not (self == other)
4378
 
4379
class getUserByEmail_result:
4380
  """
4381
  Attributes:
4382
   - success
4383
   - ucex
4384
  """
4385
 
4386
  thrift_spec = (
4387
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4388
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4389
  )
4390
 
4391
  def __init__(self, success=None, ucex=None,):
4392
    self.success = success
4393
    self.ucex = ucex
4394
 
4395
  def read(self, iprot):
4396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4398
      return
4399
    iprot.readStructBegin()
4400
    while True:
4401
      (fname, ftype, fid) = iprot.readFieldBegin()
4402
      if ftype == TType.STOP:
4403
        break
4404
      if fid == 0:
4405
        if ftype == TType.STRUCT:
4406
          self.success = User()
4407
          self.success.read(iprot)
4408
        else:
4409
          iprot.skip(ftype)
4410
      elif fid == 1:
4411
        if ftype == TType.STRUCT:
4412
          self.ucex = UserContextException()
4413
          self.ucex.read(iprot)
4414
        else:
4415
          iprot.skip(ftype)
4416
      else:
4417
        iprot.skip(ftype)
4418
      iprot.readFieldEnd()
4419
    iprot.readStructEnd()
4420
 
4421
  def write(self, oprot):
4422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4424
      return
4425
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4426
    if self.success is not None:
1491 vikas 4427
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4428
      self.success.write(oprot)
4429
      oprot.writeFieldEnd()
3431 rajveer 4430
    if self.ucex is not None:
1491 vikas 4431
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4432
      self.ucex.write(oprot)
4433
      oprot.writeFieldEnd()
4434
    oprot.writeFieldStop()
4435
    oprot.writeStructEnd()
4436
 
3431 rajveer 4437
  def validate(self):
4438
    return
4439
 
4440
 
1491 vikas 4441
  def __repr__(self):
4442
    L = ['%s=%r' % (key, value)
4443
      for key, value in self.__dict__.iteritems()]
4444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4445
 
4446
  def __eq__(self, other):
4447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4448
 
4449
  def __ne__(self, other):
4450
    return not (self == other)
4451
 
3032 mandeep.dh 4452
class getUserByMobileNumber_args:
4453
  """
4454
  Attributes:
4455
   - mobileNumber
4456
  """
4457
 
4458
  thrift_spec = (
4459
    None, # 0
4460
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4461
  )
4462
 
4463
  def __init__(self, mobileNumber=None,):
4464
    self.mobileNumber = mobileNumber
4465
 
4466
  def read(self, iprot):
4467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4469
      return
4470
    iprot.readStructBegin()
4471
    while True:
4472
      (fname, ftype, fid) = iprot.readFieldBegin()
4473
      if ftype == TType.STOP:
4474
        break
4475
      if fid == 1:
4476
        if ftype == TType.I64:
4477
          self.mobileNumber = iprot.readI64();
4478
        else:
4479
          iprot.skip(ftype)
4480
      else:
4481
        iprot.skip(ftype)
4482
      iprot.readFieldEnd()
4483
    iprot.readStructEnd()
4484
 
4485
  def write(self, oprot):
4486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4488
      return
4489
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4490
    if self.mobileNumber is not None:
3032 mandeep.dh 4491
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4492
      oprot.writeI64(self.mobileNumber)
4493
      oprot.writeFieldEnd()
4494
    oprot.writeFieldStop()
4495
    oprot.writeStructEnd()
4496
 
3431 rajveer 4497
  def validate(self):
4498
    return
4499
 
4500
 
3032 mandeep.dh 4501
  def __repr__(self):
4502
    L = ['%s=%r' % (key, value)
4503
      for key, value in self.__dict__.iteritems()]
4504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4505
 
4506
  def __eq__(self, other):
4507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4508
 
4509
  def __ne__(self, other):
4510
    return not (self == other)
4511
 
4512
class getUserByMobileNumber_result:
4513
  """
4514
  Attributes:
4515
   - success
4516
   - ucex
4517
  """
4518
 
4519
  thrift_spec = (
4520
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4521
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4522
  )
4523
 
4524
  def __init__(self, success=None, ucex=None,):
4525
    self.success = success
4526
    self.ucex = ucex
4527
 
4528
  def read(self, iprot):
4529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4531
      return
4532
    iprot.readStructBegin()
4533
    while True:
4534
      (fname, ftype, fid) = iprot.readFieldBegin()
4535
      if ftype == TType.STOP:
4536
        break
4537
      if fid == 0:
4538
        if ftype == TType.STRUCT:
4539
          self.success = User()
4540
          self.success.read(iprot)
4541
        else:
4542
          iprot.skip(ftype)
4543
      elif fid == 1:
4544
        if ftype == TType.STRUCT:
4545
          self.ucex = UserContextException()
4546
          self.ucex.read(iprot)
4547
        else:
4548
          iprot.skip(ftype)
4549
      else:
4550
        iprot.skip(ftype)
4551
      iprot.readFieldEnd()
4552
    iprot.readStructEnd()
4553
 
4554
  def write(self, oprot):
4555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4557
      return
4558
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4559
    if self.success is not None:
3032 mandeep.dh 4560
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4561
      self.success.write(oprot)
4562
      oprot.writeFieldEnd()
3431 rajveer 4563
    if self.ucex is not None:
3032 mandeep.dh 4564
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4565
      self.ucex.write(oprot)
4566
      oprot.writeFieldEnd()
4567
    oprot.writeFieldStop()
4568
    oprot.writeStructEnd()
4569
 
3431 rajveer 4570
  def validate(self):
4571
    return
4572
 
4573
 
3032 mandeep.dh 4574
  def __repr__(self):
4575
    L = ['%s=%r' % (key, value)
4576
      for key, value in self.__dict__.iteritems()]
4577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4578
 
4579
  def __eq__(self, other):
4580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4581
 
4582
  def __ne__(self, other):
4583
    return not (self == other)
4584
 
559 chandransh 4585
class createUser_args:
94 ashish 4586
  """
4587
  Attributes:
559 chandransh 4588
   - user
94 ashish 4589
  """
4590
 
4591
  thrift_spec = (
4592
    None, # 0
559 chandransh 4593
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4594
  )
4595
 
559 chandransh 4596
  def __init__(self, user=None,):
4597
    self.user = user
94 ashish 4598
 
4599
  def read(self, iprot):
4600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4602
      return
4603
    iprot.readStructBegin()
4604
    while True:
4605
      (fname, ftype, fid) = iprot.readFieldBegin()
4606
      if ftype == TType.STOP:
4607
        break
4608
      if fid == 1:
559 chandransh 4609
        if ftype == TType.STRUCT:
4610
          self.user = User()
4611
          self.user.read(iprot)
94 ashish 4612
        else:
4613
          iprot.skip(ftype)
4614
      else:
4615
        iprot.skip(ftype)
4616
      iprot.readFieldEnd()
4617
    iprot.readStructEnd()
4618
 
4619
  def write(self, oprot):
4620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4622
      return
559 chandransh 4623
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4624
    if self.user is not None:
559 chandransh 4625
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4626
      self.user.write(oprot)
94 ashish 4627
      oprot.writeFieldEnd()
4628
    oprot.writeFieldStop()
4629
    oprot.writeStructEnd()
4630
 
3431 rajveer 4631
  def validate(self):
4632
    return
4633
 
4634
 
94 ashish 4635
  def __repr__(self):
4636
    L = ['%s=%r' % (key, value)
4637
      for key, value in self.__dict__.iteritems()]
4638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4639
 
4640
  def __eq__(self, other):
4641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4642
 
4643
  def __ne__(self, other):
4644
    return not (self == other)
4645
 
559 chandransh 4646
class createUser_result:
94 ashish 4647
  """
4648
  Attributes:
4649
   - success
559 chandransh 4650
   - ucex
94 ashish 4651
  """
4652
 
4653
  thrift_spec = (
559 chandransh 4654
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4655
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4656
  )
4657
 
559 chandransh 4658
  def __init__(self, success=None, ucex=None,):
94 ashish 4659
    self.success = success
559 chandransh 4660
    self.ucex = ucex
94 ashish 4661
 
4662
  def read(self, iprot):
4663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4665
      return
4666
    iprot.readStructBegin()
4667
    while True:
4668
      (fname, ftype, fid) = iprot.readFieldBegin()
4669
      if ftype == TType.STOP:
4670
        break
4671
      if fid == 0:
4672
        if ftype == TType.STRUCT:
559 chandransh 4673
          self.success = User()
94 ashish 4674
          self.success.read(iprot)
4675
        else:
4676
          iprot.skip(ftype)
4677
      elif fid == 1:
4678
        if ftype == TType.STRUCT:
559 chandransh 4679
          self.ucex = UserContextException()
4680
          self.ucex.read(iprot)
94 ashish 4681
        else:
4682
          iprot.skip(ftype)
4683
      else:
4684
        iprot.skip(ftype)
4685
      iprot.readFieldEnd()
4686
    iprot.readStructEnd()
4687
 
4688
  def write(self, oprot):
4689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4691
      return
559 chandransh 4692
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4693
    if self.success is not None:
94 ashish 4694
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4695
      self.success.write(oprot)
4696
      oprot.writeFieldEnd()
3431 rajveer 4697
    if self.ucex is not None:
559 chandransh 4698
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4699
      self.ucex.write(oprot)
94 ashish 4700
      oprot.writeFieldEnd()
4701
    oprot.writeFieldStop()
4702
    oprot.writeStructEnd()
4703
 
3431 rajveer 4704
  def validate(self):
4705
    return
4706
 
4707
 
94 ashish 4708
  def __repr__(self):
4709
    L = ['%s=%r' % (key, value)
4710
      for key, value in self.__dict__.iteritems()]
4711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4712
 
4713
  def __eq__(self, other):
4714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4715
 
4716
  def __ne__(self, other):
4717
    return not (self == other)
4718
 
559 chandransh 4719
class updateUser_args:
94 ashish 4720
  """
4721
  Attributes:
559 chandransh 4722
   - user
94 ashish 4723
  """
4724
 
4725
  thrift_spec = (
4726
    None, # 0
559 chandransh 4727
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4728
  )
4729
 
559 chandransh 4730
  def __init__(self, user=None,):
4731
    self.user = user
94 ashish 4732
 
4733
  def read(self, iprot):
4734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4736
      return
4737
    iprot.readStructBegin()
4738
    while True:
4739
      (fname, ftype, fid) = iprot.readFieldBegin()
4740
      if ftype == TType.STOP:
4741
        break
4742
      if fid == 1:
559 chandransh 4743
        if ftype == TType.STRUCT:
4744
          self.user = User()
4745
          self.user.read(iprot)
94 ashish 4746
        else:
4747
          iprot.skip(ftype)
4748
      else:
4749
        iprot.skip(ftype)
4750
      iprot.readFieldEnd()
4751
    iprot.readStructEnd()
4752
 
4753
  def write(self, oprot):
4754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4756
      return
559 chandransh 4757
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4758
    if self.user is not None:
559 chandransh 4759
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4760
      self.user.write(oprot)
94 ashish 4761
      oprot.writeFieldEnd()
4762
    oprot.writeFieldStop()
4763
    oprot.writeStructEnd()
4764
 
3431 rajveer 4765
  def validate(self):
4766
    return
4767
 
4768
 
94 ashish 4769
  def __repr__(self):
4770
    L = ['%s=%r' % (key, value)
4771
      for key, value in self.__dict__.iteritems()]
4772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4773
 
4774
  def __eq__(self, other):
4775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4776
 
4777
  def __ne__(self, other):
4778
    return not (self == other)
4779
 
559 chandransh 4780
class updateUser_result:
94 ashish 4781
  """
4782
  Attributes:
4783
   - success
559 chandransh 4784
   - ucex
94 ashish 4785
  """
4786
 
4787
  thrift_spec = (
559 chandransh 4788
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4789
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4790
  )
4791
 
559 chandransh 4792
  def __init__(self, success=None, ucex=None,):
94 ashish 4793
    self.success = success
559 chandransh 4794
    self.ucex = ucex
94 ashish 4795
 
4796
  def read(self, iprot):
4797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4799
      return
4800
    iprot.readStructBegin()
4801
    while True:
4802
      (fname, ftype, fid) = iprot.readFieldBegin()
4803
      if ftype == TType.STOP:
4804
        break
4805
      if fid == 0:
4806
        if ftype == TType.STRUCT:
559 chandransh 4807
          self.success = User()
94 ashish 4808
          self.success.read(iprot)
4809
        else:
4810
          iprot.skip(ftype)
4811
      elif fid == 1:
4812
        if ftype == TType.STRUCT:
559 chandransh 4813
          self.ucex = UserContextException()
4814
          self.ucex.read(iprot)
94 ashish 4815
        else:
4816
          iprot.skip(ftype)
4817
      else:
4818
        iprot.skip(ftype)
4819
      iprot.readFieldEnd()
4820
    iprot.readStructEnd()
4821
 
4822
  def write(self, oprot):
4823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4825
      return
559 chandransh 4826
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4827
    if self.success is not None:
94 ashish 4828
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4829
      self.success.write(oprot)
4830
      oprot.writeFieldEnd()
3431 rajveer 4831
    if self.ucex is not None:
559 chandransh 4832
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4833
      self.ucex.write(oprot)
94 ashish 4834
      oprot.writeFieldEnd()
4835
    oprot.writeFieldStop()
4836
    oprot.writeStructEnd()
4837
 
3431 rajveer 4838
  def validate(self):
4839
    return
4840
 
4841
 
94 ashish 4842
  def __repr__(self):
4843
    L = ['%s=%r' % (key, value)
4844
      for key, value in self.__dict__.iteritems()]
4845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4846
 
4847
  def __eq__(self, other):
4848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4849
 
4850
  def __ne__(self, other):
4851
    return not (self == other)
4852
 
559 chandransh 4853
class deleteUser_args:
94 ashish 4854
  """
4855
  Attributes:
4856
   - userId
4857
  """
4858
 
4859
  thrift_spec = (
4860
    None, # 0
4861
    (1, TType.I64, 'userId', None, None, ), # 1
4862
  )
4863
 
559 chandransh 4864
  def __init__(self, userId=None,):
94 ashish 4865
    self.userId = userId
4866
 
4867
  def read(self, iprot):
4868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4870
      return
4871
    iprot.readStructBegin()
4872
    while True:
4873
      (fname, ftype, fid) = iprot.readFieldBegin()
4874
      if ftype == TType.STOP:
4875
        break
4876
      if fid == 1:
4877
        if ftype == TType.I64:
4878
          self.userId = iprot.readI64();
4879
        else:
4880
          iprot.skip(ftype)
4881
      else:
4882
        iprot.skip(ftype)
4883
      iprot.readFieldEnd()
4884
    iprot.readStructEnd()
4885
 
4886
  def write(self, oprot):
4887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4889
      return
559 chandransh 4890
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4891
    if self.userId is not None:
94 ashish 4892
      oprot.writeFieldBegin('userId', TType.I64, 1)
4893
      oprot.writeI64(self.userId)
4894
      oprot.writeFieldEnd()
4895
    oprot.writeFieldStop()
4896
    oprot.writeStructEnd()
4897
 
3431 rajveer 4898
  def validate(self):
4899
    return
4900
 
4901
 
94 ashish 4902
  def __repr__(self):
4903
    L = ['%s=%r' % (key, value)
4904
      for key, value in self.__dict__.iteritems()]
4905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4906
 
4907
  def __eq__(self, other):
4908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4909
 
4910
  def __ne__(self, other):
4911
    return not (self == other)
4912
 
559 chandransh 4913
class deleteUser_result:
94 ashish 4914
  """
4915
  Attributes:
4916
   - success
559 chandransh 4917
   - ucex
94 ashish 4918
  """
4919
 
4920
  thrift_spec = (
559 chandransh 4921
    (0, TType.BOOL, 'success', None, None, ), # 0
4922
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4923
  )
4924
 
559 chandransh 4925
  def __init__(self, success=None, ucex=None,):
94 ashish 4926
    self.success = success
559 chandransh 4927
    self.ucex = ucex
94 ashish 4928
 
4929
  def read(self, iprot):
4930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4932
      return
4933
    iprot.readStructBegin()
4934
    while True:
4935
      (fname, ftype, fid) = iprot.readFieldBegin()
4936
      if ftype == TType.STOP:
4937
        break
4938
      if fid == 0:
559 chandransh 4939
        if ftype == TType.BOOL:
4940
          self.success = iprot.readBool();
94 ashish 4941
        else:
4942
          iprot.skip(ftype)
4943
      elif fid == 1:
4944
        if ftype == TType.STRUCT:
559 chandransh 4945
          self.ucex = UserContextException()
4946
          self.ucex.read(iprot)
94 ashish 4947
        else:
4948
          iprot.skip(ftype)
4949
      else:
4950
        iprot.skip(ftype)
4951
      iprot.readFieldEnd()
4952
    iprot.readStructEnd()
4953
 
4954
  def write(self, oprot):
4955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4957
      return
559 chandransh 4958
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4959
    if self.success is not None:
559 chandransh 4960
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4961
      oprot.writeBool(self.success)
94 ashish 4962
      oprot.writeFieldEnd()
3431 rajveer 4963
    if self.ucex is not None:
559 chandransh 4964
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4965
      self.ucex.write(oprot)
94 ashish 4966
      oprot.writeFieldEnd()
4967
    oprot.writeFieldStop()
4968
    oprot.writeStructEnd()
4969
 
3431 rajveer 4970
  def validate(self):
4971
    return
4972
 
4973
 
94 ashish 4974
  def __repr__(self):
4975
    L = ['%s=%r' % (key, value)
4976
      for key, value in self.__dict__.iteritems()]
4977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4978
 
4979
  def __eq__(self, other):
4980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4981
 
4982
  def __ne__(self, other):
4983
    return not (self == other)
4984
 
559 chandransh 4985
class getUserState_args:
94 ashish 4986
  """
4987
  Attributes:
4988
   - userId
4989
  """
4990
 
4991
  thrift_spec = (
4992
    None, # 0
4993
    (1, TType.I64, 'userId', None, None, ), # 1
4994
  )
4995
 
559 chandransh 4996
  def __init__(self, userId=None,):
94 ashish 4997
    self.userId = userId
4998
 
4999
  def read(self, iprot):
5000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5002
      return
5003
    iprot.readStructBegin()
5004
    while True:
5005
      (fname, ftype, fid) = iprot.readFieldBegin()
5006
      if ftype == TType.STOP:
5007
        break
5008
      if fid == 1:
5009
        if ftype == TType.I64:
5010
          self.userId = iprot.readI64();
5011
        else:
5012
          iprot.skip(ftype)
5013
      else:
5014
        iprot.skip(ftype)
5015
      iprot.readFieldEnd()
5016
    iprot.readStructEnd()
5017
 
5018
  def write(self, oprot):
5019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5021
      return
559 chandransh 5022
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 5023
    if self.userId is not None:
94 ashish 5024
      oprot.writeFieldBegin('userId', TType.I64, 1)
5025
      oprot.writeI64(self.userId)
5026
      oprot.writeFieldEnd()
5027
    oprot.writeFieldStop()
5028
    oprot.writeStructEnd()
5029
 
3431 rajveer 5030
  def validate(self):
5031
    return
5032
 
5033
 
94 ashish 5034
  def __repr__(self):
5035
    L = ['%s=%r' % (key, value)
5036
      for key, value in self.__dict__.iteritems()]
5037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5038
 
5039
  def __eq__(self, other):
5040
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5041
 
5042
  def __ne__(self, other):
5043
    return not (self == other)
5044
 
559 chandransh 5045
class getUserState_result:
94 ashish 5046
  """
5047
  Attributes:
5048
   - success
559 chandransh 5049
   - ucex
94 ashish 5050
  """
5051
 
5052
  thrift_spec = (
559 chandransh 5053
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
5054
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 5055
  )
5056
 
559 chandransh 5057
  def __init__(self, success=None, ucex=None,):
94 ashish 5058
    self.success = success
559 chandransh 5059
    self.ucex = ucex
94 ashish 5060
 
5061
  def read(self, iprot):
5062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5064
      return
5065
    iprot.readStructBegin()
5066
    while True:
5067
      (fname, ftype, fid) = iprot.readFieldBegin()
5068
      if ftype == TType.STOP:
5069
        break
5070
      if fid == 0:
5071
        if ftype == TType.STRUCT:
559 chandransh 5072
          self.success = UserState()
94 ashish 5073
          self.success.read(iprot)
5074
        else:
5075
          iprot.skip(ftype)
5076
      elif fid == 1:
5077
        if ftype == TType.STRUCT:
559 chandransh 5078
          self.ucex = UserContextException()
5079
          self.ucex.read(iprot)
94 ashish 5080
        else:
5081
          iprot.skip(ftype)
5082
      else:
5083
        iprot.skip(ftype)
5084
      iprot.readFieldEnd()
5085
    iprot.readStructEnd()
5086
 
5087
  def write(self, oprot):
5088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5090
      return
559 chandransh 5091
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 5092
    if self.success is not None:
94 ashish 5093
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5094
      self.success.write(oprot)
5095
      oprot.writeFieldEnd()
3431 rajveer 5096
    if self.ucex is not None:
559 chandransh 5097
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5098
      self.ucex.write(oprot)
94 ashish 5099
      oprot.writeFieldEnd()
5100
    oprot.writeFieldStop()
5101
    oprot.writeStructEnd()
5102
 
3431 rajveer 5103
  def validate(self):
5104
    return
5105
 
5106
 
94 ashish 5107
  def __repr__(self):
5108
    L = ['%s=%r' % (key, value)
5109
      for key, value in self.__dict__.iteritems()]
5110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5111
 
5112
  def __eq__(self, other):
5113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5114
 
5115
  def __ne__(self, other):
5116
    return not (self == other)
5117
 
559 chandransh 5118
class authenticateUser_args:
94 ashish 5119
  """
5120
  Attributes:
5121
   - email
5122
   - password
5123
  """
5124
 
5125
  thrift_spec = (
5126
    None, # 0
5127
    (1, TType.STRING, 'email', None, None, ), # 1
5128
    (2, TType.STRING, 'password', None, None, ), # 2
5129
  )
5130
 
5131
  def __init__(self, email=None, password=None,):
5132
    self.email = email
5133
    self.password = password
5134
 
5135
  def read(self, iprot):
5136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5138
      return
5139
    iprot.readStructBegin()
5140
    while True:
5141
      (fname, ftype, fid) = iprot.readFieldBegin()
5142
      if ftype == TType.STOP:
5143
        break
5144
      if fid == 1:
5145
        if ftype == TType.STRING:
5146
          self.email = iprot.readString();
5147
        else:
5148
          iprot.skip(ftype)
5149
      elif fid == 2:
5150
        if ftype == TType.STRING:
5151
          self.password = iprot.readString();
5152
        else:
5153
          iprot.skip(ftype)
5154
      else:
5155
        iprot.skip(ftype)
5156
      iprot.readFieldEnd()
5157
    iprot.readStructEnd()
5158
 
5159
  def write(self, oprot):
5160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5162
      return
559 chandransh 5163
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5164
    if self.email is not None:
94 ashish 5165
      oprot.writeFieldBegin('email', TType.STRING, 1)
5166
      oprot.writeString(self.email)
5167
      oprot.writeFieldEnd()
3431 rajveer 5168
    if self.password is not None:
94 ashish 5169
      oprot.writeFieldBegin('password', TType.STRING, 2)
5170
      oprot.writeString(self.password)
5171
      oprot.writeFieldEnd()
5172
    oprot.writeFieldStop()
5173
    oprot.writeStructEnd()
5174
 
3431 rajveer 5175
  def validate(self):
5176
    return
5177
 
5178
 
94 ashish 5179
  def __repr__(self):
5180
    L = ['%s=%r' % (key, value)
5181
      for key, value in self.__dict__.iteritems()]
5182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5183
 
5184
  def __eq__(self, other):
5185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5186
 
5187
  def __ne__(self, other):
5188
    return not (self == other)
5189
 
559 chandransh 5190
class authenticateUser_result:
94 ashish 5191
  """
5192
  Attributes:
5193
   - success
559 chandransh 5194
   - auex
94 ashish 5195
  """
5196
 
5197
  thrift_spec = (
559 chandransh 5198
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5199
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5200
  )
5201
 
559 chandransh 5202
  def __init__(self, success=None, auex=None,):
94 ashish 5203
    self.success = success
559 chandransh 5204
    self.auex = auex
94 ashish 5205
 
5206
  def read(self, iprot):
5207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5209
      return
5210
    iprot.readStructBegin()
5211
    while True:
5212
      (fname, ftype, fid) = iprot.readFieldBegin()
5213
      if ftype == TType.STOP:
5214
        break
5215
      if fid == 0:
5216
        if ftype == TType.STRUCT:
559 chandransh 5217
          self.success = User()
94 ashish 5218
          self.success.read(iprot)
5219
        else:
5220
          iprot.skip(ftype)
5221
      elif fid == 1:
5222
        if ftype == TType.STRUCT:
559 chandransh 5223
          self.auex = AuthenticationException()
5224
          self.auex.read(iprot)
94 ashish 5225
        else:
5226
          iprot.skip(ftype)
5227
      else:
5228
        iprot.skip(ftype)
5229
      iprot.readFieldEnd()
5230
    iprot.readStructEnd()
5231
 
5232
  def write(self, oprot):
5233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5235
      return
559 chandransh 5236
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5237
    if self.success is not None:
94 ashish 5238
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5239
      self.success.write(oprot)
5240
      oprot.writeFieldEnd()
3431 rajveer 5241
    if self.auex is not None:
559 chandransh 5242
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5243
      self.auex.write(oprot)
94 ashish 5244
      oprot.writeFieldEnd()
5245
    oprot.writeFieldStop()
5246
    oprot.writeStructEnd()
5247
 
3431 rajveer 5248
  def validate(self):
5249
    return
5250
 
5251
 
94 ashish 5252
  def __repr__(self):
5253
    L = ['%s=%r' % (key, value)
5254
      for key, value in self.__dict__.iteritems()]
5255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5256
 
5257
  def __eq__(self, other):
5258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5259
 
5260
  def __ne__(self, other):
5261
    return not (self == other)
5262
 
559 chandransh 5263
class userExists_args:
122 ashish 5264
  """
5265
  Attributes:
559 chandransh 5266
   - email
122 ashish 5267
  """
5268
 
5269
  thrift_spec = (
5270
    None, # 0
559 chandransh 5271
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5272
  )
5273
 
559 chandransh 5274
  def __init__(self, email=None,):
5275
    self.email = email
122 ashish 5276
 
5277
  def read(self, iprot):
5278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5280
      return
5281
    iprot.readStructBegin()
5282
    while True:
5283
      (fname, ftype, fid) = iprot.readFieldBegin()
5284
      if ftype == TType.STOP:
5285
        break
5286
      if fid == 1:
5287
        if ftype == TType.STRING:
559 chandransh 5288
          self.email = iprot.readString();
122 ashish 5289
        else:
5290
          iprot.skip(ftype)
559 chandransh 5291
      else:
5292
        iprot.skip(ftype)
5293
      iprot.readFieldEnd()
5294
    iprot.readStructEnd()
5295
 
5296
  def write(self, oprot):
5297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5299
      return
5300
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5301
    if self.email is not None:
559 chandransh 5302
      oprot.writeFieldBegin('email', TType.STRING, 1)
5303
      oprot.writeString(self.email)
5304
      oprot.writeFieldEnd()
5305
    oprot.writeFieldStop()
5306
    oprot.writeStructEnd()
5307
 
3431 rajveer 5308
  def validate(self):
5309
    return
5310
 
5311
 
559 chandransh 5312
  def __repr__(self):
5313
    L = ['%s=%r' % (key, value)
5314
      for key, value in self.__dict__.iteritems()]
5315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5316
 
5317
  def __eq__(self, other):
5318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5319
 
5320
  def __ne__(self, other):
5321
    return not (self == other)
5322
 
5323
class userExists_result:
5324
  """
5325
  Attributes:
5326
   - success
5327
   - ucx
5328
  """
5329
 
5330
  thrift_spec = (
5331
    (0, TType.BOOL, 'success', None, None, ), # 0
5332
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5333
  )
5334
 
5335
  def __init__(self, success=None, ucx=None,):
5336
    self.success = success
5337
    self.ucx = ucx
5338
 
5339
  def read(self, iprot):
5340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5342
      return
5343
    iprot.readStructBegin()
5344
    while True:
5345
      (fname, ftype, fid) = iprot.readFieldBegin()
5346
      if ftype == TType.STOP:
5347
        break
5348
      if fid == 0:
5349
        if ftype == TType.BOOL:
5350
          self.success = iprot.readBool();
5351
        else:
5352
          iprot.skip(ftype)
5353
      elif fid == 1:
5354
        if ftype == TType.STRUCT:
5355
          self.ucx = UserContextException()
5356
          self.ucx.read(iprot)
5357
        else:
5358
          iprot.skip(ftype)
5359
      else:
5360
        iprot.skip(ftype)
5361
      iprot.readFieldEnd()
5362
    iprot.readStructEnd()
5363
 
5364
  def write(self, oprot):
5365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5367
      return
5368
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5369
    if self.success is not None:
559 chandransh 5370
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5371
      oprot.writeBool(self.success)
5372
      oprot.writeFieldEnd()
3431 rajveer 5373
    if self.ucx is not None:
559 chandransh 5374
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5375
      self.ucx.write(oprot)
5376
      oprot.writeFieldEnd()
5377
    oprot.writeFieldStop()
5378
    oprot.writeStructEnd()
5379
 
3431 rajveer 5380
  def validate(self):
5381
    return
5382
 
5383
 
559 chandransh 5384
  def __repr__(self):
5385
    L = ['%s=%r' % (key, value)
5386
      for key, value in self.__dict__.iteritems()]
5387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5388
 
5389
  def __eq__(self, other):
5390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5391
 
5392
  def __ne__(self, other):
5393
    return not (self == other)
5394
 
5395
class addAddressForUser_args:
5396
  """
5397
  Attributes:
5398
   - userId
5399
   - address
5400
   - setDefault
5401
  """
5402
 
5403
  thrift_spec = (
5404
    None, # 0
5405
    (1, TType.I64, 'userId', None, None, ), # 1
5406
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5407
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5408
  )
5409
 
567 rajveer 5410
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5411
    self.userId = userId
5412
    self.address = address
5413
    self.setDefault = setDefault
5414
 
5415
  def read(self, iprot):
5416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5418
      return
5419
    iprot.readStructBegin()
5420
    while True:
5421
      (fname, ftype, fid) = iprot.readFieldBegin()
5422
      if ftype == TType.STOP:
5423
        break
5424
      if fid == 1:
5425
        if ftype == TType.I64:
5426
          self.userId = iprot.readI64();
5427
        else:
5428
          iprot.skip(ftype)
122 ashish 5429
      elif fid == 2:
559 chandransh 5430
        if ftype == TType.STRUCT:
5431
          self.address = Address()
5432
          self.address.read(iprot)
122 ashish 5433
        else:
5434
          iprot.skip(ftype)
5435
      elif fid == 3:
5436
        if ftype == TType.BOOL:
559 chandransh 5437
          self.setDefault = iprot.readBool();
122 ashish 5438
        else:
5439
          iprot.skip(ftype)
5440
      else:
5441
        iprot.skip(ftype)
5442
      iprot.readFieldEnd()
5443
    iprot.readStructEnd()
5444
 
5445
  def write(self, oprot):
5446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5448
      return
559 chandransh 5449
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5450
    if self.userId is not None:
559 chandransh 5451
      oprot.writeFieldBegin('userId', TType.I64, 1)
5452
      oprot.writeI64(self.userId)
122 ashish 5453
      oprot.writeFieldEnd()
3431 rajveer 5454
    if self.address is not None:
559 chandransh 5455
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5456
      self.address.write(oprot)
122 ashish 5457
      oprot.writeFieldEnd()
3431 rajveer 5458
    if self.setDefault is not None:
567 rajveer 5459
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5460
      oprot.writeBool(self.setDefault)
5461
      oprot.writeFieldEnd()
122 ashish 5462
    oprot.writeFieldStop()
5463
    oprot.writeStructEnd()
5464
 
3431 rajveer 5465
  def validate(self):
5466
    return
5467
 
5468
 
122 ashish 5469
  def __repr__(self):
5470
    L = ['%s=%r' % (key, value)
5471
      for key, value in self.__dict__.iteritems()]
5472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5473
 
5474
  def __eq__(self, other):
5475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5476
 
5477
  def __ne__(self, other):
5478
    return not (self == other)
5479
 
559 chandransh 5480
class addAddressForUser_result:
122 ashish 5481
  """
5482
  Attributes:
5483
   - success
559 chandransh 5484
   - ucx
122 ashish 5485
  """
5486
 
5487
  thrift_spec = (
567 rajveer 5488
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5489
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5490
  )
5491
 
559 chandransh 5492
  def __init__(self, success=None, ucx=None,):
122 ashish 5493
    self.success = success
559 chandransh 5494
    self.ucx = ucx
122 ashish 5495
 
5496
  def read(self, iprot):
5497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5499
      return
5500
    iprot.readStructBegin()
5501
    while True:
5502
      (fname, ftype, fid) = iprot.readFieldBegin()
5503
      if ftype == TType.STOP:
5504
        break
5505
      if fid == 0:
567 rajveer 5506
        if ftype == TType.I64:
5507
          self.success = iprot.readI64();
122 ashish 5508
        else:
5509
          iprot.skip(ftype)
5510
      elif fid == 1:
5511
        if ftype == TType.STRUCT:
559 chandransh 5512
          self.ucx = UserContextException()
5513
          self.ucx.read(iprot)
122 ashish 5514
        else:
5515
          iprot.skip(ftype)
5516
      else:
5517
        iprot.skip(ftype)
5518
      iprot.readFieldEnd()
5519
    iprot.readStructEnd()
5520
 
5521
  def write(self, oprot):
5522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5524
      return
559 chandransh 5525
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5526
    if self.success is not None:
567 rajveer 5527
      oprot.writeFieldBegin('success', TType.I64, 0)
5528
      oprot.writeI64(self.success)
122 ashish 5529
      oprot.writeFieldEnd()
3431 rajveer 5530
    if self.ucx is not None:
559 chandransh 5531
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5532
      self.ucx.write(oprot)
122 ashish 5533
      oprot.writeFieldEnd()
5534
    oprot.writeFieldStop()
5535
    oprot.writeStructEnd()
5536
 
3431 rajveer 5537
  def validate(self):
5538
    return
5539
 
5540
 
122 ashish 5541
  def __repr__(self):
5542
    L = ['%s=%r' % (key, value)
5543
      for key, value in self.__dict__.iteritems()]
5544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5545
 
5546
  def __eq__(self, other):
5547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5548
 
5549
  def __ne__(self, other):
5550
    return not (self == other)
5551
 
559 chandransh 5552
class removeAddressForUser_args:
94 ashish 5553
  """
5554
  Attributes:
559 chandransh 5555
   - userid
5556
   - addressId
94 ashish 5557
  """
5558
 
5559
  thrift_spec = (
5560
    None, # 0
559 chandransh 5561
    (1, TType.I64, 'userid', None, None, ), # 1
5562
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5563
  )
5564
 
559 chandransh 5565
  def __init__(self, userid=None, addressId=None,):
5566
    self.userid = userid
5567
    self.addressId = addressId
94 ashish 5568
 
5569
  def read(self, iprot):
5570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5572
      return
5573
    iprot.readStructBegin()
5574
    while True:
5575
      (fname, ftype, fid) = iprot.readFieldBegin()
5576
      if ftype == TType.STOP:
5577
        break
5578
      if fid == 1:
559 chandransh 5579
        if ftype == TType.I64:
5580
          self.userid = iprot.readI64();
94 ashish 5581
        else:
5582
          iprot.skip(ftype)
559 chandransh 5583
      elif fid == 2:
5584
        if ftype == TType.I64:
5585
          self.addressId = iprot.readI64();
5586
        else:
5587
          iprot.skip(ftype)
94 ashish 5588
      else:
5589
        iprot.skip(ftype)
5590
      iprot.readFieldEnd()
5591
    iprot.readStructEnd()
5592
 
5593
  def write(self, oprot):
5594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5596
      return
559 chandransh 5597
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5598
    if self.userid is not None:
559 chandransh 5599
      oprot.writeFieldBegin('userid', TType.I64, 1)
5600
      oprot.writeI64(self.userid)
94 ashish 5601
      oprot.writeFieldEnd()
3431 rajveer 5602
    if self.addressId is not None:
559 chandransh 5603
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5604
      oprot.writeI64(self.addressId)
5605
      oprot.writeFieldEnd()
94 ashish 5606
    oprot.writeFieldStop()
5607
    oprot.writeStructEnd()
5608
 
3431 rajveer 5609
  def validate(self):
5610
    return
5611
 
5612
 
94 ashish 5613
  def __repr__(self):
5614
    L = ['%s=%r' % (key, value)
5615
      for key, value in self.__dict__.iteritems()]
5616
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5617
 
5618
  def __eq__(self, other):
5619
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5620
 
5621
  def __ne__(self, other):
5622
    return not (self == other)
5623
 
559 chandransh 5624
class removeAddressForUser_result:
94 ashish 5625
  """
5626
  Attributes:
5627
   - success
5628
   - ucx
5629
  """
5630
 
5631
  thrift_spec = (
5632
    (0, TType.BOOL, 'success', None, None, ), # 0
5633
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5634
  )
5635
 
5636
  def __init__(self, success=None, ucx=None,):
5637
    self.success = success
5638
    self.ucx = ucx
5639
 
5640
  def read(self, iprot):
5641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5643
      return
5644
    iprot.readStructBegin()
5645
    while True:
5646
      (fname, ftype, fid) = iprot.readFieldBegin()
5647
      if ftype == TType.STOP:
5648
        break
5649
      if fid == 0:
5650
        if ftype == TType.BOOL:
5651
          self.success = iprot.readBool();
5652
        else:
5653
          iprot.skip(ftype)
5654
      elif fid == 1:
5655
        if ftype == TType.STRUCT:
5656
          self.ucx = UserContextException()
5657
          self.ucx.read(iprot)
5658
        else:
5659
          iprot.skip(ftype)
5660
      else:
5661
        iprot.skip(ftype)
5662
      iprot.readFieldEnd()
5663
    iprot.readStructEnd()
5664
 
5665
  def write(self, oprot):
5666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5668
      return
559 chandransh 5669
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5670
    if self.success is not None:
94 ashish 5671
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5672
      oprot.writeBool(self.success)
5673
      oprot.writeFieldEnd()
3431 rajveer 5674
    if self.ucx is not None:
94 ashish 5675
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5676
      self.ucx.write(oprot)
5677
      oprot.writeFieldEnd()
5678
    oprot.writeFieldStop()
5679
    oprot.writeStructEnd()
5680
 
3431 rajveer 5681
  def validate(self):
5682
    return
5683
 
5684
 
94 ashish 5685
  def __repr__(self):
5686
    L = ['%s=%r' % (key, value)
5687
      for key, value in self.__dict__.iteritems()]
5688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5689
 
5690
  def __eq__(self, other):
5691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5692
 
5693
  def __ne__(self, other):
5694
    return not (self == other)
5695
 
559 chandransh 5696
class setUserAsLoggedIn_args:
94 ashish 5697
  """
5698
  Attributes:
559 chandransh 5699
   - userId
94 ashish 5700
   - timestamp
5701
  """
5702
 
5703
  thrift_spec = (
5704
    None, # 0
559 chandransh 5705
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5706
    (2, TType.I64, 'timestamp', None, None, ), # 2
5707
  )
5708
 
559 chandransh 5709
  def __init__(self, userId=None, timestamp=None,):
5710
    self.userId = userId
94 ashish 5711
    self.timestamp = timestamp
5712
 
5713
  def read(self, iprot):
5714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5716
      return
5717
    iprot.readStructBegin()
5718
    while True:
5719
      (fname, ftype, fid) = iprot.readFieldBegin()
5720
      if ftype == TType.STOP:
5721
        break
5722
      if fid == 1:
559 chandransh 5723
        if ftype == TType.I64:
5724
          self.userId = iprot.readI64();
94 ashish 5725
        else:
5726
          iprot.skip(ftype)
5727
      elif fid == 2:
5728
        if ftype == TType.I64:
5729
          self.timestamp = iprot.readI64();
5730
        else:
5731
          iprot.skip(ftype)
5732
      else:
5733
        iprot.skip(ftype)
5734
      iprot.readFieldEnd()
5735
    iprot.readStructEnd()
5736
 
5737
  def write(self, oprot):
5738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5740
      return
559 chandransh 5741
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5742
    if self.userId is not None:
559 chandransh 5743
      oprot.writeFieldBegin('userId', TType.I64, 1)
5744
      oprot.writeI64(self.userId)
94 ashish 5745
      oprot.writeFieldEnd()
3431 rajveer 5746
    if self.timestamp is not None:
94 ashish 5747
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5748
      oprot.writeI64(self.timestamp)
5749
      oprot.writeFieldEnd()
5750
    oprot.writeFieldStop()
5751
    oprot.writeStructEnd()
5752
 
3431 rajveer 5753
  def validate(self):
5754
    return
5755
 
5756
 
94 ashish 5757
  def __repr__(self):
5758
    L = ['%s=%r' % (key, value)
5759
      for key, value in self.__dict__.iteritems()]
5760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5761
 
5762
  def __eq__(self, other):
5763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5764
 
5765
  def __ne__(self, other):
5766
    return not (self == other)
5767
 
559 chandransh 5768
class setUserAsLoggedIn_result:
94 ashish 5769
  """
5770
  Attributes:
5771
   - success
5772
   - ucx
5773
  """
5774
 
5775
  thrift_spec = (
5776
    (0, TType.BOOL, 'success', None, None, ), # 0
5777
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5778
  )
5779
 
5780
  def __init__(self, success=None, ucx=None,):
5781
    self.success = success
5782
    self.ucx = ucx
5783
 
5784
  def read(self, iprot):
5785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5787
      return
5788
    iprot.readStructBegin()
5789
    while True:
5790
      (fname, ftype, fid) = iprot.readFieldBegin()
5791
      if ftype == TType.STOP:
5792
        break
5793
      if fid == 0:
5794
        if ftype == TType.BOOL:
5795
          self.success = iprot.readBool();
5796
        else:
5797
          iprot.skip(ftype)
5798
      elif fid == 1:
5799
        if ftype == TType.STRUCT:
5800
          self.ucx = UserContextException()
5801
          self.ucx.read(iprot)
5802
        else:
5803
          iprot.skip(ftype)
5804
      else:
5805
        iprot.skip(ftype)
5806
      iprot.readFieldEnd()
5807
    iprot.readStructEnd()
5808
 
5809
  def write(self, oprot):
5810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5812
      return
559 chandransh 5813
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5814
    if self.success is not None:
94 ashish 5815
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5816
      oprot.writeBool(self.success)
5817
      oprot.writeFieldEnd()
3431 rajveer 5818
    if self.ucx is not None:
94 ashish 5819
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5820
      self.ucx.write(oprot)
5821
      oprot.writeFieldEnd()
5822
    oprot.writeFieldStop()
5823
    oprot.writeStructEnd()
5824
 
3431 rajveer 5825
  def validate(self):
5826
    return
5827
 
5828
 
94 ashish 5829
  def __repr__(self):
5830
    L = ['%s=%r' % (key, value)
5831
      for key, value in self.__dict__.iteritems()]
5832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5833
 
5834
  def __eq__(self, other):
5835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5836
 
5837
  def __ne__(self, other):
5838
    return not (self == other)
5839
 
559 chandransh 5840
class setUserAsLoggedOut_args:
94 ashish 5841
  """
5842
  Attributes:
5843
   - userid
5844
   - timestamp
5845
  """
5846
 
5847
  thrift_spec = (
5848
    None, # 0
559 chandransh 5849
    (1, TType.I64, 'userid', None, None, ), # 1
5850
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5851
  )
5852
 
559 chandransh 5853
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5854
    self.userid = userid
5855
    self.timestamp = timestamp
5856
 
5857
  def read(self, iprot):
5858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5860
      return
5861
    iprot.readStructBegin()
5862
    while True:
5863
      (fname, ftype, fid) = iprot.readFieldBegin()
5864
      if ftype == TType.STOP:
5865
        break
5866
      if fid == 1:
5867
        if ftype == TType.I64:
5868
          self.userid = iprot.readI64();
5869
        else:
5870
          iprot.skip(ftype)
559 chandransh 5871
      elif fid == 2:
94 ashish 5872
        if ftype == TType.I64:
5873
          self.timestamp = iprot.readI64();
5874
        else:
5875
          iprot.skip(ftype)
5876
      else:
5877
        iprot.skip(ftype)
5878
      iprot.readFieldEnd()
5879
    iprot.readStructEnd()
5880
 
5881
  def write(self, oprot):
5882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5884
      return
559 chandransh 5885
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5886
    if self.userid is not None:
559 chandransh 5887
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5888
      oprot.writeI64(self.userid)
5889
      oprot.writeFieldEnd()
3431 rajveer 5890
    if self.timestamp is not None:
559 chandransh 5891
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5892
      oprot.writeI64(self.timestamp)
5893
      oprot.writeFieldEnd()
5894
    oprot.writeFieldStop()
5895
    oprot.writeStructEnd()
5896
 
3431 rajveer 5897
  def validate(self):
5898
    return
5899
 
5900
 
94 ashish 5901
  def __repr__(self):
5902
    L = ['%s=%r' % (key, value)
5903
      for key, value in self.__dict__.iteritems()]
5904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5905
 
5906
  def __eq__(self, other):
5907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5908
 
5909
  def __ne__(self, other):
5910
    return not (self == other)
5911
 
559 chandransh 5912
class setUserAsLoggedOut_result:
94 ashish 5913
  """
5914
  Attributes:
5915
   - success
5916
   - ucx
5917
  """
5918
 
5919
  thrift_spec = (
5920
    (0, TType.BOOL, 'success', None, None, ), # 0
5921
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5922
  )
5923
 
5924
  def __init__(self, success=None, ucx=None,):
5925
    self.success = success
5926
    self.ucx = ucx
5927
 
5928
  def read(self, iprot):
5929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5931
      return
5932
    iprot.readStructBegin()
5933
    while True:
5934
      (fname, ftype, fid) = iprot.readFieldBegin()
5935
      if ftype == TType.STOP:
5936
        break
5937
      if fid == 0:
5938
        if ftype == TType.BOOL:
5939
          self.success = iprot.readBool();
5940
        else:
5941
          iprot.skip(ftype)
5942
      elif fid == 1:
5943
        if ftype == TType.STRUCT:
5944
          self.ucx = UserContextException()
5945
          self.ucx.read(iprot)
5946
        else:
5947
          iprot.skip(ftype)
5948
      else:
5949
        iprot.skip(ftype)
5950
      iprot.readFieldEnd()
5951
    iprot.readStructEnd()
5952
 
5953
  def write(self, oprot):
5954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5956
      return
559 chandransh 5957
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5958
    if self.success is not None:
94 ashish 5959
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5960
      oprot.writeBool(self.success)
5961
      oprot.writeFieldEnd()
3431 rajveer 5962
    if self.ucx is not None:
94 ashish 5963
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5964
      self.ucx.write(oprot)
5965
      oprot.writeFieldEnd()
5966
    oprot.writeFieldStop()
5967
    oprot.writeStructEnd()
5968
 
3431 rajveer 5969
  def validate(self):
5970
    return
5971
 
5972
 
94 ashish 5973
  def __repr__(self):
5974
    L = ['%s=%r' % (key, value)
5975
      for key, value in self.__dict__.iteritems()]
5976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5977
 
5978
  def __eq__(self, other):
5979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5980
 
5981
  def __ne__(self, other):
5982
    return not (self == other)
5983
 
559 chandransh 5984
class setDefaultAddress_args:
94 ashish 5985
  """
5986
  Attributes:
5987
   - userid
5988
   - addressId
5989
  """
5990
 
5991
  thrift_spec = (
5992
    None, # 0
5993
    (1, TType.I64, 'userid', None, None, ), # 1
5994
    (2, TType.I64, 'addressId', None, None, ), # 2
5995
  )
5996
 
5997
  def __init__(self, userid=None, addressId=None,):
5998
    self.userid = userid
5999
    self.addressId = addressId
6000
 
6001
  def read(self, iprot):
6002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6004
      return
6005
    iprot.readStructBegin()
6006
    while True:
6007
      (fname, ftype, fid) = iprot.readFieldBegin()
6008
      if ftype == TType.STOP:
6009
        break
6010
      if fid == 1:
6011
        if ftype == TType.I64:
6012
          self.userid = iprot.readI64();
6013
        else:
6014
          iprot.skip(ftype)
6015
      elif fid == 2:
6016
        if ftype == TType.I64:
6017
          self.addressId = iprot.readI64();
6018
        else:
6019
          iprot.skip(ftype)
6020
      else:
6021
        iprot.skip(ftype)
6022
      iprot.readFieldEnd()
6023
    iprot.readStructEnd()
6024
 
6025
  def write(self, oprot):
6026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6028
      return
559 chandransh 6029
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 6030
    if self.userid is not None:
94 ashish 6031
      oprot.writeFieldBegin('userid', TType.I64, 1)
6032
      oprot.writeI64(self.userid)
6033
      oprot.writeFieldEnd()
3431 rajveer 6034
    if self.addressId is not None:
94 ashish 6035
      oprot.writeFieldBegin('addressId', TType.I64, 2)
6036
      oprot.writeI64(self.addressId)
6037
      oprot.writeFieldEnd()
6038
    oprot.writeFieldStop()
6039
    oprot.writeStructEnd()
6040
 
3431 rajveer 6041
  def validate(self):
6042
    return
6043
 
6044
 
94 ashish 6045
  def __repr__(self):
6046
    L = ['%s=%r' % (key, value)
6047
      for key, value in self.__dict__.iteritems()]
6048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6049
 
6050
  def __eq__(self, other):
6051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6052
 
6053
  def __ne__(self, other):
6054
    return not (self == other)
6055
 
559 chandransh 6056
class setDefaultAddress_result:
94 ashish 6057
  """
6058
  Attributes:
6059
   - success
6060
   - ucx
6061
  """
6062
 
6063
  thrift_spec = (
6064
    (0, TType.BOOL, 'success', None, None, ), # 0
6065
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6066
  )
6067
 
6068
  def __init__(self, success=None, ucx=None,):
6069
    self.success = success
6070
    self.ucx = ucx
6071
 
6072
  def read(self, iprot):
6073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6075
      return
6076
    iprot.readStructBegin()
6077
    while True:
6078
      (fname, ftype, fid) = iprot.readFieldBegin()
6079
      if ftype == TType.STOP:
6080
        break
6081
      if fid == 0:
6082
        if ftype == TType.BOOL:
6083
          self.success = iprot.readBool();
6084
        else:
6085
          iprot.skip(ftype)
6086
      elif fid == 1:
6087
        if ftype == TType.STRUCT:
6088
          self.ucx = UserContextException()
6089
          self.ucx.read(iprot)
6090
        else:
6091
          iprot.skip(ftype)
6092
      else:
6093
        iprot.skip(ftype)
6094
      iprot.readFieldEnd()
6095
    iprot.readStructEnd()
6096
 
6097
  def write(self, oprot):
6098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6100
      return
559 chandransh 6101
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6102
    if self.success is not None:
94 ashish 6103
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6104
      oprot.writeBool(self.success)
6105
      oprot.writeFieldEnd()
3431 rajveer 6106
    if self.ucx is not None:
94 ashish 6107
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6108
      self.ucx.write(oprot)
6109
      oprot.writeFieldEnd()
6110
    oprot.writeFieldStop()
6111
    oprot.writeStructEnd()
6112
 
3431 rajveer 6113
  def validate(self):
6114
    return
6115
 
6116
 
94 ashish 6117
  def __repr__(self):
6118
    L = ['%s=%r' % (key, value)
6119
      for key, value in self.__dict__.iteritems()]
6120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6121
 
6122
  def __eq__(self, other):
6123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6124
 
6125
  def __ne__(self, other):
6126
    return not (self == other)
6127
 
559 chandransh 6128
class updatePassword_args:
94 ashish 6129
  """
6130
  Attributes:
559 chandransh 6131
   - userid
594 rajveer 6132
   - oldPassword
6133
   - newPassword
94 ashish 6134
  """
6135
 
6136
  thrift_spec = (
6137
    None, # 0
559 chandransh 6138
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6139
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6140
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6141
  )
6142
 
594 rajveer 6143
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6144
    self.userid = userid
594 rajveer 6145
    self.oldPassword = oldPassword
6146
    self.newPassword = newPassword
94 ashish 6147
 
6148
  def read(self, iprot):
6149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6151
      return
6152
    iprot.readStructBegin()
6153
    while True:
6154
      (fname, ftype, fid) = iprot.readFieldBegin()
6155
      if ftype == TType.STOP:
6156
        break
6157
      if fid == 1:
6158
        if ftype == TType.I64:
559 chandransh 6159
          self.userid = iprot.readI64();
94 ashish 6160
        else:
6161
          iprot.skip(ftype)
6162
      elif fid == 2:
559 chandransh 6163
        if ftype == TType.STRING:
594 rajveer 6164
          self.oldPassword = iprot.readString();
94 ashish 6165
        else:
6166
          iprot.skip(ftype)
594 rajveer 6167
      elif fid == 3:
6168
        if ftype == TType.STRING:
6169
          self.newPassword = iprot.readString();
6170
        else:
6171
          iprot.skip(ftype)
94 ashish 6172
      else:
6173
        iprot.skip(ftype)
6174
      iprot.readFieldEnd()
6175
    iprot.readStructEnd()
6176
 
6177
  def write(self, oprot):
6178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6180
      return
559 chandransh 6181
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6182
    if self.userid is not None:
559 chandransh 6183
      oprot.writeFieldBegin('userid', TType.I64, 1)
6184
      oprot.writeI64(self.userid)
94 ashish 6185
      oprot.writeFieldEnd()
3431 rajveer 6186
    if self.oldPassword is not None:
594 rajveer 6187
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6188
      oprot.writeString(self.oldPassword)
94 ashish 6189
      oprot.writeFieldEnd()
3431 rajveer 6190
    if self.newPassword is not None:
594 rajveer 6191
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6192
      oprot.writeString(self.newPassword)
6193
      oprot.writeFieldEnd()
94 ashish 6194
    oprot.writeFieldStop()
6195
    oprot.writeStructEnd()
6196
 
3431 rajveer 6197
  def validate(self):
6198
    return
6199
 
6200
 
94 ashish 6201
  def __repr__(self):
6202
    L = ['%s=%r' % (key, value)
6203
      for key, value in self.__dict__.iteritems()]
6204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6205
 
6206
  def __eq__(self, other):
6207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6208
 
6209
  def __ne__(self, other):
6210
    return not (self == other)
6211
 
559 chandransh 6212
class updatePassword_result:
94 ashish 6213
  """
6214
  Attributes:
6215
   - success
6216
   - ucx
6217
  """
6218
 
6219
  thrift_spec = (
6220
    (0, TType.BOOL, 'success', None, None, ), # 0
6221
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6222
  )
6223
 
6224
  def __init__(self, success=None, ucx=None,):
6225
    self.success = success
6226
    self.ucx = ucx
6227
 
6228
  def read(self, iprot):
6229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6231
      return
6232
    iprot.readStructBegin()
6233
    while True:
6234
      (fname, ftype, fid) = iprot.readFieldBegin()
6235
      if ftype == TType.STOP:
6236
        break
6237
      if fid == 0:
6238
        if ftype == TType.BOOL:
6239
          self.success = iprot.readBool();
6240
        else:
6241
          iprot.skip(ftype)
6242
      elif fid == 1:
6243
        if ftype == TType.STRUCT:
6244
          self.ucx = UserContextException()
6245
          self.ucx.read(iprot)
6246
        else:
6247
          iprot.skip(ftype)
6248
      else:
6249
        iprot.skip(ftype)
6250
      iprot.readFieldEnd()
6251
    iprot.readStructEnd()
6252
 
6253
  def write(self, oprot):
6254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6256
      return
559 chandransh 6257
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6258
    if self.success is not None:
94 ashish 6259
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6260
      oprot.writeBool(self.success)
6261
      oprot.writeFieldEnd()
3431 rajveer 6262
    if self.ucx is not None:
94 ashish 6263
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6264
      self.ucx.write(oprot)
6265
      oprot.writeFieldEnd()
6266
    oprot.writeFieldStop()
6267
    oprot.writeStructEnd()
6268
 
3431 rajveer 6269
  def validate(self):
6270
    return
6271
 
6272
 
94 ashish 6273
  def __repr__(self):
6274
    L = ['%s=%r' % (key, value)
6275
      for key, value in self.__dict__.iteritems()]
6276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6277
 
6278
  def __eq__(self, other):
6279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6280
 
6281
  def __ne__(self, other):
6282
    return not (self == other)
6283
 
581 rajveer 6284
class forgotPassword_args:
6285
  """
6286
  Attributes:
6287
   - email
884 rajveer 6288
   - newPassword
581 rajveer 6289
  """
6290
 
6291
  thrift_spec = (
6292
    None, # 0
6293
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6294
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6295
  )
6296
 
884 rajveer 6297
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6298
    self.email = email
884 rajveer 6299
    self.newPassword = newPassword
581 rajveer 6300
 
6301
  def read(self, iprot):
6302
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6303
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6304
      return
6305
    iprot.readStructBegin()
6306
    while True:
6307
      (fname, ftype, fid) = iprot.readFieldBegin()
6308
      if ftype == TType.STOP:
6309
        break
6310
      if fid == 1:
6311
        if ftype == TType.STRING:
6312
          self.email = iprot.readString();
6313
        else:
6314
          iprot.skip(ftype)
884 rajveer 6315
      elif fid == 2:
6316
        if ftype == TType.STRING:
6317
          self.newPassword = iprot.readString();
6318
        else:
6319
          iprot.skip(ftype)
581 rajveer 6320
      else:
6321
        iprot.skip(ftype)
6322
      iprot.readFieldEnd()
6323
    iprot.readStructEnd()
6324
 
6325
  def write(self, oprot):
6326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6328
      return
6329
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6330
    if self.email is not None:
581 rajveer 6331
      oprot.writeFieldBegin('email', TType.STRING, 1)
6332
      oprot.writeString(self.email)
6333
      oprot.writeFieldEnd()
3431 rajveer 6334
    if self.newPassword is not None:
884 rajveer 6335
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6336
      oprot.writeString(self.newPassword)
6337
      oprot.writeFieldEnd()
581 rajveer 6338
    oprot.writeFieldStop()
6339
    oprot.writeStructEnd()
6340
 
3431 rajveer 6341
  def validate(self):
6342
    return
6343
 
6344
 
581 rajveer 6345
  def __repr__(self):
6346
    L = ['%s=%r' % (key, value)
6347
      for key, value in self.__dict__.iteritems()]
6348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6349
 
6350
  def __eq__(self, other):
6351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6352
 
6353
  def __ne__(self, other):
6354
    return not (self == other)
6355
 
6356
class forgotPassword_result:
6357
  """
6358
  Attributes:
6359
   - success
6360
   - ucx
6361
  """
6362
 
6363
  thrift_spec = (
6364
    (0, TType.BOOL, 'success', None, None, ), # 0
6365
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6366
  )
6367
 
6368
  def __init__(self, success=None, ucx=None,):
6369
    self.success = success
6370
    self.ucx = ucx
6371
 
6372
  def read(self, iprot):
6373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6375
      return
6376
    iprot.readStructBegin()
6377
    while True:
6378
      (fname, ftype, fid) = iprot.readFieldBegin()
6379
      if ftype == TType.STOP:
6380
        break
6381
      if fid == 0:
6382
        if ftype == TType.BOOL:
6383
          self.success = iprot.readBool();
6384
        else:
6385
          iprot.skip(ftype)
6386
      elif fid == 1:
6387
        if ftype == TType.STRUCT:
6388
          self.ucx = UserContextException()
6389
          self.ucx.read(iprot)
6390
        else:
6391
          iprot.skip(ftype)
6392
      else:
6393
        iprot.skip(ftype)
6394
      iprot.readFieldEnd()
6395
    iprot.readStructEnd()
6396
 
6397
  def write(self, oprot):
6398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6400
      return
6401
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6402
    if self.success is not None:
581 rajveer 6403
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6404
      oprot.writeBool(self.success)
6405
      oprot.writeFieldEnd()
3431 rajveer 6406
    if self.ucx is not None:
581 rajveer 6407
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6408
      self.ucx.write(oprot)
6409
      oprot.writeFieldEnd()
6410
    oprot.writeFieldStop()
6411
    oprot.writeStructEnd()
6412
 
3431 rajveer 6413
  def validate(self):
6414
    return
6415
 
6416
 
581 rajveer 6417
  def __repr__(self):
6418
    L = ['%s=%r' % (key, value)
6419
      for key, value in self.__dict__.iteritems()]
6420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6421
 
6422
  def __eq__(self, other):
6423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6424
 
6425
  def __ne__(self, other):
6426
    return not (self == other)
6427
 
594 rajveer 6428
class getAllAddressesForUser_args:
6429
  """
6430
  Attributes:
6431
   - userId
6432
  """
6433
 
6434
  thrift_spec = (
6435
    None, # 0
6436
    (1, TType.I64, 'userId', None, None, ), # 1
6437
  )
6438
 
6439
  def __init__(self, userId=None,):
6440
    self.userId = userId
6441
 
6442
  def read(self, iprot):
6443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6445
      return
6446
    iprot.readStructBegin()
6447
    while True:
6448
      (fname, ftype, fid) = iprot.readFieldBegin()
6449
      if ftype == TType.STOP:
6450
        break
6451
      if fid == 1:
6452
        if ftype == TType.I64:
6453
          self.userId = iprot.readI64();
6454
        else:
6455
          iprot.skip(ftype)
6456
      else:
6457
        iprot.skip(ftype)
6458
      iprot.readFieldEnd()
6459
    iprot.readStructEnd()
6460
 
6461
  def write(self, oprot):
6462
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6463
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6464
      return
6465
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6466
    if self.userId is not None:
594 rajveer 6467
      oprot.writeFieldBegin('userId', TType.I64, 1)
6468
      oprot.writeI64(self.userId)
6469
      oprot.writeFieldEnd()
6470
    oprot.writeFieldStop()
6471
    oprot.writeStructEnd()
6472
 
3431 rajveer 6473
  def validate(self):
6474
    return
6475
 
6476
 
594 rajveer 6477
  def __repr__(self):
6478
    L = ['%s=%r' % (key, value)
6479
      for key, value in self.__dict__.iteritems()]
6480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6481
 
6482
  def __eq__(self, other):
6483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6484
 
6485
  def __ne__(self, other):
6486
    return not (self == other)
6487
 
6488
class getAllAddressesForUser_result:
6489
  """
6490
  Attributes:
6491
   - success
6492
   - ucx
6493
  """
6494
 
6495
  thrift_spec = (
6496
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6497
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6498
  )
6499
 
6500
  def __init__(self, success=None, ucx=None,):
6501
    self.success = success
6502
    self.ucx = ucx
6503
 
6504
  def read(self, iprot):
6505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6507
      return
6508
    iprot.readStructBegin()
6509
    while True:
6510
      (fname, ftype, fid) = iprot.readFieldBegin()
6511
      if ftype == TType.STOP:
6512
        break
6513
      if fid == 0:
6514
        if ftype == TType.LIST:
6515
          self.success = []
3554 varun.gupt 6516
          (_etype45, _size42) = iprot.readListBegin()
6517
          for _i46 in xrange(_size42):
6518
            _elem47 = Address()
6519
            _elem47.read(iprot)
6520
            self.success.append(_elem47)
594 rajveer 6521
          iprot.readListEnd()
6522
        else:
6523
          iprot.skip(ftype)
6524
      elif fid == 1:
6525
        if ftype == TType.STRUCT:
6526
          self.ucx = UserContextException()
6527
          self.ucx.read(iprot)
6528
        else:
6529
          iprot.skip(ftype)
6530
      else:
6531
        iprot.skip(ftype)
6532
      iprot.readFieldEnd()
6533
    iprot.readStructEnd()
6534
 
6535
  def write(self, oprot):
6536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6538
      return
6539
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6540
    if self.success is not None:
594 rajveer 6541
      oprot.writeFieldBegin('success', TType.LIST, 0)
6542
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 6543
      for iter48 in self.success:
6544
        iter48.write(oprot)
594 rajveer 6545
      oprot.writeListEnd()
6546
      oprot.writeFieldEnd()
3431 rajveer 6547
    if self.ucx is not None:
594 rajveer 6548
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6549
      self.ucx.write(oprot)
6550
      oprot.writeFieldEnd()
6551
    oprot.writeFieldStop()
6552
    oprot.writeStructEnd()
6553
 
3431 rajveer 6554
  def validate(self):
6555
    return
6556
 
6557
 
594 rajveer 6558
  def __repr__(self):
6559
    L = ['%s=%r' % (key, value)
6560
      for key, value in self.__dict__.iteritems()]
6561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6562
 
6563
  def __eq__(self, other):
6564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6565
 
6566
  def __ne__(self, other):
6567
    return not (self == other)
6568
 
1894 vikas 6569
class getAddressById_args:
6570
  """
6571
  Attributes:
6572
   - addressId
6573
  """
6574
 
6575
  thrift_spec = (
6576
    None, # 0
6577
    (1, TType.I64, 'addressId', None, None, ), # 1
6578
  )
6579
 
6580
  def __init__(self, addressId=None,):
6581
    self.addressId = addressId
6582
 
6583
  def read(self, iprot):
6584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6586
      return
6587
    iprot.readStructBegin()
6588
    while True:
6589
      (fname, ftype, fid) = iprot.readFieldBegin()
6590
      if ftype == TType.STOP:
6591
        break
6592
      if fid == 1:
6593
        if ftype == TType.I64:
6594
          self.addressId = iprot.readI64();
6595
        else:
6596
          iprot.skip(ftype)
6597
      else:
6598
        iprot.skip(ftype)
6599
      iprot.readFieldEnd()
6600
    iprot.readStructEnd()
6601
 
6602
  def write(self, oprot):
6603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6605
      return
6606
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6607
    if self.addressId is not None:
1894 vikas 6608
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6609
      oprot.writeI64(self.addressId)
6610
      oprot.writeFieldEnd()
6611
    oprot.writeFieldStop()
6612
    oprot.writeStructEnd()
6613
 
3431 rajveer 6614
  def validate(self):
6615
    return
6616
 
6617
 
1894 vikas 6618
  def __repr__(self):
6619
    L = ['%s=%r' % (key, value)
6620
      for key, value in self.__dict__.iteritems()]
6621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6622
 
6623
  def __eq__(self, other):
6624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6625
 
6626
  def __ne__(self, other):
6627
    return not (self == other)
6628
 
6629
class getAddressById_result:
6630
  """
6631
  Attributes:
6632
   - success
6633
   - ucx
6634
  """
6635
 
6636
  thrift_spec = (
6637
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6638
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6639
  )
6640
 
6641
  def __init__(self, success=None, ucx=None,):
6642
    self.success = success
6643
    self.ucx = ucx
6644
 
6645
  def read(self, iprot):
6646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6648
      return
6649
    iprot.readStructBegin()
6650
    while True:
6651
      (fname, ftype, fid) = iprot.readFieldBegin()
6652
      if ftype == TType.STOP:
6653
        break
6654
      if fid == 0:
6655
        if ftype == TType.STRUCT:
6656
          self.success = Address()
6657
          self.success.read(iprot)
6658
        else:
6659
          iprot.skip(ftype)
6660
      elif fid == 1:
6661
        if ftype == TType.STRUCT:
6662
          self.ucx = UserContextException()
6663
          self.ucx.read(iprot)
6664
        else:
6665
          iprot.skip(ftype)
6666
      else:
6667
        iprot.skip(ftype)
6668
      iprot.readFieldEnd()
6669
    iprot.readStructEnd()
6670
 
6671
  def write(self, oprot):
6672
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6673
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6674
      return
6675
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6676
    if self.success is not None:
1894 vikas 6677
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6678
      self.success.write(oprot)
6679
      oprot.writeFieldEnd()
3431 rajveer 6680
    if self.ucx is not None:
1894 vikas 6681
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6682
      self.ucx.write(oprot)
6683
      oprot.writeFieldEnd()
6684
    oprot.writeFieldStop()
6685
    oprot.writeStructEnd()
6686
 
3431 rajveer 6687
  def validate(self):
6688
    return
6689
 
6690
 
1894 vikas 6691
  def __repr__(self):
6692
    L = ['%s=%r' % (key, value)
6693
      for key, value in self.__dict__.iteritems()]
6694
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6695
 
6696
  def __eq__(self, other):
6697
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6698
 
6699
  def __ne__(self, other):
6700
    return not (self == other)
6701
 
594 rajveer 6702
class getDefaultAddressId_args:
6703
  """
6704
  Attributes:
6705
   - userId
6706
  """
6707
 
6708
  thrift_spec = (
6709
    None, # 0
6710
    (1, TType.I64, 'userId', None, None, ), # 1
6711
  )
6712
 
6713
  def __init__(self, userId=None,):
6714
    self.userId = userId
6715
 
6716
  def read(self, iprot):
6717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6719
      return
6720
    iprot.readStructBegin()
6721
    while True:
6722
      (fname, ftype, fid) = iprot.readFieldBegin()
6723
      if ftype == TType.STOP:
6724
        break
6725
      if fid == 1:
6726
        if ftype == TType.I64:
6727
          self.userId = iprot.readI64();
6728
        else:
6729
          iprot.skip(ftype)
6730
      else:
6731
        iprot.skip(ftype)
6732
      iprot.readFieldEnd()
6733
    iprot.readStructEnd()
6734
 
6735
  def write(self, oprot):
6736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6738
      return
6739
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6740
    if self.userId is not None:
594 rajveer 6741
      oprot.writeFieldBegin('userId', TType.I64, 1)
6742
      oprot.writeI64(self.userId)
6743
      oprot.writeFieldEnd()
6744
    oprot.writeFieldStop()
6745
    oprot.writeStructEnd()
6746
 
3431 rajveer 6747
  def validate(self):
6748
    return
6749
 
6750
 
594 rajveer 6751
  def __repr__(self):
6752
    L = ['%s=%r' % (key, value)
6753
      for key, value in self.__dict__.iteritems()]
6754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6755
 
6756
  def __eq__(self, other):
6757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6758
 
6759
  def __ne__(self, other):
6760
    return not (self == other)
6761
 
6762
class getDefaultAddressId_result:
6763
  """
6764
  Attributes:
6765
   - success
6766
   - ucx
6767
  """
6768
 
6769
  thrift_spec = (
6770
    (0, TType.I64, 'success', None, None, ), # 0
6771
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6772
  )
6773
 
6774
  def __init__(self, success=None, ucx=None,):
6775
    self.success = success
6776
    self.ucx = ucx
6777
 
6778
  def read(self, iprot):
6779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6781
      return
6782
    iprot.readStructBegin()
6783
    while True:
6784
      (fname, ftype, fid) = iprot.readFieldBegin()
6785
      if ftype == TType.STOP:
6786
        break
6787
      if fid == 0:
6788
        if ftype == TType.I64:
6789
          self.success = iprot.readI64();
6790
        else:
6791
          iprot.skip(ftype)
6792
      elif fid == 1:
6793
        if ftype == TType.STRUCT:
6794
          self.ucx = UserContextException()
6795
          self.ucx.read(iprot)
6796
        else:
6797
          iprot.skip(ftype)
6798
      else:
6799
        iprot.skip(ftype)
6800
      iprot.readFieldEnd()
6801
    iprot.readStructEnd()
6802
 
6803
  def write(self, oprot):
6804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6806
      return
6807
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6808
    if self.success is not None:
594 rajveer 6809
      oprot.writeFieldBegin('success', TType.I64, 0)
6810
      oprot.writeI64(self.success)
6811
      oprot.writeFieldEnd()
3431 rajveer 6812
    if self.ucx is not None:
594 rajveer 6813
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6814
      self.ucx.write(oprot)
6815
      oprot.writeFieldEnd()
6816
    oprot.writeFieldStop()
6817
    oprot.writeStructEnd()
6818
 
3431 rajveer 6819
  def validate(self):
6820
    return
6821
 
6822
 
594 rajveer 6823
  def __repr__(self):
6824
    L = ['%s=%r' % (key, value)
6825
      for key, value in self.__dict__.iteritems()]
6826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6827
 
6828
  def __eq__(self, other):
6829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6830
 
6831
  def __ne__(self, other):
6832
    return not (self == other)
6833
 
785 rajveer 6834
class getDefaultPincode_args:
6835
  """
6836
  Attributes:
6837
   - userId
6838
  """
6839
 
6840
  thrift_spec = (
6841
    None, # 0
6842
    (1, TType.I64, 'userId', None, None, ), # 1
6843
  )
6844
 
6845
  def __init__(self, userId=None,):
6846
    self.userId = userId
6847
 
6848
  def read(self, iprot):
6849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6851
      return
6852
    iprot.readStructBegin()
6853
    while True:
6854
      (fname, ftype, fid) = iprot.readFieldBegin()
6855
      if ftype == TType.STOP:
6856
        break
6857
      if fid == 1:
6858
        if ftype == TType.I64:
6859
          self.userId = iprot.readI64();
6860
        else:
6861
          iprot.skip(ftype)
6862
      else:
6863
        iprot.skip(ftype)
6864
      iprot.readFieldEnd()
6865
    iprot.readStructEnd()
6866
 
6867
  def write(self, oprot):
6868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6870
      return
6871
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6872
    if self.userId is not None:
785 rajveer 6873
      oprot.writeFieldBegin('userId', TType.I64, 1)
6874
      oprot.writeI64(self.userId)
6875
      oprot.writeFieldEnd()
6876
    oprot.writeFieldStop()
6877
    oprot.writeStructEnd()
6878
 
3431 rajveer 6879
  def validate(self):
6880
    return
6881
 
6882
 
785 rajveer 6883
  def __repr__(self):
6884
    L = ['%s=%r' % (key, value)
6885
      for key, value in self.__dict__.iteritems()]
6886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6887
 
6888
  def __eq__(self, other):
6889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6890
 
6891
  def __ne__(self, other):
6892
    return not (self == other)
6893
 
6894
class getDefaultPincode_result:
6895
  """
6896
  Attributes:
6897
   - success
6898
   - ucx
6899
  """
6900
 
6901
  thrift_spec = (
6902
    (0, TType.STRING, 'success', None, None, ), # 0
6903
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6904
  )
6905
 
6906
  def __init__(self, success=None, ucx=None,):
6907
    self.success = success
6908
    self.ucx = ucx
6909
 
6910
  def read(self, iprot):
6911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6913
      return
6914
    iprot.readStructBegin()
6915
    while True:
6916
      (fname, ftype, fid) = iprot.readFieldBegin()
6917
      if ftype == TType.STOP:
6918
        break
6919
      if fid == 0:
6920
        if ftype == TType.STRING:
6921
          self.success = iprot.readString();
6922
        else:
6923
          iprot.skip(ftype)
6924
      elif fid == 1:
6925
        if ftype == TType.STRUCT:
6926
          self.ucx = UserContextException()
6927
          self.ucx.read(iprot)
6928
        else:
6929
          iprot.skip(ftype)
6930
      else:
6931
        iprot.skip(ftype)
6932
      iprot.readFieldEnd()
6933
    iprot.readStructEnd()
6934
 
6935
  def write(self, oprot):
6936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6938
      return
6939
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6940
    if self.success is not None:
785 rajveer 6941
      oprot.writeFieldBegin('success', TType.STRING, 0)
6942
      oprot.writeString(self.success)
6943
      oprot.writeFieldEnd()
3431 rajveer 6944
    if self.ucx is not None:
785 rajveer 6945
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6946
      self.ucx.write(oprot)
6947
      oprot.writeFieldEnd()
6948
    oprot.writeFieldStop()
6949
    oprot.writeStructEnd()
6950
 
3431 rajveer 6951
  def validate(self):
6952
    return
6953
 
6954
 
785 rajveer 6955
  def __repr__(self):
6956
    L = ['%s=%r' % (key, value)
6957
      for key, value in self.__dict__.iteritems()]
6958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6959
 
6960
  def __eq__(self, other):
6961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6962
 
6963
  def __ne__(self, other):
6964
    return not (self == other)
6965
 
1274 varun.gupt 6966
class saveUserCommunication_args:
6967
  """
6968
  Attributes:
6969
   - userId
6970
   - replyTo
6971
   - communicationType
6972
   - orderId
6973
   - airwaybillNo
6974
   - productName
6975
   - subject
6976
   - message
6977
  """
6978
 
6979
  thrift_spec = (
6980
    None, # 0
6981
    (1, TType.I64, 'userId', None, None, ), # 1
6982
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6983
    (3, TType.I64, 'communicationType', None, None, ), # 3
6984
    (4, TType.I64, 'orderId', None, None, ), # 4
6985
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6986
    (6, TType.STRING, 'productName', None, None, ), # 6
6987
    (7, TType.STRING, 'subject', None, None, ), # 7
6988
    (8, TType.STRING, 'message', None, None, ), # 8
6989
  )
6990
 
6991
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6992
    self.userId = userId
6993
    self.replyTo = replyTo
6994
    self.communicationType = communicationType
6995
    self.orderId = orderId
6996
    self.airwaybillNo = airwaybillNo
6997
    self.productName = productName
6998
    self.subject = subject
6999
    self.message = message
7000
 
7001
  def read(self, iprot):
7002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7004
      return
7005
    iprot.readStructBegin()
7006
    while True:
7007
      (fname, ftype, fid) = iprot.readFieldBegin()
7008
      if ftype == TType.STOP:
7009
        break
7010
      if fid == 1:
7011
        if ftype == TType.I64:
7012
          self.userId = iprot.readI64();
7013
        else:
7014
          iprot.skip(ftype)
7015
      elif fid == 2:
7016
        if ftype == TType.STRING:
7017
          self.replyTo = iprot.readString();
7018
        else:
7019
          iprot.skip(ftype)
7020
      elif fid == 3:
7021
        if ftype == TType.I64:
7022
          self.communicationType = iprot.readI64();
7023
        else:
7024
          iprot.skip(ftype)
7025
      elif fid == 4:
7026
        if ftype == TType.I64:
7027
          self.orderId = iprot.readI64();
7028
        else:
7029
          iprot.skip(ftype)
7030
      elif fid == 5:
7031
        if ftype == TType.STRING:
7032
          self.airwaybillNo = iprot.readString();
7033
        else:
7034
          iprot.skip(ftype)
7035
      elif fid == 6:
7036
        if ftype == TType.STRING:
7037
          self.productName = iprot.readString();
7038
        else:
7039
          iprot.skip(ftype)
7040
      elif fid == 7:
7041
        if ftype == TType.STRING:
7042
          self.subject = iprot.readString();
7043
        else:
7044
          iprot.skip(ftype)
7045
      elif fid == 8:
7046
        if ftype == TType.STRING:
7047
          self.message = iprot.readString();
7048
        else:
7049
          iprot.skip(ftype)
7050
      else:
7051
        iprot.skip(ftype)
7052
      iprot.readFieldEnd()
7053
    iprot.readStructEnd()
7054
 
7055
  def write(self, oprot):
7056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7058
      return
7059
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7060
    if self.userId is not None:
1274 varun.gupt 7061
      oprot.writeFieldBegin('userId', TType.I64, 1)
7062
      oprot.writeI64(self.userId)
7063
      oprot.writeFieldEnd()
3431 rajveer 7064
    if self.replyTo is not None:
1274 varun.gupt 7065
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7066
      oprot.writeString(self.replyTo)
7067
      oprot.writeFieldEnd()
3431 rajveer 7068
    if self.communicationType is not None:
1274 varun.gupt 7069
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7070
      oprot.writeI64(self.communicationType)
7071
      oprot.writeFieldEnd()
3431 rajveer 7072
    if self.orderId is not None:
1274 varun.gupt 7073
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7074
      oprot.writeI64(self.orderId)
7075
      oprot.writeFieldEnd()
3431 rajveer 7076
    if self.airwaybillNo is not None:
1274 varun.gupt 7077
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7078
      oprot.writeString(self.airwaybillNo)
7079
      oprot.writeFieldEnd()
3431 rajveer 7080
    if self.productName is not None:
1274 varun.gupt 7081
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7082
      oprot.writeString(self.productName)
7083
      oprot.writeFieldEnd()
3431 rajveer 7084
    if self.subject is not None:
1274 varun.gupt 7085
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7086
      oprot.writeString(self.subject)
7087
      oprot.writeFieldEnd()
3431 rajveer 7088
    if self.message is not None:
1274 varun.gupt 7089
      oprot.writeFieldBegin('message', TType.STRING, 8)
7090
      oprot.writeString(self.message)
7091
      oprot.writeFieldEnd()
7092
    oprot.writeFieldStop()
7093
    oprot.writeStructEnd()
7094
 
3431 rajveer 7095
  def validate(self):
7096
    return
7097
 
7098
 
1274 varun.gupt 7099
  def __repr__(self):
7100
    L = ['%s=%r' % (key, value)
7101
      for key, value in self.__dict__.iteritems()]
7102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7103
 
7104
  def __eq__(self, other):
7105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7106
 
7107
  def __ne__(self, other):
7108
    return not (self == other)
7109
 
7110
class saveUserCommunication_result:
7111
  """
7112
  Attributes:
7113
   - success
7114
   - ucx
7115
  """
7116
 
7117
  thrift_spec = (
7118
    (0, TType.BOOL, 'success', None, None, ), # 0
7119
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7120
  )
7121
 
7122
  def __init__(self, success=None, ucx=None,):
7123
    self.success = success
7124
    self.ucx = ucx
7125
 
7126
  def read(self, iprot):
7127
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7128
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7129
      return
7130
    iprot.readStructBegin()
7131
    while True:
7132
      (fname, ftype, fid) = iprot.readFieldBegin()
7133
      if ftype == TType.STOP:
7134
        break
7135
      if fid == 0:
7136
        if ftype == TType.BOOL:
7137
          self.success = iprot.readBool();
7138
        else:
7139
          iprot.skip(ftype)
7140
      elif fid == 1:
7141
        if ftype == TType.STRUCT:
7142
          self.ucx = UserCommunicationException()
7143
          self.ucx.read(iprot)
7144
        else:
7145
          iprot.skip(ftype)
7146
      else:
7147
        iprot.skip(ftype)
7148
      iprot.readFieldEnd()
7149
    iprot.readStructEnd()
7150
 
7151
  def write(self, oprot):
7152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7154
      return
7155
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7156
    if self.success is not None:
1274 varun.gupt 7157
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7158
      oprot.writeBool(self.success)
7159
      oprot.writeFieldEnd()
3431 rajveer 7160
    if self.ucx is not None:
1274 varun.gupt 7161
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7162
      self.ucx.write(oprot)
7163
      oprot.writeFieldEnd()
7164
    oprot.writeFieldStop()
7165
    oprot.writeStructEnd()
7166
 
3431 rajveer 7167
  def validate(self):
7168
    return
7169
 
7170
 
1274 varun.gupt 7171
  def __repr__(self):
7172
    L = ['%s=%r' % (key, value)
7173
      for key, value in self.__dict__.iteritems()]
7174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7175
 
7176
  def __eq__(self, other):
7177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7178
 
7179
  def __ne__(self, other):
7180
    return not (self == other)
7181
 
1590 varun.gupt 7182
class getUserCommunicationById_args:
7183
  """
7184
  Attributes:
7185
   - id
7186
  """
7187
 
7188
  thrift_spec = (
7189
    None, # 0
7190
    (1, TType.I64, 'id', None, None, ), # 1
7191
  )
7192
 
7193
  def __init__(self, id=None,):
7194
    self.id = id
7195
 
7196
  def read(self, iprot):
7197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7199
      return
7200
    iprot.readStructBegin()
7201
    while True:
7202
      (fname, ftype, fid) = iprot.readFieldBegin()
7203
      if ftype == TType.STOP:
7204
        break
7205
      if fid == 1:
7206
        if ftype == TType.I64:
7207
          self.id = iprot.readI64();
7208
        else:
7209
          iprot.skip(ftype)
7210
      else:
7211
        iprot.skip(ftype)
7212
      iprot.readFieldEnd()
7213
    iprot.readStructEnd()
7214
 
7215
  def write(self, oprot):
7216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7218
      return
7219
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7220
    if self.id is not None:
1590 varun.gupt 7221
      oprot.writeFieldBegin('id', TType.I64, 1)
7222
      oprot.writeI64(self.id)
7223
      oprot.writeFieldEnd()
7224
    oprot.writeFieldStop()
7225
    oprot.writeStructEnd()
7226
 
3431 rajveer 7227
  def validate(self):
7228
    return
7229
 
7230
 
1590 varun.gupt 7231
  def __repr__(self):
7232
    L = ['%s=%r' % (key, value)
7233
      for key, value in self.__dict__.iteritems()]
7234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7235
 
7236
  def __eq__(self, other):
7237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7238
 
7239
  def __ne__(self, other):
7240
    return not (self == other)
7241
 
7242
class getUserCommunicationById_result:
7243
  """
7244
  Attributes:
7245
   - success
7246
   - ucx
7247
  """
7248
 
7249
  thrift_spec = (
7250
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7251
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7252
  )
7253
 
7254
  def __init__(self, success=None, ucx=None,):
7255
    self.success = success
7256
    self.ucx = ucx
7257
 
7258
  def read(self, iprot):
7259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7261
      return
7262
    iprot.readStructBegin()
7263
    while True:
7264
      (fname, ftype, fid) = iprot.readFieldBegin()
7265
      if ftype == TType.STOP:
7266
        break
7267
      if fid == 0:
7268
        if ftype == TType.STRUCT:
7269
          self.success = UserCommunication()
7270
          self.success.read(iprot)
7271
        else:
7272
          iprot.skip(ftype)
7273
      elif fid == 1:
7274
        if ftype == TType.STRUCT:
7275
          self.ucx = UserCommunicationException()
7276
          self.ucx.read(iprot)
7277
        else:
7278
          iprot.skip(ftype)
7279
      else:
7280
        iprot.skip(ftype)
7281
      iprot.readFieldEnd()
7282
    iprot.readStructEnd()
7283
 
7284
  def write(self, oprot):
7285
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7286
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7287
      return
7288
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7289
    if self.success is not None:
1590 varun.gupt 7290
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7291
      self.success.write(oprot)
7292
      oprot.writeFieldEnd()
3431 rajveer 7293
    if self.ucx is not None:
1590 varun.gupt 7294
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7295
      self.ucx.write(oprot)
7296
      oprot.writeFieldEnd()
7297
    oprot.writeFieldStop()
7298
    oprot.writeStructEnd()
7299
 
3431 rajveer 7300
  def validate(self):
7301
    return
7302
 
7303
 
1590 varun.gupt 7304
  def __repr__(self):
7305
    L = ['%s=%r' % (key, value)
7306
      for key, value in self.__dict__.iteritems()]
7307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7308
 
7309
  def __eq__(self, other):
7310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7311
 
7312
  def __ne__(self, other):
7313
    return not (self == other)
7314
 
7315
class getUserCommunicationByUser_args:
7316
  """
7317
  Attributes:
7318
   - userId
7319
  """
7320
 
7321
  thrift_spec = (
7322
    None, # 0
7323
    (1, TType.I64, 'userId', None, None, ), # 1
7324
  )
7325
 
7326
  def __init__(self, userId=None,):
7327
    self.userId = userId
7328
 
7329
  def read(self, iprot):
7330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7332
      return
7333
    iprot.readStructBegin()
7334
    while True:
7335
      (fname, ftype, fid) = iprot.readFieldBegin()
7336
      if ftype == TType.STOP:
7337
        break
7338
      if fid == 1:
7339
        if ftype == TType.I64:
7340
          self.userId = iprot.readI64();
7341
        else:
7342
          iprot.skip(ftype)
7343
      else:
7344
        iprot.skip(ftype)
7345
      iprot.readFieldEnd()
7346
    iprot.readStructEnd()
7347
 
7348
  def write(self, oprot):
7349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7351
      return
7352
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7353
    if self.userId is not None:
1590 varun.gupt 7354
      oprot.writeFieldBegin('userId', TType.I64, 1)
7355
      oprot.writeI64(self.userId)
7356
      oprot.writeFieldEnd()
7357
    oprot.writeFieldStop()
7358
    oprot.writeStructEnd()
7359
 
3431 rajveer 7360
  def validate(self):
7361
    return
7362
 
7363
 
1590 varun.gupt 7364
  def __repr__(self):
7365
    L = ['%s=%r' % (key, value)
7366
      for key, value in self.__dict__.iteritems()]
7367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7368
 
7369
  def __eq__(self, other):
7370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7371
 
7372
  def __ne__(self, other):
7373
    return not (self == other)
7374
 
7375
class getUserCommunicationByUser_result:
7376
  """
7377
  Attributes:
7378
   - success
7379
   - ucx
7380
  """
7381
 
7382
  thrift_spec = (
7383
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7384
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7385
  )
7386
 
7387
  def __init__(self, success=None, ucx=None,):
7388
    self.success = success
7389
    self.ucx = ucx
7390
 
7391
  def read(self, iprot):
7392
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7393
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7394
      return
7395
    iprot.readStructBegin()
7396
    while True:
7397
      (fname, ftype, fid) = iprot.readFieldBegin()
7398
      if ftype == TType.STOP:
7399
        break
7400
      if fid == 0:
7401
        if ftype == TType.LIST:
7402
          self.success = []
3554 varun.gupt 7403
          (_etype52, _size49) = iprot.readListBegin()
7404
          for _i53 in xrange(_size49):
7405
            _elem54 = UserCommunication()
7406
            _elem54.read(iprot)
7407
            self.success.append(_elem54)
1590 varun.gupt 7408
          iprot.readListEnd()
7409
        else:
7410
          iprot.skip(ftype)
7411
      elif fid == 1:
7412
        if ftype == TType.STRUCT:
7413
          self.ucx = UserCommunicationException()
7414
          self.ucx.read(iprot)
7415
        else:
7416
          iprot.skip(ftype)
7417
      else:
7418
        iprot.skip(ftype)
7419
      iprot.readFieldEnd()
7420
    iprot.readStructEnd()
7421
 
7422
  def write(self, oprot):
7423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7425
      return
7426
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7427
    if self.success is not None:
1590 varun.gupt 7428
      oprot.writeFieldBegin('success', TType.LIST, 0)
7429
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7430
      for iter55 in self.success:
7431
        iter55.write(oprot)
1590 varun.gupt 7432
      oprot.writeListEnd()
7433
      oprot.writeFieldEnd()
3431 rajveer 7434
    if self.ucx is not None:
1590 varun.gupt 7435
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7436
      self.ucx.write(oprot)
7437
      oprot.writeFieldEnd()
7438
    oprot.writeFieldStop()
7439
    oprot.writeStructEnd()
7440
 
3431 rajveer 7441
  def validate(self):
7442
    return
7443
 
7444
 
1590 varun.gupt 7445
  def __repr__(self):
7446
    L = ['%s=%r' % (key, value)
7447
      for key, value in self.__dict__.iteritems()]
7448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7449
 
7450
  def __eq__(self, other):
7451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7452
 
7453
  def __ne__(self, other):
7454
    return not (self == other)
7455
 
7456
class getAllUserCommunications_args:
7457
 
7458
  thrift_spec = (
7459
  )
7460
 
7461
  def read(self, iprot):
7462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7464
      return
7465
    iprot.readStructBegin()
7466
    while True:
7467
      (fname, ftype, fid) = iprot.readFieldBegin()
7468
      if ftype == TType.STOP:
7469
        break
7470
      else:
7471
        iprot.skip(ftype)
7472
      iprot.readFieldEnd()
7473
    iprot.readStructEnd()
7474
 
7475
  def write(self, oprot):
7476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7478
      return
7479
    oprot.writeStructBegin('getAllUserCommunications_args')
7480
    oprot.writeFieldStop()
7481
    oprot.writeStructEnd()
7482
 
3431 rajveer 7483
  def validate(self):
7484
    return
7485
 
7486
 
1590 varun.gupt 7487
  def __repr__(self):
7488
    L = ['%s=%r' % (key, value)
7489
      for key, value in self.__dict__.iteritems()]
7490
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7491
 
7492
  def __eq__(self, other):
7493
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7494
 
7495
  def __ne__(self, other):
7496
    return not (self == other)
7497
 
7498
class getAllUserCommunications_result:
7499
  """
7500
  Attributes:
7501
   - success
7502
   - ucx
7503
  """
7504
 
7505
  thrift_spec = (
7506
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7507
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7508
  )
7509
 
7510
  def __init__(self, success=None, ucx=None,):
7511
    self.success = success
7512
    self.ucx = ucx
7513
 
7514
  def read(self, iprot):
7515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7517
      return
7518
    iprot.readStructBegin()
7519
    while True:
7520
      (fname, ftype, fid) = iprot.readFieldBegin()
7521
      if ftype == TType.STOP:
7522
        break
7523
      if fid == 0:
7524
        if ftype == TType.LIST:
7525
          self.success = []
3554 varun.gupt 7526
          (_etype59, _size56) = iprot.readListBegin()
7527
          for _i60 in xrange(_size56):
7528
            _elem61 = UserCommunication()
7529
            _elem61.read(iprot)
7530
            self.success.append(_elem61)
1590 varun.gupt 7531
          iprot.readListEnd()
7532
        else:
7533
          iprot.skip(ftype)
7534
      elif fid == 1:
7535
        if ftype == TType.STRUCT:
7536
          self.ucx = UserCommunicationException()
7537
          self.ucx.read(iprot)
7538
        else:
7539
          iprot.skip(ftype)
7540
      else:
7541
        iprot.skip(ftype)
7542
      iprot.readFieldEnd()
7543
    iprot.readStructEnd()
7544
 
7545
  def write(self, oprot):
7546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7548
      return
7549
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7550
    if self.success is not None:
1590 varun.gupt 7551
      oprot.writeFieldBegin('success', TType.LIST, 0)
7552
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7553
      for iter62 in self.success:
7554
        iter62.write(oprot)
1590 varun.gupt 7555
      oprot.writeListEnd()
7556
      oprot.writeFieldEnd()
3431 rajveer 7557
    if self.ucx is not None:
1590 varun.gupt 7558
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7559
      self.ucx.write(oprot)
7560
      oprot.writeFieldEnd()
7561
    oprot.writeFieldStop()
7562
    oprot.writeStructEnd()
7563
 
3431 rajveer 7564
  def validate(self):
7565
    return
7566
 
7567
 
1590 varun.gupt 7568
  def __repr__(self):
7569
    L = ['%s=%r' % (key, value)
7570
      for key, value in self.__dict__.iteritems()]
7571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7572
 
7573
  def __eq__(self, other):
7574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7575
 
7576
  def __ne__(self, other):
7577
    return not (self == other)
7578
 
1845 vikas 7579
class createMasterAffiliate_args:
7580
  """
7581
  Attributes:
7582
   - name
1859 vikas 7583
   - addedOn
1845 vikas 7584
  """
7585
 
7586
  thrift_spec = (
7587
    None, # 0
7588
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7589
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7590
  )
7591
 
1859 vikas 7592
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7593
    self.name = name
1859 vikas 7594
    self.addedOn = addedOn
1845 vikas 7595
 
7596
  def read(self, iprot):
7597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7599
      return
7600
    iprot.readStructBegin()
7601
    while True:
7602
      (fname, ftype, fid) = iprot.readFieldBegin()
7603
      if ftype == TType.STOP:
7604
        break
7605
      if fid == 1:
7606
        if ftype == TType.STRING:
7607
          self.name = iprot.readString();
7608
        else:
7609
          iprot.skip(ftype)
1859 vikas 7610
      elif fid == 2:
7611
        if ftype == TType.I64:
7612
          self.addedOn = iprot.readI64();
7613
        else:
7614
          iprot.skip(ftype)
1845 vikas 7615
      else:
7616
        iprot.skip(ftype)
7617
      iprot.readFieldEnd()
7618
    iprot.readStructEnd()
7619
 
7620
  def write(self, oprot):
7621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7623
      return
7624
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7625
    if self.name is not None:
1845 vikas 7626
      oprot.writeFieldBegin('name', TType.STRING, 1)
7627
      oprot.writeString(self.name)
7628
      oprot.writeFieldEnd()
3431 rajveer 7629
    if self.addedOn is not None:
1859 vikas 7630
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7631
      oprot.writeI64(self.addedOn)
7632
      oprot.writeFieldEnd()
1845 vikas 7633
    oprot.writeFieldStop()
7634
    oprot.writeStructEnd()
7635
 
3431 rajveer 7636
  def validate(self):
7637
    return
7638
 
7639
 
1845 vikas 7640
  def __repr__(self):
7641
    L = ['%s=%r' % (key, value)
7642
      for key, value in self.__dict__.iteritems()]
7643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7644
 
7645
  def __eq__(self, other):
7646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7647
 
7648
  def __ne__(self, other):
7649
    return not (self == other)
7650
 
7651
class createMasterAffiliate_result:
7652
  """
7653
  Attributes:
7654
   - success
7655
   - utx
7656
  """
7657
 
7658
  thrift_spec = (
7659
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7660
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7661
  )
7662
 
7663
  def __init__(self, success=None, utx=None,):
7664
    self.success = success
7665
    self.utx = utx
7666
 
7667
  def read(self, iprot):
7668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7670
      return
7671
    iprot.readStructBegin()
7672
    while True:
7673
      (fname, ftype, fid) = iprot.readFieldBegin()
7674
      if ftype == TType.STOP:
7675
        break
7676
      if fid == 0:
7677
        if ftype == TType.STRUCT:
7678
          self.success = MasterAffiliate()
7679
          self.success.read(iprot)
7680
        else:
7681
          iprot.skip(ftype)
7682
      elif fid == 1:
7683
        if ftype == TType.STRUCT:
1996 vikas 7684
          self.utx = UserAffiliateException()
1845 vikas 7685
          self.utx.read(iprot)
7686
        else:
7687
          iprot.skip(ftype)
7688
      else:
7689
        iprot.skip(ftype)
7690
      iprot.readFieldEnd()
7691
    iprot.readStructEnd()
7692
 
7693
  def write(self, oprot):
7694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7696
      return
7697
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7698
    if self.success is not None:
1845 vikas 7699
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7700
      self.success.write(oprot)
7701
      oprot.writeFieldEnd()
3431 rajveer 7702
    if self.utx is not None:
1845 vikas 7703
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7704
      self.utx.write(oprot)
7705
      oprot.writeFieldEnd()
7706
    oprot.writeFieldStop()
7707
    oprot.writeStructEnd()
7708
 
3431 rajveer 7709
  def validate(self):
7710
    return
7711
 
7712
 
1845 vikas 7713
  def __repr__(self):
7714
    L = ['%s=%r' % (key, value)
7715
      for key, value in self.__dict__.iteritems()]
7716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7717
 
7718
  def __eq__(self, other):
7719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7720
 
7721
  def __ne__(self, other):
7722
    return not (self == other)
7723
 
1899 vikas 7724
class getAllMasterAffiliates_args:
7725
 
7726
  thrift_spec = (
7727
  )
7728
 
7729
  def read(self, iprot):
7730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7732
      return
7733
    iprot.readStructBegin()
7734
    while True:
7735
      (fname, ftype, fid) = iprot.readFieldBegin()
7736
      if ftype == TType.STOP:
7737
        break
7738
      else:
7739
        iprot.skip(ftype)
7740
      iprot.readFieldEnd()
7741
    iprot.readStructEnd()
7742
 
7743
  def write(self, oprot):
7744
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7745
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7746
      return
7747
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7748
    oprot.writeFieldStop()
7749
    oprot.writeStructEnd()
7750
 
3431 rajveer 7751
  def validate(self):
7752
    return
7753
 
7754
 
1899 vikas 7755
  def __repr__(self):
7756
    L = ['%s=%r' % (key, value)
7757
      for key, value in self.__dict__.iteritems()]
7758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7759
 
7760
  def __eq__(self, other):
7761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7762
 
7763
  def __ne__(self, other):
7764
    return not (self == other)
7765
 
7766
class getAllMasterAffiliates_result:
7767
  """
7768
  Attributes:
7769
   - success
7770
   - utx
7771
  """
7772
 
7773
  thrift_spec = (
7774
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7775
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7776
  )
7777
 
7778
  def __init__(self, success=None, utx=None,):
7779
    self.success = success
7780
    self.utx = utx
7781
 
7782
  def read(self, iprot):
7783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7785
      return
7786
    iprot.readStructBegin()
7787
    while True:
7788
      (fname, ftype, fid) = iprot.readFieldBegin()
7789
      if ftype == TType.STOP:
7790
        break
7791
      if fid == 0:
7792
        if ftype == TType.LIST:
7793
          self.success = []
3554 varun.gupt 7794
          (_etype66, _size63) = iprot.readListBegin()
7795
          for _i67 in xrange(_size63):
7796
            _elem68 = MasterAffiliate()
7797
            _elem68.read(iprot)
7798
            self.success.append(_elem68)
1899 vikas 7799
          iprot.readListEnd()
7800
        else:
7801
          iprot.skip(ftype)
7802
      elif fid == 1:
7803
        if ftype == TType.STRUCT:
1996 vikas 7804
          self.utx = UserAffiliateException()
1899 vikas 7805
          self.utx.read(iprot)
7806
        else:
7807
          iprot.skip(ftype)
7808
      else:
7809
        iprot.skip(ftype)
7810
      iprot.readFieldEnd()
7811
    iprot.readStructEnd()
7812
 
7813
  def write(self, oprot):
7814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7816
      return
7817
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7818
    if self.success is not None:
1899 vikas 7819
      oprot.writeFieldBegin('success', TType.LIST, 0)
7820
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7821
      for iter69 in self.success:
7822
        iter69.write(oprot)
1899 vikas 7823
      oprot.writeListEnd()
7824
      oprot.writeFieldEnd()
3431 rajveer 7825
    if self.utx is not None:
1899 vikas 7826
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7827
      self.utx.write(oprot)
7828
      oprot.writeFieldEnd()
7829
    oprot.writeFieldStop()
7830
    oprot.writeStructEnd()
7831
 
3431 rajveer 7832
  def validate(self):
7833
    return
7834
 
7835
 
1899 vikas 7836
  def __repr__(self):
7837
    L = ['%s=%r' % (key, value)
7838
      for key, value in self.__dict__.iteritems()]
7839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7840
 
7841
  def __eq__(self, other):
7842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7843
 
7844
  def __ne__(self, other):
7845
    return not (self == other)
7846
 
1845 vikas 7847
class getMasterAffiliateById_args:
7848
  """
7849
  Attributes:
7850
   - id
7851
  """
7852
 
7853
  thrift_spec = (
7854
    None, # 0
7855
    (1, TType.I64, 'id', None, None, ), # 1
7856
  )
7857
 
7858
  def __init__(self, id=None,):
7859
    self.id = id
7860
 
7861
  def read(self, iprot):
7862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7864
      return
7865
    iprot.readStructBegin()
7866
    while True:
7867
      (fname, ftype, fid) = iprot.readFieldBegin()
7868
      if ftype == TType.STOP:
7869
        break
7870
      if fid == 1:
7871
        if ftype == TType.I64:
7872
          self.id = iprot.readI64();
7873
        else:
7874
          iprot.skip(ftype)
7875
      else:
7876
        iprot.skip(ftype)
7877
      iprot.readFieldEnd()
7878
    iprot.readStructEnd()
7879
 
7880
  def write(self, oprot):
7881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7883
      return
7884
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7885
    if self.id is not None:
1845 vikas 7886
      oprot.writeFieldBegin('id', TType.I64, 1)
7887
      oprot.writeI64(self.id)
7888
      oprot.writeFieldEnd()
7889
    oprot.writeFieldStop()
7890
    oprot.writeStructEnd()
7891
 
3431 rajveer 7892
  def validate(self):
7893
    return
7894
 
7895
 
1845 vikas 7896
  def __repr__(self):
7897
    L = ['%s=%r' % (key, value)
7898
      for key, value in self.__dict__.iteritems()]
7899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7900
 
7901
  def __eq__(self, other):
7902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7903
 
7904
  def __ne__(self, other):
7905
    return not (self == other)
7906
 
7907
class getMasterAffiliateById_result:
7908
  """
7909
  Attributes:
7910
   - success
7911
   - utx
7912
  """
7913
 
7914
  thrift_spec = (
7915
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7916
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7917
  )
7918
 
7919
  def __init__(self, success=None, utx=None,):
7920
    self.success = success
7921
    self.utx = utx
7922
 
7923
  def read(self, iprot):
7924
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7925
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7926
      return
7927
    iprot.readStructBegin()
7928
    while True:
7929
      (fname, ftype, fid) = iprot.readFieldBegin()
7930
      if ftype == TType.STOP:
7931
        break
7932
      if fid == 0:
7933
        if ftype == TType.STRUCT:
7934
          self.success = MasterAffiliate()
7935
          self.success.read(iprot)
7936
        else:
7937
          iprot.skip(ftype)
7938
      elif fid == 1:
7939
        if ftype == TType.STRUCT:
1996 vikas 7940
          self.utx = UserAffiliateException()
1845 vikas 7941
          self.utx.read(iprot)
7942
        else:
7943
          iprot.skip(ftype)
7944
      else:
7945
        iprot.skip(ftype)
7946
      iprot.readFieldEnd()
7947
    iprot.readStructEnd()
7948
 
7949
  def write(self, oprot):
7950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7952
      return
7953
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7954
    if self.success is not None:
1845 vikas 7955
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7956
      self.success.write(oprot)
7957
      oprot.writeFieldEnd()
3431 rajveer 7958
    if self.utx is not None:
1845 vikas 7959
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7960
      self.utx.write(oprot)
7961
      oprot.writeFieldEnd()
7962
    oprot.writeFieldStop()
7963
    oprot.writeStructEnd()
7964
 
3431 rajveer 7965
  def validate(self):
7966
    return
7967
 
7968
 
1845 vikas 7969
  def __repr__(self):
7970
    L = ['%s=%r' % (key, value)
7971
      for key, value in self.__dict__.iteritems()]
7972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7973
 
7974
  def __eq__(self, other):
7975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7976
 
7977
  def __ne__(self, other):
7978
    return not (self == other)
7979
 
7980
class getMasterAffiliateByName_args:
7981
  """
7982
  Attributes:
7983
   - name
7984
  """
7985
 
7986
  thrift_spec = (
7987
    None, # 0
7988
    (1, TType.STRING, 'name', None, None, ), # 1
7989
  )
7990
 
7991
  def __init__(self, name=None,):
7992
    self.name = name
7993
 
7994
  def read(self, iprot):
7995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7997
      return
7998
    iprot.readStructBegin()
7999
    while True:
8000
      (fname, ftype, fid) = iprot.readFieldBegin()
8001
      if ftype == TType.STOP:
8002
        break
8003
      if fid == 1:
8004
        if ftype == TType.STRING:
8005
          self.name = iprot.readString();
8006
        else:
8007
          iprot.skip(ftype)
8008
      else:
8009
        iprot.skip(ftype)
8010
      iprot.readFieldEnd()
8011
    iprot.readStructEnd()
8012
 
8013
  def write(self, oprot):
8014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8016
      return
8017
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 8018
    if self.name is not None:
1845 vikas 8019
      oprot.writeFieldBegin('name', TType.STRING, 1)
8020
      oprot.writeString(self.name)
8021
      oprot.writeFieldEnd()
8022
    oprot.writeFieldStop()
8023
    oprot.writeStructEnd()
8024
 
3431 rajveer 8025
  def validate(self):
8026
    return
8027
 
8028
 
1845 vikas 8029
  def __repr__(self):
8030
    L = ['%s=%r' % (key, value)
8031
      for key, value in self.__dict__.iteritems()]
8032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8033
 
8034
  def __eq__(self, other):
8035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8036
 
8037
  def __ne__(self, other):
8038
    return not (self == other)
8039
 
8040
class getMasterAffiliateByName_result:
8041
  """
8042
  Attributes:
8043
   - success
8044
   - utx
8045
  """
8046
 
8047
  thrift_spec = (
8048
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 8049
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8050
  )
8051
 
8052
  def __init__(self, success=None, utx=None,):
8053
    self.success = success
8054
    self.utx = utx
8055
 
8056
  def read(self, iprot):
8057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8059
      return
8060
    iprot.readStructBegin()
8061
    while True:
8062
      (fname, ftype, fid) = iprot.readFieldBegin()
8063
      if ftype == TType.STOP:
8064
        break
8065
      if fid == 0:
8066
        if ftype == TType.STRUCT:
8067
          self.success = MasterAffiliate()
8068
          self.success.read(iprot)
8069
        else:
8070
          iprot.skip(ftype)
8071
      elif fid == 1:
8072
        if ftype == TType.STRUCT:
1996 vikas 8073
          self.utx = UserAffiliateException()
1845 vikas 8074
          self.utx.read(iprot)
8075
        else:
8076
          iprot.skip(ftype)
8077
      else:
8078
        iprot.skip(ftype)
8079
      iprot.readFieldEnd()
8080
    iprot.readStructEnd()
8081
 
8082
  def write(self, oprot):
8083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8085
      return
8086
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8087
    if self.success is not None:
1845 vikas 8088
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8089
      self.success.write(oprot)
8090
      oprot.writeFieldEnd()
3431 rajveer 8091
    if self.utx is not None:
1845 vikas 8092
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8093
      self.utx.write(oprot)
8094
      oprot.writeFieldEnd()
8095
    oprot.writeFieldStop()
8096
    oprot.writeStructEnd()
8097
 
3431 rajveer 8098
  def validate(self):
8099
    return
8100
 
8101
 
1845 vikas 8102
  def __repr__(self):
8103
    L = ['%s=%r' % (key, value)
8104
      for key, value in self.__dict__.iteritems()]
8105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8106
 
8107
  def __eq__(self, other):
8108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8109
 
8110
  def __ne__(self, other):
8111
    return not (self == other)
8112
 
8113
class createAffiliate_args:
8114
  """
8115
  Attributes:
8116
   - name
8117
   - url
8118
   - masterAffiliateId
1859 vikas 8119
   - addedOn
1845 vikas 8120
  """
8121
 
8122
  thrift_spec = (
8123
    None, # 0
8124
    (1, TType.STRING, 'name', None, None, ), # 1
8125
    (2, TType.STRING, 'url', None, None, ), # 2
8126
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8127
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8128
  )
8129
 
1859 vikas 8130
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8131
    self.name = name
8132
    self.url = url
8133
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8134
    self.addedOn = addedOn
1845 vikas 8135
 
8136
  def read(self, iprot):
8137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8139
      return
8140
    iprot.readStructBegin()
8141
    while True:
8142
      (fname, ftype, fid) = iprot.readFieldBegin()
8143
      if ftype == TType.STOP:
8144
        break
8145
      if fid == 1:
8146
        if ftype == TType.STRING:
8147
          self.name = iprot.readString();
8148
        else:
8149
          iprot.skip(ftype)
8150
      elif fid == 2:
8151
        if ftype == TType.STRING:
8152
          self.url = iprot.readString();
8153
        else:
8154
          iprot.skip(ftype)
8155
      elif fid == 3:
8156
        if ftype == TType.I64:
8157
          self.masterAffiliateId = iprot.readI64();
8158
        else:
8159
          iprot.skip(ftype)
1859 vikas 8160
      elif fid == 4:
8161
        if ftype == TType.I64:
8162
          self.addedOn = iprot.readI64();
8163
        else:
8164
          iprot.skip(ftype)
1845 vikas 8165
      else:
8166
        iprot.skip(ftype)
8167
      iprot.readFieldEnd()
8168
    iprot.readStructEnd()
8169
 
8170
  def write(self, oprot):
8171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8173
      return
8174
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8175
    if self.name is not None:
1845 vikas 8176
      oprot.writeFieldBegin('name', TType.STRING, 1)
8177
      oprot.writeString(self.name)
8178
      oprot.writeFieldEnd()
3431 rajveer 8179
    if self.url is not None:
1845 vikas 8180
      oprot.writeFieldBegin('url', TType.STRING, 2)
8181
      oprot.writeString(self.url)
8182
      oprot.writeFieldEnd()
3431 rajveer 8183
    if self.masterAffiliateId is not None:
1845 vikas 8184
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8185
      oprot.writeI64(self.masterAffiliateId)
8186
      oprot.writeFieldEnd()
3431 rajveer 8187
    if self.addedOn is not None:
1859 vikas 8188
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8189
      oprot.writeI64(self.addedOn)
8190
      oprot.writeFieldEnd()
1845 vikas 8191
    oprot.writeFieldStop()
8192
    oprot.writeStructEnd()
8193
 
3431 rajveer 8194
  def validate(self):
8195
    return
8196
 
8197
 
1845 vikas 8198
  def __repr__(self):
8199
    L = ['%s=%r' % (key, value)
8200
      for key, value in self.__dict__.iteritems()]
8201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8202
 
8203
  def __eq__(self, other):
8204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8205
 
8206
  def __ne__(self, other):
8207
    return not (self == other)
8208
 
8209
class createAffiliate_result:
8210
  """
8211
  Attributes:
8212
   - success
8213
   - utx
8214
  """
8215
 
8216
  thrift_spec = (
8217
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8218
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8219
  )
8220
 
8221
  def __init__(self, success=None, utx=None,):
8222
    self.success = success
8223
    self.utx = utx
8224
 
8225
  def read(self, iprot):
8226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8228
      return
8229
    iprot.readStructBegin()
8230
    while True:
8231
      (fname, ftype, fid) = iprot.readFieldBegin()
8232
      if ftype == TType.STOP:
8233
        break
8234
      if fid == 0:
8235
        if ftype == TType.STRUCT:
8236
          self.success = Affiliate()
8237
          self.success.read(iprot)
8238
        else:
8239
          iprot.skip(ftype)
8240
      elif fid == 1:
8241
        if ftype == TType.STRUCT:
1996 vikas 8242
          self.utx = UserAffiliateException()
1845 vikas 8243
          self.utx.read(iprot)
8244
        else:
8245
          iprot.skip(ftype)
8246
      else:
8247
        iprot.skip(ftype)
8248
      iprot.readFieldEnd()
8249
    iprot.readStructEnd()
8250
 
8251
  def write(self, oprot):
8252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8254
      return
8255
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8256
    if self.success is not None:
1845 vikas 8257
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8258
      self.success.write(oprot)
8259
      oprot.writeFieldEnd()
3431 rajveer 8260
    if self.utx is not None:
1845 vikas 8261
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8262
      self.utx.write(oprot)
8263
      oprot.writeFieldEnd()
8264
    oprot.writeFieldStop()
8265
    oprot.writeStructEnd()
8266
 
3431 rajveer 8267
  def validate(self):
8268
    return
8269
 
8270
 
1845 vikas 8271
  def __repr__(self):
8272
    L = ['%s=%r' % (key, value)
8273
      for key, value in self.__dict__.iteritems()]
8274
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8275
 
8276
  def __eq__(self, other):
8277
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8278
 
8279
  def __ne__(self, other):
8280
    return not (self == other)
8281
 
8282
class getAffiliateById_args:
8283
  """
8284
  Attributes:
8285
   - id
8286
  """
8287
 
8288
  thrift_spec = (
8289
    None, # 0
8290
    (1, TType.I64, 'id', None, None, ), # 1
8291
  )
8292
 
8293
  def __init__(self, id=None,):
8294
    self.id = id
8295
 
8296
  def read(self, iprot):
8297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8299
      return
8300
    iprot.readStructBegin()
8301
    while True:
8302
      (fname, ftype, fid) = iprot.readFieldBegin()
8303
      if ftype == TType.STOP:
8304
        break
8305
      if fid == 1:
8306
        if ftype == TType.I64:
8307
          self.id = iprot.readI64();
8308
        else:
8309
          iprot.skip(ftype)
8310
      else:
8311
        iprot.skip(ftype)
8312
      iprot.readFieldEnd()
8313
    iprot.readStructEnd()
8314
 
8315
  def write(self, oprot):
8316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8318
      return
8319
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8320
    if self.id is not None:
1845 vikas 8321
      oprot.writeFieldBegin('id', TType.I64, 1)
8322
      oprot.writeI64(self.id)
8323
      oprot.writeFieldEnd()
8324
    oprot.writeFieldStop()
8325
    oprot.writeStructEnd()
8326
 
3431 rajveer 8327
  def validate(self):
8328
    return
8329
 
8330
 
1845 vikas 8331
  def __repr__(self):
8332
    L = ['%s=%r' % (key, value)
8333
      for key, value in self.__dict__.iteritems()]
8334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8335
 
8336
  def __eq__(self, other):
8337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8338
 
8339
  def __ne__(self, other):
8340
    return not (self == other)
8341
 
8342
class getAffiliateById_result:
8343
  """
8344
  Attributes:
8345
   - success
8346
   - utx
8347
  """
8348
 
8349
  thrift_spec = (
8350
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8351
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8352
  )
8353
 
8354
  def __init__(self, success=None, utx=None,):
8355
    self.success = success
8356
    self.utx = utx
8357
 
8358
  def read(self, iprot):
8359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8361
      return
8362
    iprot.readStructBegin()
8363
    while True:
8364
      (fname, ftype, fid) = iprot.readFieldBegin()
8365
      if ftype == TType.STOP:
8366
        break
8367
      if fid == 0:
8368
        if ftype == TType.STRUCT:
8369
          self.success = Affiliate()
8370
          self.success.read(iprot)
8371
        else:
8372
          iprot.skip(ftype)
8373
      elif fid == 1:
8374
        if ftype == TType.STRUCT:
1996 vikas 8375
          self.utx = UserAffiliateException()
1845 vikas 8376
          self.utx.read(iprot)
8377
        else:
8378
          iprot.skip(ftype)
8379
      else:
8380
        iprot.skip(ftype)
8381
      iprot.readFieldEnd()
8382
    iprot.readStructEnd()
8383
 
8384
  def write(self, oprot):
8385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8387
      return
8388
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8389
    if self.success is not None:
1845 vikas 8390
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8391
      self.success.write(oprot)
8392
      oprot.writeFieldEnd()
3431 rajveer 8393
    if self.utx is not None:
1845 vikas 8394
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8395
      self.utx.write(oprot)
8396
      oprot.writeFieldEnd()
8397
    oprot.writeFieldStop()
8398
    oprot.writeStructEnd()
8399
 
3431 rajveer 8400
  def validate(self):
8401
    return
8402
 
8403
 
1845 vikas 8404
  def __repr__(self):
8405
    L = ['%s=%r' % (key, value)
8406
      for key, value in self.__dict__.iteritems()]
8407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8408
 
8409
  def __eq__(self, other):
8410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8411
 
8412
  def __ne__(self, other):
8413
    return not (self == other)
8414
 
8415
class getAffiliateByName_args:
8416
  """
8417
  Attributes:
8418
   - name
8419
  """
8420
 
8421
  thrift_spec = (
8422
    None, # 0
8423
    (1, TType.STRING, 'name', None, None, ), # 1
8424
  )
8425
 
8426
  def __init__(self, name=None,):
8427
    self.name = name
8428
 
8429
  def read(self, iprot):
8430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8432
      return
8433
    iprot.readStructBegin()
8434
    while True:
8435
      (fname, ftype, fid) = iprot.readFieldBegin()
8436
      if ftype == TType.STOP:
8437
        break
8438
      if fid == 1:
8439
        if ftype == TType.STRING:
8440
          self.name = iprot.readString();
8441
        else:
8442
          iprot.skip(ftype)
8443
      else:
8444
        iprot.skip(ftype)
8445
      iprot.readFieldEnd()
8446
    iprot.readStructEnd()
8447
 
8448
  def write(self, oprot):
8449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8451
      return
8452
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8453
    if self.name is not None:
1845 vikas 8454
      oprot.writeFieldBegin('name', TType.STRING, 1)
8455
      oprot.writeString(self.name)
8456
      oprot.writeFieldEnd()
8457
    oprot.writeFieldStop()
8458
    oprot.writeStructEnd()
8459
 
3431 rajveer 8460
  def validate(self):
8461
    return
8462
 
8463
 
1845 vikas 8464
  def __repr__(self):
8465
    L = ['%s=%r' % (key, value)
8466
      for key, value in self.__dict__.iteritems()]
8467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8468
 
8469
  def __eq__(self, other):
8470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8471
 
8472
  def __ne__(self, other):
8473
    return not (self == other)
8474
 
8475
class getAffiliateByName_result:
8476
  """
8477
  Attributes:
8478
   - success
8479
   - utx
8480
  """
8481
 
8482
  thrift_spec = (
8483
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8484
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8485
  )
8486
 
8487
  def __init__(self, success=None, utx=None,):
8488
    self.success = success
8489
    self.utx = utx
8490
 
8491
  def read(self, iprot):
8492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8494
      return
8495
    iprot.readStructBegin()
8496
    while True:
8497
      (fname, ftype, fid) = iprot.readFieldBegin()
8498
      if ftype == TType.STOP:
8499
        break
8500
      if fid == 0:
8501
        if ftype == TType.STRUCT:
8502
          self.success = Affiliate()
8503
          self.success.read(iprot)
8504
        else:
8505
          iprot.skip(ftype)
8506
      elif fid == 1:
8507
        if ftype == TType.STRUCT:
1996 vikas 8508
          self.utx = UserAffiliateException()
1845 vikas 8509
          self.utx.read(iprot)
8510
        else:
8511
          iprot.skip(ftype)
8512
      else:
8513
        iprot.skip(ftype)
8514
      iprot.readFieldEnd()
8515
    iprot.readStructEnd()
8516
 
8517
  def write(self, oprot):
8518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8520
      return
8521
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8522
    if self.success is not None:
1845 vikas 8523
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8524
      self.success.write(oprot)
8525
      oprot.writeFieldEnd()
3431 rajveer 8526
    if self.utx is not None:
1845 vikas 8527
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8528
      self.utx.write(oprot)
8529
      oprot.writeFieldEnd()
8530
    oprot.writeFieldStop()
8531
    oprot.writeStructEnd()
8532
 
3431 rajveer 8533
  def validate(self):
8534
    return
8535
 
8536
 
1845 vikas 8537
  def __repr__(self):
8538
    L = ['%s=%r' % (key, value)
8539
      for key, value in self.__dict__.iteritems()]
8540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8541
 
8542
  def __eq__(self, other):
8543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8544
 
8545
  def __ne__(self, other):
8546
    return not (self == other)
8547
 
1996 vikas 8548
class getTrackerById_args:
1845 vikas 8549
  """
8550
  Attributes:
8551
   - id
8552
  """
8553
 
8554
  thrift_spec = (
8555
    None, # 0
8556
    (1, TType.I64, 'id', None, None, ), # 1
8557
  )
8558
 
8559
  def __init__(self, id=None,):
8560
    self.id = id
8561
 
8562
  def read(self, iprot):
8563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8565
      return
8566
    iprot.readStructBegin()
8567
    while True:
8568
      (fname, ftype, fid) = iprot.readFieldBegin()
8569
      if ftype == TType.STOP:
8570
        break
8571
      if fid == 1:
8572
        if ftype == TType.I64:
8573
          self.id = iprot.readI64();
8574
        else:
8575
          iprot.skip(ftype)
8576
      else:
8577
        iprot.skip(ftype)
8578
      iprot.readFieldEnd()
8579
    iprot.readStructEnd()
8580
 
8581
  def write(self, oprot):
8582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8584
      return
1996 vikas 8585
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8586
    if self.id is not None:
1845 vikas 8587
      oprot.writeFieldBegin('id', TType.I64, 1)
8588
      oprot.writeI64(self.id)
8589
      oprot.writeFieldEnd()
8590
    oprot.writeFieldStop()
8591
    oprot.writeStructEnd()
8592
 
3431 rajveer 8593
  def validate(self):
8594
    return
8595
 
8596
 
1845 vikas 8597
  def __repr__(self):
8598
    L = ['%s=%r' % (key, value)
8599
      for key, value in self.__dict__.iteritems()]
8600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8601
 
8602
  def __eq__(self, other):
8603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8604
 
8605
  def __ne__(self, other):
8606
    return not (self == other)
8607
 
8608
class getTrackerById_result:
8609
  """
8610
  Attributes:
8611
   - success
8612
   - utx
8613
  """
8614
 
8615
  thrift_spec = (
8616
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8617
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8618
  )
8619
 
8620
  def __init__(self, success=None, utx=None,):
8621
    self.success = success
8622
    self.utx = utx
8623
 
8624
  def read(self, iprot):
8625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8627
      return
8628
    iprot.readStructBegin()
8629
    while True:
8630
      (fname, ftype, fid) = iprot.readFieldBegin()
8631
      if ftype == TType.STOP:
8632
        break
8633
      if fid == 0:
8634
        if ftype == TType.STRUCT:
8635
          self.success = Tracker()
8636
          self.success.read(iprot)
8637
        else:
8638
          iprot.skip(ftype)
8639
      elif fid == 1:
8640
        if ftype == TType.STRUCT:
1996 vikas 8641
          self.utx = UserAffiliateException()
1845 vikas 8642
          self.utx.read(iprot)
8643
        else:
8644
          iprot.skip(ftype)
8645
      else:
8646
        iprot.skip(ftype)
8647
      iprot.readFieldEnd()
8648
    iprot.readStructEnd()
8649
 
8650
  def write(self, oprot):
8651
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8652
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8653
      return
8654
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8655
    if self.success is not None:
1845 vikas 8656
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8657
      self.success.write(oprot)
8658
      oprot.writeFieldEnd()
3431 rajveer 8659
    if self.utx is not None:
1845 vikas 8660
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8661
      self.utx.write(oprot)
8662
      oprot.writeFieldEnd()
8663
    oprot.writeFieldStop()
8664
    oprot.writeStructEnd()
8665
 
3431 rajveer 8666
  def validate(self):
8667
    return
8668
 
8669
 
1845 vikas 8670
  def __repr__(self):
8671
    L = ['%s=%r' % (key, value)
8672
      for key, value in self.__dict__.iteritems()]
8673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8674
 
8675
  def __eq__(self, other):
8676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8677
 
8678
  def __ne__(self, other):
8679
    return not (self == other)
8680
 
1996 vikas 8681
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8682
  """
8683
  Attributes:
1996 vikas 8684
   - id
1845 vikas 8685
  """
8686
 
8687
  thrift_spec = (
8688
    None, # 0
1996 vikas 8689
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8690
  )
8691
 
1996 vikas 8692
  def __init__(self, id=None,):
8693
    self.id = id
1845 vikas 8694
 
8695
  def read(self, iprot):
8696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8698
      return
8699
    iprot.readStructBegin()
8700
    while True:
8701
      (fname, ftype, fid) = iprot.readFieldBegin()
8702
      if ftype == TType.STOP:
8703
        break
8704
      if fid == 1:
8705
        if ftype == TType.I64:
1996 vikas 8706
          self.id = iprot.readI64();
1845 vikas 8707
        else:
8708
          iprot.skip(ftype)
8709
      else:
8710
        iprot.skip(ftype)
8711
      iprot.readFieldEnd()
8712
    iprot.readStructEnd()
8713
 
8714
  def write(self, oprot):
8715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8717
      return
1996 vikas 8718
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8719
    if self.id is not None:
1996 vikas 8720
      oprot.writeFieldBegin('id', TType.I64, 1)
8721
      oprot.writeI64(self.id)
1845 vikas 8722
      oprot.writeFieldEnd()
8723
    oprot.writeFieldStop()
8724
    oprot.writeStructEnd()
8725
 
3431 rajveer 8726
  def validate(self):
8727
    return
8728
 
8729
 
1845 vikas 8730
  def __repr__(self):
8731
    L = ['%s=%r' % (key, value)
8732
      for key, value in self.__dict__.iteritems()]
8733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8734
 
8735
  def __eq__(self, other):
8736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8737
 
8738
  def __ne__(self, other):
8739
    return not (self == other)
8740
 
1996 vikas 8741
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8742
  """
8743
  Attributes:
8744
   - success
8745
   - utx
8746
  """
8747
 
8748
  thrift_spec = (
1996 vikas 8749
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8750
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8751
  )
8752
 
8753
  def __init__(self, success=None, utx=None,):
8754
    self.success = success
8755
    self.utx = utx
8756
 
8757
  def read(self, iprot):
8758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8760
      return
8761
    iprot.readStructBegin()
8762
    while True:
8763
      (fname, ftype, fid) = iprot.readFieldBegin()
8764
      if ftype == TType.STOP:
8765
        break
8766
      if fid == 0:
8767
        if ftype == TType.LIST:
8768
          self.success = []
3554 varun.gupt 8769
          (_etype73, _size70) = iprot.readListBegin()
8770
          for _i74 in xrange(_size70):
8771
            _elem75 = Affiliate()
8772
            _elem75.read(iprot)
8773
            self.success.append(_elem75)
1845 vikas 8774
          iprot.readListEnd()
8775
        else:
8776
          iprot.skip(ftype)
8777
      elif fid == 1:
8778
        if ftype == TType.STRUCT:
1996 vikas 8779
          self.utx = UserAffiliateException()
1845 vikas 8780
          self.utx.read(iprot)
8781
        else:
8782
          iprot.skip(ftype)
8783
      else:
8784
        iprot.skip(ftype)
8785
      iprot.readFieldEnd()
8786
    iprot.readStructEnd()
8787
 
8788
  def write(self, oprot):
8789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8791
      return
1996 vikas 8792
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8793
    if self.success is not None:
1845 vikas 8794
      oprot.writeFieldBegin('success', TType.LIST, 0)
8795
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 8796
      for iter76 in self.success:
8797
        iter76.write(oprot)
1845 vikas 8798
      oprot.writeListEnd()
8799
      oprot.writeFieldEnd()
3431 rajveer 8800
    if self.utx is not None:
1845 vikas 8801
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8802
      self.utx.write(oprot)
8803
      oprot.writeFieldEnd()
8804
    oprot.writeFieldStop()
8805
    oprot.writeStructEnd()
8806
 
3431 rajveer 8807
  def validate(self):
8808
    return
8809
 
8810
 
1845 vikas 8811
  def __repr__(self):
8812
    L = ['%s=%r' % (key, value)
8813
      for key, value in self.__dict__.iteritems()]
8814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8815
 
8816
  def __eq__(self, other):
8817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8818
 
8819
  def __ne__(self, other):
8820
    return not (self == other)
8821
 
8822
class addTrackLog_args:
8823
  """
8824
  Attributes:
1996 vikas 8825
   - affiliateId
1845 vikas 8826
   - userId
8827
   - event
8828
   - url
8829
   - data
1859 vikas 8830
   - addedOn
1845 vikas 8831
  """
8832
 
8833
  thrift_spec = (
8834
    None, # 0
1996 vikas 8835
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8836
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8837
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8838
    (4, TType.STRING, 'url', None, None, ), # 4
8839
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8840
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8841
  )
8842
 
1996 vikas 8843
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8844
    self.affiliateId = affiliateId
1845 vikas 8845
    self.userId = userId
8846
    self.event = event
8847
    self.url = url
8848
    self.data = data
1859 vikas 8849
    self.addedOn = addedOn
1845 vikas 8850
 
8851
  def read(self, iprot):
8852
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8853
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8854
      return
8855
    iprot.readStructBegin()
8856
    while True:
8857
      (fname, ftype, fid) = iprot.readFieldBegin()
8858
      if ftype == TType.STOP:
8859
        break
8860
      if fid == 1:
8861
        if ftype == TType.I64:
1996 vikas 8862
          self.affiliateId = iprot.readI64();
1845 vikas 8863
        else:
8864
          iprot.skip(ftype)
8865
      elif fid == 2:
8866
        if ftype == TType.I64:
8867
          self.userId = iprot.readI64();
8868
        else:
8869
          iprot.skip(ftype)
8870
      elif fid == 3:
3378 vikas 8871
        if ftype == TType.I32:
8872
          self.event = iprot.readI32();
1845 vikas 8873
        else:
8874
          iprot.skip(ftype)
8875
      elif fid == 4:
8876
        if ftype == TType.STRING:
8877
          self.url = iprot.readString();
8878
        else:
8879
          iprot.skip(ftype)
8880
      elif fid == 5:
8881
        if ftype == TType.STRING:
8882
          self.data = iprot.readString();
8883
        else:
8884
          iprot.skip(ftype)
1859 vikas 8885
      elif fid == 6:
8886
        if ftype == TType.I64:
8887
          self.addedOn = iprot.readI64();
8888
        else:
8889
          iprot.skip(ftype)
1845 vikas 8890
      else:
8891
        iprot.skip(ftype)
8892
      iprot.readFieldEnd()
8893
    iprot.readStructEnd()
8894
 
8895
  def write(self, oprot):
8896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8898
      return
8899
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8900
    if self.affiliateId is not None:
1996 vikas 8901
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8902
      oprot.writeI64(self.affiliateId)
1845 vikas 8903
      oprot.writeFieldEnd()
3431 rajveer 8904
    if self.userId is not None:
1845 vikas 8905
      oprot.writeFieldBegin('userId', TType.I64, 2)
8906
      oprot.writeI64(self.userId)
8907
      oprot.writeFieldEnd()
3431 rajveer 8908
    if self.event is not None:
3378 vikas 8909
      oprot.writeFieldBegin('event', TType.I32, 3)
8910
      oprot.writeI32(self.event)
1845 vikas 8911
      oprot.writeFieldEnd()
3431 rajveer 8912
    if self.url is not None:
1845 vikas 8913
      oprot.writeFieldBegin('url', TType.STRING, 4)
8914
      oprot.writeString(self.url)
8915
      oprot.writeFieldEnd()
3431 rajveer 8916
    if self.data is not None:
1845 vikas 8917
      oprot.writeFieldBegin('data', TType.STRING, 5)
8918
      oprot.writeString(self.data)
8919
      oprot.writeFieldEnd()
3431 rajveer 8920
    if self.addedOn is not None:
1859 vikas 8921
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8922
      oprot.writeI64(self.addedOn)
8923
      oprot.writeFieldEnd()
1845 vikas 8924
    oprot.writeFieldStop()
8925
    oprot.writeStructEnd()
8926
 
3431 rajveer 8927
  def validate(self):
8928
    return
8929
 
8930
 
1845 vikas 8931
  def __repr__(self):
8932
    L = ['%s=%r' % (key, value)
8933
      for key, value in self.__dict__.iteritems()]
8934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8935
 
8936
  def __eq__(self, other):
8937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8938
 
8939
  def __ne__(self, other):
8940
    return not (self == other)
8941
 
8942
class addTrackLog_result:
8943
  """
8944
  Attributes:
8945
   - success
8946
   - utx
8947
  """
8948
 
8949
  thrift_spec = (
8950
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8951
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8952
  )
8953
 
8954
  def __init__(self, success=None, utx=None,):
8955
    self.success = success
8956
    self.utx = utx
8957
 
8958
  def read(self, iprot):
8959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8961
      return
8962
    iprot.readStructBegin()
8963
    while True:
8964
      (fname, ftype, fid) = iprot.readFieldBegin()
8965
      if ftype == TType.STOP:
8966
        break
8967
      if fid == 0:
8968
        if ftype == TType.I64:
8969
          self.success = iprot.readI64();
8970
        else:
8971
          iprot.skip(ftype)
8972
      elif fid == 1:
8973
        if ftype == TType.STRUCT:
1996 vikas 8974
          self.utx = UserAffiliateException()
1845 vikas 8975
          self.utx.read(iprot)
8976
        else:
8977
          iprot.skip(ftype)
8978
      else:
8979
        iprot.skip(ftype)
8980
      iprot.readFieldEnd()
8981
    iprot.readStructEnd()
8982
 
8983
  def write(self, oprot):
8984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8986
      return
8987
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8988
    if self.success is not None:
1845 vikas 8989
      oprot.writeFieldBegin('success', TType.I64, 0)
8990
      oprot.writeI64(self.success)
8991
      oprot.writeFieldEnd()
3431 rajveer 8992
    if self.utx is not None:
1845 vikas 8993
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8994
      self.utx.write(oprot)
8995
      oprot.writeFieldEnd()
8996
    oprot.writeFieldStop()
8997
    oprot.writeStructEnd()
8998
 
3431 rajveer 8999
  def validate(self):
9000
    return
9001
 
9002
 
1845 vikas 9003
  def __repr__(self):
9004
    L = ['%s=%r' % (key, value)
9005
      for key, value in self.__dict__.iteritems()]
9006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9007
 
9008
  def __eq__(self, other):
9009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9010
 
9011
  def __ne__(self, other):
9012
    return not (self == other)
9013
 
9014
class getTrackLogById_args:
9015
  """
9016
  Attributes:
9017
   - id
9018
  """
9019
 
9020
  thrift_spec = (
9021
    None, # 0
9022
    (1, TType.I64, 'id', None, None, ), # 1
9023
  )
9024
 
9025
  def __init__(self, id=None,):
9026
    self.id = id
9027
 
9028
  def read(self, iprot):
9029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9031
      return
9032
    iprot.readStructBegin()
9033
    while True:
9034
      (fname, ftype, fid) = iprot.readFieldBegin()
9035
      if ftype == TType.STOP:
9036
        break
9037
      if fid == 1:
9038
        if ftype == TType.I64:
9039
          self.id = iprot.readI64();
9040
        else:
9041
          iprot.skip(ftype)
9042
      else:
9043
        iprot.skip(ftype)
9044
      iprot.readFieldEnd()
9045
    iprot.readStructEnd()
9046
 
9047
  def write(self, oprot):
9048
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9049
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9050
      return
9051
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9052
    if self.id is not None:
1845 vikas 9053
      oprot.writeFieldBegin('id', TType.I64, 1)
9054
      oprot.writeI64(self.id)
9055
      oprot.writeFieldEnd()
9056
    oprot.writeFieldStop()
9057
    oprot.writeStructEnd()
9058
 
3431 rajveer 9059
  def validate(self):
9060
    return
9061
 
9062
 
1845 vikas 9063
  def __repr__(self):
9064
    L = ['%s=%r' % (key, value)
9065
      for key, value in self.__dict__.iteritems()]
9066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9067
 
9068
  def __eq__(self, other):
9069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9070
 
9071
  def __ne__(self, other):
9072
    return not (self == other)
9073
 
9074
class getTrackLogById_result:
9075
  """
9076
  Attributes:
9077
   - success
9078
   - utx
9079
  """
9080
 
9081
  thrift_spec = (
9082
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9083
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9084
  )
9085
 
9086
  def __init__(self, success=None, utx=None,):
9087
    self.success = success
9088
    self.utx = utx
9089
 
9090
  def read(self, iprot):
9091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9093
      return
9094
    iprot.readStructBegin()
9095
    while True:
9096
      (fname, ftype, fid) = iprot.readFieldBegin()
9097
      if ftype == TType.STOP:
9098
        break
9099
      if fid == 0:
9100
        if ftype == TType.STRUCT:
9101
          self.success = TrackLog()
9102
          self.success.read(iprot)
9103
        else:
9104
          iprot.skip(ftype)
9105
      elif fid == 1:
9106
        if ftype == TType.STRUCT:
1996 vikas 9107
          self.utx = UserAffiliateException()
1845 vikas 9108
          self.utx.read(iprot)
9109
        else:
9110
          iprot.skip(ftype)
9111
      else:
9112
        iprot.skip(ftype)
9113
      iprot.readFieldEnd()
9114
    iprot.readStructEnd()
9115
 
9116
  def write(self, oprot):
9117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9119
      return
9120
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9121
    if self.success is not None:
1845 vikas 9122
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9123
      self.success.write(oprot)
9124
      oprot.writeFieldEnd()
3431 rajveer 9125
    if self.utx is not None:
1845 vikas 9126
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9127
      self.utx.write(oprot)
9128
      oprot.writeFieldEnd()
9129
    oprot.writeFieldStop()
9130
    oprot.writeStructEnd()
9131
 
3431 rajveer 9132
  def validate(self):
9133
    return
9134
 
9135
 
1845 vikas 9136
  def __repr__(self):
9137
    L = ['%s=%r' % (key, value)
9138
      for key, value in self.__dict__.iteritems()]
9139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9140
 
9141
  def __eq__(self, other):
9142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9143
 
9144
  def __ne__(self, other):
9145
    return not (self == other)
9146
 
1996 vikas 9147
class getTrackLogsByAffiliate_args:
1845 vikas 9148
  """
9149
  Attributes:
1996 vikas 9150
   - affiliateId
3293 vikas 9151
   - startDate
9152
   - endDate
1845 vikas 9153
  """
9154
 
9155
  thrift_spec = (
9156
    None, # 0
1996 vikas 9157
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9158
    (2, TType.I64, 'startDate', None, None, ), # 2
9159
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9160
  )
9161
 
3293 vikas 9162
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9163
    self.affiliateId = affiliateId
3293 vikas 9164
    self.startDate = startDate
9165
    self.endDate = endDate
1845 vikas 9166
 
9167
  def read(self, iprot):
9168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9170
      return
9171
    iprot.readStructBegin()
9172
    while True:
9173
      (fname, ftype, fid) = iprot.readFieldBegin()
9174
      if ftype == TType.STOP:
9175
        break
9176
      if fid == 1:
9177
        if ftype == TType.I64:
1996 vikas 9178
          self.affiliateId = iprot.readI64();
1845 vikas 9179
        else:
9180
          iprot.skip(ftype)
3293 vikas 9181
      elif fid == 2:
9182
        if ftype == TType.I64:
9183
          self.startDate = iprot.readI64();
9184
        else:
9185
          iprot.skip(ftype)
9186
      elif fid == 3:
9187
        if ftype == TType.I64:
9188
          self.endDate = iprot.readI64();
9189
        else:
9190
          iprot.skip(ftype)
1845 vikas 9191
      else:
9192
        iprot.skip(ftype)
9193
      iprot.readFieldEnd()
9194
    iprot.readStructEnd()
9195
 
9196
  def write(self, oprot):
9197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9199
      return
1996 vikas 9200
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9201
    if self.affiliateId is not None:
1996 vikas 9202
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9203
      oprot.writeI64(self.affiliateId)
1845 vikas 9204
      oprot.writeFieldEnd()
3431 rajveer 9205
    if self.startDate is not None:
3293 vikas 9206
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9207
      oprot.writeI64(self.startDate)
9208
      oprot.writeFieldEnd()
3431 rajveer 9209
    if self.endDate is not None:
3293 vikas 9210
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9211
      oprot.writeI64(self.endDate)
9212
      oprot.writeFieldEnd()
1845 vikas 9213
    oprot.writeFieldStop()
9214
    oprot.writeStructEnd()
9215
 
3431 rajveer 9216
  def validate(self):
9217
    return
9218
 
9219
 
1845 vikas 9220
  def __repr__(self):
9221
    L = ['%s=%r' % (key, value)
9222
      for key, value in self.__dict__.iteritems()]
9223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9224
 
9225
  def __eq__(self, other):
9226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9227
 
9228
  def __ne__(self, other):
9229
    return not (self == other)
9230
 
1996 vikas 9231
class getTrackLogsByAffiliate_result:
1845 vikas 9232
  """
9233
  Attributes:
9234
   - success
9235
   - utx
9236
  """
9237
 
9238
  thrift_spec = (
9239
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9240
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9241
  )
9242
 
9243
  def __init__(self, success=None, utx=None,):
9244
    self.success = success
9245
    self.utx = utx
9246
 
9247
  def read(self, iprot):
9248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9250
      return
9251
    iprot.readStructBegin()
9252
    while True:
9253
      (fname, ftype, fid) = iprot.readFieldBegin()
9254
      if ftype == TType.STOP:
9255
        break
9256
      if fid == 0:
9257
        if ftype == TType.LIST:
9258
          self.success = []
3554 varun.gupt 9259
          (_etype80, _size77) = iprot.readListBegin()
9260
          for _i81 in xrange(_size77):
9261
            _elem82 = TrackLog()
9262
            _elem82.read(iprot)
9263
            self.success.append(_elem82)
1845 vikas 9264
          iprot.readListEnd()
9265
        else:
9266
          iprot.skip(ftype)
9267
      elif fid == 1:
9268
        if ftype == TType.STRUCT:
1996 vikas 9269
          self.utx = UserAffiliateException()
1845 vikas 9270
          self.utx.read(iprot)
9271
        else:
9272
          iprot.skip(ftype)
9273
      else:
9274
        iprot.skip(ftype)
9275
      iprot.readFieldEnd()
9276
    iprot.readStructEnd()
9277
 
9278
  def write(self, oprot):
9279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9281
      return
1996 vikas 9282
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9283
    if self.success is not None:
1845 vikas 9284
      oprot.writeFieldBegin('success', TType.LIST, 0)
9285
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9286
      for iter83 in self.success:
9287
        iter83.write(oprot)
1845 vikas 9288
      oprot.writeListEnd()
9289
      oprot.writeFieldEnd()
3431 rajveer 9290
    if self.utx is not None:
1845 vikas 9291
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9292
      self.utx.write(oprot)
9293
      oprot.writeFieldEnd()
9294
    oprot.writeFieldStop()
9295
    oprot.writeStructEnd()
9296
 
3431 rajveer 9297
  def validate(self):
9298
    return
9299
 
9300
 
1845 vikas 9301
  def __repr__(self):
9302
    L = ['%s=%r' % (key, value)
9303
      for key, value in self.__dict__.iteritems()]
9304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9305
 
9306
  def __eq__(self, other):
9307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9308
 
9309
  def __ne__(self, other):
9310
    return not (self == other)
9311
 
9312
class getTrackLogsByUser_args:
9313
  """
9314
  Attributes:
9315
   - userId
9316
  """
9317
 
9318
  thrift_spec = (
9319
    None, # 0
9320
    (1, TType.I64, 'userId', None, None, ), # 1
9321
  )
9322
 
9323
  def __init__(self, userId=None,):
9324
    self.userId = userId
9325
 
9326
  def read(self, iprot):
9327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9329
      return
9330
    iprot.readStructBegin()
9331
    while True:
9332
      (fname, ftype, fid) = iprot.readFieldBegin()
9333
      if ftype == TType.STOP:
9334
        break
9335
      if fid == 1:
9336
        if ftype == TType.I64:
9337
          self.userId = iprot.readI64();
9338
        else:
9339
          iprot.skip(ftype)
9340
      else:
9341
        iprot.skip(ftype)
9342
      iprot.readFieldEnd()
9343
    iprot.readStructEnd()
9344
 
9345
  def write(self, oprot):
9346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9348
      return
9349
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9350
    if self.userId is not None:
1845 vikas 9351
      oprot.writeFieldBegin('userId', TType.I64, 1)
9352
      oprot.writeI64(self.userId)
9353
      oprot.writeFieldEnd()
9354
    oprot.writeFieldStop()
9355
    oprot.writeStructEnd()
9356
 
3431 rajveer 9357
  def validate(self):
9358
    return
9359
 
9360
 
1845 vikas 9361
  def __repr__(self):
9362
    L = ['%s=%r' % (key, value)
9363
      for key, value in self.__dict__.iteritems()]
9364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9365
 
9366
  def __eq__(self, other):
9367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9368
 
9369
  def __ne__(self, other):
9370
    return not (self == other)
9371
 
9372
class getTrackLogsByUser_result:
9373
  """
9374
  Attributes:
9375
   - success
9376
   - utx
9377
  """
9378
 
9379
  thrift_spec = (
9380
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9381
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9382
  )
9383
 
9384
  def __init__(self, success=None, utx=None,):
9385
    self.success = success
9386
    self.utx = utx
9387
 
9388
  def read(self, iprot):
9389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9391
      return
9392
    iprot.readStructBegin()
9393
    while True:
9394
      (fname, ftype, fid) = iprot.readFieldBegin()
9395
      if ftype == TType.STOP:
9396
        break
9397
      if fid == 0:
9398
        if ftype == TType.LIST:
9399
          self.success = []
3554 varun.gupt 9400
          (_etype87, _size84) = iprot.readListBegin()
9401
          for _i88 in xrange(_size84):
9402
            _elem89 = TrackLog()
9403
            _elem89.read(iprot)
9404
            self.success.append(_elem89)
1845 vikas 9405
          iprot.readListEnd()
9406
        else:
9407
          iprot.skip(ftype)
9408
      elif fid == 1:
9409
        if ftype == TType.STRUCT:
1996 vikas 9410
          self.utx = UserAffiliateException()
1845 vikas 9411
          self.utx.read(iprot)
9412
        else:
9413
          iprot.skip(ftype)
9414
      else:
9415
        iprot.skip(ftype)
9416
      iprot.readFieldEnd()
9417
    iprot.readStructEnd()
9418
 
9419
  def write(self, oprot):
9420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9422
      return
9423
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9424
    if self.success is not None:
1845 vikas 9425
      oprot.writeFieldBegin('success', TType.LIST, 0)
9426
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9427
      for iter90 in self.success:
9428
        iter90.write(oprot)
1845 vikas 9429
      oprot.writeListEnd()
9430
      oprot.writeFieldEnd()
3431 rajveer 9431
    if self.utx is not None:
1845 vikas 9432
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9433
      self.utx.write(oprot)
9434
      oprot.writeFieldEnd()
9435
    oprot.writeFieldStop()
9436
    oprot.writeStructEnd()
9437
 
3431 rajveer 9438
  def validate(self):
9439
    return
9440
 
9441
 
1845 vikas 9442
  def __repr__(self):
9443
    L = ['%s=%r' % (key, value)
9444
      for key, value in self.__dict__.iteritems()]
9445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9446
 
9447
  def __eq__(self, other):
9448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9449
 
9450
  def __ne__(self, other):
9451
    return not (self == other)
9452
 
9453
class getTrackLogs_args:
9454
  """
9455
  Attributes:
9456
   - userId
9457
   - event
9458
   - url
9459
  """
9460
 
9461
  thrift_spec = (
9462
    None, # 0
1996 vikas 9463
    (1, TType.I64, 'userId', None, None, ), # 1
9464
    (2, TType.STRING, 'event', None, None, ), # 2
9465
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9466
  )
9467
 
1996 vikas 9468
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9469
    self.userId = userId
9470
    self.event = event
9471
    self.url = url
9472
 
9473
  def read(self, iprot):
9474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9476
      return
9477
    iprot.readStructBegin()
9478
    while True:
9479
      (fname, ftype, fid) = iprot.readFieldBegin()
9480
      if ftype == TType.STOP:
9481
        break
9482
      if fid == 1:
9483
        if ftype == TType.I64:
1996 vikas 9484
          self.userId = iprot.readI64();
1845 vikas 9485
        else:
9486
          iprot.skip(ftype)
9487
      elif fid == 2:
9488
        if ftype == TType.STRING:
9489
          self.event = iprot.readString();
9490
        else:
9491
          iprot.skip(ftype)
1996 vikas 9492
      elif fid == 3:
1845 vikas 9493
        if ftype == TType.STRING:
9494
          self.url = iprot.readString();
9495
        else:
9496
          iprot.skip(ftype)
9497
      else:
9498
        iprot.skip(ftype)
9499
      iprot.readFieldEnd()
9500
    iprot.readStructEnd()
9501
 
9502
  def write(self, oprot):
9503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9505
      return
9506
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9507
    if self.userId is not None:
1996 vikas 9508
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9509
      oprot.writeI64(self.userId)
9510
      oprot.writeFieldEnd()
3431 rajveer 9511
    if self.event is not None:
1996 vikas 9512
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9513
      oprot.writeString(self.event)
9514
      oprot.writeFieldEnd()
3431 rajveer 9515
    if self.url is not None:
1996 vikas 9516
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9517
      oprot.writeString(self.url)
9518
      oprot.writeFieldEnd()
9519
    oprot.writeFieldStop()
9520
    oprot.writeStructEnd()
9521
 
3431 rajveer 9522
  def validate(self):
9523
    return
9524
 
9525
 
1845 vikas 9526
  def __repr__(self):
9527
    L = ['%s=%r' % (key, value)
9528
      for key, value in self.__dict__.iteritems()]
9529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9530
 
9531
  def __eq__(self, other):
9532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9533
 
9534
  def __ne__(self, other):
9535
    return not (self == other)
9536
 
9537
class getTrackLogs_result:
9538
  """
9539
  Attributes:
9540
   - success
9541
   - utx
9542
  """
9543
 
9544
  thrift_spec = (
9545
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9546
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9547
  )
9548
 
9549
  def __init__(self, success=None, utx=None,):
9550
    self.success = success
9551
    self.utx = utx
9552
 
9553
  def read(self, iprot):
9554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9556
      return
9557
    iprot.readStructBegin()
9558
    while True:
9559
      (fname, ftype, fid) = iprot.readFieldBegin()
9560
      if ftype == TType.STOP:
9561
        break
9562
      if fid == 0:
9563
        if ftype == TType.LIST:
9564
          self.success = []
3554 varun.gupt 9565
          (_etype94, _size91) = iprot.readListBegin()
9566
          for _i95 in xrange(_size91):
9567
            _elem96 = TrackLog()
9568
            _elem96.read(iprot)
9569
            self.success.append(_elem96)
1845 vikas 9570
          iprot.readListEnd()
9571
        else:
9572
          iprot.skip(ftype)
9573
      elif fid == 1:
9574
        if ftype == TType.STRUCT:
1996 vikas 9575
          self.utx = UserAffiliateException()
1845 vikas 9576
          self.utx.read(iprot)
9577
        else:
9578
          iprot.skip(ftype)
9579
      else:
9580
        iprot.skip(ftype)
9581
      iprot.readFieldEnd()
9582
    iprot.readStructEnd()
9583
 
9584
  def write(self, oprot):
9585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9587
      return
9588
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9589
    if self.success is not None:
1845 vikas 9590
      oprot.writeFieldBegin('success', TType.LIST, 0)
9591
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9592
      for iter97 in self.success:
9593
        iter97.write(oprot)
1845 vikas 9594
      oprot.writeListEnd()
9595
      oprot.writeFieldEnd()
3431 rajveer 9596
    if self.utx is not None:
1845 vikas 9597
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9598
      self.utx.write(oprot)
9599
      oprot.writeFieldEnd()
9600
    oprot.writeFieldStop()
9601
    oprot.writeStructEnd()
9602
 
3431 rajveer 9603
  def validate(self):
9604
    return
9605
 
9606
 
1845 vikas 9607
  def __repr__(self):
9608
    L = ['%s=%r' % (key, value)
9609
      for key, value in self.__dict__.iteritems()]
9610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9611
 
9612
  def __eq__(self, other):
9613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9614
 
9615
  def __ne__(self, other):
9616
    return not (self == other)
9617
 
559 chandransh 9618
class createCart_args:
94 ashish 9619
  """
9620
  Attributes:
559 chandransh 9621
   - userId
94 ashish 9622
  """
9623
 
9624
  thrift_spec = (
9625
    None, # 0
559 chandransh 9626
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9627
  )
9628
 
559 chandransh 9629
  def __init__(self, userId=None,):
9630
    self.userId = userId
94 ashish 9631
 
9632
  def read(self, iprot):
9633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9635
      return
9636
    iprot.readStructBegin()
9637
    while True:
9638
      (fname, ftype, fid) = iprot.readFieldBegin()
9639
      if ftype == TType.STOP:
9640
        break
9641
      if fid == 1:
9642
        if ftype == TType.I64:
559 chandransh 9643
          self.userId = iprot.readI64();
94 ashish 9644
        else:
9645
          iprot.skip(ftype)
559 chandransh 9646
      else:
9647
        iprot.skip(ftype)
9648
      iprot.readFieldEnd()
9649
    iprot.readStructEnd()
9650
 
9651
  def write(self, oprot):
9652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9654
      return
9655
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9656
    if self.userId is not None:
559 chandransh 9657
      oprot.writeFieldBegin('userId', TType.I64, 1)
9658
      oprot.writeI64(self.userId)
9659
      oprot.writeFieldEnd()
9660
    oprot.writeFieldStop()
9661
    oprot.writeStructEnd()
9662
 
3431 rajveer 9663
  def validate(self):
9664
    return
9665
 
9666
 
559 chandransh 9667
  def __repr__(self):
9668
    L = ['%s=%r' % (key, value)
9669
      for key, value in self.__dict__.iteritems()]
9670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9671
 
9672
  def __eq__(self, other):
9673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9674
 
9675
  def __ne__(self, other):
9676
    return not (self == other)
9677
 
9678
class createCart_result:
9679
  """
9680
  Attributes:
9681
   - success
9682
   - scx
9683
  """
9684
 
9685
  thrift_spec = (
9686
    (0, TType.I64, 'success', None, None, ), # 0
9687
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9688
  )
9689
 
9690
  def __init__(self, success=None, scx=None,):
9691
    self.success = success
9692
    self.scx = scx
9693
 
9694
  def read(self, iprot):
9695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9697
      return
9698
    iprot.readStructBegin()
9699
    while True:
9700
      (fname, ftype, fid) = iprot.readFieldBegin()
9701
      if ftype == TType.STOP:
9702
        break
9703
      if fid == 0:
94 ashish 9704
        if ftype == TType.I64:
559 chandransh 9705
          self.success = iprot.readI64();
94 ashish 9706
        else:
9707
          iprot.skip(ftype)
559 chandransh 9708
      elif fid == 1:
9709
        if ftype == TType.STRUCT:
9710
          self.scx = ShoppingCartException()
9711
          self.scx.read(iprot)
9712
        else:
9713
          iprot.skip(ftype)
94 ashish 9714
      else:
9715
        iprot.skip(ftype)
9716
      iprot.readFieldEnd()
9717
    iprot.readStructEnd()
9718
 
9719
  def write(self, oprot):
9720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9722
      return
559 chandransh 9723
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9724
    if self.success is not None:
559 chandransh 9725
      oprot.writeFieldBegin('success', TType.I64, 0)
9726
      oprot.writeI64(self.success)
94 ashish 9727
      oprot.writeFieldEnd()
3431 rajveer 9728
    if self.scx is not None:
559 chandransh 9729
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9730
      self.scx.write(oprot)
94 ashish 9731
      oprot.writeFieldEnd()
9732
    oprot.writeFieldStop()
9733
    oprot.writeStructEnd()
9734
 
3431 rajveer 9735
  def validate(self):
9736
    return
9737
 
9738
 
94 ashish 9739
  def __repr__(self):
9740
    L = ['%s=%r' % (key, value)
9741
      for key, value in self.__dict__.iteritems()]
9742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9743
 
9744
  def __eq__(self, other):
9745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9746
 
9747
  def __ne__(self, other):
9748
    return not (self == other)
9749
 
559 chandransh 9750
class getCurrentCart_args:
94 ashish 9751
  """
9752
  Attributes:
559 chandransh 9753
   - userId
9754
  """
9755
 
9756
  thrift_spec = (
9757
    None, # 0
9758
    (1, TType.I64, 'userId', None, None, ), # 1
9759
  )
9760
 
9761
  def __init__(self, userId=None,):
9762
    self.userId = userId
9763
 
9764
  def read(self, iprot):
9765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9767
      return
9768
    iprot.readStructBegin()
9769
    while True:
9770
      (fname, ftype, fid) = iprot.readFieldBegin()
9771
      if ftype == TType.STOP:
9772
        break
9773
      if fid == 1:
9774
        if ftype == TType.I64:
9775
          self.userId = iprot.readI64();
9776
        else:
9777
          iprot.skip(ftype)
9778
      else:
9779
        iprot.skip(ftype)
9780
      iprot.readFieldEnd()
9781
    iprot.readStructEnd()
9782
 
9783
  def write(self, oprot):
9784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9786
      return
9787
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9788
    if self.userId is not None:
559 chandransh 9789
      oprot.writeFieldBegin('userId', TType.I64, 1)
9790
      oprot.writeI64(self.userId)
9791
      oprot.writeFieldEnd()
9792
    oprot.writeFieldStop()
9793
    oprot.writeStructEnd()
9794
 
3431 rajveer 9795
  def validate(self):
9796
    return
9797
 
9798
 
559 chandransh 9799
  def __repr__(self):
9800
    L = ['%s=%r' % (key, value)
9801
      for key, value in self.__dict__.iteritems()]
9802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9803
 
9804
  def __eq__(self, other):
9805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9806
 
9807
  def __ne__(self, other):
9808
    return not (self == other)
9809
 
9810
class getCurrentCart_result:
9811
  """
9812
  Attributes:
94 ashish 9813
   - success
559 chandransh 9814
   - scx
94 ashish 9815
  """
9816
 
9817
  thrift_spec = (
559 chandransh 9818
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9819
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9820
  )
9821
 
559 chandransh 9822
  def __init__(self, success=None, scx=None,):
94 ashish 9823
    self.success = success
559 chandransh 9824
    self.scx = scx
94 ashish 9825
 
9826
  def read(self, iprot):
9827
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9828
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9829
      return
9830
    iprot.readStructBegin()
9831
    while True:
9832
      (fname, ftype, fid) = iprot.readFieldBegin()
9833
      if ftype == TType.STOP:
9834
        break
9835
      if fid == 0:
559 chandransh 9836
        if ftype == TType.STRUCT:
9837
          self.success = Cart()
9838
          self.success.read(iprot)
94 ashish 9839
        else:
9840
          iprot.skip(ftype)
9841
      elif fid == 1:
9842
        if ftype == TType.STRUCT:
559 chandransh 9843
          self.scx = ShoppingCartException()
9844
          self.scx.read(iprot)
94 ashish 9845
        else:
9846
          iprot.skip(ftype)
9847
      else:
9848
        iprot.skip(ftype)
9849
      iprot.readFieldEnd()
9850
    iprot.readStructEnd()
9851
 
9852
  def write(self, oprot):
9853
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9854
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9855
      return
559 chandransh 9856
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9857
    if self.success is not None:
559 chandransh 9858
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9859
      self.success.write(oprot)
94 ashish 9860
      oprot.writeFieldEnd()
3431 rajveer 9861
    if self.scx is not None:
559 chandransh 9862
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9863
      self.scx.write(oprot)
94 ashish 9864
      oprot.writeFieldEnd()
9865
    oprot.writeFieldStop()
9866
    oprot.writeStructEnd()
9867
 
3431 rajveer 9868
  def validate(self):
9869
    return
9870
 
9871
 
94 ashish 9872
  def __repr__(self):
9873
    L = ['%s=%r' % (key, value)
9874
      for key, value in self.__dict__.iteritems()]
9875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9876
 
9877
  def __eq__(self, other):
9878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9879
 
9880
  def __ne__(self, other):
9881
    return not (self == other)
9882
 
559 chandransh 9883
class getCart_args:
504 rajveer 9884
  """
9885
  Attributes:
559 chandransh 9886
   - cartId
504 rajveer 9887
  """
9888
 
9889
  thrift_spec = (
9890
    None, # 0
559 chandransh 9891
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9892
  )
9893
 
559 chandransh 9894
  def __init__(self, cartId=None,):
9895
    self.cartId = cartId
504 rajveer 9896
 
9897
  def read(self, iprot):
9898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9900
      return
9901
    iprot.readStructBegin()
9902
    while True:
9903
      (fname, ftype, fid) = iprot.readFieldBegin()
9904
      if ftype == TType.STOP:
9905
        break
9906
      if fid == 1:
9907
        if ftype == TType.I64:
559 chandransh 9908
          self.cartId = iprot.readI64();
504 rajveer 9909
        else:
9910
          iprot.skip(ftype)
9911
      else:
9912
        iprot.skip(ftype)
9913
      iprot.readFieldEnd()
9914
    iprot.readStructEnd()
9915
 
9916
  def write(self, oprot):
9917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9919
      return
559 chandransh 9920
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9921
    if self.cartId is not None:
559 chandransh 9922
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9923
      oprot.writeI64(self.cartId)
504 rajveer 9924
      oprot.writeFieldEnd()
9925
    oprot.writeFieldStop()
9926
    oprot.writeStructEnd()
9927
 
3431 rajveer 9928
  def validate(self):
9929
    return
9930
 
9931
 
504 rajveer 9932
  def __repr__(self):
9933
    L = ['%s=%r' % (key, value)
9934
      for key, value in self.__dict__.iteritems()]
9935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9936
 
9937
  def __eq__(self, other):
9938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9939
 
9940
  def __ne__(self, other):
9941
    return not (self == other)
9942
 
559 chandransh 9943
class getCart_result:
504 rajveer 9944
  """
9945
  Attributes:
9946
   - success
559 chandransh 9947
   - scx
504 rajveer 9948
  """
9949
 
9950
  thrift_spec = (
559 chandransh 9951
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9952
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9953
  )
9954
 
559 chandransh 9955
  def __init__(self, success=None, scx=None,):
504 rajveer 9956
    self.success = success
559 chandransh 9957
    self.scx = scx
504 rajveer 9958
 
9959
  def read(self, iprot):
9960
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9961
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9962
      return
9963
    iprot.readStructBegin()
9964
    while True:
9965
      (fname, ftype, fid) = iprot.readFieldBegin()
9966
      if ftype == TType.STOP:
9967
        break
9968
      if fid == 0:
559 chandransh 9969
        if ftype == TType.STRUCT:
9970
          self.success = Cart()
9971
          self.success.read(iprot)
504 rajveer 9972
        else:
9973
          iprot.skip(ftype)
9974
      elif fid == 1:
9975
        if ftype == TType.STRUCT:
559 chandransh 9976
          self.scx = ShoppingCartException()
9977
          self.scx.read(iprot)
504 rajveer 9978
        else:
9979
          iprot.skip(ftype)
9980
      else:
9981
        iprot.skip(ftype)
9982
      iprot.readFieldEnd()
9983
    iprot.readStructEnd()
9984
 
9985
  def write(self, oprot):
9986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9988
      return
559 chandransh 9989
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9990
    if self.success is not None:
559 chandransh 9991
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9992
      self.success.write(oprot)
504 rajveer 9993
      oprot.writeFieldEnd()
3431 rajveer 9994
    if self.scx is not None:
559 chandransh 9995
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9996
      self.scx.write(oprot)
504 rajveer 9997
      oprot.writeFieldEnd()
9998
    oprot.writeFieldStop()
9999
    oprot.writeStructEnd()
10000
 
3431 rajveer 10001
  def validate(self):
10002
    return
10003
 
10004
 
504 rajveer 10005
  def __repr__(self):
10006
    L = ['%s=%r' % (key, value)
10007
      for key, value in self.__dict__.iteritems()]
10008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10009
 
10010
  def __eq__(self, other):
10011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10012
 
10013
  def __ne__(self, other):
10014
    return not (self == other)
10015
 
559 chandransh 10016
class getCartsForUser_args:
94 ashish 10017
  """
10018
  Attributes:
559 chandransh 10019
   - userId
10020
   - status
94 ashish 10021
  """
10022
 
10023
  thrift_spec = (
10024
    None, # 0
559 chandransh 10025
    (1, TType.I64, 'userId', None, None, ), # 1
10026
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10027
  )
10028
 
559 chandransh 10029
  def __init__(self, userId=None, status=None,):
10030
    self.userId = userId
10031
    self.status = status
94 ashish 10032
 
10033
  def read(self, iprot):
10034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10036
      return
10037
    iprot.readStructBegin()
10038
    while True:
10039
      (fname, ftype, fid) = iprot.readFieldBegin()
10040
      if ftype == TType.STOP:
10041
        break
10042
      if fid == 1:
10043
        if ftype == TType.I64:
559 chandransh 10044
          self.userId = iprot.readI64();
94 ashish 10045
        else:
10046
          iprot.skip(ftype)
10047
      elif fid == 2:
559 chandransh 10048
        if ftype == TType.I32:
10049
          self.status = iprot.readI32();
94 ashish 10050
        else:
10051
          iprot.skip(ftype)
10052
      else:
10053
        iprot.skip(ftype)
10054
      iprot.readFieldEnd()
10055
    iprot.readStructEnd()
10056
 
10057
  def write(self, oprot):
10058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10060
      return
559 chandransh 10061
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 10062
    if self.userId is not None:
559 chandransh 10063
      oprot.writeFieldBegin('userId', TType.I64, 1)
10064
      oprot.writeI64(self.userId)
94 ashish 10065
      oprot.writeFieldEnd()
3431 rajveer 10066
    if self.status is not None:
559 chandransh 10067
      oprot.writeFieldBegin('status', TType.I32, 2)
10068
      oprot.writeI32(self.status)
94 ashish 10069
      oprot.writeFieldEnd()
10070
    oprot.writeFieldStop()
10071
    oprot.writeStructEnd()
10072
 
3431 rajveer 10073
  def validate(self):
10074
    return
10075
 
10076
 
94 ashish 10077
  def __repr__(self):
10078
    L = ['%s=%r' % (key, value)
10079
      for key, value in self.__dict__.iteritems()]
10080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10081
 
10082
  def __eq__(self, other):
10083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10084
 
10085
  def __ne__(self, other):
10086
    return not (self == other)
10087
 
559 chandransh 10088
class getCartsForUser_result:
94 ashish 10089
  """
10090
  Attributes:
10091
   - success
559 chandransh 10092
   - scx
94 ashish 10093
  """
10094
 
10095
  thrift_spec = (
559 chandransh 10096
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10097
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10098
  )
10099
 
559 chandransh 10100
  def __init__(self, success=None, scx=None,):
94 ashish 10101
    self.success = success
559 chandransh 10102
    self.scx = scx
94 ashish 10103
 
10104
  def read(self, iprot):
10105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10107
      return
10108
    iprot.readStructBegin()
10109
    while True:
10110
      (fname, ftype, fid) = iprot.readFieldBegin()
10111
      if ftype == TType.STOP:
10112
        break
10113
      if fid == 0:
559 chandransh 10114
        if ftype == TType.LIST:
10115
          self.success = []
3554 varun.gupt 10116
          (_etype101, _size98) = iprot.readListBegin()
10117
          for _i102 in xrange(_size98):
10118
            _elem103 = Cart()
10119
            _elem103.read(iprot)
10120
            self.success.append(_elem103)
559 chandransh 10121
          iprot.readListEnd()
94 ashish 10122
        else:
10123
          iprot.skip(ftype)
10124
      elif fid == 1:
10125
        if ftype == TType.STRUCT:
559 chandransh 10126
          self.scx = ShoppingCartException()
10127
          self.scx.read(iprot)
94 ashish 10128
        else:
10129
          iprot.skip(ftype)
10130
      else:
10131
        iprot.skip(ftype)
10132
      iprot.readFieldEnd()
10133
    iprot.readStructEnd()
10134
 
10135
  def write(self, oprot):
10136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10138
      return
559 chandransh 10139
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 10140
    if self.success is not None:
559 chandransh 10141
      oprot.writeFieldBegin('success', TType.LIST, 0)
10142
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10143
      for iter104 in self.success:
10144
        iter104.write(oprot)
559 chandransh 10145
      oprot.writeListEnd()
94 ashish 10146
      oprot.writeFieldEnd()
3431 rajveer 10147
    if self.scx is not None:
559 chandransh 10148
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10149
      self.scx.write(oprot)
94 ashish 10150
      oprot.writeFieldEnd()
10151
    oprot.writeFieldStop()
10152
    oprot.writeStructEnd()
10153
 
3431 rajveer 10154
  def validate(self):
10155
    return
10156
 
10157
 
94 ashish 10158
  def __repr__(self):
10159
    L = ['%s=%r' % (key, value)
10160
      for key, value in self.__dict__.iteritems()]
10161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10162
 
10163
  def __eq__(self, other):
10164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10165
 
10166
  def __ne__(self, other):
10167
    return not (self == other)
10168
 
559 chandransh 10169
class getCartsByStatus_args:
94 ashish 10170
  """
10171
  Attributes:
559 chandransh 10172
   - status
94 ashish 10173
  """
10174
 
10175
  thrift_spec = (
10176
    None, # 0
559 chandransh 10177
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10178
  )
10179
 
559 chandransh 10180
  def __init__(self, status=None,):
10181
    self.status = status
94 ashish 10182
 
10183
  def read(self, iprot):
10184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10186
      return
10187
    iprot.readStructBegin()
10188
    while True:
10189
      (fname, ftype, fid) = iprot.readFieldBegin()
10190
      if ftype == TType.STOP:
10191
        break
10192
      if fid == 1:
559 chandransh 10193
        if ftype == TType.I32:
10194
          self.status = iprot.readI32();
10195
        else:
10196
          iprot.skip(ftype)
10197
      else:
10198
        iprot.skip(ftype)
10199
      iprot.readFieldEnd()
10200
    iprot.readStructEnd()
10201
 
10202
  def write(self, oprot):
10203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10205
      return
10206
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10207
    if self.status is not None:
559 chandransh 10208
      oprot.writeFieldBegin('status', TType.I32, 1)
10209
      oprot.writeI32(self.status)
10210
      oprot.writeFieldEnd()
10211
    oprot.writeFieldStop()
10212
    oprot.writeStructEnd()
10213
 
3431 rajveer 10214
  def validate(self):
10215
    return
10216
 
10217
 
559 chandransh 10218
  def __repr__(self):
10219
    L = ['%s=%r' % (key, value)
10220
      for key, value in self.__dict__.iteritems()]
10221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10222
 
10223
  def __eq__(self, other):
10224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10225
 
10226
  def __ne__(self, other):
10227
    return not (self == other)
10228
 
10229
class getCartsByStatus_result:
10230
  """
10231
  Attributes:
10232
   - success
10233
   - scx
10234
  """
10235
 
10236
  thrift_spec = (
10237
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10238
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10239
  )
10240
 
10241
  def __init__(self, success=None, scx=None,):
10242
    self.success = success
10243
    self.scx = scx
10244
 
10245
  def read(self, iprot):
10246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10248
      return
10249
    iprot.readStructBegin()
10250
    while True:
10251
      (fname, ftype, fid) = iprot.readFieldBegin()
10252
      if ftype == TType.STOP:
10253
        break
10254
      if fid == 0:
10255
        if ftype == TType.LIST:
10256
          self.success = []
3554 varun.gupt 10257
          (_etype108, _size105) = iprot.readListBegin()
10258
          for _i109 in xrange(_size105):
10259
            _elem110 = Cart()
10260
            _elem110.read(iprot)
10261
            self.success.append(_elem110)
559 chandransh 10262
          iprot.readListEnd()
10263
        else:
10264
          iprot.skip(ftype)
10265
      elif fid == 1:
10266
        if ftype == TType.STRUCT:
10267
          self.scx = ShoppingCartException()
10268
          self.scx.read(iprot)
10269
        else:
10270
          iprot.skip(ftype)
10271
      else:
10272
        iprot.skip(ftype)
10273
      iprot.readFieldEnd()
10274
    iprot.readStructEnd()
10275
 
10276
  def write(self, oprot):
10277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10279
      return
10280
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10281
    if self.success is not None:
559 chandransh 10282
      oprot.writeFieldBegin('success', TType.LIST, 0)
10283
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10284
      for iter111 in self.success:
10285
        iter111.write(oprot)
559 chandransh 10286
      oprot.writeListEnd()
10287
      oprot.writeFieldEnd()
3431 rajveer 10288
    if self.scx is not None:
559 chandransh 10289
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10290
      self.scx.write(oprot)
10291
      oprot.writeFieldEnd()
10292
    oprot.writeFieldStop()
10293
    oprot.writeStructEnd()
10294
 
3431 rajveer 10295
  def validate(self):
10296
    return
10297
 
10298
 
559 chandransh 10299
  def __repr__(self):
10300
    L = ['%s=%r' % (key, value)
10301
      for key, value in self.__dict__.iteritems()]
10302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10303
 
10304
  def __eq__(self, other):
10305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10306
 
10307
  def __ne__(self, other):
10308
    return not (self == other)
10309
 
10310
class getCartsByTime_args:
10311
  """
10312
  Attributes:
10313
   - from_time
10314
   - to_time
10315
   - status
10316
  """
10317
 
10318
  thrift_spec = (
10319
    None, # 0
10320
    (1, TType.I64, 'from_time', None, None, ), # 1
10321
    (2, TType.I64, 'to_time', None, None, ), # 2
10322
    (3, TType.I32, 'status', None, None, ), # 3
10323
  )
10324
 
10325
  def __init__(self, from_time=None, to_time=None, status=None,):
10326
    self.from_time = from_time
10327
    self.to_time = to_time
10328
    self.status = status
10329
 
10330
  def read(self, iprot):
10331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10333
      return
10334
    iprot.readStructBegin()
10335
    while True:
10336
      (fname, ftype, fid) = iprot.readFieldBegin()
10337
      if ftype == TType.STOP:
10338
        break
10339
      if fid == 1:
94 ashish 10340
        if ftype == TType.I64:
559 chandransh 10341
          self.from_time = iprot.readI64();
94 ashish 10342
        else:
10343
          iprot.skip(ftype)
122 ashish 10344
      elif fid == 2:
559 chandransh 10345
        if ftype == TType.I64:
10346
          self.to_time = iprot.readI64();
122 ashish 10347
        else:
10348
          iprot.skip(ftype)
559 chandransh 10349
      elif fid == 3:
10350
        if ftype == TType.I32:
10351
          self.status = iprot.readI32();
10352
        else:
10353
          iprot.skip(ftype)
94 ashish 10354
      else:
10355
        iprot.skip(ftype)
10356
      iprot.readFieldEnd()
10357
    iprot.readStructEnd()
10358
 
10359
  def write(self, oprot):
10360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10362
      return
559 chandransh 10363
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10364
    if self.from_time is not None:
559 chandransh 10365
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10366
      oprot.writeI64(self.from_time)
94 ashish 10367
      oprot.writeFieldEnd()
3431 rajveer 10368
    if self.to_time is not None:
559 chandransh 10369
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10370
      oprot.writeI64(self.to_time)
122 ashish 10371
      oprot.writeFieldEnd()
3431 rajveer 10372
    if self.status is not None:
559 chandransh 10373
      oprot.writeFieldBegin('status', TType.I32, 3)
10374
      oprot.writeI32(self.status)
10375
      oprot.writeFieldEnd()
94 ashish 10376
    oprot.writeFieldStop()
10377
    oprot.writeStructEnd()
10378
 
3431 rajveer 10379
  def validate(self):
10380
    return
10381
 
10382
 
94 ashish 10383
  def __repr__(self):
10384
    L = ['%s=%r' % (key, value)
10385
      for key, value in self.__dict__.iteritems()]
10386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10387
 
10388
  def __eq__(self, other):
10389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10390
 
10391
  def __ne__(self, other):
10392
    return not (self == other)
10393
 
559 chandransh 10394
class getCartsByTime_result:
94 ashish 10395
  """
10396
  Attributes:
10397
   - success
559 chandransh 10398
   - scx
94 ashish 10399
  """
10400
 
10401
  thrift_spec = (
559 chandransh 10402
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10403
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10404
  )
10405
 
559 chandransh 10406
  def __init__(self, success=None, scx=None,):
94 ashish 10407
    self.success = success
559 chandransh 10408
    self.scx = scx
94 ashish 10409
 
10410
  def read(self, iprot):
10411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10413
      return
10414
    iprot.readStructBegin()
10415
    while True:
10416
      (fname, ftype, fid) = iprot.readFieldBegin()
10417
      if ftype == TType.STOP:
10418
        break
10419
      if fid == 0:
559 chandransh 10420
        if ftype == TType.LIST:
10421
          self.success = []
3554 varun.gupt 10422
          (_etype115, _size112) = iprot.readListBegin()
10423
          for _i116 in xrange(_size112):
10424
            _elem117 = Cart()
10425
            _elem117.read(iprot)
10426
            self.success.append(_elem117)
559 chandransh 10427
          iprot.readListEnd()
94 ashish 10428
        else:
10429
          iprot.skip(ftype)
10430
      elif fid == 1:
10431
        if ftype == TType.STRUCT:
559 chandransh 10432
          self.scx = ShoppingCartException()
10433
          self.scx.read(iprot)
94 ashish 10434
        else:
10435
          iprot.skip(ftype)
10436
      else:
10437
        iprot.skip(ftype)
10438
      iprot.readFieldEnd()
10439
    iprot.readStructEnd()
10440
 
10441
  def write(self, oprot):
10442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10444
      return
559 chandransh 10445
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10446
    if self.success is not None:
559 chandransh 10447
      oprot.writeFieldBegin('success', TType.LIST, 0)
10448
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10449
      for iter118 in self.success:
10450
        iter118.write(oprot)
559 chandransh 10451
      oprot.writeListEnd()
94 ashish 10452
      oprot.writeFieldEnd()
3431 rajveer 10453
    if self.scx is not None:
559 chandransh 10454
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10455
      self.scx.write(oprot)
94 ashish 10456
      oprot.writeFieldEnd()
10457
    oprot.writeFieldStop()
10458
    oprot.writeStructEnd()
10459
 
3431 rajveer 10460
  def validate(self):
10461
    return
10462
 
10463
 
94 ashish 10464
  def __repr__(self):
10465
    L = ['%s=%r' % (key, value)
10466
      for key, value in self.__dict__.iteritems()]
10467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10468
 
10469
  def __eq__(self, other):
10470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10471
 
10472
  def __ne__(self, other):
10473
    return not (self == other)
10474
 
559 chandransh 10475
class changeCartStatus_args:
94 ashish 10476
  """
10477
  Attributes:
559 chandransh 10478
   - cartId
10479
   - status
94 ashish 10480
  """
10481
 
10482
  thrift_spec = (
10483
    None, # 0
559 chandransh 10484
    (1, TType.I64, 'cartId', None, None, ), # 1
10485
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10486
  )
10487
 
559 chandransh 10488
  def __init__(self, cartId=None, status=None,):
10489
    self.cartId = cartId
10490
    self.status = status
94 ashish 10491
 
10492
  def read(self, iprot):
10493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10495
      return
10496
    iprot.readStructBegin()
10497
    while True:
10498
      (fname, ftype, fid) = iprot.readFieldBegin()
10499
      if ftype == TType.STOP:
10500
        break
10501
      if fid == 1:
10502
        if ftype == TType.I64:
559 chandransh 10503
          self.cartId = iprot.readI64();
94 ashish 10504
        else:
10505
          iprot.skip(ftype)
559 chandransh 10506
      elif fid == 2:
10507
        if ftype == TType.I32:
10508
          self.status = iprot.readI32();
10509
        else:
10510
          iprot.skip(ftype)
94 ashish 10511
      else:
10512
        iprot.skip(ftype)
10513
      iprot.readFieldEnd()
10514
    iprot.readStructEnd()
10515
 
10516
  def write(self, oprot):
10517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10519
      return
559 chandransh 10520
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10521
    if self.cartId is not None:
559 chandransh 10522
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10523
      oprot.writeI64(self.cartId)
94 ashish 10524
      oprot.writeFieldEnd()
3431 rajveer 10525
    if self.status is not None:
559 chandransh 10526
      oprot.writeFieldBegin('status', TType.I32, 2)
10527
      oprot.writeI32(self.status)
10528
      oprot.writeFieldEnd()
94 ashish 10529
    oprot.writeFieldStop()
10530
    oprot.writeStructEnd()
10531
 
3431 rajveer 10532
  def validate(self):
10533
    return
10534
 
10535
 
94 ashish 10536
  def __repr__(self):
10537
    L = ['%s=%r' % (key, value)
10538
      for key, value in self.__dict__.iteritems()]
10539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10540
 
10541
  def __eq__(self, other):
10542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10543
 
10544
  def __ne__(self, other):
10545
    return not (self == other)
10546
 
559 chandransh 10547
class changeCartStatus_result:
94 ashish 10548
  """
10549
  Attributes:
559 chandransh 10550
   - scx
10551
  """
10552
 
10553
  thrift_spec = (
10554
    None, # 0
10555
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10556
  )
10557
 
10558
  def __init__(self, scx=None,):
10559
    self.scx = scx
10560
 
10561
  def read(self, iprot):
10562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10564
      return
10565
    iprot.readStructBegin()
10566
    while True:
10567
      (fname, ftype, fid) = iprot.readFieldBegin()
10568
      if ftype == TType.STOP:
10569
        break
10570
      if fid == 1:
10571
        if ftype == TType.STRUCT:
10572
          self.scx = ShoppingCartException()
10573
          self.scx.read(iprot)
10574
        else:
10575
          iprot.skip(ftype)
10576
      else:
10577
        iprot.skip(ftype)
10578
      iprot.readFieldEnd()
10579
    iprot.readStructEnd()
10580
 
10581
  def write(self, oprot):
10582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10584
      return
10585
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10586
    if self.scx is not None:
559 chandransh 10587
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10588
      self.scx.write(oprot)
10589
      oprot.writeFieldEnd()
10590
    oprot.writeFieldStop()
10591
    oprot.writeStructEnd()
10592
 
3431 rajveer 10593
  def validate(self):
10594
    return
10595
 
10596
 
559 chandransh 10597
  def __repr__(self):
10598
    L = ['%s=%r' % (key, value)
10599
      for key, value in self.__dict__.iteritems()]
10600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10601
 
10602
  def __eq__(self, other):
10603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10604
 
10605
  def __ne__(self, other):
10606
    return not (self == other)
10607
 
10608
class addItemToCart_args:
10609
  """
10610
  Attributes:
10611
   - cartId
10612
   - itemId
10613
   - quantity
3557 rajveer 10614
   - sourceId
559 chandransh 10615
  """
10616
 
10617
  thrift_spec = (
10618
    None, # 0
10619
    (1, TType.I64, 'cartId', None, None, ), # 1
10620
    (2, TType.I64, 'itemId', None, None, ), # 2
10621
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10622
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10623
  )
10624
 
3557 rajveer 10625
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10626
    self.cartId = cartId
10627
    self.itemId = itemId
10628
    self.quantity = quantity
3557 rajveer 10629
    self.sourceId = sourceId
559 chandransh 10630
 
10631
  def read(self, iprot):
10632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10634
      return
10635
    iprot.readStructBegin()
10636
    while True:
10637
      (fname, ftype, fid) = iprot.readFieldBegin()
10638
      if ftype == TType.STOP:
10639
        break
10640
      if fid == 1:
10641
        if ftype == TType.I64:
10642
          self.cartId = iprot.readI64();
10643
        else:
10644
          iprot.skip(ftype)
10645
      elif fid == 2:
10646
        if ftype == TType.I64:
10647
          self.itemId = iprot.readI64();
10648
        else:
10649
          iprot.skip(ftype)
10650
      elif fid == 3:
10651
        if ftype == TType.I64:
10652
          self.quantity = iprot.readI64();
10653
        else:
10654
          iprot.skip(ftype)
3557 rajveer 10655
      elif fid == 4:
10656
        if ftype == TType.I64:
10657
          self.sourceId = iprot.readI64();
10658
        else:
10659
          iprot.skip(ftype)
559 chandransh 10660
      else:
10661
        iprot.skip(ftype)
10662
      iprot.readFieldEnd()
10663
    iprot.readStructEnd()
10664
 
10665
  def write(self, oprot):
10666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10668
      return
10669
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10670
    if self.cartId is not None:
559 chandransh 10671
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10672
      oprot.writeI64(self.cartId)
10673
      oprot.writeFieldEnd()
3431 rajveer 10674
    if self.itemId is not None:
559 chandransh 10675
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10676
      oprot.writeI64(self.itemId)
10677
      oprot.writeFieldEnd()
3431 rajveer 10678
    if self.quantity is not None:
559 chandransh 10679
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10680
      oprot.writeI64(self.quantity)
10681
      oprot.writeFieldEnd()
3557 rajveer 10682
    if self.sourceId is not None:
10683
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10684
      oprot.writeI64(self.sourceId)
10685
      oprot.writeFieldEnd()
559 chandransh 10686
    oprot.writeFieldStop()
10687
    oprot.writeStructEnd()
10688
 
3431 rajveer 10689
  def validate(self):
10690
    return
10691
 
10692
 
559 chandransh 10693
  def __repr__(self):
10694
    L = ['%s=%r' % (key, value)
10695
      for key, value in self.__dict__.iteritems()]
10696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10697
 
10698
  def __eq__(self, other):
10699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10700
 
10701
  def __ne__(self, other):
10702
    return not (self == other)
10703
 
10704
class addItemToCart_result:
10705
  """
10706
  Attributes:
2035 rajveer 10707
   - success
559 chandransh 10708
   - scx
10709
  """
10710
 
10711
  thrift_spec = (
2035 rajveer 10712
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10713
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10714
  )
10715
 
2035 rajveer 10716
  def __init__(self, success=None, scx=None,):
10717
    self.success = success
559 chandransh 10718
    self.scx = scx
10719
 
10720
  def read(self, iprot):
10721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10723
      return
10724
    iprot.readStructBegin()
10725
    while True:
10726
      (fname, ftype, fid) = iprot.readFieldBegin()
10727
      if ftype == TType.STOP:
10728
        break
2035 rajveer 10729
      if fid == 0:
10730
        if ftype == TType.STRING:
10731
          self.success = iprot.readString();
10732
        else:
10733
          iprot.skip(ftype)
10734
      elif fid == 1:
559 chandransh 10735
        if ftype == TType.STRUCT:
10736
          self.scx = ShoppingCartException()
10737
          self.scx.read(iprot)
10738
        else:
10739
          iprot.skip(ftype)
10740
      else:
10741
        iprot.skip(ftype)
10742
      iprot.readFieldEnd()
10743
    iprot.readStructEnd()
10744
 
10745
  def write(self, oprot):
10746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10748
      return
10749
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10750
    if self.success is not None:
2035 rajveer 10751
      oprot.writeFieldBegin('success', TType.STRING, 0)
10752
      oprot.writeString(self.success)
10753
      oprot.writeFieldEnd()
3431 rajveer 10754
    if self.scx is not None:
559 chandransh 10755
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10756
      self.scx.write(oprot)
10757
      oprot.writeFieldEnd()
10758
    oprot.writeFieldStop()
10759
    oprot.writeStructEnd()
10760
 
3431 rajveer 10761
  def validate(self):
10762
    return
10763
 
10764
 
559 chandransh 10765
  def __repr__(self):
10766
    L = ['%s=%r' % (key, value)
10767
      for key, value in self.__dict__.iteritems()]
10768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10769
 
10770
  def __eq__(self, other):
10771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10772
 
10773
  def __ne__(self, other):
10774
    return not (self == other)
10775
 
10776
class deleteItemFromCart_args:
10777
  """
10778
  Attributes:
10779
   - cartId
10780
   - itemId
10781
  """
10782
 
10783
  thrift_spec = (
10784
    None, # 0
10785
    (1, TType.I64, 'cartId', None, None, ), # 1
10786
    (2, TType.I64, 'itemId', None, None, ), # 2
10787
  )
10788
 
10789
  def __init__(self, cartId=None, itemId=None,):
10790
    self.cartId = cartId
10791
    self.itemId = itemId
10792
 
10793
  def read(self, iprot):
10794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10796
      return
10797
    iprot.readStructBegin()
10798
    while True:
10799
      (fname, ftype, fid) = iprot.readFieldBegin()
10800
      if ftype == TType.STOP:
10801
        break
10802
      if fid == 1:
10803
        if ftype == TType.I64:
10804
          self.cartId = iprot.readI64();
10805
        else:
10806
          iprot.skip(ftype)
10807
      elif fid == 2:
10808
        if ftype == TType.I64:
10809
          self.itemId = iprot.readI64();
10810
        else:
10811
          iprot.skip(ftype)
10812
      else:
10813
        iprot.skip(ftype)
10814
      iprot.readFieldEnd()
10815
    iprot.readStructEnd()
10816
 
10817
  def write(self, oprot):
10818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10820
      return
10821
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10822
    if self.cartId is not None:
559 chandransh 10823
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10824
      oprot.writeI64(self.cartId)
10825
      oprot.writeFieldEnd()
3431 rajveer 10826
    if self.itemId is not None:
559 chandransh 10827
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10828
      oprot.writeI64(self.itemId)
10829
      oprot.writeFieldEnd()
10830
    oprot.writeFieldStop()
10831
    oprot.writeStructEnd()
10832
 
3431 rajveer 10833
  def validate(self):
10834
    return
10835
 
10836
 
559 chandransh 10837
  def __repr__(self):
10838
    L = ['%s=%r' % (key, value)
10839
      for key, value in self.__dict__.iteritems()]
10840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10841
 
10842
  def __eq__(self, other):
10843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10844
 
10845
  def __ne__(self, other):
10846
    return not (self == other)
10847
 
10848
class deleteItemFromCart_result:
10849
  """
10850
  Attributes:
10851
   - scx
10852
  """
10853
 
10854
  thrift_spec = (
10855
    None, # 0
10856
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10857
  )
10858
 
10859
  def __init__(self, scx=None,):
10860
    self.scx = scx
10861
 
10862
  def read(self, iprot):
10863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10865
      return
10866
    iprot.readStructBegin()
10867
    while True:
10868
      (fname, ftype, fid) = iprot.readFieldBegin()
10869
      if ftype == TType.STOP:
10870
        break
10871
      if fid == 1:
10872
        if ftype == TType.STRUCT:
10873
          self.scx = ShoppingCartException()
10874
          self.scx.read(iprot)
10875
        else:
10876
          iprot.skip(ftype)
10877
      else:
10878
        iprot.skip(ftype)
10879
      iprot.readFieldEnd()
10880
    iprot.readStructEnd()
10881
 
10882
  def write(self, oprot):
10883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10885
      return
10886
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10887
    if self.scx is not None:
559 chandransh 10888
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10889
      self.scx.write(oprot)
10890
      oprot.writeFieldEnd()
10891
    oprot.writeFieldStop()
10892
    oprot.writeStructEnd()
10893
 
3431 rajveer 10894
  def validate(self):
10895
    return
10896
 
10897
 
559 chandransh 10898
  def __repr__(self):
10899
    L = ['%s=%r' % (key, value)
10900
      for key, value in self.__dict__.iteritems()]
10901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10902
 
10903
  def __eq__(self, other):
10904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10905
 
10906
  def __ne__(self, other):
10907
    return not (self == other)
10908
 
10909
class changeQuantity_args:
10910
  """
10911
  Attributes:
10912
   - cartId
10913
   - itemId
10914
   - quantity
10915
  """
10916
 
10917
  thrift_spec = (
10918
    None, # 0
10919
    (1, TType.I64, 'cartId', None, None, ), # 1
10920
    (2, TType.I64, 'itemId', None, None, ), # 2
10921
    (3, TType.I64, 'quantity', None, None, ), # 3
10922
  )
10923
 
10924
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10925
    self.cartId = cartId
10926
    self.itemId = itemId
10927
    self.quantity = quantity
10928
 
10929
  def read(self, iprot):
10930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10932
      return
10933
    iprot.readStructBegin()
10934
    while True:
10935
      (fname, ftype, fid) = iprot.readFieldBegin()
10936
      if ftype == TType.STOP:
10937
        break
10938
      if fid == 1:
10939
        if ftype == TType.I64:
10940
          self.cartId = iprot.readI64();
10941
        else:
10942
          iprot.skip(ftype)
10943
      elif fid == 2:
10944
        if ftype == TType.I64:
10945
          self.itemId = iprot.readI64();
10946
        else:
10947
          iprot.skip(ftype)
10948
      elif fid == 3:
10949
        if ftype == TType.I64:
10950
          self.quantity = iprot.readI64();
10951
        else:
10952
          iprot.skip(ftype)
10953
      else:
10954
        iprot.skip(ftype)
10955
      iprot.readFieldEnd()
10956
    iprot.readStructEnd()
10957
 
10958
  def write(self, oprot):
10959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10961
      return
10962
    oprot.writeStructBegin('changeQuantity_args')
3431 rajveer 10963
    if self.cartId is not None:
559 chandransh 10964
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10965
      oprot.writeI64(self.cartId)
10966
      oprot.writeFieldEnd()
3431 rajveer 10967
    if self.itemId is not None:
559 chandransh 10968
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10969
      oprot.writeI64(self.itemId)
10970
      oprot.writeFieldEnd()
3431 rajveer 10971
    if self.quantity is not None:
559 chandransh 10972
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10973
      oprot.writeI64(self.quantity)
10974
      oprot.writeFieldEnd()
10975
    oprot.writeFieldStop()
10976
    oprot.writeStructEnd()
10977
 
3431 rajveer 10978
  def validate(self):
10979
    return
10980
 
10981
 
559 chandransh 10982
  def __repr__(self):
10983
    L = ['%s=%r' % (key, value)
10984
      for key, value in self.__dict__.iteritems()]
10985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10986
 
10987
  def __eq__(self, other):
10988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10989
 
10990
  def __ne__(self, other):
10991
    return not (self == other)
10992
 
10993
class changeQuantity_result:
10994
  """
10995
  Attributes:
10996
   - scx
10997
  """
10998
 
10999
  thrift_spec = (
11000
    None, # 0
11001
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11002
  )
11003
 
11004
  def __init__(self, scx=None,):
11005
    self.scx = scx
11006
 
11007
  def read(self, iprot):
11008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11010
      return
11011
    iprot.readStructBegin()
11012
    while True:
11013
      (fname, ftype, fid) = iprot.readFieldBegin()
11014
      if ftype == TType.STOP:
11015
        break
11016
      if fid == 1:
11017
        if ftype == TType.STRUCT:
11018
          self.scx = ShoppingCartException()
11019
          self.scx.read(iprot)
11020
        else:
11021
          iprot.skip(ftype)
11022
      else:
11023
        iprot.skip(ftype)
11024
      iprot.readFieldEnd()
11025
    iprot.readStructEnd()
11026
 
11027
  def write(self, oprot):
11028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11030
      return
11031
    oprot.writeStructBegin('changeQuantity_result')
3431 rajveer 11032
    if self.scx is not None:
559 chandransh 11033
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11034
      self.scx.write(oprot)
11035
      oprot.writeFieldEnd()
11036
    oprot.writeFieldStop()
11037
    oprot.writeStructEnd()
11038
 
3431 rajveer 11039
  def validate(self):
11040
    return
11041
 
11042
 
559 chandransh 11043
  def __repr__(self):
11044
    L = ['%s=%r' % (key, value)
11045
      for key, value in self.__dict__.iteritems()]
11046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11047
 
11048
  def __eq__(self, other):
11049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11050
 
11051
  def __ne__(self, other):
11052
    return not (self == other)
11053
 
11054
class changeItemStatus_args:
11055
  """
11056
  Attributes:
11057
   - cartId
11058
   - itemId
11059
   - status
11060
  """
11061
 
11062
  thrift_spec = (
11063
    None, # 0
11064
    (1, TType.I64, 'cartId', None, None, ), # 1
11065
    (2, TType.I64, 'itemId', None, None, ), # 2
11066
    (3, TType.I32, 'status', None, None, ), # 3
11067
  )
11068
 
11069
  def __init__(self, cartId=None, itemId=None, status=None,):
11070
    self.cartId = cartId
11071
    self.itemId = itemId
11072
    self.status = status
11073
 
11074
  def read(self, iprot):
11075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11077
      return
11078
    iprot.readStructBegin()
11079
    while True:
11080
      (fname, ftype, fid) = iprot.readFieldBegin()
11081
      if ftype == TType.STOP:
11082
        break
11083
      if fid == 1:
11084
        if ftype == TType.I64:
11085
          self.cartId = iprot.readI64();
11086
        else:
11087
          iprot.skip(ftype)
11088
      elif fid == 2:
11089
        if ftype == TType.I64:
11090
          self.itemId = iprot.readI64();
11091
        else:
11092
          iprot.skip(ftype)
11093
      elif fid == 3:
11094
        if ftype == TType.I32:
11095
          self.status = iprot.readI32();
11096
        else:
11097
          iprot.skip(ftype)
11098
      else:
11099
        iprot.skip(ftype)
11100
      iprot.readFieldEnd()
11101
    iprot.readStructEnd()
11102
 
11103
  def write(self, oprot):
11104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11106
      return
11107
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 11108
    if self.cartId is not None:
559 chandransh 11109
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11110
      oprot.writeI64(self.cartId)
11111
      oprot.writeFieldEnd()
3431 rajveer 11112
    if self.itemId is not None:
559 chandransh 11113
      oprot.writeFieldBegin('itemId', TType.I64, 2)
11114
      oprot.writeI64(self.itemId)
11115
      oprot.writeFieldEnd()
3431 rajveer 11116
    if self.status is not None:
559 chandransh 11117
      oprot.writeFieldBegin('status', TType.I32, 3)
11118
      oprot.writeI32(self.status)
11119
      oprot.writeFieldEnd()
11120
    oprot.writeFieldStop()
11121
    oprot.writeStructEnd()
11122
 
3431 rajveer 11123
  def validate(self):
11124
    return
11125
 
11126
 
559 chandransh 11127
  def __repr__(self):
11128
    L = ['%s=%r' % (key, value)
11129
      for key, value in self.__dict__.iteritems()]
11130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11131
 
11132
  def __eq__(self, other):
11133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11134
 
11135
  def __ne__(self, other):
11136
    return not (self == other)
11137
 
11138
class changeItemStatus_result:
11139
  """
11140
  Attributes:
11141
   - scx
11142
  """
11143
 
11144
  thrift_spec = (
11145
    None, # 0
11146
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11147
  )
11148
 
11149
  def __init__(self, scx=None,):
11150
    self.scx = scx
11151
 
11152
  def read(self, iprot):
11153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11155
      return
11156
    iprot.readStructBegin()
11157
    while True:
11158
      (fname, ftype, fid) = iprot.readFieldBegin()
11159
      if ftype == TType.STOP:
11160
        break
11161
      if fid == 1:
11162
        if ftype == TType.STRUCT:
11163
          self.scx = ShoppingCartException()
11164
          self.scx.read(iprot)
11165
        else:
11166
          iprot.skip(ftype)
11167
      else:
11168
        iprot.skip(ftype)
11169
      iprot.readFieldEnd()
11170
    iprot.readStructEnd()
11171
 
11172
  def write(self, oprot):
11173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11175
      return
11176
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 11177
    if self.scx is not None:
559 chandransh 11178
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11179
      self.scx.write(oprot)
11180
      oprot.writeFieldEnd()
11181
    oprot.writeFieldStop()
11182
    oprot.writeStructEnd()
11183
 
3431 rajveer 11184
  def validate(self):
11185
    return
11186
 
11187
 
559 chandransh 11188
  def __repr__(self):
11189
    L = ['%s=%r' % (key, value)
11190
      for key, value in self.__dict__.iteritems()]
11191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11192
 
11193
  def __eq__(self, other):
11194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11195
 
11196
  def __ne__(self, other):
11197
    return not (self == other)
11198
 
11199
class addAddressToCart_args:
11200
  """
11201
  Attributes:
11202
   - cartId
11203
   - addressId
11204
  """
11205
 
11206
  thrift_spec = (
11207
    None, # 0
11208
    (1, TType.I64, 'cartId', None, None, ), # 1
11209
    (2, TType.I64, 'addressId', None, None, ), # 2
11210
  )
11211
 
11212
  def __init__(self, cartId=None, addressId=None,):
11213
    self.cartId = cartId
11214
    self.addressId = addressId
11215
 
11216
  def read(self, iprot):
11217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11219
      return
11220
    iprot.readStructBegin()
11221
    while True:
11222
      (fname, ftype, fid) = iprot.readFieldBegin()
11223
      if ftype == TType.STOP:
11224
        break
11225
      if fid == 1:
11226
        if ftype == TType.I64:
11227
          self.cartId = iprot.readI64();
11228
        else:
11229
          iprot.skip(ftype)
11230
      elif fid == 2:
11231
        if ftype == TType.I64:
11232
          self.addressId = iprot.readI64();
11233
        else:
11234
          iprot.skip(ftype)
11235
      else:
11236
        iprot.skip(ftype)
11237
      iprot.readFieldEnd()
11238
    iprot.readStructEnd()
11239
 
11240
  def write(self, oprot):
11241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11243
      return
11244
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11245
    if self.cartId is not None:
559 chandransh 11246
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11247
      oprot.writeI64(self.cartId)
11248
      oprot.writeFieldEnd()
3431 rajveer 11249
    if self.addressId is not None:
559 chandransh 11250
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11251
      oprot.writeI64(self.addressId)
11252
      oprot.writeFieldEnd()
11253
    oprot.writeFieldStop()
11254
    oprot.writeStructEnd()
11255
 
3431 rajveer 11256
  def validate(self):
11257
    return
11258
 
11259
 
559 chandransh 11260
  def __repr__(self):
11261
    L = ['%s=%r' % (key, value)
11262
      for key, value in self.__dict__.iteritems()]
11263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11264
 
11265
  def __eq__(self, other):
11266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11267
 
11268
  def __ne__(self, other):
11269
    return not (self == other)
11270
 
11271
class addAddressToCart_result:
575 chandransh 11272
  """
11273
  Attributes:
11274
   - scx
11275
  """
559 chandransh 11276
 
11277
  thrift_spec = (
575 chandransh 11278
    None, # 0
11279
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11280
  )
11281
 
575 chandransh 11282
  def __init__(self, scx=None,):
11283
    self.scx = scx
11284
 
559 chandransh 11285
  def read(self, iprot):
11286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11288
      return
11289
    iprot.readStructBegin()
11290
    while True:
11291
      (fname, ftype, fid) = iprot.readFieldBegin()
11292
      if ftype == TType.STOP:
11293
        break
575 chandransh 11294
      if fid == 1:
11295
        if ftype == TType.STRUCT:
11296
          self.scx = ShoppingCartException()
11297
          self.scx.read(iprot)
11298
        else:
11299
          iprot.skip(ftype)
559 chandransh 11300
      else:
11301
        iprot.skip(ftype)
11302
      iprot.readFieldEnd()
11303
    iprot.readStructEnd()
11304
 
11305
  def write(self, oprot):
11306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11308
      return
11309
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11310
    if self.scx is not None:
575 chandransh 11311
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11312
      self.scx.write(oprot)
11313
      oprot.writeFieldEnd()
559 chandransh 11314
    oprot.writeFieldStop()
11315
    oprot.writeStructEnd()
11316
 
3431 rajveer 11317
  def validate(self):
11318
    return
11319
 
11320
 
559 chandransh 11321
  def __repr__(self):
11322
    L = ['%s=%r' % (key, value)
11323
      for key, value in self.__dict__.iteritems()]
11324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11325
 
11326
  def __eq__(self, other):
11327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11328
 
11329
  def __ne__(self, other):
11330
    return not (self == other)
11331
 
1976 varun.gupt 11332
class applyCouponToCart_args:
11333
  """
11334
  Attributes:
11335
   - cartId
11336
   - couponCode
11337
   - totalPrice
11338
   - discountedPrice
11339
  """
11340
 
11341
  thrift_spec = (
11342
    None, # 0
11343
    (1, TType.I64, 'cartId', None, None, ), # 1
11344
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11345
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11346
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11347
  )
11348
 
11349
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11350
    self.cartId = cartId
11351
    self.couponCode = couponCode
11352
    self.totalPrice = totalPrice
11353
    self.discountedPrice = discountedPrice
11354
 
11355
  def read(self, iprot):
11356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11358
      return
11359
    iprot.readStructBegin()
11360
    while True:
11361
      (fname, ftype, fid) = iprot.readFieldBegin()
11362
      if ftype == TType.STOP:
11363
        break
11364
      if fid == 1:
11365
        if ftype == TType.I64:
11366
          self.cartId = iprot.readI64();
11367
        else:
11368
          iprot.skip(ftype)
11369
      elif fid == 2:
11370
        if ftype == TType.STRING:
11371
          self.couponCode = iprot.readString();
11372
        else:
11373
          iprot.skip(ftype)
11374
      elif fid == 3:
11375
        if ftype == TType.DOUBLE:
11376
          self.totalPrice = iprot.readDouble();
11377
        else:
11378
          iprot.skip(ftype)
11379
      elif fid == 4:
11380
        if ftype == TType.DOUBLE:
11381
          self.discountedPrice = iprot.readDouble();
11382
        else:
11383
          iprot.skip(ftype)
11384
      else:
11385
        iprot.skip(ftype)
11386
      iprot.readFieldEnd()
11387
    iprot.readStructEnd()
11388
 
11389
  def write(self, oprot):
11390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11392
      return
11393
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11394
    if self.cartId is not None:
1976 varun.gupt 11395
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11396
      oprot.writeI64(self.cartId)
11397
      oprot.writeFieldEnd()
3431 rajveer 11398
    if self.couponCode is not None:
1976 varun.gupt 11399
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11400
      oprot.writeString(self.couponCode)
11401
      oprot.writeFieldEnd()
3431 rajveer 11402
    if self.totalPrice is not None:
1976 varun.gupt 11403
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11404
      oprot.writeDouble(self.totalPrice)
11405
      oprot.writeFieldEnd()
3431 rajveer 11406
    if self.discountedPrice is not None:
1976 varun.gupt 11407
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11408
      oprot.writeDouble(self.discountedPrice)
11409
      oprot.writeFieldEnd()
11410
    oprot.writeFieldStop()
11411
    oprot.writeStructEnd()
11412
 
3431 rajveer 11413
  def validate(self):
11414
    return
11415
 
11416
 
1976 varun.gupt 11417
  def __repr__(self):
11418
    L = ['%s=%r' % (key, value)
11419
      for key, value in self.__dict__.iteritems()]
11420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11421
 
11422
  def __eq__(self, other):
11423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11424
 
11425
  def __ne__(self, other):
11426
    return not (self == other)
11427
 
11428
class applyCouponToCart_result:
11429
  """
11430
  Attributes:
11431
   - scx
11432
  """
11433
 
11434
  thrift_spec = (
11435
    None, # 0
11436
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11437
  )
11438
 
11439
  def __init__(self, scx=None,):
11440
    self.scx = scx
11441
 
11442
  def read(self, iprot):
11443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11445
      return
11446
    iprot.readStructBegin()
11447
    while True:
11448
      (fname, ftype, fid) = iprot.readFieldBegin()
11449
      if ftype == TType.STOP:
11450
        break
11451
      if fid == 1:
11452
        if ftype == TType.STRUCT:
11453
          self.scx = ShoppingCartException()
11454
          self.scx.read(iprot)
11455
        else:
11456
          iprot.skip(ftype)
11457
      else:
11458
        iprot.skip(ftype)
11459
      iprot.readFieldEnd()
11460
    iprot.readStructEnd()
11461
 
11462
  def write(self, oprot):
11463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11465
      return
11466
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11467
    if self.scx is not None:
1976 varun.gupt 11468
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11469
      self.scx.write(oprot)
11470
      oprot.writeFieldEnd()
11471
    oprot.writeFieldStop()
11472
    oprot.writeStructEnd()
11473
 
3431 rajveer 11474
  def validate(self):
11475
    return
11476
 
11477
 
1976 varun.gupt 11478
  def __repr__(self):
11479
    L = ['%s=%r' % (key, value)
11480
      for key, value in self.__dict__.iteritems()]
11481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11482
 
11483
  def __eq__(self, other):
11484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11485
 
11486
  def __ne__(self, other):
11487
    return not (self == other)
11488
 
11489
class removeCoupon_args:
11490
  """
11491
  Attributes:
11492
   - cartId
11493
  """
11494
 
11495
  thrift_spec = (
11496
    None, # 0
11497
    (1, TType.I64, 'cartId', None, None, ), # 1
11498
  )
11499
 
11500
  def __init__(self, cartId=None,):
11501
    self.cartId = cartId
11502
 
11503
  def read(self, iprot):
11504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11506
      return
11507
    iprot.readStructBegin()
11508
    while True:
11509
      (fname, ftype, fid) = iprot.readFieldBegin()
11510
      if ftype == TType.STOP:
11511
        break
11512
      if fid == 1:
11513
        if ftype == TType.I64:
11514
          self.cartId = iprot.readI64();
11515
        else:
11516
          iprot.skip(ftype)
11517
      else:
11518
        iprot.skip(ftype)
11519
      iprot.readFieldEnd()
11520
    iprot.readStructEnd()
11521
 
11522
  def write(self, oprot):
11523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11525
      return
11526
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11527
    if self.cartId is not None:
1976 varun.gupt 11528
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11529
      oprot.writeI64(self.cartId)
11530
      oprot.writeFieldEnd()
11531
    oprot.writeFieldStop()
11532
    oprot.writeStructEnd()
11533
 
3431 rajveer 11534
  def validate(self):
11535
    return
11536
 
11537
 
1976 varun.gupt 11538
  def __repr__(self):
11539
    L = ['%s=%r' % (key, value)
11540
      for key, value in self.__dict__.iteritems()]
11541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11542
 
11543
  def __eq__(self, other):
11544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11545
 
11546
  def __ne__(self, other):
11547
    return not (self == other)
11548
 
11549
class removeCoupon_result:
11550
  """
11551
  Attributes:
11552
   - scx
11553
  """
11554
 
11555
  thrift_spec = (
11556
    None, # 0
11557
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11558
  )
11559
 
11560
  def __init__(self, scx=None,):
11561
    self.scx = scx
11562
 
11563
  def read(self, iprot):
11564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11566
      return
11567
    iprot.readStructBegin()
11568
    while True:
11569
      (fname, ftype, fid) = iprot.readFieldBegin()
11570
      if ftype == TType.STOP:
11571
        break
11572
      if fid == 1:
11573
        if ftype == TType.STRUCT:
11574
          self.scx = ShoppingCartException()
11575
          self.scx.read(iprot)
11576
        else:
11577
          iprot.skip(ftype)
11578
      else:
11579
        iprot.skip(ftype)
11580
      iprot.readFieldEnd()
11581
    iprot.readStructEnd()
11582
 
11583
  def write(self, oprot):
11584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11586
      return
11587
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11588
    if self.scx is not None:
1976 varun.gupt 11589
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11590
      self.scx.write(oprot)
11591
      oprot.writeFieldEnd()
11592
    oprot.writeFieldStop()
11593
    oprot.writeStructEnd()
11594
 
3431 rajveer 11595
  def validate(self):
11596
    return
11597
 
11598
 
1976 varun.gupt 11599
  def __repr__(self):
11600
    L = ['%s=%r' % (key, value)
11601
      for key, value in self.__dict__.iteritems()]
11602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11603
 
11604
  def __eq__(self, other):
11605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11606
 
11607
  def __ne__(self, other):
11608
    return not (self == other)
11609
 
3554 varun.gupt 11610
class deleteDiscountsFromCart_args:
11611
  """
11612
  Attributes:
11613
   - cartId
11614
  """
11615
 
11616
  thrift_spec = (
11617
    None, # 0
11618
    (1, TType.I64, 'cartId', None, None, ), # 1
11619
  )
11620
 
11621
  def __init__(self, cartId=None,):
11622
    self.cartId = cartId
11623
 
11624
  def read(self, iprot):
11625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11627
      return
11628
    iprot.readStructBegin()
11629
    while True:
11630
      (fname, ftype, fid) = iprot.readFieldBegin()
11631
      if ftype == TType.STOP:
11632
        break
11633
      if fid == 1:
11634
        if ftype == TType.I64:
11635
          self.cartId = iprot.readI64();
11636
        else:
11637
          iprot.skip(ftype)
11638
      else:
11639
        iprot.skip(ftype)
11640
      iprot.readFieldEnd()
11641
    iprot.readStructEnd()
11642
 
11643
  def write(self, oprot):
11644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11646
      return
11647
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
11648
    if self.cartId is not None:
11649
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11650
      oprot.writeI64(self.cartId)
11651
      oprot.writeFieldEnd()
11652
    oprot.writeFieldStop()
11653
    oprot.writeStructEnd()
11654
 
11655
  def validate(self):
11656
    return
11657
 
11658
 
11659
  def __repr__(self):
11660
    L = ['%s=%r' % (key, value)
11661
      for key, value in self.__dict__.iteritems()]
11662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11663
 
11664
  def __eq__(self, other):
11665
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11666
 
11667
  def __ne__(self, other):
11668
    return not (self == other)
11669
 
11670
class deleteDiscountsFromCart_result:
11671
  """
11672
  Attributes:
11673
   - scx
11674
  """
11675
 
11676
  thrift_spec = (
11677
    None, # 0
11678
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11679
  )
11680
 
11681
  def __init__(self, scx=None,):
11682
    self.scx = scx
11683
 
11684
  def read(self, iprot):
11685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11687
      return
11688
    iprot.readStructBegin()
11689
    while True:
11690
      (fname, ftype, fid) = iprot.readFieldBegin()
11691
      if ftype == TType.STOP:
11692
        break
11693
      if fid == 1:
11694
        if ftype == TType.STRUCT:
11695
          self.scx = ShoppingCartException()
11696
          self.scx.read(iprot)
11697
        else:
11698
          iprot.skip(ftype)
11699
      else:
11700
        iprot.skip(ftype)
11701
      iprot.readFieldEnd()
11702
    iprot.readStructEnd()
11703
 
11704
  def write(self, oprot):
11705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11707
      return
11708
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11709
    if self.scx is not None:
11710
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11711
      self.scx.write(oprot)
11712
      oprot.writeFieldEnd()
11713
    oprot.writeFieldStop()
11714
    oprot.writeStructEnd()
11715
 
11716
  def validate(self):
11717
    return
11718
 
11719
 
11720
  def __repr__(self):
11721
    L = ['%s=%r' % (key, value)
11722
      for key, value in self.__dict__.iteritems()]
11723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11724
 
11725
  def __eq__(self, other):
11726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11727
 
11728
  def __ne__(self, other):
11729
    return not (self == other)
11730
 
11731
class saveDiscounts_args:
11732
  """
11733
  Attributes:
11734
   - discounts
11735
  """
11736
 
11737
  thrift_spec = (
11738
    None, # 0
11739
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11740
  )
11741
 
11742
  def __init__(self, discounts=None,):
11743
    self.discounts = discounts
11744
 
11745
  def read(self, iprot):
11746
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11747
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11748
      return
11749
    iprot.readStructBegin()
11750
    while True:
11751
      (fname, ftype, fid) = iprot.readFieldBegin()
11752
      if ftype == TType.STOP:
11753
        break
11754
      if fid == 1:
11755
        if ftype == TType.LIST:
11756
          self.discounts = []
11757
          (_etype122, _size119) = iprot.readListBegin()
11758
          for _i123 in xrange(_size119):
11759
            _elem124 = Discount()
11760
            _elem124.read(iprot)
11761
            self.discounts.append(_elem124)
11762
          iprot.readListEnd()
11763
        else:
11764
          iprot.skip(ftype)
11765
      else:
11766
        iprot.skip(ftype)
11767
      iprot.readFieldEnd()
11768
    iprot.readStructEnd()
11769
 
11770
  def write(self, oprot):
11771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11773
      return
11774
    oprot.writeStructBegin('saveDiscounts_args')
11775
    if self.discounts is not None:
11776
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11777
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11778
      for iter125 in self.discounts:
11779
        iter125.write(oprot)
11780
      oprot.writeListEnd()
11781
      oprot.writeFieldEnd()
11782
    oprot.writeFieldStop()
11783
    oprot.writeStructEnd()
11784
 
11785
  def validate(self):
11786
    return
11787
 
11788
 
11789
  def __repr__(self):
11790
    L = ['%s=%r' % (key, value)
11791
      for key, value in self.__dict__.iteritems()]
11792
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11793
 
11794
  def __eq__(self, other):
11795
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11796
 
11797
  def __ne__(self, other):
11798
    return not (self == other)
11799
 
11800
class saveDiscounts_result:
11801
  """
11802
  Attributes:
11803
   - scx
11804
  """
11805
 
11806
  thrift_spec = (
11807
    None, # 0
11808
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11809
  )
11810
 
11811
  def __init__(self, scx=None,):
11812
    self.scx = scx
11813
 
11814
  def read(self, iprot):
11815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11817
      return
11818
    iprot.readStructBegin()
11819
    while True:
11820
      (fname, ftype, fid) = iprot.readFieldBegin()
11821
      if ftype == TType.STOP:
11822
        break
11823
      if fid == 1:
11824
        if ftype == TType.STRUCT:
11825
          self.scx = ShoppingCartException()
11826
          self.scx.read(iprot)
11827
        else:
11828
          iprot.skip(ftype)
11829
      else:
11830
        iprot.skip(ftype)
11831
      iprot.readFieldEnd()
11832
    iprot.readStructEnd()
11833
 
11834
  def write(self, oprot):
11835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11837
      return
11838
    oprot.writeStructBegin('saveDiscounts_result')
11839
    if self.scx is not None:
11840
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11841
      self.scx.write(oprot)
11842
      oprot.writeFieldEnd()
11843
    oprot.writeFieldStop()
11844
    oprot.writeStructEnd()
11845
 
11846
  def validate(self):
11847
    return
11848
 
11849
 
11850
  def __repr__(self):
11851
    L = ['%s=%r' % (key, value)
11852
      for key, value in self.__dict__.iteritems()]
11853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11854
 
11855
  def __eq__(self, other):
11856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11857
 
11858
  def __ne__(self, other):
11859
    return not (self == other)
11860
 
690 chandransh 11861
class createOrders_args:
559 chandransh 11862
  """
11863
  Attributes:
11864
   - cartId
2815 vikas 11865
   - sessionSource
11866
   - sessionStartTime
559 chandransh 11867
  """
11868
 
11869
  thrift_spec = (
11870
    None, # 0
11871
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11872
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11873
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
559 chandransh 11874
  )
11875
 
2815 vikas 11876
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None,):
559 chandransh 11877
    self.cartId = cartId
2815 vikas 11878
    self.sessionSource = sessionSource
11879
    self.sessionStartTime = sessionStartTime
559 chandransh 11880
 
11881
  def read(self, iprot):
11882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11884
      return
11885
    iprot.readStructBegin()
11886
    while True:
11887
      (fname, ftype, fid) = iprot.readFieldBegin()
11888
      if ftype == TType.STOP:
11889
        break
11890
      if fid == 1:
11891
        if ftype == TType.I64:
11892
          self.cartId = iprot.readI64();
11893
        else:
11894
          iprot.skip(ftype)
2815 vikas 11895
      elif fid == 2:
11896
        if ftype == TType.STRING:
11897
          self.sessionSource = iprot.readString();
11898
        else:
11899
          iprot.skip(ftype)
11900
      elif fid == 3:
11901
        if ftype == TType.I64:
11902
          self.sessionStartTime = iprot.readI64();
11903
        else:
11904
          iprot.skip(ftype)
559 chandransh 11905
      else:
11906
        iprot.skip(ftype)
11907
      iprot.readFieldEnd()
11908
    iprot.readStructEnd()
11909
 
11910
  def write(self, oprot):
11911
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11912
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11913
      return
690 chandransh 11914
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11915
    if self.cartId is not None:
559 chandransh 11916
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11917
      oprot.writeI64(self.cartId)
11918
      oprot.writeFieldEnd()
3431 rajveer 11919
    if self.sessionSource is not None:
2815 vikas 11920
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11921
      oprot.writeString(self.sessionSource)
11922
      oprot.writeFieldEnd()
3431 rajveer 11923
    if self.sessionStartTime is not None:
2815 vikas 11924
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11925
      oprot.writeI64(self.sessionStartTime)
11926
      oprot.writeFieldEnd()
559 chandransh 11927
    oprot.writeFieldStop()
11928
    oprot.writeStructEnd()
11929
 
3431 rajveer 11930
  def validate(self):
11931
    return
11932
 
11933
 
559 chandransh 11934
  def __repr__(self):
11935
    L = ['%s=%r' % (key, value)
11936
      for key, value in self.__dict__.iteritems()]
11937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11938
 
11939
  def __eq__(self, other):
11940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11941
 
11942
  def __ne__(self, other):
11943
    return not (self == other)
11944
 
690 chandransh 11945
class createOrders_result:
559 chandransh 11946
  """
11947
  Attributes:
94 ashish 11948
   - success
559 chandransh 11949
   - scx
94 ashish 11950
  """
11951
 
11952
  thrift_spec = (
575 chandransh 11953
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11954
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11955
  )
11956
 
559 chandransh 11957
  def __init__(self, success=None, scx=None,):
94 ashish 11958
    self.success = success
559 chandransh 11959
    self.scx = scx
94 ashish 11960
 
11961
  def read(self, iprot):
11962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11964
      return
11965
    iprot.readStructBegin()
11966
    while True:
11967
      (fname, ftype, fid) = iprot.readFieldBegin()
11968
      if ftype == TType.STOP:
11969
        break
11970
      if fid == 0:
575 chandransh 11971
        if ftype == TType.I64:
11972
          self.success = iprot.readI64();
94 ashish 11973
        else:
11974
          iprot.skip(ftype)
11975
      elif fid == 1:
11976
        if ftype == TType.STRUCT:
559 chandransh 11977
          self.scx = ShoppingCartException()
11978
          self.scx.read(iprot)
94 ashish 11979
        else:
11980
          iprot.skip(ftype)
11981
      else:
11982
        iprot.skip(ftype)
11983
      iprot.readFieldEnd()
11984
    iprot.readStructEnd()
11985
 
11986
  def write(self, oprot):
11987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11989
      return
690 chandransh 11990
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11991
    if self.success is not None:
575 chandransh 11992
      oprot.writeFieldBegin('success', TType.I64, 0)
11993
      oprot.writeI64(self.success)
94 ashish 11994
      oprot.writeFieldEnd()
3431 rajveer 11995
    if self.scx is not None:
559 chandransh 11996
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11997
      self.scx.write(oprot)
94 ashish 11998
      oprot.writeFieldEnd()
11999
    oprot.writeFieldStop()
12000
    oprot.writeStructEnd()
12001
 
3431 rajveer 12002
  def validate(self):
12003
    return
12004
 
12005
 
94 ashish 12006
  def __repr__(self):
12007
    L = ['%s=%r' % (key, value)
12008
      for key, value in self.__dict__.iteritems()]
12009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12010
 
12011
  def __eq__(self, other):
12012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12013
 
12014
  def __ne__(self, other):
12015
    return not (self == other)
12016
 
559 chandransh 12017
class validateCart_args:
94 ashish 12018
  """
12019
  Attributes:
559 chandransh 12020
   - cartId
3557 rajveer 12021
   - sourceId
94 ashish 12022
  """
12023
 
12024
  thrift_spec = (
12025
    None, # 0
559 chandransh 12026
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 12027
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 12028
  )
12029
 
3557 rajveer 12030
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 12031
    self.cartId = cartId
3557 rajveer 12032
    self.sourceId = sourceId
94 ashish 12033
 
12034
  def read(self, iprot):
12035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12037
      return
12038
    iprot.readStructBegin()
12039
    while True:
12040
      (fname, ftype, fid) = iprot.readFieldBegin()
12041
      if ftype == TType.STOP:
12042
        break
12043
      if fid == 1:
12044
        if ftype == TType.I64:
559 chandransh 12045
          self.cartId = iprot.readI64();
94 ashish 12046
        else:
12047
          iprot.skip(ftype)
3557 rajveer 12048
      elif fid == 2:
12049
        if ftype == TType.I64:
12050
          self.sourceId = iprot.readI64();
12051
        else:
12052
          iprot.skip(ftype)
94 ashish 12053
      else:
12054
        iprot.skip(ftype)
12055
      iprot.readFieldEnd()
12056
    iprot.readStructEnd()
12057
 
12058
  def write(self, oprot):
12059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12061
      return
559 chandransh 12062
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 12063
    if self.cartId is not None:
559 chandransh 12064
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12065
      oprot.writeI64(self.cartId)
94 ashish 12066
      oprot.writeFieldEnd()
3557 rajveer 12067
    if self.sourceId is not None:
12068
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12069
      oprot.writeI64(self.sourceId)
12070
      oprot.writeFieldEnd()
94 ashish 12071
    oprot.writeFieldStop()
12072
    oprot.writeStructEnd()
12073
 
3431 rajveer 12074
  def validate(self):
12075
    return
12076
 
12077
 
94 ashish 12078
  def __repr__(self):
12079
    L = ['%s=%r' % (key, value)
12080
      for key, value in self.__dict__.iteritems()]
12081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12082
 
12083
  def __eq__(self, other):
12084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12085
 
12086
  def __ne__(self, other):
12087
    return not (self == other)
12088
 
559 chandransh 12089
class validateCart_result:
94 ashish 12090
  """
12091
  Attributes:
12092
   - success
575 chandransh 12093
   - scex
94 ashish 12094
  """
12095
 
12096
  thrift_spec = (
1466 ankur.sing 12097
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 12098
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 12099
  )
12100
 
575 chandransh 12101
  def __init__(self, success=None, scex=None,):
94 ashish 12102
    self.success = success
575 chandransh 12103
    self.scex = scex
94 ashish 12104
 
12105
  def read(self, iprot):
12106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12108
      return
12109
    iprot.readStructBegin()
12110
    while True:
12111
      (fname, ftype, fid) = iprot.readFieldBegin()
12112
      if ftype == TType.STOP:
12113
        break
12114
      if fid == 0:
1466 ankur.sing 12115
        if ftype == TType.STRING:
12116
          self.success = iprot.readString();
94 ashish 12117
        else:
12118
          iprot.skip(ftype)
575 chandransh 12119
      elif fid == 1:
12120
        if ftype == TType.STRUCT:
12121
          self.scex = ShoppingCartException()
12122
          self.scex.read(iprot)
12123
        else:
12124
          iprot.skip(ftype)
94 ashish 12125
      else:
12126
        iprot.skip(ftype)
12127
      iprot.readFieldEnd()
12128
    iprot.readStructEnd()
12129
 
12130
  def write(self, oprot):
12131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12133
      return
559 chandransh 12134
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 12135
    if self.success is not None:
1466 ankur.sing 12136
      oprot.writeFieldBegin('success', TType.STRING, 0)
12137
      oprot.writeString(self.success)
94 ashish 12138
      oprot.writeFieldEnd()
3431 rajveer 12139
    if self.scex is not None:
575 chandransh 12140
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12141
      self.scex.write(oprot)
12142
      oprot.writeFieldEnd()
559 chandransh 12143
    oprot.writeFieldStop()
12144
    oprot.writeStructEnd()
12145
 
3431 rajveer 12146
  def validate(self):
12147
    return
12148
 
12149
 
559 chandransh 12150
  def __repr__(self):
12151
    L = ['%s=%r' % (key, value)
12152
      for key, value in self.__dict__.iteritems()]
12153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12154
 
12155
  def __eq__(self, other):
12156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12157
 
12158
  def __ne__(self, other):
12159
    return not (self == other)
12160
 
690 chandransh 12161
class mergeCart_args:
575 chandransh 12162
  """
12163
  Attributes:
690 chandransh 12164
   - fromCartId
12165
   - toCartId
12166
  """
12167
 
12168
  thrift_spec = (
12169
    None, # 0
12170
    (1, TType.I64, 'fromCartId', None, None, ), # 1
12171
    (2, TType.I64, 'toCartId', None, None, ), # 2
12172
  )
12173
 
12174
  def __init__(self, fromCartId=None, toCartId=None,):
12175
    self.fromCartId = fromCartId
12176
    self.toCartId = toCartId
12177
 
12178
  def read(self, iprot):
12179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12181
      return
12182
    iprot.readStructBegin()
12183
    while True:
12184
      (fname, ftype, fid) = iprot.readFieldBegin()
12185
      if ftype == TType.STOP:
12186
        break
12187
      if fid == 1:
12188
        if ftype == TType.I64:
12189
          self.fromCartId = iprot.readI64();
12190
        else:
12191
          iprot.skip(ftype)
12192
      elif fid == 2:
12193
        if ftype == TType.I64:
12194
          self.toCartId = iprot.readI64();
12195
        else:
12196
          iprot.skip(ftype)
12197
      else:
12198
        iprot.skip(ftype)
12199
      iprot.readFieldEnd()
12200
    iprot.readStructEnd()
12201
 
12202
  def write(self, oprot):
12203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12205
      return
12206
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 12207
    if self.fromCartId is not None:
690 chandransh 12208
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
12209
      oprot.writeI64(self.fromCartId)
12210
      oprot.writeFieldEnd()
3431 rajveer 12211
    if self.toCartId is not None:
690 chandransh 12212
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
12213
      oprot.writeI64(self.toCartId)
12214
      oprot.writeFieldEnd()
12215
    oprot.writeFieldStop()
12216
    oprot.writeStructEnd()
12217
 
3431 rajveer 12218
  def validate(self):
12219
    return
12220
 
12221
 
690 chandransh 12222
  def __repr__(self):
12223
    L = ['%s=%r' % (key, value)
12224
      for key, value in self.__dict__.iteritems()]
12225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12226
 
12227
  def __eq__(self, other):
12228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12229
 
12230
  def __ne__(self, other):
12231
    return not (self == other)
12232
 
12233
class mergeCart_result:
12234
 
12235
  thrift_spec = (
12236
  )
12237
 
12238
  def read(self, iprot):
12239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12241
      return
12242
    iprot.readStructBegin()
12243
    while True:
12244
      (fname, ftype, fid) = iprot.readFieldBegin()
12245
      if ftype == TType.STOP:
12246
        break
12247
      else:
12248
        iprot.skip(ftype)
12249
      iprot.readFieldEnd()
12250
    iprot.readStructEnd()
12251
 
12252
  def write(self, oprot):
12253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12255
      return
12256
    oprot.writeStructBegin('mergeCart_result')
12257
    oprot.writeFieldStop()
12258
    oprot.writeStructEnd()
12259
 
3431 rajveer 12260
  def validate(self):
12261
    return
12262
 
12263
 
690 chandransh 12264
  def __repr__(self):
12265
    L = ['%s=%r' % (key, value)
12266
      for key, value in self.__dict__.iteritems()]
12267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12268
 
12269
  def __eq__(self, other):
12270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12271
 
12272
  def __ne__(self, other):
12273
    return not (self == other)
12274
 
12275
class checkOut_args:
12276
  """
12277
  Attributes:
575 chandransh 12278
   - cartId
12279
  """
12280
 
12281
  thrift_spec = (
12282
    None, # 0
12283
    (1, TType.I64, 'cartId', None, None, ), # 1
12284
  )
12285
 
12286
  def __init__(self, cartId=None,):
12287
    self.cartId = cartId
12288
 
12289
  def read(self, iprot):
12290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12292
      return
12293
    iprot.readStructBegin()
12294
    while True:
12295
      (fname, ftype, fid) = iprot.readFieldBegin()
12296
      if ftype == TType.STOP:
12297
        break
12298
      if fid == 1:
12299
        if ftype == TType.I64:
12300
          self.cartId = iprot.readI64();
12301
        else:
12302
          iprot.skip(ftype)
12303
      else:
12304
        iprot.skip(ftype)
12305
      iprot.readFieldEnd()
12306
    iprot.readStructEnd()
12307
 
12308
  def write(self, oprot):
12309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12311
      return
690 chandransh 12312
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 12313
    if self.cartId is not None:
575 chandransh 12314
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12315
      oprot.writeI64(self.cartId)
12316
      oprot.writeFieldEnd()
12317
    oprot.writeFieldStop()
12318
    oprot.writeStructEnd()
12319
 
3431 rajveer 12320
  def validate(self):
12321
    return
12322
 
12323
 
575 chandransh 12324
  def __repr__(self):
12325
    L = ['%s=%r' % (key, value)
12326
      for key, value in self.__dict__.iteritems()]
12327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12328
 
12329
  def __eq__(self, other):
12330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12331
 
12332
  def __ne__(self, other):
12333
    return not (self == other)
12334
 
690 chandransh 12335
class checkOut_result:
575 chandransh 12336
  """
12337
  Attributes:
12338
   - success
12339
   - scex
12340
  """
12341
 
12342
  thrift_spec = (
12343
    (0, TType.BOOL, 'success', None, None, ), # 0
12344
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
12345
  )
12346
 
12347
  def __init__(self, success=None, scex=None,):
12348
    self.success = success
12349
    self.scex = scex
12350
 
12351
  def read(self, iprot):
12352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12354
      return
12355
    iprot.readStructBegin()
12356
    while True:
12357
      (fname, ftype, fid) = iprot.readFieldBegin()
12358
      if ftype == TType.STOP:
12359
        break
12360
      if fid == 0:
12361
        if ftype == TType.BOOL:
12362
          self.success = iprot.readBool();
12363
        else:
12364
          iprot.skip(ftype)
12365
      elif fid == 1:
12366
        if ftype == TType.STRUCT:
12367
          self.scex = ShoppingCartException()
12368
          self.scex.read(iprot)
12369
        else:
12370
          iprot.skip(ftype)
12371
      else:
12372
        iprot.skip(ftype)
12373
      iprot.readFieldEnd()
12374
    iprot.readStructEnd()
12375
 
12376
  def write(self, oprot):
12377
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12378
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12379
      return
690 chandransh 12380
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 12381
    if self.success is not None:
575 chandransh 12382
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12383
      oprot.writeBool(self.success)
12384
      oprot.writeFieldEnd()
3431 rajveer 12385
    if self.scex is not None:
575 chandransh 12386
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12387
      self.scex.write(oprot)
12388
      oprot.writeFieldEnd()
12389
    oprot.writeFieldStop()
12390
    oprot.writeStructEnd()
12391
 
3431 rajveer 12392
  def validate(self):
12393
    return
12394
 
12395
 
575 chandransh 12396
  def __repr__(self):
12397
    L = ['%s=%r' % (key, value)
12398
      for key, value in self.__dict__.iteritems()]
12399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12400
 
12401
  def __eq__(self, other):
12402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12403
 
12404
  def __ne__(self, other):
12405
    return not (self == other)
12406
 
690 chandransh 12407
class resetCart_args:
559 chandransh 12408
  """
12409
  Attributes:
690 chandransh 12410
   - cartId
12411
   - items
559 chandransh 12412
  """
12413
 
12414
  thrift_spec = (
12415
    None, # 0
690 chandransh 12416
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 12417
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 12418
  )
12419
 
690 chandransh 12420
  def __init__(self, cartId=None, items=None,):
12421
    self.cartId = cartId
12422
    self.items = items
559 chandransh 12423
 
12424
  def read(self, iprot):
12425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12427
      return
12428
    iprot.readStructBegin()
12429
    while True:
12430
      (fname, ftype, fid) = iprot.readFieldBegin()
12431
      if ftype == TType.STOP:
12432
        break
12433
      if fid == 1:
12434
        if ftype == TType.I64:
690 chandransh 12435
          self.cartId = iprot.readI64();
559 chandransh 12436
        else:
12437
          iprot.skip(ftype)
12438
      elif fid == 2:
690 chandransh 12439
        if ftype == TType.MAP:
12440
          self.items = {}
3554 varun.gupt 12441
          (_ktype127, _vtype128, _size126 ) = iprot.readMapBegin() 
12442
          for _i130 in xrange(_size126):
12443
            _key131 = iprot.readI64();
12444
            _val132 = iprot.readDouble();
12445
            self.items[_key131] = _val132
690 chandransh 12446
          iprot.readMapEnd()
559 chandransh 12447
        else:
12448
          iprot.skip(ftype)
12449
      else:
12450
        iprot.skip(ftype)
12451
      iprot.readFieldEnd()
12452
    iprot.readStructEnd()
12453
 
12454
  def write(self, oprot):
12455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12457
      return
690 chandransh 12458
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12459
    if self.cartId is not None:
690 chandransh 12460
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12461
      oprot.writeI64(self.cartId)
94 ashish 12462
      oprot.writeFieldEnd()
3431 rajveer 12463
    if self.items is not None:
690 chandransh 12464
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12465
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
3554 varun.gupt 12466
      for kiter133,viter134 in self.items.items():
12467
        oprot.writeI64(kiter133)
12468
        oprot.writeDouble(viter134)
690 chandransh 12469
      oprot.writeMapEnd()
559 chandransh 12470
      oprot.writeFieldEnd()
94 ashish 12471
    oprot.writeFieldStop()
12472
    oprot.writeStructEnd()
12473
 
3431 rajveer 12474
  def validate(self):
12475
    return
12476
 
12477
 
94 ashish 12478
  def __repr__(self):
12479
    L = ['%s=%r' % (key, value)
12480
      for key, value in self.__dict__.iteritems()]
12481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12482
 
12483
  def __eq__(self, other):
12484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12485
 
12486
  def __ne__(self, other):
12487
    return not (self == other)
12488
 
690 chandransh 12489
class resetCart_result:
12490
  """
12491
  Attributes:
12492
   - success
12493
   - scex
12494
  """
559 chandransh 12495
 
12496
  thrift_spec = (
690 chandransh 12497
    (0, TType.BOOL, 'success', None, None, ), # 0
12498
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12499
  )
12500
 
690 chandransh 12501
  def __init__(self, success=None, scex=None,):
12502
    self.success = success
12503
    self.scex = scex
12504
 
559 chandransh 12505
  def read(self, iprot):
12506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12508
      return
12509
    iprot.readStructBegin()
12510
    while True:
12511
      (fname, ftype, fid) = iprot.readFieldBegin()
12512
      if ftype == TType.STOP:
12513
        break
690 chandransh 12514
      if fid == 0:
12515
        if ftype == TType.BOOL:
12516
          self.success = iprot.readBool();
12517
        else:
12518
          iprot.skip(ftype)
12519
      elif fid == 1:
12520
        if ftype == TType.STRUCT:
12521
          self.scex = ShoppingCartException()
12522
          self.scex.read(iprot)
12523
        else:
12524
          iprot.skip(ftype)
559 chandransh 12525
      else:
12526
        iprot.skip(ftype)
12527
      iprot.readFieldEnd()
12528
    iprot.readStructEnd()
12529
 
12530
  def write(self, oprot):
12531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12533
      return
690 chandransh 12534
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12535
    if self.success is not None:
690 chandransh 12536
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12537
      oprot.writeBool(self.success)
12538
      oprot.writeFieldEnd()
3431 rajveer 12539
    if self.scex is not None:
690 chandransh 12540
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12541
      self.scex.write(oprot)
12542
      oprot.writeFieldEnd()
559 chandransh 12543
    oprot.writeFieldStop()
12544
    oprot.writeStructEnd()
12545
 
3431 rajveer 12546
  def validate(self):
12547
    return
12548
 
12549
 
559 chandransh 12550
  def __repr__(self):
12551
    L = ['%s=%r' % (key, value)
12552
      for key, value in self.__dict__.iteritems()]
12553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12554
 
12555
  def __eq__(self, other):
12556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12557
 
12558
  def __ne__(self, other):
12559
    return not (self == other)
12560
 
2981 rajveer 12561
class getUserCount_args:
94 ashish 12562
  """
12563
  Attributes:
2981 rajveer 12564
   - userType
559 chandransh 12565
  """
12566
 
12567
  thrift_spec = (
12568
    None, # 0
2981 rajveer 12569
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12570
  )
12571
 
2981 rajveer 12572
  def __init__(self, userType=None,):
12573
    self.userType = userType
559 chandransh 12574
 
12575
  def read(self, iprot):
12576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12578
      return
12579
    iprot.readStructBegin()
12580
    while True:
12581
      (fname, ftype, fid) = iprot.readFieldBegin()
12582
      if ftype == TType.STOP:
12583
        break
12584
      if fid == 1:
2981 rajveer 12585
        if ftype == TType.I32:
12586
          self.userType = iprot.readI32();
559 chandransh 12587
        else:
12588
          iprot.skip(ftype)
12589
      else:
12590
        iprot.skip(ftype)
12591
      iprot.readFieldEnd()
12592
    iprot.readStructEnd()
12593
 
12594
  def write(self, oprot):
12595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12597
      return
2981 rajveer 12598
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12599
    if self.userType is not None:
2981 rajveer 12600
      oprot.writeFieldBegin('userType', TType.I32, 1)
12601
      oprot.writeI32(self.userType)
559 chandransh 12602
      oprot.writeFieldEnd()
12603
    oprot.writeFieldStop()
12604
    oprot.writeStructEnd()
12605
 
3431 rajveer 12606
  def validate(self):
12607
    return
12608
 
12609
 
559 chandransh 12610
  def __repr__(self):
12611
    L = ['%s=%r' % (key, value)
12612
      for key, value in self.__dict__.iteritems()]
12613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12614
 
12615
  def __eq__(self, other):
12616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12617
 
12618
  def __ne__(self, other):
12619
    return not (self == other)
12620
 
2981 rajveer 12621
class getUserCount_result:
94 ashish 12622
  """
12623
  Attributes:
12624
   - success
12625
  """
12626
 
12627
  thrift_spec = (
2981 rajveer 12628
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12629
  )
12630
 
2981 rajveer 12631
  def __init__(self, success=None,):
94 ashish 12632
    self.success = success
12633
 
12634
  def read(self, iprot):
12635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12637
      return
12638
    iprot.readStructBegin()
12639
    while True:
12640
      (fname, ftype, fid) = iprot.readFieldBegin()
12641
      if ftype == TType.STOP:
12642
        break
12643
      if fid == 0:
2981 rajveer 12644
        if ftype == TType.I64:
12645
          self.success = iprot.readI64();
94 ashish 12646
        else:
12647
          iprot.skip(ftype)
12648
      else:
12649
        iprot.skip(ftype)
12650
      iprot.readFieldEnd()
12651
    iprot.readStructEnd()
12652
 
12653
  def write(self, oprot):
12654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12656
      return
2981 rajveer 12657
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12658
    if self.success is not None:
2981 rajveer 12659
      oprot.writeFieldBegin('success', TType.I64, 0)
12660
      oprot.writeI64(self.success)
94 ashish 12661
      oprot.writeFieldEnd()
12662
    oprot.writeFieldStop()
12663
    oprot.writeStructEnd()
12664
 
3431 rajveer 12665
  def validate(self):
12666
    return
12667
 
12668
 
94 ashish 12669
  def __repr__(self):
12670
    L = ['%s=%r' % (key, value)
12671
      for key, value in self.__dict__.iteritems()]
12672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12673
 
12674
  def __eq__(self, other):
12675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12676
 
12677
  def __ne__(self, other):
12678
    return not (self == other)
12679
 
2981 rajveer 12680
class getAllUsers_args:
94 ashish 12681
  """
12682
  Attributes:
2981 rajveer 12683
   - userType
12684
   - startDate
12685
   - endDate
94 ashish 12686
  """
12687
 
12688
  thrift_spec = (
12689
    None, # 0
2981 rajveer 12690
    (1, TType.I32, 'userType', None, None, ), # 1
12691
    (2, TType.I64, 'startDate', None, None, ), # 2
12692
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12693
  )
12694
 
2981 rajveer 12695
  def __init__(self, userType=None, startDate=None, endDate=None,):
12696
    self.userType = userType
12697
    self.startDate = startDate
12698
    self.endDate = endDate
94 ashish 12699
 
12700
  def read(self, iprot):
12701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12703
      return
12704
    iprot.readStructBegin()
12705
    while True:
12706
      (fname, ftype, fid) = iprot.readFieldBegin()
12707
      if ftype == TType.STOP:
12708
        break
12709
      if fid == 1:
2981 rajveer 12710
        if ftype == TType.I32:
12711
          self.userType = iprot.readI32();
94 ashish 12712
        else:
12713
          iprot.skip(ftype)
12714
      elif fid == 2:
559 chandransh 12715
        if ftype == TType.I64:
2981 rajveer 12716
          self.startDate = iprot.readI64();
94 ashish 12717
        else:
12718
          iprot.skip(ftype)
2981 rajveer 12719
      elif fid == 3:
12720
        if ftype == TType.I64:
12721
          self.endDate = iprot.readI64();
12722
        else:
12723
          iprot.skip(ftype)
94 ashish 12724
      else:
12725
        iprot.skip(ftype)
12726
      iprot.readFieldEnd()
12727
    iprot.readStructEnd()
12728
 
12729
  def write(self, oprot):
12730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12732
      return
2981 rajveer 12733
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12734
    if self.userType is not None:
2981 rajveer 12735
      oprot.writeFieldBegin('userType', TType.I32, 1)
12736
      oprot.writeI32(self.userType)
94 ashish 12737
      oprot.writeFieldEnd()
3431 rajveer 12738
    if self.startDate is not None:
2981 rajveer 12739
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12740
      oprot.writeI64(self.startDate)
94 ashish 12741
      oprot.writeFieldEnd()
3431 rajveer 12742
    if self.endDate is not None:
2981 rajveer 12743
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12744
      oprot.writeI64(self.endDate)
12745
      oprot.writeFieldEnd()
94 ashish 12746
    oprot.writeFieldStop()
12747
    oprot.writeStructEnd()
12748
 
3431 rajveer 12749
  def validate(self):
12750
    return
12751
 
12752
 
94 ashish 12753
  def __repr__(self):
12754
    L = ['%s=%r' % (key, value)
12755
      for key, value in self.__dict__.iteritems()]
12756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12757
 
12758
  def __eq__(self, other):
12759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12760
 
12761
  def __ne__(self, other):
12762
    return not (self == other)
12763
 
2981 rajveer 12764
class getAllUsers_result:
94 ashish 12765
  """
12766
  Attributes:
12767
   - success
12768
  """
12769
 
12770
  thrift_spec = (
2981 rajveer 12771
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12772
  )
12773
 
2981 rajveer 12774
  def __init__(self, success=None,):
94 ashish 12775
    self.success = success
12776
 
12777
  def read(self, iprot):
12778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12780
      return
12781
    iprot.readStructBegin()
12782
    while True:
12783
      (fname, ftype, fid) = iprot.readFieldBegin()
12784
      if ftype == TType.STOP:
12785
        break
12786
      if fid == 0:
2981 rajveer 12787
        if ftype == TType.LIST:
12788
          self.success = []
3554 varun.gupt 12789
          (_etype138, _size135) = iprot.readListBegin()
12790
          for _i139 in xrange(_size135):
12791
            _elem140 = User()
12792
            _elem140.read(iprot)
12793
            self.success.append(_elem140)
2981 rajveer 12794
          iprot.readListEnd()
94 ashish 12795
        else:
12796
          iprot.skip(ftype)
12797
      else:
12798
        iprot.skip(ftype)
12799
      iprot.readFieldEnd()
12800
    iprot.readStructEnd()
12801
 
12802
  def write(self, oprot):
12803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12805
      return
2981 rajveer 12806
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12807
    if self.success is not None:
2981 rajveer 12808
      oprot.writeFieldBegin('success', TType.LIST, 0)
12809
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 12810
      for iter141 in self.success:
12811
        iter141.write(oprot)
2981 rajveer 12812
      oprot.writeListEnd()
94 ashish 12813
      oprot.writeFieldEnd()
12814
    oprot.writeFieldStop()
12815
    oprot.writeStructEnd()
12816
 
3431 rajveer 12817
  def validate(self):
12818
    return
12819
 
12820
 
94 ashish 12821
  def __repr__(self):
12822
    L = ['%s=%r' % (key, value)
12823
      for key, value in self.__dict__.iteritems()]
12824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12825
 
12826
  def __eq__(self, other):
12827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12828
 
12829
  def __ne__(self, other):
12830
    return not (self == other)
12831
 
2981 rajveer 12832
class putUserNote_args:
130 ashish 12833
  """
12834
  Attributes:
2981 rajveer 12835
   - user_id
12836
   - entity_id
12837
   - slide
12838
   - note
130 ashish 12839
  """
94 ashish 12840
 
130 ashish 12841
  thrift_spec = (
12842
    None, # 0
2981 rajveer 12843
    (1, TType.I64, 'user_id', None, None, ), # 1
12844
    (2, TType.I64, 'entity_id', None, None, ), # 2
12845
    (3, TType.STRING, 'slide', None, None, ), # 3
12846
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12847
  )
12848
 
2981 rajveer 12849
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12850
    self.user_id = user_id
12851
    self.entity_id = entity_id
12852
    self.slide = slide
12853
    self.note = note
130 ashish 12854
 
12855
  def read(self, iprot):
12856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12858
      return
12859
    iprot.readStructBegin()
12860
    while True:
12861
      (fname, ftype, fid) = iprot.readFieldBegin()
12862
      if ftype == TType.STOP:
12863
        break
12864
      if fid == 1:
12865
        if ftype == TType.I64:
2981 rajveer 12866
          self.user_id = iprot.readI64();
130 ashish 12867
        else:
12868
          iprot.skip(ftype)
559 chandransh 12869
      elif fid == 2:
12870
        if ftype == TType.I64:
2981 rajveer 12871
          self.entity_id = iprot.readI64();
559 chandransh 12872
        else:
12873
          iprot.skip(ftype)
2981 rajveer 12874
      elif fid == 3:
12875
        if ftype == TType.STRING:
12876
          self.slide = iprot.readString();
12877
        else:
12878
          iprot.skip(ftype)
12879
      elif fid == 4:
12880
        if ftype == TType.STRING:
12881
          self.note = iprot.readString();
12882
        else:
12883
          iprot.skip(ftype)
130 ashish 12884
      else:
12885
        iprot.skip(ftype)
12886
      iprot.readFieldEnd()
12887
    iprot.readStructEnd()
12888
 
12889
  def write(self, oprot):
12890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12892
      return
2981 rajveer 12893
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12894
    if self.user_id is not None:
2981 rajveer 12895
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12896
      oprot.writeI64(self.user_id)
130 ashish 12897
      oprot.writeFieldEnd()
3431 rajveer 12898
    if self.entity_id is not None:
2981 rajveer 12899
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12900
      oprot.writeI64(self.entity_id)
559 chandransh 12901
      oprot.writeFieldEnd()
3431 rajveer 12902
    if self.slide is not None:
2981 rajveer 12903
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12904
      oprot.writeString(self.slide)
12905
      oprot.writeFieldEnd()
3431 rajveer 12906
    if self.note is not None:
2981 rajveer 12907
      oprot.writeFieldBegin('note', TType.STRING, 4)
12908
      oprot.writeString(self.note)
12909
      oprot.writeFieldEnd()
130 ashish 12910
    oprot.writeFieldStop()
12911
    oprot.writeStructEnd()
12912
 
3431 rajveer 12913
  def validate(self):
12914
    return
12915
 
12916
 
130 ashish 12917
  def __repr__(self):
12918
    L = ['%s=%r' % (key, value)
12919
      for key, value in self.__dict__.iteritems()]
12920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12921
 
12922
  def __eq__(self, other):
12923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12924
 
12925
  def __ne__(self, other):
12926
    return not (self == other)
12927
 
2981 rajveer 12928
class putUserNote_result:
559 chandransh 12929
 
12930
  thrift_spec = (
12931
  )
12932
 
12933
  def read(self, iprot):
12934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12936
      return
12937
    iprot.readStructBegin()
12938
    while True:
12939
      (fname, ftype, fid) = iprot.readFieldBegin()
12940
      if ftype == TType.STOP:
12941
        break
12942
      else:
12943
        iprot.skip(ftype)
12944
      iprot.readFieldEnd()
12945
    iprot.readStructEnd()
12946
 
12947
  def write(self, oprot):
12948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12950
      return
2981 rajveer 12951
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12952
    oprot.writeFieldStop()
12953
    oprot.writeStructEnd()
12954
 
3431 rajveer 12955
  def validate(self):
12956
    return
12957
 
12958
 
559 chandransh 12959
  def __repr__(self):
12960
    L = ['%s=%r' % (key, value)
12961
      for key, value in self.__dict__.iteritems()]
12962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12963
 
12964
  def __eq__(self, other):
12965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12966
 
12967
  def __ne__(self, other):
12968
    return not (self == other)
12969
 
2981 rajveer 12970
class getUserNotes_args:
559 chandransh 12971
  """
12972
  Attributes:
2981 rajveer 12973
   - user_id
12974
   - entity_id
559 chandransh 12975
  """
12976
 
12977
  thrift_spec = (
12978
    None, # 0
2981 rajveer 12979
    (1, TType.I64, 'user_id', None, None, ), # 1
12980
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12981
  )
12982
 
2981 rajveer 12983
  def __init__(self, user_id=None, entity_id=None,):
12984
    self.user_id = user_id
12985
    self.entity_id = entity_id
559 chandransh 12986
 
12987
  def read(self, iprot):
12988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12990
      return
12991
    iprot.readStructBegin()
12992
    while True:
12993
      (fname, ftype, fid) = iprot.readFieldBegin()
12994
      if ftype == TType.STOP:
12995
        break
12996
      if fid == 1:
12997
        if ftype == TType.I64:
2981 rajveer 12998
          self.user_id = iprot.readI64();
559 chandransh 12999
        else:
13000
          iprot.skip(ftype)
13001
      elif fid == 2:
13002
        if ftype == TType.I64:
2981 rajveer 13003
          self.entity_id = iprot.readI64();
559 chandransh 13004
        else:
13005
          iprot.skip(ftype)
13006
      else:
13007
        iprot.skip(ftype)
13008
      iprot.readFieldEnd()
13009
    iprot.readStructEnd()
13010
 
13011
  def write(self, oprot):
13012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13014
      return
2981 rajveer 13015
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 13016
    if self.user_id is not None:
2981 rajveer 13017
      oprot.writeFieldBegin('user_id', TType.I64, 1)
13018
      oprot.writeI64(self.user_id)
559 chandransh 13019
      oprot.writeFieldEnd()
3431 rajveer 13020
    if self.entity_id is not None:
2981 rajveer 13021
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
13022
      oprot.writeI64(self.entity_id)
559 chandransh 13023
      oprot.writeFieldEnd()
13024
    oprot.writeFieldStop()
13025
    oprot.writeStructEnd()
13026
 
3431 rajveer 13027
  def validate(self):
13028
    return
13029
 
13030
 
559 chandransh 13031
  def __repr__(self):
13032
    L = ['%s=%r' % (key, value)
13033
      for key, value in self.__dict__.iteritems()]
13034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13035
 
13036
  def __eq__(self, other):
13037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13038
 
13039
  def __ne__(self, other):
13040
    return not (self == other)
13041
 
2981 rajveer 13042
class getUserNotes_result:
13043
  """
13044
  Attributes:
13045
   - success
13046
  """
559 chandransh 13047
 
13048
  thrift_spec = (
2981 rajveer 13049
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 13050
  )
13051
 
2981 rajveer 13052
  def __init__(self, success=None,):
13053
    self.success = success
13054
 
559 chandransh 13055
  def read(self, iprot):
13056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13058
      return
13059
    iprot.readStructBegin()
13060
    while True:
13061
      (fname, ftype, fid) = iprot.readFieldBegin()
13062
      if ftype == TType.STOP:
13063
        break
2981 rajveer 13064
      if fid == 0:
13065
        if ftype == TType.LIST:
13066
          self.success = []
3554 varun.gupt 13067
          (_etype145, _size142) = iprot.readListBegin()
13068
          for _i146 in xrange(_size142):
13069
            _elem147 = UserNote()
13070
            _elem147.read(iprot)
13071
            self.success.append(_elem147)
2981 rajveer 13072
          iprot.readListEnd()
13073
        else:
13074
          iprot.skip(ftype)
559 chandransh 13075
      else:
13076
        iprot.skip(ftype)
13077
      iprot.readFieldEnd()
13078
    iprot.readStructEnd()
13079
 
13080
  def write(self, oprot):
13081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13083
      return
2981 rajveer 13084
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 13085
    if self.success is not None:
2981 rajveer 13086
      oprot.writeFieldBegin('success', TType.LIST, 0)
13087
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 13088
      for iter148 in self.success:
13089
        iter148.write(oprot)
2981 rajveer 13090
      oprot.writeListEnd()
13091
      oprot.writeFieldEnd()
559 chandransh 13092
    oprot.writeFieldStop()
13093
    oprot.writeStructEnd()
13094
 
3431 rajveer 13095
  def validate(self):
13096
    return
13097
 
13098
 
559 chandransh 13099
  def __repr__(self):
13100
    L = ['%s=%r' % (key, value)
13101
      for key, value in self.__dict__.iteritems()]
13102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13103
 
13104
  def __eq__(self, other):
13105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13106
 
13107
  def __ne__(self, other):
13108
    return not (self == other)
13109
 
2981 rajveer 13110
class getMyResearchItems_args:
559 chandransh 13111
  """
13112
  Attributes:
772 rajveer 13113
   - userId
559 chandransh 13114
  """
13115
 
13116
  thrift_spec = (
13117
    None, # 0
772 rajveer 13118
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 13119
  )
13120
 
772 rajveer 13121
  def __init__(self, userId=None,):
13122
    self.userId = userId
559 chandransh 13123
 
13124
  def read(self, iprot):
13125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13127
      return
13128
    iprot.readStructBegin()
13129
    while True:
13130
      (fname, ftype, fid) = iprot.readFieldBegin()
13131
      if ftype == TType.STOP:
13132
        break
13133
      if fid == 1:
13134
        if ftype == TType.I64:
772 rajveer 13135
          self.userId = iprot.readI64();
559 chandransh 13136
        else:
13137
          iprot.skip(ftype)
13138
      else:
13139
        iprot.skip(ftype)
13140
      iprot.readFieldEnd()
13141
    iprot.readStructEnd()
13142
 
13143
  def write(self, oprot):
13144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13146
      return
2981 rajveer 13147
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 13148
    if self.userId is not None:
772 rajveer 13149
      oprot.writeFieldBegin('userId', TType.I64, 1)
13150
      oprot.writeI64(self.userId)
559 chandransh 13151
      oprot.writeFieldEnd()
13152
    oprot.writeFieldStop()
13153
    oprot.writeStructEnd()
13154
 
3431 rajveer 13155
  def validate(self):
13156
    return
13157
 
13158
 
559 chandransh 13159
  def __repr__(self):
13160
    L = ['%s=%r' % (key, value)
13161
      for key, value in self.__dict__.iteritems()]
13162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13163
 
13164
  def __eq__(self, other):
13165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13166
 
13167
  def __ne__(self, other):
13168
    return not (self == other)
13169
 
2981 rajveer 13170
class getMyResearchItems_result:
559 chandransh 13171
  """
13172
  Attributes:
130 ashish 13173
   - success
559 chandransh 13174
   - scx
130 ashish 13175
  """
13176
 
13177
  thrift_spec = (
2981 rajveer 13178
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 13179
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 13180
  )
13181
 
559 chandransh 13182
  def __init__(self, success=None, scx=None,):
130 ashish 13183
    self.success = success
559 chandransh 13184
    self.scx = scx
130 ashish 13185
 
13186
  def read(self, iprot):
13187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13189
      return
13190
    iprot.readStructBegin()
13191
    while True:
13192
      (fname, ftype, fid) = iprot.readFieldBegin()
13193
      if ftype == TType.STOP:
13194
        break
13195
      if fid == 0:
2981 rajveer 13196
        if ftype == TType.LIST:
13197
          self.success = []
3554 varun.gupt 13198
          (_etype152, _size149) = iprot.readListBegin()
13199
          for _i153 in xrange(_size149):
13200
            _elem154 = iprot.readI64();
13201
            self.success.append(_elem154)
2981 rajveer 13202
          iprot.readListEnd()
130 ashish 13203
        else:
13204
          iprot.skip(ftype)
13205
      elif fid == 1:
13206
        if ftype == TType.STRUCT:
559 chandransh 13207
          self.scx = WidgetException()
13208
          self.scx.read(iprot)
130 ashish 13209
        else:
13210
          iprot.skip(ftype)
13211
      else:
13212
        iprot.skip(ftype)
13213
      iprot.readFieldEnd()
13214
    iprot.readStructEnd()
13215
 
13216
  def write(self, oprot):
13217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13219
      return
2981 rajveer 13220
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 13221
    if self.success is not None:
2981 rajveer 13222
      oprot.writeFieldBegin('success', TType.LIST, 0)
13223
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13224
      for iter155 in self.success:
13225
        oprot.writeI64(iter155)
2981 rajveer 13226
      oprot.writeListEnd()
130 ashish 13227
      oprot.writeFieldEnd()
3431 rajveer 13228
    if self.scx is not None:
559 chandransh 13229
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13230
      self.scx.write(oprot)
130 ashish 13231
      oprot.writeFieldEnd()
13232
    oprot.writeFieldStop()
13233
    oprot.writeStructEnd()
13234
 
3431 rajveer 13235
  def validate(self):
13236
    return
13237
 
13238
 
130 ashish 13239
  def __repr__(self):
13240
    L = ['%s=%r' % (key, value)
13241
      for key, value in self.__dict__.iteritems()]
13242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13243
 
13244
  def __eq__(self, other):
13245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13246
 
13247
  def __ne__(self, other):
13248
    return not (self == other)
13249
 
2981 rajveer 13250
class updateMyResearch_args:
130 ashish 13251
  """
13252
  Attributes:
2981 rajveer 13253
   - userId
13254
   - itemId
130 ashish 13255
  """
13256
 
13257
  thrift_spec = (
13258
    None, # 0
2981 rajveer 13259
    (1, TType.I64, 'userId', None, None, ), # 1
13260
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 13261
  )
13262
 
2981 rajveer 13263
  def __init__(self, userId=None, itemId=None,):
13264
    self.userId = userId
13265
    self.itemId = itemId
130 ashish 13266
 
13267
  def read(self, iprot):
13268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13270
      return
13271
    iprot.readStructBegin()
13272
    while True:
13273
      (fname, ftype, fid) = iprot.readFieldBegin()
13274
      if ftype == TType.STOP:
13275
        break
13276
      if fid == 1:
559 chandransh 13277
        if ftype == TType.I64:
2981 rajveer 13278
          self.userId = iprot.readI64();
130 ashish 13279
        else:
13280
          iprot.skip(ftype)
13281
      elif fid == 2:
559 chandransh 13282
        if ftype == TType.I64:
2981 rajveer 13283
          self.itemId = iprot.readI64();
559 chandransh 13284
        else:
13285
          iprot.skip(ftype)
130 ashish 13286
      else:
13287
        iprot.skip(ftype)
13288
      iprot.readFieldEnd()
13289
    iprot.readStructEnd()
13290
 
13291
  def write(self, oprot):
13292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13294
      return
2981 rajveer 13295
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 13296
    if self.userId is not None:
2981 rajveer 13297
      oprot.writeFieldBegin('userId', TType.I64, 1)
13298
      oprot.writeI64(self.userId)
130 ashish 13299
      oprot.writeFieldEnd()
3431 rajveer 13300
    if self.itemId is not None:
2981 rajveer 13301
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13302
      oprot.writeI64(self.itemId)
130 ashish 13303
      oprot.writeFieldEnd()
13304
    oprot.writeFieldStop()
13305
    oprot.writeStructEnd()
13306
 
3431 rajveer 13307
  def validate(self):
13308
    return
13309
 
13310
 
130 ashish 13311
  def __repr__(self):
13312
    L = ['%s=%r' % (key, value)
13313
      for key, value in self.__dict__.iteritems()]
13314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13315
 
13316
  def __eq__(self, other):
13317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13318
 
13319
  def __ne__(self, other):
13320
    return not (self == other)
13321
 
2981 rajveer 13322
class updateMyResearch_result:
13323
  """
13324
  Attributes:
13325
   - success
13326
   - scx
13327
  """
559 chandransh 13328
 
13329
  thrift_spec = (
2981 rajveer 13330
    (0, TType.BOOL, 'success', None, None, ), # 0
13331
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 13332
  )
13333
 
2981 rajveer 13334
  def __init__(self, success=None, scx=None,):
13335
    self.success = success
13336
    self.scx = scx
13337
 
559 chandransh 13338
  def read(self, iprot):
13339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13341
      return
13342
    iprot.readStructBegin()
13343
    while True:
13344
      (fname, ftype, fid) = iprot.readFieldBegin()
13345
      if ftype == TType.STOP:
13346
        break
2981 rajveer 13347
      if fid == 0:
13348
        if ftype == TType.BOOL:
13349
          self.success = iprot.readBool();
13350
        else:
13351
          iprot.skip(ftype)
13352
      elif fid == 1:
13353
        if ftype == TType.STRUCT:
13354
          self.scx = WidgetException()
13355
          self.scx.read(iprot)
13356
        else:
13357
          iprot.skip(ftype)
559 chandransh 13358
      else:
13359
        iprot.skip(ftype)
13360
      iprot.readFieldEnd()
13361
    iprot.readStructEnd()
13362
 
13363
  def write(self, oprot):
13364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13366
      return
2981 rajveer 13367
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 13368
    if self.success is not None:
2981 rajveer 13369
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13370
      oprot.writeBool(self.success)
13371
      oprot.writeFieldEnd()
3431 rajveer 13372
    if self.scx is not None:
2981 rajveer 13373
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13374
      self.scx.write(oprot)
13375
      oprot.writeFieldEnd()
559 chandransh 13376
    oprot.writeFieldStop()
13377
    oprot.writeStructEnd()
13378
 
3431 rajveer 13379
  def validate(self):
13380
    return
13381
 
13382
 
559 chandransh 13383
  def __repr__(self):
13384
    L = ['%s=%r' % (key, value)
13385
      for key, value in self.__dict__.iteritems()]
13386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13387
 
13388
  def __eq__(self, other):
13389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13390
 
13391
  def __ne__(self, other):
13392
    return not (self == other)
13393
 
2981 rajveer 13394
class deleteItemFromMyResearch_args:
1596 ankur.sing 13395
  """
13396
  Attributes:
2981 rajveer 13397
   - userId
13398
   - itemId
1596 ankur.sing 13399
  """
559 chandransh 13400
 
1596 ankur.sing 13401
  thrift_spec = (
13402
    None, # 0
2981 rajveer 13403
    (1, TType.I64, 'userId', None, None, ), # 1
13404
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 13405
  )
13406
 
2981 rajveer 13407
  def __init__(self, userId=None, itemId=None,):
13408
    self.userId = userId
13409
    self.itemId = itemId
1596 ankur.sing 13410
 
13411
  def read(self, iprot):
13412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13414
      return
13415
    iprot.readStructBegin()
13416
    while True:
13417
      (fname, ftype, fid) = iprot.readFieldBegin()
13418
      if ftype == TType.STOP:
13419
        break
13420
      if fid == 1:
2981 rajveer 13421
        if ftype == TType.I64:
13422
          self.userId = iprot.readI64();
1596 ankur.sing 13423
        else:
13424
          iprot.skip(ftype)
2981 rajveer 13425
      elif fid == 2:
13426
        if ftype == TType.I64:
13427
          self.itemId = iprot.readI64();
13428
        else:
13429
          iprot.skip(ftype)
1596 ankur.sing 13430
      else:
13431
        iprot.skip(ftype)
13432
      iprot.readFieldEnd()
13433
    iprot.readStructEnd()
13434
 
13435
  def write(self, oprot):
13436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13438
      return
2981 rajveer 13439
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13440
    if self.userId is not None:
2981 rajveer 13441
      oprot.writeFieldBegin('userId', TType.I64, 1)
13442
      oprot.writeI64(self.userId)
1596 ankur.sing 13443
      oprot.writeFieldEnd()
3431 rajveer 13444
    if self.itemId is not None:
2981 rajveer 13445
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13446
      oprot.writeI64(self.itemId)
13447
      oprot.writeFieldEnd()
1596 ankur.sing 13448
    oprot.writeFieldStop()
13449
    oprot.writeStructEnd()
13450
 
3431 rajveer 13451
  def validate(self):
13452
    return
13453
 
13454
 
1596 ankur.sing 13455
  def __repr__(self):
13456
    L = ['%s=%r' % (key, value)
13457
      for key, value in self.__dict__.iteritems()]
13458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13459
 
13460
  def __eq__(self, other):
13461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13462
 
13463
  def __ne__(self, other):
13464
    return not (self == other)
13465
 
2981 rajveer 13466
class deleteItemFromMyResearch_result:
1596 ankur.sing 13467
  """
13468
  Attributes:
2981 rajveer 13469
   - scx
1596 ankur.sing 13470
  """
13471
 
13472
  thrift_spec = (
2981 rajveer 13473
    None, # 0
13474
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13475
  )
13476
 
2981 rajveer 13477
  def __init__(self, scx=None,):
13478
    self.scx = scx
1596 ankur.sing 13479
 
13480
  def read(self, iprot):
13481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13483
      return
13484
    iprot.readStructBegin()
13485
    while True:
13486
      (fname, ftype, fid) = iprot.readFieldBegin()
13487
      if ftype == TType.STOP:
13488
        break
2981 rajveer 13489
      if fid == 1:
13490
        if ftype == TType.STRUCT:
13491
          self.scx = WidgetException()
13492
          self.scx.read(iprot)
1596 ankur.sing 13493
        else:
13494
          iprot.skip(ftype)
13495
      else:
13496
        iprot.skip(ftype)
13497
      iprot.readFieldEnd()
13498
    iprot.readStructEnd()
13499
 
13500
  def write(self, oprot):
13501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13503
      return
2981 rajveer 13504
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13505
    if self.scx is not None:
2981 rajveer 13506
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13507
      self.scx.write(oprot)
1596 ankur.sing 13508
      oprot.writeFieldEnd()
13509
    oprot.writeFieldStop()
13510
    oprot.writeStructEnd()
13511
 
3431 rajveer 13512
  def validate(self):
13513
    return
13514
 
13515
 
1596 ankur.sing 13516
  def __repr__(self):
13517
    L = ['%s=%r' % (key, value)
13518
      for key, value in self.__dict__.iteritems()]
13519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13520
 
13521
  def __eq__(self, other):
13522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13523
 
13524
  def __ne__(self, other):
13525
    return not (self == other)
13526
 
2981 rajveer 13527
class getBrowseHistoryItems_args:
1673 ankur.sing 13528
  """
13529
  Attributes:
2981 rajveer 13530
   - userId
1673 ankur.sing 13531
  """
1596 ankur.sing 13532
 
1673 ankur.sing 13533
  thrift_spec = (
13534
    None, # 0
2981 rajveer 13535
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13536
  )
13537
 
2981 rajveer 13538
  def __init__(self, userId=None,):
13539
    self.userId = userId
1673 ankur.sing 13540
 
13541
  def read(self, iprot):
13542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13544
      return
13545
    iprot.readStructBegin()
13546
    while True:
13547
      (fname, ftype, fid) = iprot.readFieldBegin()
13548
      if ftype == TType.STOP:
13549
        break
13550
      if fid == 1:
1891 ankur.sing 13551
        if ftype == TType.I64:
2981 rajveer 13552
          self.userId = iprot.readI64();
1891 ankur.sing 13553
        else:
13554
          iprot.skip(ftype)
1673 ankur.sing 13555
      else:
13556
        iprot.skip(ftype)
13557
      iprot.readFieldEnd()
13558
    iprot.readStructEnd()
13559
 
13560
  def write(self, oprot):
13561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13563
      return
2981 rajveer 13564
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13565
    if self.userId is not None:
2981 rajveer 13566
      oprot.writeFieldBegin('userId', TType.I64, 1)
13567
      oprot.writeI64(self.userId)
1673 ankur.sing 13568
      oprot.writeFieldEnd()
13569
    oprot.writeFieldStop()
13570
    oprot.writeStructEnd()
13571
 
3431 rajveer 13572
  def validate(self):
13573
    return
13574
 
13575
 
1673 ankur.sing 13576
  def __repr__(self):
13577
    L = ['%s=%r' % (key, value)
13578
      for key, value in self.__dict__.iteritems()]
13579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13580
 
13581
  def __eq__(self, other):
13582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13583
 
13584
  def __ne__(self, other):
13585
    return not (self == other)
13586
 
2981 rajveer 13587
class getBrowseHistoryItems_result:
1673 ankur.sing 13588
  """
13589
  Attributes:
13590
   - success
2981 rajveer 13591
   - scx
1673 ankur.sing 13592
  """
13593
 
13594
  thrift_spec = (
2981 rajveer 13595
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13596
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13597
  )
13598
 
2981 rajveer 13599
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13600
    self.success = success
2981 rajveer 13601
    self.scx = scx
1673 ankur.sing 13602
 
13603
  def read(self, iprot):
13604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13606
      return
13607
    iprot.readStructBegin()
13608
    while True:
13609
      (fname, ftype, fid) = iprot.readFieldBegin()
13610
      if ftype == TType.STOP:
13611
        break
13612
      if fid == 0:
13613
        if ftype == TType.LIST:
13614
          self.success = []
3554 varun.gupt 13615
          (_etype159, _size156) = iprot.readListBegin()
13616
          for _i160 in xrange(_size156):
13617
            _elem161 = iprot.readI64();
13618
            self.success.append(_elem161)
1673 ankur.sing 13619
          iprot.readListEnd()
13620
        else:
13621
          iprot.skip(ftype)
2981 rajveer 13622
      elif fid == 1:
13623
        if ftype == TType.STRUCT:
13624
          self.scx = WidgetException()
13625
          self.scx.read(iprot)
13626
        else:
13627
          iprot.skip(ftype)
1673 ankur.sing 13628
      else:
13629
        iprot.skip(ftype)
13630
      iprot.readFieldEnd()
13631
    iprot.readStructEnd()
13632
 
13633
  def write(self, oprot):
13634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13636
      return
2981 rajveer 13637
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13638
    if self.success is not None:
1673 ankur.sing 13639
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13640
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13641
      for iter162 in self.success:
13642
        oprot.writeI64(iter162)
1673 ankur.sing 13643
      oprot.writeListEnd()
13644
      oprot.writeFieldEnd()
3431 rajveer 13645
    if self.scx is not None:
2981 rajveer 13646
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13647
      self.scx.write(oprot)
2642 varun.gupt 13648
      oprot.writeFieldEnd()
13649
    oprot.writeFieldStop()
13650
    oprot.writeStructEnd()
13651
 
3431 rajveer 13652
  def validate(self):
13653
    return
13654
 
13655
 
2642 varun.gupt 13656
  def __repr__(self):
13657
    L = ['%s=%r' % (key, value)
13658
      for key, value in self.__dict__.iteritems()]
13659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13660
 
13661
  def __eq__(self, other):
13662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13663
 
13664
  def __ne__(self, other):
13665
    return not (self == other)
13666
 
2981 rajveer 13667
class updateBrowseHistory_args:
2642 varun.gupt 13668
  """
13669
  Attributes:
2981 rajveer 13670
   - userId
13671
   - itemId
2642 varun.gupt 13672
  """
13673
 
13674
  thrift_spec = (
13675
    None, # 0
2981 rajveer 13676
    (1, TType.I64, 'userId', None, None, ), # 1
13677
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13678
  )
13679
 
2981 rajveer 13680
  def __init__(self, userId=None, itemId=None,):
13681
    self.userId = userId
13682
    self.itemId = itemId
2642 varun.gupt 13683
 
13684
  def read(self, iprot):
13685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13687
      return
13688
    iprot.readStructBegin()
13689
    while True:
13690
      (fname, ftype, fid) = iprot.readFieldBegin()
13691
      if ftype == TType.STOP:
13692
        break
13693
      if fid == 1:
13694
        if ftype == TType.I64:
2981 rajveer 13695
          self.userId = iprot.readI64();
2642 varun.gupt 13696
        else:
13697
          iprot.skip(ftype)
13698
      elif fid == 2:
13699
        if ftype == TType.I64:
2981 rajveer 13700
          self.itemId = iprot.readI64();
2642 varun.gupt 13701
        else:
13702
          iprot.skip(ftype)
13703
      else:
13704
        iprot.skip(ftype)
13705
      iprot.readFieldEnd()
13706
    iprot.readStructEnd()
13707
 
13708
  def write(self, oprot):
13709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13711
      return
2981 rajveer 13712
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13713
    if self.userId is not None:
2981 rajveer 13714
      oprot.writeFieldBegin('userId', TType.I64, 1)
13715
      oprot.writeI64(self.userId)
2642 varun.gupt 13716
      oprot.writeFieldEnd()
3431 rajveer 13717
    if self.itemId is not None:
2981 rajveer 13718
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13719
      oprot.writeI64(self.itemId)
2642 varun.gupt 13720
      oprot.writeFieldEnd()
13721
    oprot.writeFieldStop()
13722
    oprot.writeStructEnd()
13723
 
3431 rajveer 13724
  def validate(self):
13725
    return
13726
 
13727
 
2642 varun.gupt 13728
  def __repr__(self):
13729
    L = ['%s=%r' % (key, value)
13730
      for key, value in self.__dict__.iteritems()]
13731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13732
 
13733
  def __eq__(self, other):
13734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13735
 
13736
  def __ne__(self, other):
13737
    return not (self == other)
13738
 
2981 rajveer 13739
class updateBrowseHistory_result:
2642 varun.gupt 13740
 
13741
  thrift_spec = (
13742
  )
13743
 
13744
  def read(self, iprot):
13745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13747
      return
13748
    iprot.readStructBegin()
13749
    while True:
13750
      (fname, ftype, fid) = iprot.readFieldBegin()
13751
      if ftype == TType.STOP:
13752
        break
13753
      else:
13754
        iprot.skip(ftype)
13755
      iprot.readFieldEnd()
13756
    iprot.readStructEnd()
13757
 
13758
  def write(self, oprot):
13759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13761
      return
2981 rajveer 13762
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13763
    oprot.writeFieldStop()
13764
    oprot.writeStructEnd()
13765
 
3431 rajveer 13766
  def validate(self):
13767
    return
13768
 
13769
 
2642 varun.gupt 13770
  def __repr__(self):
13771
    L = ['%s=%r' % (key, value)
13772
      for key, value in self.__dict__.iteritems()]
13773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13774
 
13775
  def __eq__(self, other):
13776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13777
 
13778
  def __ne__(self, other):
13779
    return not (self == other)
13780
 
3385 varun.gupt 13781
class getCartsWithCouponCount_args:
13782
  """
13783
  Attributes:
13784
   - couponCode
13785
  """
2642 varun.gupt 13786
 
3385 varun.gupt 13787
  thrift_spec = (
13788
    None, # 0
13789
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13790
  )
13791
 
13792
  def __init__(self, couponCode=None,):
13793
    self.couponCode = couponCode
13794
 
13795
  def read(self, iprot):
13796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13798
      return
13799
    iprot.readStructBegin()
13800
    while True:
13801
      (fname, ftype, fid) = iprot.readFieldBegin()
13802
      if ftype == TType.STOP:
13803
        break
13804
      if fid == 1:
13805
        if ftype == TType.STRING:
13806
          self.couponCode = iprot.readString();
13807
        else:
13808
          iprot.skip(ftype)
13809
      else:
13810
        iprot.skip(ftype)
13811
      iprot.readFieldEnd()
13812
    iprot.readStructEnd()
13813
 
13814
  def write(self, oprot):
13815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13817
      return
13818
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13819
    if self.couponCode is not None:
3385 varun.gupt 13820
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13821
      oprot.writeString(self.couponCode)
13822
      oprot.writeFieldEnd()
13823
    oprot.writeFieldStop()
13824
    oprot.writeStructEnd()
13825
 
3431 rajveer 13826
  def validate(self):
13827
    return
13828
 
13829
 
3385 varun.gupt 13830
  def __repr__(self):
13831
    L = ['%s=%r' % (key, value)
13832
      for key, value in self.__dict__.iteritems()]
13833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13834
 
13835
  def __eq__(self, other):
13836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13837
 
13838
  def __ne__(self, other):
13839
    return not (self == other)
13840
 
13841
class getCartsWithCouponCount_result:
13842
  """
13843
  Attributes:
13844
   - success
13845
  """
13846
 
13847
  thrift_spec = (
13848
    (0, TType.I64, 'success', None, None, ), # 0
13849
  )
13850
 
13851
  def __init__(self, success=None,):
13852
    self.success = success
13853
 
13854
  def read(self, iprot):
13855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13857
      return
13858
    iprot.readStructBegin()
13859
    while True:
13860
      (fname, ftype, fid) = iprot.readFieldBegin()
13861
      if ftype == TType.STOP:
13862
        break
13863
      if fid == 0:
13864
        if ftype == TType.I64:
13865
          self.success = iprot.readI64();
13866
        else:
13867
          iprot.skip(ftype)
13868
      else:
13869
        iprot.skip(ftype)
13870
      iprot.readFieldEnd()
13871
    iprot.readStructEnd()
13872
 
13873
  def write(self, oprot):
13874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13876
      return
13877
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13878
    if self.success is not None:
3385 varun.gupt 13879
      oprot.writeFieldBegin('success', TType.I64, 0)
13880
      oprot.writeI64(self.success)
13881
      oprot.writeFieldEnd()
13882
    oprot.writeFieldStop()
13883
    oprot.writeStructEnd()
13884
 
3431 rajveer 13885
  def validate(self):
13886
    return
13887
 
13888
 
3385 varun.gupt 13889
  def __repr__(self):
13890
    L = ['%s=%r' % (key, value)
13891
      for key, value in self.__dict__.iteritems()]
13892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13893
 
13894
  def __eq__(self, other):
13895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13896
 
13897
  def __ne__(self, other):
13898
    return not (self == other)
3499 mandeep.dh 13899
 
13900
class increaseTrustLevel_args:
13901
  """
13902
  Attributes:
13903
   - userId
13904
   - trustLevelDelta
13905
  """
13906
 
13907
  thrift_spec = (
13908
    None, # 0
13909
    (1, TType.I64, 'userId', None, None, ), # 1
13910
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13911
  )
13912
 
13913
  def __init__(self, userId=None, trustLevelDelta=None,):
13914
    self.userId = userId
13915
    self.trustLevelDelta = trustLevelDelta
13916
 
13917
  def read(self, iprot):
13918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13920
      return
13921
    iprot.readStructBegin()
13922
    while True:
13923
      (fname, ftype, fid) = iprot.readFieldBegin()
13924
      if ftype == TType.STOP:
13925
        break
13926
      if fid == 1:
13927
        if ftype == TType.I64:
13928
          self.userId = iprot.readI64();
13929
        else:
13930
          iprot.skip(ftype)
13931
      elif fid == 2:
13932
        if ftype == TType.DOUBLE:
13933
          self.trustLevelDelta = iprot.readDouble();
13934
        else:
13935
          iprot.skip(ftype)
13936
      else:
13937
        iprot.skip(ftype)
13938
      iprot.readFieldEnd()
13939
    iprot.readStructEnd()
13940
 
13941
  def write(self, oprot):
13942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13944
      return
13945
    oprot.writeStructBegin('increaseTrustLevel_args')
13946
    if self.userId is not None:
13947
      oprot.writeFieldBegin('userId', TType.I64, 1)
13948
      oprot.writeI64(self.userId)
13949
      oprot.writeFieldEnd()
13950
    if self.trustLevelDelta is not None:
13951
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13952
      oprot.writeDouble(self.trustLevelDelta)
13953
      oprot.writeFieldEnd()
13954
    oprot.writeFieldStop()
13955
    oprot.writeStructEnd()
13956
 
13957
  def validate(self):
13958
    return
13959
 
13960
 
13961
  def __repr__(self):
13962
    L = ['%s=%r' % (key, value)
13963
      for key, value in self.__dict__.iteritems()]
13964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13965
 
13966
  def __eq__(self, other):
13967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13968
 
13969
  def __ne__(self, other):
13970
    return not (self == other)