Subversion Repositories SmartDukaan

Rev

Rev 3385 | Rev 3499 | 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
 
559 chandransh 371
  def addItemToCart(self, cartId, itemId, quantity):
130 ashish 372
    """
373
    Parameters:
559 chandransh 374
     - cartId
375
     - itemId
376
     - quantity
130 ashish 377
    """
378
    pass
379
 
559 chandransh 380
  def deleteItemFromCart(self, cartId, itemId):
381
    """
382
    Parameters:
383
     - cartId
384
     - itemId
385
    """
386
    pass
130 ashish 387
 
559 chandransh 388
  def changeQuantity(self, cartId, itemId, quantity):
389
    """
390
    Parameters:
391
     - cartId
392
     - itemId
393
     - quantity
394
    """
395
    pass
396
 
397
  def changeItemStatus(self, cartId, itemId, status):
398
    """
399
    Parameters:
400
     - cartId
401
     - itemId
402
     - status
403
    """
404
    pass
405
 
406
  def addAddressToCart(self, cartId, addressId):
407
    """
408
    Parameters:
409
     - cartId
410
     - addressId
411
    """
412
    pass
413
 
1976 varun.gupt 414
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
415
    """
416
    Parameters:
417
     - cartId
418
     - couponCode
419
     - totalPrice
420
     - discountedPrice
421
    """
422
    pass
423
 
424
  def removeCoupon(self, cartId):
425
    """
426
    Parameters:
427
     - cartId
428
    """
429
    pass
430
 
2815 vikas 431
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 432
    """
690 chandransh 433
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 434
 
559 chandransh 435
    Parameters:
436
     - cartId
2815 vikas 437
     - sessionSource
438
     - sessionStartTime
559 chandransh 439
    """
440
    pass
441
 
442
  def validateCart(self, cartId):
443
    """
690 chandransh 444
    Validates that:
445
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 446
    2. All of the lines in the cart are active items.
690 chandransh 447
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 448
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 449
 
559 chandransh 450
    Parameters:
451
     - cartId
452
    """
453
    pass
454
 
690 chandransh 455
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 456
    """
690 chandransh 457
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 458
 
575 chandransh 459
    Parameters:
690 chandransh 460
     - fromCartId
461
     - toCartId
462
    """
463
    pass
464
 
465
  def checkOut(self, cartId):
466
    """
467
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 468
 
690 chandransh 469
    Parameters:
575 chandransh 470
     - cartId
471
    """
472
    pass
473
 
690 chandransh 474
  def resetCart(self, cartId, items):
559 chandransh 475
    """
690 chandransh 476
    The second parameter is a map of item ids and their quantities which have been successfully processed.
477
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 478
 
559 chandransh 479
    Parameters:
690 chandransh 480
     - cartId
481
     - items
559 chandransh 482
    """
483
    pass
484
 
2981 rajveer 485
  def getUserCount(self, userType):
559 chandransh 486
    """
2981 rajveer 487
    Returns number of registered users.
488
    If userType = null, then it returns count of all users, including anonymous
489
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
490
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 491
 
559 chandransh 492
    Parameters:
2981 rajveer 493
     - userType
559 chandransh 494
    """
495
    pass
496
 
2981 rajveer 497
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 498
    """
2981 rajveer 499
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
500
    If any of startDate or endDate is -1, then that filter is ignored.
501
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 502
 
503
 
559 chandransh 504
    Parameters:
2981 rajveer 505
     - userType
506
     - startDate
507
     - endDate
559 chandransh 508
    """
509
    pass
510
 
2981 rajveer 511
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 512
    """
513
    Parameters:
2981 rajveer 514
     - user_id
515
     - entity_id
516
     - slide
517
     - note
559 chandransh 518
    """
519
    pass
520
 
2981 rajveer 521
  def getUserNotes(self, user_id, entity_id):
559 chandransh 522
    """
523
    Parameters:
2981 rajveer 524
     - user_id
525
     - entity_id
559 chandransh 526
    """
527
    pass
528
 
2981 rajveer 529
  def getMyResearchItems(self, userId):
559 chandransh 530
    """
2981 rajveer 531
    Returns list of item ids in myresearch for the user
3431 rajveer 532
 
559 chandransh 533
    Parameters:
534
     - userId
535
    """
536
    pass
537
 
2981 rajveer 538
  def updateMyResearch(self, userId, itemId):
559 chandransh 539
    """
2981 rajveer 540
    add item to my research for a user
3431 rajveer 541
 
559 chandransh 542
    Parameters:
2981 rajveer 543
     - userId
544
     - itemId
559 chandransh 545
    """
546
    pass
547
 
2981 rajveer 548
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 549
    """
2981 rajveer 550
    delete item from my research for a user
3431 rajveer 551
 
1596 ankur.sing 552
    Parameters:
2981 rajveer 553
     - userId
554
     - itemId
1596 ankur.sing 555
    """
556
    pass
559 chandransh 557
 
2981 rajveer 558
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 559
    """
2981 rajveer 560
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 561
 
1673 ankur.sing 562
    Parameters:
2981 rajveer 563
     - userId
1673 ankur.sing 564
    """
565
    pass
1596 ankur.sing 566
 
2981 rajveer 567
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 568
    """
2981 rajveer 569
    add item to browse history for a user
3431 rajveer 570
 
2642 varun.gupt 571
    Parameters:
2981 rajveer 572
     - userId
573
     - itemId
2642 varun.gupt 574
    """
575
    pass
1673 ankur.sing 576
 
3385 varun.gupt 577
  def getCartsWithCouponCount(self, couponCode):
578
    """
579
    Returns count of Carts with given coupon applied
3431 rajveer 580
 
3385 varun.gupt 581
    Parameters:
582
     - couponCode
583
    """
584
    pass
2642 varun.gupt 585
 
3385 varun.gupt 586
 
3376 rajveer 587
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 588
  """
589
  service
590
  """
591
  def __init__(self, iprot, oprot=None):
3376 rajveer 592
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 593
 
559 chandransh 594
  def createAnonymousUser(self, jsessionId):
94 ashish 595
    """
596
    Parameters:
559 chandransh 597
     - jsessionId
94 ashish 598
    """
559 chandransh 599
    self.send_createAnonymousUser(jsessionId)
600
    return self.recv_createAnonymousUser()
94 ashish 601
 
559 chandransh 602
  def send_createAnonymousUser(self, jsessionId):
603
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
604
    args = createAnonymousUser_args()
605
    args.jsessionId = jsessionId
94 ashish 606
    args.write(self._oprot)
607
    self._oprot.writeMessageEnd()
608
    self._oprot.trans.flush()
609
 
559 chandransh 610
  def recv_createAnonymousUser(self, ):
94 ashish 611
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
612
    if mtype == TMessageType.EXCEPTION:
613
      x = TApplicationException()
614
      x.read(self._iprot)
615
      self._iprot.readMessageEnd()
616
      raise x
559 chandransh 617
    result = createAnonymousUser_result()
94 ashish 618
    result.read(self._iprot)
619
    self._iprot.readMessageEnd()
3431 rajveer 620
    if result.success is not None:
94 ashish 621
      return result.success
3431 rajveer 622
    if result.ucex is not None:
559 chandransh 623
      raise result.ucex
624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 625
 
559 chandransh 626
  def getUserById(self, userId):
94 ashish 627
    """
628
    Parameters:
629
     - userId
630
    """
559 chandransh 631
    self.send_getUserById(userId)
632
    return self.recv_getUserById()
94 ashish 633
 
559 chandransh 634
  def send_getUserById(self, userId):
635
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
636
    args = getUserById_args()
94 ashish 637
    args.userId = userId
638
    args.write(self._oprot)
639
    self._oprot.writeMessageEnd()
640
    self._oprot.trans.flush()
641
 
559 chandransh 642
  def recv_getUserById(self, ):
94 ashish 643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
644
    if mtype == TMessageType.EXCEPTION:
645
      x = TApplicationException()
646
      x.read(self._iprot)
647
      self._iprot.readMessageEnd()
648
      raise x
559 chandransh 649
    result = getUserById_result()
94 ashish 650
    result.read(self._iprot)
651
    self._iprot.readMessageEnd()
3431 rajveer 652
    if result.success is not None:
94 ashish 653
      return result.success
3431 rajveer 654
    if result.ucex is not None:
559 chandransh 655
      raise result.ucex
656
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 657
 
1491 vikas 658
  def getUserByEmail(self, email):
659
    """
660
    Parameters:
661
     - email
662
    """
663
    self.send_getUserByEmail(email)
664
    return self.recv_getUserByEmail()
665
 
666
  def send_getUserByEmail(self, email):
667
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
668
    args = getUserByEmail_args()
669
    args.email = email
670
    args.write(self._oprot)
671
    self._oprot.writeMessageEnd()
672
    self._oprot.trans.flush()
673
 
674
  def recv_getUserByEmail(self, ):
675
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
676
    if mtype == TMessageType.EXCEPTION:
677
      x = TApplicationException()
678
      x.read(self._iprot)
679
      self._iprot.readMessageEnd()
680
      raise x
681
    result = getUserByEmail_result()
682
    result.read(self._iprot)
683
    self._iprot.readMessageEnd()
3431 rajveer 684
    if result.success is not None:
1491 vikas 685
      return result.success
3431 rajveer 686
    if result.ucex is not None:
1491 vikas 687
      raise result.ucex
688
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
689
 
3032 mandeep.dh 690
  def getUserByMobileNumber(self, mobileNumber):
691
    """
692
    Parameters:
693
     - mobileNumber
694
    """
695
    self.send_getUserByMobileNumber(mobileNumber)
696
    return self.recv_getUserByMobileNumber()
697
 
698
  def send_getUserByMobileNumber(self, mobileNumber):
699
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
700
    args = getUserByMobileNumber_args()
701
    args.mobileNumber = mobileNumber
702
    args.write(self._oprot)
703
    self._oprot.writeMessageEnd()
704
    self._oprot.trans.flush()
705
 
706
  def recv_getUserByMobileNumber(self, ):
707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
708
    if mtype == TMessageType.EXCEPTION:
709
      x = TApplicationException()
710
      x.read(self._iprot)
711
      self._iprot.readMessageEnd()
712
      raise x
713
    result = getUserByMobileNumber_result()
714
    result.read(self._iprot)
715
    self._iprot.readMessageEnd()
3431 rajveer 716
    if result.success is not None:
3032 mandeep.dh 717
      return result.success
3431 rajveer 718
    if result.ucex is not None:
3032 mandeep.dh 719
      raise result.ucex
720
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
721
 
559 chandransh 722
  def createUser(self, user):
94 ashish 723
    """
724
    Parameters:
559 chandransh 725
     - user
94 ashish 726
    """
559 chandransh 727
    self.send_createUser(user)
728
    return self.recv_createUser()
94 ashish 729
 
559 chandransh 730
  def send_createUser(self, user):
731
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
732
    args = createUser_args()
733
    args.user = user
94 ashish 734
    args.write(self._oprot)
735
    self._oprot.writeMessageEnd()
736
    self._oprot.trans.flush()
737
 
559 chandransh 738
  def recv_createUser(self, ):
94 ashish 739
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
740
    if mtype == TMessageType.EXCEPTION:
741
      x = TApplicationException()
742
      x.read(self._iprot)
743
      self._iprot.readMessageEnd()
744
      raise x
559 chandransh 745
    result = createUser_result()
94 ashish 746
    result.read(self._iprot)
747
    self._iprot.readMessageEnd()
3431 rajveer 748
    if result.success is not None:
94 ashish 749
      return result.success
3431 rajveer 750
    if result.ucex is not None:
559 chandransh 751
      raise result.ucex
752
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 753
 
559 chandransh 754
  def updateUser(self, user):
94 ashish 755
    """
756
    Parameters:
559 chandransh 757
     - user
94 ashish 758
    """
559 chandransh 759
    self.send_updateUser(user)
760
    return self.recv_updateUser()
94 ashish 761
 
559 chandransh 762
  def send_updateUser(self, user):
763
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
764
    args = updateUser_args()
765
    args.user = user
94 ashish 766
    args.write(self._oprot)
767
    self._oprot.writeMessageEnd()
768
    self._oprot.trans.flush()
769
 
559 chandransh 770
  def recv_updateUser(self, ):
94 ashish 771
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
772
    if mtype == TMessageType.EXCEPTION:
773
      x = TApplicationException()
774
      x.read(self._iprot)
775
      self._iprot.readMessageEnd()
776
      raise x
559 chandransh 777
    result = updateUser_result()
94 ashish 778
    result.read(self._iprot)
779
    self._iprot.readMessageEnd()
3431 rajveer 780
    if result.success is not None:
94 ashish 781
      return result.success
3431 rajveer 782
    if result.ucex is not None:
559 chandransh 783
      raise result.ucex
784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 785
 
559 chandransh 786
  def deleteUser(self, userId):
94 ashish 787
    """
788
    Parameters:
789
     - userId
790
    """
559 chandransh 791
    self.send_deleteUser(userId)
792
    return self.recv_deleteUser()
94 ashish 793
 
559 chandransh 794
  def send_deleteUser(self, userId):
795
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
796
    args = deleteUser_args()
94 ashish 797
    args.userId = userId
798
    args.write(self._oprot)
799
    self._oprot.writeMessageEnd()
800
    self._oprot.trans.flush()
801
 
559 chandransh 802
  def recv_deleteUser(self, ):
94 ashish 803
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
804
    if mtype == TMessageType.EXCEPTION:
805
      x = TApplicationException()
806
      x.read(self._iprot)
807
      self._iprot.readMessageEnd()
808
      raise x
559 chandransh 809
    result = deleteUser_result()
94 ashish 810
    result.read(self._iprot)
811
    self._iprot.readMessageEnd()
3431 rajveer 812
    if result.success is not None:
94 ashish 813
      return result.success
3431 rajveer 814
    if result.ucex is not None:
559 chandransh 815
      raise result.ucex
816
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 817
 
559 chandransh 818
  def getUserState(self, userId):
94 ashish 819
    """
820
    Parameters:
821
     - userId
822
    """
559 chandransh 823
    self.send_getUserState(userId)
824
    return self.recv_getUserState()
94 ashish 825
 
559 chandransh 826
  def send_getUserState(self, userId):
827
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
828
    args = getUserState_args()
94 ashish 829
    args.userId = userId
830
    args.write(self._oprot)
831
    self._oprot.writeMessageEnd()
832
    self._oprot.trans.flush()
833
 
559 chandransh 834
  def recv_getUserState(self, ):
94 ashish 835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
836
    if mtype == TMessageType.EXCEPTION:
837
      x = TApplicationException()
838
      x.read(self._iprot)
839
      self._iprot.readMessageEnd()
840
      raise x
559 chandransh 841
    result = getUserState_result()
94 ashish 842
    result.read(self._iprot)
843
    self._iprot.readMessageEnd()
3431 rajveer 844
    if result.success is not None:
94 ashish 845
      return result.success
3431 rajveer 846
    if result.ucex is not None:
559 chandransh 847
      raise result.ucex
848
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 849
 
559 chandransh 850
  def authenticateUser(self, email, password):
94 ashish 851
    """
852
    Parameters:
853
     - email
854
     - password
855
    """
559 chandransh 856
    self.send_authenticateUser(email, password)
122 ashish 857
    return self.recv_authenticateUser()
858
 
559 chandransh 859
  def send_authenticateUser(self, email, password):
122 ashish 860
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
861
    args = authenticateUser_args()
559 chandransh 862
    args.email = email
122 ashish 863
    args.password = password
864
    args.write(self._oprot)
865
    self._oprot.writeMessageEnd()
866
    self._oprot.trans.flush()
867
 
868
  def recv_authenticateUser(self, ):
869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
870
    if mtype == TMessageType.EXCEPTION:
871
      x = TApplicationException()
872
      x.read(self._iprot)
873
      self._iprot.readMessageEnd()
874
      raise x
875
    result = authenticateUser_result()
876
    result.read(self._iprot)
877
    self._iprot.readMessageEnd()
3431 rajveer 878
    if result.success is not None:
122 ashish 879
      return result.success
3431 rajveer 880
    if result.auex is not None:
559 chandransh 881
      raise result.auex
122 ashish 882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
883
 
94 ashish 884
  def userExists(self, email):
885
    """
886
    Parameters:
887
     - email
888
    """
889
    self.send_userExists(email)
890
    return self.recv_userExists()
891
 
892
  def send_userExists(self, email):
893
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
894
    args = userExists_args()
895
    args.email = email
896
    args.write(self._oprot)
897
    self._oprot.writeMessageEnd()
898
    self._oprot.trans.flush()
899
 
900
  def recv_userExists(self, ):
901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
902
    if mtype == TMessageType.EXCEPTION:
903
      x = TApplicationException()
904
      x.read(self._iprot)
905
      self._iprot.readMessageEnd()
906
      raise x
907
    result = userExists_result()
908
    result.read(self._iprot)
909
    self._iprot.readMessageEnd()
3431 rajveer 910
    if result.success is not None:
94 ashish 911
      return result.success
3431 rajveer 912
    if result.ucx is not None:
94 ashish 913
      raise result.ucx
914
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
915
 
567 rajveer 916
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 917
    """
918
    Parameters:
919
     - userId
920
     - address
513 rajveer 921
     - setDefault
94 ashish 922
    """
567 rajveer 923
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 924
    return self.recv_addAddressForUser()
925
 
567 rajveer 926
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 927
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
928
    args = addAddressForUser_args()
559 chandransh 929
    args.userId = userId
94 ashish 930
    args.address = address
513 rajveer 931
    args.setDefault = setDefault
94 ashish 932
    args.write(self._oprot)
933
    self._oprot.writeMessageEnd()
934
    self._oprot.trans.flush()
935
 
936
  def recv_addAddressForUser(self, ):
937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
938
    if mtype == TMessageType.EXCEPTION:
939
      x = TApplicationException()
940
      x.read(self._iprot)
941
      self._iprot.readMessageEnd()
942
      raise x
943
    result = addAddressForUser_result()
944
    result.read(self._iprot)
945
    self._iprot.readMessageEnd()
3431 rajveer 946
    if result.success is not None:
94 ashish 947
      return result.success
3431 rajveer 948
    if result.ucx is not None:
94 ashish 949
      raise result.ucx
950
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
951
 
952
  def removeAddressForUser(self, userid, addressId):
953
    """
954
    Parameters:
955
     - userid
956
     - addressId
957
    """
958
    self.send_removeAddressForUser(userid, addressId)
959
    return self.recv_removeAddressForUser()
960
 
961
  def send_removeAddressForUser(self, userid, addressId):
962
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
963
    args = removeAddressForUser_args()
964
    args.userid = userid
965
    args.addressId = addressId
966
    args.write(self._oprot)
967
    self._oprot.writeMessageEnd()
968
    self._oprot.trans.flush()
969
 
970
  def recv_removeAddressForUser(self, ):
971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
972
    if mtype == TMessageType.EXCEPTION:
973
      x = TApplicationException()
974
      x.read(self._iprot)
975
      self._iprot.readMessageEnd()
976
      raise x
977
    result = removeAddressForUser_result()
978
    result.read(self._iprot)
979
    self._iprot.readMessageEnd()
3431 rajveer 980
    if result.success is not None:
94 ashish 981
      return result.success
3431 rajveer 982
    if result.ucx is not None:
94 ashish 983
      raise result.ucx
984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
985
 
986
  def setUserAsLoggedIn(self, userId, timestamp):
987
    """
988
    Parameters:
989
     - userId
990
     - timestamp
991
    """
992
    self.send_setUserAsLoggedIn(userId, timestamp)
993
    return self.recv_setUserAsLoggedIn()
994
 
995
  def send_setUserAsLoggedIn(self, userId, timestamp):
996
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
997
    args = setUserAsLoggedIn_args()
998
    args.userId = userId
999
    args.timestamp = timestamp
1000
    args.write(self._oprot)
1001
    self._oprot.writeMessageEnd()
1002
    self._oprot.trans.flush()
1003
 
1004
  def recv_setUserAsLoggedIn(self, ):
1005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1006
    if mtype == TMessageType.EXCEPTION:
1007
      x = TApplicationException()
1008
      x.read(self._iprot)
1009
      self._iprot.readMessageEnd()
1010
      raise x
1011
    result = setUserAsLoggedIn_result()
1012
    result.read(self._iprot)
1013
    self._iprot.readMessageEnd()
3431 rajveer 1014
    if result.success is not None:
94 ashish 1015
      return result.success
3431 rajveer 1016
    if result.ucx is not None:
94 ashish 1017
      raise result.ucx
1018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1019
 
1020
  def setUserAsLoggedOut(self, userid, timestamp):
1021
    """
1022
    Parameters:
1023
     - userid
1024
     - timestamp
1025
    """
1026
    self.send_setUserAsLoggedOut(userid, timestamp)
1027
    return self.recv_setUserAsLoggedOut()
1028
 
1029
  def send_setUserAsLoggedOut(self, userid, timestamp):
1030
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1031
    args = setUserAsLoggedOut_args()
1032
    args.userid = userid
1033
    args.timestamp = timestamp
1034
    args.write(self._oprot)
1035
    self._oprot.writeMessageEnd()
1036
    self._oprot.trans.flush()
1037
 
1038
  def recv_setUserAsLoggedOut(self, ):
1039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1040
    if mtype == TMessageType.EXCEPTION:
1041
      x = TApplicationException()
1042
      x.read(self._iprot)
1043
      self._iprot.readMessageEnd()
1044
      raise x
1045
    result = setUserAsLoggedOut_result()
1046
    result.read(self._iprot)
1047
    self._iprot.readMessageEnd()
3431 rajveer 1048
    if result.success is not None:
94 ashish 1049
      return result.success
3431 rajveer 1050
    if result.ucx is not None:
94 ashish 1051
      raise result.ucx
1052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1053
 
504 rajveer 1054
  def setDefaultAddress(self, userid, addressId):
1055
    """
1056
    Parameters:
1057
     - userid
1058
     - addressId
1059
    """
1060
    self.send_setDefaultAddress(userid, addressId)
1061
    return self.recv_setDefaultAddress()
1062
 
1063
  def send_setDefaultAddress(self, userid, addressId):
1064
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1065
    args = setDefaultAddress_args()
1066
    args.userid = userid
1067
    args.addressId = addressId
1068
    args.write(self._oprot)
1069
    self._oprot.writeMessageEnd()
1070
    self._oprot.trans.flush()
1071
 
1072
  def recv_setDefaultAddress(self, ):
1073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1074
    if mtype == TMessageType.EXCEPTION:
1075
      x = TApplicationException()
1076
      x.read(self._iprot)
1077
      self._iprot.readMessageEnd()
1078
      raise x
1079
    result = setDefaultAddress_result()
1080
    result.read(self._iprot)
1081
    self._iprot.readMessageEnd()
3431 rajveer 1082
    if result.success is not None:
504 rajveer 1083
      return result.success
3431 rajveer 1084
    if result.ucx is not None:
504 rajveer 1085
      raise result.ucx
1086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1087
 
594 rajveer 1088
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1089
    """
1090
    Parameters:
1091
     - userid
594 rajveer 1092
     - oldPassword
1093
     - newPassword
94 ashish 1094
    """
594 rajveer 1095
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1096
    return self.recv_updatePassword()
1097
 
594 rajveer 1098
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1099
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1100
    args = updatePassword_args()
1101
    args.userid = userid
594 rajveer 1102
    args.oldPassword = oldPassword
1103
    args.newPassword = newPassword
94 ashish 1104
    args.write(self._oprot)
1105
    self._oprot.writeMessageEnd()
1106
    self._oprot.trans.flush()
1107
 
1108
  def recv_updatePassword(self, ):
1109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1110
    if mtype == TMessageType.EXCEPTION:
1111
      x = TApplicationException()
1112
      x.read(self._iprot)
1113
      self._iprot.readMessageEnd()
1114
      raise x
1115
    result = updatePassword_result()
1116
    result.read(self._iprot)
1117
    self._iprot.readMessageEnd()
3431 rajveer 1118
    if result.success is not None:
94 ashish 1119
      return result.success
3431 rajveer 1120
    if result.ucx is not None:
94 ashish 1121
      raise result.ucx
1122
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1123
 
884 rajveer 1124
  def forgotPassword(self, email, newPassword):
581 rajveer 1125
    """
1126
    Parameters:
1127
     - email
884 rajveer 1128
     - newPassword
581 rajveer 1129
    """
884 rajveer 1130
    self.send_forgotPassword(email, newPassword)
581 rajveer 1131
    return self.recv_forgotPassword()
1132
 
884 rajveer 1133
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1134
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1135
    args = forgotPassword_args()
1136
    args.email = email
884 rajveer 1137
    args.newPassword = newPassword
581 rajveer 1138
    args.write(self._oprot)
1139
    self._oprot.writeMessageEnd()
1140
    self._oprot.trans.flush()
1141
 
1142
  def recv_forgotPassword(self, ):
1143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1144
    if mtype == TMessageType.EXCEPTION:
1145
      x = TApplicationException()
1146
      x.read(self._iprot)
1147
      self._iprot.readMessageEnd()
1148
      raise x
1149
    result = forgotPassword_result()
1150
    result.read(self._iprot)
1151
    self._iprot.readMessageEnd()
3431 rajveer 1152
    if result.success is not None:
581 rajveer 1153
      return result.success
3431 rajveer 1154
    if result.ucx is not None:
581 rajveer 1155
      raise result.ucx
1156
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1157
 
594 rajveer 1158
  def getAllAddressesForUser(self, userId):
1159
    """
1160
    Parameters:
1161
     - userId
1162
    """
1163
    self.send_getAllAddressesForUser(userId)
1164
    return self.recv_getAllAddressesForUser()
1165
 
1166
  def send_getAllAddressesForUser(self, userId):
1167
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1168
    args = getAllAddressesForUser_args()
1169
    args.userId = userId
1170
    args.write(self._oprot)
1171
    self._oprot.writeMessageEnd()
1172
    self._oprot.trans.flush()
1173
 
1174
  def recv_getAllAddressesForUser(self, ):
1175
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1176
    if mtype == TMessageType.EXCEPTION:
1177
      x = TApplicationException()
1178
      x.read(self._iprot)
1179
      self._iprot.readMessageEnd()
1180
      raise x
1181
    result = getAllAddressesForUser_result()
1182
    result.read(self._iprot)
1183
    self._iprot.readMessageEnd()
3431 rajveer 1184
    if result.success is not None:
594 rajveer 1185
      return result.success
3431 rajveer 1186
    if result.ucx is not None:
594 rajveer 1187
      raise result.ucx
1188
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1189
 
1894 vikas 1190
  def getAddressById(self, addressId):
1191
    """
1192
    Parameters:
1193
     - addressId
1194
    """
1195
    self.send_getAddressById(addressId)
1196
    return self.recv_getAddressById()
1197
 
1198
  def send_getAddressById(self, addressId):
1199
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1200
    args = getAddressById_args()
1201
    args.addressId = addressId
1202
    args.write(self._oprot)
1203
    self._oprot.writeMessageEnd()
1204
    self._oprot.trans.flush()
1205
 
1206
  def recv_getAddressById(self, ):
1207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1208
    if mtype == TMessageType.EXCEPTION:
1209
      x = TApplicationException()
1210
      x.read(self._iprot)
1211
      self._iprot.readMessageEnd()
1212
      raise x
1213
    result = getAddressById_result()
1214
    result.read(self._iprot)
1215
    self._iprot.readMessageEnd()
3431 rajveer 1216
    if result.success is not None:
1894 vikas 1217
      return result.success
3431 rajveer 1218
    if result.ucx is not None:
1894 vikas 1219
      raise result.ucx
1220
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1221
 
594 rajveer 1222
  def getDefaultAddressId(self, userId):
1223
    """
1224
    Parameters:
1225
     - userId
1226
    """
1227
    self.send_getDefaultAddressId(userId)
1228
    return self.recv_getDefaultAddressId()
1229
 
1230
  def send_getDefaultAddressId(self, userId):
1231
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1232
    args = getDefaultAddressId_args()
1233
    args.userId = userId
1234
    args.write(self._oprot)
1235
    self._oprot.writeMessageEnd()
1236
    self._oprot.trans.flush()
1237
 
1238
  def recv_getDefaultAddressId(self, ):
1239
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1240
    if mtype == TMessageType.EXCEPTION:
1241
      x = TApplicationException()
1242
      x.read(self._iprot)
1243
      self._iprot.readMessageEnd()
1244
      raise x
1245
    result = getDefaultAddressId_result()
1246
    result.read(self._iprot)
1247
    self._iprot.readMessageEnd()
3431 rajveer 1248
    if result.success is not None:
594 rajveer 1249
      return result.success
3431 rajveer 1250
    if result.ucx is not None:
594 rajveer 1251
      raise result.ucx
1252
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1253
 
785 rajveer 1254
  def getDefaultPincode(self, userId):
1255
    """
1256
    Parameters:
1257
     - userId
1258
    """
1259
    self.send_getDefaultPincode(userId)
1260
    return self.recv_getDefaultPincode()
1261
 
1262
  def send_getDefaultPincode(self, userId):
1263
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1264
    args = getDefaultPincode_args()
1265
    args.userId = userId
1266
    args.write(self._oprot)
1267
    self._oprot.writeMessageEnd()
1268
    self._oprot.trans.flush()
1269
 
1270
  def recv_getDefaultPincode(self, ):
1271
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1272
    if mtype == TMessageType.EXCEPTION:
1273
      x = TApplicationException()
1274
      x.read(self._iprot)
1275
      self._iprot.readMessageEnd()
1276
      raise x
1277
    result = getDefaultPincode_result()
1278
    result.read(self._iprot)
1279
    self._iprot.readMessageEnd()
3431 rajveer 1280
    if result.success is not None:
785 rajveer 1281
      return result.success
3431 rajveer 1282
    if result.ucx is not None:
785 rajveer 1283
      raise result.ucx
1284
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1285
 
1274 varun.gupt 1286
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1287
    """
1288
    Parameters:
1289
     - userId
1290
     - replyTo
1291
     - communicationType
1292
     - orderId
1293
     - airwaybillNo
1294
     - productName
1295
     - subject
1296
     - message
1297
    """
1298
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1299
    return self.recv_saveUserCommunication()
1300
 
1301
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1302
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1303
    args = saveUserCommunication_args()
1304
    args.userId = userId
1305
    args.replyTo = replyTo
1306
    args.communicationType = communicationType
1307
    args.orderId = orderId
1308
    args.airwaybillNo = airwaybillNo
1309
    args.productName = productName
1310
    args.subject = subject
1311
    args.message = message
1312
    args.write(self._oprot)
1313
    self._oprot.writeMessageEnd()
1314
    self._oprot.trans.flush()
1315
 
1316
  def recv_saveUserCommunication(self, ):
1317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1318
    if mtype == TMessageType.EXCEPTION:
1319
      x = TApplicationException()
1320
      x.read(self._iprot)
1321
      self._iprot.readMessageEnd()
1322
      raise x
1323
    result = saveUserCommunication_result()
1324
    result.read(self._iprot)
1325
    self._iprot.readMessageEnd()
3431 rajveer 1326
    if result.success is not None:
1274 varun.gupt 1327
      return result.success
3431 rajveer 1328
    if result.ucx is not None:
1274 varun.gupt 1329
      raise result.ucx
1330
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1331
 
1590 varun.gupt 1332
  def getUserCommunicationById(self, id):
1333
    """
1334
    Parameters:
1335
     - id
1336
    """
1337
    self.send_getUserCommunicationById(id)
1338
    return self.recv_getUserCommunicationById()
1339
 
1340
  def send_getUserCommunicationById(self, id):
1341
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1342
    args = getUserCommunicationById_args()
1343
    args.id = id
1344
    args.write(self._oprot)
1345
    self._oprot.writeMessageEnd()
1346
    self._oprot.trans.flush()
1347
 
1348
  def recv_getUserCommunicationById(self, ):
1349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1350
    if mtype == TMessageType.EXCEPTION:
1351
      x = TApplicationException()
1352
      x.read(self._iprot)
1353
      self._iprot.readMessageEnd()
1354
      raise x
1355
    result = getUserCommunicationById_result()
1356
    result.read(self._iprot)
1357
    self._iprot.readMessageEnd()
3431 rajveer 1358
    if result.success is not None:
1590 varun.gupt 1359
      return result.success
3431 rajveer 1360
    if result.ucx is not None:
1590 varun.gupt 1361
      raise result.ucx
1362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1363
 
1364
  def getUserCommunicationByUser(self, userId):
1365
    """
1366
    Parameters:
1367
     - userId
1368
    """
1369
    self.send_getUserCommunicationByUser(userId)
1370
    return self.recv_getUserCommunicationByUser()
1371
 
1372
  def send_getUserCommunicationByUser(self, userId):
1373
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1374
    args = getUserCommunicationByUser_args()
1375
    args.userId = userId
1376
    args.write(self._oprot)
1377
    self._oprot.writeMessageEnd()
1378
    self._oprot.trans.flush()
1379
 
1380
  def recv_getUserCommunicationByUser(self, ):
1381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1382
    if mtype == TMessageType.EXCEPTION:
1383
      x = TApplicationException()
1384
      x.read(self._iprot)
1385
      self._iprot.readMessageEnd()
1386
      raise x
1387
    result = getUserCommunicationByUser_result()
1388
    result.read(self._iprot)
1389
    self._iprot.readMessageEnd()
3431 rajveer 1390
    if result.success is not None:
1590 varun.gupt 1391
      return result.success
3431 rajveer 1392
    if result.ucx is not None:
1590 varun.gupt 1393
      raise result.ucx
1394
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1395
 
1396
  def getAllUserCommunications(self, ):
1397
    self.send_getAllUserCommunications()
1398
    return self.recv_getAllUserCommunications()
1399
 
1400
  def send_getAllUserCommunications(self, ):
1401
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1402
    args = getAllUserCommunications_args()
1403
    args.write(self._oprot)
1404
    self._oprot.writeMessageEnd()
1405
    self._oprot.trans.flush()
1406
 
1407
  def recv_getAllUserCommunications(self, ):
1408
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1409
    if mtype == TMessageType.EXCEPTION:
1410
      x = TApplicationException()
1411
      x.read(self._iprot)
1412
      self._iprot.readMessageEnd()
1413
      raise x
1414
    result = getAllUserCommunications_result()
1415
    result.read(self._iprot)
1416
    self._iprot.readMessageEnd()
3431 rajveer 1417
    if result.success is not None:
1590 varun.gupt 1418
      return result.success
3431 rajveer 1419
    if result.ucx is not None:
1590 varun.gupt 1420
      raise result.ucx
1421
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1422
 
1859 vikas 1423
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1424
    """
1425
    Parameters:
1426
     - name
1859 vikas 1427
     - addedOn
1845 vikas 1428
    """
1859 vikas 1429
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1430
    return self.recv_createMasterAffiliate()
1431
 
1859 vikas 1432
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1433
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1434
    args = createMasterAffiliate_args()
1435
    args.name = name
1859 vikas 1436
    args.addedOn = addedOn
1845 vikas 1437
    args.write(self._oprot)
1438
    self._oprot.writeMessageEnd()
1439
    self._oprot.trans.flush()
1440
 
1441
  def recv_createMasterAffiliate(self, ):
1442
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1443
    if mtype == TMessageType.EXCEPTION:
1444
      x = TApplicationException()
1445
      x.read(self._iprot)
1446
      self._iprot.readMessageEnd()
1447
      raise x
1448
    result = createMasterAffiliate_result()
1449
    result.read(self._iprot)
1450
    self._iprot.readMessageEnd()
3431 rajveer 1451
    if result.success is not None:
1845 vikas 1452
      return result.success
3431 rajveer 1453
    if result.utx is not None:
1845 vikas 1454
      raise result.utx
1455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1456
 
1899 vikas 1457
  def getAllMasterAffiliates(self, ):
1458
    self.send_getAllMasterAffiliates()
1459
    return self.recv_getAllMasterAffiliates()
1460
 
1461
  def send_getAllMasterAffiliates(self, ):
1462
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1463
    args = getAllMasterAffiliates_args()
1464
    args.write(self._oprot)
1465
    self._oprot.writeMessageEnd()
1466
    self._oprot.trans.flush()
1467
 
1468
  def recv_getAllMasterAffiliates(self, ):
1469
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1470
    if mtype == TMessageType.EXCEPTION:
1471
      x = TApplicationException()
1472
      x.read(self._iprot)
1473
      self._iprot.readMessageEnd()
1474
      raise x
1475
    result = getAllMasterAffiliates_result()
1476
    result.read(self._iprot)
1477
    self._iprot.readMessageEnd()
3431 rajveer 1478
    if result.success is not None:
1899 vikas 1479
      return result.success
3431 rajveer 1480
    if result.utx is not None:
1899 vikas 1481
      raise result.utx
1482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1483
 
1845 vikas 1484
  def getMasterAffiliateById(self, id):
1485
    """
1486
    Parameters:
1487
     - id
1488
    """
1489
    self.send_getMasterAffiliateById(id)
1490
    return self.recv_getMasterAffiliateById()
1491
 
1492
  def send_getMasterAffiliateById(self, id):
1493
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1494
    args = getMasterAffiliateById_args()
1495
    args.id = id
1496
    args.write(self._oprot)
1497
    self._oprot.writeMessageEnd()
1498
    self._oprot.trans.flush()
1499
 
1500
  def recv_getMasterAffiliateById(self, ):
1501
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1502
    if mtype == TMessageType.EXCEPTION:
1503
      x = TApplicationException()
1504
      x.read(self._iprot)
1505
      self._iprot.readMessageEnd()
1506
      raise x
1507
    result = getMasterAffiliateById_result()
1508
    result.read(self._iprot)
1509
    self._iprot.readMessageEnd()
3431 rajveer 1510
    if result.success is not None:
1845 vikas 1511
      return result.success
3431 rajveer 1512
    if result.utx is not None:
1845 vikas 1513
      raise result.utx
1514
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1515
 
1516
  def getMasterAffiliateByName(self, name):
1517
    """
1518
    Parameters:
1519
     - name
1520
    """
1521
    self.send_getMasterAffiliateByName(name)
1522
    return self.recv_getMasterAffiliateByName()
1523
 
1524
  def send_getMasterAffiliateByName(self, name):
1525
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1526
    args = getMasterAffiliateByName_args()
1527
    args.name = name
1528
    args.write(self._oprot)
1529
    self._oprot.writeMessageEnd()
1530
    self._oprot.trans.flush()
1531
 
1532
  def recv_getMasterAffiliateByName(self, ):
1533
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1534
    if mtype == TMessageType.EXCEPTION:
1535
      x = TApplicationException()
1536
      x.read(self._iprot)
1537
      self._iprot.readMessageEnd()
1538
      raise x
1539
    result = getMasterAffiliateByName_result()
1540
    result.read(self._iprot)
1541
    self._iprot.readMessageEnd()
3431 rajveer 1542
    if result.success is not None:
1845 vikas 1543
      return result.success
3431 rajveer 1544
    if result.utx is not None:
1845 vikas 1545
      raise result.utx
1546
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1547
 
1859 vikas 1548
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1549
    """
1550
    Parameters:
1551
     - name
1552
     - url
1553
     - masterAffiliateId
1859 vikas 1554
     - addedOn
1845 vikas 1555
    """
1859 vikas 1556
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1557
    return self.recv_createAffiliate()
1558
 
1859 vikas 1559
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1560
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1561
    args = createAffiliate_args()
1562
    args.name = name
1563
    args.url = url
1564
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1565
    args.addedOn = addedOn
1845 vikas 1566
    args.write(self._oprot)
1567
    self._oprot.writeMessageEnd()
1568
    self._oprot.trans.flush()
1569
 
1570
  def recv_createAffiliate(self, ):
1571
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1572
    if mtype == TMessageType.EXCEPTION:
1573
      x = TApplicationException()
1574
      x.read(self._iprot)
1575
      self._iprot.readMessageEnd()
1576
      raise x
1577
    result = createAffiliate_result()
1578
    result.read(self._iprot)
1579
    self._iprot.readMessageEnd()
3431 rajveer 1580
    if result.success is not None:
1845 vikas 1581
      return result.success
3431 rajveer 1582
    if result.utx is not None:
1845 vikas 1583
      raise result.utx
1584
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1585
 
1586
  def getAffiliateById(self, id):
1587
    """
1588
    Parameters:
1589
     - id
1590
    """
1591
    self.send_getAffiliateById(id)
1592
    return self.recv_getAffiliateById()
1593
 
1594
  def send_getAffiliateById(self, id):
1595
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1596
    args = getAffiliateById_args()
1597
    args.id = id
1598
    args.write(self._oprot)
1599
    self._oprot.writeMessageEnd()
1600
    self._oprot.trans.flush()
1601
 
1602
  def recv_getAffiliateById(self, ):
1603
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1604
    if mtype == TMessageType.EXCEPTION:
1605
      x = TApplicationException()
1606
      x.read(self._iprot)
1607
      self._iprot.readMessageEnd()
1608
      raise x
1609
    result = getAffiliateById_result()
1610
    result.read(self._iprot)
1611
    self._iprot.readMessageEnd()
3431 rajveer 1612
    if result.success is not None:
1845 vikas 1613
      return result.success
3431 rajveer 1614
    if result.utx is not None:
1845 vikas 1615
      raise result.utx
1616
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1617
 
1618
  def getAffiliateByName(self, name):
1619
    """
1620
    Parameters:
1621
     - name
1622
    """
1623
    self.send_getAffiliateByName(name)
1624
    return self.recv_getAffiliateByName()
1625
 
1626
  def send_getAffiliateByName(self, name):
1627
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1628
    args = getAffiliateByName_args()
1629
    args.name = name
1630
    args.write(self._oprot)
1631
    self._oprot.writeMessageEnd()
1632
    self._oprot.trans.flush()
1633
 
1634
  def recv_getAffiliateByName(self, ):
1635
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1636
    if mtype == TMessageType.EXCEPTION:
1637
      x = TApplicationException()
1638
      x.read(self._iprot)
1639
      self._iprot.readMessageEnd()
1640
      raise x
1641
    result = getAffiliateByName_result()
1642
    result.read(self._iprot)
1643
    self._iprot.readMessageEnd()
3431 rajveer 1644
    if result.success is not None:
1845 vikas 1645
      return result.success
3431 rajveer 1646
    if result.utx is not None:
1845 vikas 1647
      raise result.utx
1648
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1649
 
1996 vikas 1650
  def getTrackerById(self, id):
1845 vikas 1651
    """
1652
    Parameters:
1653
     - id
1654
    """
1996 vikas 1655
    self.send_getTrackerById(id)
1845 vikas 1656
    return self.recv_getTrackerById()
1657
 
1996 vikas 1658
  def send_getTrackerById(self, id):
1845 vikas 1659
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1660
    args = getTrackerById_args()
1996 vikas 1661
    args.id = id
1845 vikas 1662
    args.write(self._oprot)
1663
    self._oprot.writeMessageEnd()
1664
    self._oprot.trans.flush()
1665
 
1666
  def recv_getTrackerById(self, ):
1667
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1668
    if mtype == TMessageType.EXCEPTION:
1669
      x = TApplicationException()
1670
      x.read(self._iprot)
1671
      self._iprot.readMessageEnd()
1672
      raise x
1673
    result = getTrackerById_result()
1674
    result.read(self._iprot)
1675
    self._iprot.readMessageEnd()
3431 rajveer 1676
    if result.success is not None:
1845 vikas 1677
      return result.success
3431 rajveer 1678
    if result.utx is not None:
1845 vikas 1679
      raise result.utx
1680
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1681
 
1996 vikas 1682
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1683
    """
1684
    Parameters:
1996 vikas 1685
     - id
1845 vikas 1686
    """
1996 vikas 1687
    self.send_getAffiliatesByMasterAffiliate(id)
1688
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1689
 
1996 vikas 1690
  def send_getAffiliatesByMasterAffiliate(self, id):
1691
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1692
    args = getAffiliatesByMasterAffiliate_args()
1693
    args.id = id
1845 vikas 1694
    args.write(self._oprot)
1695
    self._oprot.writeMessageEnd()
1696
    self._oprot.trans.flush()
1697
 
1996 vikas 1698
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1700
    if mtype == TMessageType.EXCEPTION:
1701
      x = TApplicationException()
1702
      x.read(self._iprot)
1703
      self._iprot.readMessageEnd()
1704
      raise x
1996 vikas 1705
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1706
    result.read(self._iprot)
1707
    self._iprot.readMessageEnd()
3431 rajveer 1708
    if result.success is not None:
1845 vikas 1709
      return result.success
3431 rajveer 1710
    if result.utx is not None:
1845 vikas 1711
      raise result.utx
1996 vikas 1712
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1713
 
1996 vikas 1714
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1715
    """
1716
    Parameters:
1996 vikas 1717
     - affiliateId
1845 vikas 1718
     - userId
1719
     - event
1720
     - url
1721
     - data
1859 vikas 1722
     - addedOn
1845 vikas 1723
    """
1996 vikas 1724
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1725
    return self.recv_addTrackLog()
1726
 
1996 vikas 1727
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1728
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1729
    args = addTrackLog_args()
1996 vikas 1730
    args.affiliateId = affiliateId
1845 vikas 1731
    args.userId = userId
1732
    args.event = event
1733
    args.url = url
1734
    args.data = data
1859 vikas 1735
    args.addedOn = addedOn
1845 vikas 1736
    args.write(self._oprot)
1737
    self._oprot.writeMessageEnd()
1738
    self._oprot.trans.flush()
1739
 
1740
  def recv_addTrackLog(self, ):
1741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1742
    if mtype == TMessageType.EXCEPTION:
1743
      x = TApplicationException()
1744
      x.read(self._iprot)
1745
      self._iprot.readMessageEnd()
1746
      raise x
1747
    result = addTrackLog_result()
1748
    result.read(self._iprot)
1749
    self._iprot.readMessageEnd()
3431 rajveer 1750
    if result.success is not None:
1845 vikas 1751
      return result.success
3431 rajveer 1752
    if result.utx is not None:
1845 vikas 1753
      raise result.utx
1754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1755
 
1756
  def getTrackLogById(self, id):
1757
    """
1758
    Parameters:
1759
     - id
1760
    """
1761
    self.send_getTrackLogById(id)
1762
    return self.recv_getTrackLogById()
1763
 
1764
  def send_getTrackLogById(self, id):
1765
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1766
    args = getTrackLogById_args()
1767
    args.id = id
1768
    args.write(self._oprot)
1769
    self._oprot.writeMessageEnd()
1770
    self._oprot.trans.flush()
1771
 
1772
  def recv_getTrackLogById(self, ):
1773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1774
    if mtype == TMessageType.EXCEPTION:
1775
      x = TApplicationException()
1776
      x.read(self._iprot)
1777
      self._iprot.readMessageEnd()
1778
      raise x
1779
    result = getTrackLogById_result()
1780
    result.read(self._iprot)
1781
    self._iprot.readMessageEnd()
3431 rajveer 1782
    if result.success is not None:
1845 vikas 1783
      return result.success
3431 rajveer 1784
    if result.utx is not None:
1845 vikas 1785
      raise result.utx
1786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1787
 
3293 vikas 1788
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1789
    """
1790
    Parameters:
1996 vikas 1791
     - affiliateId
3293 vikas 1792
     - startDate
1793
     - endDate
1845 vikas 1794
    """
3293 vikas 1795
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1796
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1797
 
3293 vikas 1798
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1799
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1800
    args = getTrackLogsByAffiliate_args()
1801
    args.affiliateId = affiliateId
3293 vikas 1802
    args.startDate = startDate
1803
    args.endDate = endDate
1845 vikas 1804
    args.write(self._oprot)
1805
    self._oprot.writeMessageEnd()
1806
    self._oprot.trans.flush()
1807
 
1996 vikas 1808
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1809
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1810
    if mtype == TMessageType.EXCEPTION:
1811
      x = TApplicationException()
1812
      x.read(self._iprot)
1813
      self._iprot.readMessageEnd()
1814
      raise x
1996 vikas 1815
    result = getTrackLogsByAffiliate_result()
1845 vikas 1816
    result.read(self._iprot)
1817
    self._iprot.readMessageEnd()
3431 rajveer 1818
    if result.success is not None:
1845 vikas 1819
      return result.success
3431 rajveer 1820
    if result.utx is not None:
1845 vikas 1821
      raise result.utx
1996 vikas 1822
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1823
 
1824
  def getTrackLogsByUser(self, userId):
1825
    """
1826
    Parameters:
1827
     - userId
1828
    """
1829
    self.send_getTrackLogsByUser(userId)
1830
    return self.recv_getTrackLogsByUser()
1831
 
1832
  def send_getTrackLogsByUser(self, userId):
1833
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1834
    args = getTrackLogsByUser_args()
1835
    args.userId = userId
1836
    args.write(self._oprot)
1837
    self._oprot.writeMessageEnd()
1838
    self._oprot.trans.flush()
1839
 
1840
  def recv_getTrackLogsByUser(self, ):
1841
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1842
    if mtype == TMessageType.EXCEPTION:
1843
      x = TApplicationException()
1844
      x.read(self._iprot)
1845
      self._iprot.readMessageEnd()
1846
      raise x
1847
    result = getTrackLogsByUser_result()
1848
    result.read(self._iprot)
1849
    self._iprot.readMessageEnd()
3431 rajveer 1850
    if result.success is not None:
1845 vikas 1851
      return result.success
3431 rajveer 1852
    if result.utx is not None:
1845 vikas 1853
      raise result.utx
1854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1855
 
1996 vikas 1856
  def getTrackLogs(self, userId, event, url):
1845 vikas 1857
    """
1858
    Parameters:
1859
     - userId
1860
     - event
1861
     - url
1862
    """
1996 vikas 1863
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1864
    return self.recv_getTrackLogs()
1865
 
1996 vikas 1866
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1867
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1868
    args = getTrackLogs_args()
1869
    args.userId = userId
1870
    args.event = event
1871
    args.url = url
1872
    args.write(self._oprot)
1873
    self._oprot.writeMessageEnd()
1874
    self._oprot.trans.flush()
1875
 
1876
  def recv_getTrackLogs(self, ):
1877
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1878
    if mtype == TMessageType.EXCEPTION:
1879
      x = TApplicationException()
1880
      x.read(self._iprot)
1881
      self._iprot.readMessageEnd()
1882
      raise x
1883
    result = getTrackLogs_result()
1884
    result.read(self._iprot)
1885
    self._iprot.readMessageEnd()
3431 rajveer 1886
    if result.success is not None:
1845 vikas 1887
      return result.success
3431 rajveer 1888
    if result.utx is not None:
1845 vikas 1889
      raise result.utx
1890
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1891
 
559 chandransh 1892
  def createCart(self, userId):
94 ashish 1893
    """
1894
    Parameters:
559 chandransh 1895
     - userId
94 ashish 1896
    """
559 chandransh 1897
    self.send_createCart(userId)
1898
    return self.recv_createCart()
94 ashish 1899
 
559 chandransh 1900
  def send_createCart(self, userId):
1901
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1902
    args = createCart_args()
1903
    args.userId = userId
94 ashish 1904
    args.write(self._oprot)
1905
    self._oprot.writeMessageEnd()
1906
    self._oprot.trans.flush()
1907
 
559 chandransh 1908
  def recv_createCart(self, ):
94 ashish 1909
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1910
    if mtype == TMessageType.EXCEPTION:
1911
      x = TApplicationException()
1912
      x.read(self._iprot)
1913
      self._iprot.readMessageEnd()
1914
      raise x
559 chandransh 1915
    result = createCart_result()
94 ashish 1916
    result.read(self._iprot)
1917
    self._iprot.readMessageEnd()
3431 rajveer 1918
    if result.success is not None:
94 ashish 1919
      return result.success
3431 rajveer 1920
    if result.scx is not None:
559 chandransh 1921
      raise result.scx
1922
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1923
 
559 chandransh 1924
  def getCurrentCart(self, userId):
94 ashish 1925
    """
1926
    Parameters:
559 chandransh 1927
     - userId
94 ashish 1928
    """
559 chandransh 1929
    self.send_getCurrentCart(userId)
1930
    return self.recv_getCurrentCart()
94 ashish 1931
 
559 chandransh 1932
  def send_getCurrentCart(self, userId):
1933
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1934
    args = getCurrentCart_args()
1935
    args.userId = userId
94 ashish 1936
    args.write(self._oprot)
1937
    self._oprot.writeMessageEnd()
1938
    self._oprot.trans.flush()
1939
 
559 chandransh 1940
  def recv_getCurrentCart(self, ):
94 ashish 1941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1942
    if mtype == TMessageType.EXCEPTION:
1943
      x = TApplicationException()
1944
      x.read(self._iprot)
1945
      self._iprot.readMessageEnd()
1946
      raise x
559 chandransh 1947
    result = getCurrentCart_result()
94 ashish 1948
    result.read(self._iprot)
1949
    self._iprot.readMessageEnd()
3431 rajveer 1950
    if result.success is not None:
94 ashish 1951
      return result.success
3431 rajveer 1952
    if result.scx is not None:
559 chandransh 1953
      raise result.scx
1954
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1955
 
559 chandransh 1956
  def getCart(self, cartId):
94 ashish 1957
    """
1958
    Parameters:
559 chandransh 1959
     - cartId
94 ashish 1960
    """
559 chandransh 1961
    self.send_getCart(cartId)
1962
    return self.recv_getCart()
94 ashish 1963
 
559 chandransh 1964
  def send_getCart(self, cartId):
1965
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1966
    args = getCart_args()
1967
    args.cartId = cartId
94 ashish 1968
    args.write(self._oprot)
1969
    self._oprot.writeMessageEnd()
1970
    self._oprot.trans.flush()
1971
 
559 chandransh 1972
  def recv_getCart(self, ):
94 ashish 1973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1974
    if mtype == TMessageType.EXCEPTION:
1975
      x = TApplicationException()
1976
      x.read(self._iprot)
1977
      self._iprot.readMessageEnd()
1978
      raise x
559 chandransh 1979
    result = getCart_result()
94 ashish 1980
    result.read(self._iprot)
1981
    self._iprot.readMessageEnd()
3431 rajveer 1982
    if result.success is not None:
94 ashish 1983
      return result.success
3431 rajveer 1984
    if result.scx is not None:
559 chandransh 1985
      raise result.scx
1986
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1987
 
559 chandransh 1988
  def getCartsForUser(self, userId, status):
94 ashish 1989
    """
1990
    Parameters:
559 chandransh 1991
     - userId
1992
     - status
94 ashish 1993
    """
559 chandransh 1994
    self.send_getCartsForUser(userId, status)
1995
    return self.recv_getCartsForUser()
94 ashish 1996
 
559 chandransh 1997
  def send_getCartsForUser(self, userId, status):
1998
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
1999
    args = getCartsForUser_args()
2000
    args.userId = userId
2001
    args.status = status
94 ashish 2002
    args.write(self._oprot)
2003
    self._oprot.writeMessageEnd()
2004
    self._oprot.trans.flush()
2005
 
559 chandransh 2006
  def recv_getCartsForUser(self, ):
94 ashish 2007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2008
    if mtype == TMessageType.EXCEPTION:
2009
      x = TApplicationException()
2010
      x.read(self._iprot)
2011
      self._iprot.readMessageEnd()
2012
      raise x
559 chandransh 2013
    result = getCartsForUser_result()
94 ashish 2014
    result.read(self._iprot)
2015
    self._iprot.readMessageEnd()
3431 rajveer 2016
    if result.success is not None:
94 ashish 2017
      return result.success
3431 rajveer 2018
    if result.scx is not None:
559 chandransh 2019
      raise result.scx
2020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2021
 
559 chandransh 2022
  def getCartsByStatus(self, status):
94 ashish 2023
    """
2024
    Parameters:
559 chandransh 2025
     - status
94 ashish 2026
    """
559 chandransh 2027
    self.send_getCartsByStatus(status)
2028
    return self.recv_getCartsByStatus()
94 ashish 2029
 
559 chandransh 2030
  def send_getCartsByStatus(self, status):
2031
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2032
    args = getCartsByStatus_args()
2033
    args.status = status
94 ashish 2034
    args.write(self._oprot)
2035
    self._oprot.writeMessageEnd()
2036
    self._oprot.trans.flush()
2037
 
559 chandransh 2038
  def recv_getCartsByStatus(self, ):
94 ashish 2039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2040
    if mtype == TMessageType.EXCEPTION:
2041
      x = TApplicationException()
2042
      x.read(self._iprot)
2043
      self._iprot.readMessageEnd()
2044
      raise x
559 chandransh 2045
    result = getCartsByStatus_result()
94 ashish 2046
    result.read(self._iprot)
2047
    self._iprot.readMessageEnd()
3431 rajveer 2048
    if result.success is not None:
94 ashish 2049
      return result.success
3431 rajveer 2050
    if result.scx is not None:
559 chandransh 2051
      raise result.scx
2052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2053
 
559 chandransh 2054
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2055
    """
2056
    Parameters:
559 chandransh 2057
     - from_time
2058
     - to_time
2059
     - status
94 ashish 2060
    """
559 chandransh 2061
    self.send_getCartsByTime(from_time, to_time, status)
2062
    return self.recv_getCartsByTime()
94 ashish 2063
 
559 chandransh 2064
  def send_getCartsByTime(self, from_time, to_time, status):
2065
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2066
    args = getCartsByTime_args()
2067
    args.from_time = from_time
2068
    args.to_time = to_time
2069
    args.status = status
94 ashish 2070
    args.write(self._oprot)
2071
    self._oprot.writeMessageEnd()
2072
    self._oprot.trans.flush()
2073
 
559 chandransh 2074
  def recv_getCartsByTime(self, ):
94 ashish 2075
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2076
    if mtype == TMessageType.EXCEPTION:
2077
      x = TApplicationException()
2078
      x.read(self._iprot)
2079
      self._iprot.readMessageEnd()
2080
      raise x
559 chandransh 2081
    result = getCartsByTime_result()
94 ashish 2082
    result.read(self._iprot)
2083
    self._iprot.readMessageEnd()
3431 rajveer 2084
    if result.success is not None:
94 ashish 2085
      return result.success
3431 rajveer 2086
    if result.scx is not None:
559 chandransh 2087
      raise result.scx
2088
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2089
 
559 chandransh 2090
  def changeCartStatus(self, cartId, status):
130 ashish 2091
    """
2092
    Parameters:
559 chandransh 2093
     - cartId
2094
     - status
130 ashish 2095
    """
559 chandransh 2096
    self.send_changeCartStatus(cartId, status)
2097
    self.recv_changeCartStatus()
94 ashish 2098
 
559 chandransh 2099
  def send_changeCartStatus(self, cartId, status):
2100
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2101
    args = changeCartStatus_args()
2102
    args.cartId = cartId
2103
    args.status = status
130 ashish 2104
    args.write(self._oprot)
2105
    self._oprot.writeMessageEnd()
2106
    self._oprot.trans.flush()
2107
 
559 chandransh 2108
  def recv_changeCartStatus(self, ):
130 ashish 2109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2110
    if mtype == TMessageType.EXCEPTION:
2111
      x = TApplicationException()
2112
      x.read(self._iprot)
2113
      self._iprot.readMessageEnd()
2114
      raise x
559 chandransh 2115
    result = changeCartStatus_result()
130 ashish 2116
    result.read(self._iprot)
2117
    self._iprot.readMessageEnd()
3431 rajveer 2118
    if result.scx is not None:
559 chandransh 2119
      raise result.scx
2120
    return
2121
 
2122
  def addItemToCart(self, cartId, itemId, quantity):
2123
    """
2124
    Parameters:
2125
     - cartId
2126
     - itemId
2127
     - quantity
2128
    """
2129
    self.send_addItemToCart(cartId, itemId, quantity)
2035 rajveer 2130
    return self.recv_addItemToCart()
559 chandransh 2131
 
2132
  def send_addItemToCart(self, cartId, itemId, quantity):
2133
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2134
    args = addItemToCart_args()
2135
    args.cartId = cartId
2136
    args.itemId = itemId
2137
    args.quantity = quantity
2138
    args.write(self._oprot)
2139
    self._oprot.writeMessageEnd()
2140
    self._oprot.trans.flush()
2141
 
2142
  def recv_addItemToCart(self, ):
2143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2144
    if mtype == TMessageType.EXCEPTION:
2145
      x = TApplicationException()
2146
      x.read(self._iprot)
2147
      self._iprot.readMessageEnd()
2148
      raise x
2149
    result = addItemToCart_result()
2150
    result.read(self._iprot)
2151
    self._iprot.readMessageEnd()
3431 rajveer 2152
    if result.success is not None:
2035 rajveer 2153
      return result.success
3431 rajveer 2154
    if result.scx is not None:
559 chandransh 2155
      raise result.scx
2035 rajveer 2156
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2157
 
2158
  def deleteItemFromCart(self, cartId, itemId):
2159
    """
2160
    Parameters:
2161
     - cartId
2162
     - itemId
2163
    """
2164
    self.send_deleteItemFromCart(cartId, itemId)
2165
    self.recv_deleteItemFromCart()
2166
 
2167
  def send_deleteItemFromCart(self, cartId, itemId):
2168
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2169
    args = deleteItemFromCart_args()
2170
    args.cartId = cartId
2171
    args.itemId = itemId
2172
    args.write(self._oprot)
2173
    self._oprot.writeMessageEnd()
2174
    self._oprot.trans.flush()
2175
 
2176
  def recv_deleteItemFromCart(self, ):
2177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2178
    if mtype == TMessageType.EXCEPTION:
2179
      x = TApplicationException()
2180
      x.read(self._iprot)
2181
      self._iprot.readMessageEnd()
2182
      raise x
2183
    result = deleteItemFromCart_result()
2184
    result.read(self._iprot)
2185
    self._iprot.readMessageEnd()
3431 rajveer 2186
    if result.scx is not None:
559 chandransh 2187
      raise result.scx
2188
    return
2189
 
2190
  def changeQuantity(self, cartId, itemId, quantity):
2191
    """
2192
    Parameters:
2193
     - cartId
2194
     - itemId
2195
     - quantity
2196
    """
2197
    self.send_changeQuantity(cartId, itemId, quantity)
2198
    self.recv_changeQuantity()
2199
 
2200
  def send_changeQuantity(self, cartId, itemId, quantity):
2201
    self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
2202
    args = changeQuantity_args()
2203
    args.cartId = cartId
2204
    args.itemId = itemId
2205
    args.quantity = quantity
2206
    args.write(self._oprot)
2207
    self._oprot.writeMessageEnd()
2208
    self._oprot.trans.flush()
2209
 
2210
  def recv_changeQuantity(self, ):
2211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2212
    if mtype == TMessageType.EXCEPTION:
2213
      x = TApplicationException()
2214
      x.read(self._iprot)
2215
      self._iprot.readMessageEnd()
2216
      raise x
2217
    result = changeQuantity_result()
2218
    result.read(self._iprot)
2219
    self._iprot.readMessageEnd()
3431 rajveer 2220
    if result.scx is not None:
559 chandransh 2221
      raise result.scx
2222
    return
2223
 
2224
  def changeItemStatus(self, cartId, itemId, status):
2225
    """
2226
    Parameters:
2227
     - cartId
2228
     - itemId
2229
     - status
2230
    """
2231
    self.send_changeItemStatus(cartId, itemId, status)
2232
    self.recv_changeItemStatus()
2233
 
2234
  def send_changeItemStatus(self, cartId, itemId, status):
2235
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2236
    args = changeItemStatus_args()
2237
    args.cartId = cartId
2238
    args.itemId = itemId
2239
    args.status = status
2240
    args.write(self._oprot)
2241
    self._oprot.writeMessageEnd()
2242
    self._oprot.trans.flush()
2243
 
2244
  def recv_changeItemStatus(self, ):
2245
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2246
    if mtype == TMessageType.EXCEPTION:
2247
      x = TApplicationException()
2248
      x.read(self._iprot)
2249
      self._iprot.readMessageEnd()
2250
      raise x
2251
    result = changeItemStatus_result()
2252
    result.read(self._iprot)
2253
    self._iprot.readMessageEnd()
3431 rajveer 2254
    if result.scx is not None:
559 chandransh 2255
      raise result.scx
2256
    return
2257
 
2258
  def addAddressToCart(self, cartId, addressId):
2259
    """
2260
    Parameters:
2261
     - cartId
2262
     - addressId
2263
    """
2264
    self.send_addAddressToCart(cartId, addressId)
2265
    self.recv_addAddressToCart()
2266
 
2267
  def send_addAddressToCart(self, cartId, addressId):
2268
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2269
    args = addAddressToCart_args()
2270
    args.cartId = cartId
2271
    args.addressId = addressId
2272
    args.write(self._oprot)
2273
    self._oprot.writeMessageEnd()
2274
    self._oprot.trans.flush()
2275
 
2276
  def recv_addAddressToCart(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 = addAddressToCart_result()
2284
    result.read(self._iprot)
2285
    self._iprot.readMessageEnd()
3431 rajveer 2286
    if result.scx is not None:
575 chandransh 2287
      raise result.scx
559 chandransh 2288
    return
2289
 
1976 varun.gupt 2290
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2291
    """
2292
    Parameters:
2293
     - cartId
2294
     - couponCode
2295
     - totalPrice
2296
     - discountedPrice
2297
    """
2298
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2299
    self.recv_applyCouponToCart()
2300
 
2301
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2302
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2303
    args = applyCouponToCart_args()
2304
    args.cartId = cartId
2305
    args.couponCode = couponCode
2306
    args.totalPrice = totalPrice
2307
    args.discountedPrice = discountedPrice
2308
    args.write(self._oprot)
2309
    self._oprot.writeMessageEnd()
2310
    self._oprot.trans.flush()
2311
 
2312
  def recv_applyCouponToCart(self, ):
2313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2314
    if mtype == TMessageType.EXCEPTION:
2315
      x = TApplicationException()
2316
      x.read(self._iprot)
2317
      self._iprot.readMessageEnd()
2318
      raise x
2319
    result = applyCouponToCart_result()
2320
    result.read(self._iprot)
2321
    self._iprot.readMessageEnd()
3431 rajveer 2322
    if result.scx is not None:
1976 varun.gupt 2323
      raise result.scx
2324
    return
2325
 
2326
  def removeCoupon(self, cartId):
2327
    """
2328
    Parameters:
2329
     - cartId
2330
    """
2331
    self.send_removeCoupon(cartId)
2332
    self.recv_removeCoupon()
2333
 
2334
  def send_removeCoupon(self, cartId):
2335
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2336
    args = removeCoupon_args()
2337
    args.cartId = cartId
2338
    args.write(self._oprot)
2339
    self._oprot.writeMessageEnd()
2340
    self._oprot.trans.flush()
2341
 
2342
  def recv_removeCoupon(self, ):
2343
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2344
    if mtype == TMessageType.EXCEPTION:
2345
      x = TApplicationException()
2346
      x.read(self._iprot)
2347
      self._iprot.readMessageEnd()
2348
      raise x
2349
    result = removeCoupon_result()
2350
    result.read(self._iprot)
2351
    self._iprot.readMessageEnd()
3431 rajveer 2352
    if result.scx is not None:
1976 varun.gupt 2353
      raise result.scx
2354
    return
2355
 
2815 vikas 2356
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 2357
    """
690 chandransh 2358
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2359
 
559 chandransh 2360
    Parameters:
2361
     - cartId
2815 vikas 2362
     - sessionSource
2363
     - sessionStartTime
559 chandransh 2364
    """
2815 vikas 2365
    self.send_createOrders(cartId, sessionSource, sessionStartTime)
690 chandransh 2366
    return self.recv_createOrders()
559 chandransh 2367
 
2815 vikas 2368
  def send_createOrders(self, cartId, sessionSource, sessionStartTime):
690 chandransh 2369
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2370
    args = createOrders_args()
559 chandransh 2371
    args.cartId = cartId
2815 vikas 2372
    args.sessionSource = sessionSource
2373
    args.sessionStartTime = sessionStartTime
559 chandransh 2374
    args.write(self._oprot)
2375
    self._oprot.writeMessageEnd()
2376
    self._oprot.trans.flush()
2377
 
690 chandransh 2378
  def recv_createOrders(self, ):
559 chandransh 2379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2380
    if mtype == TMessageType.EXCEPTION:
2381
      x = TApplicationException()
2382
      x.read(self._iprot)
2383
      self._iprot.readMessageEnd()
2384
      raise x
690 chandransh 2385
    result = createOrders_result()
559 chandransh 2386
    result.read(self._iprot)
2387
    self._iprot.readMessageEnd()
3431 rajveer 2388
    if result.success is not None:
130 ashish 2389
      return result.success
3431 rajveer 2390
    if result.scx is not None:
559 chandransh 2391
      raise result.scx
690 chandransh 2392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2393
 
559 chandransh 2394
  def validateCart(self, cartId):
130 ashish 2395
    """
690 chandransh 2396
    Validates that:
2397
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2398
    2. All of the lines in the cart are active items.
690 chandransh 2399
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2400
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2401
 
130 ashish 2402
    Parameters:
559 chandransh 2403
     - cartId
130 ashish 2404
    """
559 chandransh 2405
    self.send_validateCart(cartId)
2406
    return self.recv_validateCart()
130 ashish 2407
 
559 chandransh 2408
  def send_validateCart(self, cartId):
2409
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2410
    args = validateCart_args()
2411
    args.cartId = cartId
130 ashish 2412
    args.write(self._oprot)
2413
    self._oprot.writeMessageEnd()
2414
    self._oprot.trans.flush()
2415
 
559 chandransh 2416
  def recv_validateCart(self, ):
130 ashish 2417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2418
    if mtype == TMessageType.EXCEPTION:
2419
      x = TApplicationException()
2420
      x.read(self._iprot)
2421
      self._iprot.readMessageEnd()
2422
      raise x
559 chandransh 2423
    result = validateCart_result()
130 ashish 2424
    result.read(self._iprot)
2425
    self._iprot.readMessageEnd()
3431 rajveer 2426
    if result.success is not None:
130 ashish 2427
      return result.success
3431 rajveer 2428
    if result.scex is not None:
575 chandransh 2429
      raise result.scex
559 chandransh 2430
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2431
 
690 chandransh 2432
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2433
    """
690 chandransh 2434
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2435
 
575 chandransh 2436
    Parameters:
690 chandransh 2437
     - fromCartId
2438
     - toCartId
2439
    """
2440
    self.send_mergeCart(fromCartId, toCartId)
2441
    self.recv_mergeCart()
2442
 
2443
  def send_mergeCart(self, fromCartId, toCartId):
2444
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2445
    args = mergeCart_args()
2446
    args.fromCartId = fromCartId
2447
    args.toCartId = toCartId
2448
    args.write(self._oprot)
2449
    self._oprot.writeMessageEnd()
2450
    self._oprot.trans.flush()
2451
 
2452
  def recv_mergeCart(self, ):
2453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2454
    if mtype == TMessageType.EXCEPTION:
2455
      x = TApplicationException()
2456
      x.read(self._iprot)
2457
      self._iprot.readMessageEnd()
2458
      raise x
2459
    result = mergeCart_result()
2460
    result.read(self._iprot)
2461
    self._iprot.readMessageEnd()
2462
    return
2463
 
2464
  def checkOut(self, cartId):
2465
    """
2466
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2467
 
690 chandransh 2468
    Parameters:
575 chandransh 2469
     - cartId
2470
    """
690 chandransh 2471
    self.send_checkOut(cartId)
2472
    return self.recv_checkOut()
575 chandransh 2473
 
690 chandransh 2474
  def send_checkOut(self, cartId):
2475
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2476
    args = checkOut_args()
575 chandransh 2477
    args.cartId = cartId
2478
    args.write(self._oprot)
2479
    self._oprot.writeMessageEnd()
2480
    self._oprot.trans.flush()
2481
 
690 chandransh 2482
  def recv_checkOut(self, ):
575 chandransh 2483
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2484
    if mtype == TMessageType.EXCEPTION:
2485
      x = TApplicationException()
2486
      x.read(self._iprot)
2487
      self._iprot.readMessageEnd()
2488
      raise x
690 chandransh 2489
    result = checkOut_result()
575 chandransh 2490
    result.read(self._iprot)
2491
    self._iprot.readMessageEnd()
3431 rajveer 2492
    if result.success is not None:
575 chandransh 2493
      return result.success
3431 rajveer 2494
    if result.scex is not None:
575 chandransh 2495
      raise result.scex
690 chandransh 2496
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2497
 
690 chandransh 2498
  def resetCart(self, cartId, items):
559 chandransh 2499
    """
690 chandransh 2500
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2501
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2502
 
559 chandransh 2503
    Parameters:
690 chandransh 2504
     - cartId
2505
     - items
559 chandransh 2506
    """
690 chandransh 2507
    self.send_resetCart(cartId, items)
2508
    return self.recv_resetCart()
130 ashish 2509
 
690 chandransh 2510
  def send_resetCart(self, cartId, items):
2511
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2512
    args = resetCart_args()
2513
    args.cartId = cartId
2514
    args.items = items
559 chandransh 2515
    args.write(self._oprot)
2516
    self._oprot.writeMessageEnd()
2517
    self._oprot.trans.flush()
2518
 
690 chandransh 2519
  def recv_resetCart(self, ):
559 chandransh 2520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2521
    if mtype == TMessageType.EXCEPTION:
2522
      x = TApplicationException()
2523
      x.read(self._iprot)
2524
      self._iprot.readMessageEnd()
2525
      raise x
690 chandransh 2526
    result = resetCart_result()
559 chandransh 2527
    result.read(self._iprot)
2528
    self._iprot.readMessageEnd()
3431 rajveer 2529
    if result.success is not None:
690 chandransh 2530
      return result.success
3431 rajveer 2531
    if result.scex is not None:
690 chandransh 2532
      raise result.scex
2533
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2534
 
2981 rajveer 2535
  def getUserCount(self, userType):
559 chandransh 2536
    """
2981 rajveer 2537
    Returns number of registered users.
2538
    If userType = null, then it returns count of all users, including anonymous
2539
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2540
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2541
 
559 chandransh 2542
    Parameters:
2981 rajveer 2543
     - userType
559 chandransh 2544
    """
2981 rajveer 2545
    self.send_getUserCount(userType)
2546
    return self.recv_getUserCount()
559 chandransh 2547
 
2981 rajveer 2548
  def send_getUserCount(self, userType):
2549
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2550
    args = getUserCount_args()
2551
    args.userType = userType
559 chandransh 2552
    args.write(self._oprot)
2553
    self._oprot.writeMessageEnd()
2554
    self._oprot.trans.flush()
2555
 
2981 rajveer 2556
  def recv_getUserCount(self, ):
559 chandransh 2557
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2558
    if mtype == TMessageType.EXCEPTION:
2559
      x = TApplicationException()
2560
      x.read(self._iprot)
2561
      self._iprot.readMessageEnd()
2562
      raise x
2981 rajveer 2563
    result = getUserCount_result()
559 chandransh 2564
    result.read(self._iprot)
2565
    self._iprot.readMessageEnd()
3431 rajveer 2566
    if result.success is not None:
559 chandransh 2567
      return result.success
2981 rajveer 2568
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2569
 
2981 rajveer 2570
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2571
    """
2981 rajveer 2572
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2573
    If any of startDate or endDate is -1, then that filter is ignored.
2574
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2575
 
2576
 
559 chandransh 2577
    Parameters:
2981 rajveer 2578
     - userType
2579
     - startDate
2580
     - endDate
559 chandransh 2581
    """
2981 rajveer 2582
    self.send_getAllUsers(userType, startDate, endDate)
2583
    return self.recv_getAllUsers()
559 chandransh 2584
 
2981 rajveer 2585
  def send_getAllUsers(self, userType, startDate, endDate):
2586
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2587
    args = getAllUsers_args()
2588
    args.userType = userType
2589
    args.startDate = startDate
2590
    args.endDate = endDate
559 chandransh 2591
    args.write(self._oprot)
2592
    self._oprot.writeMessageEnd()
2593
    self._oprot.trans.flush()
2594
 
2981 rajveer 2595
  def recv_getAllUsers(self, ):
559 chandransh 2596
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2597
    if mtype == TMessageType.EXCEPTION:
2598
      x = TApplicationException()
2599
      x.read(self._iprot)
2600
      self._iprot.readMessageEnd()
2601
      raise x
2981 rajveer 2602
    result = getAllUsers_result()
559 chandransh 2603
    result.read(self._iprot)
2604
    self._iprot.readMessageEnd()
3431 rajveer 2605
    if result.success is not None:
559 chandransh 2606
      return result.success
2981 rajveer 2607
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2608
 
2981 rajveer 2609
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2610
    """
2611
    Parameters:
2981 rajveer 2612
     - user_id
2613
     - entity_id
2614
     - slide
2615
     - note
559 chandransh 2616
    """
2981 rajveer 2617
    self.send_putUserNote(user_id, entity_id, slide, note)
2618
    self.recv_putUserNote()
559 chandransh 2619
 
2981 rajveer 2620
  def send_putUserNote(self, user_id, entity_id, slide, note):
2621
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2622
    args = putUserNote_args()
2623
    args.user_id = user_id
2624
    args.entity_id = entity_id
2625
    args.slide = slide
2626
    args.note = note
559 chandransh 2627
    args.write(self._oprot)
2628
    self._oprot.writeMessageEnd()
2629
    self._oprot.trans.flush()
2630
 
2981 rajveer 2631
  def recv_putUserNote(self, ):
559 chandransh 2632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2633
    if mtype == TMessageType.EXCEPTION:
2634
      x = TApplicationException()
2635
      x.read(self._iprot)
2636
      self._iprot.readMessageEnd()
2637
      raise x
2981 rajveer 2638
    result = putUserNote_result()
559 chandransh 2639
    result.read(self._iprot)
2640
    self._iprot.readMessageEnd()
2641
    return
2642
 
2981 rajveer 2643
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2644
    """
2645
    Parameters:
2981 rajveer 2646
     - user_id
2647
     - entity_id
559 chandransh 2648
    """
2981 rajveer 2649
    self.send_getUserNotes(user_id, entity_id)
2650
    return self.recv_getUserNotes()
559 chandransh 2651
 
2981 rajveer 2652
  def send_getUserNotes(self, user_id, entity_id):
2653
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2654
    args = getUserNotes_args()
2655
    args.user_id = user_id
2656
    args.entity_id = entity_id
559 chandransh 2657
    args.write(self._oprot)
2658
    self._oprot.writeMessageEnd()
2659
    self._oprot.trans.flush()
2660
 
2981 rajveer 2661
  def recv_getUserNotes(self, ):
559 chandransh 2662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2663
    if mtype == TMessageType.EXCEPTION:
2664
      x = TApplicationException()
2665
      x.read(self._iprot)
2666
      self._iprot.readMessageEnd()
2667
      raise x
2981 rajveer 2668
    result = getUserNotes_result()
559 chandransh 2669
    result.read(self._iprot)
2670
    self._iprot.readMessageEnd()
3431 rajveer 2671
    if result.success is not None:
2981 rajveer 2672
      return result.success
2673
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2674
 
2981 rajveer 2675
  def getMyResearchItems(self, userId):
559 chandransh 2676
    """
2981 rajveer 2677
    Returns list of item ids in myresearch for the user
3431 rajveer 2678
 
559 chandransh 2679
    Parameters:
772 rajveer 2680
     - userId
559 chandransh 2681
    """
2981 rajveer 2682
    self.send_getMyResearchItems(userId)
2683
    return self.recv_getMyResearchItems()
559 chandransh 2684
 
2981 rajveer 2685
  def send_getMyResearchItems(self, userId):
2686
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2687
    args = getMyResearchItems_args()
772 rajveer 2688
    args.userId = userId
559 chandransh 2689
    args.write(self._oprot)
2690
    self._oprot.writeMessageEnd()
2691
    self._oprot.trans.flush()
2692
 
2981 rajveer 2693
  def recv_getMyResearchItems(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 = getMyResearchItems_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
3431 rajveer 2705
    if result.scx is not None:
559 chandransh 2706
      raise result.scx
2981 rajveer 2707
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2708
 
2981 rajveer 2709
  def updateMyResearch(self, userId, itemId):
559 chandransh 2710
    """
2981 rajveer 2711
    add item to my research for a user
3431 rajveer 2712
 
559 chandransh 2713
    Parameters:
2981 rajveer 2714
     - userId
2715
     - itemId
559 chandransh 2716
    """
2981 rajveer 2717
    self.send_updateMyResearch(userId, itemId)
2718
    return self.recv_updateMyResearch()
559 chandransh 2719
 
2981 rajveer 2720
  def send_updateMyResearch(self, userId, itemId):
2721
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2722
    args = updateMyResearch_args()
2723
    args.userId = userId
2724
    args.itemId = itemId
559 chandransh 2725
    args.write(self._oprot)
2726
    self._oprot.writeMessageEnd()
2727
    self._oprot.trans.flush()
2728
 
2981 rajveer 2729
  def recv_updateMyResearch(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 = updateMyResearch_result()
559 chandransh 2737
    result.read(self._iprot)
2738
    self._iprot.readMessageEnd()
3431 rajveer 2739
    if result.success is not None:
2981 rajveer 2740
      return result.success
3431 rajveer 2741
    if result.scx is not None:
2981 rajveer 2742
      raise result.scx
2743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2744
 
2981 rajveer 2745
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2746
    """
2981 rajveer 2747
    delete item from my research for a user
3431 rajveer 2748
 
1596 ankur.sing 2749
    Parameters:
2981 rajveer 2750
     - userId
2751
     - itemId
1596 ankur.sing 2752
    """
2981 rajveer 2753
    self.send_deleteItemFromMyResearch(userId, itemId)
2754
    self.recv_deleteItemFromMyResearch()
559 chandransh 2755
 
2981 rajveer 2756
  def send_deleteItemFromMyResearch(self, userId, itemId):
2757
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2758
    args = deleteItemFromMyResearch_args()
2759
    args.userId = userId
2760
    args.itemId = itemId
1596 ankur.sing 2761
    args.write(self._oprot)
2762
    self._oprot.writeMessageEnd()
2763
    self._oprot.trans.flush()
2764
 
2981 rajveer 2765
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2766
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2767
    if mtype == TMessageType.EXCEPTION:
2768
      x = TApplicationException()
2769
      x.read(self._iprot)
2770
      self._iprot.readMessageEnd()
2771
      raise x
2981 rajveer 2772
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2773
    result.read(self._iprot)
2774
    self._iprot.readMessageEnd()
3431 rajveer 2775
    if result.scx is not None:
2981 rajveer 2776
      raise result.scx
2777
    return
1596 ankur.sing 2778
 
2981 rajveer 2779
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2780
    """
2981 rajveer 2781
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2782
 
1673 ankur.sing 2783
    Parameters:
2981 rajveer 2784
     - userId
1673 ankur.sing 2785
    """
2981 rajveer 2786
    self.send_getBrowseHistoryItems(userId)
2787
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2788
 
2981 rajveer 2789
  def send_getBrowseHistoryItems(self, userId):
2790
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2791
    args = getBrowseHistoryItems_args()
2792
    args.userId = userId
1673 ankur.sing 2793
    args.write(self._oprot)
2794
    self._oprot.writeMessageEnd()
2795
    self._oprot.trans.flush()
2796
 
2981 rajveer 2797
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2798
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2799
    if mtype == TMessageType.EXCEPTION:
2800
      x = TApplicationException()
2801
      x.read(self._iprot)
2802
      self._iprot.readMessageEnd()
2803
      raise x
2981 rajveer 2804
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2805
    result.read(self._iprot)
2806
    self._iprot.readMessageEnd()
3431 rajveer 2807
    if result.success is not None:
1673 ankur.sing 2808
      return result.success
3431 rajveer 2809
    if result.scx is not None:
2981 rajveer 2810
      raise result.scx
2811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2812
 
2981 rajveer 2813
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2814
    """
2981 rajveer 2815
    add item to browse history for a user
3431 rajveer 2816
 
2642 varun.gupt 2817
    Parameters:
2981 rajveer 2818
     - userId
2819
     - itemId
2642 varun.gupt 2820
    """
2981 rajveer 2821
    self.send_updateBrowseHistory(userId, itemId)
2822
    self.recv_updateBrowseHistory()
1673 ankur.sing 2823
 
2981 rajveer 2824
  def send_updateBrowseHistory(self, userId, itemId):
2825
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2826
    args = updateBrowseHistory_args()
2827
    args.userId = userId
2828
    args.itemId = itemId
2642 varun.gupt 2829
    args.write(self._oprot)
2830
    self._oprot.writeMessageEnd()
2831
    self._oprot.trans.flush()
2832
 
2981 rajveer 2833
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2835
    if mtype == TMessageType.EXCEPTION:
2836
      x = TApplicationException()
2837
      x.read(self._iprot)
2838
      self._iprot.readMessageEnd()
2839
      raise x
2981 rajveer 2840
    result = updateBrowseHistory_result()
2642 varun.gupt 2841
    result.read(self._iprot)
2842
    self._iprot.readMessageEnd()
2843
    return
2844
 
3385 varun.gupt 2845
  def getCartsWithCouponCount(self, couponCode):
2846
    """
2847
    Returns count of Carts with given coupon applied
3431 rajveer 2848
 
3385 varun.gupt 2849
    Parameters:
2850
     - couponCode
2851
    """
2852
    self.send_getCartsWithCouponCount(couponCode)
2853
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2854
 
3385 varun.gupt 2855
  def send_getCartsWithCouponCount(self, couponCode):
2856
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2857
    args = getCartsWithCouponCount_args()
2858
    args.couponCode = couponCode
2859
    args.write(self._oprot)
2860
    self._oprot.writeMessageEnd()
2861
    self._oprot.trans.flush()
2862
 
2863
  def recv_getCartsWithCouponCount(self, ):
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
2870
    result = getCartsWithCouponCount_result()
2871
    result.read(self._iprot)
2872
    self._iprot.readMessageEnd()
3431 rajveer 2873
    if result.success is not None:
3385 varun.gupt 2874
      return result.success
2875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2876
 
2877
 
3376 rajveer 2878
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2879
  def __init__(self, handler):
3376 rajveer 2880
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2881
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2882
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2883
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2884
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2885
    self._processMap["createUser"] = Processor.process_createUser
2886
    self._processMap["updateUser"] = Processor.process_updateUser
2887
    self._processMap["deleteUser"] = Processor.process_deleteUser
2888
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 2889
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2890
    self._processMap["userExists"] = Processor.process_userExists
2891
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2892
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2893
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2894
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2895
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2896
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2897
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2898
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2899
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2900
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2901
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2902
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2903
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2904
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2905
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2906
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2907
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2908
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2909
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2910
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2911
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2912
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2913
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2914
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2915
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2916
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2917
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2918
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2919
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2920
    self._processMap["createCart"] = Processor.process_createCart
2921
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2922
    self._processMap["getCart"] = Processor.process_getCart
2923
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
2924
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
2925
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2926
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
2927
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2928
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2929
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
2930
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2931
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 2932
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2933
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
690 chandransh 2934
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2935
    self._processMap["validateCart"] = Processor.process_validateCart
2936
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2937
    self._processMap["checkOut"] = Processor.process_checkOut
2938
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2939
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2940
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2941
    self._processMap["putUserNote"] = Processor.process_putUserNote
2942
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2943
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2944
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2945
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2946
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2947
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2948
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
94 ashish 2949
 
2950
  def process(self, iprot, oprot):
2951
    (name, type, seqid) = iprot.readMessageBegin()
2952
    if name not in self._processMap:
2953
      iprot.skip(TType.STRUCT)
2954
      iprot.readMessageEnd()
2955
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2956
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2957
      x.write(oprot)
2958
      oprot.writeMessageEnd()
2959
      oprot.trans.flush()
2960
      return
2961
    else:
2962
      self._processMap[name](self, seqid, iprot, oprot)
2963
    return True
2964
 
559 chandransh 2965
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2966
    args = createAnonymousUser_args()
94 ashish 2967
    args.read(iprot)
2968
    iprot.readMessageEnd()
559 chandransh 2969
    result = createAnonymousUser_result()
94 ashish 2970
    try:
559 chandransh 2971
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2972
    except UserContextException, ucex:
2973
      result.ucex = ucex
2974
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2975
    result.write(oprot)
2976
    oprot.writeMessageEnd()
2977
    oprot.trans.flush()
2978
 
559 chandransh 2979
  def process_getUserById(self, seqid, iprot, oprot):
2980
    args = getUserById_args()
94 ashish 2981
    args.read(iprot)
2982
    iprot.readMessageEnd()
559 chandransh 2983
    result = getUserById_result()
94 ashish 2984
    try:
559 chandransh 2985
      result.success = self._handler.getUserById(args.userId)
2986
    except UserContextException, ucex:
2987
      result.ucex = ucex
2988
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2989
    result.write(oprot)
2990
    oprot.writeMessageEnd()
2991
    oprot.trans.flush()
2992
 
1491 vikas 2993
  def process_getUserByEmail(self, seqid, iprot, oprot):
2994
    args = getUserByEmail_args()
2995
    args.read(iprot)
2996
    iprot.readMessageEnd()
2997
    result = getUserByEmail_result()
2998
    try:
2999
      result.success = self._handler.getUserByEmail(args.email)
3000
    except UserContextException, ucex:
3001
      result.ucex = ucex
3002
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3003
    result.write(oprot)
3004
    oprot.writeMessageEnd()
3005
    oprot.trans.flush()
3006
 
3032 mandeep.dh 3007
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3008
    args = getUserByMobileNumber_args()
3009
    args.read(iprot)
3010
    iprot.readMessageEnd()
3011
    result = getUserByMobileNumber_result()
3012
    try:
3013
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3014
    except UserContextException, ucex:
3015
      result.ucex = ucex
3016
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3017
    result.write(oprot)
3018
    oprot.writeMessageEnd()
3019
    oprot.trans.flush()
3020
 
559 chandransh 3021
  def process_createUser(self, seqid, iprot, oprot):
3022
    args = createUser_args()
94 ashish 3023
    args.read(iprot)
3024
    iprot.readMessageEnd()
559 chandransh 3025
    result = createUser_result()
94 ashish 3026
    try:
559 chandransh 3027
      result.success = self._handler.createUser(args.user)
3028
    except UserContextException, ucex:
3029
      result.ucex = ucex
3030
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3031
    result.write(oprot)
3032
    oprot.writeMessageEnd()
3033
    oprot.trans.flush()
3034
 
559 chandransh 3035
  def process_updateUser(self, seqid, iprot, oprot):
3036
    args = updateUser_args()
94 ashish 3037
    args.read(iprot)
3038
    iprot.readMessageEnd()
559 chandransh 3039
    result = updateUser_result()
94 ashish 3040
    try:
559 chandransh 3041
      result.success = self._handler.updateUser(args.user)
3042
    except UserContextException, ucex:
3043
      result.ucex = ucex
3044
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3045
    result.write(oprot)
3046
    oprot.writeMessageEnd()
3047
    oprot.trans.flush()
3048
 
559 chandransh 3049
  def process_deleteUser(self, seqid, iprot, oprot):
3050
    args = deleteUser_args()
94 ashish 3051
    args.read(iprot)
3052
    iprot.readMessageEnd()
559 chandransh 3053
    result = deleteUser_result()
94 ashish 3054
    try:
559 chandransh 3055
      result.success = self._handler.deleteUser(args.userId)
3056
    except UserContextException, ucex:
3057
      result.ucex = ucex
3058
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3059
    result.write(oprot)
3060
    oprot.writeMessageEnd()
3061
    oprot.trans.flush()
3062
 
559 chandransh 3063
  def process_getUserState(self, seqid, iprot, oprot):
3064
    args = getUserState_args()
94 ashish 3065
    args.read(iprot)
3066
    iprot.readMessageEnd()
559 chandransh 3067
    result = getUserState_result()
94 ashish 3068
    try:
559 chandransh 3069
      result.success = self._handler.getUserState(args.userId)
3070
    except UserContextException, ucex:
3071
      result.ucex = ucex
3072
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3073
    result.write(oprot)
3074
    oprot.writeMessageEnd()
3075
    oprot.trans.flush()
3076
 
122 ashish 3077
  def process_authenticateUser(self, seqid, iprot, oprot):
3078
    args = authenticateUser_args()
3079
    args.read(iprot)
3080
    iprot.readMessageEnd()
3081
    result = authenticateUser_result()
3082
    try:
559 chandransh 3083
      result.success = self._handler.authenticateUser(args.email, args.password)
3084
    except AuthenticationException, auex:
3085
      result.auex = auex
122 ashish 3086
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3087
    result.write(oprot)
3088
    oprot.writeMessageEnd()
3089
    oprot.trans.flush()
3090
 
94 ashish 3091
  def process_userExists(self, seqid, iprot, oprot):
3092
    args = userExists_args()
3093
    args.read(iprot)
3094
    iprot.readMessageEnd()
3095
    result = userExists_result()
3096
    try:
3097
      result.success = self._handler.userExists(args.email)
3098
    except UserContextException, ucx:
3099
      result.ucx = ucx
3100
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3101
    result.write(oprot)
3102
    oprot.writeMessageEnd()
3103
    oprot.trans.flush()
3104
 
3105
  def process_addAddressForUser(self, seqid, iprot, oprot):
3106
    args = addAddressForUser_args()
3107
    args.read(iprot)
3108
    iprot.readMessageEnd()
3109
    result = addAddressForUser_result()
3110
    try:
567 rajveer 3111
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3112
    except UserContextException, ucx:
3113
      result.ucx = ucx
3114
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3115
    result.write(oprot)
3116
    oprot.writeMessageEnd()
3117
    oprot.trans.flush()
3118
 
3119
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3120
    args = removeAddressForUser_args()
3121
    args.read(iprot)
3122
    iprot.readMessageEnd()
3123
    result = removeAddressForUser_result()
3124
    try:
3125
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3126
    except UserContextException, ucx:
3127
      result.ucx = ucx
3128
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3129
    result.write(oprot)
3130
    oprot.writeMessageEnd()
3131
    oprot.trans.flush()
3132
 
3133
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3134
    args = setUserAsLoggedIn_args()
3135
    args.read(iprot)
3136
    iprot.readMessageEnd()
3137
    result = setUserAsLoggedIn_result()
3138
    try:
3139
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3140
    except UserContextException, ucx:
3141
      result.ucx = ucx
3142
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3143
    result.write(oprot)
3144
    oprot.writeMessageEnd()
3145
    oprot.trans.flush()
3146
 
3147
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3148
    args = setUserAsLoggedOut_args()
3149
    args.read(iprot)
3150
    iprot.readMessageEnd()
3151
    result = setUserAsLoggedOut_result()
3152
    try:
3153
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3154
    except UserContextException, ucx:
3155
      result.ucx = ucx
3156
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3157
    result.write(oprot)
3158
    oprot.writeMessageEnd()
3159
    oprot.trans.flush()
3160
 
504 rajveer 3161
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3162
    args = setDefaultAddress_args()
3163
    args.read(iprot)
3164
    iprot.readMessageEnd()
3165
    result = setDefaultAddress_result()
3166
    try:
3167
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3168
    except UserContextException, ucx:
3169
      result.ucx = ucx
3170
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3171
    result.write(oprot)
3172
    oprot.writeMessageEnd()
3173
    oprot.trans.flush()
3174
 
94 ashish 3175
  def process_updatePassword(self, seqid, iprot, oprot):
3176
    args = updatePassword_args()
3177
    args.read(iprot)
3178
    iprot.readMessageEnd()
3179
    result = updatePassword_result()
3180
    try:
594 rajveer 3181
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3182
    except UserContextException, ucx:
3183
      result.ucx = ucx
3184
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3185
    result.write(oprot)
3186
    oprot.writeMessageEnd()
3187
    oprot.trans.flush()
3188
 
581 rajveer 3189
  def process_forgotPassword(self, seqid, iprot, oprot):
3190
    args = forgotPassword_args()
3191
    args.read(iprot)
3192
    iprot.readMessageEnd()
3193
    result = forgotPassword_result()
3194
    try:
884 rajveer 3195
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3196
    except UserContextException, ucx:
3197
      result.ucx = ucx
3198
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3199
    result.write(oprot)
3200
    oprot.writeMessageEnd()
3201
    oprot.trans.flush()
3202
 
594 rajveer 3203
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3204
    args = getAllAddressesForUser_args()
3205
    args.read(iprot)
3206
    iprot.readMessageEnd()
3207
    result = getAllAddressesForUser_result()
3208
    try:
3209
      result.success = self._handler.getAllAddressesForUser(args.userId)
3210
    except UserContextException, ucx:
3211
      result.ucx = ucx
3212
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3213
    result.write(oprot)
3214
    oprot.writeMessageEnd()
3215
    oprot.trans.flush()
3216
 
1894 vikas 3217
  def process_getAddressById(self, seqid, iprot, oprot):
3218
    args = getAddressById_args()
3219
    args.read(iprot)
3220
    iprot.readMessageEnd()
3221
    result = getAddressById_result()
3222
    try:
3223
      result.success = self._handler.getAddressById(args.addressId)
3224
    except UserContextException, ucx:
3225
      result.ucx = ucx
3226
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3227
    result.write(oprot)
3228
    oprot.writeMessageEnd()
3229
    oprot.trans.flush()
3230
 
594 rajveer 3231
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3232
    args = getDefaultAddressId_args()
3233
    args.read(iprot)
3234
    iprot.readMessageEnd()
3235
    result = getDefaultAddressId_result()
3236
    try:
3237
      result.success = self._handler.getDefaultAddressId(args.userId)
3238
    except UserContextException, ucx:
3239
      result.ucx = ucx
3240
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3241
    result.write(oprot)
3242
    oprot.writeMessageEnd()
3243
    oprot.trans.flush()
3244
 
785 rajveer 3245
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3246
    args = getDefaultPincode_args()
3247
    args.read(iprot)
3248
    iprot.readMessageEnd()
3249
    result = getDefaultPincode_result()
3250
    try:
3251
      result.success = self._handler.getDefaultPincode(args.userId)
3252
    except UserContextException, ucx:
3253
      result.ucx = ucx
3254
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3255
    result.write(oprot)
3256
    oprot.writeMessageEnd()
3257
    oprot.trans.flush()
3258
 
1274 varun.gupt 3259
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3260
    args = saveUserCommunication_args()
3261
    args.read(iprot)
3262
    iprot.readMessageEnd()
3263
    result = saveUserCommunication_result()
3264
    try:
3265
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3266
    except UserCommunicationException, ucx:
3267
      result.ucx = ucx
3268
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3269
    result.write(oprot)
3270
    oprot.writeMessageEnd()
3271
    oprot.trans.flush()
3272
 
1590 varun.gupt 3273
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3274
    args = getUserCommunicationById_args()
3275
    args.read(iprot)
3276
    iprot.readMessageEnd()
3277
    result = getUserCommunicationById_result()
3278
    try:
3279
      result.success = self._handler.getUserCommunicationById(args.id)
3280
    except UserCommunicationException, ucx:
3281
      result.ucx = ucx
3282
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3283
    result.write(oprot)
3284
    oprot.writeMessageEnd()
3285
    oprot.trans.flush()
3286
 
3287
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3288
    args = getUserCommunicationByUser_args()
3289
    args.read(iprot)
3290
    iprot.readMessageEnd()
3291
    result = getUserCommunicationByUser_result()
3292
    try:
3293
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3294
    except UserCommunicationException, ucx:
3295
      result.ucx = ucx
3296
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3297
    result.write(oprot)
3298
    oprot.writeMessageEnd()
3299
    oprot.trans.flush()
3300
 
3301
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3302
    args = getAllUserCommunications_args()
3303
    args.read(iprot)
3304
    iprot.readMessageEnd()
3305
    result = getAllUserCommunications_result()
3306
    try:
3307
      result.success = self._handler.getAllUserCommunications()
3308
    except UserCommunicationException, ucx:
3309
      result.ucx = ucx
3310
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3311
    result.write(oprot)
3312
    oprot.writeMessageEnd()
3313
    oprot.trans.flush()
3314
 
1845 vikas 3315
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3316
    args = createMasterAffiliate_args()
3317
    args.read(iprot)
3318
    iprot.readMessageEnd()
3319
    result = createMasterAffiliate_result()
3320
    try:
1859 vikas 3321
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3322
    except UserAffiliateException, utx:
1845 vikas 3323
      result.utx = utx
3324
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3325
    result.write(oprot)
3326
    oprot.writeMessageEnd()
3327
    oprot.trans.flush()
3328
 
1899 vikas 3329
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3330
    args = getAllMasterAffiliates_args()
3331
    args.read(iprot)
3332
    iprot.readMessageEnd()
3333
    result = getAllMasterAffiliates_result()
3334
    try:
3335
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3336
    except UserAffiliateException, utx:
1899 vikas 3337
      result.utx = utx
3338
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3339
    result.write(oprot)
3340
    oprot.writeMessageEnd()
3341
    oprot.trans.flush()
3342
 
1845 vikas 3343
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3344
    args = getMasterAffiliateById_args()
3345
    args.read(iprot)
3346
    iprot.readMessageEnd()
3347
    result = getMasterAffiliateById_result()
3348
    try:
3349
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3350
    except UserAffiliateException, utx:
1845 vikas 3351
      result.utx = utx
3352
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3353
    result.write(oprot)
3354
    oprot.writeMessageEnd()
3355
    oprot.trans.flush()
3356
 
3357
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3358
    args = getMasterAffiliateByName_args()
3359
    args.read(iprot)
3360
    iprot.readMessageEnd()
3361
    result = getMasterAffiliateByName_result()
3362
    try:
3363
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3364
    except UserAffiliateException, utx:
1845 vikas 3365
      result.utx = utx
3366
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3367
    result.write(oprot)
3368
    oprot.writeMessageEnd()
3369
    oprot.trans.flush()
3370
 
3371
  def process_createAffiliate(self, seqid, iprot, oprot):
3372
    args = createAffiliate_args()
3373
    args.read(iprot)
3374
    iprot.readMessageEnd()
3375
    result = createAffiliate_result()
3376
    try:
1859 vikas 3377
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3378
    except UserAffiliateException, utx:
1845 vikas 3379
      result.utx = utx
3380
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3381
    result.write(oprot)
3382
    oprot.writeMessageEnd()
3383
    oprot.trans.flush()
3384
 
3385
  def process_getAffiliateById(self, seqid, iprot, oprot):
3386
    args = getAffiliateById_args()
3387
    args.read(iprot)
3388
    iprot.readMessageEnd()
3389
    result = getAffiliateById_result()
3390
    try:
3391
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3392
    except UserAffiliateException, utx:
1845 vikas 3393
      result.utx = utx
3394
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3395
    result.write(oprot)
3396
    oprot.writeMessageEnd()
3397
    oprot.trans.flush()
3398
 
3399
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3400
    args = getAffiliateByName_args()
3401
    args.read(iprot)
3402
    iprot.readMessageEnd()
3403
    result = getAffiliateByName_result()
3404
    try:
3405
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3406
    except UserAffiliateException, utx:
1845 vikas 3407
      result.utx = utx
3408
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3409
    result.write(oprot)
3410
    oprot.writeMessageEnd()
3411
    oprot.trans.flush()
3412
 
3413
  def process_getTrackerById(self, seqid, iprot, oprot):
3414
    args = getTrackerById_args()
3415
    args.read(iprot)
3416
    iprot.readMessageEnd()
3417
    result = getTrackerById_result()
3418
    try:
1996 vikas 3419
      result.success = self._handler.getTrackerById(args.id)
3420
    except UserAffiliateException, utx:
1845 vikas 3421
      result.utx = utx
3422
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3423
    result.write(oprot)
3424
    oprot.writeMessageEnd()
3425
    oprot.trans.flush()
3426
 
1996 vikas 3427
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3428
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3429
    args.read(iprot)
3430
    iprot.readMessageEnd()
1996 vikas 3431
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3432
    try:
1996 vikas 3433
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3434
    except UserAffiliateException, utx:
1845 vikas 3435
      result.utx = utx
1996 vikas 3436
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3437
    result.write(oprot)
3438
    oprot.writeMessageEnd()
3439
    oprot.trans.flush()
3440
 
3441
  def process_addTrackLog(self, seqid, iprot, oprot):
3442
    args = addTrackLog_args()
3443
    args.read(iprot)
3444
    iprot.readMessageEnd()
3445
    result = addTrackLog_result()
3446
    try:
1996 vikas 3447
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3448
    except UserAffiliateException, utx:
1845 vikas 3449
      result.utx = utx
3450
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3451
    result.write(oprot)
3452
    oprot.writeMessageEnd()
3453
    oprot.trans.flush()
3454
 
3455
  def process_getTrackLogById(self, seqid, iprot, oprot):
3456
    args = getTrackLogById_args()
3457
    args.read(iprot)
3458
    iprot.readMessageEnd()
3459
    result = getTrackLogById_result()
3460
    try:
3461
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3462
    except UserAffiliateException, utx:
1845 vikas 3463
      result.utx = utx
3464
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3465
    result.write(oprot)
3466
    oprot.writeMessageEnd()
3467
    oprot.trans.flush()
3468
 
1996 vikas 3469
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3470
    args = getTrackLogsByAffiliate_args()
1845 vikas 3471
    args.read(iprot)
3472
    iprot.readMessageEnd()
1996 vikas 3473
    result = getTrackLogsByAffiliate_result()
1845 vikas 3474
    try:
3293 vikas 3475
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3476
    except UserAffiliateException, utx:
1845 vikas 3477
      result.utx = utx
1996 vikas 3478
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3479
    result.write(oprot)
3480
    oprot.writeMessageEnd()
3481
    oprot.trans.flush()
3482
 
3483
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3484
    args = getTrackLogsByUser_args()
3485
    args.read(iprot)
3486
    iprot.readMessageEnd()
3487
    result = getTrackLogsByUser_result()
3488
    try:
3489
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3490
    except UserAffiliateException, utx:
1845 vikas 3491
      result.utx = utx
3492
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3493
    result.write(oprot)
3494
    oprot.writeMessageEnd()
3495
    oprot.trans.flush()
3496
 
3497
  def process_getTrackLogs(self, seqid, iprot, oprot):
3498
    args = getTrackLogs_args()
3499
    args.read(iprot)
3500
    iprot.readMessageEnd()
3501
    result = getTrackLogs_result()
3502
    try:
1996 vikas 3503
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3504
    except UserAffiliateException, utx:
1845 vikas 3505
      result.utx = utx
3506
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3507
    result.write(oprot)
3508
    oprot.writeMessageEnd()
3509
    oprot.trans.flush()
3510
 
559 chandransh 3511
  def process_createCart(self, seqid, iprot, oprot):
3512
    args = createCart_args()
94 ashish 3513
    args.read(iprot)
3514
    iprot.readMessageEnd()
559 chandransh 3515
    result = createCart_result()
94 ashish 3516
    try:
559 chandransh 3517
      result.success = self._handler.createCart(args.userId)
3518
    except ShoppingCartException, scx:
3519
      result.scx = scx
3520
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3521
    result.write(oprot)
3522
    oprot.writeMessageEnd()
3523
    oprot.trans.flush()
3524
 
559 chandransh 3525
  def process_getCurrentCart(self, seqid, iprot, oprot):
3526
    args = getCurrentCart_args()
94 ashish 3527
    args.read(iprot)
3528
    iprot.readMessageEnd()
559 chandransh 3529
    result = getCurrentCart_result()
94 ashish 3530
    try:
559 chandransh 3531
      result.success = self._handler.getCurrentCart(args.userId)
3532
    except ShoppingCartException, scx:
3533
      result.scx = scx
3534
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3535
    result.write(oprot)
3536
    oprot.writeMessageEnd()
3537
    oprot.trans.flush()
3538
 
559 chandransh 3539
  def process_getCart(self, seqid, iprot, oprot):
3540
    args = getCart_args()
94 ashish 3541
    args.read(iprot)
3542
    iprot.readMessageEnd()
559 chandransh 3543
    result = getCart_result()
94 ashish 3544
    try:
559 chandransh 3545
      result.success = self._handler.getCart(args.cartId)
3546
    except ShoppingCartException, scx:
3547
      result.scx = scx
3548
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3549
    result.write(oprot)
3550
    oprot.writeMessageEnd()
3551
    oprot.trans.flush()
3552
 
559 chandransh 3553
  def process_getCartsForUser(self, seqid, iprot, oprot):
3554
    args = getCartsForUser_args()
94 ashish 3555
    args.read(iprot)
3556
    iprot.readMessageEnd()
559 chandransh 3557
    result = getCartsForUser_result()
94 ashish 3558
    try:
559 chandransh 3559
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3560
    except ShoppingCartException, scx:
3561
      result.scx = scx
3562
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3563
    result.write(oprot)
3564
    oprot.writeMessageEnd()
3565
    oprot.trans.flush()
3566
 
559 chandransh 3567
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3568
    args = getCartsByStatus_args()
94 ashish 3569
    args.read(iprot)
3570
    iprot.readMessageEnd()
559 chandransh 3571
    result = getCartsByStatus_result()
94 ashish 3572
    try:
559 chandransh 3573
      result.success = self._handler.getCartsByStatus(args.status)
3574
    except ShoppingCartException, scx:
3575
      result.scx = scx
3576
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3577
    result.write(oprot)
3578
    oprot.writeMessageEnd()
3579
    oprot.trans.flush()
3580
 
559 chandransh 3581
  def process_getCartsByTime(self, seqid, iprot, oprot):
3582
    args = getCartsByTime_args()
94 ashish 3583
    args.read(iprot)
3584
    iprot.readMessageEnd()
559 chandransh 3585
    result = getCartsByTime_result()
94 ashish 3586
    try:
559 chandransh 3587
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3588
    except ShoppingCartException, scx:
3589
      result.scx = scx
3590
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3591
    result.write(oprot)
3592
    oprot.writeMessageEnd()
3593
    oprot.trans.flush()
3594
 
559 chandransh 3595
  def process_changeCartStatus(self, seqid, iprot, oprot):
3596
    args = changeCartStatus_args()
130 ashish 3597
    args.read(iprot)
3598
    iprot.readMessageEnd()
559 chandransh 3599
    result = changeCartStatus_result()
130 ashish 3600
    try:
559 chandransh 3601
      self._handler.changeCartStatus(args.cartId, args.status)
3602
    except ShoppingCartException, scx:
3603
      result.scx = scx
3604
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3605
    result.write(oprot)
3606
    oprot.writeMessageEnd()
3607
    oprot.trans.flush()
94 ashish 3608
 
559 chandransh 3609
  def process_addItemToCart(self, seqid, iprot, oprot):
3610
    args = addItemToCart_args()
130 ashish 3611
    args.read(iprot)
3612
    iprot.readMessageEnd()
559 chandransh 3613
    result = addItemToCart_result()
130 ashish 3614
    try:
2035 rajveer 3615
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)
559 chandransh 3616
    except ShoppingCartException, scx:
3617
      result.scx = scx
3618
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3619
    result.write(oprot)
3620
    oprot.writeMessageEnd()
3621
    oprot.trans.flush()
3622
 
559 chandransh 3623
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3624
    args = deleteItemFromCart_args()
3625
    args.read(iprot)
3626
    iprot.readMessageEnd()
3627
    result = deleteItemFromCart_result()
3628
    try:
3629
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3630
    except ShoppingCartException, scx:
3631
      result.scx = scx
3632
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3633
    result.write(oprot)
3634
    oprot.writeMessageEnd()
3635
    oprot.trans.flush()
130 ashish 3636
 
559 chandransh 3637
  def process_changeQuantity(self, seqid, iprot, oprot):
3638
    args = changeQuantity_args()
3639
    args.read(iprot)
3640
    iprot.readMessageEnd()
3641
    result = changeQuantity_result()
3642
    try:
3643
      self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
3644
    except ShoppingCartException, scx:
3645
      result.scx = scx
3646
    oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
3647
    result.write(oprot)
3648
    oprot.writeMessageEnd()
3649
    oprot.trans.flush()
3650
 
3651
  def process_changeItemStatus(self, seqid, iprot, oprot):
3652
    args = changeItemStatus_args()
3653
    args.read(iprot)
3654
    iprot.readMessageEnd()
3655
    result = changeItemStatus_result()
3656
    try:
3657
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3658
    except ShoppingCartException, scx:
3659
      result.scx = scx
3660
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3661
    result.write(oprot)
3662
    oprot.writeMessageEnd()
3663
    oprot.trans.flush()
3664
 
3665
  def process_addAddressToCart(self, seqid, iprot, oprot):
3666
    args = addAddressToCart_args()
3667
    args.read(iprot)
3668
    iprot.readMessageEnd()
3669
    result = addAddressToCart_result()
575 chandransh 3670
    try:
3671
      self._handler.addAddressToCart(args.cartId, args.addressId)
3672
    except ShoppingCartException, scx:
3673
      result.scx = scx
559 chandransh 3674
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3675
    result.write(oprot)
3676
    oprot.writeMessageEnd()
3677
    oprot.trans.flush()
3678
 
1976 varun.gupt 3679
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3680
    args = applyCouponToCart_args()
3681
    args.read(iprot)
3682
    iprot.readMessageEnd()
3683
    result = applyCouponToCart_result()
3684
    try:
3685
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3686
    except ShoppingCartException, scx:
3687
      result.scx = scx
3688
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3689
    result.write(oprot)
3690
    oprot.writeMessageEnd()
3691
    oprot.trans.flush()
3692
 
3693
  def process_removeCoupon(self, seqid, iprot, oprot):
3694
    args = removeCoupon_args()
3695
    args.read(iprot)
3696
    iprot.readMessageEnd()
3697
    result = removeCoupon_result()
3698
    try:
3699
      self._handler.removeCoupon(args.cartId)
3700
    except ShoppingCartException, scx:
3701
      result.scx = scx
3702
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3703
    result.write(oprot)
3704
    oprot.writeMessageEnd()
3705
    oprot.trans.flush()
3706
 
690 chandransh 3707
  def process_createOrders(self, seqid, iprot, oprot):
3708
    args = createOrders_args()
559 chandransh 3709
    args.read(iprot)
3710
    iprot.readMessageEnd()
690 chandransh 3711
    result = createOrders_result()
559 chandransh 3712
    try:
2815 vikas 3713
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime)
559 chandransh 3714
    except ShoppingCartException, scx:
3715
      result.scx = scx
690 chandransh 3716
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3717
    result.write(oprot)
3718
    oprot.writeMessageEnd()
3719
    oprot.trans.flush()
3720
 
3721
  def process_validateCart(self, seqid, iprot, oprot):
3722
    args = validateCart_args()
3723
    args.read(iprot)
3724
    iprot.readMessageEnd()
3725
    result = validateCart_result()
575 chandransh 3726
    try:
3727
      result.success = self._handler.validateCart(args.cartId)
3728
    except ShoppingCartException, scex:
3729
      result.scex = scex
559 chandransh 3730
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3731
    result.write(oprot)
3732
    oprot.writeMessageEnd()
3733
    oprot.trans.flush()
3734
 
690 chandransh 3735
  def process_mergeCart(self, seqid, iprot, oprot):
3736
    args = mergeCart_args()
575 chandransh 3737
    args.read(iprot)
3738
    iprot.readMessageEnd()
690 chandransh 3739
    result = mergeCart_result()
3740
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3741
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3742
    result.write(oprot)
3743
    oprot.writeMessageEnd()
3744
    oprot.trans.flush()
3745
 
3746
  def process_checkOut(self, seqid, iprot, oprot):
3747
    args = checkOut_args()
3748
    args.read(iprot)
3749
    iprot.readMessageEnd()
3750
    result = checkOut_result()
575 chandransh 3751
    try:
690 chandransh 3752
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3753
    except ShoppingCartException, scex:
3754
      result.scex = scex
690 chandransh 3755
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3756
    result.write(oprot)
3757
    oprot.writeMessageEnd()
3758
    oprot.trans.flush()
3759
 
690 chandransh 3760
  def process_resetCart(self, seqid, iprot, oprot):
3761
    args = resetCart_args()
559 chandransh 3762
    args.read(iprot)
3763
    iprot.readMessageEnd()
690 chandransh 3764
    result = resetCart_result()
3765
    try:
3766
      result.success = self._handler.resetCart(args.cartId, args.items)
3767
    except ShoppingCartException, scex:
3768
      result.scex = scex
3769
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3770
    result.write(oprot)
3771
    oprot.writeMessageEnd()
3772
    oprot.trans.flush()
3773
 
2981 rajveer 3774
  def process_getUserCount(self, seqid, iprot, oprot):
3775
    args = getUserCount_args()
559 chandransh 3776
    args.read(iprot)
3777
    iprot.readMessageEnd()
2981 rajveer 3778
    result = getUserCount_result()
3779
    result.success = self._handler.getUserCount(args.userType)
3780
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3781
    result.write(oprot)
3782
    oprot.writeMessageEnd()
3783
    oprot.trans.flush()
3784
 
2981 rajveer 3785
  def process_getAllUsers(self, seqid, iprot, oprot):
3786
    args = getAllUsers_args()
559 chandransh 3787
    args.read(iprot)
3788
    iprot.readMessageEnd()
2981 rajveer 3789
    result = getAllUsers_result()
3790
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3791
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3792
    result.write(oprot)
3793
    oprot.writeMessageEnd()
3794
    oprot.trans.flush()
3795
 
2981 rajveer 3796
  def process_putUserNote(self, seqid, iprot, oprot):
3797
    args = putUserNote_args()
559 chandransh 3798
    args.read(iprot)
3799
    iprot.readMessageEnd()
2981 rajveer 3800
    result = putUserNote_result()
3801
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3802
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3803
    result.write(oprot)
3804
    oprot.writeMessageEnd()
3805
    oprot.trans.flush()
3806
 
2981 rajveer 3807
  def process_getUserNotes(self, seqid, iprot, oprot):
3808
    args = getUserNotes_args()
559 chandransh 3809
    args.read(iprot)
3810
    iprot.readMessageEnd()
2981 rajveer 3811
    result = getUserNotes_result()
3812
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3813
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3814
    result.write(oprot)
3815
    oprot.writeMessageEnd()
3816
    oprot.trans.flush()
3817
 
2981 rajveer 3818
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3819
    args = getMyResearchItems_args()
559 chandransh 3820
    args.read(iprot)
3821
    iprot.readMessageEnd()
2981 rajveer 3822
    result = getMyResearchItems_result()
559 chandransh 3823
    try:
2981 rajveer 3824
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3825
    except WidgetException, scx:
3826
      result.scx = scx
2981 rajveer 3827
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3828
    result.write(oprot)
3829
    oprot.writeMessageEnd()
3830
    oprot.trans.flush()
3831
 
2981 rajveer 3832
  def process_updateMyResearch(self, seqid, iprot, oprot):
3833
    args = updateMyResearch_args()
772 rajveer 3834
    args.read(iprot)
3835
    iprot.readMessageEnd()
2981 rajveer 3836
    result = updateMyResearch_result()
3837
    try:
3838
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3839
    except WidgetException, scx:
3840
      result.scx = scx
3841
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3842
    result.write(oprot)
3843
    oprot.writeMessageEnd()
3844
    oprot.trans.flush()
559 chandransh 3845
 
2981 rajveer 3846
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3847
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3848
    args.read(iprot)
3849
    iprot.readMessageEnd()
2981 rajveer 3850
    result = deleteItemFromMyResearch_result()
3851
    try:
3852
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3853
    except WidgetException, scx:
3854
      result.scx = scx
3855
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3856
    result.write(oprot)
3857
    oprot.writeMessageEnd()
3858
    oprot.trans.flush()
772 rajveer 3859
 
2981 rajveer 3860
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3861
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3862
    args.read(iprot)
3863
    iprot.readMessageEnd()
2981 rajveer 3864
    result = getBrowseHistoryItems_result()
3865
    try:
3866
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3867
    except WidgetException, scx:
3868
      result.scx = scx
3869
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3870
    result.write(oprot)
3871
    oprot.writeMessageEnd()
3872
    oprot.trans.flush()
1596 ankur.sing 3873
 
2981 rajveer 3874
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3875
    args = updateBrowseHistory_args()
2642 varun.gupt 3876
    args.read(iprot)
3877
    iprot.readMessageEnd()
2981 rajveer 3878
    result = updateBrowseHistory_result()
3879
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3880
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3881
    result.write(oprot)
3882
    oprot.writeMessageEnd()
3883
    oprot.trans.flush()
1673 ankur.sing 3884
 
3385 varun.gupt 3885
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3886
    args = getCartsWithCouponCount_args()
3887
    args.read(iprot)
3888
    iprot.readMessageEnd()
3889
    result = getCartsWithCouponCount_result()
3890
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3891
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3892
    result.write(oprot)
3893
    oprot.writeMessageEnd()
3894
    oprot.trans.flush()
2642 varun.gupt 3895
 
3385 varun.gupt 3896
 
94 ashish 3897
# HELPER FUNCTIONS AND STRUCTURES
3898
 
559 chandransh 3899
class createAnonymousUser_args:
94 ashish 3900
  """
3901
  Attributes:
559 chandransh 3902
   - jsessionId
94 ashish 3903
  """
3904
 
3905
  thrift_spec = (
3906
    None, # 0
559 chandransh 3907
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3908
  )
3909
 
559 chandransh 3910
  def __init__(self, jsessionId=None,):
3911
    self.jsessionId = jsessionId
94 ashish 3912
 
3913
  def read(self, iprot):
3914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3916
      return
3917
    iprot.readStructBegin()
3918
    while True:
3919
      (fname, ftype, fid) = iprot.readFieldBegin()
3920
      if ftype == TType.STOP:
3921
        break
3922
      if fid == 1:
559 chandransh 3923
        if ftype == TType.STRING:
3924
          self.jsessionId = iprot.readString();
94 ashish 3925
        else:
3926
          iprot.skip(ftype)
3927
      else:
3928
        iprot.skip(ftype)
3929
      iprot.readFieldEnd()
3930
    iprot.readStructEnd()
3931
 
3932
  def write(self, oprot):
3933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3935
      return
559 chandransh 3936
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3937
    if self.jsessionId is not None:
559 chandransh 3938
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3939
      oprot.writeString(self.jsessionId)
94 ashish 3940
      oprot.writeFieldEnd()
3941
    oprot.writeFieldStop()
3942
    oprot.writeStructEnd()
3943
 
3431 rajveer 3944
  def validate(self):
3945
    return
3946
 
3947
 
94 ashish 3948
  def __repr__(self):
3949
    L = ['%s=%r' % (key, value)
3950
      for key, value in self.__dict__.iteritems()]
3951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3952
 
3953
  def __eq__(self, other):
3954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3955
 
3956
  def __ne__(self, other):
3957
    return not (self == other)
3958
 
559 chandransh 3959
class createAnonymousUser_result:
94 ashish 3960
  """
3961
  Attributes:
3962
   - success
559 chandransh 3963
   - ucex
94 ashish 3964
  """
3965
 
3966
  thrift_spec = (
559 chandransh 3967
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3968
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3969
  )
3970
 
559 chandransh 3971
  def __init__(self, success=None, ucex=None,):
94 ashish 3972
    self.success = success
559 chandransh 3973
    self.ucex = ucex
94 ashish 3974
 
3975
  def read(self, iprot):
3976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3978
      return
3979
    iprot.readStructBegin()
3980
    while True:
3981
      (fname, ftype, fid) = iprot.readFieldBegin()
3982
      if ftype == TType.STOP:
3983
        break
3984
      if fid == 0:
3985
        if ftype == TType.STRUCT:
559 chandransh 3986
          self.success = User()
94 ashish 3987
          self.success.read(iprot)
3988
        else:
3989
          iprot.skip(ftype)
3990
      elif fid == 1:
3991
        if ftype == TType.STRUCT:
559 chandransh 3992
          self.ucex = UserContextException()
3993
          self.ucex.read(iprot)
94 ashish 3994
        else:
3995
          iprot.skip(ftype)
3996
      else:
3997
        iprot.skip(ftype)
3998
      iprot.readFieldEnd()
3999
    iprot.readStructEnd()
4000
 
4001
  def write(self, oprot):
4002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4004
      return
559 chandransh 4005
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4006
    if self.success is not None:
94 ashish 4007
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4008
      self.success.write(oprot)
4009
      oprot.writeFieldEnd()
3431 rajveer 4010
    if self.ucex is not None:
559 chandransh 4011
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4012
      self.ucex.write(oprot)
94 ashish 4013
      oprot.writeFieldEnd()
4014
    oprot.writeFieldStop()
4015
    oprot.writeStructEnd()
4016
 
3431 rajveer 4017
  def validate(self):
4018
    return
4019
 
4020
 
94 ashish 4021
  def __repr__(self):
4022
    L = ['%s=%r' % (key, value)
4023
      for key, value in self.__dict__.iteritems()]
4024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4025
 
4026
  def __eq__(self, other):
4027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4028
 
4029
  def __ne__(self, other):
4030
    return not (self == other)
4031
 
559 chandransh 4032
class getUserById_args:
94 ashish 4033
  """
4034
  Attributes:
4035
   - userId
4036
  """
4037
 
4038
  thrift_spec = (
4039
    None, # 0
4040
    (1, TType.I64, 'userId', None, None, ), # 1
4041
  )
4042
 
559 chandransh 4043
  def __init__(self, userId=None,):
94 ashish 4044
    self.userId = userId
4045
 
4046
  def read(self, iprot):
4047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4049
      return
4050
    iprot.readStructBegin()
4051
    while True:
4052
      (fname, ftype, fid) = iprot.readFieldBegin()
4053
      if ftype == TType.STOP:
4054
        break
4055
      if fid == 1:
4056
        if ftype == TType.I64:
4057
          self.userId = iprot.readI64();
4058
        else:
4059
          iprot.skip(ftype)
4060
      else:
4061
        iprot.skip(ftype)
4062
      iprot.readFieldEnd()
4063
    iprot.readStructEnd()
4064
 
4065
  def write(self, oprot):
4066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4068
      return
559 chandransh 4069
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4070
    if self.userId is not None:
94 ashish 4071
      oprot.writeFieldBegin('userId', TType.I64, 1)
4072
      oprot.writeI64(self.userId)
4073
      oprot.writeFieldEnd()
4074
    oprot.writeFieldStop()
4075
    oprot.writeStructEnd()
4076
 
3431 rajveer 4077
  def validate(self):
4078
    return
4079
 
4080
 
94 ashish 4081
  def __repr__(self):
4082
    L = ['%s=%r' % (key, value)
4083
      for key, value in self.__dict__.iteritems()]
4084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4085
 
4086
  def __eq__(self, other):
4087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4088
 
4089
  def __ne__(self, other):
4090
    return not (self == other)
4091
 
559 chandransh 4092
class getUserById_result:
94 ashish 4093
  """
4094
  Attributes:
4095
   - success
559 chandransh 4096
   - ucex
94 ashish 4097
  """
4098
 
4099
  thrift_spec = (
559 chandransh 4100
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4101
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4102
  )
4103
 
559 chandransh 4104
  def __init__(self, success=None, ucex=None,):
94 ashish 4105
    self.success = success
559 chandransh 4106
    self.ucex = ucex
94 ashish 4107
 
4108
  def read(self, iprot):
4109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4111
      return
4112
    iprot.readStructBegin()
4113
    while True:
4114
      (fname, ftype, fid) = iprot.readFieldBegin()
4115
      if ftype == TType.STOP:
4116
        break
4117
      if fid == 0:
4118
        if ftype == TType.STRUCT:
559 chandransh 4119
          self.success = User()
94 ashish 4120
          self.success.read(iprot)
4121
        else:
4122
          iprot.skip(ftype)
4123
      elif fid == 1:
4124
        if ftype == TType.STRUCT:
559 chandransh 4125
          self.ucex = UserContextException()
4126
          self.ucex.read(iprot)
94 ashish 4127
        else:
4128
          iprot.skip(ftype)
4129
      else:
4130
        iprot.skip(ftype)
4131
      iprot.readFieldEnd()
4132
    iprot.readStructEnd()
4133
 
4134
  def write(self, oprot):
4135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4137
      return
559 chandransh 4138
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4139
    if self.success is not None:
94 ashish 4140
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4141
      self.success.write(oprot)
4142
      oprot.writeFieldEnd()
3431 rajveer 4143
    if self.ucex is not None:
559 chandransh 4144
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4145
      self.ucex.write(oprot)
94 ashish 4146
      oprot.writeFieldEnd()
4147
    oprot.writeFieldStop()
4148
    oprot.writeStructEnd()
4149
 
3431 rajveer 4150
  def validate(self):
4151
    return
4152
 
4153
 
94 ashish 4154
  def __repr__(self):
4155
    L = ['%s=%r' % (key, value)
4156
      for key, value in self.__dict__.iteritems()]
4157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4158
 
4159
  def __eq__(self, other):
4160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4161
 
4162
  def __ne__(self, other):
4163
    return not (self == other)
4164
 
1491 vikas 4165
class getUserByEmail_args:
4166
  """
4167
  Attributes:
4168
   - email
4169
  """
4170
 
4171
  thrift_spec = (
4172
    None, # 0
4173
    (1, TType.STRING, 'email', None, None, ), # 1
4174
  )
4175
 
4176
  def __init__(self, email=None,):
4177
    self.email = email
4178
 
4179
  def read(self, iprot):
4180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4182
      return
4183
    iprot.readStructBegin()
4184
    while True:
4185
      (fname, ftype, fid) = iprot.readFieldBegin()
4186
      if ftype == TType.STOP:
4187
        break
4188
      if fid == 1:
4189
        if ftype == TType.STRING:
4190
          self.email = iprot.readString();
4191
        else:
4192
          iprot.skip(ftype)
4193
      else:
4194
        iprot.skip(ftype)
4195
      iprot.readFieldEnd()
4196
    iprot.readStructEnd()
4197
 
4198
  def write(self, oprot):
4199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4201
      return
4202
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4203
    if self.email is not None:
1491 vikas 4204
      oprot.writeFieldBegin('email', TType.STRING, 1)
4205
      oprot.writeString(self.email)
4206
      oprot.writeFieldEnd()
4207
    oprot.writeFieldStop()
4208
    oprot.writeStructEnd()
4209
 
3431 rajveer 4210
  def validate(self):
4211
    return
4212
 
4213
 
1491 vikas 4214
  def __repr__(self):
4215
    L = ['%s=%r' % (key, value)
4216
      for key, value in self.__dict__.iteritems()]
4217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4218
 
4219
  def __eq__(self, other):
4220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4221
 
4222
  def __ne__(self, other):
4223
    return not (self == other)
4224
 
4225
class getUserByEmail_result:
4226
  """
4227
  Attributes:
4228
   - success
4229
   - ucex
4230
  """
4231
 
4232
  thrift_spec = (
4233
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4234
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4235
  )
4236
 
4237
  def __init__(self, success=None, ucex=None,):
4238
    self.success = success
4239
    self.ucex = ucex
4240
 
4241
  def read(self, iprot):
4242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4244
      return
4245
    iprot.readStructBegin()
4246
    while True:
4247
      (fname, ftype, fid) = iprot.readFieldBegin()
4248
      if ftype == TType.STOP:
4249
        break
4250
      if fid == 0:
4251
        if ftype == TType.STRUCT:
4252
          self.success = User()
4253
          self.success.read(iprot)
4254
        else:
4255
          iprot.skip(ftype)
4256
      elif fid == 1:
4257
        if ftype == TType.STRUCT:
4258
          self.ucex = UserContextException()
4259
          self.ucex.read(iprot)
4260
        else:
4261
          iprot.skip(ftype)
4262
      else:
4263
        iprot.skip(ftype)
4264
      iprot.readFieldEnd()
4265
    iprot.readStructEnd()
4266
 
4267
  def write(self, oprot):
4268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4270
      return
4271
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4272
    if self.success is not None:
1491 vikas 4273
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4274
      self.success.write(oprot)
4275
      oprot.writeFieldEnd()
3431 rajveer 4276
    if self.ucex is not None:
1491 vikas 4277
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4278
      self.ucex.write(oprot)
4279
      oprot.writeFieldEnd()
4280
    oprot.writeFieldStop()
4281
    oprot.writeStructEnd()
4282
 
3431 rajveer 4283
  def validate(self):
4284
    return
4285
 
4286
 
1491 vikas 4287
  def __repr__(self):
4288
    L = ['%s=%r' % (key, value)
4289
      for key, value in self.__dict__.iteritems()]
4290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4291
 
4292
  def __eq__(self, other):
4293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4294
 
4295
  def __ne__(self, other):
4296
    return not (self == other)
4297
 
3032 mandeep.dh 4298
class getUserByMobileNumber_args:
4299
  """
4300
  Attributes:
4301
   - mobileNumber
4302
  """
4303
 
4304
  thrift_spec = (
4305
    None, # 0
4306
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4307
  )
4308
 
4309
  def __init__(self, mobileNumber=None,):
4310
    self.mobileNumber = mobileNumber
4311
 
4312
  def read(self, iprot):
4313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4315
      return
4316
    iprot.readStructBegin()
4317
    while True:
4318
      (fname, ftype, fid) = iprot.readFieldBegin()
4319
      if ftype == TType.STOP:
4320
        break
4321
      if fid == 1:
4322
        if ftype == TType.I64:
4323
          self.mobileNumber = iprot.readI64();
4324
        else:
4325
          iprot.skip(ftype)
4326
      else:
4327
        iprot.skip(ftype)
4328
      iprot.readFieldEnd()
4329
    iprot.readStructEnd()
4330
 
4331
  def write(self, oprot):
4332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4334
      return
4335
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4336
    if self.mobileNumber is not None:
3032 mandeep.dh 4337
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4338
      oprot.writeI64(self.mobileNumber)
4339
      oprot.writeFieldEnd()
4340
    oprot.writeFieldStop()
4341
    oprot.writeStructEnd()
4342
 
3431 rajveer 4343
  def validate(self):
4344
    return
4345
 
4346
 
3032 mandeep.dh 4347
  def __repr__(self):
4348
    L = ['%s=%r' % (key, value)
4349
      for key, value in self.__dict__.iteritems()]
4350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4351
 
4352
  def __eq__(self, other):
4353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4354
 
4355
  def __ne__(self, other):
4356
    return not (self == other)
4357
 
4358
class getUserByMobileNumber_result:
4359
  """
4360
  Attributes:
4361
   - success
4362
   - ucex
4363
  """
4364
 
4365
  thrift_spec = (
4366
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4367
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4368
  )
4369
 
4370
  def __init__(self, success=None, ucex=None,):
4371
    self.success = success
4372
    self.ucex = ucex
4373
 
4374
  def read(self, iprot):
4375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4377
      return
4378
    iprot.readStructBegin()
4379
    while True:
4380
      (fname, ftype, fid) = iprot.readFieldBegin()
4381
      if ftype == TType.STOP:
4382
        break
4383
      if fid == 0:
4384
        if ftype == TType.STRUCT:
4385
          self.success = User()
4386
          self.success.read(iprot)
4387
        else:
4388
          iprot.skip(ftype)
4389
      elif fid == 1:
4390
        if ftype == TType.STRUCT:
4391
          self.ucex = UserContextException()
4392
          self.ucex.read(iprot)
4393
        else:
4394
          iprot.skip(ftype)
4395
      else:
4396
        iprot.skip(ftype)
4397
      iprot.readFieldEnd()
4398
    iprot.readStructEnd()
4399
 
4400
  def write(self, oprot):
4401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4403
      return
4404
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4405
    if self.success is not None:
3032 mandeep.dh 4406
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4407
      self.success.write(oprot)
4408
      oprot.writeFieldEnd()
3431 rajveer 4409
    if self.ucex is not None:
3032 mandeep.dh 4410
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4411
      self.ucex.write(oprot)
4412
      oprot.writeFieldEnd()
4413
    oprot.writeFieldStop()
4414
    oprot.writeStructEnd()
4415
 
3431 rajveer 4416
  def validate(self):
4417
    return
4418
 
4419
 
3032 mandeep.dh 4420
  def __repr__(self):
4421
    L = ['%s=%r' % (key, value)
4422
      for key, value in self.__dict__.iteritems()]
4423
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4424
 
4425
  def __eq__(self, other):
4426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4427
 
4428
  def __ne__(self, other):
4429
    return not (self == other)
4430
 
559 chandransh 4431
class createUser_args:
94 ashish 4432
  """
4433
  Attributes:
559 chandransh 4434
   - user
94 ashish 4435
  """
4436
 
4437
  thrift_spec = (
4438
    None, # 0
559 chandransh 4439
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4440
  )
4441
 
559 chandransh 4442
  def __init__(self, user=None,):
4443
    self.user = user
94 ashish 4444
 
4445
  def read(self, iprot):
4446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4448
      return
4449
    iprot.readStructBegin()
4450
    while True:
4451
      (fname, ftype, fid) = iprot.readFieldBegin()
4452
      if ftype == TType.STOP:
4453
        break
4454
      if fid == 1:
559 chandransh 4455
        if ftype == TType.STRUCT:
4456
          self.user = User()
4457
          self.user.read(iprot)
94 ashish 4458
        else:
4459
          iprot.skip(ftype)
4460
      else:
4461
        iprot.skip(ftype)
4462
      iprot.readFieldEnd()
4463
    iprot.readStructEnd()
4464
 
4465
  def write(self, oprot):
4466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4468
      return
559 chandransh 4469
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4470
    if self.user is not None:
559 chandransh 4471
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4472
      self.user.write(oprot)
94 ashish 4473
      oprot.writeFieldEnd()
4474
    oprot.writeFieldStop()
4475
    oprot.writeStructEnd()
4476
 
3431 rajveer 4477
  def validate(self):
4478
    return
4479
 
4480
 
94 ashish 4481
  def __repr__(self):
4482
    L = ['%s=%r' % (key, value)
4483
      for key, value in self.__dict__.iteritems()]
4484
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4485
 
4486
  def __eq__(self, other):
4487
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4488
 
4489
  def __ne__(self, other):
4490
    return not (self == other)
4491
 
559 chandransh 4492
class createUser_result:
94 ashish 4493
  """
4494
  Attributes:
4495
   - success
559 chandransh 4496
   - ucex
94 ashish 4497
  """
4498
 
4499
  thrift_spec = (
559 chandransh 4500
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4501
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4502
  )
4503
 
559 chandransh 4504
  def __init__(self, success=None, ucex=None,):
94 ashish 4505
    self.success = success
559 chandransh 4506
    self.ucex = ucex
94 ashish 4507
 
4508
  def read(self, iprot):
4509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4511
      return
4512
    iprot.readStructBegin()
4513
    while True:
4514
      (fname, ftype, fid) = iprot.readFieldBegin()
4515
      if ftype == TType.STOP:
4516
        break
4517
      if fid == 0:
4518
        if ftype == TType.STRUCT:
559 chandransh 4519
          self.success = User()
94 ashish 4520
          self.success.read(iprot)
4521
        else:
4522
          iprot.skip(ftype)
4523
      elif fid == 1:
4524
        if ftype == TType.STRUCT:
559 chandransh 4525
          self.ucex = UserContextException()
4526
          self.ucex.read(iprot)
94 ashish 4527
        else:
4528
          iprot.skip(ftype)
4529
      else:
4530
        iprot.skip(ftype)
4531
      iprot.readFieldEnd()
4532
    iprot.readStructEnd()
4533
 
4534
  def write(self, oprot):
4535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4537
      return
559 chandransh 4538
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4539
    if self.success is not None:
94 ashish 4540
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4541
      self.success.write(oprot)
4542
      oprot.writeFieldEnd()
3431 rajveer 4543
    if self.ucex is not None:
559 chandransh 4544
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4545
      self.ucex.write(oprot)
94 ashish 4546
      oprot.writeFieldEnd()
4547
    oprot.writeFieldStop()
4548
    oprot.writeStructEnd()
4549
 
3431 rajveer 4550
  def validate(self):
4551
    return
4552
 
4553
 
94 ashish 4554
  def __repr__(self):
4555
    L = ['%s=%r' % (key, value)
4556
      for key, value in self.__dict__.iteritems()]
4557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4558
 
4559
  def __eq__(self, other):
4560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4561
 
4562
  def __ne__(self, other):
4563
    return not (self == other)
4564
 
559 chandransh 4565
class updateUser_args:
94 ashish 4566
  """
4567
  Attributes:
559 chandransh 4568
   - user
94 ashish 4569
  """
4570
 
4571
  thrift_spec = (
4572
    None, # 0
559 chandransh 4573
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4574
  )
4575
 
559 chandransh 4576
  def __init__(self, user=None,):
4577
    self.user = user
94 ashish 4578
 
4579
  def read(self, iprot):
4580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4582
      return
4583
    iprot.readStructBegin()
4584
    while True:
4585
      (fname, ftype, fid) = iprot.readFieldBegin()
4586
      if ftype == TType.STOP:
4587
        break
4588
      if fid == 1:
559 chandransh 4589
        if ftype == TType.STRUCT:
4590
          self.user = User()
4591
          self.user.read(iprot)
94 ashish 4592
        else:
4593
          iprot.skip(ftype)
4594
      else:
4595
        iprot.skip(ftype)
4596
      iprot.readFieldEnd()
4597
    iprot.readStructEnd()
4598
 
4599
  def write(self, oprot):
4600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4602
      return
559 chandransh 4603
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4604
    if self.user is not None:
559 chandransh 4605
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4606
      self.user.write(oprot)
94 ashish 4607
      oprot.writeFieldEnd()
4608
    oprot.writeFieldStop()
4609
    oprot.writeStructEnd()
4610
 
3431 rajveer 4611
  def validate(self):
4612
    return
4613
 
4614
 
94 ashish 4615
  def __repr__(self):
4616
    L = ['%s=%r' % (key, value)
4617
      for key, value in self.__dict__.iteritems()]
4618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4619
 
4620
  def __eq__(self, other):
4621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4622
 
4623
  def __ne__(self, other):
4624
    return not (self == other)
4625
 
559 chandransh 4626
class updateUser_result:
94 ashish 4627
  """
4628
  Attributes:
4629
   - success
559 chandransh 4630
   - ucex
94 ashish 4631
  """
4632
 
4633
  thrift_spec = (
559 chandransh 4634
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4635
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4636
  )
4637
 
559 chandransh 4638
  def __init__(self, success=None, ucex=None,):
94 ashish 4639
    self.success = success
559 chandransh 4640
    self.ucex = ucex
94 ashish 4641
 
4642
  def read(self, iprot):
4643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4645
      return
4646
    iprot.readStructBegin()
4647
    while True:
4648
      (fname, ftype, fid) = iprot.readFieldBegin()
4649
      if ftype == TType.STOP:
4650
        break
4651
      if fid == 0:
4652
        if ftype == TType.STRUCT:
559 chandransh 4653
          self.success = User()
94 ashish 4654
          self.success.read(iprot)
4655
        else:
4656
          iprot.skip(ftype)
4657
      elif fid == 1:
4658
        if ftype == TType.STRUCT:
559 chandransh 4659
          self.ucex = UserContextException()
4660
          self.ucex.read(iprot)
94 ashish 4661
        else:
4662
          iprot.skip(ftype)
4663
      else:
4664
        iprot.skip(ftype)
4665
      iprot.readFieldEnd()
4666
    iprot.readStructEnd()
4667
 
4668
  def write(self, oprot):
4669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4671
      return
559 chandransh 4672
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4673
    if self.success is not None:
94 ashish 4674
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4675
      self.success.write(oprot)
4676
      oprot.writeFieldEnd()
3431 rajveer 4677
    if self.ucex is not None:
559 chandransh 4678
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4679
      self.ucex.write(oprot)
94 ashish 4680
      oprot.writeFieldEnd()
4681
    oprot.writeFieldStop()
4682
    oprot.writeStructEnd()
4683
 
3431 rajveer 4684
  def validate(self):
4685
    return
4686
 
4687
 
94 ashish 4688
  def __repr__(self):
4689
    L = ['%s=%r' % (key, value)
4690
      for key, value in self.__dict__.iteritems()]
4691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4692
 
4693
  def __eq__(self, other):
4694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4695
 
4696
  def __ne__(self, other):
4697
    return not (self == other)
4698
 
559 chandransh 4699
class deleteUser_args:
94 ashish 4700
  """
4701
  Attributes:
4702
   - userId
4703
  """
4704
 
4705
  thrift_spec = (
4706
    None, # 0
4707
    (1, TType.I64, 'userId', None, None, ), # 1
4708
  )
4709
 
559 chandransh 4710
  def __init__(self, userId=None,):
94 ashish 4711
    self.userId = userId
4712
 
4713
  def read(self, iprot):
4714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4716
      return
4717
    iprot.readStructBegin()
4718
    while True:
4719
      (fname, ftype, fid) = iprot.readFieldBegin()
4720
      if ftype == TType.STOP:
4721
        break
4722
      if fid == 1:
4723
        if ftype == TType.I64:
4724
          self.userId = iprot.readI64();
4725
        else:
4726
          iprot.skip(ftype)
4727
      else:
4728
        iprot.skip(ftype)
4729
      iprot.readFieldEnd()
4730
    iprot.readStructEnd()
4731
 
4732
  def write(self, oprot):
4733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4735
      return
559 chandransh 4736
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4737
    if self.userId is not None:
94 ashish 4738
      oprot.writeFieldBegin('userId', TType.I64, 1)
4739
      oprot.writeI64(self.userId)
4740
      oprot.writeFieldEnd()
4741
    oprot.writeFieldStop()
4742
    oprot.writeStructEnd()
4743
 
3431 rajveer 4744
  def validate(self):
4745
    return
4746
 
4747
 
94 ashish 4748
  def __repr__(self):
4749
    L = ['%s=%r' % (key, value)
4750
      for key, value in self.__dict__.iteritems()]
4751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4752
 
4753
  def __eq__(self, other):
4754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4755
 
4756
  def __ne__(self, other):
4757
    return not (self == other)
4758
 
559 chandransh 4759
class deleteUser_result:
94 ashish 4760
  """
4761
  Attributes:
4762
   - success
559 chandransh 4763
   - ucex
94 ashish 4764
  """
4765
 
4766
  thrift_spec = (
559 chandransh 4767
    (0, TType.BOOL, 'success', None, None, ), # 0
4768
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4769
  )
4770
 
559 chandransh 4771
  def __init__(self, success=None, ucex=None,):
94 ashish 4772
    self.success = success
559 chandransh 4773
    self.ucex = ucex
94 ashish 4774
 
4775
  def read(self, iprot):
4776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4778
      return
4779
    iprot.readStructBegin()
4780
    while True:
4781
      (fname, ftype, fid) = iprot.readFieldBegin()
4782
      if ftype == TType.STOP:
4783
        break
4784
      if fid == 0:
559 chandransh 4785
        if ftype == TType.BOOL:
4786
          self.success = iprot.readBool();
94 ashish 4787
        else:
4788
          iprot.skip(ftype)
4789
      elif fid == 1:
4790
        if ftype == TType.STRUCT:
559 chandransh 4791
          self.ucex = UserContextException()
4792
          self.ucex.read(iprot)
94 ashish 4793
        else:
4794
          iprot.skip(ftype)
4795
      else:
4796
        iprot.skip(ftype)
4797
      iprot.readFieldEnd()
4798
    iprot.readStructEnd()
4799
 
4800
  def write(self, oprot):
4801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4803
      return
559 chandransh 4804
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4805
    if self.success is not None:
559 chandransh 4806
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4807
      oprot.writeBool(self.success)
94 ashish 4808
      oprot.writeFieldEnd()
3431 rajveer 4809
    if self.ucex is not None:
559 chandransh 4810
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4811
      self.ucex.write(oprot)
94 ashish 4812
      oprot.writeFieldEnd()
4813
    oprot.writeFieldStop()
4814
    oprot.writeStructEnd()
4815
 
3431 rajveer 4816
  def validate(self):
4817
    return
4818
 
4819
 
94 ashish 4820
  def __repr__(self):
4821
    L = ['%s=%r' % (key, value)
4822
      for key, value in self.__dict__.iteritems()]
4823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4824
 
4825
  def __eq__(self, other):
4826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4827
 
4828
  def __ne__(self, other):
4829
    return not (self == other)
4830
 
559 chandransh 4831
class getUserState_args:
94 ashish 4832
  """
4833
  Attributes:
4834
   - userId
4835
  """
4836
 
4837
  thrift_spec = (
4838
    None, # 0
4839
    (1, TType.I64, 'userId', None, None, ), # 1
4840
  )
4841
 
559 chandransh 4842
  def __init__(self, userId=None,):
94 ashish 4843
    self.userId = userId
4844
 
4845
  def read(self, iprot):
4846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4848
      return
4849
    iprot.readStructBegin()
4850
    while True:
4851
      (fname, ftype, fid) = iprot.readFieldBegin()
4852
      if ftype == TType.STOP:
4853
        break
4854
      if fid == 1:
4855
        if ftype == TType.I64:
4856
          self.userId = iprot.readI64();
4857
        else:
4858
          iprot.skip(ftype)
4859
      else:
4860
        iprot.skip(ftype)
4861
      iprot.readFieldEnd()
4862
    iprot.readStructEnd()
4863
 
4864
  def write(self, oprot):
4865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4867
      return
559 chandransh 4868
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 4869
    if self.userId is not None:
94 ashish 4870
      oprot.writeFieldBegin('userId', TType.I64, 1)
4871
      oprot.writeI64(self.userId)
4872
      oprot.writeFieldEnd()
4873
    oprot.writeFieldStop()
4874
    oprot.writeStructEnd()
4875
 
3431 rajveer 4876
  def validate(self):
4877
    return
4878
 
4879
 
94 ashish 4880
  def __repr__(self):
4881
    L = ['%s=%r' % (key, value)
4882
      for key, value in self.__dict__.iteritems()]
4883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4884
 
4885
  def __eq__(self, other):
4886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4887
 
4888
  def __ne__(self, other):
4889
    return not (self == other)
4890
 
559 chandransh 4891
class getUserState_result:
94 ashish 4892
  """
4893
  Attributes:
4894
   - success
559 chandransh 4895
   - ucex
94 ashish 4896
  """
4897
 
4898
  thrift_spec = (
559 chandransh 4899
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
4900
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4901
  )
4902
 
559 chandransh 4903
  def __init__(self, success=None, ucex=None,):
94 ashish 4904
    self.success = success
559 chandransh 4905
    self.ucex = ucex
94 ashish 4906
 
4907
  def read(self, iprot):
4908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4910
      return
4911
    iprot.readStructBegin()
4912
    while True:
4913
      (fname, ftype, fid) = iprot.readFieldBegin()
4914
      if ftype == TType.STOP:
4915
        break
4916
      if fid == 0:
4917
        if ftype == TType.STRUCT:
559 chandransh 4918
          self.success = UserState()
94 ashish 4919
          self.success.read(iprot)
4920
        else:
4921
          iprot.skip(ftype)
4922
      elif fid == 1:
4923
        if ftype == TType.STRUCT:
559 chandransh 4924
          self.ucex = UserContextException()
4925
          self.ucex.read(iprot)
94 ashish 4926
        else:
4927
          iprot.skip(ftype)
4928
      else:
4929
        iprot.skip(ftype)
4930
      iprot.readFieldEnd()
4931
    iprot.readStructEnd()
4932
 
4933
  def write(self, oprot):
4934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4936
      return
559 chandransh 4937
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 4938
    if self.success is not None:
94 ashish 4939
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4940
      self.success.write(oprot)
4941
      oprot.writeFieldEnd()
3431 rajveer 4942
    if self.ucex is not None:
559 chandransh 4943
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4944
      self.ucex.write(oprot)
94 ashish 4945
      oprot.writeFieldEnd()
4946
    oprot.writeFieldStop()
4947
    oprot.writeStructEnd()
4948
 
3431 rajveer 4949
  def validate(self):
4950
    return
4951
 
4952
 
94 ashish 4953
  def __repr__(self):
4954
    L = ['%s=%r' % (key, value)
4955
      for key, value in self.__dict__.iteritems()]
4956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4957
 
4958
  def __eq__(self, other):
4959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4960
 
4961
  def __ne__(self, other):
4962
    return not (self == other)
4963
 
559 chandransh 4964
class authenticateUser_args:
94 ashish 4965
  """
4966
  Attributes:
4967
   - email
4968
   - password
4969
  """
4970
 
4971
  thrift_spec = (
4972
    None, # 0
4973
    (1, TType.STRING, 'email', None, None, ), # 1
4974
    (2, TType.STRING, 'password', None, None, ), # 2
4975
  )
4976
 
4977
  def __init__(self, email=None, password=None,):
4978
    self.email = email
4979
    self.password = password
4980
 
4981
  def read(self, iprot):
4982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4984
      return
4985
    iprot.readStructBegin()
4986
    while True:
4987
      (fname, ftype, fid) = iprot.readFieldBegin()
4988
      if ftype == TType.STOP:
4989
        break
4990
      if fid == 1:
4991
        if ftype == TType.STRING:
4992
          self.email = iprot.readString();
4993
        else:
4994
          iprot.skip(ftype)
4995
      elif fid == 2:
4996
        if ftype == TType.STRING:
4997
          self.password = iprot.readString();
4998
        else:
4999
          iprot.skip(ftype)
5000
      else:
5001
        iprot.skip(ftype)
5002
      iprot.readFieldEnd()
5003
    iprot.readStructEnd()
5004
 
5005
  def write(self, oprot):
5006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5008
      return
559 chandransh 5009
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5010
    if self.email is not None:
94 ashish 5011
      oprot.writeFieldBegin('email', TType.STRING, 1)
5012
      oprot.writeString(self.email)
5013
      oprot.writeFieldEnd()
3431 rajveer 5014
    if self.password is not None:
94 ashish 5015
      oprot.writeFieldBegin('password', TType.STRING, 2)
5016
      oprot.writeString(self.password)
5017
      oprot.writeFieldEnd()
5018
    oprot.writeFieldStop()
5019
    oprot.writeStructEnd()
5020
 
3431 rajveer 5021
  def validate(self):
5022
    return
5023
 
5024
 
94 ashish 5025
  def __repr__(self):
5026
    L = ['%s=%r' % (key, value)
5027
      for key, value in self.__dict__.iteritems()]
5028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5029
 
5030
  def __eq__(self, other):
5031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5032
 
5033
  def __ne__(self, other):
5034
    return not (self == other)
5035
 
559 chandransh 5036
class authenticateUser_result:
94 ashish 5037
  """
5038
  Attributes:
5039
   - success
559 chandransh 5040
   - auex
94 ashish 5041
  """
5042
 
5043
  thrift_spec = (
559 chandransh 5044
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5045
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5046
  )
5047
 
559 chandransh 5048
  def __init__(self, success=None, auex=None,):
94 ashish 5049
    self.success = success
559 chandransh 5050
    self.auex = auex
94 ashish 5051
 
5052
  def read(self, iprot):
5053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5055
      return
5056
    iprot.readStructBegin()
5057
    while True:
5058
      (fname, ftype, fid) = iprot.readFieldBegin()
5059
      if ftype == TType.STOP:
5060
        break
5061
      if fid == 0:
5062
        if ftype == TType.STRUCT:
559 chandransh 5063
          self.success = User()
94 ashish 5064
          self.success.read(iprot)
5065
        else:
5066
          iprot.skip(ftype)
5067
      elif fid == 1:
5068
        if ftype == TType.STRUCT:
559 chandransh 5069
          self.auex = AuthenticationException()
5070
          self.auex.read(iprot)
94 ashish 5071
        else:
5072
          iprot.skip(ftype)
5073
      else:
5074
        iprot.skip(ftype)
5075
      iprot.readFieldEnd()
5076
    iprot.readStructEnd()
5077
 
5078
  def write(self, oprot):
5079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5081
      return
559 chandransh 5082
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5083
    if self.success is not None:
94 ashish 5084
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5085
      self.success.write(oprot)
5086
      oprot.writeFieldEnd()
3431 rajveer 5087
    if self.auex is not None:
559 chandransh 5088
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5089
      self.auex.write(oprot)
94 ashish 5090
      oprot.writeFieldEnd()
5091
    oprot.writeFieldStop()
5092
    oprot.writeStructEnd()
5093
 
3431 rajveer 5094
  def validate(self):
5095
    return
5096
 
5097
 
94 ashish 5098
  def __repr__(self):
5099
    L = ['%s=%r' % (key, value)
5100
      for key, value in self.__dict__.iteritems()]
5101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5102
 
5103
  def __eq__(self, other):
5104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5105
 
5106
  def __ne__(self, other):
5107
    return not (self == other)
5108
 
559 chandransh 5109
class userExists_args:
122 ashish 5110
  """
5111
  Attributes:
559 chandransh 5112
   - email
122 ashish 5113
  """
5114
 
5115
  thrift_spec = (
5116
    None, # 0
559 chandransh 5117
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5118
  )
5119
 
559 chandransh 5120
  def __init__(self, email=None,):
5121
    self.email = email
122 ashish 5122
 
5123
  def read(self, iprot):
5124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5126
      return
5127
    iprot.readStructBegin()
5128
    while True:
5129
      (fname, ftype, fid) = iprot.readFieldBegin()
5130
      if ftype == TType.STOP:
5131
        break
5132
      if fid == 1:
5133
        if ftype == TType.STRING:
559 chandransh 5134
          self.email = iprot.readString();
122 ashish 5135
        else:
5136
          iprot.skip(ftype)
559 chandransh 5137
      else:
5138
        iprot.skip(ftype)
5139
      iprot.readFieldEnd()
5140
    iprot.readStructEnd()
5141
 
5142
  def write(self, oprot):
5143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5145
      return
5146
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5147
    if self.email is not None:
559 chandransh 5148
      oprot.writeFieldBegin('email', TType.STRING, 1)
5149
      oprot.writeString(self.email)
5150
      oprot.writeFieldEnd()
5151
    oprot.writeFieldStop()
5152
    oprot.writeStructEnd()
5153
 
3431 rajveer 5154
  def validate(self):
5155
    return
5156
 
5157
 
559 chandransh 5158
  def __repr__(self):
5159
    L = ['%s=%r' % (key, value)
5160
      for key, value in self.__dict__.iteritems()]
5161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5162
 
5163
  def __eq__(self, other):
5164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5165
 
5166
  def __ne__(self, other):
5167
    return not (self == other)
5168
 
5169
class userExists_result:
5170
  """
5171
  Attributes:
5172
   - success
5173
   - ucx
5174
  """
5175
 
5176
  thrift_spec = (
5177
    (0, TType.BOOL, 'success', None, None, ), # 0
5178
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5179
  )
5180
 
5181
  def __init__(self, success=None, ucx=None,):
5182
    self.success = success
5183
    self.ucx = ucx
5184
 
5185
  def read(self, iprot):
5186
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5187
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5188
      return
5189
    iprot.readStructBegin()
5190
    while True:
5191
      (fname, ftype, fid) = iprot.readFieldBegin()
5192
      if ftype == TType.STOP:
5193
        break
5194
      if fid == 0:
5195
        if ftype == TType.BOOL:
5196
          self.success = iprot.readBool();
5197
        else:
5198
          iprot.skip(ftype)
5199
      elif fid == 1:
5200
        if ftype == TType.STRUCT:
5201
          self.ucx = UserContextException()
5202
          self.ucx.read(iprot)
5203
        else:
5204
          iprot.skip(ftype)
5205
      else:
5206
        iprot.skip(ftype)
5207
      iprot.readFieldEnd()
5208
    iprot.readStructEnd()
5209
 
5210
  def write(self, oprot):
5211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5213
      return
5214
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5215
    if self.success is not None:
559 chandransh 5216
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5217
      oprot.writeBool(self.success)
5218
      oprot.writeFieldEnd()
3431 rajveer 5219
    if self.ucx is not None:
559 chandransh 5220
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5221
      self.ucx.write(oprot)
5222
      oprot.writeFieldEnd()
5223
    oprot.writeFieldStop()
5224
    oprot.writeStructEnd()
5225
 
3431 rajveer 5226
  def validate(self):
5227
    return
5228
 
5229
 
559 chandransh 5230
  def __repr__(self):
5231
    L = ['%s=%r' % (key, value)
5232
      for key, value in self.__dict__.iteritems()]
5233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5234
 
5235
  def __eq__(self, other):
5236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5237
 
5238
  def __ne__(self, other):
5239
    return not (self == other)
5240
 
5241
class addAddressForUser_args:
5242
  """
5243
  Attributes:
5244
   - userId
5245
   - address
5246
   - setDefault
5247
  """
5248
 
5249
  thrift_spec = (
5250
    None, # 0
5251
    (1, TType.I64, 'userId', None, None, ), # 1
5252
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5253
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5254
  )
5255
 
567 rajveer 5256
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5257
    self.userId = userId
5258
    self.address = address
5259
    self.setDefault = setDefault
5260
 
5261
  def read(self, iprot):
5262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5264
      return
5265
    iprot.readStructBegin()
5266
    while True:
5267
      (fname, ftype, fid) = iprot.readFieldBegin()
5268
      if ftype == TType.STOP:
5269
        break
5270
      if fid == 1:
5271
        if ftype == TType.I64:
5272
          self.userId = iprot.readI64();
5273
        else:
5274
          iprot.skip(ftype)
122 ashish 5275
      elif fid == 2:
559 chandransh 5276
        if ftype == TType.STRUCT:
5277
          self.address = Address()
5278
          self.address.read(iprot)
122 ashish 5279
        else:
5280
          iprot.skip(ftype)
5281
      elif fid == 3:
5282
        if ftype == TType.BOOL:
559 chandransh 5283
          self.setDefault = iprot.readBool();
122 ashish 5284
        else:
5285
          iprot.skip(ftype)
5286
      else:
5287
        iprot.skip(ftype)
5288
      iprot.readFieldEnd()
5289
    iprot.readStructEnd()
5290
 
5291
  def write(self, oprot):
5292
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5293
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5294
      return
559 chandransh 5295
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5296
    if self.userId is not None:
559 chandransh 5297
      oprot.writeFieldBegin('userId', TType.I64, 1)
5298
      oprot.writeI64(self.userId)
122 ashish 5299
      oprot.writeFieldEnd()
3431 rajveer 5300
    if self.address is not None:
559 chandransh 5301
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5302
      self.address.write(oprot)
122 ashish 5303
      oprot.writeFieldEnd()
3431 rajveer 5304
    if self.setDefault is not None:
567 rajveer 5305
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5306
      oprot.writeBool(self.setDefault)
5307
      oprot.writeFieldEnd()
122 ashish 5308
    oprot.writeFieldStop()
5309
    oprot.writeStructEnd()
5310
 
3431 rajveer 5311
  def validate(self):
5312
    return
5313
 
5314
 
122 ashish 5315
  def __repr__(self):
5316
    L = ['%s=%r' % (key, value)
5317
      for key, value in self.__dict__.iteritems()]
5318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5319
 
5320
  def __eq__(self, other):
5321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5322
 
5323
  def __ne__(self, other):
5324
    return not (self == other)
5325
 
559 chandransh 5326
class addAddressForUser_result:
122 ashish 5327
  """
5328
  Attributes:
5329
   - success
559 chandransh 5330
   - ucx
122 ashish 5331
  """
5332
 
5333
  thrift_spec = (
567 rajveer 5334
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5335
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5336
  )
5337
 
559 chandransh 5338
  def __init__(self, success=None, ucx=None,):
122 ashish 5339
    self.success = success
559 chandransh 5340
    self.ucx = ucx
122 ashish 5341
 
5342
  def read(self, iprot):
5343
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5344
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5345
      return
5346
    iprot.readStructBegin()
5347
    while True:
5348
      (fname, ftype, fid) = iprot.readFieldBegin()
5349
      if ftype == TType.STOP:
5350
        break
5351
      if fid == 0:
567 rajveer 5352
        if ftype == TType.I64:
5353
          self.success = iprot.readI64();
122 ashish 5354
        else:
5355
          iprot.skip(ftype)
5356
      elif fid == 1:
5357
        if ftype == TType.STRUCT:
559 chandransh 5358
          self.ucx = UserContextException()
5359
          self.ucx.read(iprot)
122 ashish 5360
        else:
5361
          iprot.skip(ftype)
5362
      else:
5363
        iprot.skip(ftype)
5364
      iprot.readFieldEnd()
5365
    iprot.readStructEnd()
5366
 
5367
  def write(self, oprot):
5368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5370
      return
559 chandransh 5371
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5372
    if self.success is not None:
567 rajveer 5373
      oprot.writeFieldBegin('success', TType.I64, 0)
5374
      oprot.writeI64(self.success)
122 ashish 5375
      oprot.writeFieldEnd()
3431 rajveer 5376
    if self.ucx is not None:
559 chandransh 5377
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5378
      self.ucx.write(oprot)
122 ashish 5379
      oprot.writeFieldEnd()
5380
    oprot.writeFieldStop()
5381
    oprot.writeStructEnd()
5382
 
3431 rajveer 5383
  def validate(self):
5384
    return
5385
 
5386
 
122 ashish 5387
  def __repr__(self):
5388
    L = ['%s=%r' % (key, value)
5389
      for key, value in self.__dict__.iteritems()]
5390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5391
 
5392
  def __eq__(self, other):
5393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5394
 
5395
  def __ne__(self, other):
5396
    return not (self == other)
5397
 
559 chandransh 5398
class removeAddressForUser_args:
94 ashish 5399
  """
5400
  Attributes:
559 chandransh 5401
   - userid
5402
   - addressId
94 ashish 5403
  """
5404
 
5405
  thrift_spec = (
5406
    None, # 0
559 chandransh 5407
    (1, TType.I64, 'userid', None, None, ), # 1
5408
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5409
  )
5410
 
559 chandransh 5411
  def __init__(self, userid=None, addressId=None,):
5412
    self.userid = userid
5413
    self.addressId = addressId
94 ashish 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:
559 chandransh 5425
        if ftype == TType.I64:
5426
          self.userid = iprot.readI64();
94 ashish 5427
        else:
5428
          iprot.skip(ftype)
559 chandransh 5429
      elif fid == 2:
5430
        if ftype == TType.I64:
5431
          self.addressId = iprot.readI64();
5432
        else:
5433
          iprot.skip(ftype)
94 ashish 5434
      else:
5435
        iprot.skip(ftype)
5436
      iprot.readFieldEnd()
5437
    iprot.readStructEnd()
5438
 
5439
  def write(self, oprot):
5440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5442
      return
559 chandransh 5443
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5444
    if self.userid is not None:
559 chandransh 5445
      oprot.writeFieldBegin('userid', TType.I64, 1)
5446
      oprot.writeI64(self.userid)
94 ashish 5447
      oprot.writeFieldEnd()
3431 rajveer 5448
    if self.addressId is not None:
559 chandransh 5449
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5450
      oprot.writeI64(self.addressId)
5451
      oprot.writeFieldEnd()
94 ashish 5452
    oprot.writeFieldStop()
5453
    oprot.writeStructEnd()
5454
 
3431 rajveer 5455
  def validate(self):
5456
    return
5457
 
5458
 
94 ashish 5459
  def __repr__(self):
5460
    L = ['%s=%r' % (key, value)
5461
      for key, value in self.__dict__.iteritems()]
5462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5463
 
5464
  def __eq__(self, other):
5465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5466
 
5467
  def __ne__(self, other):
5468
    return not (self == other)
5469
 
559 chandransh 5470
class removeAddressForUser_result:
94 ashish 5471
  """
5472
  Attributes:
5473
   - success
5474
   - ucx
5475
  """
5476
 
5477
  thrift_spec = (
5478
    (0, TType.BOOL, 'success', None, None, ), # 0
5479
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5480
  )
5481
 
5482
  def __init__(self, success=None, ucx=None,):
5483
    self.success = success
5484
    self.ucx = ucx
5485
 
5486
  def read(self, iprot):
5487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5489
      return
5490
    iprot.readStructBegin()
5491
    while True:
5492
      (fname, ftype, fid) = iprot.readFieldBegin()
5493
      if ftype == TType.STOP:
5494
        break
5495
      if fid == 0:
5496
        if ftype == TType.BOOL:
5497
          self.success = iprot.readBool();
5498
        else:
5499
          iprot.skip(ftype)
5500
      elif fid == 1:
5501
        if ftype == TType.STRUCT:
5502
          self.ucx = UserContextException()
5503
          self.ucx.read(iprot)
5504
        else:
5505
          iprot.skip(ftype)
5506
      else:
5507
        iprot.skip(ftype)
5508
      iprot.readFieldEnd()
5509
    iprot.readStructEnd()
5510
 
5511
  def write(self, oprot):
5512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5514
      return
559 chandransh 5515
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5516
    if self.success is not None:
94 ashish 5517
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5518
      oprot.writeBool(self.success)
5519
      oprot.writeFieldEnd()
3431 rajveer 5520
    if self.ucx is not None:
94 ashish 5521
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5522
      self.ucx.write(oprot)
5523
      oprot.writeFieldEnd()
5524
    oprot.writeFieldStop()
5525
    oprot.writeStructEnd()
5526
 
3431 rajveer 5527
  def validate(self):
5528
    return
5529
 
5530
 
94 ashish 5531
  def __repr__(self):
5532
    L = ['%s=%r' % (key, value)
5533
      for key, value in self.__dict__.iteritems()]
5534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5535
 
5536
  def __eq__(self, other):
5537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5538
 
5539
  def __ne__(self, other):
5540
    return not (self == other)
5541
 
559 chandransh 5542
class setUserAsLoggedIn_args:
94 ashish 5543
  """
5544
  Attributes:
559 chandransh 5545
   - userId
94 ashish 5546
   - timestamp
5547
  """
5548
 
5549
  thrift_spec = (
5550
    None, # 0
559 chandransh 5551
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5552
    (2, TType.I64, 'timestamp', None, None, ), # 2
5553
  )
5554
 
559 chandransh 5555
  def __init__(self, userId=None, timestamp=None,):
5556
    self.userId = userId
94 ashish 5557
    self.timestamp = timestamp
5558
 
5559
  def read(self, iprot):
5560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5562
      return
5563
    iprot.readStructBegin()
5564
    while True:
5565
      (fname, ftype, fid) = iprot.readFieldBegin()
5566
      if ftype == TType.STOP:
5567
        break
5568
      if fid == 1:
559 chandransh 5569
        if ftype == TType.I64:
5570
          self.userId = iprot.readI64();
94 ashish 5571
        else:
5572
          iprot.skip(ftype)
5573
      elif fid == 2:
5574
        if ftype == TType.I64:
5575
          self.timestamp = iprot.readI64();
5576
        else:
5577
          iprot.skip(ftype)
5578
      else:
5579
        iprot.skip(ftype)
5580
      iprot.readFieldEnd()
5581
    iprot.readStructEnd()
5582
 
5583
  def write(self, oprot):
5584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5586
      return
559 chandransh 5587
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5588
    if self.userId is not None:
559 chandransh 5589
      oprot.writeFieldBegin('userId', TType.I64, 1)
5590
      oprot.writeI64(self.userId)
94 ashish 5591
      oprot.writeFieldEnd()
3431 rajveer 5592
    if self.timestamp is not None:
94 ashish 5593
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5594
      oprot.writeI64(self.timestamp)
5595
      oprot.writeFieldEnd()
5596
    oprot.writeFieldStop()
5597
    oprot.writeStructEnd()
5598
 
3431 rajveer 5599
  def validate(self):
5600
    return
5601
 
5602
 
94 ashish 5603
  def __repr__(self):
5604
    L = ['%s=%r' % (key, value)
5605
      for key, value in self.__dict__.iteritems()]
5606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5607
 
5608
  def __eq__(self, other):
5609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5610
 
5611
  def __ne__(self, other):
5612
    return not (self == other)
5613
 
559 chandransh 5614
class setUserAsLoggedIn_result:
94 ashish 5615
  """
5616
  Attributes:
5617
   - success
5618
   - ucx
5619
  """
5620
 
5621
  thrift_spec = (
5622
    (0, TType.BOOL, 'success', None, None, ), # 0
5623
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5624
  )
5625
 
5626
  def __init__(self, success=None, ucx=None,):
5627
    self.success = success
5628
    self.ucx = ucx
5629
 
5630
  def read(self, iprot):
5631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5633
      return
5634
    iprot.readStructBegin()
5635
    while True:
5636
      (fname, ftype, fid) = iprot.readFieldBegin()
5637
      if ftype == TType.STOP:
5638
        break
5639
      if fid == 0:
5640
        if ftype == TType.BOOL:
5641
          self.success = iprot.readBool();
5642
        else:
5643
          iprot.skip(ftype)
5644
      elif fid == 1:
5645
        if ftype == TType.STRUCT:
5646
          self.ucx = UserContextException()
5647
          self.ucx.read(iprot)
5648
        else:
5649
          iprot.skip(ftype)
5650
      else:
5651
        iprot.skip(ftype)
5652
      iprot.readFieldEnd()
5653
    iprot.readStructEnd()
5654
 
5655
  def write(self, oprot):
5656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5658
      return
559 chandransh 5659
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5660
    if self.success is not None:
94 ashish 5661
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5662
      oprot.writeBool(self.success)
5663
      oprot.writeFieldEnd()
3431 rajveer 5664
    if self.ucx is not None:
94 ashish 5665
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5666
      self.ucx.write(oprot)
5667
      oprot.writeFieldEnd()
5668
    oprot.writeFieldStop()
5669
    oprot.writeStructEnd()
5670
 
3431 rajveer 5671
  def validate(self):
5672
    return
5673
 
5674
 
94 ashish 5675
  def __repr__(self):
5676
    L = ['%s=%r' % (key, value)
5677
      for key, value in self.__dict__.iteritems()]
5678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5679
 
5680
  def __eq__(self, other):
5681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5682
 
5683
  def __ne__(self, other):
5684
    return not (self == other)
5685
 
559 chandransh 5686
class setUserAsLoggedOut_args:
94 ashish 5687
  """
5688
  Attributes:
5689
   - userid
5690
   - timestamp
5691
  """
5692
 
5693
  thrift_spec = (
5694
    None, # 0
559 chandransh 5695
    (1, TType.I64, 'userid', None, None, ), # 1
5696
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5697
  )
5698
 
559 chandransh 5699
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5700
    self.userid = userid
5701
    self.timestamp = timestamp
5702
 
5703
  def read(self, iprot):
5704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5706
      return
5707
    iprot.readStructBegin()
5708
    while True:
5709
      (fname, ftype, fid) = iprot.readFieldBegin()
5710
      if ftype == TType.STOP:
5711
        break
5712
      if fid == 1:
5713
        if ftype == TType.I64:
5714
          self.userid = iprot.readI64();
5715
        else:
5716
          iprot.skip(ftype)
559 chandransh 5717
      elif fid == 2:
94 ashish 5718
        if ftype == TType.I64:
5719
          self.timestamp = iprot.readI64();
5720
        else:
5721
          iprot.skip(ftype)
5722
      else:
5723
        iprot.skip(ftype)
5724
      iprot.readFieldEnd()
5725
    iprot.readStructEnd()
5726
 
5727
  def write(self, oprot):
5728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5730
      return
559 chandransh 5731
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5732
    if self.userid is not None:
559 chandransh 5733
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5734
      oprot.writeI64(self.userid)
5735
      oprot.writeFieldEnd()
3431 rajveer 5736
    if self.timestamp is not None:
559 chandransh 5737
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5738
      oprot.writeI64(self.timestamp)
5739
      oprot.writeFieldEnd()
5740
    oprot.writeFieldStop()
5741
    oprot.writeStructEnd()
5742
 
3431 rajveer 5743
  def validate(self):
5744
    return
5745
 
5746
 
94 ashish 5747
  def __repr__(self):
5748
    L = ['%s=%r' % (key, value)
5749
      for key, value in self.__dict__.iteritems()]
5750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5751
 
5752
  def __eq__(self, other):
5753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5754
 
5755
  def __ne__(self, other):
5756
    return not (self == other)
5757
 
559 chandransh 5758
class setUserAsLoggedOut_result:
94 ashish 5759
  """
5760
  Attributes:
5761
   - success
5762
   - ucx
5763
  """
5764
 
5765
  thrift_spec = (
5766
    (0, TType.BOOL, 'success', None, None, ), # 0
5767
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5768
  )
5769
 
5770
  def __init__(self, success=None, ucx=None,):
5771
    self.success = success
5772
    self.ucx = ucx
5773
 
5774
  def read(self, iprot):
5775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5777
      return
5778
    iprot.readStructBegin()
5779
    while True:
5780
      (fname, ftype, fid) = iprot.readFieldBegin()
5781
      if ftype == TType.STOP:
5782
        break
5783
      if fid == 0:
5784
        if ftype == TType.BOOL:
5785
          self.success = iprot.readBool();
5786
        else:
5787
          iprot.skip(ftype)
5788
      elif fid == 1:
5789
        if ftype == TType.STRUCT:
5790
          self.ucx = UserContextException()
5791
          self.ucx.read(iprot)
5792
        else:
5793
          iprot.skip(ftype)
5794
      else:
5795
        iprot.skip(ftype)
5796
      iprot.readFieldEnd()
5797
    iprot.readStructEnd()
5798
 
5799
  def write(self, oprot):
5800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5802
      return
559 chandransh 5803
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5804
    if self.success is not None:
94 ashish 5805
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5806
      oprot.writeBool(self.success)
5807
      oprot.writeFieldEnd()
3431 rajveer 5808
    if self.ucx is not None:
94 ashish 5809
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5810
      self.ucx.write(oprot)
5811
      oprot.writeFieldEnd()
5812
    oprot.writeFieldStop()
5813
    oprot.writeStructEnd()
5814
 
3431 rajveer 5815
  def validate(self):
5816
    return
5817
 
5818
 
94 ashish 5819
  def __repr__(self):
5820
    L = ['%s=%r' % (key, value)
5821
      for key, value in self.__dict__.iteritems()]
5822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5823
 
5824
  def __eq__(self, other):
5825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5826
 
5827
  def __ne__(self, other):
5828
    return not (self == other)
5829
 
559 chandransh 5830
class setDefaultAddress_args:
94 ashish 5831
  """
5832
  Attributes:
5833
   - userid
5834
   - addressId
5835
  """
5836
 
5837
  thrift_spec = (
5838
    None, # 0
5839
    (1, TType.I64, 'userid', None, None, ), # 1
5840
    (2, TType.I64, 'addressId', None, None, ), # 2
5841
  )
5842
 
5843
  def __init__(self, userid=None, addressId=None,):
5844
    self.userid = userid
5845
    self.addressId = addressId
5846
 
5847
  def read(self, iprot):
5848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5850
      return
5851
    iprot.readStructBegin()
5852
    while True:
5853
      (fname, ftype, fid) = iprot.readFieldBegin()
5854
      if ftype == TType.STOP:
5855
        break
5856
      if fid == 1:
5857
        if ftype == TType.I64:
5858
          self.userid = iprot.readI64();
5859
        else:
5860
          iprot.skip(ftype)
5861
      elif fid == 2:
5862
        if ftype == TType.I64:
5863
          self.addressId = iprot.readI64();
5864
        else:
5865
          iprot.skip(ftype)
5866
      else:
5867
        iprot.skip(ftype)
5868
      iprot.readFieldEnd()
5869
    iprot.readStructEnd()
5870
 
5871
  def write(self, oprot):
5872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5874
      return
559 chandransh 5875
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5876
    if self.userid is not None:
94 ashish 5877
      oprot.writeFieldBegin('userid', TType.I64, 1)
5878
      oprot.writeI64(self.userid)
5879
      oprot.writeFieldEnd()
3431 rajveer 5880
    if self.addressId is not None:
94 ashish 5881
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5882
      oprot.writeI64(self.addressId)
5883
      oprot.writeFieldEnd()
5884
    oprot.writeFieldStop()
5885
    oprot.writeStructEnd()
5886
 
3431 rajveer 5887
  def validate(self):
5888
    return
5889
 
5890
 
94 ashish 5891
  def __repr__(self):
5892
    L = ['%s=%r' % (key, value)
5893
      for key, value in self.__dict__.iteritems()]
5894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5895
 
5896
  def __eq__(self, other):
5897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5898
 
5899
  def __ne__(self, other):
5900
    return not (self == other)
5901
 
559 chandransh 5902
class setDefaultAddress_result:
94 ashish 5903
  """
5904
  Attributes:
5905
   - success
5906
   - ucx
5907
  """
5908
 
5909
  thrift_spec = (
5910
    (0, TType.BOOL, 'success', None, None, ), # 0
5911
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5912
  )
5913
 
5914
  def __init__(self, success=None, ucx=None,):
5915
    self.success = success
5916
    self.ucx = ucx
5917
 
5918
  def read(self, iprot):
5919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5921
      return
5922
    iprot.readStructBegin()
5923
    while True:
5924
      (fname, ftype, fid) = iprot.readFieldBegin()
5925
      if ftype == TType.STOP:
5926
        break
5927
      if fid == 0:
5928
        if ftype == TType.BOOL:
5929
          self.success = iprot.readBool();
5930
        else:
5931
          iprot.skip(ftype)
5932
      elif fid == 1:
5933
        if ftype == TType.STRUCT:
5934
          self.ucx = UserContextException()
5935
          self.ucx.read(iprot)
5936
        else:
5937
          iprot.skip(ftype)
5938
      else:
5939
        iprot.skip(ftype)
5940
      iprot.readFieldEnd()
5941
    iprot.readStructEnd()
5942
 
5943
  def write(self, oprot):
5944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5946
      return
559 chandransh 5947
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5948
    if self.success is not None:
94 ashish 5949
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5950
      oprot.writeBool(self.success)
5951
      oprot.writeFieldEnd()
3431 rajveer 5952
    if self.ucx is not None:
94 ashish 5953
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5954
      self.ucx.write(oprot)
5955
      oprot.writeFieldEnd()
5956
    oprot.writeFieldStop()
5957
    oprot.writeStructEnd()
5958
 
3431 rajveer 5959
  def validate(self):
5960
    return
5961
 
5962
 
94 ashish 5963
  def __repr__(self):
5964
    L = ['%s=%r' % (key, value)
5965
      for key, value in self.__dict__.iteritems()]
5966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5967
 
5968
  def __eq__(self, other):
5969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5970
 
5971
  def __ne__(self, other):
5972
    return not (self == other)
5973
 
559 chandransh 5974
class updatePassword_args:
94 ashish 5975
  """
5976
  Attributes:
559 chandransh 5977
   - userid
594 rajveer 5978
   - oldPassword
5979
   - newPassword
94 ashish 5980
  """
5981
 
5982
  thrift_spec = (
5983
    None, # 0
559 chandransh 5984
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5985
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5986
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5987
  )
5988
 
594 rajveer 5989
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5990
    self.userid = userid
594 rajveer 5991
    self.oldPassword = oldPassword
5992
    self.newPassword = newPassword
94 ashish 5993
 
5994
  def read(self, iprot):
5995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5997
      return
5998
    iprot.readStructBegin()
5999
    while True:
6000
      (fname, ftype, fid) = iprot.readFieldBegin()
6001
      if ftype == TType.STOP:
6002
        break
6003
      if fid == 1:
6004
        if ftype == TType.I64:
559 chandransh 6005
          self.userid = iprot.readI64();
94 ashish 6006
        else:
6007
          iprot.skip(ftype)
6008
      elif fid == 2:
559 chandransh 6009
        if ftype == TType.STRING:
594 rajveer 6010
          self.oldPassword = iprot.readString();
94 ashish 6011
        else:
6012
          iprot.skip(ftype)
594 rajveer 6013
      elif fid == 3:
6014
        if ftype == TType.STRING:
6015
          self.newPassword = iprot.readString();
6016
        else:
6017
          iprot.skip(ftype)
94 ashish 6018
      else:
6019
        iprot.skip(ftype)
6020
      iprot.readFieldEnd()
6021
    iprot.readStructEnd()
6022
 
6023
  def write(self, oprot):
6024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6026
      return
559 chandransh 6027
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6028
    if self.userid is not None:
559 chandransh 6029
      oprot.writeFieldBegin('userid', TType.I64, 1)
6030
      oprot.writeI64(self.userid)
94 ashish 6031
      oprot.writeFieldEnd()
3431 rajveer 6032
    if self.oldPassword is not None:
594 rajveer 6033
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6034
      oprot.writeString(self.oldPassword)
94 ashish 6035
      oprot.writeFieldEnd()
3431 rajveer 6036
    if self.newPassword is not None:
594 rajveer 6037
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6038
      oprot.writeString(self.newPassword)
6039
      oprot.writeFieldEnd()
94 ashish 6040
    oprot.writeFieldStop()
6041
    oprot.writeStructEnd()
6042
 
3431 rajveer 6043
  def validate(self):
6044
    return
6045
 
6046
 
94 ashish 6047
  def __repr__(self):
6048
    L = ['%s=%r' % (key, value)
6049
      for key, value in self.__dict__.iteritems()]
6050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6051
 
6052
  def __eq__(self, other):
6053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6054
 
6055
  def __ne__(self, other):
6056
    return not (self == other)
6057
 
559 chandransh 6058
class updatePassword_result:
94 ashish 6059
  """
6060
  Attributes:
6061
   - success
6062
   - ucx
6063
  """
6064
 
6065
  thrift_spec = (
6066
    (0, TType.BOOL, 'success', None, None, ), # 0
6067
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6068
  )
6069
 
6070
  def __init__(self, success=None, ucx=None,):
6071
    self.success = success
6072
    self.ucx = ucx
6073
 
6074
  def read(self, iprot):
6075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6077
      return
6078
    iprot.readStructBegin()
6079
    while True:
6080
      (fname, ftype, fid) = iprot.readFieldBegin()
6081
      if ftype == TType.STOP:
6082
        break
6083
      if fid == 0:
6084
        if ftype == TType.BOOL:
6085
          self.success = iprot.readBool();
6086
        else:
6087
          iprot.skip(ftype)
6088
      elif fid == 1:
6089
        if ftype == TType.STRUCT:
6090
          self.ucx = UserContextException()
6091
          self.ucx.read(iprot)
6092
        else:
6093
          iprot.skip(ftype)
6094
      else:
6095
        iprot.skip(ftype)
6096
      iprot.readFieldEnd()
6097
    iprot.readStructEnd()
6098
 
6099
  def write(self, oprot):
6100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6102
      return
559 chandransh 6103
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6104
    if self.success is not None:
94 ashish 6105
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6106
      oprot.writeBool(self.success)
6107
      oprot.writeFieldEnd()
3431 rajveer 6108
    if self.ucx is not None:
94 ashish 6109
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6110
      self.ucx.write(oprot)
6111
      oprot.writeFieldEnd()
6112
    oprot.writeFieldStop()
6113
    oprot.writeStructEnd()
6114
 
3431 rajveer 6115
  def validate(self):
6116
    return
6117
 
6118
 
94 ashish 6119
  def __repr__(self):
6120
    L = ['%s=%r' % (key, value)
6121
      for key, value in self.__dict__.iteritems()]
6122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6123
 
6124
  def __eq__(self, other):
6125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6126
 
6127
  def __ne__(self, other):
6128
    return not (self == other)
6129
 
581 rajveer 6130
class forgotPassword_args:
6131
  """
6132
  Attributes:
6133
   - email
884 rajveer 6134
   - newPassword
581 rajveer 6135
  """
6136
 
6137
  thrift_spec = (
6138
    None, # 0
6139
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6140
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6141
  )
6142
 
884 rajveer 6143
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6144
    self.email = email
884 rajveer 6145
    self.newPassword = newPassword
581 rajveer 6146
 
6147
  def read(self, iprot):
6148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6150
      return
6151
    iprot.readStructBegin()
6152
    while True:
6153
      (fname, ftype, fid) = iprot.readFieldBegin()
6154
      if ftype == TType.STOP:
6155
        break
6156
      if fid == 1:
6157
        if ftype == TType.STRING:
6158
          self.email = iprot.readString();
6159
        else:
6160
          iprot.skip(ftype)
884 rajveer 6161
      elif fid == 2:
6162
        if ftype == TType.STRING:
6163
          self.newPassword = iprot.readString();
6164
        else:
6165
          iprot.skip(ftype)
581 rajveer 6166
      else:
6167
        iprot.skip(ftype)
6168
      iprot.readFieldEnd()
6169
    iprot.readStructEnd()
6170
 
6171
  def write(self, oprot):
6172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6174
      return
6175
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6176
    if self.email is not None:
581 rajveer 6177
      oprot.writeFieldBegin('email', TType.STRING, 1)
6178
      oprot.writeString(self.email)
6179
      oprot.writeFieldEnd()
3431 rajveer 6180
    if self.newPassword is not None:
884 rajveer 6181
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6182
      oprot.writeString(self.newPassword)
6183
      oprot.writeFieldEnd()
581 rajveer 6184
    oprot.writeFieldStop()
6185
    oprot.writeStructEnd()
6186
 
3431 rajveer 6187
  def validate(self):
6188
    return
6189
 
6190
 
581 rajveer 6191
  def __repr__(self):
6192
    L = ['%s=%r' % (key, value)
6193
      for key, value in self.__dict__.iteritems()]
6194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6195
 
6196
  def __eq__(self, other):
6197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6198
 
6199
  def __ne__(self, other):
6200
    return not (self == other)
6201
 
6202
class forgotPassword_result:
6203
  """
6204
  Attributes:
6205
   - success
6206
   - ucx
6207
  """
6208
 
6209
  thrift_spec = (
6210
    (0, TType.BOOL, 'success', None, None, ), # 0
6211
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6212
  )
6213
 
6214
  def __init__(self, success=None, ucx=None,):
6215
    self.success = success
6216
    self.ucx = ucx
6217
 
6218
  def read(self, iprot):
6219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6221
      return
6222
    iprot.readStructBegin()
6223
    while True:
6224
      (fname, ftype, fid) = iprot.readFieldBegin()
6225
      if ftype == TType.STOP:
6226
        break
6227
      if fid == 0:
6228
        if ftype == TType.BOOL:
6229
          self.success = iprot.readBool();
6230
        else:
6231
          iprot.skip(ftype)
6232
      elif fid == 1:
6233
        if ftype == TType.STRUCT:
6234
          self.ucx = UserContextException()
6235
          self.ucx.read(iprot)
6236
        else:
6237
          iprot.skip(ftype)
6238
      else:
6239
        iprot.skip(ftype)
6240
      iprot.readFieldEnd()
6241
    iprot.readStructEnd()
6242
 
6243
  def write(self, oprot):
6244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6246
      return
6247
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6248
    if self.success is not None:
581 rajveer 6249
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6250
      oprot.writeBool(self.success)
6251
      oprot.writeFieldEnd()
3431 rajveer 6252
    if self.ucx is not None:
581 rajveer 6253
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6254
      self.ucx.write(oprot)
6255
      oprot.writeFieldEnd()
6256
    oprot.writeFieldStop()
6257
    oprot.writeStructEnd()
6258
 
3431 rajveer 6259
  def validate(self):
6260
    return
6261
 
6262
 
581 rajveer 6263
  def __repr__(self):
6264
    L = ['%s=%r' % (key, value)
6265
      for key, value in self.__dict__.iteritems()]
6266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6267
 
6268
  def __eq__(self, other):
6269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6270
 
6271
  def __ne__(self, other):
6272
    return not (self == other)
6273
 
594 rajveer 6274
class getAllAddressesForUser_args:
6275
  """
6276
  Attributes:
6277
   - userId
6278
  """
6279
 
6280
  thrift_spec = (
6281
    None, # 0
6282
    (1, TType.I64, 'userId', None, None, ), # 1
6283
  )
6284
 
6285
  def __init__(self, userId=None,):
6286
    self.userId = userId
6287
 
6288
  def read(self, iprot):
6289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6291
      return
6292
    iprot.readStructBegin()
6293
    while True:
6294
      (fname, ftype, fid) = iprot.readFieldBegin()
6295
      if ftype == TType.STOP:
6296
        break
6297
      if fid == 1:
6298
        if ftype == TType.I64:
6299
          self.userId = iprot.readI64();
6300
        else:
6301
          iprot.skip(ftype)
6302
      else:
6303
        iprot.skip(ftype)
6304
      iprot.readFieldEnd()
6305
    iprot.readStructEnd()
6306
 
6307
  def write(self, oprot):
6308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6310
      return
6311
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6312
    if self.userId is not None:
594 rajveer 6313
      oprot.writeFieldBegin('userId', TType.I64, 1)
6314
      oprot.writeI64(self.userId)
6315
      oprot.writeFieldEnd()
6316
    oprot.writeFieldStop()
6317
    oprot.writeStructEnd()
6318
 
3431 rajveer 6319
  def validate(self):
6320
    return
6321
 
6322
 
594 rajveer 6323
  def __repr__(self):
6324
    L = ['%s=%r' % (key, value)
6325
      for key, value in self.__dict__.iteritems()]
6326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6327
 
6328
  def __eq__(self, other):
6329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6330
 
6331
  def __ne__(self, other):
6332
    return not (self == other)
6333
 
6334
class getAllAddressesForUser_result:
6335
  """
6336
  Attributes:
6337
   - success
6338
   - ucx
6339
  """
6340
 
6341
  thrift_spec = (
6342
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6343
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6344
  )
6345
 
6346
  def __init__(self, success=None, ucx=None,):
6347
    self.success = success
6348
    self.ucx = ucx
6349
 
6350
  def read(self, iprot):
6351
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6352
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6353
      return
6354
    iprot.readStructBegin()
6355
    while True:
6356
      (fname, ftype, fid) = iprot.readFieldBegin()
6357
      if ftype == TType.STOP:
6358
        break
6359
      if fid == 0:
6360
        if ftype == TType.LIST:
6361
          self.success = []
3385 varun.gupt 6362
          (_etype38, _size35) = iprot.readListBegin()
6363
          for _i39 in xrange(_size35):
6364
            _elem40 = Address()
6365
            _elem40.read(iprot)
6366
            self.success.append(_elem40)
594 rajveer 6367
          iprot.readListEnd()
6368
        else:
6369
          iprot.skip(ftype)
6370
      elif fid == 1:
6371
        if ftype == TType.STRUCT:
6372
          self.ucx = UserContextException()
6373
          self.ucx.read(iprot)
6374
        else:
6375
          iprot.skip(ftype)
6376
      else:
6377
        iprot.skip(ftype)
6378
      iprot.readFieldEnd()
6379
    iprot.readStructEnd()
6380
 
6381
  def write(self, oprot):
6382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6384
      return
6385
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6386
    if self.success is not None:
594 rajveer 6387
      oprot.writeFieldBegin('success', TType.LIST, 0)
6388
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 6389
      for iter41 in self.success:
6390
        iter41.write(oprot)
594 rajveer 6391
      oprot.writeListEnd()
6392
      oprot.writeFieldEnd()
3431 rajveer 6393
    if self.ucx is not None:
594 rajveer 6394
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6395
      self.ucx.write(oprot)
6396
      oprot.writeFieldEnd()
6397
    oprot.writeFieldStop()
6398
    oprot.writeStructEnd()
6399
 
3431 rajveer 6400
  def validate(self):
6401
    return
6402
 
6403
 
594 rajveer 6404
  def __repr__(self):
6405
    L = ['%s=%r' % (key, value)
6406
      for key, value in self.__dict__.iteritems()]
6407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6408
 
6409
  def __eq__(self, other):
6410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6411
 
6412
  def __ne__(self, other):
6413
    return not (self == other)
6414
 
1894 vikas 6415
class getAddressById_args:
6416
  """
6417
  Attributes:
6418
   - addressId
6419
  """
6420
 
6421
  thrift_spec = (
6422
    None, # 0
6423
    (1, TType.I64, 'addressId', None, None, ), # 1
6424
  )
6425
 
6426
  def __init__(self, addressId=None,):
6427
    self.addressId = addressId
6428
 
6429
  def read(self, iprot):
6430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6432
      return
6433
    iprot.readStructBegin()
6434
    while True:
6435
      (fname, ftype, fid) = iprot.readFieldBegin()
6436
      if ftype == TType.STOP:
6437
        break
6438
      if fid == 1:
6439
        if ftype == TType.I64:
6440
          self.addressId = iprot.readI64();
6441
        else:
6442
          iprot.skip(ftype)
6443
      else:
6444
        iprot.skip(ftype)
6445
      iprot.readFieldEnd()
6446
    iprot.readStructEnd()
6447
 
6448
  def write(self, oprot):
6449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6451
      return
6452
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6453
    if self.addressId is not None:
1894 vikas 6454
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6455
      oprot.writeI64(self.addressId)
6456
      oprot.writeFieldEnd()
6457
    oprot.writeFieldStop()
6458
    oprot.writeStructEnd()
6459
 
3431 rajveer 6460
  def validate(self):
6461
    return
6462
 
6463
 
1894 vikas 6464
  def __repr__(self):
6465
    L = ['%s=%r' % (key, value)
6466
      for key, value in self.__dict__.iteritems()]
6467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6468
 
6469
  def __eq__(self, other):
6470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6471
 
6472
  def __ne__(self, other):
6473
    return not (self == other)
6474
 
6475
class getAddressById_result:
6476
  """
6477
  Attributes:
6478
   - success
6479
   - ucx
6480
  """
6481
 
6482
  thrift_spec = (
6483
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6484
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6485
  )
6486
 
6487
  def __init__(self, success=None, ucx=None,):
6488
    self.success = success
6489
    self.ucx = ucx
6490
 
6491
  def read(self, iprot):
6492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6494
      return
6495
    iprot.readStructBegin()
6496
    while True:
6497
      (fname, ftype, fid) = iprot.readFieldBegin()
6498
      if ftype == TType.STOP:
6499
        break
6500
      if fid == 0:
6501
        if ftype == TType.STRUCT:
6502
          self.success = Address()
6503
          self.success.read(iprot)
6504
        else:
6505
          iprot.skip(ftype)
6506
      elif fid == 1:
6507
        if ftype == TType.STRUCT:
6508
          self.ucx = UserContextException()
6509
          self.ucx.read(iprot)
6510
        else:
6511
          iprot.skip(ftype)
6512
      else:
6513
        iprot.skip(ftype)
6514
      iprot.readFieldEnd()
6515
    iprot.readStructEnd()
6516
 
6517
  def write(self, oprot):
6518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6520
      return
6521
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6522
    if self.success is not None:
1894 vikas 6523
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6524
      self.success.write(oprot)
6525
      oprot.writeFieldEnd()
3431 rajveer 6526
    if self.ucx is not None:
1894 vikas 6527
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6528
      self.ucx.write(oprot)
6529
      oprot.writeFieldEnd()
6530
    oprot.writeFieldStop()
6531
    oprot.writeStructEnd()
6532
 
3431 rajveer 6533
  def validate(self):
6534
    return
6535
 
6536
 
1894 vikas 6537
  def __repr__(self):
6538
    L = ['%s=%r' % (key, value)
6539
      for key, value in self.__dict__.iteritems()]
6540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6541
 
6542
  def __eq__(self, other):
6543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6544
 
6545
  def __ne__(self, other):
6546
    return not (self == other)
6547
 
594 rajveer 6548
class getDefaultAddressId_args:
6549
  """
6550
  Attributes:
6551
   - userId
6552
  """
6553
 
6554
  thrift_spec = (
6555
    None, # 0
6556
    (1, TType.I64, 'userId', None, None, ), # 1
6557
  )
6558
 
6559
  def __init__(self, userId=None,):
6560
    self.userId = userId
6561
 
6562
  def read(self, iprot):
6563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6565
      return
6566
    iprot.readStructBegin()
6567
    while True:
6568
      (fname, ftype, fid) = iprot.readFieldBegin()
6569
      if ftype == TType.STOP:
6570
        break
6571
      if fid == 1:
6572
        if ftype == TType.I64:
6573
          self.userId = iprot.readI64();
6574
        else:
6575
          iprot.skip(ftype)
6576
      else:
6577
        iprot.skip(ftype)
6578
      iprot.readFieldEnd()
6579
    iprot.readStructEnd()
6580
 
6581
  def write(self, oprot):
6582
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6583
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6584
      return
6585
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6586
    if self.userId is not None:
594 rajveer 6587
      oprot.writeFieldBegin('userId', TType.I64, 1)
6588
      oprot.writeI64(self.userId)
6589
      oprot.writeFieldEnd()
6590
    oprot.writeFieldStop()
6591
    oprot.writeStructEnd()
6592
 
3431 rajveer 6593
  def validate(self):
6594
    return
6595
 
6596
 
594 rajveer 6597
  def __repr__(self):
6598
    L = ['%s=%r' % (key, value)
6599
      for key, value in self.__dict__.iteritems()]
6600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6601
 
6602
  def __eq__(self, other):
6603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6604
 
6605
  def __ne__(self, other):
6606
    return not (self == other)
6607
 
6608
class getDefaultAddressId_result:
6609
  """
6610
  Attributes:
6611
   - success
6612
   - ucx
6613
  """
6614
 
6615
  thrift_spec = (
6616
    (0, TType.I64, 'success', None, None, ), # 0
6617
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6618
  )
6619
 
6620
  def __init__(self, success=None, ucx=None,):
6621
    self.success = success
6622
    self.ucx = ucx
6623
 
6624
  def read(self, iprot):
6625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6627
      return
6628
    iprot.readStructBegin()
6629
    while True:
6630
      (fname, ftype, fid) = iprot.readFieldBegin()
6631
      if ftype == TType.STOP:
6632
        break
6633
      if fid == 0:
6634
        if ftype == TType.I64:
6635
          self.success = iprot.readI64();
6636
        else:
6637
          iprot.skip(ftype)
6638
      elif fid == 1:
6639
        if ftype == TType.STRUCT:
6640
          self.ucx = UserContextException()
6641
          self.ucx.read(iprot)
6642
        else:
6643
          iprot.skip(ftype)
6644
      else:
6645
        iprot.skip(ftype)
6646
      iprot.readFieldEnd()
6647
    iprot.readStructEnd()
6648
 
6649
  def write(self, oprot):
6650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6652
      return
6653
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6654
    if self.success is not None:
594 rajveer 6655
      oprot.writeFieldBegin('success', TType.I64, 0)
6656
      oprot.writeI64(self.success)
6657
      oprot.writeFieldEnd()
3431 rajveer 6658
    if self.ucx is not None:
594 rajveer 6659
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6660
      self.ucx.write(oprot)
6661
      oprot.writeFieldEnd()
6662
    oprot.writeFieldStop()
6663
    oprot.writeStructEnd()
6664
 
3431 rajveer 6665
  def validate(self):
6666
    return
6667
 
6668
 
594 rajveer 6669
  def __repr__(self):
6670
    L = ['%s=%r' % (key, value)
6671
      for key, value in self.__dict__.iteritems()]
6672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6673
 
6674
  def __eq__(self, other):
6675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6676
 
6677
  def __ne__(self, other):
6678
    return not (self == other)
6679
 
785 rajveer 6680
class getDefaultPincode_args:
6681
  """
6682
  Attributes:
6683
   - userId
6684
  """
6685
 
6686
  thrift_spec = (
6687
    None, # 0
6688
    (1, TType.I64, 'userId', None, None, ), # 1
6689
  )
6690
 
6691
  def __init__(self, userId=None,):
6692
    self.userId = userId
6693
 
6694
  def read(self, iprot):
6695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6697
      return
6698
    iprot.readStructBegin()
6699
    while True:
6700
      (fname, ftype, fid) = iprot.readFieldBegin()
6701
      if ftype == TType.STOP:
6702
        break
6703
      if fid == 1:
6704
        if ftype == TType.I64:
6705
          self.userId = iprot.readI64();
6706
        else:
6707
          iprot.skip(ftype)
6708
      else:
6709
        iprot.skip(ftype)
6710
      iprot.readFieldEnd()
6711
    iprot.readStructEnd()
6712
 
6713
  def write(self, oprot):
6714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6716
      return
6717
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6718
    if self.userId is not None:
785 rajveer 6719
      oprot.writeFieldBegin('userId', TType.I64, 1)
6720
      oprot.writeI64(self.userId)
6721
      oprot.writeFieldEnd()
6722
    oprot.writeFieldStop()
6723
    oprot.writeStructEnd()
6724
 
3431 rajveer 6725
  def validate(self):
6726
    return
6727
 
6728
 
785 rajveer 6729
  def __repr__(self):
6730
    L = ['%s=%r' % (key, value)
6731
      for key, value in self.__dict__.iteritems()]
6732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6733
 
6734
  def __eq__(self, other):
6735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6736
 
6737
  def __ne__(self, other):
6738
    return not (self == other)
6739
 
6740
class getDefaultPincode_result:
6741
  """
6742
  Attributes:
6743
   - success
6744
   - ucx
6745
  """
6746
 
6747
  thrift_spec = (
6748
    (0, TType.STRING, 'success', None, None, ), # 0
6749
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6750
  )
6751
 
6752
  def __init__(self, success=None, ucx=None,):
6753
    self.success = success
6754
    self.ucx = ucx
6755
 
6756
  def read(self, iprot):
6757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6759
      return
6760
    iprot.readStructBegin()
6761
    while True:
6762
      (fname, ftype, fid) = iprot.readFieldBegin()
6763
      if ftype == TType.STOP:
6764
        break
6765
      if fid == 0:
6766
        if ftype == TType.STRING:
6767
          self.success = iprot.readString();
6768
        else:
6769
          iprot.skip(ftype)
6770
      elif fid == 1:
6771
        if ftype == TType.STRUCT:
6772
          self.ucx = UserContextException()
6773
          self.ucx.read(iprot)
6774
        else:
6775
          iprot.skip(ftype)
6776
      else:
6777
        iprot.skip(ftype)
6778
      iprot.readFieldEnd()
6779
    iprot.readStructEnd()
6780
 
6781
  def write(self, oprot):
6782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6784
      return
6785
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6786
    if self.success is not None:
785 rajveer 6787
      oprot.writeFieldBegin('success', TType.STRING, 0)
6788
      oprot.writeString(self.success)
6789
      oprot.writeFieldEnd()
3431 rajveer 6790
    if self.ucx is not None:
785 rajveer 6791
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6792
      self.ucx.write(oprot)
6793
      oprot.writeFieldEnd()
6794
    oprot.writeFieldStop()
6795
    oprot.writeStructEnd()
6796
 
3431 rajveer 6797
  def validate(self):
6798
    return
6799
 
6800
 
785 rajveer 6801
  def __repr__(self):
6802
    L = ['%s=%r' % (key, value)
6803
      for key, value in self.__dict__.iteritems()]
6804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6805
 
6806
  def __eq__(self, other):
6807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6808
 
6809
  def __ne__(self, other):
6810
    return not (self == other)
6811
 
1274 varun.gupt 6812
class saveUserCommunication_args:
6813
  """
6814
  Attributes:
6815
   - userId
6816
   - replyTo
6817
   - communicationType
6818
   - orderId
6819
   - airwaybillNo
6820
   - productName
6821
   - subject
6822
   - message
6823
  """
6824
 
6825
  thrift_spec = (
6826
    None, # 0
6827
    (1, TType.I64, 'userId', None, None, ), # 1
6828
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6829
    (3, TType.I64, 'communicationType', None, None, ), # 3
6830
    (4, TType.I64, 'orderId', None, None, ), # 4
6831
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6832
    (6, TType.STRING, 'productName', None, None, ), # 6
6833
    (7, TType.STRING, 'subject', None, None, ), # 7
6834
    (8, TType.STRING, 'message', None, None, ), # 8
6835
  )
6836
 
6837
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6838
    self.userId = userId
6839
    self.replyTo = replyTo
6840
    self.communicationType = communicationType
6841
    self.orderId = orderId
6842
    self.airwaybillNo = airwaybillNo
6843
    self.productName = productName
6844
    self.subject = subject
6845
    self.message = message
6846
 
6847
  def read(self, iprot):
6848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6850
      return
6851
    iprot.readStructBegin()
6852
    while True:
6853
      (fname, ftype, fid) = iprot.readFieldBegin()
6854
      if ftype == TType.STOP:
6855
        break
6856
      if fid == 1:
6857
        if ftype == TType.I64:
6858
          self.userId = iprot.readI64();
6859
        else:
6860
          iprot.skip(ftype)
6861
      elif fid == 2:
6862
        if ftype == TType.STRING:
6863
          self.replyTo = iprot.readString();
6864
        else:
6865
          iprot.skip(ftype)
6866
      elif fid == 3:
6867
        if ftype == TType.I64:
6868
          self.communicationType = iprot.readI64();
6869
        else:
6870
          iprot.skip(ftype)
6871
      elif fid == 4:
6872
        if ftype == TType.I64:
6873
          self.orderId = iprot.readI64();
6874
        else:
6875
          iprot.skip(ftype)
6876
      elif fid == 5:
6877
        if ftype == TType.STRING:
6878
          self.airwaybillNo = iprot.readString();
6879
        else:
6880
          iprot.skip(ftype)
6881
      elif fid == 6:
6882
        if ftype == TType.STRING:
6883
          self.productName = iprot.readString();
6884
        else:
6885
          iprot.skip(ftype)
6886
      elif fid == 7:
6887
        if ftype == TType.STRING:
6888
          self.subject = iprot.readString();
6889
        else:
6890
          iprot.skip(ftype)
6891
      elif fid == 8:
6892
        if ftype == TType.STRING:
6893
          self.message = iprot.readString();
6894
        else:
6895
          iprot.skip(ftype)
6896
      else:
6897
        iprot.skip(ftype)
6898
      iprot.readFieldEnd()
6899
    iprot.readStructEnd()
6900
 
6901
  def write(self, oprot):
6902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6904
      return
6905
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6906
    if self.userId is not None:
1274 varun.gupt 6907
      oprot.writeFieldBegin('userId', TType.I64, 1)
6908
      oprot.writeI64(self.userId)
6909
      oprot.writeFieldEnd()
3431 rajveer 6910
    if self.replyTo is not None:
1274 varun.gupt 6911
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6912
      oprot.writeString(self.replyTo)
6913
      oprot.writeFieldEnd()
3431 rajveer 6914
    if self.communicationType is not None:
1274 varun.gupt 6915
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6916
      oprot.writeI64(self.communicationType)
6917
      oprot.writeFieldEnd()
3431 rajveer 6918
    if self.orderId is not None:
1274 varun.gupt 6919
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6920
      oprot.writeI64(self.orderId)
6921
      oprot.writeFieldEnd()
3431 rajveer 6922
    if self.airwaybillNo is not None:
1274 varun.gupt 6923
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6924
      oprot.writeString(self.airwaybillNo)
6925
      oprot.writeFieldEnd()
3431 rajveer 6926
    if self.productName is not None:
1274 varun.gupt 6927
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6928
      oprot.writeString(self.productName)
6929
      oprot.writeFieldEnd()
3431 rajveer 6930
    if self.subject is not None:
1274 varun.gupt 6931
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6932
      oprot.writeString(self.subject)
6933
      oprot.writeFieldEnd()
3431 rajveer 6934
    if self.message is not None:
1274 varun.gupt 6935
      oprot.writeFieldBegin('message', TType.STRING, 8)
6936
      oprot.writeString(self.message)
6937
      oprot.writeFieldEnd()
6938
    oprot.writeFieldStop()
6939
    oprot.writeStructEnd()
6940
 
3431 rajveer 6941
  def validate(self):
6942
    return
6943
 
6944
 
1274 varun.gupt 6945
  def __repr__(self):
6946
    L = ['%s=%r' % (key, value)
6947
      for key, value in self.__dict__.iteritems()]
6948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6949
 
6950
  def __eq__(self, other):
6951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6952
 
6953
  def __ne__(self, other):
6954
    return not (self == other)
6955
 
6956
class saveUserCommunication_result:
6957
  """
6958
  Attributes:
6959
   - success
6960
   - ucx
6961
  """
6962
 
6963
  thrift_spec = (
6964
    (0, TType.BOOL, 'success', None, None, ), # 0
6965
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6966
  )
6967
 
6968
  def __init__(self, success=None, ucx=None,):
6969
    self.success = success
6970
    self.ucx = ucx
6971
 
6972
  def read(self, iprot):
6973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6975
      return
6976
    iprot.readStructBegin()
6977
    while True:
6978
      (fname, ftype, fid) = iprot.readFieldBegin()
6979
      if ftype == TType.STOP:
6980
        break
6981
      if fid == 0:
6982
        if ftype == TType.BOOL:
6983
          self.success = iprot.readBool();
6984
        else:
6985
          iprot.skip(ftype)
6986
      elif fid == 1:
6987
        if ftype == TType.STRUCT:
6988
          self.ucx = UserCommunicationException()
6989
          self.ucx.read(iprot)
6990
        else:
6991
          iprot.skip(ftype)
6992
      else:
6993
        iprot.skip(ftype)
6994
      iprot.readFieldEnd()
6995
    iprot.readStructEnd()
6996
 
6997
  def write(self, oprot):
6998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7000
      return
7001
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7002
    if self.success is not None:
1274 varun.gupt 7003
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7004
      oprot.writeBool(self.success)
7005
      oprot.writeFieldEnd()
3431 rajveer 7006
    if self.ucx is not None:
1274 varun.gupt 7007
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7008
      self.ucx.write(oprot)
7009
      oprot.writeFieldEnd()
7010
    oprot.writeFieldStop()
7011
    oprot.writeStructEnd()
7012
 
3431 rajveer 7013
  def validate(self):
7014
    return
7015
 
7016
 
1274 varun.gupt 7017
  def __repr__(self):
7018
    L = ['%s=%r' % (key, value)
7019
      for key, value in self.__dict__.iteritems()]
7020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7021
 
7022
  def __eq__(self, other):
7023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7024
 
7025
  def __ne__(self, other):
7026
    return not (self == other)
7027
 
1590 varun.gupt 7028
class getUserCommunicationById_args:
7029
  """
7030
  Attributes:
7031
   - id
7032
  """
7033
 
7034
  thrift_spec = (
7035
    None, # 0
7036
    (1, TType.I64, 'id', None, None, ), # 1
7037
  )
7038
 
7039
  def __init__(self, id=None,):
7040
    self.id = id
7041
 
7042
  def read(self, iprot):
7043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7045
      return
7046
    iprot.readStructBegin()
7047
    while True:
7048
      (fname, ftype, fid) = iprot.readFieldBegin()
7049
      if ftype == TType.STOP:
7050
        break
7051
      if fid == 1:
7052
        if ftype == TType.I64:
7053
          self.id = iprot.readI64();
7054
        else:
7055
          iprot.skip(ftype)
7056
      else:
7057
        iprot.skip(ftype)
7058
      iprot.readFieldEnd()
7059
    iprot.readStructEnd()
7060
 
7061
  def write(self, oprot):
7062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7064
      return
7065
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7066
    if self.id is not None:
1590 varun.gupt 7067
      oprot.writeFieldBegin('id', TType.I64, 1)
7068
      oprot.writeI64(self.id)
7069
      oprot.writeFieldEnd()
7070
    oprot.writeFieldStop()
7071
    oprot.writeStructEnd()
7072
 
3431 rajveer 7073
  def validate(self):
7074
    return
7075
 
7076
 
1590 varun.gupt 7077
  def __repr__(self):
7078
    L = ['%s=%r' % (key, value)
7079
      for key, value in self.__dict__.iteritems()]
7080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7081
 
7082
  def __eq__(self, other):
7083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7084
 
7085
  def __ne__(self, other):
7086
    return not (self == other)
7087
 
7088
class getUserCommunicationById_result:
7089
  """
7090
  Attributes:
7091
   - success
7092
   - ucx
7093
  """
7094
 
7095
  thrift_spec = (
7096
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7097
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7098
  )
7099
 
7100
  def __init__(self, success=None, ucx=None,):
7101
    self.success = success
7102
    self.ucx = ucx
7103
 
7104
  def read(self, iprot):
7105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7107
      return
7108
    iprot.readStructBegin()
7109
    while True:
7110
      (fname, ftype, fid) = iprot.readFieldBegin()
7111
      if ftype == TType.STOP:
7112
        break
7113
      if fid == 0:
7114
        if ftype == TType.STRUCT:
7115
          self.success = UserCommunication()
7116
          self.success.read(iprot)
7117
        else:
7118
          iprot.skip(ftype)
7119
      elif fid == 1:
7120
        if ftype == TType.STRUCT:
7121
          self.ucx = UserCommunicationException()
7122
          self.ucx.read(iprot)
7123
        else:
7124
          iprot.skip(ftype)
7125
      else:
7126
        iprot.skip(ftype)
7127
      iprot.readFieldEnd()
7128
    iprot.readStructEnd()
7129
 
7130
  def write(self, oprot):
7131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7133
      return
7134
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7135
    if self.success is not None:
1590 varun.gupt 7136
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7137
      self.success.write(oprot)
7138
      oprot.writeFieldEnd()
3431 rajveer 7139
    if self.ucx is not None:
1590 varun.gupt 7140
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7141
      self.ucx.write(oprot)
7142
      oprot.writeFieldEnd()
7143
    oprot.writeFieldStop()
7144
    oprot.writeStructEnd()
7145
 
3431 rajveer 7146
  def validate(self):
7147
    return
7148
 
7149
 
1590 varun.gupt 7150
  def __repr__(self):
7151
    L = ['%s=%r' % (key, value)
7152
      for key, value in self.__dict__.iteritems()]
7153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7154
 
7155
  def __eq__(self, other):
7156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7157
 
7158
  def __ne__(self, other):
7159
    return not (self == other)
7160
 
7161
class getUserCommunicationByUser_args:
7162
  """
7163
  Attributes:
7164
   - userId
7165
  """
7166
 
7167
  thrift_spec = (
7168
    None, # 0
7169
    (1, TType.I64, 'userId', None, None, ), # 1
7170
  )
7171
 
7172
  def __init__(self, userId=None,):
7173
    self.userId = userId
7174
 
7175
  def read(self, iprot):
7176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7178
      return
7179
    iprot.readStructBegin()
7180
    while True:
7181
      (fname, ftype, fid) = iprot.readFieldBegin()
7182
      if ftype == TType.STOP:
7183
        break
7184
      if fid == 1:
7185
        if ftype == TType.I64:
7186
          self.userId = iprot.readI64();
7187
        else:
7188
          iprot.skip(ftype)
7189
      else:
7190
        iprot.skip(ftype)
7191
      iprot.readFieldEnd()
7192
    iprot.readStructEnd()
7193
 
7194
  def write(self, oprot):
7195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7197
      return
7198
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7199
    if self.userId is not None:
1590 varun.gupt 7200
      oprot.writeFieldBegin('userId', TType.I64, 1)
7201
      oprot.writeI64(self.userId)
7202
      oprot.writeFieldEnd()
7203
    oprot.writeFieldStop()
7204
    oprot.writeStructEnd()
7205
 
3431 rajveer 7206
  def validate(self):
7207
    return
7208
 
7209
 
1590 varun.gupt 7210
  def __repr__(self):
7211
    L = ['%s=%r' % (key, value)
7212
      for key, value in self.__dict__.iteritems()]
7213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7214
 
7215
  def __eq__(self, other):
7216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7217
 
7218
  def __ne__(self, other):
7219
    return not (self == other)
7220
 
7221
class getUserCommunicationByUser_result:
7222
  """
7223
  Attributes:
7224
   - success
7225
   - ucx
7226
  """
7227
 
7228
  thrift_spec = (
7229
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7230
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7231
  )
7232
 
7233
  def __init__(self, success=None, ucx=None,):
7234
    self.success = success
7235
    self.ucx = ucx
7236
 
7237
  def read(self, iprot):
7238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7240
      return
7241
    iprot.readStructBegin()
7242
    while True:
7243
      (fname, ftype, fid) = iprot.readFieldBegin()
7244
      if ftype == TType.STOP:
7245
        break
7246
      if fid == 0:
7247
        if ftype == TType.LIST:
7248
          self.success = []
3385 varun.gupt 7249
          (_etype45, _size42) = iprot.readListBegin()
7250
          for _i46 in xrange(_size42):
7251
            _elem47 = UserCommunication()
7252
            _elem47.read(iprot)
7253
            self.success.append(_elem47)
1590 varun.gupt 7254
          iprot.readListEnd()
7255
        else:
7256
          iprot.skip(ftype)
7257
      elif fid == 1:
7258
        if ftype == TType.STRUCT:
7259
          self.ucx = UserCommunicationException()
7260
          self.ucx.read(iprot)
7261
        else:
7262
          iprot.skip(ftype)
7263
      else:
7264
        iprot.skip(ftype)
7265
      iprot.readFieldEnd()
7266
    iprot.readStructEnd()
7267
 
7268
  def write(self, oprot):
7269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7271
      return
7272
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7273
    if self.success is not None:
1590 varun.gupt 7274
      oprot.writeFieldBegin('success', TType.LIST, 0)
7275
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7276
      for iter48 in self.success:
7277
        iter48.write(oprot)
1590 varun.gupt 7278
      oprot.writeListEnd()
7279
      oprot.writeFieldEnd()
3431 rajveer 7280
    if self.ucx is not None:
1590 varun.gupt 7281
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7282
      self.ucx.write(oprot)
7283
      oprot.writeFieldEnd()
7284
    oprot.writeFieldStop()
7285
    oprot.writeStructEnd()
7286
 
3431 rajveer 7287
  def validate(self):
7288
    return
7289
 
7290
 
1590 varun.gupt 7291
  def __repr__(self):
7292
    L = ['%s=%r' % (key, value)
7293
      for key, value in self.__dict__.iteritems()]
7294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7295
 
7296
  def __eq__(self, other):
7297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7298
 
7299
  def __ne__(self, other):
7300
    return not (self == other)
7301
 
7302
class getAllUserCommunications_args:
7303
 
7304
  thrift_spec = (
7305
  )
7306
 
7307
  def read(self, iprot):
7308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7310
      return
7311
    iprot.readStructBegin()
7312
    while True:
7313
      (fname, ftype, fid) = iprot.readFieldBegin()
7314
      if ftype == TType.STOP:
7315
        break
7316
      else:
7317
        iprot.skip(ftype)
7318
      iprot.readFieldEnd()
7319
    iprot.readStructEnd()
7320
 
7321
  def write(self, oprot):
7322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7324
      return
7325
    oprot.writeStructBegin('getAllUserCommunications_args')
7326
    oprot.writeFieldStop()
7327
    oprot.writeStructEnd()
7328
 
3431 rajveer 7329
  def validate(self):
7330
    return
7331
 
7332
 
1590 varun.gupt 7333
  def __repr__(self):
7334
    L = ['%s=%r' % (key, value)
7335
      for key, value in self.__dict__.iteritems()]
7336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7337
 
7338
  def __eq__(self, other):
7339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7340
 
7341
  def __ne__(self, other):
7342
    return not (self == other)
7343
 
7344
class getAllUserCommunications_result:
7345
  """
7346
  Attributes:
7347
   - success
7348
   - ucx
7349
  """
7350
 
7351
  thrift_spec = (
7352
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7353
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7354
  )
7355
 
7356
  def __init__(self, success=None, ucx=None,):
7357
    self.success = success
7358
    self.ucx = ucx
7359
 
7360
  def read(self, iprot):
7361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7363
      return
7364
    iprot.readStructBegin()
7365
    while True:
7366
      (fname, ftype, fid) = iprot.readFieldBegin()
7367
      if ftype == TType.STOP:
7368
        break
7369
      if fid == 0:
7370
        if ftype == TType.LIST:
7371
          self.success = []
3385 varun.gupt 7372
          (_etype52, _size49) = iprot.readListBegin()
7373
          for _i53 in xrange(_size49):
7374
            _elem54 = UserCommunication()
7375
            _elem54.read(iprot)
7376
            self.success.append(_elem54)
1590 varun.gupt 7377
          iprot.readListEnd()
7378
        else:
7379
          iprot.skip(ftype)
7380
      elif fid == 1:
7381
        if ftype == TType.STRUCT:
7382
          self.ucx = UserCommunicationException()
7383
          self.ucx.read(iprot)
7384
        else:
7385
          iprot.skip(ftype)
7386
      else:
7387
        iprot.skip(ftype)
7388
      iprot.readFieldEnd()
7389
    iprot.readStructEnd()
7390
 
7391
  def write(self, oprot):
7392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7394
      return
7395
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7396
    if self.success is not None:
1590 varun.gupt 7397
      oprot.writeFieldBegin('success', TType.LIST, 0)
7398
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7399
      for iter55 in self.success:
7400
        iter55.write(oprot)
1590 varun.gupt 7401
      oprot.writeListEnd()
7402
      oprot.writeFieldEnd()
3431 rajveer 7403
    if self.ucx is not None:
1590 varun.gupt 7404
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7405
      self.ucx.write(oprot)
7406
      oprot.writeFieldEnd()
7407
    oprot.writeFieldStop()
7408
    oprot.writeStructEnd()
7409
 
3431 rajveer 7410
  def validate(self):
7411
    return
7412
 
7413
 
1590 varun.gupt 7414
  def __repr__(self):
7415
    L = ['%s=%r' % (key, value)
7416
      for key, value in self.__dict__.iteritems()]
7417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7418
 
7419
  def __eq__(self, other):
7420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7421
 
7422
  def __ne__(self, other):
7423
    return not (self == other)
7424
 
1845 vikas 7425
class createMasterAffiliate_args:
7426
  """
7427
  Attributes:
7428
   - name
1859 vikas 7429
   - addedOn
1845 vikas 7430
  """
7431
 
7432
  thrift_spec = (
7433
    None, # 0
7434
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7435
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7436
  )
7437
 
1859 vikas 7438
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7439
    self.name = name
1859 vikas 7440
    self.addedOn = addedOn
1845 vikas 7441
 
7442
  def read(self, iprot):
7443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7445
      return
7446
    iprot.readStructBegin()
7447
    while True:
7448
      (fname, ftype, fid) = iprot.readFieldBegin()
7449
      if ftype == TType.STOP:
7450
        break
7451
      if fid == 1:
7452
        if ftype == TType.STRING:
7453
          self.name = iprot.readString();
7454
        else:
7455
          iprot.skip(ftype)
1859 vikas 7456
      elif fid == 2:
7457
        if ftype == TType.I64:
7458
          self.addedOn = iprot.readI64();
7459
        else:
7460
          iprot.skip(ftype)
1845 vikas 7461
      else:
7462
        iprot.skip(ftype)
7463
      iprot.readFieldEnd()
7464
    iprot.readStructEnd()
7465
 
7466
  def write(self, oprot):
7467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7469
      return
7470
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7471
    if self.name is not None:
1845 vikas 7472
      oprot.writeFieldBegin('name', TType.STRING, 1)
7473
      oprot.writeString(self.name)
7474
      oprot.writeFieldEnd()
3431 rajveer 7475
    if self.addedOn is not None:
1859 vikas 7476
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7477
      oprot.writeI64(self.addedOn)
7478
      oprot.writeFieldEnd()
1845 vikas 7479
    oprot.writeFieldStop()
7480
    oprot.writeStructEnd()
7481
 
3431 rajveer 7482
  def validate(self):
7483
    return
7484
 
7485
 
1845 vikas 7486
  def __repr__(self):
7487
    L = ['%s=%r' % (key, value)
7488
      for key, value in self.__dict__.iteritems()]
7489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7490
 
7491
  def __eq__(self, other):
7492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7493
 
7494
  def __ne__(self, other):
7495
    return not (self == other)
7496
 
7497
class createMasterAffiliate_result:
7498
  """
7499
  Attributes:
7500
   - success
7501
   - utx
7502
  """
7503
 
7504
  thrift_spec = (
7505
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7506
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7507
  )
7508
 
7509
  def __init__(self, success=None, utx=None,):
7510
    self.success = success
7511
    self.utx = utx
7512
 
7513
  def read(self, iprot):
7514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7516
      return
7517
    iprot.readStructBegin()
7518
    while True:
7519
      (fname, ftype, fid) = iprot.readFieldBegin()
7520
      if ftype == TType.STOP:
7521
        break
7522
      if fid == 0:
7523
        if ftype == TType.STRUCT:
7524
          self.success = MasterAffiliate()
7525
          self.success.read(iprot)
7526
        else:
7527
          iprot.skip(ftype)
7528
      elif fid == 1:
7529
        if ftype == TType.STRUCT:
1996 vikas 7530
          self.utx = UserAffiliateException()
1845 vikas 7531
          self.utx.read(iprot)
7532
        else:
7533
          iprot.skip(ftype)
7534
      else:
7535
        iprot.skip(ftype)
7536
      iprot.readFieldEnd()
7537
    iprot.readStructEnd()
7538
 
7539
  def write(self, oprot):
7540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7542
      return
7543
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7544
    if self.success is not None:
1845 vikas 7545
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7546
      self.success.write(oprot)
7547
      oprot.writeFieldEnd()
3431 rajveer 7548
    if self.utx is not None:
1845 vikas 7549
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7550
      self.utx.write(oprot)
7551
      oprot.writeFieldEnd()
7552
    oprot.writeFieldStop()
7553
    oprot.writeStructEnd()
7554
 
3431 rajveer 7555
  def validate(self):
7556
    return
7557
 
7558
 
1845 vikas 7559
  def __repr__(self):
7560
    L = ['%s=%r' % (key, value)
7561
      for key, value in self.__dict__.iteritems()]
7562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7563
 
7564
  def __eq__(self, other):
7565
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7566
 
7567
  def __ne__(self, other):
7568
    return not (self == other)
7569
 
1899 vikas 7570
class getAllMasterAffiliates_args:
7571
 
7572
  thrift_spec = (
7573
  )
7574
 
7575
  def read(self, iprot):
7576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7578
      return
7579
    iprot.readStructBegin()
7580
    while True:
7581
      (fname, ftype, fid) = iprot.readFieldBegin()
7582
      if ftype == TType.STOP:
7583
        break
7584
      else:
7585
        iprot.skip(ftype)
7586
      iprot.readFieldEnd()
7587
    iprot.readStructEnd()
7588
 
7589
  def write(self, oprot):
7590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7592
      return
7593
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7594
    oprot.writeFieldStop()
7595
    oprot.writeStructEnd()
7596
 
3431 rajveer 7597
  def validate(self):
7598
    return
7599
 
7600
 
1899 vikas 7601
  def __repr__(self):
7602
    L = ['%s=%r' % (key, value)
7603
      for key, value in self.__dict__.iteritems()]
7604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7605
 
7606
  def __eq__(self, other):
7607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7608
 
7609
  def __ne__(self, other):
7610
    return not (self == other)
7611
 
7612
class getAllMasterAffiliates_result:
7613
  """
7614
  Attributes:
7615
   - success
7616
   - utx
7617
  """
7618
 
7619
  thrift_spec = (
7620
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7621
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7622
  )
7623
 
7624
  def __init__(self, success=None, utx=None,):
7625
    self.success = success
7626
    self.utx = utx
7627
 
7628
  def read(self, iprot):
7629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7631
      return
7632
    iprot.readStructBegin()
7633
    while True:
7634
      (fname, ftype, fid) = iprot.readFieldBegin()
7635
      if ftype == TType.STOP:
7636
        break
7637
      if fid == 0:
7638
        if ftype == TType.LIST:
7639
          self.success = []
3385 varun.gupt 7640
          (_etype59, _size56) = iprot.readListBegin()
7641
          for _i60 in xrange(_size56):
7642
            _elem61 = MasterAffiliate()
7643
            _elem61.read(iprot)
7644
            self.success.append(_elem61)
1899 vikas 7645
          iprot.readListEnd()
7646
        else:
7647
          iprot.skip(ftype)
7648
      elif fid == 1:
7649
        if ftype == TType.STRUCT:
1996 vikas 7650
          self.utx = UserAffiliateException()
1899 vikas 7651
          self.utx.read(iprot)
7652
        else:
7653
          iprot.skip(ftype)
7654
      else:
7655
        iprot.skip(ftype)
7656
      iprot.readFieldEnd()
7657
    iprot.readStructEnd()
7658
 
7659
  def write(self, oprot):
7660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7662
      return
7663
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7664
    if self.success is not None:
1899 vikas 7665
      oprot.writeFieldBegin('success', TType.LIST, 0)
7666
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7667
      for iter62 in self.success:
7668
        iter62.write(oprot)
1899 vikas 7669
      oprot.writeListEnd()
7670
      oprot.writeFieldEnd()
3431 rajveer 7671
    if self.utx is not None:
1899 vikas 7672
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7673
      self.utx.write(oprot)
7674
      oprot.writeFieldEnd()
7675
    oprot.writeFieldStop()
7676
    oprot.writeStructEnd()
7677
 
3431 rajveer 7678
  def validate(self):
7679
    return
7680
 
7681
 
1899 vikas 7682
  def __repr__(self):
7683
    L = ['%s=%r' % (key, value)
7684
      for key, value in self.__dict__.iteritems()]
7685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7686
 
7687
  def __eq__(self, other):
7688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7689
 
7690
  def __ne__(self, other):
7691
    return not (self == other)
7692
 
1845 vikas 7693
class getMasterAffiliateById_args:
7694
  """
7695
  Attributes:
7696
   - id
7697
  """
7698
 
7699
  thrift_spec = (
7700
    None, # 0
7701
    (1, TType.I64, 'id', None, None, ), # 1
7702
  )
7703
 
7704
  def __init__(self, id=None,):
7705
    self.id = id
7706
 
7707
  def read(self, iprot):
7708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7710
      return
7711
    iprot.readStructBegin()
7712
    while True:
7713
      (fname, ftype, fid) = iprot.readFieldBegin()
7714
      if ftype == TType.STOP:
7715
        break
7716
      if fid == 1:
7717
        if ftype == TType.I64:
7718
          self.id = iprot.readI64();
7719
        else:
7720
          iprot.skip(ftype)
7721
      else:
7722
        iprot.skip(ftype)
7723
      iprot.readFieldEnd()
7724
    iprot.readStructEnd()
7725
 
7726
  def write(self, oprot):
7727
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7728
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7729
      return
7730
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7731
    if self.id is not None:
1845 vikas 7732
      oprot.writeFieldBegin('id', TType.I64, 1)
7733
      oprot.writeI64(self.id)
7734
      oprot.writeFieldEnd()
7735
    oprot.writeFieldStop()
7736
    oprot.writeStructEnd()
7737
 
3431 rajveer 7738
  def validate(self):
7739
    return
7740
 
7741
 
1845 vikas 7742
  def __repr__(self):
7743
    L = ['%s=%r' % (key, value)
7744
      for key, value in self.__dict__.iteritems()]
7745
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7746
 
7747
  def __eq__(self, other):
7748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7749
 
7750
  def __ne__(self, other):
7751
    return not (self == other)
7752
 
7753
class getMasterAffiliateById_result:
7754
  """
7755
  Attributes:
7756
   - success
7757
   - utx
7758
  """
7759
 
7760
  thrift_spec = (
7761
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7762
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7763
  )
7764
 
7765
  def __init__(self, success=None, utx=None,):
7766
    self.success = success
7767
    self.utx = utx
7768
 
7769
  def read(self, iprot):
7770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7772
      return
7773
    iprot.readStructBegin()
7774
    while True:
7775
      (fname, ftype, fid) = iprot.readFieldBegin()
7776
      if ftype == TType.STOP:
7777
        break
7778
      if fid == 0:
7779
        if ftype == TType.STRUCT:
7780
          self.success = MasterAffiliate()
7781
          self.success.read(iprot)
7782
        else:
7783
          iprot.skip(ftype)
7784
      elif fid == 1:
7785
        if ftype == TType.STRUCT:
1996 vikas 7786
          self.utx = UserAffiliateException()
1845 vikas 7787
          self.utx.read(iprot)
7788
        else:
7789
          iprot.skip(ftype)
7790
      else:
7791
        iprot.skip(ftype)
7792
      iprot.readFieldEnd()
7793
    iprot.readStructEnd()
7794
 
7795
  def write(self, oprot):
7796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7798
      return
7799
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7800
    if self.success is not None:
1845 vikas 7801
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7802
      self.success.write(oprot)
7803
      oprot.writeFieldEnd()
3431 rajveer 7804
    if self.utx is not None:
1845 vikas 7805
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7806
      self.utx.write(oprot)
7807
      oprot.writeFieldEnd()
7808
    oprot.writeFieldStop()
7809
    oprot.writeStructEnd()
7810
 
3431 rajveer 7811
  def validate(self):
7812
    return
7813
 
7814
 
1845 vikas 7815
  def __repr__(self):
7816
    L = ['%s=%r' % (key, value)
7817
      for key, value in self.__dict__.iteritems()]
7818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7819
 
7820
  def __eq__(self, other):
7821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7822
 
7823
  def __ne__(self, other):
7824
    return not (self == other)
7825
 
7826
class getMasterAffiliateByName_args:
7827
  """
7828
  Attributes:
7829
   - name
7830
  """
7831
 
7832
  thrift_spec = (
7833
    None, # 0
7834
    (1, TType.STRING, 'name', None, None, ), # 1
7835
  )
7836
 
7837
  def __init__(self, name=None,):
7838
    self.name = name
7839
 
7840
  def read(self, iprot):
7841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7843
      return
7844
    iprot.readStructBegin()
7845
    while True:
7846
      (fname, ftype, fid) = iprot.readFieldBegin()
7847
      if ftype == TType.STOP:
7848
        break
7849
      if fid == 1:
7850
        if ftype == TType.STRING:
7851
          self.name = iprot.readString();
7852
        else:
7853
          iprot.skip(ftype)
7854
      else:
7855
        iprot.skip(ftype)
7856
      iprot.readFieldEnd()
7857
    iprot.readStructEnd()
7858
 
7859
  def write(self, oprot):
7860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7862
      return
7863
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7864
    if self.name is not None:
1845 vikas 7865
      oprot.writeFieldBegin('name', TType.STRING, 1)
7866
      oprot.writeString(self.name)
7867
      oprot.writeFieldEnd()
7868
    oprot.writeFieldStop()
7869
    oprot.writeStructEnd()
7870
 
3431 rajveer 7871
  def validate(self):
7872
    return
7873
 
7874
 
1845 vikas 7875
  def __repr__(self):
7876
    L = ['%s=%r' % (key, value)
7877
      for key, value in self.__dict__.iteritems()]
7878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7879
 
7880
  def __eq__(self, other):
7881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7882
 
7883
  def __ne__(self, other):
7884
    return not (self == other)
7885
 
7886
class getMasterAffiliateByName_result:
7887
  """
7888
  Attributes:
7889
   - success
7890
   - utx
7891
  """
7892
 
7893
  thrift_spec = (
7894
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7895
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7896
  )
7897
 
7898
  def __init__(self, success=None, utx=None,):
7899
    self.success = success
7900
    self.utx = utx
7901
 
7902
  def read(self, iprot):
7903
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7904
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7905
      return
7906
    iprot.readStructBegin()
7907
    while True:
7908
      (fname, ftype, fid) = iprot.readFieldBegin()
7909
      if ftype == TType.STOP:
7910
        break
7911
      if fid == 0:
7912
        if ftype == TType.STRUCT:
7913
          self.success = MasterAffiliate()
7914
          self.success.read(iprot)
7915
        else:
7916
          iprot.skip(ftype)
7917
      elif fid == 1:
7918
        if ftype == TType.STRUCT:
1996 vikas 7919
          self.utx = UserAffiliateException()
1845 vikas 7920
          self.utx.read(iprot)
7921
        else:
7922
          iprot.skip(ftype)
7923
      else:
7924
        iprot.skip(ftype)
7925
      iprot.readFieldEnd()
7926
    iprot.readStructEnd()
7927
 
7928
  def write(self, oprot):
7929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7931
      return
7932
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7933
    if self.success is not None:
1845 vikas 7934
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7935
      self.success.write(oprot)
7936
      oprot.writeFieldEnd()
3431 rajveer 7937
    if self.utx is not None:
1845 vikas 7938
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7939
      self.utx.write(oprot)
7940
      oprot.writeFieldEnd()
7941
    oprot.writeFieldStop()
7942
    oprot.writeStructEnd()
7943
 
3431 rajveer 7944
  def validate(self):
7945
    return
7946
 
7947
 
1845 vikas 7948
  def __repr__(self):
7949
    L = ['%s=%r' % (key, value)
7950
      for key, value in self.__dict__.iteritems()]
7951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7952
 
7953
  def __eq__(self, other):
7954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7955
 
7956
  def __ne__(self, other):
7957
    return not (self == other)
7958
 
7959
class createAffiliate_args:
7960
  """
7961
  Attributes:
7962
   - name
7963
   - url
7964
   - masterAffiliateId
1859 vikas 7965
   - addedOn
1845 vikas 7966
  """
7967
 
7968
  thrift_spec = (
7969
    None, # 0
7970
    (1, TType.STRING, 'name', None, None, ), # 1
7971
    (2, TType.STRING, 'url', None, None, ), # 2
7972
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7973
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7974
  )
7975
 
1859 vikas 7976
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7977
    self.name = name
7978
    self.url = url
7979
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7980
    self.addedOn = addedOn
1845 vikas 7981
 
7982
  def read(self, iprot):
7983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7985
      return
7986
    iprot.readStructBegin()
7987
    while True:
7988
      (fname, ftype, fid) = iprot.readFieldBegin()
7989
      if ftype == TType.STOP:
7990
        break
7991
      if fid == 1:
7992
        if ftype == TType.STRING:
7993
          self.name = iprot.readString();
7994
        else:
7995
          iprot.skip(ftype)
7996
      elif fid == 2:
7997
        if ftype == TType.STRING:
7998
          self.url = iprot.readString();
7999
        else:
8000
          iprot.skip(ftype)
8001
      elif fid == 3:
8002
        if ftype == TType.I64:
8003
          self.masterAffiliateId = iprot.readI64();
8004
        else:
8005
          iprot.skip(ftype)
1859 vikas 8006
      elif fid == 4:
8007
        if ftype == TType.I64:
8008
          self.addedOn = iprot.readI64();
8009
        else:
8010
          iprot.skip(ftype)
1845 vikas 8011
      else:
8012
        iprot.skip(ftype)
8013
      iprot.readFieldEnd()
8014
    iprot.readStructEnd()
8015
 
8016
  def write(self, oprot):
8017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8019
      return
8020
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8021
    if self.name is not None:
1845 vikas 8022
      oprot.writeFieldBegin('name', TType.STRING, 1)
8023
      oprot.writeString(self.name)
8024
      oprot.writeFieldEnd()
3431 rajveer 8025
    if self.url is not None:
1845 vikas 8026
      oprot.writeFieldBegin('url', TType.STRING, 2)
8027
      oprot.writeString(self.url)
8028
      oprot.writeFieldEnd()
3431 rajveer 8029
    if self.masterAffiliateId is not None:
1845 vikas 8030
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8031
      oprot.writeI64(self.masterAffiliateId)
8032
      oprot.writeFieldEnd()
3431 rajveer 8033
    if self.addedOn is not None:
1859 vikas 8034
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8035
      oprot.writeI64(self.addedOn)
8036
      oprot.writeFieldEnd()
1845 vikas 8037
    oprot.writeFieldStop()
8038
    oprot.writeStructEnd()
8039
 
3431 rajveer 8040
  def validate(self):
8041
    return
8042
 
8043
 
1845 vikas 8044
  def __repr__(self):
8045
    L = ['%s=%r' % (key, value)
8046
      for key, value in self.__dict__.iteritems()]
8047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8048
 
8049
  def __eq__(self, other):
8050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8051
 
8052
  def __ne__(self, other):
8053
    return not (self == other)
8054
 
8055
class createAffiliate_result:
8056
  """
8057
  Attributes:
8058
   - success
8059
   - utx
8060
  """
8061
 
8062
  thrift_spec = (
8063
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8064
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8065
  )
8066
 
8067
  def __init__(self, success=None, utx=None,):
8068
    self.success = success
8069
    self.utx = utx
8070
 
8071
  def read(self, iprot):
8072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8074
      return
8075
    iprot.readStructBegin()
8076
    while True:
8077
      (fname, ftype, fid) = iprot.readFieldBegin()
8078
      if ftype == TType.STOP:
8079
        break
8080
      if fid == 0:
8081
        if ftype == TType.STRUCT:
8082
          self.success = Affiliate()
8083
          self.success.read(iprot)
8084
        else:
8085
          iprot.skip(ftype)
8086
      elif fid == 1:
8087
        if ftype == TType.STRUCT:
1996 vikas 8088
          self.utx = UserAffiliateException()
1845 vikas 8089
          self.utx.read(iprot)
8090
        else:
8091
          iprot.skip(ftype)
8092
      else:
8093
        iprot.skip(ftype)
8094
      iprot.readFieldEnd()
8095
    iprot.readStructEnd()
8096
 
8097
  def write(self, oprot):
8098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8100
      return
8101
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8102
    if self.success is not None:
1845 vikas 8103
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8104
      self.success.write(oprot)
8105
      oprot.writeFieldEnd()
3431 rajveer 8106
    if self.utx is not None:
1845 vikas 8107
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8108
      self.utx.write(oprot)
8109
      oprot.writeFieldEnd()
8110
    oprot.writeFieldStop()
8111
    oprot.writeStructEnd()
8112
 
3431 rajveer 8113
  def validate(self):
8114
    return
8115
 
8116
 
1845 vikas 8117
  def __repr__(self):
8118
    L = ['%s=%r' % (key, value)
8119
      for key, value in self.__dict__.iteritems()]
8120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8121
 
8122
  def __eq__(self, other):
8123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8124
 
8125
  def __ne__(self, other):
8126
    return not (self == other)
8127
 
8128
class getAffiliateById_args:
8129
  """
8130
  Attributes:
8131
   - id
8132
  """
8133
 
8134
  thrift_spec = (
8135
    None, # 0
8136
    (1, TType.I64, 'id', None, None, ), # 1
8137
  )
8138
 
8139
  def __init__(self, id=None,):
8140
    self.id = id
8141
 
8142
  def read(self, iprot):
8143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8145
      return
8146
    iprot.readStructBegin()
8147
    while True:
8148
      (fname, ftype, fid) = iprot.readFieldBegin()
8149
      if ftype == TType.STOP:
8150
        break
8151
      if fid == 1:
8152
        if ftype == TType.I64:
8153
          self.id = iprot.readI64();
8154
        else:
8155
          iprot.skip(ftype)
8156
      else:
8157
        iprot.skip(ftype)
8158
      iprot.readFieldEnd()
8159
    iprot.readStructEnd()
8160
 
8161
  def write(self, oprot):
8162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8164
      return
8165
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8166
    if self.id is not None:
1845 vikas 8167
      oprot.writeFieldBegin('id', TType.I64, 1)
8168
      oprot.writeI64(self.id)
8169
      oprot.writeFieldEnd()
8170
    oprot.writeFieldStop()
8171
    oprot.writeStructEnd()
8172
 
3431 rajveer 8173
  def validate(self):
8174
    return
8175
 
8176
 
1845 vikas 8177
  def __repr__(self):
8178
    L = ['%s=%r' % (key, value)
8179
      for key, value in self.__dict__.iteritems()]
8180
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8181
 
8182
  def __eq__(self, other):
8183
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8184
 
8185
  def __ne__(self, other):
8186
    return not (self == other)
8187
 
8188
class getAffiliateById_result:
8189
  """
8190
  Attributes:
8191
   - success
8192
   - utx
8193
  """
8194
 
8195
  thrift_spec = (
8196
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8197
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8198
  )
8199
 
8200
  def __init__(self, success=None, utx=None,):
8201
    self.success = success
8202
    self.utx = utx
8203
 
8204
  def read(self, iprot):
8205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8207
      return
8208
    iprot.readStructBegin()
8209
    while True:
8210
      (fname, ftype, fid) = iprot.readFieldBegin()
8211
      if ftype == TType.STOP:
8212
        break
8213
      if fid == 0:
8214
        if ftype == TType.STRUCT:
8215
          self.success = Affiliate()
8216
          self.success.read(iprot)
8217
        else:
8218
          iprot.skip(ftype)
8219
      elif fid == 1:
8220
        if ftype == TType.STRUCT:
1996 vikas 8221
          self.utx = UserAffiliateException()
1845 vikas 8222
          self.utx.read(iprot)
8223
        else:
8224
          iprot.skip(ftype)
8225
      else:
8226
        iprot.skip(ftype)
8227
      iprot.readFieldEnd()
8228
    iprot.readStructEnd()
8229
 
8230
  def write(self, oprot):
8231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8233
      return
8234
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8235
    if self.success is not None:
1845 vikas 8236
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8237
      self.success.write(oprot)
8238
      oprot.writeFieldEnd()
3431 rajveer 8239
    if self.utx is not None:
1845 vikas 8240
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8241
      self.utx.write(oprot)
8242
      oprot.writeFieldEnd()
8243
    oprot.writeFieldStop()
8244
    oprot.writeStructEnd()
8245
 
3431 rajveer 8246
  def validate(self):
8247
    return
8248
 
8249
 
1845 vikas 8250
  def __repr__(self):
8251
    L = ['%s=%r' % (key, value)
8252
      for key, value in self.__dict__.iteritems()]
8253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8254
 
8255
  def __eq__(self, other):
8256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8257
 
8258
  def __ne__(self, other):
8259
    return not (self == other)
8260
 
8261
class getAffiliateByName_args:
8262
  """
8263
  Attributes:
8264
   - name
8265
  """
8266
 
8267
  thrift_spec = (
8268
    None, # 0
8269
    (1, TType.STRING, 'name', None, None, ), # 1
8270
  )
8271
 
8272
  def __init__(self, name=None,):
8273
    self.name = name
8274
 
8275
  def read(self, iprot):
8276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8278
      return
8279
    iprot.readStructBegin()
8280
    while True:
8281
      (fname, ftype, fid) = iprot.readFieldBegin()
8282
      if ftype == TType.STOP:
8283
        break
8284
      if fid == 1:
8285
        if ftype == TType.STRING:
8286
          self.name = iprot.readString();
8287
        else:
8288
          iprot.skip(ftype)
8289
      else:
8290
        iprot.skip(ftype)
8291
      iprot.readFieldEnd()
8292
    iprot.readStructEnd()
8293
 
8294
  def write(self, oprot):
8295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8297
      return
8298
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8299
    if self.name is not None:
1845 vikas 8300
      oprot.writeFieldBegin('name', TType.STRING, 1)
8301
      oprot.writeString(self.name)
8302
      oprot.writeFieldEnd()
8303
    oprot.writeFieldStop()
8304
    oprot.writeStructEnd()
8305
 
3431 rajveer 8306
  def validate(self):
8307
    return
8308
 
8309
 
1845 vikas 8310
  def __repr__(self):
8311
    L = ['%s=%r' % (key, value)
8312
      for key, value in self.__dict__.iteritems()]
8313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8314
 
8315
  def __eq__(self, other):
8316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8317
 
8318
  def __ne__(self, other):
8319
    return not (self == other)
8320
 
8321
class getAffiliateByName_result:
8322
  """
8323
  Attributes:
8324
   - success
8325
   - utx
8326
  """
8327
 
8328
  thrift_spec = (
8329
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8330
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8331
  )
8332
 
8333
  def __init__(self, success=None, utx=None,):
8334
    self.success = success
8335
    self.utx = utx
8336
 
8337
  def read(self, iprot):
8338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8340
      return
8341
    iprot.readStructBegin()
8342
    while True:
8343
      (fname, ftype, fid) = iprot.readFieldBegin()
8344
      if ftype == TType.STOP:
8345
        break
8346
      if fid == 0:
8347
        if ftype == TType.STRUCT:
8348
          self.success = Affiliate()
8349
          self.success.read(iprot)
8350
        else:
8351
          iprot.skip(ftype)
8352
      elif fid == 1:
8353
        if ftype == TType.STRUCT:
1996 vikas 8354
          self.utx = UserAffiliateException()
1845 vikas 8355
          self.utx.read(iprot)
8356
        else:
8357
          iprot.skip(ftype)
8358
      else:
8359
        iprot.skip(ftype)
8360
      iprot.readFieldEnd()
8361
    iprot.readStructEnd()
8362
 
8363
  def write(self, oprot):
8364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8366
      return
8367
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8368
    if self.success is not None:
1845 vikas 8369
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8370
      self.success.write(oprot)
8371
      oprot.writeFieldEnd()
3431 rajveer 8372
    if self.utx is not None:
1845 vikas 8373
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8374
      self.utx.write(oprot)
8375
      oprot.writeFieldEnd()
8376
    oprot.writeFieldStop()
8377
    oprot.writeStructEnd()
8378
 
3431 rajveer 8379
  def validate(self):
8380
    return
8381
 
8382
 
1845 vikas 8383
  def __repr__(self):
8384
    L = ['%s=%r' % (key, value)
8385
      for key, value in self.__dict__.iteritems()]
8386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8387
 
8388
  def __eq__(self, other):
8389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8390
 
8391
  def __ne__(self, other):
8392
    return not (self == other)
8393
 
1996 vikas 8394
class getTrackerById_args:
1845 vikas 8395
  """
8396
  Attributes:
8397
   - id
8398
  """
8399
 
8400
  thrift_spec = (
8401
    None, # 0
8402
    (1, TType.I64, 'id', None, None, ), # 1
8403
  )
8404
 
8405
  def __init__(self, id=None,):
8406
    self.id = id
8407
 
8408
  def read(self, iprot):
8409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8411
      return
8412
    iprot.readStructBegin()
8413
    while True:
8414
      (fname, ftype, fid) = iprot.readFieldBegin()
8415
      if ftype == TType.STOP:
8416
        break
8417
      if fid == 1:
8418
        if ftype == TType.I64:
8419
          self.id = iprot.readI64();
8420
        else:
8421
          iprot.skip(ftype)
8422
      else:
8423
        iprot.skip(ftype)
8424
      iprot.readFieldEnd()
8425
    iprot.readStructEnd()
8426
 
8427
  def write(self, oprot):
8428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8430
      return
1996 vikas 8431
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8432
    if self.id is not None:
1845 vikas 8433
      oprot.writeFieldBegin('id', TType.I64, 1)
8434
      oprot.writeI64(self.id)
8435
      oprot.writeFieldEnd()
8436
    oprot.writeFieldStop()
8437
    oprot.writeStructEnd()
8438
 
3431 rajveer 8439
  def validate(self):
8440
    return
8441
 
8442
 
1845 vikas 8443
  def __repr__(self):
8444
    L = ['%s=%r' % (key, value)
8445
      for key, value in self.__dict__.iteritems()]
8446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8447
 
8448
  def __eq__(self, other):
8449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8450
 
8451
  def __ne__(self, other):
8452
    return not (self == other)
8453
 
8454
class getTrackerById_result:
8455
  """
8456
  Attributes:
8457
   - success
8458
   - utx
8459
  """
8460
 
8461
  thrift_spec = (
8462
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8463
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8464
  )
8465
 
8466
  def __init__(self, success=None, utx=None,):
8467
    self.success = success
8468
    self.utx = utx
8469
 
8470
  def read(self, iprot):
8471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8473
      return
8474
    iprot.readStructBegin()
8475
    while True:
8476
      (fname, ftype, fid) = iprot.readFieldBegin()
8477
      if ftype == TType.STOP:
8478
        break
8479
      if fid == 0:
8480
        if ftype == TType.STRUCT:
8481
          self.success = Tracker()
8482
          self.success.read(iprot)
8483
        else:
8484
          iprot.skip(ftype)
8485
      elif fid == 1:
8486
        if ftype == TType.STRUCT:
1996 vikas 8487
          self.utx = UserAffiliateException()
1845 vikas 8488
          self.utx.read(iprot)
8489
        else:
8490
          iprot.skip(ftype)
8491
      else:
8492
        iprot.skip(ftype)
8493
      iprot.readFieldEnd()
8494
    iprot.readStructEnd()
8495
 
8496
  def write(self, oprot):
8497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8499
      return
8500
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8501
    if self.success is not None:
1845 vikas 8502
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8503
      self.success.write(oprot)
8504
      oprot.writeFieldEnd()
3431 rajveer 8505
    if self.utx is not None:
1845 vikas 8506
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8507
      self.utx.write(oprot)
8508
      oprot.writeFieldEnd()
8509
    oprot.writeFieldStop()
8510
    oprot.writeStructEnd()
8511
 
3431 rajveer 8512
  def validate(self):
8513
    return
8514
 
8515
 
1845 vikas 8516
  def __repr__(self):
8517
    L = ['%s=%r' % (key, value)
8518
      for key, value in self.__dict__.iteritems()]
8519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8520
 
8521
  def __eq__(self, other):
8522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8523
 
8524
  def __ne__(self, other):
8525
    return not (self == other)
8526
 
1996 vikas 8527
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8528
  """
8529
  Attributes:
1996 vikas 8530
   - id
1845 vikas 8531
  """
8532
 
8533
  thrift_spec = (
8534
    None, # 0
1996 vikas 8535
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8536
  )
8537
 
1996 vikas 8538
  def __init__(self, id=None,):
8539
    self.id = id
1845 vikas 8540
 
8541
  def read(self, iprot):
8542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8544
      return
8545
    iprot.readStructBegin()
8546
    while True:
8547
      (fname, ftype, fid) = iprot.readFieldBegin()
8548
      if ftype == TType.STOP:
8549
        break
8550
      if fid == 1:
8551
        if ftype == TType.I64:
1996 vikas 8552
          self.id = iprot.readI64();
1845 vikas 8553
        else:
8554
          iprot.skip(ftype)
8555
      else:
8556
        iprot.skip(ftype)
8557
      iprot.readFieldEnd()
8558
    iprot.readStructEnd()
8559
 
8560
  def write(self, oprot):
8561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8563
      return
1996 vikas 8564
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8565
    if self.id is not None:
1996 vikas 8566
      oprot.writeFieldBegin('id', TType.I64, 1)
8567
      oprot.writeI64(self.id)
1845 vikas 8568
      oprot.writeFieldEnd()
8569
    oprot.writeFieldStop()
8570
    oprot.writeStructEnd()
8571
 
3431 rajveer 8572
  def validate(self):
8573
    return
8574
 
8575
 
1845 vikas 8576
  def __repr__(self):
8577
    L = ['%s=%r' % (key, value)
8578
      for key, value in self.__dict__.iteritems()]
8579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8580
 
8581
  def __eq__(self, other):
8582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8583
 
8584
  def __ne__(self, other):
8585
    return not (self == other)
8586
 
1996 vikas 8587
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8588
  """
8589
  Attributes:
8590
   - success
8591
   - utx
8592
  """
8593
 
8594
  thrift_spec = (
1996 vikas 8595
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8596
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8597
  )
8598
 
8599
  def __init__(self, success=None, utx=None,):
8600
    self.success = success
8601
    self.utx = utx
8602
 
8603
  def read(self, iprot):
8604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8606
      return
8607
    iprot.readStructBegin()
8608
    while True:
8609
      (fname, ftype, fid) = iprot.readFieldBegin()
8610
      if ftype == TType.STOP:
8611
        break
8612
      if fid == 0:
8613
        if ftype == TType.LIST:
8614
          self.success = []
3385 varun.gupt 8615
          (_etype66, _size63) = iprot.readListBegin()
8616
          for _i67 in xrange(_size63):
8617
            _elem68 = Affiliate()
8618
            _elem68.read(iprot)
8619
            self.success.append(_elem68)
1845 vikas 8620
          iprot.readListEnd()
8621
        else:
8622
          iprot.skip(ftype)
8623
      elif fid == 1:
8624
        if ftype == TType.STRUCT:
1996 vikas 8625
          self.utx = UserAffiliateException()
1845 vikas 8626
          self.utx.read(iprot)
8627
        else:
8628
          iprot.skip(ftype)
8629
      else:
8630
        iprot.skip(ftype)
8631
      iprot.readFieldEnd()
8632
    iprot.readStructEnd()
8633
 
8634
  def write(self, oprot):
8635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8637
      return
1996 vikas 8638
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8639
    if self.success is not None:
1845 vikas 8640
      oprot.writeFieldBegin('success', TType.LIST, 0)
8641
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 8642
      for iter69 in self.success:
8643
        iter69.write(oprot)
1845 vikas 8644
      oprot.writeListEnd()
8645
      oprot.writeFieldEnd()
3431 rajveer 8646
    if self.utx is not None:
1845 vikas 8647
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8648
      self.utx.write(oprot)
8649
      oprot.writeFieldEnd()
8650
    oprot.writeFieldStop()
8651
    oprot.writeStructEnd()
8652
 
3431 rajveer 8653
  def validate(self):
8654
    return
8655
 
8656
 
1845 vikas 8657
  def __repr__(self):
8658
    L = ['%s=%r' % (key, value)
8659
      for key, value in self.__dict__.iteritems()]
8660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8661
 
8662
  def __eq__(self, other):
8663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8664
 
8665
  def __ne__(self, other):
8666
    return not (self == other)
8667
 
8668
class addTrackLog_args:
8669
  """
8670
  Attributes:
1996 vikas 8671
   - affiliateId
1845 vikas 8672
   - userId
8673
   - event
8674
   - url
8675
   - data
1859 vikas 8676
   - addedOn
1845 vikas 8677
  """
8678
 
8679
  thrift_spec = (
8680
    None, # 0
1996 vikas 8681
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8682
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8683
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8684
    (4, TType.STRING, 'url', None, None, ), # 4
8685
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8686
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8687
  )
8688
 
1996 vikas 8689
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8690
    self.affiliateId = affiliateId
1845 vikas 8691
    self.userId = userId
8692
    self.event = event
8693
    self.url = url
8694
    self.data = data
1859 vikas 8695
    self.addedOn = addedOn
1845 vikas 8696
 
8697
  def read(self, iprot):
8698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8700
      return
8701
    iprot.readStructBegin()
8702
    while True:
8703
      (fname, ftype, fid) = iprot.readFieldBegin()
8704
      if ftype == TType.STOP:
8705
        break
8706
      if fid == 1:
8707
        if ftype == TType.I64:
1996 vikas 8708
          self.affiliateId = iprot.readI64();
1845 vikas 8709
        else:
8710
          iprot.skip(ftype)
8711
      elif fid == 2:
8712
        if ftype == TType.I64:
8713
          self.userId = iprot.readI64();
8714
        else:
8715
          iprot.skip(ftype)
8716
      elif fid == 3:
3378 vikas 8717
        if ftype == TType.I32:
8718
          self.event = iprot.readI32();
1845 vikas 8719
        else:
8720
          iprot.skip(ftype)
8721
      elif fid == 4:
8722
        if ftype == TType.STRING:
8723
          self.url = iprot.readString();
8724
        else:
8725
          iprot.skip(ftype)
8726
      elif fid == 5:
8727
        if ftype == TType.STRING:
8728
          self.data = iprot.readString();
8729
        else:
8730
          iprot.skip(ftype)
1859 vikas 8731
      elif fid == 6:
8732
        if ftype == TType.I64:
8733
          self.addedOn = iprot.readI64();
8734
        else:
8735
          iprot.skip(ftype)
1845 vikas 8736
      else:
8737
        iprot.skip(ftype)
8738
      iprot.readFieldEnd()
8739
    iprot.readStructEnd()
8740
 
8741
  def write(self, oprot):
8742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8744
      return
8745
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8746
    if self.affiliateId is not None:
1996 vikas 8747
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8748
      oprot.writeI64(self.affiliateId)
1845 vikas 8749
      oprot.writeFieldEnd()
3431 rajveer 8750
    if self.userId is not None:
1845 vikas 8751
      oprot.writeFieldBegin('userId', TType.I64, 2)
8752
      oprot.writeI64(self.userId)
8753
      oprot.writeFieldEnd()
3431 rajveer 8754
    if self.event is not None:
3378 vikas 8755
      oprot.writeFieldBegin('event', TType.I32, 3)
8756
      oprot.writeI32(self.event)
1845 vikas 8757
      oprot.writeFieldEnd()
3431 rajveer 8758
    if self.url is not None:
1845 vikas 8759
      oprot.writeFieldBegin('url', TType.STRING, 4)
8760
      oprot.writeString(self.url)
8761
      oprot.writeFieldEnd()
3431 rajveer 8762
    if self.data is not None:
1845 vikas 8763
      oprot.writeFieldBegin('data', TType.STRING, 5)
8764
      oprot.writeString(self.data)
8765
      oprot.writeFieldEnd()
3431 rajveer 8766
    if self.addedOn is not None:
1859 vikas 8767
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8768
      oprot.writeI64(self.addedOn)
8769
      oprot.writeFieldEnd()
1845 vikas 8770
    oprot.writeFieldStop()
8771
    oprot.writeStructEnd()
8772
 
3431 rajveer 8773
  def validate(self):
8774
    return
8775
 
8776
 
1845 vikas 8777
  def __repr__(self):
8778
    L = ['%s=%r' % (key, value)
8779
      for key, value in self.__dict__.iteritems()]
8780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8781
 
8782
  def __eq__(self, other):
8783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8784
 
8785
  def __ne__(self, other):
8786
    return not (self == other)
8787
 
8788
class addTrackLog_result:
8789
  """
8790
  Attributes:
8791
   - success
8792
   - utx
8793
  """
8794
 
8795
  thrift_spec = (
8796
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8797
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8798
  )
8799
 
8800
  def __init__(self, success=None, utx=None,):
8801
    self.success = success
8802
    self.utx = utx
8803
 
8804
  def read(self, iprot):
8805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8807
      return
8808
    iprot.readStructBegin()
8809
    while True:
8810
      (fname, ftype, fid) = iprot.readFieldBegin()
8811
      if ftype == TType.STOP:
8812
        break
8813
      if fid == 0:
8814
        if ftype == TType.I64:
8815
          self.success = iprot.readI64();
8816
        else:
8817
          iprot.skip(ftype)
8818
      elif fid == 1:
8819
        if ftype == TType.STRUCT:
1996 vikas 8820
          self.utx = UserAffiliateException()
1845 vikas 8821
          self.utx.read(iprot)
8822
        else:
8823
          iprot.skip(ftype)
8824
      else:
8825
        iprot.skip(ftype)
8826
      iprot.readFieldEnd()
8827
    iprot.readStructEnd()
8828
 
8829
  def write(self, oprot):
8830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8832
      return
8833
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8834
    if self.success is not None:
1845 vikas 8835
      oprot.writeFieldBegin('success', TType.I64, 0)
8836
      oprot.writeI64(self.success)
8837
      oprot.writeFieldEnd()
3431 rajveer 8838
    if self.utx is not None:
1845 vikas 8839
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8840
      self.utx.write(oprot)
8841
      oprot.writeFieldEnd()
8842
    oprot.writeFieldStop()
8843
    oprot.writeStructEnd()
8844
 
3431 rajveer 8845
  def validate(self):
8846
    return
8847
 
8848
 
1845 vikas 8849
  def __repr__(self):
8850
    L = ['%s=%r' % (key, value)
8851
      for key, value in self.__dict__.iteritems()]
8852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8853
 
8854
  def __eq__(self, other):
8855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8856
 
8857
  def __ne__(self, other):
8858
    return not (self == other)
8859
 
8860
class getTrackLogById_args:
8861
  """
8862
  Attributes:
8863
   - id
8864
  """
8865
 
8866
  thrift_spec = (
8867
    None, # 0
8868
    (1, TType.I64, 'id', None, None, ), # 1
8869
  )
8870
 
8871
  def __init__(self, id=None,):
8872
    self.id = id
8873
 
8874
  def read(self, iprot):
8875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8877
      return
8878
    iprot.readStructBegin()
8879
    while True:
8880
      (fname, ftype, fid) = iprot.readFieldBegin()
8881
      if ftype == TType.STOP:
8882
        break
8883
      if fid == 1:
8884
        if ftype == TType.I64:
8885
          self.id = iprot.readI64();
8886
        else:
8887
          iprot.skip(ftype)
8888
      else:
8889
        iprot.skip(ftype)
8890
      iprot.readFieldEnd()
8891
    iprot.readStructEnd()
8892
 
8893
  def write(self, oprot):
8894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8896
      return
8897
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8898
    if self.id is not None:
1845 vikas 8899
      oprot.writeFieldBegin('id', TType.I64, 1)
8900
      oprot.writeI64(self.id)
8901
      oprot.writeFieldEnd()
8902
    oprot.writeFieldStop()
8903
    oprot.writeStructEnd()
8904
 
3431 rajveer 8905
  def validate(self):
8906
    return
8907
 
8908
 
1845 vikas 8909
  def __repr__(self):
8910
    L = ['%s=%r' % (key, value)
8911
      for key, value in self.__dict__.iteritems()]
8912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8913
 
8914
  def __eq__(self, other):
8915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8916
 
8917
  def __ne__(self, other):
8918
    return not (self == other)
8919
 
8920
class getTrackLogById_result:
8921
  """
8922
  Attributes:
8923
   - success
8924
   - utx
8925
  """
8926
 
8927
  thrift_spec = (
8928
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8929
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8930
  )
8931
 
8932
  def __init__(self, success=None, utx=None,):
8933
    self.success = success
8934
    self.utx = utx
8935
 
8936
  def read(self, iprot):
8937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8939
      return
8940
    iprot.readStructBegin()
8941
    while True:
8942
      (fname, ftype, fid) = iprot.readFieldBegin()
8943
      if ftype == TType.STOP:
8944
        break
8945
      if fid == 0:
8946
        if ftype == TType.STRUCT:
8947
          self.success = TrackLog()
8948
          self.success.read(iprot)
8949
        else:
8950
          iprot.skip(ftype)
8951
      elif fid == 1:
8952
        if ftype == TType.STRUCT:
1996 vikas 8953
          self.utx = UserAffiliateException()
1845 vikas 8954
          self.utx.read(iprot)
8955
        else:
8956
          iprot.skip(ftype)
8957
      else:
8958
        iprot.skip(ftype)
8959
      iprot.readFieldEnd()
8960
    iprot.readStructEnd()
8961
 
8962
  def write(self, oprot):
8963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8965
      return
8966
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8967
    if self.success is not None:
1845 vikas 8968
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8969
      self.success.write(oprot)
8970
      oprot.writeFieldEnd()
3431 rajveer 8971
    if self.utx is not None:
1845 vikas 8972
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8973
      self.utx.write(oprot)
8974
      oprot.writeFieldEnd()
8975
    oprot.writeFieldStop()
8976
    oprot.writeStructEnd()
8977
 
3431 rajveer 8978
  def validate(self):
8979
    return
8980
 
8981
 
1845 vikas 8982
  def __repr__(self):
8983
    L = ['%s=%r' % (key, value)
8984
      for key, value in self.__dict__.iteritems()]
8985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8986
 
8987
  def __eq__(self, other):
8988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8989
 
8990
  def __ne__(self, other):
8991
    return not (self == other)
8992
 
1996 vikas 8993
class getTrackLogsByAffiliate_args:
1845 vikas 8994
  """
8995
  Attributes:
1996 vikas 8996
   - affiliateId
3293 vikas 8997
   - startDate
8998
   - endDate
1845 vikas 8999
  """
9000
 
9001
  thrift_spec = (
9002
    None, # 0
1996 vikas 9003
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9004
    (2, TType.I64, 'startDate', None, None, ), # 2
9005
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9006
  )
9007
 
3293 vikas 9008
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9009
    self.affiliateId = affiliateId
3293 vikas 9010
    self.startDate = startDate
9011
    self.endDate = endDate
1845 vikas 9012
 
9013
  def read(self, iprot):
9014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9016
      return
9017
    iprot.readStructBegin()
9018
    while True:
9019
      (fname, ftype, fid) = iprot.readFieldBegin()
9020
      if ftype == TType.STOP:
9021
        break
9022
      if fid == 1:
9023
        if ftype == TType.I64:
1996 vikas 9024
          self.affiliateId = iprot.readI64();
1845 vikas 9025
        else:
9026
          iprot.skip(ftype)
3293 vikas 9027
      elif fid == 2:
9028
        if ftype == TType.I64:
9029
          self.startDate = iprot.readI64();
9030
        else:
9031
          iprot.skip(ftype)
9032
      elif fid == 3:
9033
        if ftype == TType.I64:
9034
          self.endDate = iprot.readI64();
9035
        else:
9036
          iprot.skip(ftype)
1845 vikas 9037
      else:
9038
        iprot.skip(ftype)
9039
      iprot.readFieldEnd()
9040
    iprot.readStructEnd()
9041
 
9042
  def write(self, oprot):
9043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9045
      return
1996 vikas 9046
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9047
    if self.affiliateId is not None:
1996 vikas 9048
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9049
      oprot.writeI64(self.affiliateId)
1845 vikas 9050
      oprot.writeFieldEnd()
3431 rajveer 9051
    if self.startDate is not None:
3293 vikas 9052
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9053
      oprot.writeI64(self.startDate)
9054
      oprot.writeFieldEnd()
3431 rajveer 9055
    if self.endDate is not None:
3293 vikas 9056
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9057
      oprot.writeI64(self.endDate)
9058
      oprot.writeFieldEnd()
1845 vikas 9059
    oprot.writeFieldStop()
9060
    oprot.writeStructEnd()
9061
 
3431 rajveer 9062
  def validate(self):
9063
    return
9064
 
9065
 
1845 vikas 9066
  def __repr__(self):
9067
    L = ['%s=%r' % (key, value)
9068
      for key, value in self.__dict__.iteritems()]
9069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9070
 
9071
  def __eq__(self, other):
9072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9073
 
9074
  def __ne__(self, other):
9075
    return not (self == other)
9076
 
1996 vikas 9077
class getTrackLogsByAffiliate_result:
1845 vikas 9078
  """
9079
  Attributes:
9080
   - success
9081
   - utx
9082
  """
9083
 
9084
  thrift_spec = (
9085
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9086
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9087
  )
9088
 
9089
  def __init__(self, success=None, utx=None,):
9090
    self.success = success
9091
    self.utx = utx
9092
 
9093
  def read(self, iprot):
9094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9096
      return
9097
    iprot.readStructBegin()
9098
    while True:
9099
      (fname, ftype, fid) = iprot.readFieldBegin()
9100
      if ftype == TType.STOP:
9101
        break
9102
      if fid == 0:
9103
        if ftype == TType.LIST:
9104
          self.success = []
3385 varun.gupt 9105
          (_etype73, _size70) = iprot.readListBegin()
9106
          for _i74 in xrange(_size70):
9107
            _elem75 = TrackLog()
9108
            _elem75.read(iprot)
9109
            self.success.append(_elem75)
1845 vikas 9110
          iprot.readListEnd()
9111
        else:
9112
          iprot.skip(ftype)
9113
      elif fid == 1:
9114
        if ftype == TType.STRUCT:
1996 vikas 9115
          self.utx = UserAffiliateException()
1845 vikas 9116
          self.utx.read(iprot)
9117
        else:
9118
          iprot.skip(ftype)
9119
      else:
9120
        iprot.skip(ftype)
9121
      iprot.readFieldEnd()
9122
    iprot.readStructEnd()
9123
 
9124
  def write(self, oprot):
9125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9127
      return
1996 vikas 9128
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9129
    if self.success is not None:
1845 vikas 9130
      oprot.writeFieldBegin('success', TType.LIST, 0)
9131
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9132
      for iter76 in self.success:
9133
        iter76.write(oprot)
1845 vikas 9134
      oprot.writeListEnd()
9135
      oprot.writeFieldEnd()
3431 rajveer 9136
    if self.utx is not None:
1845 vikas 9137
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9138
      self.utx.write(oprot)
9139
      oprot.writeFieldEnd()
9140
    oprot.writeFieldStop()
9141
    oprot.writeStructEnd()
9142
 
3431 rajveer 9143
  def validate(self):
9144
    return
9145
 
9146
 
1845 vikas 9147
  def __repr__(self):
9148
    L = ['%s=%r' % (key, value)
9149
      for key, value in self.__dict__.iteritems()]
9150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9151
 
9152
  def __eq__(self, other):
9153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9154
 
9155
  def __ne__(self, other):
9156
    return not (self == other)
9157
 
9158
class getTrackLogsByUser_args:
9159
  """
9160
  Attributes:
9161
   - userId
9162
  """
9163
 
9164
  thrift_spec = (
9165
    None, # 0
9166
    (1, TType.I64, 'userId', None, None, ), # 1
9167
  )
9168
 
9169
  def __init__(self, userId=None,):
9170
    self.userId = userId
9171
 
9172
  def read(self, iprot):
9173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9175
      return
9176
    iprot.readStructBegin()
9177
    while True:
9178
      (fname, ftype, fid) = iprot.readFieldBegin()
9179
      if ftype == TType.STOP:
9180
        break
9181
      if fid == 1:
9182
        if ftype == TType.I64:
9183
          self.userId = iprot.readI64();
9184
        else:
9185
          iprot.skip(ftype)
9186
      else:
9187
        iprot.skip(ftype)
9188
      iprot.readFieldEnd()
9189
    iprot.readStructEnd()
9190
 
9191
  def write(self, oprot):
9192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9194
      return
9195
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9196
    if self.userId is not None:
1845 vikas 9197
      oprot.writeFieldBegin('userId', TType.I64, 1)
9198
      oprot.writeI64(self.userId)
9199
      oprot.writeFieldEnd()
9200
    oprot.writeFieldStop()
9201
    oprot.writeStructEnd()
9202
 
3431 rajveer 9203
  def validate(self):
9204
    return
9205
 
9206
 
1845 vikas 9207
  def __repr__(self):
9208
    L = ['%s=%r' % (key, value)
9209
      for key, value in self.__dict__.iteritems()]
9210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9211
 
9212
  def __eq__(self, other):
9213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9214
 
9215
  def __ne__(self, other):
9216
    return not (self == other)
9217
 
9218
class getTrackLogsByUser_result:
9219
  """
9220
  Attributes:
9221
   - success
9222
   - utx
9223
  """
9224
 
9225
  thrift_spec = (
9226
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9227
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9228
  )
9229
 
9230
  def __init__(self, success=None, utx=None,):
9231
    self.success = success
9232
    self.utx = utx
9233
 
9234
  def read(self, iprot):
9235
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9236
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9237
      return
9238
    iprot.readStructBegin()
9239
    while True:
9240
      (fname, ftype, fid) = iprot.readFieldBegin()
9241
      if ftype == TType.STOP:
9242
        break
9243
      if fid == 0:
9244
        if ftype == TType.LIST:
9245
          self.success = []
3385 varun.gupt 9246
          (_etype80, _size77) = iprot.readListBegin()
9247
          for _i81 in xrange(_size77):
9248
            _elem82 = TrackLog()
9249
            _elem82.read(iprot)
9250
            self.success.append(_elem82)
1845 vikas 9251
          iprot.readListEnd()
9252
        else:
9253
          iprot.skip(ftype)
9254
      elif fid == 1:
9255
        if ftype == TType.STRUCT:
1996 vikas 9256
          self.utx = UserAffiliateException()
1845 vikas 9257
          self.utx.read(iprot)
9258
        else:
9259
          iprot.skip(ftype)
9260
      else:
9261
        iprot.skip(ftype)
9262
      iprot.readFieldEnd()
9263
    iprot.readStructEnd()
9264
 
9265
  def write(self, oprot):
9266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9268
      return
9269
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9270
    if self.success is not None:
1845 vikas 9271
      oprot.writeFieldBegin('success', TType.LIST, 0)
9272
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9273
      for iter83 in self.success:
9274
        iter83.write(oprot)
1845 vikas 9275
      oprot.writeListEnd()
9276
      oprot.writeFieldEnd()
3431 rajveer 9277
    if self.utx is not None:
1845 vikas 9278
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9279
      self.utx.write(oprot)
9280
      oprot.writeFieldEnd()
9281
    oprot.writeFieldStop()
9282
    oprot.writeStructEnd()
9283
 
3431 rajveer 9284
  def validate(self):
9285
    return
9286
 
9287
 
1845 vikas 9288
  def __repr__(self):
9289
    L = ['%s=%r' % (key, value)
9290
      for key, value in self.__dict__.iteritems()]
9291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9292
 
9293
  def __eq__(self, other):
9294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9295
 
9296
  def __ne__(self, other):
9297
    return not (self == other)
9298
 
9299
class getTrackLogs_args:
9300
  """
9301
  Attributes:
9302
   - userId
9303
   - event
9304
   - url
9305
  """
9306
 
9307
  thrift_spec = (
9308
    None, # 0
1996 vikas 9309
    (1, TType.I64, 'userId', None, None, ), # 1
9310
    (2, TType.STRING, 'event', None, None, ), # 2
9311
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9312
  )
9313
 
1996 vikas 9314
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9315
    self.userId = userId
9316
    self.event = event
9317
    self.url = url
9318
 
9319
  def read(self, iprot):
9320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9322
      return
9323
    iprot.readStructBegin()
9324
    while True:
9325
      (fname, ftype, fid) = iprot.readFieldBegin()
9326
      if ftype == TType.STOP:
9327
        break
9328
      if fid == 1:
9329
        if ftype == TType.I64:
1996 vikas 9330
          self.userId = iprot.readI64();
1845 vikas 9331
        else:
9332
          iprot.skip(ftype)
9333
      elif fid == 2:
9334
        if ftype == TType.STRING:
9335
          self.event = iprot.readString();
9336
        else:
9337
          iprot.skip(ftype)
1996 vikas 9338
      elif fid == 3:
1845 vikas 9339
        if ftype == TType.STRING:
9340
          self.url = iprot.readString();
9341
        else:
9342
          iprot.skip(ftype)
9343
      else:
9344
        iprot.skip(ftype)
9345
      iprot.readFieldEnd()
9346
    iprot.readStructEnd()
9347
 
9348
  def write(self, oprot):
9349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9351
      return
9352
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9353
    if self.userId is not None:
1996 vikas 9354
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9355
      oprot.writeI64(self.userId)
9356
      oprot.writeFieldEnd()
3431 rajveer 9357
    if self.event is not None:
1996 vikas 9358
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9359
      oprot.writeString(self.event)
9360
      oprot.writeFieldEnd()
3431 rajveer 9361
    if self.url is not None:
1996 vikas 9362
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9363
      oprot.writeString(self.url)
9364
      oprot.writeFieldEnd()
9365
    oprot.writeFieldStop()
9366
    oprot.writeStructEnd()
9367
 
3431 rajveer 9368
  def validate(self):
9369
    return
9370
 
9371
 
1845 vikas 9372
  def __repr__(self):
9373
    L = ['%s=%r' % (key, value)
9374
      for key, value in self.__dict__.iteritems()]
9375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9376
 
9377
  def __eq__(self, other):
9378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9379
 
9380
  def __ne__(self, other):
9381
    return not (self == other)
9382
 
9383
class getTrackLogs_result:
9384
  """
9385
  Attributes:
9386
   - success
9387
   - utx
9388
  """
9389
 
9390
  thrift_spec = (
9391
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9392
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9393
  )
9394
 
9395
  def __init__(self, success=None, utx=None,):
9396
    self.success = success
9397
    self.utx = utx
9398
 
9399
  def read(self, iprot):
9400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9402
      return
9403
    iprot.readStructBegin()
9404
    while True:
9405
      (fname, ftype, fid) = iprot.readFieldBegin()
9406
      if ftype == TType.STOP:
9407
        break
9408
      if fid == 0:
9409
        if ftype == TType.LIST:
9410
          self.success = []
3385 varun.gupt 9411
          (_etype87, _size84) = iprot.readListBegin()
9412
          for _i88 in xrange(_size84):
9413
            _elem89 = TrackLog()
9414
            _elem89.read(iprot)
9415
            self.success.append(_elem89)
1845 vikas 9416
          iprot.readListEnd()
9417
        else:
9418
          iprot.skip(ftype)
9419
      elif fid == 1:
9420
        if ftype == TType.STRUCT:
1996 vikas 9421
          self.utx = UserAffiliateException()
1845 vikas 9422
          self.utx.read(iprot)
9423
        else:
9424
          iprot.skip(ftype)
9425
      else:
9426
        iprot.skip(ftype)
9427
      iprot.readFieldEnd()
9428
    iprot.readStructEnd()
9429
 
9430
  def write(self, oprot):
9431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9433
      return
9434
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9435
    if self.success is not None:
1845 vikas 9436
      oprot.writeFieldBegin('success', TType.LIST, 0)
9437
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9438
      for iter90 in self.success:
9439
        iter90.write(oprot)
1845 vikas 9440
      oprot.writeListEnd()
9441
      oprot.writeFieldEnd()
3431 rajveer 9442
    if self.utx is not None:
1845 vikas 9443
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9444
      self.utx.write(oprot)
9445
      oprot.writeFieldEnd()
9446
    oprot.writeFieldStop()
9447
    oprot.writeStructEnd()
9448
 
3431 rajveer 9449
  def validate(self):
9450
    return
9451
 
9452
 
1845 vikas 9453
  def __repr__(self):
9454
    L = ['%s=%r' % (key, value)
9455
      for key, value in self.__dict__.iteritems()]
9456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9457
 
9458
  def __eq__(self, other):
9459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9460
 
9461
  def __ne__(self, other):
9462
    return not (self == other)
9463
 
559 chandransh 9464
class createCart_args:
94 ashish 9465
  """
9466
  Attributes:
559 chandransh 9467
   - userId
94 ashish 9468
  """
9469
 
9470
  thrift_spec = (
9471
    None, # 0
559 chandransh 9472
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9473
  )
9474
 
559 chandransh 9475
  def __init__(self, userId=None,):
9476
    self.userId = userId
94 ashish 9477
 
9478
  def read(self, iprot):
9479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9481
      return
9482
    iprot.readStructBegin()
9483
    while True:
9484
      (fname, ftype, fid) = iprot.readFieldBegin()
9485
      if ftype == TType.STOP:
9486
        break
9487
      if fid == 1:
9488
        if ftype == TType.I64:
559 chandransh 9489
          self.userId = iprot.readI64();
94 ashish 9490
        else:
9491
          iprot.skip(ftype)
559 chandransh 9492
      else:
9493
        iprot.skip(ftype)
9494
      iprot.readFieldEnd()
9495
    iprot.readStructEnd()
9496
 
9497
  def write(self, oprot):
9498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9500
      return
9501
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9502
    if self.userId is not None:
559 chandransh 9503
      oprot.writeFieldBegin('userId', TType.I64, 1)
9504
      oprot.writeI64(self.userId)
9505
      oprot.writeFieldEnd()
9506
    oprot.writeFieldStop()
9507
    oprot.writeStructEnd()
9508
 
3431 rajveer 9509
  def validate(self):
9510
    return
9511
 
9512
 
559 chandransh 9513
  def __repr__(self):
9514
    L = ['%s=%r' % (key, value)
9515
      for key, value in self.__dict__.iteritems()]
9516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9517
 
9518
  def __eq__(self, other):
9519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9520
 
9521
  def __ne__(self, other):
9522
    return not (self == other)
9523
 
9524
class createCart_result:
9525
  """
9526
  Attributes:
9527
   - success
9528
   - scx
9529
  """
9530
 
9531
  thrift_spec = (
9532
    (0, TType.I64, 'success', None, None, ), # 0
9533
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9534
  )
9535
 
9536
  def __init__(self, success=None, scx=None,):
9537
    self.success = success
9538
    self.scx = scx
9539
 
9540
  def read(self, iprot):
9541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9543
      return
9544
    iprot.readStructBegin()
9545
    while True:
9546
      (fname, ftype, fid) = iprot.readFieldBegin()
9547
      if ftype == TType.STOP:
9548
        break
9549
      if fid == 0:
94 ashish 9550
        if ftype == TType.I64:
559 chandransh 9551
          self.success = iprot.readI64();
94 ashish 9552
        else:
9553
          iprot.skip(ftype)
559 chandransh 9554
      elif fid == 1:
9555
        if ftype == TType.STRUCT:
9556
          self.scx = ShoppingCartException()
9557
          self.scx.read(iprot)
9558
        else:
9559
          iprot.skip(ftype)
94 ashish 9560
      else:
9561
        iprot.skip(ftype)
9562
      iprot.readFieldEnd()
9563
    iprot.readStructEnd()
9564
 
9565
  def write(self, oprot):
9566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9568
      return
559 chandransh 9569
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9570
    if self.success is not None:
559 chandransh 9571
      oprot.writeFieldBegin('success', TType.I64, 0)
9572
      oprot.writeI64(self.success)
94 ashish 9573
      oprot.writeFieldEnd()
3431 rajveer 9574
    if self.scx is not None:
559 chandransh 9575
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9576
      self.scx.write(oprot)
94 ashish 9577
      oprot.writeFieldEnd()
9578
    oprot.writeFieldStop()
9579
    oprot.writeStructEnd()
9580
 
3431 rajveer 9581
  def validate(self):
9582
    return
9583
 
9584
 
94 ashish 9585
  def __repr__(self):
9586
    L = ['%s=%r' % (key, value)
9587
      for key, value in self.__dict__.iteritems()]
9588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9589
 
9590
  def __eq__(self, other):
9591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9592
 
9593
  def __ne__(self, other):
9594
    return not (self == other)
9595
 
559 chandransh 9596
class getCurrentCart_args:
94 ashish 9597
  """
9598
  Attributes:
559 chandransh 9599
   - userId
9600
  """
9601
 
9602
  thrift_spec = (
9603
    None, # 0
9604
    (1, TType.I64, 'userId', None, None, ), # 1
9605
  )
9606
 
9607
  def __init__(self, userId=None,):
9608
    self.userId = userId
9609
 
9610
  def read(self, iprot):
9611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9613
      return
9614
    iprot.readStructBegin()
9615
    while True:
9616
      (fname, ftype, fid) = iprot.readFieldBegin()
9617
      if ftype == TType.STOP:
9618
        break
9619
      if fid == 1:
9620
        if ftype == TType.I64:
9621
          self.userId = iprot.readI64();
9622
        else:
9623
          iprot.skip(ftype)
9624
      else:
9625
        iprot.skip(ftype)
9626
      iprot.readFieldEnd()
9627
    iprot.readStructEnd()
9628
 
9629
  def write(self, oprot):
9630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9632
      return
9633
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9634
    if self.userId is not None:
559 chandransh 9635
      oprot.writeFieldBegin('userId', TType.I64, 1)
9636
      oprot.writeI64(self.userId)
9637
      oprot.writeFieldEnd()
9638
    oprot.writeFieldStop()
9639
    oprot.writeStructEnd()
9640
 
3431 rajveer 9641
  def validate(self):
9642
    return
9643
 
9644
 
559 chandransh 9645
  def __repr__(self):
9646
    L = ['%s=%r' % (key, value)
9647
      for key, value in self.__dict__.iteritems()]
9648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9649
 
9650
  def __eq__(self, other):
9651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9652
 
9653
  def __ne__(self, other):
9654
    return not (self == other)
9655
 
9656
class getCurrentCart_result:
9657
  """
9658
  Attributes:
94 ashish 9659
   - success
559 chandransh 9660
   - scx
94 ashish 9661
  """
9662
 
9663
  thrift_spec = (
559 chandransh 9664
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9665
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9666
  )
9667
 
559 chandransh 9668
  def __init__(self, success=None, scx=None,):
94 ashish 9669
    self.success = success
559 chandransh 9670
    self.scx = scx
94 ashish 9671
 
9672
  def read(self, iprot):
9673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9675
      return
9676
    iprot.readStructBegin()
9677
    while True:
9678
      (fname, ftype, fid) = iprot.readFieldBegin()
9679
      if ftype == TType.STOP:
9680
        break
9681
      if fid == 0:
559 chandransh 9682
        if ftype == TType.STRUCT:
9683
          self.success = Cart()
9684
          self.success.read(iprot)
94 ashish 9685
        else:
9686
          iprot.skip(ftype)
9687
      elif fid == 1:
9688
        if ftype == TType.STRUCT:
559 chandransh 9689
          self.scx = ShoppingCartException()
9690
          self.scx.read(iprot)
94 ashish 9691
        else:
9692
          iprot.skip(ftype)
9693
      else:
9694
        iprot.skip(ftype)
9695
      iprot.readFieldEnd()
9696
    iprot.readStructEnd()
9697
 
9698
  def write(self, oprot):
9699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9701
      return
559 chandransh 9702
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9703
    if self.success is not None:
559 chandransh 9704
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9705
      self.success.write(oprot)
94 ashish 9706
      oprot.writeFieldEnd()
3431 rajveer 9707
    if self.scx is not None:
559 chandransh 9708
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9709
      self.scx.write(oprot)
94 ashish 9710
      oprot.writeFieldEnd()
9711
    oprot.writeFieldStop()
9712
    oprot.writeStructEnd()
9713
 
3431 rajveer 9714
  def validate(self):
9715
    return
9716
 
9717
 
94 ashish 9718
  def __repr__(self):
9719
    L = ['%s=%r' % (key, value)
9720
      for key, value in self.__dict__.iteritems()]
9721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9722
 
9723
  def __eq__(self, other):
9724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9725
 
9726
  def __ne__(self, other):
9727
    return not (self == other)
9728
 
559 chandransh 9729
class getCart_args:
504 rajveer 9730
  """
9731
  Attributes:
559 chandransh 9732
   - cartId
504 rajveer 9733
  """
9734
 
9735
  thrift_spec = (
9736
    None, # 0
559 chandransh 9737
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9738
  )
9739
 
559 chandransh 9740
  def __init__(self, cartId=None,):
9741
    self.cartId = cartId
504 rajveer 9742
 
9743
  def read(self, iprot):
9744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9746
      return
9747
    iprot.readStructBegin()
9748
    while True:
9749
      (fname, ftype, fid) = iprot.readFieldBegin()
9750
      if ftype == TType.STOP:
9751
        break
9752
      if fid == 1:
9753
        if ftype == TType.I64:
559 chandransh 9754
          self.cartId = iprot.readI64();
504 rajveer 9755
        else:
9756
          iprot.skip(ftype)
9757
      else:
9758
        iprot.skip(ftype)
9759
      iprot.readFieldEnd()
9760
    iprot.readStructEnd()
9761
 
9762
  def write(self, oprot):
9763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9765
      return
559 chandransh 9766
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9767
    if self.cartId is not None:
559 chandransh 9768
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9769
      oprot.writeI64(self.cartId)
504 rajveer 9770
      oprot.writeFieldEnd()
9771
    oprot.writeFieldStop()
9772
    oprot.writeStructEnd()
9773
 
3431 rajveer 9774
  def validate(self):
9775
    return
9776
 
9777
 
504 rajveer 9778
  def __repr__(self):
9779
    L = ['%s=%r' % (key, value)
9780
      for key, value in self.__dict__.iteritems()]
9781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9782
 
9783
  def __eq__(self, other):
9784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9785
 
9786
  def __ne__(self, other):
9787
    return not (self == other)
9788
 
559 chandransh 9789
class getCart_result:
504 rajveer 9790
  """
9791
  Attributes:
9792
   - success
559 chandransh 9793
   - scx
504 rajveer 9794
  """
9795
 
9796
  thrift_spec = (
559 chandransh 9797
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9798
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9799
  )
9800
 
559 chandransh 9801
  def __init__(self, success=None, scx=None,):
504 rajveer 9802
    self.success = success
559 chandransh 9803
    self.scx = scx
504 rajveer 9804
 
9805
  def read(self, iprot):
9806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9808
      return
9809
    iprot.readStructBegin()
9810
    while True:
9811
      (fname, ftype, fid) = iprot.readFieldBegin()
9812
      if ftype == TType.STOP:
9813
        break
9814
      if fid == 0:
559 chandransh 9815
        if ftype == TType.STRUCT:
9816
          self.success = Cart()
9817
          self.success.read(iprot)
504 rajveer 9818
        else:
9819
          iprot.skip(ftype)
9820
      elif fid == 1:
9821
        if ftype == TType.STRUCT:
559 chandransh 9822
          self.scx = ShoppingCartException()
9823
          self.scx.read(iprot)
504 rajveer 9824
        else:
9825
          iprot.skip(ftype)
9826
      else:
9827
        iprot.skip(ftype)
9828
      iprot.readFieldEnd()
9829
    iprot.readStructEnd()
9830
 
9831
  def write(self, oprot):
9832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9834
      return
559 chandransh 9835
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9836
    if self.success is not None:
559 chandransh 9837
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9838
      self.success.write(oprot)
504 rajveer 9839
      oprot.writeFieldEnd()
3431 rajveer 9840
    if self.scx is not None:
559 chandransh 9841
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9842
      self.scx.write(oprot)
504 rajveer 9843
      oprot.writeFieldEnd()
9844
    oprot.writeFieldStop()
9845
    oprot.writeStructEnd()
9846
 
3431 rajveer 9847
  def validate(self):
9848
    return
9849
 
9850
 
504 rajveer 9851
  def __repr__(self):
9852
    L = ['%s=%r' % (key, value)
9853
      for key, value in self.__dict__.iteritems()]
9854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9855
 
9856
  def __eq__(self, other):
9857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9858
 
9859
  def __ne__(self, other):
9860
    return not (self == other)
9861
 
559 chandransh 9862
class getCartsForUser_args:
94 ashish 9863
  """
9864
  Attributes:
559 chandransh 9865
   - userId
9866
   - status
94 ashish 9867
  """
9868
 
9869
  thrift_spec = (
9870
    None, # 0
559 chandransh 9871
    (1, TType.I64, 'userId', None, None, ), # 1
9872
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 9873
  )
9874
 
559 chandransh 9875
  def __init__(self, userId=None, status=None,):
9876
    self.userId = userId
9877
    self.status = status
94 ashish 9878
 
9879
  def read(self, iprot):
9880
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9881
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9882
      return
9883
    iprot.readStructBegin()
9884
    while True:
9885
      (fname, ftype, fid) = iprot.readFieldBegin()
9886
      if ftype == TType.STOP:
9887
        break
9888
      if fid == 1:
9889
        if ftype == TType.I64:
559 chandransh 9890
          self.userId = iprot.readI64();
94 ashish 9891
        else:
9892
          iprot.skip(ftype)
9893
      elif fid == 2:
559 chandransh 9894
        if ftype == TType.I32:
9895
          self.status = iprot.readI32();
94 ashish 9896
        else:
9897
          iprot.skip(ftype)
9898
      else:
9899
        iprot.skip(ftype)
9900
      iprot.readFieldEnd()
9901
    iprot.readStructEnd()
9902
 
9903
  def write(self, oprot):
9904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9906
      return
559 chandransh 9907
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 9908
    if self.userId is not None:
559 chandransh 9909
      oprot.writeFieldBegin('userId', TType.I64, 1)
9910
      oprot.writeI64(self.userId)
94 ashish 9911
      oprot.writeFieldEnd()
3431 rajveer 9912
    if self.status is not None:
559 chandransh 9913
      oprot.writeFieldBegin('status', TType.I32, 2)
9914
      oprot.writeI32(self.status)
94 ashish 9915
      oprot.writeFieldEnd()
9916
    oprot.writeFieldStop()
9917
    oprot.writeStructEnd()
9918
 
3431 rajveer 9919
  def validate(self):
9920
    return
9921
 
9922
 
94 ashish 9923
  def __repr__(self):
9924
    L = ['%s=%r' % (key, value)
9925
      for key, value in self.__dict__.iteritems()]
9926
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9927
 
9928
  def __eq__(self, other):
9929
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9930
 
9931
  def __ne__(self, other):
9932
    return not (self == other)
9933
 
559 chandransh 9934
class getCartsForUser_result:
94 ashish 9935
  """
9936
  Attributes:
9937
   - success
559 chandransh 9938
   - scx
94 ashish 9939
  """
9940
 
9941
  thrift_spec = (
559 chandransh 9942
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9943
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9944
  )
9945
 
559 chandransh 9946
  def __init__(self, success=None, scx=None,):
94 ashish 9947
    self.success = success
559 chandransh 9948
    self.scx = scx
94 ashish 9949
 
9950
  def read(self, iprot):
9951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9953
      return
9954
    iprot.readStructBegin()
9955
    while True:
9956
      (fname, ftype, fid) = iprot.readFieldBegin()
9957
      if ftype == TType.STOP:
9958
        break
9959
      if fid == 0:
559 chandransh 9960
        if ftype == TType.LIST:
9961
          self.success = []
3385 varun.gupt 9962
          (_etype94, _size91) = iprot.readListBegin()
9963
          for _i95 in xrange(_size91):
9964
            _elem96 = Cart()
9965
            _elem96.read(iprot)
9966
            self.success.append(_elem96)
559 chandransh 9967
          iprot.readListEnd()
94 ashish 9968
        else:
9969
          iprot.skip(ftype)
9970
      elif fid == 1:
9971
        if ftype == TType.STRUCT:
559 chandransh 9972
          self.scx = ShoppingCartException()
9973
          self.scx.read(iprot)
94 ashish 9974
        else:
9975
          iprot.skip(ftype)
9976
      else:
9977
        iprot.skip(ftype)
9978
      iprot.readFieldEnd()
9979
    iprot.readStructEnd()
9980
 
9981
  def write(self, oprot):
9982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9984
      return
559 chandransh 9985
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 9986
    if self.success is not None:
559 chandransh 9987
      oprot.writeFieldBegin('success', TType.LIST, 0)
9988
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9989
      for iter97 in self.success:
9990
        iter97.write(oprot)
559 chandransh 9991
      oprot.writeListEnd()
94 ashish 9992
      oprot.writeFieldEnd()
3431 rajveer 9993
    if self.scx is not None:
559 chandransh 9994
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9995
      self.scx.write(oprot)
94 ashish 9996
      oprot.writeFieldEnd()
9997
    oprot.writeFieldStop()
9998
    oprot.writeStructEnd()
9999
 
3431 rajveer 10000
  def validate(self):
10001
    return
10002
 
10003
 
94 ashish 10004
  def __repr__(self):
10005
    L = ['%s=%r' % (key, value)
10006
      for key, value in self.__dict__.iteritems()]
10007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10008
 
10009
  def __eq__(self, other):
10010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10011
 
10012
  def __ne__(self, other):
10013
    return not (self == other)
10014
 
559 chandransh 10015
class getCartsByStatus_args:
94 ashish 10016
  """
10017
  Attributes:
559 chandransh 10018
   - status
94 ashish 10019
  """
10020
 
10021
  thrift_spec = (
10022
    None, # 0
559 chandransh 10023
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10024
  )
10025
 
559 chandransh 10026
  def __init__(self, status=None,):
10027
    self.status = status
94 ashish 10028
 
10029
  def read(self, iprot):
10030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10032
      return
10033
    iprot.readStructBegin()
10034
    while True:
10035
      (fname, ftype, fid) = iprot.readFieldBegin()
10036
      if ftype == TType.STOP:
10037
        break
10038
      if fid == 1:
559 chandransh 10039
        if ftype == TType.I32:
10040
          self.status = iprot.readI32();
10041
        else:
10042
          iprot.skip(ftype)
10043
      else:
10044
        iprot.skip(ftype)
10045
      iprot.readFieldEnd()
10046
    iprot.readStructEnd()
10047
 
10048
  def write(self, oprot):
10049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10051
      return
10052
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10053
    if self.status is not None:
559 chandransh 10054
      oprot.writeFieldBegin('status', TType.I32, 1)
10055
      oprot.writeI32(self.status)
10056
      oprot.writeFieldEnd()
10057
    oprot.writeFieldStop()
10058
    oprot.writeStructEnd()
10059
 
3431 rajveer 10060
  def validate(self):
10061
    return
10062
 
10063
 
559 chandransh 10064
  def __repr__(self):
10065
    L = ['%s=%r' % (key, value)
10066
      for key, value in self.__dict__.iteritems()]
10067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10068
 
10069
  def __eq__(self, other):
10070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10071
 
10072
  def __ne__(self, other):
10073
    return not (self == other)
10074
 
10075
class getCartsByStatus_result:
10076
  """
10077
  Attributes:
10078
   - success
10079
   - scx
10080
  """
10081
 
10082
  thrift_spec = (
10083
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10084
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10085
  )
10086
 
10087
  def __init__(self, success=None, scx=None,):
10088
    self.success = success
10089
    self.scx = scx
10090
 
10091
  def read(self, iprot):
10092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10094
      return
10095
    iprot.readStructBegin()
10096
    while True:
10097
      (fname, ftype, fid) = iprot.readFieldBegin()
10098
      if ftype == TType.STOP:
10099
        break
10100
      if fid == 0:
10101
        if ftype == TType.LIST:
10102
          self.success = []
3385 varun.gupt 10103
          (_etype101, _size98) = iprot.readListBegin()
10104
          for _i102 in xrange(_size98):
10105
            _elem103 = Cart()
10106
            _elem103.read(iprot)
10107
            self.success.append(_elem103)
559 chandransh 10108
          iprot.readListEnd()
10109
        else:
10110
          iprot.skip(ftype)
10111
      elif fid == 1:
10112
        if ftype == TType.STRUCT:
10113
          self.scx = ShoppingCartException()
10114
          self.scx.read(iprot)
10115
        else:
10116
          iprot.skip(ftype)
10117
      else:
10118
        iprot.skip(ftype)
10119
      iprot.readFieldEnd()
10120
    iprot.readStructEnd()
10121
 
10122
  def write(self, oprot):
10123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10125
      return
10126
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10127
    if self.success is not None:
559 chandransh 10128
      oprot.writeFieldBegin('success', TType.LIST, 0)
10129
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10130
      for iter104 in self.success:
10131
        iter104.write(oprot)
559 chandransh 10132
      oprot.writeListEnd()
10133
      oprot.writeFieldEnd()
3431 rajveer 10134
    if self.scx is not None:
559 chandransh 10135
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10136
      self.scx.write(oprot)
10137
      oprot.writeFieldEnd()
10138
    oprot.writeFieldStop()
10139
    oprot.writeStructEnd()
10140
 
3431 rajveer 10141
  def validate(self):
10142
    return
10143
 
10144
 
559 chandransh 10145
  def __repr__(self):
10146
    L = ['%s=%r' % (key, value)
10147
      for key, value in self.__dict__.iteritems()]
10148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10149
 
10150
  def __eq__(self, other):
10151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10152
 
10153
  def __ne__(self, other):
10154
    return not (self == other)
10155
 
10156
class getCartsByTime_args:
10157
  """
10158
  Attributes:
10159
   - from_time
10160
   - to_time
10161
   - status
10162
  """
10163
 
10164
  thrift_spec = (
10165
    None, # 0
10166
    (1, TType.I64, 'from_time', None, None, ), # 1
10167
    (2, TType.I64, 'to_time', None, None, ), # 2
10168
    (3, TType.I32, 'status', None, None, ), # 3
10169
  )
10170
 
10171
  def __init__(self, from_time=None, to_time=None, status=None,):
10172
    self.from_time = from_time
10173
    self.to_time = to_time
10174
    self.status = status
10175
 
10176
  def read(self, iprot):
10177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10179
      return
10180
    iprot.readStructBegin()
10181
    while True:
10182
      (fname, ftype, fid) = iprot.readFieldBegin()
10183
      if ftype == TType.STOP:
10184
        break
10185
      if fid == 1:
94 ashish 10186
        if ftype == TType.I64:
559 chandransh 10187
          self.from_time = iprot.readI64();
94 ashish 10188
        else:
10189
          iprot.skip(ftype)
122 ashish 10190
      elif fid == 2:
559 chandransh 10191
        if ftype == TType.I64:
10192
          self.to_time = iprot.readI64();
122 ashish 10193
        else:
10194
          iprot.skip(ftype)
559 chandransh 10195
      elif fid == 3:
10196
        if ftype == TType.I32:
10197
          self.status = iprot.readI32();
10198
        else:
10199
          iprot.skip(ftype)
94 ashish 10200
      else:
10201
        iprot.skip(ftype)
10202
      iprot.readFieldEnd()
10203
    iprot.readStructEnd()
10204
 
10205
  def write(self, oprot):
10206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10208
      return
559 chandransh 10209
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10210
    if self.from_time is not None:
559 chandransh 10211
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10212
      oprot.writeI64(self.from_time)
94 ashish 10213
      oprot.writeFieldEnd()
3431 rajveer 10214
    if self.to_time is not None:
559 chandransh 10215
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10216
      oprot.writeI64(self.to_time)
122 ashish 10217
      oprot.writeFieldEnd()
3431 rajveer 10218
    if self.status is not None:
559 chandransh 10219
      oprot.writeFieldBegin('status', TType.I32, 3)
10220
      oprot.writeI32(self.status)
10221
      oprot.writeFieldEnd()
94 ashish 10222
    oprot.writeFieldStop()
10223
    oprot.writeStructEnd()
10224
 
3431 rajveer 10225
  def validate(self):
10226
    return
10227
 
10228
 
94 ashish 10229
  def __repr__(self):
10230
    L = ['%s=%r' % (key, value)
10231
      for key, value in self.__dict__.iteritems()]
10232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10233
 
10234
  def __eq__(self, other):
10235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10236
 
10237
  def __ne__(self, other):
10238
    return not (self == other)
10239
 
559 chandransh 10240
class getCartsByTime_result:
94 ashish 10241
  """
10242
  Attributes:
10243
   - success
559 chandransh 10244
   - scx
94 ashish 10245
  """
10246
 
10247
  thrift_spec = (
559 chandransh 10248
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10249
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10250
  )
10251
 
559 chandransh 10252
  def __init__(self, success=None, scx=None,):
94 ashish 10253
    self.success = success
559 chandransh 10254
    self.scx = scx
94 ashish 10255
 
10256
  def read(self, iprot):
10257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10259
      return
10260
    iprot.readStructBegin()
10261
    while True:
10262
      (fname, ftype, fid) = iprot.readFieldBegin()
10263
      if ftype == TType.STOP:
10264
        break
10265
      if fid == 0:
559 chandransh 10266
        if ftype == TType.LIST:
10267
          self.success = []
3385 varun.gupt 10268
          (_etype108, _size105) = iprot.readListBegin()
10269
          for _i109 in xrange(_size105):
10270
            _elem110 = Cart()
10271
            _elem110.read(iprot)
10272
            self.success.append(_elem110)
559 chandransh 10273
          iprot.readListEnd()
94 ashish 10274
        else:
10275
          iprot.skip(ftype)
10276
      elif fid == 1:
10277
        if ftype == TType.STRUCT:
559 chandransh 10278
          self.scx = ShoppingCartException()
10279
          self.scx.read(iprot)
94 ashish 10280
        else:
10281
          iprot.skip(ftype)
10282
      else:
10283
        iprot.skip(ftype)
10284
      iprot.readFieldEnd()
10285
    iprot.readStructEnd()
10286
 
10287
  def write(self, oprot):
10288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10290
      return
559 chandransh 10291
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10292
    if self.success is not None:
559 chandransh 10293
      oprot.writeFieldBegin('success', TType.LIST, 0)
10294
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10295
      for iter111 in self.success:
10296
        iter111.write(oprot)
559 chandransh 10297
      oprot.writeListEnd()
94 ashish 10298
      oprot.writeFieldEnd()
3431 rajveer 10299
    if self.scx is not None:
559 chandransh 10300
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10301
      self.scx.write(oprot)
94 ashish 10302
      oprot.writeFieldEnd()
10303
    oprot.writeFieldStop()
10304
    oprot.writeStructEnd()
10305
 
3431 rajveer 10306
  def validate(self):
10307
    return
10308
 
10309
 
94 ashish 10310
  def __repr__(self):
10311
    L = ['%s=%r' % (key, value)
10312
      for key, value in self.__dict__.iteritems()]
10313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10314
 
10315
  def __eq__(self, other):
10316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10317
 
10318
  def __ne__(self, other):
10319
    return not (self == other)
10320
 
559 chandransh 10321
class changeCartStatus_args:
94 ashish 10322
  """
10323
  Attributes:
559 chandransh 10324
   - cartId
10325
   - status
94 ashish 10326
  """
10327
 
10328
  thrift_spec = (
10329
    None, # 0
559 chandransh 10330
    (1, TType.I64, 'cartId', None, None, ), # 1
10331
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10332
  )
10333
 
559 chandransh 10334
  def __init__(self, cartId=None, status=None,):
10335
    self.cartId = cartId
10336
    self.status = status
94 ashish 10337
 
10338
  def read(self, iprot):
10339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10341
      return
10342
    iprot.readStructBegin()
10343
    while True:
10344
      (fname, ftype, fid) = iprot.readFieldBegin()
10345
      if ftype == TType.STOP:
10346
        break
10347
      if fid == 1:
10348
        if ftype == TType.I64:
559 chandransh 10349
          self.cartId = iprot.readI64();
94 ashish 10350
        else:
10351
          iprot.skip(ftype)
559 chandransh 10352
      elif fid == 2:
10353
        if ftype == TType.I32:
10354
          self.status = iprot.readI32();
10355
        else:
10356
          iprot.skip(ftype)
94 ashish 10357
      else:
10358
        iprot.skip(ftype)
10359
      iprot.readFieldEnd()
10360
    iprot.readStructEnd()
10361
 
10362
  def write(self, oprot):
10363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10365
      return
559 chandransh 10366
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10367
    if self.cartId is not None:
559 chandransh 10368
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10369
      oprot.writeI64(self.cartId)
94 ashish 10370
      oprot.writeFieldEnd()
3431 rajveer 10371
    if self.status is not None:
559 chandransh 10372
      oprot.writeFieldBegin('status', TType.I32, 2)
10373
      oprot.writeI32(self.status)
10374
      oprot.writeFieldEnd()
94 ashish 10375
    oprot.writeFieldStop()
10376
    oprot.writeStructEnd()
10377
 
3431 rajveer 10378
  def validate(self):
10379
    return
10380
 
10381
 
94 ashish 10382
  def __repr__(self):
10383
    L = ['%s=%r' % (key, value)
10384
      for key, value in self.__dict__.iteritems()]
10385
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10386
 
10387
  def __eq__(self, other):
10388
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10389
 
10390
  def __ne__(self, other):
10391
    return not (self == other)
10392
 
559 chandransh 10393
class changeCartStatus_result:
94 ashish 10394
  """
10395
  Attributes:
559 chandransh 10396
   - scx
10397
  """
10398
 
10399
  thrift_spec = (
10400
    None, # 0
10401
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10402
  )
10403
 
10404
  def __init__(self, scx=None,):
10405
    self.scx = scx
10406
 
10407
  def read(self, iprot):
10408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10410
      return
10411
    iprot.readStructBegin()
10412
    while True:
10413
      (fname, ftype, fid) = iprot.readFieldBegin()
10414
      if ftype == TType.STOP:
10415
        break
10416
      if fid == 1:
10417
        if ftype == TType.STRUCT:
10418
          self.scx = ShoppingCartException()
10419
          self.scx.read(iprot)
10420
        else:
10421
          iprot.skip(ftype)
10422
      else:
10423
        iprot.skip(ftype)
10424
      iprot.readFieldEnd()
10425
    iprot.readStructEnd()
10426
 
10427
  def write(self, oprot):
10428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10430
      return
10431
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10432
    if self.scx is not None:
559 chandransh 10433
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10434
      self.scx.write(oprot)
10435
      oprot.writeFieldEnd()
10436
    oprot.writeFieldStop()
10437
    oprot.writeStructEnd()
10438
 
3431 rajveer 10439
  def validate(self):
10440
    return
10441
 
10442
 
559 chandransh 10443
  def __repr__(self):
10444
    L = ['%s=%r' % (key, value)
10445
      for key, value in self.__dict__.iteritems()]
10446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10447
 
10448
  def __eq__(self, other):
10449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10450
 
10451
  def __ne__(self, other):
10452
    return not (self == other)
10453
 
10454
class addItemToCart_args:
10455
  """
10456
  Attributes:
10457
   - cartId
10458
   - itemId
10459
   - quantity
10460
  """
10461
 
10462
  thrift_spec = (
10463
    None, # 0
10464
    (1, TType.I64, 'cartId', None, None, ), # 1
10465
    (2, TType.I64, 'itemId', None, None, ), # 2
10466
    (3, TType.I64, 'quantity', None, None, ), # 3
10467
  )
10468
 
10469
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10470
    self.cartId = cartId
10471
    self.itemId = itemId
10472
    self.quantity = quantity
10473
 
10474
  def read(self, iprot):
10475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10477
      return
10478
    iprot.readStructBegin()
10479
    while True:
10480
      (fname, ftype, fid) = iprot.readFieldBegin()
10481
      if ftype == TType.STOP:
10482
        break
10483
      if fid == 1:
10484
        if ftype == TType.I64:
10485
          self.cartId = iprot.readI64();
10486
        else:
10487
          iprot.skip(ftype)
10488
      elif fid == 2:
10489
        if ftype == TType.I64:
10490
          self.itemId = iprot.readI64();
10491
        else:
10492
          iprot.skip(ftype)
10493
      elif fid == 3:
10494
        if ftype == TType.I64:
10495
          self.quantity = iprot.readI64();
10496
        else:
10497
          iprot.skip(ftype)
10498
      else:
10499
        iprot.skip(ftype)
10500
      iprot.readFieldEnd()
10501
    iprot.readStructEnd()
10502
 
10503
  def write(self, oprot):
10504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10506
      return
10507
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10508
    if self.cartId is not None:
559 chandransh 10509
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10510
      oprot.writeI64(self.cartId)
10511
      oprot.writeFieldEnd()
3431 rajveer 10512
    if self.itemId is not None:
559 chandransh 10513
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10514
      oprot.writeI64(self.itemId)
10515
      oprot.writeFieldEnd()
3431 rajveer 10516
    if self.quantity is not None:
559 chandransh 10517
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10518
      oprot.writeI64(self.quantity)
10519
      oprot.writeFieldEnd()
10520
    oprot.writeFieldStop()
10521
    oprot.writeStructEnd()
10522
 
3431 rajveer 10523
  def validate(self):
10524
    return
10525
 
10526
 
559 chandransh 10527
  def __repr__(self):
10528
    L = ['%s=%r' % (key, value)
10529
      for key, value in self.__dict__.iteritems()]
10530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10531
 
10532
  def __eq__(self, other):
10533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10534
 
10535
  def __ne__(self, other):
10536
    return not (self == other)
10537
 
10538
class addItemToCart_result:
10539
  """
10540
  Attributes:
2035 rajveer 10541
   - success
559 chandransh 10542
   - scx
10543
  """
10544
 
10545
  thrift_spec = (
2035 rajveer 10546
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10547
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10548
  )
10549
 
2035 rajveer 10550
  def __init__(self, success=None, scx=None,):
10551
    self.success = success
559 chandransh 10552
    self.scx = scx
10553
 
10554
  def read(self, iprot):
10555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10557
      return
10558
    iprot.readStructBegin()
10559
    while True:
10560
      (fname, ftype, fid) = iprot.readFieldBegin()
10561
      if ftype == TType.STOP:
10562
        break
2035 rajveer 10563
      if fid == 0:
10564
        if ftype == TType.STRING:
10565
          self.success = iprot.readString();
10566
        else:
10567
          iprot.skip(ftype)
10568
      elif fid == 1:
559 chandransh 10569
        if ftype == TType.STRUCT:
10570
          self.scx = ShoppingCartException()
10571
          self.scx.read(iprot)
10572
        else:
10573
          iprot.skip(ftype)
10574
      else:
10575
        iprot.skip(ftype)
10576
      iprot.readFieldEnd()
10577
    iprot.readStructEnd()
10578
 
10579
  def write(self, oprot):
10580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10582
      return
10583
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10584
    if self.success is not None:
2035 rajveer 10585
      oprot.writeFieldBegin('success', TType.STRING, 0)
10586
      oprot.writeString(self.success)
10587
      oprot.writeFieldEnd()
3431 rajveer 10588
    if self.scx is not None:
559 chandransh 10589
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10590
      self.scx.write(oprot)
10591
      oprot.writeFieldEnd()
10592
    oprot.writeFieldStop()
10593
    oprot.writeStructEnd()
10594
 
3431 rajveer 10595
  def validate(self):
10596
    return
10597
 
10598
 
559 chandransh 10599
  def __repr__(self):
10600
    L = ['%s=%r' % (key, value)
10601
      for key, value in self.__dict__.iteritems()]
10602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10603
 
10604
  def __eq__(self, other):
10605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10606
 
10607
  def __ne__(self, other):
10608
    return not (self == other)
10609
 
10610
class deleteItemFromCart_args:
10611
  """
10612
  Attributes:
10613
   - cartId
10614
   - itemId
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
  )
10622
 
10623
  def __init__(self, cartId=None, itemId=None,):
10624
    self.cartId = cartId
10625
    self.itemId = itemId
10626
 
10627
  def read(self, iprot):
10628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10630
      return
10631
    iprot.readStructBegin()
10632
    while True:
10633
      (fname, ftype, fid) = iprot.readFieldBegin()
10634
      if ftype == TType.STOP:
10635
        break
10636
      if fid == 1:
10637
        if ftype == TType.I64:
10638
          self.cartId = iprot.readI64();
10639
        else:
10640
          iprot.skip(ftype)
10641
      elif fid == 2:
10642
        if ftype == TType.I64:
10643
          self.itemId = iprot.readI64();
10644
        else:
10645
          iprot.skip(ftype)
10646
      else:
10647
        iprot.skip(ftype)
10648
      iprot.readFieldEnd()
10649
    iprot.readStructEnd()
10650
 
10651
  def write(self, oprot):
10652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10654
      return
10655
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10656
    if self.cartId is not None:
559 chandransh 10657
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10658
      oprot.writeI64(self.cartId)
10659
      oprot.writeFieldEnd()
3431 rajveer 10660
    if self.itemId is not None:
559 chandransh 10661
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10662
      oprot.writeI64(self.itemId)
10663
      oprot.writeFieldEnd()
10664
    oprot.writeFieldStop()
10665
    oprot.writeStructEnd()
10666
 
3431 rajveer 10667
  def validate(self):
10668
    return
10669
 
10670
 
559 chandransh 10671
  def __repr__(self):
10672
    L = ['%s=%r' % (key, value)
10673
      for key, value in self.__dict__.iteritems()]
10674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10675
 
10676
  def __eq__(self, other):
10677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10678
 
10679
  def __ne__(self, other):
10680
    return not (self == other)
10681
 
10682
class deleteItemFromCart_result:
10683
  """
10684
  Attributes:
10685
   - scx
10686
  """
10687
 
10688
  thrift_spec = (
10689
    None, # 0
10690
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10691
  )
10692
 
10693
  def __init__(self, scx=None,):
10694
    self.scx = scx
10695
 
10696
  def read(self, iprot):
10697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10699
      return
10700
    iprot.readStructBegin()
10701
    while True:
10702
      (fname, ftype, fid) = iprot.readFieldBegin()
10703
      if ftype == TType.STOP:
10704
        break
10705
      if fid == 1:
10706
        if ftype == TType.STRUCT:
10707
          self.scx = ShoppingCartException()
10708
          self.scx.read(iprot)
10709
        else:
10710
          iprot.skip(ftype)
10711
      else:
10712
        iprot.skip(ftype)
10713
      iprot.readFieldEnd()
10714
    iprot.readStructEnd()
10715
 
10716
  def write(self, oprot):
10717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10719
      return
10720
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10721
    if self.scx is not None:
559 chandransh 10722
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10723
      self.scx.write(oprot)
10724
      oprot.writeFieldEnd()
10725
    oprot.writeFieldStop()
10726
    oprot.writeStructEnd()
10727
 
3431 rajveer 10728
  def validate(self):
10729
    return
10730
 
10731
 
559 chandransh 10732
  def __repr__(self):
10733
    L = ['%s=%r' % (key, value)
10734
      for key, value in self.__dict__.iteritems()]
10735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10736
 
10737
  def __eq__(self, other):
10738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10739
 
10740
  def __ne__(self, other):
10741
    return not (self == other)
10742
 
10743
class changeQuantity_args:
10744
  """
10745
  Attributes:
10746
   - cartId
10747
   - itemId
10748
   - quantity
10749
  """
10750
 
10751
  thrift_spec = (
10752
    None, # 0
10753
    (1, TType.I64, 'cartId', None, None, ), # 1
10754
    (2, TType.I64, 'itemId', None, None, ), # 2
10755
    (3, TType.I64, 'quantity', None, None, ), # 3
10756
  )
10757
 
10758
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10759
    self.cartId = cartId
10760
    self.itemId = itemId
10761
    self.quantity = quantity
10762
 
10763
  def read(self, iprot):
10764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10766
      return
10767
    iprot.readStructBegin()
10768
    while True:
10769
      (fname, ftype, fid) = iprot.readFieldBegin()
10770
      if ftype == TType.STOP:
10771
        break
10772
      if fid == 1:
10773
        if ftype == TType.I64:
10774
          self.cartId = iprot.readI64();
10775
        else:
10776
          iprot.skip(ftype)
10777
      elif fid == 2:
10778
        if ftype == TType.I64:
10779
          self.itemId = iprot.readI64();
10780
        else:
10781
          iprot.skip(ftype)
10782
      elif fid == 3:
10783
        if ftype == TType.I64:
10784
          self.quantity = iprot.readI64();
10785
        else:
10786
          iprot.skip(ftype)
10787
      else:
10788
        iprot.skip(ftype)
10789
      iprot.readFieldEnd()
10790
    iprot.readStructEnd()
10791
 
10792
  def write(self, oprot):
10793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10795
      return
10796
    oprot.writeStructBegin('changeQuantity_args')
3431 rajveer 10797
    if self.cartId is not None:
559 chandransh 10798
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10799
      oprot.writeI64(self.cartId)
10800
      oprot.writeFieldEnd()
3431 rajveer 10801
    if self.itemId is not None:
559 chandransh 10802
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10803
      oprot.writeI64(self.itemId)
10804
      oprot.writeFieldEnd()
3431 rajveer 10805
    if self.quantity is not None:
559 chandransh 10806
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10807
      oprot.writeI64(self.quantity)
10808
      oprot.writeFieldEnd()
10809
    oprot.writeFieldStop()
10810
    oprot.writeStructEnd()
10811
 
3431 rajveer 10812
  def validate(self):
10813
    return
10814
 
10815
 
559 chandransh 10816
  def __repr__(self):
10817
    L = ['%s=%r' % (key, value)
10818
      for key, value in self.__dict__.iteritems()]
10819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10820
 
10821
  def __eq__(self, other):
10822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10823
 
10824
  def __ne__(self, other):
10825
    return not (self == other)
10826
 
10827
class changeQuantity_result:
10828
  """
10829
  Attributes:
10830
   - scx
10831
  """
10832
 
10833
  thrift_spec = (
10834
    None, # 0
10835
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10836
  )
10837
 
10838
  def __init__(self, scx=None,):
10839
    self.scx = scx
10840
 
10841
  def read(self, iprot):
10842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10844
      return
10845
    iprot.readStructBegin()
10846
    while True:
10847
      (fname, ftype, fid) = iprot.readFieldBegin()
10848
      if ftype == TType.STOP:
10849
        break
10850
      if fid == 1:
10851
        if ftype == TType.STRUCT:
10852
          self.scx = ShoppingCartException()
10853
          self.scx.read(iprot)
10854
        else:
10855
          iprot.skip(ftype)
10856
      else:
10857
        iprot.skip(ftype)
10858
      iprot.readFieldEnd()
10859
    iprot.readStructEnd()
10860
 
10861
  def write(self, oprot):
10862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10864
      return
10865
    oprot.writeStructBegin('changeQuantity_result')
3431 rajveer 10866
    if self.scx is not None:
559 chandransh 10867
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10868
      self.scx.write(oprot)
10869
      oprot.writeFieldEnd()
10870
    oprot.writeFieldStop()
10871
    oprot.writeStructEnd()
10872
 
3431 rajveer 10873
  def validate(self):
10874
    return
10875
 
10876
 
559 chandransh 10877
  def __repr__(self):
10878
    L = ['%s=%r' % (key, value)
10879
      for key, value in self.__dict__.iteritems()]
10880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10881
 
10882
  def __eq__(self, other):
10883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10884
 
10885
  def __ne__(self, other):
10886
    return not (self == other)
10887
 
10888
class changeItemStatus_args:
10889
  """
10890
  Attributes:
10891
   - cartId
10892
   - itemId
10893
   - status
10894
  """
10895
 
10896
  thrift_spec = (
10897
    None, # 0
10898
    (1, TType.I64, 'cartId', None, None, ), # 1
10899
    (2, TType.I64, 'itemId', None, None, ), # 2
10900
    (3, TType.I32, 'status', None, None, ), # 3
10901
  )
10902
 
10903
  def __init__(self, cartId=None, itemId=None, status=None,):
10904
    self.cartId = cartId
10905
    self.itemId = itemId
10906
    self.status = status
10907
 
10908
  def read(self, iprot):
10909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10911
      return
10912
    iprot.readStructBegin()
10913
    while True:
10914
      (fname, ftype, fid) = iprot.readFieldBegin()
10915
      if ftype == TType.STOP:
10916
        break
10917
      if fid == 1:
10918
        if ftype == TType.I64:
10919
          self.cartId = iprot.readI64();
10920
        else:
10921
          iprot.skip(ftype)
10922
      elif fid == 2:
10923
        if ftype == TType.I64:
10924
          self.itemId = iprot.readI64();
10925
        else:
10926
          iprot.skip(ftype)
10927
      elif fid == 3:
10928
        if ftype == TType.I32:
10929
          self.status = iprot.readI32();
10930
        else:
10931
          iprot.skip(ftype)
10932
      else:
10933
        iprot.skip(ftype)
10934
      iprot.readFieldEnd()
10935
    iprot.readStructEnd()
10936
 
10937
  def write(self, oprot):
10938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10940
      return
10941
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 10942
    if self.cartId is not None:
559 chandransh 10943
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10944
      oprot.writeI64(self.cartId)
10945
      oprot.writeFieldEnd()
3431 rajveer 10946
    if self.itemId is not None:
559 chandransh 10947
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10948
      oprot.writeI64(self.itemId)
10949
      oprot.writeFieldEnd()
3431 rajveer 10950
    if self.status is not None:
559 chandransh 10951
      oprot.writeFieldBegin('status', TType.I32, 3)
10952
      oprot.writeI32(self.status)
10953
      oprot.writeFieldEnd()
10954
    oprot.writeFieldStop()
10955
    oprot.writeStructEnd()
10956
 
3431 rajveer 10957
  def validate(self):
10958
    return
10959
 
10960
 
559 chandransh 10961
  def __repr__(self):
10962
    L = ['%s=%r' % (key, value)
10963
      for key, value in self.__dict__.iteritems()]
10964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10965
 
10966
  def __eq__(self, other):
10967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10968
 
10969
  def __ne__(self, other):
10970
    return not (self == other)
10971
 
10972
class changeItemStatus_result:
10973
  """
10974
  Attributes:
10975
   - scx
10976
  """
10977
 
10978
  thrift_spec = (
10979
    None, # 0
10980
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10981
  )
10982
 
10983
  def __init__(self, scx=None,):
10984
    self.scx = scx
10985
 
10986
  def read(self, iprot):
10987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10989
      return
10990
    iprot.readStructBegin()
10991
    while True:
10992
      (fname, ftype, fid) = iprot.readFieldBegin()
10993
      if ftype == TType.STOP:
10994
        break
10995
      if fid == 1:
10996
        if ftype == TType.STRUCT:
10997
          self.scx = ShoppingCartException()
10998
          self.scx.read(iprot)
10999
        else:
11000
          iprot.skip(ftype)
11001
      else:
11002
        iprot.skip(ftype)
11003
      iprot.readFieldEnd()
11004
    iprot.readStructEnd()
11005
 
11006
  def write(self, oprot):
11007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11009
      return
11010
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 11011
    if self.scx is not None:
559 chandransh 11012
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11013
      self.scx.write(oprot)
11014
      oprot.writeFieldEnd()
11015
    oprot.writeFieldStop()
11016
    oprot.writeStructEnd()
11017
 
3431 rajveer 11018
  def validate(self):
11019
    return
11020
 
11021
 
559 chandransh 11022
  def __repr__(self):
11023
    L = ['%s=%r' % (key, value)
11024
      for key, value in self.__dict__.iteritems()]
11025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11026
 
11027
  def __eq__(self, other):
11028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11029
 
11030
  def __ne__(self, other):
11031
    return not (self == other)
11032
 
11033
class addAddressToCart_args:
11034
  """
11035
  Attributes:
11036
   - cartId
11037
   - addressId
11038
  """
11039
 
11040
  thrift_spec = (
11041
    None, # 0
11042
    (1, TType.I64, 'cartId', None, None, ), # 1
11043
    (2, TType.I64, 'addressId', None, None, ), # 2
11044
  )
11045
 
11046
  def __init__(self, cartId=None, addressId=None,):
11047
    self.cartId = cartId
11048
    self.addressId = addressId
11049
 
11050
  def read(self, iprot):
11051
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11052
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11053
      return
11054
    iprot.readStructBegin()
11055
    while True:
11056
      (fname, ftype, fid) = iprot.readFieldBegin()
11057
      if ftype == TType.STOP:
11058
        break
11059
      if fid == 1:
11060
        if ftype == TType.I64:
11061
          self.cartId = iprot.readI64();
11062
        else:
11063
          iprot.skip(ftype)
11064
      elif fid == 2:
11065
        if ftype == TType.I64:
11066
          self.addressId = iprot.readI64();
11067
        else:
11068
          iprot.skip(ftype)
11069
      else:
11070
        iprot.skip(ftype)
11071
      iprot.readFieldEnd()
11072
    iprot.readStructEnd()
11073
 
11074
  def write(self, oprot):
11075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11077
      return
11078
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11079
    if self.cartId is not None:
559 chandransh 11080
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11081
      oprot.writeI64(self.cartId)
11082
      oprot.writeFieldEnd()
3431 rajveer 11083
    if self.addressId is not None:
559 chandransh 11084
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11085
      oprot.writeI64(self.addressId)
11086
      oprot.writeFieldEnd()
11087
    oprot.writeFieldStop()
11088
    oprot.writeStructEnd()
11089
 
3431 rajveer 11090
  def validate(self):
11091
    return
11092
 
11093
 
559 chandransh 11094
  def __repr__(self):
11095
    L = ['%s=%r' % (key, value)
11096
      for key, value in self.__dict__.iteritems()]
11097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11098
 
11099
  def __eq__(self, other):
11100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11101
 
11102
  def __ne__(self, other):
11103
    return not (self == other)
11104
 
11105
class addAddressToCart_result:
575 chandransh 11106
  """
11107
  Attributes:
11108
   - scx
11109
  """
559 chandransh 11110
 
11111
  thrift_spec = (
575 chandransh 11112
    None, # 0
11113
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11114
  )
11115
 
575 chandransh 11116
  def __init__(self, scx=None,):
11117
    self.scx = scx
11118
 
559 chandransh 11119
  def read(self, iprot):
11120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11122
      return
11123
    iprot.readStructBegin()
11124
    while True:
11125
      (fname, ftype, fid) = iprot.readFieldBegin()
11126
      if ftype == TType.STOP:
11127
        break
575 chandransh 11128
      if fid == 1:
11129
        if ftype == TType.STRUCT:
11130
          self.scx = ShoppingCartException()
11131
          self.scx.read(iprot)
11132
        else:
11133
          iprot.skip(ftype)
559 chandransh 11134
      else:
11135
        iprot.skip(ftype)
11136
      iprot.readFieldEnd()
11137
    iprot.readStructEnd()
11138
 
11139
  def write(self, oprot):
11140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11142
      return
11143
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11144
    if self.scx is not None:
575 chandransh 11145
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11146
      self.scx.write(oprot)
11147
      oprot.writeFieldEnd()
559 chandransh 11148
    oprot.writeFieldStop()
11149
    oprot.writeStructEnd()
11150
 
3431 rajveer 11151
  def validate(self):
11152
    return
11153
 
11154
 
559 chandransh 11155
  def __repr__(self):
11156
    L = ['%s=%r' % (key, value)
11157
      for key, value in self.__dict__.iteritems()]
11158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11159
 
11160
  def __eq__(self, other):
11161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11162
 
11163
  def __ne__(self, other):
11164
    return not (self == other)
11165
 
1976 varun.gupt 11166
class applyCouponToCart_args:
11167
  """
11168
  Attributes:
11169
   - cartId
11170
   - couponCode
11171
   - totalPrice
11172
   - discountedPrice
11173
  """
11174
 
11175
  thrift_spec = (
11176
    None, # 0
11177
    (1, TType.I64, 'cartId', None, None, ), # 1
11178
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11179
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11180
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11181
  )
11182
 
11183
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11184
    self.cartId = cartId
11185
    self.couponCode = couponCode
11186
    self.totalPrice = totalPrice
11187
    self.discountedPrice = discountedPrice
11188
 
11189
  def read(self, iprot):
11190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11192
      return
11193
    iprot.readStructBegin()
11194
    while True:
11195
      (fname, ftype, fid) = iprot.readFieldBegin()
11196
      if ftype == TType.STOP:
11197
        break
11198
      if fid == 1:
11199
        if ftype == TType.I64:
11200
          self.cartId = iprot.readI64();
11201
        else:
11202
          iprot.skip(ftype)
11203
      elif fid == 2:
11204
        if ftype == TType.STRING:
11205
          self.couponCode = iprot.readString();
11206
        else:
11207
          iprot.skip(ftype)
11208
      elif fid == 3:
11209
        if ftype == TType.DOUBLE:
11210
          self.totalPrice = iprot.readDouble();
11211
        else:
11212
          iprot.skip(ftype)
11213
      elif fid == 4:
11214
        if ftype == TType.DOUBLE:
11215
          self.discountedPrice = iprot.readDouble();
11216
        else:
11217
          iprot.skip(ftype)
11218
      else:
11219
        iprot.skip(ftype)
11220
      iprot.readFieldEnd()
11221
    iprot.readStructEnd()
11222
 
11223
  def write(self, oprot):
11224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11226
      return
11227
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11228
    if self.cartId is not None:
1976 varun.gupt 11229
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11230
      oprot.writeI64(self.cartId)
11231
      oprot.writeFieldEnd()
3431 rajveer 11232
    if self.couponCode is not None:
1976 varun.gupt 11233
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11234
      oprot.writeString(self.couponCode)
11235
      oprot.writeFieldEnd()
3431 rajveer 11236
    if self.totalPrice is not None:
1976 varun.gupt 11237
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11238
      oprot.writeDouble(self.totalPrice)
11239
      oprot.writeFieldEnd()
3431 rajveer 11240
    if self.discountedPrice is not None:
1976 varun.gupt 11241
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11242
      oprot.writeDouble(self.discountedPrice)
11243
      oprot.writeFieldEnd()
11244
    oprot.writeFieldStop()
11245
    oprot.writeStructEnd()
11246
 
3431 rajveer 11247
  def validate(self):
11248
    return
11249
 
11250
 
1976 varun.gupt 11251
  def __repr__(self):
11252
    L = ['%s=%r' % (key, value)
11253
      for key, value in self.__dict__.iteritems()]
11254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11255
 
11256
  def __eq__(self, other):
11257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11258
 
11259
  def __ne__(self, other):
11260
    return not (self == other)
11261
 
11262
class applyCouponToCart_result:
11263
  """
11264
  Attributes:
11265
   - scx
11266
  """
11267
 
11268
  thrift_spec = (
11269
    None, # 0
11270
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11271
  )
11272
 
11273
  def __init__(self, scx=None,):
11274
    self.scx = scx
11275
 
11276
  def read(self, iprot):
11277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11279
      return
11280
    iprot.readStructBegin()
11281
    while True:
11282
      (fname, ftype, fid) = iprot.readFieldBegin()
11283
      if ftype == TType.STOP:
11284
        break
11285
      if fid == 1:
11286
        if ftype == TType.STRUCT:
11287
          self.scx = ShoppingCartException()
11288
          self.scx.read(iprot)
11289
        else:
11290
          iprot.skip(ftype)
11291
      else:
11292
        iprot.skip(ftype)
11293
      iprot.readFieldEnd()
11294
    iprot.readStructEnd()
11295
 
11296
  def write(self, oprot):
11297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11299
      return
11300
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11301
    if self.scx is not None:
1976 varun.gupt 11302
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11303
      self.scx.write(oprot)
11304
      oprot.writeFieldEnd()
11305
    oprot.writeFieldStop()
11306
    oprot.writeStructEnd()
11307
 
3431 rajveer 11308
  def validate(self):
11309
    return
11310
 
11311
 
1976 varun.gupt 11312
  def __repr__(self):
11313
    L = ['%s=%r' % (key, value)
11314
      for key, value in self.__dict__.iteritems()]
11315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11316
 
11317
  def __eq__(self, other):
11318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11319
 
11320
  def __ne__(self, other):
11321
    return not (self == other)
11322
 
11323
class removeCoupon_args:
11324
  """
11325
  Attributes:
11326
   - cartId
11327
  """
11328
 
11329
  thrift_spec = (
11330
    None, # 0
11331
    (1, TType.I64, 'cartId', None, None, ), # 1
11332
  )
11333
 
11334
  def __init__(self, cartId=None,):
11335
    self.cartId = cartId
11336
 
11337
  def read(self, iprot):
11338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11340
      return
11341
    iprot.readStructBegin()
11342
    while True:
11343
      (fname, ftype, fid) = iprot.readFieldBegin()
11344
      if ftype == TType.STOP:
11345
        break
11346
      if fid == 1:
11347
        if ftype == TType.I64:
11348
          self.cartId = iprot.readI64();
11349
        else:
11350
          iprot.skip(ftype)
11351
      else:
11352
        iprot.skip(ftype)
11353
      iprot.readFieldEnd()
11354
    iprot.readStructEnd()
11355
 
11356
  def write(self, oprot):
11357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11359
      return
11360
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11361
    if self.cartId is not None:
1976 varun.gupt 11362
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11363
      oprot.writeI64(self.cartId)
11364
      oprot.writeFieldEnd()
11365
    oprot.writeFieldStop()
11366
    oprot.writeStructEnd()
11367
 
3431 rajveer 11368
  def validate(self):
11369
    return
11370
 
11371
 
1976 varun.gupt 11372
  def __repr__(self):
11373
    L = ['%s=%r' % (key, value)
11374
      for key, value in self.__dict__.iteritems()]
11375
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11376
 
11377
  def __eq__(self, other):
11378
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11379
 
11380
  def __ne__(self, other):
11381
    return not (self == other)
11382
 
11383
class removeCoupon_result:
11384
  """
11385
  Attributes:
11386
   - scx
11387
  """
11388
 
11389
  thrift_spec = (
11390
    None, # 0
11391
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11392
  )
11393
 
11394
  def __init__(self, scx=None,):
11395
    self.scx = scx
11396
 
11397
  def read(self, iprot):
11398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11400
      return
11401
    iprot.readStructBegin()
11402
    while True:
11403
      (fname, ftype, fid) = iprot.readFieldBegin()
11404
      if ftype == TType.STOP:
11405
        break
11406
      if fid == 1:
11407
        if ftype == TType.STRUCT:
11408
          self.scx = ShoppingCartException()
11409
          self.scx.read(iprot)
11410
        else:
11411
          iprot.skip(ftype)
11412
      else:
11413
        iprot.skip(ftype)
11414
      iprot.readFieldEnd()
11415
    iprot.readStructEnd()
11416
 
11417
  def write(self, oprot):
11418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11420
      return
11421
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11422
    if self.scx is not None:
1976 varun.gupt 11423
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11424
      self.scx.write(oprot)
11425
      oprot.writeFieldEnd()
11426
    oprot.writeFieldStop()
11427
    oprot.writeStructEnd()
11428
 
3431 rajveer 11429
  def validate(self):
11430
    return
11431
 
11432
 
1976 varun.gupt 11433
  def __repr__(self):
11434
    L = ['%s=%r' % (key, value)
11435
      for key, value in self.__dict__.iteritems()]
11436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11437
 
11438
  def __eq__(self, other):
11439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11440
 
11441
  def __ne__(self, other):
11442
    return not (self == other)
11443
 
690 chandransh 11444
class createOrders_args:
559 chandransh 11445
  """
11446
  Attributes:
11447
   - cartId
2815 vikas 11448
   - sessionSource
11449
   - sessionStartTime
559 chandransh 11450
  """
11451
 
11452
  thrift_spec = (
11453
    None, # 0
11454
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11455
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11456
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
559 chandransh 11457
  )
11458
 
2815 vikas 11459
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None,):
559 chandransh 11460
    self.cartId = cartId
2815 vikas 11461
    self.sessionSource = sessionSource
11462
    self.sessionStartTime = sessionStartTime
559 chandransh 11463
 
11464
  def read(self, iprot):
11465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11467
      return
11468
    iprot.readStructBegin()
11469
    while True:
11470
      (fname, ftype, fid) = iprot.readFieldBegin()
11471
      if ftype == TType.STOP:
11472
        break
11473
      if fid == 1:
11474
        if ftype == TType.I64:
11475
          self.cartId = iprot.readI64();
11476
        else:
11477
          iprot.skip(ftype)
2815 vikas 11478
      elif fid == 2:
11479
        if ftype == TType.STRING:
11480
          self.sessionSource = iprot.readString();
11481
        else:
11482
          iprot.skip(ftype)
11483
      elif fid == 3:
11484
        if ftype == TType.I64:
11485
          self.sessionStartTime = iprot.readI64();
11486
        else:
11487
          iprot.skip(ftype)
559 chandransh 11488
      else:
11489
        iprot.skip(ftype)
11490
      iprot.readFieldEnd()
11491
    iprot.readStructEnd()
11492
 
11493
  def write(self, oprot):
11494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11496
      return
690 chandransh 11497
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11498
    if self.cartId is not None:
559 chandransh 11499
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11500
      oprot.writeI64(self.cartId)
11501
      oprot.writeFieldEnd()
3431 rajveer 11502
    if self.sessionSource is not None:
2815 vikas 11503
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11504
      oprot.writeString(self.sessionSource)
11505
      oprot.writeFieldEnd()
3431 rajveer 11506
    if self.sessionStartTime is not None:
2815 vikas 11507
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11508
      oprot.writeI64(self.sessionStartTime)
11509
      oprot.writeFieldEnd()
559 chandransh 11510
    oprot.writeFieldStop()
11511
    oprot.writeStructEnd()
11512
 
3431 rajveer 11513
  def validate(self):
11514
    return
11515
 
11516
 
559 chandransh 11517
  def __repr__(self):
11518
    L = ['%s=%r' % (key, value)
11519
      for key, value in self.__dict__.iteritems()]
11520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11521
 
11522
  def __eq__(self, other):
11523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11524
 
11525
  def __ne__(self, other):
11526
    return not (self == other)
11527
 
690 chandransh 11528
class createOrders_result:
559 chandransh 11529
  """
11530
  Attributes:
94 ashish 11531
   - success
559 chandransh 11532
   - scx
94 ashish 11533
  """
11534
 
11535
  thrift_spec = (
575 chandransh 11536
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11537
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11538
  )
11539
 
559 chandransh 11540
  def __init__(self, success=None, scx=None,):
94 ashish 11541
    self.success = success
559 chandransh 11542
    self.scx = scx
94 ashish 11543
 
11544
  def read(self, iprot):
11545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11547
      return
11548
    iprot.readStructBegin()
11549
    while True:
11550
      (fname, ftype, fid) = iprot.readFieldBegin()
11551
      if ftype == TType.STOP:
11552
        break
11553
      if fid == 0:
575 chandransh 11554
        if ftype == TType.I64:
11555
          self.success = iprot.readI64();
94 ashish 11556
        else:
11557
          iprot.skip(ftype)
11558
      elif fid == 1:
11559
        if ftype == TType.STRUCT:
559 chandransh 11560
          self.scx = ShoppingCartException()
11561
          self.scx.read(iprot)
94 ashish 11562
        else:
11563
          iprot.skip(ftype)
11564
      else:
11565
        iprot.skip(ftype)
11566
      iprot.readFieldEnd()
11567
    iprot.readStructEnd()
11568
 
11569
  def write(self, oprot):
11570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11572
      return
690 chandransh 11573
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11574
    if self.success is not None:
575 chandransh 11575
      oprot.writeFieldBegin('success', TType.I64, 0)
11576
      oprot.writeI64(self.success)
94 ashish 11577
      oprot.writeFieldEnd()
3431 rajveer 11578
    if self.scx is not None:
559 chandransh 11579
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11580
      self.scx.write(oprot)
94 ashish 11581
      oprot.writeFieldEnd()
11582
    oprot.writeFieldStop()
11583
    oprot.writeStructEnd()
11584
 
3431 rajveer 11585
  def validate(self):
11586
    return
11587
 
11588
 
94 ashish 11589
  def __repr__(self):
11590
    L = ['%s=%r' % (key, value)
11591
      for key, value in self.__dict__.iteritems()]
11592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11593
 
11594
  def __eq__(self, other):
11595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11596
 
11597
  def __ne__(self, other):
11598
    return not (self == other)
11599
 
559 chandransh 11600
class validateCart_args:
94 ashish 11601
  """
11602
  Attributes:
559 chandransh 11603
   - cartId
94 ashish 11604
  """
11605
 
11606
  thrift_spec = (
11607
    None, # 0
559 chandransh 11608
    (1, TType.I64, 'cartId', None, None, ), # 1
94 ashish 11609
  )
11610
 
559 chandransh 11611
  def __init__(self, cartId=None,):
11612
    self.cartId = cartId
94 ashish 11613
 
11614
  def read(self, iprot):
11615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11617
      return
11618
    iprot.readStructBegin()
11619
    while True:
11620
      (fname, ftype, fid) = iprot.readFieldBegin()
11621
      if ftype == TType.STOP:
11622
        break
11623
      if fid == 1:
11624
        if ftype == TType.I64:
559 chandransh 11625
          self.cartId = iprot.readI64();
94 ashish 11626
        else:
11627
          iprot.skip(ftype)
11628
      else:
11629
        iprot.skip(ftype)
11630
      iprot.readFieldEnd()
11631
    iprot.readStructEnd()
11632
 
11633
  def write(self, oprot):
11634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11636
      return
559 chandransh 11637
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11638
    if self.cartId is not None:
559 chandransh 11639
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11640
      oprot.writeI64(self.cartId)
94 ashish 11641
      oprot.writeFieldEnd()
11642
    oprot.writeFieldStop()
11643
    oprot.writeStructEnd()
11644
 
3431 rajveer 11645
  def validate(self):
11646
    return
11647
 
11648
 
94 ashish 11649
  def __repr__(self):
11650
    L = ['%s=%r' % (key, value)
11651
      for key, value in self.__dict__.iteritems()]
11652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11653
 
11654
  def __eq__(self, other):
11655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11656
 
11657
  def __ne__(self, other):
11658
    return not (self == other)
11659
 
559 chandransh 11660
class validateCart_result:
94 ashish 11661
  """
11662
  Attributes:
11663
   - success
575 chandransh 11664
   - scex
94 ashish 11665
  """
11666
 
11667
  thrift_spec = (
1466 ankur.sing 11668
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11669
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11670
  )
11671
 
575 chandransh 11672
  def __init__(self, success=None, scex=None,):
94 ashish 11673
    self.success = success
575 chandransh 11674
    self.scex = scex
94 ashish 11675
 
11676
  def read(self, iprot):
11677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11679
      return
11680
    iprot.readStructBegin()
11681
    while True:
11682
      (fname, ftype, fid) = iprot.readFieldBegin()
11683
      if ftype == TType.STOP:
11684
        break
11685
      if fid == 0:
1466 ankur.sing 11686
        if ftype == TType.STRING:
11687
          self.success = iprot.readString();
94 ashish 11688
        else:
11689
          iprot.skip(ftype)
575 chandransh 11690
      elif fid == 1:
11691
        if ftype == TType.STRUCT:
11692
          self.scex = ShoppingCartException()
11693
          self.scex.read(iprot)
11694
        else:
11695
          iprot.skip(ftype)
94 ashish 11696
      else:
11697
        iprot.skip(ftype)
11698
      iprot.readFieldEnd()
11699
    iprot.readStructEnd()
11700
 
11701
  def write(self, oprot):
11702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11704
      return
559 chandransh 11705
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11706
    if self.success is not None:
1466 ankur.sing 11707
      oprot.writeFieldBegin('success', TType.STRING, 0)
11708
      oprot.writeString(self.success)
94 ashish 11709
      oprot.writeFieldEnd()
3431 rajveer 11710
    if self.scex is not None:
575 chandransh 11711
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11712
      self.scex.write(oprot)
11713
      oprot.writeFieldEnd()
559 chandransh 11714
    oprot.writeFieldStop()
11715
    oprot.writeStructEnd()
11716
 
3431 rajveer 11717
  def validate(self):
11718
    return
11719
 
11720
 
559 chandransh 11721
  def __repr__(self):
11722
    L = ['%s=%r' % (key, value)
11723
      for key, value in self.__dict__.iteritems()]
11724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11725
 
11726
  def __eq__(self, other):
11727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11728
 
11729
  def __ne__(self, other):
11730
    return not (self == other)
11731
 
690 chandransh 11732
class mergeCart_args:
575 chandransh 11733
  """
11734
  Attributes:
690 chandransh 11735
   - fromCartId
11736
   - toCartId
11737
  """
11738
 
11739
  thrift_spec = (
11740
    None, # 0
11741
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11742
    (2, TType.I64, 'toCartId', None, None, ), # 2
11743
  )
11744
 
11745
  def __init__(self, fromCartId=None, toCartId=None,):
11746
    self.fromCartId = fromCartId
11747
    self.toCartId = toCartId
11748
 
11749
  def read(self, iprot):
11750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11752
      return
11753
    iprot.readStructBegin()
11754
    while True:
11755
      (fname, ftype, fid) = iprot.readFieldBegin()
11756
      if ftype == TType.STOP:
11757
        break
11758
      if fid == 1:
11759
        if ftype == TType.I64:
11760
          self.fromCartId = iprot.readI64();
11761
        else:
11762
          iprot.skip(ftype)
11763
      elif fid == 2:
11764
        if ftype == TType.I64:
11765
          self.toCartId = iprot.readI64();
11766
        else:
11767
          iprot.skip(ftype)
11768
      else:
11769
        iprot.skip(ftype)
11770
      iprot.readFieldEnd()
11771
    iprot.readStructEnd()
11772
 
11773
  def write(self, oprot):
11774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11776
      return
11777
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11778
    if self.fromCartId is not None:
690 chandransh 11779
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11780
      oprot.writeI64(self.fromCartId)
11781
      oprot.writeFieldEnd()
3431 rajveer 11782
    if self.toCartId is not None:
690 chandransh 11783
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11784
      oprot.writeI64(self.toCartId)
11785
      oprot.writeFieldEnd()
11786
    oprot.writeFieldStop()
11787
    oprot.writeStructEnd()
11788
 
3431 rajveer 11789
  def validate(self):
11790
    return
11791
 
11792
 
690 chandransh 11793
  def __repr__(self):
11794
    L = ['%s=%r' % (key, value)
11795
      for key, value in self.__dict__.iteritems()]
11796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11797
 
11798
  def __eq__(self, other):
11799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11800
 
11801
  def __ne__(self, other):
11802
    return not (self == other)
11803
 
11804
class mergeCart_result:
11805
 
11806
  thrift_spec = (
11807
  )
11808
 
11809
  def read(self, iprot):
11810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11812
      return
11813
    iprot.readStructBegin()
11814
    while True:
11815
      (fname, ftype, fid) = iprot.readFieldBegin()
11816
      if ftype == TType.STOP:
11817
        break
11818
      else:
11819
        iprot.skip(ftype)
11820
      iprot.readFieldEnd()
11821
    iprot.readStructEnd()
11822
 
11823
  def write(self, oprot):
11824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11826
      return
11827
    oprot.writeStructBegin('mergeCart_result')
11828
    oprot.writeFieldStop()
11829
    oprot.writeStructEnd()
11830
 
3431 rajveer 11831
  def validate(self):
11832
    return
11833
 
11834
 
690 chandransh 11835
  def __repr__(self):
11836
    L = ['%s=%r' % (key, value)
11837
      for key, value in self.__dict__.iteritems()]
11838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11839
 
11840
  def __eq__(self, other):
11841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11842
 
11843
  def __ne__(self, other):
11844
    return not (self == other)
11845
 
11846
class checkOut_args:
11847
  """
11848
  Attributes:
575 chandransh 11849
   - cartId
11850
  """
11851
 
11852
  thrift_spec = (
11853
    None, # 0
11854
    (1, TType.I64, 'cartId', None, None, ), # 1
11855
  )
11856
 
11857
  def __init__(self, cartId=None,):
11858
    self.cartId = cartId
11859
 
11860
  def read(self, iprot):
11861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11863
      return
11864
    iprot.readStructBegin()
11865
    while True:
11866
      (fname, ftype, fid) = iprot.readFieldBegin()
11867
      if ftype == TType.STOP:
11868
        break
11869
      if fid == 1:
11870
        if ftype == TType.I64:
11871
          self.cartId = iprot.readI64();
11872
        else:
11873
          iprot.skip(ftype)
11874
      else:
11875
        iprot.skip(ftype)
11876
      iprot.readFieldEnd()
11877
    iprot.readStructEnd()
11878
 
11879
  def write(self, oprot):
11880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11882
      return
690 chandransh 11883
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11884
    if self.cartId is not None:
575 chandransh 11885
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11886
      oprot.writeI64(self.cartId)
11887
      oprot.writeFieldEnd()
11888
    oprot.writeFieldStop()
11889
    oprot.writeStructEnd()
11890
 
3431 rajveer 11891
  def validate(self):
11892
    return
11893
 
11894
 
575 chandransh 11895
  def __repr__(self):
11896
    L = ['%s=%r' % (key, value)
11897
      for key, value in self.__dict__.iteritems()]
11898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11899
 
11900
  def __eq__(self, other):
11901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11902
 
11903
  def __ne__(self, other):
11904
    return not (self == other)
11905
 
690 chandransh 11906
class checkOut_result:
575 chandransh 11907
  """
11908
  Attributes:
11909
   - success
11910
   - scex
11911
  """
11912
 
11913
  thrift_spec = (
11914
    (0, TType.BOOL, 'success', None, None, ), # 0
11915
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11916
  )
11917
 
11918
  def __init__(self, success=None, scex=None,):
11919
    self.success = success
11920
    self.scex = scex
11921
 
11922
  def read(self, iprot):
11923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11925
      return
11926
    iprot.readStructBegin()
11927
    while True:
11928
      (fname, ftype, fid) = iprot.readFieldBegin()
11929
      if ftype == TType.STOP:
11930
        break
11931
      if fid == 0:
11932
        if ftype == TType.BOOL:
11933
          self.success = iprot.readBool();
11934
        else:
11935
          iprot.skip(ftype)
11936
      elif fid == 1:
11937
        if ftype == TType.STRUCT:
11938
          self.scex = ShoppingCartException()
11939
          self.scex.read(iprot)
11940
        else:
11941
          iprot.skip(ftype)
11942
      else:
11943
        iprot.skip(ftype)
11944
      iprot.readFieldEnd()
11945
    iprot.readStructEnd()
11946
 
11947
  def write(self, oprot):
11948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11950
      return
690 chandransh 11951
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11952
    if self.success is not None:
575 chandransh 11953
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11954
      oprot.writeBool(self.success)
11955
      oprot.writeFieldEnd()
3431 rajveer 11956
    if self.scex is not None:
575 chandransh 11957
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11958
      self.scex.write(oprot)
11959
      oprot.writeFieldEnd()
11960
    oprot.writeFieldStop()
11961
    oprot.writeStructEnd()
11962
 
3431 rajveer 11963
  def validate(self):
11964
    return
11965
 
11966
 
575 chandransh 11967
  def __repr__(self):
11968
    L = ['%s=%r' % (key, value)
11969
      for key, value in self.__dict__.iteritems()]
11970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11971
 
11972
  def __eq__(self, other):
11973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11974
 
11975
  def __ne__(self, other):
11976
    return not (self == other)
11977
 
690 chandransh 11978
class resetCart_args:
559 chandransh 11979
  """
11980
  Attributes:
690 chandransh 11981
   - cartId
11982
   - items
559 chandransh 11983
  """
11984
 
11985
  thrift_spec = (
11986
    None, # 0
690 chandransh 11987
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11988
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11989
  )
11990
 
690 chandransh 11991
  def __init__(self, cartId=None, items=None,):
11992
    self.cartId = cartId
11993
    self.items = items
559 chandransh 11994
 
11995
  def read(self, iprot):
11996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11998
      return
11999
    iprot.readStructBegin()
12000
    while True:
12001
      (fname, ftype, fid) = iprot.readFieldBegin()
12002
      if ftype == TType.STOP:
12003
        break
12004
      if fid == 1:
12005
        if ftype == TType.I64:
690 chandransh 12006
          self.cartId = iprot.readI64();
559 chandransh 12007
        else:
12008
          iprot.skip(ftype)
12009
      elif fid == 2:
690 chandransh 12010
        if ftype == TType.MAP:
12011
          self.items = {}
3385 varun.gupt 12012
          (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() 
12013
          for _i116 in xrange(_size112):
12014
            _key117 = iprot.readI64();
12015
            _val118 = iprot.readDouble();
12016
            self.items[_key117] = _val118
690 chandransh 12017
          iprot.readMapEnd()
559 chandransh 12018
        else:
12019
          iprot.skip(ftype)
12020
      else:
12021
        iprot.skip(ftype)
12022
      iprot.readFieldEnd()
12023
    iprot.readStructEnd()
12024
 
12025
  def write(self, oprot):
12026
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12027
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12028
      return
690 chandransh 12029
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12030
    if self.cartId is not None:
690 chandransh 12031
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12032
      oprot.writeI64(self.cartId)
94 ashish 12033
      oprot.writeFieldEnd()
3431 rajveer 12034
    if self.items is not None:
690 chandransh 12035
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12036
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
3385 varun.gupt 12037
      for kiter119,viter120 in self.items.items():
12038
        oprot.writeI64(kiter119)
12039
        oprot.writeDouble(viter120)
690 chandransh 12040
      oprot.writeMapEnd()
559 chandransh 12041
      oprot.writeFieldEnd()
94 ashish 12042
    oprot.writeFieldStop()
12043
    oprot.writeStructEnd()
12044
 
3431 rajveer 12045
  def validate(self):
12046
    return
12047
 
12048
 
94 ashish 12049
  def __repr__(self):
12050
    L = ['%s=%r' % (key, value)
12051
      for key, value in self.__dict__.iteritems()]
12052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12053
 
12054
  def __eq__(self, other):
12055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12056
 
12057
  def __ne__(self, other):
12058
    return not (self == other)
12059
 
690 chandransh 12060
class resetCart_result:
12061
  """
12062
  Attributes:
12063
   - success
12064
   - scex
12065
  """
559 chandransh 12066
 
12067
  thrift_spec = (
690 chandransh 12068
    (0, TType.BOOL, 'success', None, None, ), # 0
12069
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12070
  )
12071
 
690 chandransh 12072
  def __init__(self, success=None, scex=None,):
12073
    self.success = success
12074
    self.scex = scex
12075
 
559 chandransh 12076
  def read(self, iprot):
12077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12079
      return
12080
    iprot.readStructBegin()
12081
    while True:
12082
      (fname, ftype, fid) = iprot.readFieldBegin()
12083
      if ftype == TType.STOP:
12084
        break
690 chandransh 12085
      if fid == 0:
12086
        if ftype == TType.BOOL:
12087
          self.success = iprot.readBool();
12088
        else:
12089
          iprot.skip(ftype)
12090
      elif fid == 1:
12091
        if ftype == TType.STRUCT:
12092
          self.scex = ShoppingCartException()
12093
          self.scex.read(iprot)
12094
        else:
12095
          iprot.skip(ftype)
559 chandransh 12096
      else:
12097
        iprot.skip(ftype)
12098
      iprot.readFieldEnd()
12099
    iprot.readStructEnd()
12100
 
12101
  def write(self, oprot):
12102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12104
      return
690 chandransh 12105
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12106
    if self.success is not None:
690 chandransh 12107
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12108
      oprot.writeBool(self.success)
12109
      oprot.writeFieldEnd()
3431 rajveer 12110
    if self.scex is not None:
690 chandransh 12111
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12112
      self.scex.write(oprot)
12113
      oprot.writeFieldEnd()
559 chandransh 12114
    oprot.writeFieldStop()
12115
    oprot.writeStructEnd()
12116
 
3431 rajveer 12117
  def validate(self):
12118
    return
12119
 
12120
 
559 chandransh 12121
  def __repr__(self):
12122
    L = ['%s=%r' % (key, value)
12123
      for key, value in self.__dict__.iteritems()]
12124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12125
 
12126
  def __eq__(self, other):
12127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12128
 
12129
  def __ne__(self, other):
12130
    return not (self == other)
12131
 
2981 rajveer 12132
class getUserCount_args:
94 ashish 12133
  """
12134
  Attributes:
2981 rajveer 12135
   - userType
559 chandransh 12136
  """
12137
 
12138
  thrift_spec = (
12139
    None, # 0
2981 rajveer 12140
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12141
  )
12142
 
2981 rajveer 12143
  def __init__(self, userType=None,):
12144
    self.userType = userType
559 chandransh 12145
 
12146
  def read(self, iprot):
12147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12149
      return
12150
    iprot.readStructBegin()
12151
    while True:
12152
      (fname, ftype, fid) = iprot.readFieldBegin()
12153
      if ftype == TType.STOP:
12154
        break
12155
      if fid == 1:
2981 rajveer 12156
        if ftype == TType.I32:
12157
          self.userType = iprot.readI32();
559 chandransh 12158
        else:
12159
          iprot.skip(ftype)
12160
      else:
12161
        iprot.skip(ftype)
12162
      iprot.readFieldEnd()
12163
    iprot.readStructEnd()
12164
 
12165
  def write(self, oprot):
12166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12168
      return
2981 rajveer 12169
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12170
    if self.userType is not None:
2981 rajveer 12171
      oprot.writeFieldBegin('userType', TType.I32, 1)
12172
      oprot.writeI32(self.userType)
559 chandransh 12173
      oprot.writeFieldEnd()
12174
    oprot.writeFieldStop()
12175
    oprot.writeStructEnd()
12176
 
3431 rajveer 12177
  def validate(self):
12178
    return
12179
 
12180
 
559 chandransh 12181
  def __repr__(self):
12182
    L = ['%s=%r' % (key, value)
12183
      for key, value in self.__dict__.iteritems()]
12184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12185
 
12186
  def __eq__(self, other):
12187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12188
 
12189
  def __ne__(self, other):
12190
    return not (self == other)
12191
 
2981 rajveer 12192
class getUserCount_result:
94 ashish 12193
  """
12194
  Attributes:
12195
   - success
12196
  """
12197
 
12198
  thrift_spec = (
2981 rajveer 12199
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12200
  )
12201
 
2981 rajveer 12202
  def __init__(self, success=None,):
94 ashish 12203
    self.success = success
12204
 
12205
  def read(self, iprot):
12206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12208
      return
12209
    iprot.readStructBegin()
12210
    while True:
12211
      (fname, ftype, fid) = iprot.readFieldBegin()
12212
      if ftype == TType.STOP:
12213
        break
12214
      if fid == 0:
2981 rajveer 12215
        if ftype == TType.I64:
12216
          self.success = iprot.readI64();
94 ashish 12217
        else:
12218
          iprot.skip(ftype)
12219
      else:
12220
        iprot.skip(ftype)
12221
      iprot.readFieldEnd()
12222
    iprot.readStructEnd()
12223
 
12224
  def write(self, oprot):
12225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12227
      return
2981 rajveer 12228
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12229
    if self.success is not None:
2981 rajveer 12230
      oprot.writeFieldBegin('success', TType.I64, 0)
12231
      oprot.writeI64(self.success)
94 ashish 12232
      oprot.writeFieldEnd()
12233
    oprot.writeFieldStop()
12234
    oprot.writeStructEnd()
12235
 
3431 rajveer 12236
  def validate(self):
12237
    return
12238
 
12239
 
94 ashish 12240
  def __repr__(self):
12241
    L = ['%s=%r' % (key, value)
12242
      for key, value in self.__dict__.iteritems()]
12243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12244
 
12245
  def __eq__(self, other):
12246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12247
 
12248
  def __ne__(self, other):
12249
    return not (self == other)
12250
 
2981 rajveer 12251
class getAllUsers_args:
94 ashish 12252
  """
12253
  Attributes:
2981 rajveer 12254
   - userType
12255
   - startDate
12256
   - endDate
94 ashish 12257
  """
12258
 
12259
  thrift_spec = (
12260
    None, # 0
2981 rajveer 12261
    (1, TType.I32, 'userType', None, None, ), # 1
12262
    (2, TType.I64, 'startDate', None, None, ), # 2
12263
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12264
  )
12265
 
2981 rajveer 12266
  def __init__(self, userType=None, startDate=None, endDate=None,):
12267
    self.userType = userType
12268
    self.startDate = startDate
12269
    self.endDate = endDate
94 ashish 12270
 
12271
  def read(self, iprot):
12272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12274
      return
12275
    iprot.readStructBegin()
12276
    while True:
12277
      (fname, ftype, fid) = iprot.readFieldBegin()
12278
      if ftype == TType.STOP:
12279
        break
12280
      if fid == 1:
2981 rajveer 12281
        if ftype == TType.I32:
12282
          self.userType = iprot.readI32();
94 ashish 12283
        else:
12284
          iprot.skip(ftype)
12285
      elif fid == 2:
559 chandransh 12286
        if ftype == TType.I64:
2981 rajveer 12287
          self.startDate = iprot.readI64();
94 ashish 12288
        else:
12289
          iprot.skip(ftype)
2981 rajveer 12290
      elif fid == 3:
12291
        if ftype == TType.I64:
12292
          self.endDate = iprot.readI64();
12293
        else:
12294
          iprot.skip(ftype)
94 ashish 12295
      else:
12296
        iprot.skip(ftype)
12297
      iprot.readFieldEnd()
12298
    iprot.readStructEnd()
12299
 
12300
  def write(self, oprot):
12301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12303
      return
2981 rajveer 12304
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12305
    if self.userType is not None:
2981 rajveer 12306
      oprot.writeFieldBegin('userType', TType.I32, 1)
12307
      oprot.writeI32(self.userType)
94 ashish 12308
      oprot.writeFieldEnd()
3431 rajveer 12309
    if self.startDate is not None:
2981 rajveer 12310
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12311
      oprot.writeI64(self.startDate)
94 ashish 12312
      oprot.writeFieldEnd()
3431 rajveer 12313
    if self.endDate is not None:
2981 rajveer 12314
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12315
      oprot.writeI64(self.endDate)
12316
      oprot.writeFieldEnd()
94 ashish 12317
    oprot.writeFieldStop()
12318
    oprot.writeStructEnd()
12319
 
3431 rajveer 12320
  def validate(self):
12321
    return
12322
 
12323
 
94 ashish 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
 
2981 rajveer 12335
class getAllUsers_result:
94 ashish 12336
  """
12337
  Attributes:
12338
   - success
12339
  """
12340
 
12341
  thrift_spec = (
2981 rajveer 12342
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12343
  )
12344
 
2981 rajveer 12345
  def __init__(self, success=None,):
94 ashish 12346
    self.success = success
12347
 
12348
  def read(self, iprot):
12349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12351
      return
12352
    iprot.readStructBegin()
12353
    while True:
12354
      (fname, ftype, fid) = iprot.readFieldBegin()
12355
      if ftype == TType.STOP:
12356
        break
12357
      if fid == 0:
2981 rajveer 12358
        if ftype == TType.LIST:
12359
          self.success = []
3385 varun.gupt 12360
          (_etype124, _size121) = iprot.readListBegin()
12361
          for _i125 in xrange(_size121):
12362
            _elem126 = User()
12363
            _elem126.read(iprot)
12364
            self.success.append(_elem126)
2981 rajveer 12365
          iprot.readListEnd()
94 ashish 12366
        else:
12367
          iprot.skip(ftype)
12368
      else:
12369
        iprot.skip(ftype)
12370
      iprot.readFieldEnd()
12371
    iprot.readStructEnd()
12372
 
12373
  def write(self, oprot):
12374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12376
      return
2981 rajveer 12377
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12378
    if self.success is not None:
2981 rajveer 12379
      oprot.writeFieldBegin('success', TType.LIST, 0)
12380
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 12381
      for iter127 in self.success:
12382
        iter127.write(oprot)
2981 rajveer 12383
      oprot.writeListEnd()
94 ashish 12384
      oprot.writeFieldEnd()
12385
    oprot.writeFieldStop()
12386
    oprot.writeStructEnd()
12387
 
3431 rajveer 12388
  def validate(self):
12389
    return
12390
 
12391
 
94 ashish 12392
  def __repr__(self):
12393
    L = ['%s=%r' % (key, value)
12394
      for key, value in self.__dict__.iteritems()]
12395
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12396
 
12397
  def __eq__(self, other):
12398
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12399
 
12400
  def __ne__(self, other):
12401
    return not (self == other)
12402
 
2981 rajveer 12403
class putUserNote_args:
130 ashish 12404
  """
12405
  Attributes:
2981 rajveer 12406
   - user_id
12407
   - entity_id
12408
   - slide
12409
   - note
130 ashish 12410
  """
94 ashish 12411
 
130 ashish 12412
  thrift_spec = (
12413
    None, # 0
2981 rajveer 12414
    (1, TType.I64, 'user_id', None, None, ), # 1
12415
    (2, TType.I64, 'entity_id', None, None, ), # 2
12416
    (3, TType.STRING, 'slide', None, None, ), # 3
12417
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12418
  )
12419
 
2981 rajveer 12420
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12421
    self.user_id = user_id
12422
    self.entity_id = entity_id
12423
    self.slide = slide
12424
    self.note = note
130 ashish 12425
 
12426
  def read(self, iprot):
12427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12429
      return
12430
    iprot.readStructBegin()
12431
    while True:
12432
      (fname, ftype, fid) = iprot.readFieldBegin()
12433
      if ftype == TType.STOP:
12434
        break
12435
      if fid == 1:
12436
        if ftype == TType.I64:
2981 rajveer 12437
          self.user_id = iprot.readI64();
130 ashish 12438
        else:
12439
          iprot.skip(ftype)
559 chandransh 12440
      elif fid == 2:
12441
        if ftype == TType.I64:
2981 rajveer 12442
          self.entity_id = iprot.readI64();
559 chandransh 12443
        else:
12444
          iprot.skip(ftype)
2981 rajveer 12445
      elif fid == 3:
12446
        if ftype == TType.STRING:
12447
          self.slide = iprot.readString();
12448
        else:
12449
          iprot.skip(ftype)
12450
      elif fid == 4:
12451
        if ftype == TType.STRING:
12452
          self.note = iprot.readString();
12453
        else:
12454
          iprot.skip(ftype)
130 ashish 12455
      else:
12456
        iprot.skip(ftype)
12457
      iprot.readFieldEnd()
12458
    iprot.readStructEnd()
12459
 
12460
  def write(self, oprot):
12461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12463
      return
2981 rajveer 12464
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12465
    if self.user_id is not None:
2981 rajveer 12466
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12467
      oprot.writeI64(self.user_id)
130 ashish 12468
      oprot.writeFieldEnd()
3431 rajveer 12469
    if self.entity_id is not None:
2981 rajveer 12470
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12471
      oprot.writeI64(self.entity_id)
559 chandransh 12472
      oprot.writeFieldEnd()
3431 rajveer 12473
    if self.slide is not None:
2981 rajveer 12474
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12475
      oprot.writeString(self.slide)
12476
      oprot.writeFieldEnd()
3431 rajveer 12477
    if self.note is not None:
2981 rajveer 12478
      oprot.writeFieldBegin('note', TType.STRING, 4)
12479
      oprot.writeString(self.note)
12480
      oprot.writeFieldEnd()
130 ashish 12481
    oprot.writeFieldStop()
12482
    oprot.writeStructEnd()
12483
 
3431 rajveer 12484
  def validate(self):
12485
    return
12486
 
12487
 
130 ashish 12488
  def __repr__(self):
12489
    L = ['%s=%r' % (key, value)
12490
      for key, value in self.__dict__.iteritems()]
12491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12492
 
12493
  def __eq__(self, other):
12494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12495
 
12496
  def __ne__(self, other):
12497
    return not (self == other)
12498
 
2981 rajveer 12499
class putUserNote_result:
559 chandransh 12500
 
12501
  thrift_spec = (
12502
  )
12503
 
12504
  def read(self, iprot):
12505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12507
      return
12508
    iprot.readStructBegin()
12509
    while True:
12510
      (fname, ftype, fid) = iprot.readFieldBegin()
12511
      if ftype == TType.STOP:
12512
        break
12513
      else:
12514
        iprot.skip(ftype)
12515
      iprot.readFieldEnd()
12516
    iprot.readStructEnd()
12517
 
12518
  def write(self, oprot):
12519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12521
      return
2981 rajveer 12522
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12523
    oprot.writeFieldStop()
12524
    oprot.writeStructEnd()
12525
 
3431 rajveer 12526
  def validate(self):
12527
    return
12528
 
12529
 
559 chandransh 12530
  def __repr__(self):
12531
    L = ['%s=%r' % (key, value)
12532
      for key, value in self.__dict__.iteritems()]
12533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12534
 
12535
  def __eq__(self, other):
12536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12537
 
12538
  def __ne__(self, other):
12539
    return not (self == other)
12540
 
2981 rajveer 12541
class getUserNotes_args:
559 chandransh 12542
  """
12543
  Attributes:
2981 rajveer 12544
   - user_id
12545
   - entity_id
559 chandransh 12546
  """
12547
 
12548
  thrift_spec = (
12549
    None, # 0
2981 rajveer 12550
    (1, TType.I64, 'user_id', None, None, ), # 1
12551
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12552
  )
12553
 
2981 rajveer 12554
  def __init__(self, user_id=None, entity_id=None,):
12555
    self.user_id = user_id
12556
    self.entity_id = entity_id
559 chandransh 12557
 
12558
  def read(self, iprot):
12559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12561
      return
12562
    iprot.readStructBegin()
12563
    while True:
12564
      (fname, ftype, fid) = iprot.readFieldBegin()
12565
      if ftype == TType.STOP:
12566
        break
12567
      if fid == 1:
12568
        if ftype == TType.I64:
2981 rajveer 12569
          self.user_id = iprot.readI64();
559 chandransh 12570
        else:
12571
          iprot.skip(ftype)
12572
      elif fid == 2:
12573
        if ftype == TType.I64:
2981 rajveer 12574
          self.entity_id = iprot.readI64();
559 chandransh 12575
        else:
12576
          iprot.skip(ftype)
12577
      else:
12578
        iprot.skip(ftype)
12579
      iprot.readFieldEnd()
12580
    iprot.readStructEnd()
12581
 
12582
  def write(self, oprot):
12583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12585
      return
2981 rajveer 12586
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12587
    if self.user_id is not None:
2981 rajveer 12588
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12589
      oprot.writeI64(self.user_id)
559 chandransh 12590
      oprot.writeFieldEnd()
3431 rajveer 12591
    if self.entity_id is not None:
2981 rajveer 12592
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12593
      oprot.writeI64(self.entity_id)
559 chandransh 12594
      oprot.writeFieldEnd()
12595
    oprot.writeFieldStop()
12596
    oprot.writeStructEnd()
12597
 
3431 rajveer 12598
  def validate(self):
12599
    return
12600
 
12601
 
559 chandransh 12602
  def __repr__(self):
12603
    L = ['%s=%r' % (key, value)
12604
      for key, value in self.__dict__.iteritems()]
12605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12606
 
12607
  def __eq__(self, other):
12608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12609
 
12610
  def __ne__(self, other):
12611
    return not (self == other)
12612
 
2981 rajveer 12613
class getUserNotes_result:
12614
  """
12615
  Attributes:
12616
   - success
12617
  """
559 chandransh 12618
 
12619
  thrift_spec = (
2981 rajveer 12620
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12621
  )
12622
 
2981 rajveer 12623
  def __init__(self, success=None,):
12624
    self.success = success
12625
 
559 chandransh 12626
  def read(self, iprot):
12627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12629
      return
12630
    iprot.readStructBegin()
12631
    while True:
12632
      (fname, ftype, fid) = iprot.readFieldBegin()
12633
      if ftype == TType.STOP:
12634
        break
2981 rajveer 12635
      if fid == 0:
12636
        if ftype == TType.LIST:
12637
          self.success = []
3385 varun.gupt 12638
          (_etype131, _size128) = iprot.readListBegin()
12639
          for _i132 in xrange(_size128):
12640
            _elem133 = UserNote()
12641
            _elem133.read(iprot)
12642
            self.success.append(_elem133)
2981 rajveer 12643
          iprot.readListEnd()
12644
        else:
12645
          iprot.skip(ftype)
559 chandransh 12646
      else:
12647
        iprot.skip(ftype)
12648
      iprot.readFieldEnd()
12649
    iprot.readStructEnd()
12650
 
12651
  def write(self, oprot):
12652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12654
      return
2981 rajveer 12655
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12656
    if self.success is not None:
2981 rajveer 12657
      oprot.writeFieldBegin('success', TType.LIST, 0)
12658
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 12659
      for iter134 in self.success:
12660
        iter134.write(oprot)
2981 rajveer 12661
      oprot.writeListEnd()
12662
      oprot.writeFieldEnd()
559 chandransh 12663
    oprot.writeFieldStop()
12664
    oprot.writeStructEnd()
12665
 
3431 rajveer 12666
  def validate(self):
12667
    return
12668
 
12669
 
559 chandransh 12670
  def __repr__(self):
12671
    L = ['%s=%r' % (key, value)
12672
      for key, value in self.__dict__.iteritems()]
12673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12674
 
12675
  def __eq__(self, other):
12676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12677
 
12678
  def __ne__(self, other):
12679
    return not (self == other)
12680
 
2981 rajveer 12681
class getMyResearchItems_args:
559 chandransh 12682
  """
12683
  Attributes:
772 rajveer 12684
   - userId
559 chandransh 12685
  """
12686
 
12687
  thrift_spec = (
12688
    None, # 0
772 rajveer 12689
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12690
  )
12691
 
772 rajveer 12692
  def __init__(self, userId=None,):
12693
    self.userId = userId
559 chandransh 12694
 
12695
  def read(self, iprot):
12696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12698
      return
12699
    iprot.readStructBegin()
12700
    while True:
12701
      (fname, ftype, fid) = iprot.readFieldBegin()
12702
      if ftype == TType.STOP:
12703
        break
12704
      if fid == 1:
12705
        if ftype == TType.I64:
772 rajveer 12706
          self.userId = iprot.readI64();
559 chandransh 12707
        else:
12708
          iprot.skip(ftype)
12709
      else:
12710
        iprot.skip(ftype)
12711
      iprot.readFieldEnd()
12712
    iprot.readStructEnd()
12713
 
12714
  def write(self, oprot):
12715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12717
      return
2981 rajveer 12718
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12719
    if self.userId is not None:
772 rajveer 12720
      oprot.writeFieldBegin('userId', TType.I64, 1)
12721
      oprot.writeI64(self.userId)
559 chandransh 12722
      oprot.writeFieldEnd()
12723
    oprot.writeFieldStop()
12724
    oprot.writeStructEnd()
12725
 
3431 rajveer 12726
  def validate(self):
12727
    return
12728
 
12729
 
559 chandransh 12730
  def __repr__(self):
12731
    L = ['%s=%r' % (key, value)
12732
      for key, value in self.__dict__.iteritems()]
12733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12734
 
12735
  def __eq__(self, other):
12736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12737
 
12738
  def __ne__(self, other):
12739
    return not (self == other)
12740
 
2981 rajveer 12741
class getMyResearchItems_result:
559 chandransh 12742
  """
12743
  Attributes:
130 ashish 12744
   - success
559 chandransh 12745
   - scx
130 ashish 12746
  """
12747
 
12748
  thrift_spec = (
2981 rajveer 12749
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12750
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12751
  )
12752
 
559 chandransh 12753
  def __init__(self, success=None, scx=None,):
130 ashish 12754
    self.success = success
559 chandransh 12755
    self.scx = scx
130 ashish 12756
 
12757
  def read(self, iprot):
12758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12760
      return
12761
    iprot.readStructBegin()
12762
    while True:
12763
      (fname, ftype, fid) = iprot.readFieldBegin()
12764
      if ftype == TType.STOP:
12765
        break
12766
      if fid == 0:
2981 rajveer 12767
        if ftype == TType.LIST:
12768
          self.success = []
3385 varun.gupt 12769
          (_etype138, _size135) = iprot.readListBegin()
12770
          for _i139 in xrange(_size135):
12771
            _elem140 = iprot.readI64();
12772
            self.success.append(_elem140)
2981 rajveer 12773
          iprot.readListEnd()
130 ashish 12774
        else:
12775
          iprot.skip(ftype)
12776
      elif fid == 1:
12777
        if ftype == TType.STRUCT:
559 chandransh 12778
          self.scx = WidgetException()
12779
          self.scx.read(iprot)
130 ashish 12780
        else:
12781
          iprot.skip(ftype)
12782
      else:
12783
        iprot.skip(ftype)
12784
      iprot.readFieldEnd()
12785
    iprot.readStructEnd()
12786
 
12787
  def write(self, oprot):
12788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12790
      return
2981 rajveer 12791
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12792
    if self.success is not None:
2981 rajveer 12793
      oprot.writeFieldBegin('success', TType.LIST, 0)
12794
      oprot.writeListBegin(TType.I64, len(self.success))
3385 varun.gupt 12795
      for iter141 in self.success:
12796
        oprot.writeI64(iter141)
2981 rajveer 12797
      oprot.writeListEnd()
130 ashish 12798
      oprot.writeFieldEnd()
3431 rajveer 12799
    if self.scx is not None:
559 chandransh 12800
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12801
      self.scx.write(oprot)
130 ashish 12802
      oprot.writeFieldEnd()
12803
    oprot.writeFieldStop()
12804
    oprot.writeStructEnd()
12805
 
3431 rajveer 12806
  def validate(self):
12807
    return
12808
 
12809
 
130 ashish 12810
  def __repr__(self):
12811
    L = ['%s=%r' % (key, value)
12812
      for key, value in self.__dict__.iteritems()]
12813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12814
 
12815
  def __eq__(self, other):
12816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12817
 
12818
  def __ne__(self, other):
12819
    return not (self == other)
12820
 
2981 rajveer 12821
class updateMyResearch_args:
130 ashish 12822
  """
12823
  Attributes:
2981 rajveer 12824
   - userId
12825
   - itemId
130 ashish 12826
  """
12827
 
12828
  thrift_spec = (
12829
    None, # 0
2981 rajveer 12830
    (1, TType.I64, 'userId', None, None, ), # 1
12831
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12832
  )
12833
 
2981 rajveer 12834
  def __init__(self, userId=None, itemId=None,):
12835
    self.userId = userId
12836
    self.itemId = itemId
130 ashish 12837
 
12838
  def read(self, iprot):
12839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12841
      return
12842
    iprot.readStructBegin()
12843
    while True:
12844
      (fname, ftype, fid) = iprot.readFieldBegin()
12845
      if ftype == TType.STOP:
12846
        break
12847
      if fid == 1:
559 chandransh 12848
        if ftype == TType.I64:
2981 rajveer 12849
          self.userId = iprot.readI64();
130 ashish 12850
        else:
12851
          iprot.skip(ftype)
12852
      elif fid == 2:
559 chandransh 12853
        if ftype == TType.I64:
2981 rajveer 12854
          self.itemId = iprot.readI64();
559 chandransh 12855
        else:
12856
          iprot.skip(ftype)
130 ashish 12857
      else:
12858
        iprot.skip(ftype)
12859
      iprot.readFieldEnd()
12860
    iprot.readStructEnd()
12861
 
12862
  def write(self, oprot):
12863
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12864
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12865
      return
2981 rajveer 12866
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12867
    if self.userId is not None:
2981 rajveer 12868
      oprot.writeFieldBegin('userId', TType.I64, 1)
12869
      oprot.writeI64(self.userId)
130 ashish 12870
      oprot.writeFieldEnd()
3431 rajveer 12871
    if self.itemId is not None:
2981 rajveer 12872
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12873
      oprot.writeI64(self.itemId)
130 ashish 12874
      oprot.writeFieldEnd()
12875
    oprot.writeFieldStop()
12876
    oprot.writeStructEnd()
12877
 
3431 rajveer 12878
  def validate(self):
12879
    return
12880
 
12881
 
130 ashish 12882
  def __repr__(self):
12883
    L = ['%s=%r' % (key, value)
12884
      for key, value in self.__dict__.iteritems()]
12885
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12886
 
12887
  def __eq__(self, other):
12888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12889
 
12890
  def __ne__(self, other):
12891
    return not (self == other)
12892
 
2981 rajveer 12893
class updateMyResearch_result:
12894
  """
12895
  Attributes:
12896
   - success
12897
   - scx
12898
  """
559 chandransh 12899
 
12900
  thrift_spec = (
2981 rajveer 12901
    (0, TType.BOOL, 'success', None, None, ), # 0
12902
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12903
  )
12904
 
2981 rajveer 12905
  def __init__(self, success=None, scx=None,):
12906
    self.success = success
12907
    self.scx = scx
12908
 
559 chandransh 12909
  def read(self, iprot):
12910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12912
      return
12913
    iprot.readStructBegin()
12914
    while True:
12915
      (fname, ftype, fid) = iprot.readFieldBegin()
12916
      if ftype == TType.STOP:
12917
        break
2981 rajveer 12918
      if fid == 0:
12919
        if ftype == TType.BOOL:
12920
          self.success = iprot.readBool();
12921
        else:
12922
          iprot.skip(ftype)
12923
      elif fid == 1:
12924
        if ftype == TType.STRUCT:
12925
          self.scx = WidgetException()
12926
          self.scx.read(iprot)
12927
        else:
12928
          iprot.skip(ftype)
559 chandransh 12929
      else:
12930
        iprot.skip(ftype)
12931
      iprot.readFieldEnd()
12932
    iprot.readStructEnd()
12933
 
12934
  def write(self, oprot):
12935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12937
      return
2981 rajveer 12938
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12939
    if self.success is not None:
2981 rajveer 12940
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12941
      oprot.writeBool(self.success)
12942
      oprot.writeFieldEnd()
3431 rajveer 12943
    if self.scx is not None:
2981 rajveer 12944
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12945
      self.scx.write(oprot)
12946
      oprot.writeFieldEnd()
559 chandransh 12947
    oprot.writeFieldStop()
12948
    oprot.writeStructEnd()
12949
 
3431 rajveer 12950
  def validate(self):
12951
    return
12952
 
12953
 
559 chandransh 12954
  def __repr__(self):
12955
    L = ['%s=%r' % (key, value)
12956
      for key, value in self.__dict__.iteritems()]
12957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12958
 
12959
  def __eq__(self, other):
12960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12961
 
12962
  def __ne__(self, other):
12963
    return not (self == other)
12964
 
2981 rajveer 12965
class deleteItemFromMyResearch_args:
1596 ankur.sing 12966
  """
12967
  Attributes:
2981 rajveer 12968
   - userId
12969
   - itemId
1596 ankur.sing 12970
  """
559 chandransh 12971
 
1596 ankur.sing 12972
  thrift_spec = (
12973
    None, # 0
2981 rajveer 12974
    (1, TType.I64, 'userId', None, None, ), # 1
12975
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12976
  )
12977
 
2981 rajveer 12978
  def __init__(self, userId=None, itemId=None,):
12979
    self.userId = userId
12980
    self.itemId = itemId
1596 ankur.sing 12981
 
12982
  def read(self, iprot):
12983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12985
      return
12986
    iprot.readStructBegin()
12987
    while True:
12988
      (fname, ftype, fid) = iprot.readFieldBegin()
12989
      if ftype == TType.STOP:
12990
        break
12991
      if fid == 1:
2981 rajveer 12992
        if ftype == TType.I64:
12993
          self.userId = iprot.readI64();
1596 ankur.sing 12994
        else:
12995
          iprot.skip(ftype)
2981 rajveer 12996
      elif fid == 2:
12997
        if ftype == TType.I64:
12998
          self.itemId = iprot.readI64();
12999
        else:
13000
          iprot.skip(ftype)
1596 ankur.sing 13001
      else:
13002
        iprot.skip(ftype)
13003
      iprot.readFieldEnd()
13004
    iprot.readStructEnd()
13005
 
13006
  def write(self, oprot):
13007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13009
      return
2981 rajveer 13010
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13011
    if self.userId is not None:
2981 rajveer 13012
      oprot.writeFieldBegin('userId', TType.I64, 1)
13013
      oprot.writeI64(self.userId)
1596 ankur.sing 13014
      oprot.writeFieldEnd()
3431 rajveer 13015
    if self.itemId is not None:
2981 rajveer 13016
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13017
      oprot.writeI64(self.itemId)
13018
      oprot.writeFieldEnd()
1596 ankur.sing 13019
    oprot.writeFieldStop()
13020
    oprot.writeStructEnd()
13021
 
3431 rajveer 13022
  def validate(self):
13023
    return
13024
 
13025
 
1596 ankur.sing 13026
  def __repr__(self):
13027
    L = ['%s=%r' % (key, value)
13028
      for key, value in self.__dict__.iteritems()]
13029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13030
 
13031
  def __eq__(self, other):
13032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13033
 
13034
  def __ne__(self, other):
13035
    return not (self == other)
13036
 
2981 rajveer 13037
class deleteItemFromMyResearch_result:
1596 ankur.sing 13038
  """
13039
  Attributes:
2981 rajveer 13040
   - scx
1596 ankur.sing 13041
  """
13042
 
13043
  thrift_spec = (
2981 rajveer 13044
    None, # 0
13045
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13046
  )
13047
 
2981 rajveer 13048
  def __init__(self, scx=None,):
13049
    self.scx = scx
1596 ankur.sing 13050
 
13051
  def read(self, iprot):
13052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13054
      return
13055
    iprot.readStructBegin()
13056
    while True:
13057
      (fname, ftype, fid) = iprot.readFieldBegin()
13058
      if ftype == TType.STOP:
13059
        break
2981 rajveer 13060
      if fid == 1:
13061
        if ftype == TType.STRUCT:
13062
          self.scx = WidgetException()
13063
          self.scx.read(iprot)
1596 ankur.sing 13064
        else:
13065
          iprot.skip(ftype)
13066
      else:
13067
        iprot.skip(ftype)
13068
      iprot.readFieldEnd()
13069
    iprot.readStructEnd()
13070
 
13071
  def write(self, oprot):
13072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13074
      return
2981 rajveer 13075
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13076
    if self.scx is not None:
2981 rajveer 13077
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13078
      self.scx.write(oprot)
1596 ankur.sing 13079
      oprot.writeFieldEnd()
13080
    oprot.writeFieldStop()
13081
    oprot.writeStructEnd()
13082
 
3431 rajveer 13083
  def validate(self):
13084
    return
13085
 
13086
 
1596 ankur.sing 13087
  def __repr__(self):
13088
    L = ['%s=%r' % (key, value)
13089
      for key, value in self.__dict__.iteritems()]
13090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13091
 
13092
  def __eq__(self, other):
13093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13094
 
13095
  def __ne__(self, other):
13096
    return not (self == other)
13097
 
2981 rajveer 13098
class getBrowseHistoryItems_args:
1673 ankur.sing 13099
  """
13100
  Attributes:
2981 rajveer 13101
   - userId
1673 ankur.sing 13102
  """
1596 ankur.sing 13103
 
1673 ankur.sing 13104
  thrift_spec = (
13105
    None, # 0
2981 rajveer 13106
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13107
  )
13108
 
2981 rajveer 13109
  def __init__(self, userId=None,):
13110
    self.userId = userId
1673 ankur.sing 13111
 
13112
  def read(self, iprot):
13113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13115
      return
13116
    iprot.readStructBegin()
13117
    while True:
13118
      (fname, ftype, fid) = iprot.readFieldBegin()
13119
      if ftype == TType.STOP:
13120
        break
13121
      if fid == 1:
1891 ankur.sing 13122
        if ftype == TType.I64:
2981 rajveer 13123
          self.userId = iprot.readI64();
1891 ankur.sing 13124
        else:
13125
          iprot.skip(ftype)
1673 ankur.sing 13126
      else:
13127
        iprot.skip(ftype)
13128
      iprot.readFieldEnd()
13129
    iprot.readStructEnd()
13130
 
13131
  def write(self, oprot):
13132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13134
      return
2981 rajveer 13135
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13136
    if self.userId is not None:
2981 rajveer 13137
      oprot.writeFieldBegin('userId', TType.I64, 1)
13138
      oprot.writeI64(self.userId)
1673 ankur.sing 13139
      oprot.writeFieldEnd()
13140
    oprot.writeFieldStop()
13141
    oprot.writeStructEnd()
13142
 
3431 rajveer 13143
  def validate(self):
13144
    return
13145
 
13146
 
1673 ankur.sing 13147
  def __repr__(self):
13148
    L = ['%s=%r' % (key, value)
13149
      for key, value in self.__dict__.iteritems()]
13150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13151
 
13152
  def __eq__(self, other):
13153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13154
 
13155
  def __ne__(self, other):
13156
    return not (self == other)
13157
 
2981 rajveer 13158
class getBrowseHistoryItems_result:
1673 ankur.sing 13159
  """
13160
  Attributes:
13161
   - success
2981 rajveer 13162
   - scx
1673 ankur.sing 13163
  """
13164
 
13165
  thrift_spec = (
2981 rajveer 13166
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13167
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13168
  )
13169
 
2981 rajveer 13170
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13171
    self.success = success
2981 rajveer 13172
    self.scx = scx
1673 ankur.sing 13173
 
13174
  def read(self, iprot):
13175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13177
      return
13178
    iprot.readStructBegin()
13179
    while True:
13180
      (fname, ftype, fid) = iprot.readFieldBegin()
13181
      if ftype == TType.STOP:
13182
        break
13183
      if fid == 0:
13184
        if ftype == TType.LIST:
13185
          self.success = []
3385 varun.gupt 13186
          (_etype145, _size142) = iprot.readListBegin()
13187
          for _i146 in xrange(_size142):
13188
            _elem147 = iprot.readI64();
13189
            self.success.append(_elem147)
1673 ankur.sing 13190
          iprot.readListEnd()
13191
        else:
13192
          iprot.skip(ftype)
2981 rajveer 13193
      elif fid == 1:
13194
        if ftype == TType.STRUCT:
13195
          self.scx = WidgetException()
13196
          self.scx.read(iprot)
13197
        else:
13198
          iprot.skip(ftype)
1673 ankur.sing 13199
      else:
13200
        iprot.skip(ftype)
13201
      iprot.readFieldEnd()
13202
    iprot.readStructEnd()
13203
 
13204
  def write(self, oprot):
13205
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13206
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13207
      return
2981 rajveer 13208
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13209
    if self.success is not None:
1673 ankur.sing 13210
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13211
      oprot.writeListBegin(TType.I64, len(self.success))
3385 varun.gupt 13212
      for iter148 in self.success:
13213
        oprot.writeI64(iter148)
1673 ankur.sing 13214
      oprot.writeListEnd()
13215
      oprot.writeFieldEnd()
3431 rajveer 13216
    if self.scx is not None:
2981 rajveer 13217
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13218
      self.scx.write(oprot)
2642 varun.gupt 13219
      oprot.writeFieldEnd()
13220
    oprot.writeFieldStop()
13221
    oprot.writeStructEnd()
13222
 
3431 rajveer 13223
  def validate(self):
13224
    return
13225
 
13226
 
2642 varun.gupt 13227
  def __repr__(self):
13228
    L = ['%s=%r' % (key, value)
13229
      for key, value in self.__dict__.iteritems()]
13230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13231
 
13232
  def __eq__(self, other):
13233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13234
 
13235
  def __ne__(self, other):
13236
    return not (self == other)
13237
 
2981 rajveer 13238
class updateBrowseHistory_args:
2642 varun.gupt 13239
  """
13240
  Attributes:
2981 rajveer 13241
   - userId
13242
   - itemId
2642 varun.gupt 13243
  """
13244
 
13245
  thrift_spec = (
13246
    None, # 0
2981 rajveer 13247
    (1, TType.I64, 'userId', None, None, ), # 1
13248
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13249
  )
13250
 
2981 rajveer 13251
  def __init__(self, userId=None, itemId=None,):
13252
    self.userId = userId
13253
    self.itemId = itemId
2642 varun.gupt 13254
 
13255
  def read(self, iprot):
13256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13258
      return
13259
    iprot.readStructBegin()
13260
    while True:
13261
      (fname, ftype, fid) = iprot.readFieldBegin()
13262
      if ftype == TType.STOP:
13263
        break
13264
      if fid == 1:
13265
        if ftype == TType.I64:
2981 rajveer 13266
          self.userId = iprot.readI64();
2642 varun.gupt 13267
        else:
13268
          iprot.skip(ftype)
13269
      elif fid == 2:
13270
        if ftype == TType.I64:
2981 rajveer 13271
          self.itemId = iprot.readI64();
2642 varun.gupt 13272
        else:
13273
          iprot.skip(ftype)
13274
      else:
13275
        iprot.skip(ftype)
13276
      iprot.readFieldEnd()
13277
    iprot.readStructEnd()
13278
 
13279
  def write(self, oprot):
13280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13282
      return
2981 rajveer 13283
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13284
    if self.userId is not None:
2981 rajveer 13285
      oprot.writeFieldBegin('userId', TType.I64, 1)
13286
      oprot.writeI64(self.userId)
2642 varun.gupt 13287
      oprot.writeFieldEnd()
3431 rajveer 13288
    if self.itemId is not None:
2981 rajveer 13289
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13290
      oprot.writeI64(self.itemId)
2642 varun.gupt 13291
      oprot.writeFieldEnd()
13292
    oprot.writeFieldStop()
13293
    oprot.writeStructEnd()
13294
 
3431 rajveer 13295
  def validate(self):
13296
    return
13297
 
13298
 
2642 varun.gupt 13299
  def __repr__(self):
13300
    L = ['%s=%r' % (key, value)
13301
      for key, value in self.__dict__.iteritems()]
13302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13303
 
13304
  def __eq__(self, other):
13305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13306
 
13307
  def __ne__(self, other):
13308
    return not (self == other)
13309
 
2981 rajveer 13310
class updateBrowseHistory_result:
2642 varun.gupt 13311
 
13312
  thrift_spec = (
13313
  )
13314
 
13315
  def read(self, iprot):
13316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13318
      return
13319
    iprot.readStructBegin()
13320
    while True:
13321
      (fname, ftype, fid) = iprot.readFieldBegin()
13322
      if ftype == TType.STOP:
13323
        break
13324
      else:
13325
        iprot.skip(ftype)
13326
      iprot.readFieldEnd()
13327
    iprot.readStructEnd()
13328
 
13329
  def write(self, oprot):
13330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13332
      return
2981 rajveer 13333
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13334
    oprot.writeFieldStop()
13335
    oprot.writeStructEnd()
13336
 
3431 rajveer 13337
  def validate(self):
13338
    return
13339
 
13340
 
2642 varun.gupt 13341
  def __repr__(self):
13342
    L = ['%s=%r' % (key, value)
13343
      for key, value in self.__dict__.iteritems()]
13344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13345
 
13346
  def __eq__(self, other):
13347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13348
 
13349
  def __ne__(self, other):
13350
    return not (self == other)
13351
 
3385 varun.gupt 13352
class getCartsWithCouponCount_args:
13353
  """
13354
  Attributes:
13355
   - couponCode
13356
  """
2642 varun.gupt 13357
 
3385 varun.gupt 13358
  thrift_spec = (
13359
    None, # 0
13360
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13361
  )
13362
 
13363
  def __init__(self, couponCode=None,):
13364
    self.couponCode = couponCode
13365
 
13366
  def read(self, iprot):
13367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13369
      return
13370
    iprot.readStructBegin()
13371
    while True:
13372
      (fname, ftype, fid) = iprot.readFieldBegin()
13373
      if ftype == TType.STOP:
13374
        break
13375
      if fid == 1:
13376
        if ftype == TType.STRING:
13377
          self.couponCode = iprot.readString();
13378
        else:
13379
          iprot.skip(ftype)
13380
      else:
13381
        iprot.skip(ftype)
13382
      iprot.readFieldEnd()
13383
    iprot.readStructEnd()
13384
 
13385
  def write(self, oprot):
13386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13388
      return
13389
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13390
    if self.couponCode is not None:
3385 varun.gupt 13391
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13392
      oprot.writeString(self.couponCode)
13393
      oprot.writeFieldEnd()
13394
    oprot.writeFieldStop()
13395
    oprot.writeStructEnd()
13396
 
3431 rajveer 13397
  def validate(self):
13398
    return
13399
 
13400
 
3385 varun.gupt 13401
  def __repr__(self):
13402
    L = ['%s=%r' % (key, value)
13403
      for key, value in self.__dict__.iteritems()]
13404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13405
 
13406
  def __eq__(self, other):
13407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13408
 
13409
  def __ne__(self, other):
13410
    return not (self == other)
13411
 
13412
class getCartsWithCouponCount_result:
13413
  """
13414
  Attributes:
13415
   - success
13416
  """
13417
 
13418
  thrift_spec = (
13419
    (0, TType.I64, 'success', None, None, ), # 0
13420
  )
13421
 
13422
  def __init__(self, success=None,):
13423
    self.success = success
13424
 
13425
  def read(self, iprot):
13426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13428
      return
13429
    iprot.readStructBegin()
13430
    while True:
13431
      (fname, ftype, fid) = iprot.readFieldBegin()
13432
      if ftype == TType.STOP:
13433
        break
13434
      if fid == 0:
13435
        if ftype == TType.I64:
13436
          self.success = iprot.readI64();
13437
        else:
13438
          iprot.skip(ftype)
13439
      else:
13440
        iprot.skip(ftype)
13441
      iprot.readFieldEnd()
13442
    iprot.readStructEnd()
13443
 
13444
  def write(self, oprot):
13445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13447
      return
13448
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13449
    if self.success is not None:
3385 varun.gupt 13450
      oprot.writeFieldBegin('success', TType.I64, 0)
13451
      oprot.writeI64(self.success)
13452
      oprot.writeFieldEnd()
13453
    oprot.writeFieldStop()
13454
    oprot.writeStructEnd()
13455
 
3431 rajveer 13456
  def validate(self):
13457
    return
13458
 
13459
 
3385 varun.gupt 13460
  def __repr__(self):
13461
    L = ['%s=%r' % (key, value)
13462
      for key, value in self.__dict__.iteritems()]
13463
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13464
 
13465
  def __eq__(self, other):
13466
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13467
 
13468
  def __ne__(self, other):
13469
    return not (self == other)