Subversion Repositories SmartDukaan

Rev

Rev 3499 | Rev 3554 | 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
 
3499 mandeep.dh 586
  def increaseTrustLevel(self, userId, trustLevelDelta):
587
    """
588
    Updates COD trust level of a user
3385 varun.gupt 589
 
3499 mandeep.dh 590
    Parameters:
591
     - userId
592
     - trustLevelDelta
593
    """
594
    pass
595
 
596
 
3376 rajveer 597
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 598
  """
599
  service
600
  """
601
  def __init__(self, iprot, oprot=None):
3376 rajveer 602
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 603
 
559 chandransh 604
  def createAnonymousUser(self, jsessionId):
94 ashish 605
    """
606
    Parameters:
559 chandransh 607
     - jsessionId
94 ashish 608
    """
559 chandransh 609
    self.send_createAnonymousUser(jsessionId)
610
    return self.recv_createAnonymousUser()
94 ashish 611
 
559 chandransh 612
  def send_createAnonymousUser(self, jsessionId):
613
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
614
    args = createAnonymousUser_args()
615
    args.jsessionId = jsessionId
94 ashish 616
    args.write(self._oprot)
617
    self._oprot.writeMessageEnd()
618
    self._oprot.trans.flush()
619
 
559 chandransh 620
  def recv_createAnonymousUser(self, ):
94 ashish 621
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
622
    if mtype == TMessageType.EXCEPTION:
623
      x = TApplicationException()
624
      x.read(self._iprot)
625
      self._iprot.readMessageEnd()
626
      raise x
559 chandransh 627
    result = createAnonymousUser_result()
94 ashish 628
    result.read(self._iprot)
629
    self._iprot.readMessageEnd()
3431 rajveer 630
    if result.success is not None:
94 ashish 631
      return result.success
3431 rajveer 632
    if result.ucex is not None:
559 chandransh 633
      raise result.ucex
634
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 635
 
559 chandransh 636
  def getUserById(self, userId):
94 ashish 637
    """
638
    Parameters:
639
     - userId
640
    """
559 chandransh 641
    self.send_getUserById(userId)
642
    return self.recv_getUserById()
94 ashish 643
 
559 chandransh 644
  def send_getUserById(self, userId):
645
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
646
    args = getUserById_args()
94 ashish 647
    args.userId = userId
648
    args.write(self._oprot)
649
    self._oprot.writeMessageEnd()
650
    self._oprot.trans.flush()
651
 
559 chandransh 652
  def recv_getUserById(self, ):
94 ashish 653
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
654
    if mtype == TMessageType.EXCEPTION:
655
      x = TApplicationException()
656
      x.read(self._iprot)
657
      self._iprot.readMessageEnd()
658
      raise x
559 chandransh 659
    result = getUserById_result()
94 ashish 660
    result.read(self._iprot)
661
    self._iprot.readMessageEnd()
3431 rajveer 662
    if result.success is not None:
94 ashish 663
      return result.success
3431 rajveer 664
    if result.ucex is not None:
559 chandransh 665
      raise result.ucex
666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 667
 
1491 vikas 668
  def getUserByEmail(self, email):
669
    """
670
    Parameters:
671
     - email
672
    """
673
    self.send_getUserByEmail(email)
674
    return self.recv_getUserByEmail()
675
 
676
  def send_getUserByEmail(self, email):
677
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
678
    args = getUserByEmail_args()
679
    args.email = email
680
    args.write(self._oprot)
681
    self._oprot.writeMessageEnd()
682
    self._oprot.trans.flush()
683
 
684
  def recv_getUserByEmail(self, ):
685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
686
    if mtype == TMessageType.EXCEPTION:
687
      x = TApplicationException()
688
      x.read(self._iprot)
689
      self._iprot.readMessageEnd()
690
      raise x
691
    result = getUserByEmail_result()
692
    result.read(self._iprot)
693
    self._iprot.readMessageEnd()
3431 rajveer 694
    if result.success is not None:
1491 vikas 695
      return result.success
3431 rajveer 696
    if result.ucex is not None:
1491 vikas 697
      raise result.ucex
698
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
699
 
3032 mandeep.dh 700
  def getUserByMobileNumber(self, mobileNumber):
701
    """
702
    Parameters:
703
     - mobileNumber
704
    """
705
    self.send_getUserByMobileNumber(mobileNumber)
706
    return self.recv_getUserByMobileNumber()
707
 
708
  def send_getUserByMobileNumber(self, mobileNumber):
709
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
710
    args = getUserByMobileNumber_args()
711
    args.mobileNumber = mobileNumber
712
    args.write(self._oprot)
713
    self._oprot.writeMessageEnd()
714
    self._oprot.trans.flush()
715
 
716
  def recv_getUserByMobileNumber(self, ):
717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
718
    if mtype == TMessageType.EXCEPTION:
719
      x = TApplicationException()
720
      x.read(self._iprot)
721
      self._iprot.readMessageEnd()
722
      raise x
723
    result = getUserByMobileNumber_result()
724
    result.read(self._iprot)
725
    self._iprot.readMessageEnd()
3431 rajveer 726
    if result.success is not None:
3032 mandeep.dh 727
      return result.success
3431 rajveer 728
    if result.ucex is not None:
3032 mandeep.dh 729
      raise result.ucex
730
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
731
 
559 chandransh 732
  def createUser(self, user):
94 ashish 733
    """
734
    Parameters:
559 chandransh 735
     - user
94 ashish 736
    """
559 chandransh 737
    self.send_createUser(user)
738
    return self.recv_createUser()
94 ashish 739
 
559 chandransh 740
  def send_createUser(self, user):
741
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
742
    args = createUser_args()
743
    args.user = user
94 ashish 744
    args.write(self._oprot)
745
    self._oprot.writeMessageEnd()
746
    self._oprot.trans.flush()
747
 
559 chandransh 748
  def recv_createUser(self, ):
94 ashish 749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
750
    if mtype == TMessageType.EXCEPTION:
751
      x = TApplicationException()
752
      x.read(self._iprot)
753
      self._iprot.readMessageEnd()
754
      raise x
559 chandransh 755
    result = createUser_result()
94 ashish 756
    result.read(self._iprot)
757
    self._iprot.readMessageEnd()
3431 rajveer 758
    if result.success is not None:
94 ashish 759
      return result.success
3431 rajveer 760
    if result.ucex is not None:
559 chandransh 761
      raise result.ucex
762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 763
 
559 chandransh 764
  def updateUser(self, user):
94 ashish 765
    """
766
    Parameters:
559 chandransh 767
     - user
94 ashish 768
    """
559 chandransh 769
    self.send_updateUser(user)
770
    return self.recv_updateUser()
94 ashish 771
 
559 chandransh 772
  def send_updateUser(self, user):
773
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
774
    args = updateUser_args()
775
    args.user = user
94 ashish 776
    args.write(self._oprot)
777
    self._oprot.writeMessageEnd()
778
    self._oprot.trans.flush()
779
 
559 chandransh 780
  def recv_updateUser(self, ):
94 ashish 781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
782
    if mtype == TMessageType.EXCEPTION:
783
      x = TApplicationException()
784
      x.read(self._iprot)
785
      self._iprot.readMessageEnd()
786
      raise x
559 chandransh 787
    result = updateUser_result()
94 ashish 788
    result.read(self._iprot)
789
    self._iprot.readMessageEnd()
3431 rajveer 790
    if result.success is not None:
94 ashish 791
      return result.success
3431 rajveer 792
    if result.ucex is not None:
559 chandransh 793
      raise result.ucex
794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 795
 
559 chandransh 796
  def deleteUser(self, userId):
94 ashish 797
    """
798
    Parameters:
799
     - userId
800
    """
559 chandransh 801
    self.send_deleteUser(userId)
802
    return self.recv_deleteUser()
94 ashish 803
 
559 chandransh 804
  def send_deleteUser(self, userId):
805
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
806
    args = deleteUser_args()
94 ashish 807
    args.userId = userId
808
    args.write(self._oprot)
809
    self._oprot.writeMessageEnd()
810
    self._oprot.trans.flush()
811
 
559 chandransh 812
  def recv_deleteUser(self, ):
94 ashish 813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
814
    if mtype == TMessageType.EXCEPTION:
815
      x = TApplicationException()
816
      x.read(self._iprot)
817
      self._iprot.readMessageEnd()
818
      raise x
559 chandransh 819
    result = deleteUser_result()
94 ashish 820
    result.read(self._iprot)
821
    self._iprot.readMessageEnd()
3431 rajveer 822
    if result.success is not None:
94 ashish 823
      return result.success
3431 rajveer 824
    if result.ucex is not None:
559 chandransh 825
      raise result.ucex
826
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 827
 
559 chandransh 828
  def getUserState(self, userId):
94 ashish 829
    """
830
    Parameters:
831
     - userId
832
    """
559 chandransh 833
    self.send_getUserState(userId)
834
    return self.recv_getUserState()
94 ashish 835
 
559 chandransh 836
  def send_getUserState(self, userId):
837
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
838
    args = getUserState_args()
94 ashish 839
    args.userId = userId
840
    args.write(self._oprot)
841
    self._oprot.writeMessageEnd()
842
    self._oprot.trans.flush()
843
 
559 chandransh 844
  def recv_getUserState(self, ):
94 ashish 845
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
846
    if mtype == TMessageType.EXCEPTION:
847
      x = TApplicationException()
848
      x.read(self._iprot)
849
      self._iprot.readMessageEnd()
850
      raise x
559 chandransh 851
    result = getUserState_result()
94 ashish 852
    result.read(self._iprot)
853
    self._iprot.readMessageEnd()
3431 rajveer 854
    if result.success is not None:
94 ashish 855
      return result.success
3431 rajveer 856
    if result.ucex is not None:
559 chandransh 857
      raise result.ucex
858
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 859
 
559 chandransh 860
  def authenticateUser(self, email, password):
94 ashish 861
    """
862
    Parameters:
863
     - email
864
     - password
865
    """
559 chandransh 866
    self.send_authenticateUser(email, password)
122 ashish 867
    return self.recv_authenticateUser()
868
 
559 chandransh 869
  def send_authenticateUser(self, email, password):
122 ashish 870
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
871
    args = authenticateUser_args()
559 chandransh 872
    args.email = email
122 ashish 873
    args.password = password
874
    args.write(self._oprot)
875
    self._oprot.writeMessageEnd()
876
    self._oprot.trans.flush()
877
 
878
  def recv_authenticateUser(self, ):
879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
880
    if mtype == TMessageType.EXCEPTION:
881
      x = TApplicationException()
882
      x.read(self._iprot)
883
      self._iprot.readMessageEnd()
884
      raise x
885
    result = authenticateUser_result()
886
    result.read(self._iprot)
887
    self._iprot.readMessageEnd()
3431 rajveer 888
    if result.success is not None:
122 ashish 889
      return result.success
3431 rajveer 890
    if result.auex is not None:
559 chandransh 891
      raise result.auex
122 ashish 892
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
893
 
94 ashish 894
  def userExists(self, email):
895
    """
896
    Parameters:
897
     - email
898
    """
899
    self.send_userExists(email)
900
    return self.recv_userExists()
901
 
902
  def send_userExists(self, email):
903
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
904
    args = userExists_args()
905
    args.email = email
906
    args.write(self._oprot)
907
    self._oprot.writeMessageEnd()
908
    self._oprot.trans.flush()
909
 
910
  def recv_userExists(self, ):
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
912
    if mtype == TMessageType.EXCEPTION:
913
      x = TApplicationException()
914
      x.read(self._iprot)
915
      self._iprot.readMessageEnd()
916
      raise x
917
    result = userExists_result()
918
    result.read(self._iprot)
919
    self._iprot.readMessageEnd()
3431 rajveer 920
    if result.success is not None:
94 ashish 921
      return result.success
3431 rajveer 922
    if result.ucx is not None:
94 ashish 923
      raise result.ucx
924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
925
 
567 rajveer 926
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 927
    """
928
    Parameters:
929
     - userId
930
     - address
513 rajveer 931
     - setDefault
94 ashish 932
    """
567 rajveer 933
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 934
    return self.recv_addAddressForUser()
935
 
567 rajveer 936
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 937
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
938
    args = addAddressForUser_args()
559 chandransh 939
    args.userId = userId
94 ashish 940
    args.address = address
513 rajveer 941
    args.setDefault = setDefault
94 ashish 942
    args.write(self._oprot)
943
    self._oprot.writeMessageEnd()
944
    self._oprot.trans.flush()
945
 
946
  def recv_addAddressForUser(self, ):
947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
948
    if mtype == TMessageType.EXCEPTION:
949
      x = TApplicationException()
950
      x.read(self._iprot)
951
      self._iprot.readMessageEnd()
952
      raise x
953
    result = addAddressForUser_result()
954
    result.read(self._iprot)
955
    self._iprot.readMessageEnd()
3431 rajveer 956
    if result.success is not None:
94 ashish 957
      return result.success
3431 rajveer 958
    if result.ucx is not None:
94 ashish 959
      raise result.ucx
960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
961
 
962
  def removeAddressForUser(self, userid, addressId):
963
    """
964
    Parameters:
965
     - userid
966
     - addressId
967
    """
968
    self.send_removeAddressForUser(userid, addressId)
969
    return self.recv_removeAddressForUser()
970
 
971
  def send_removeAddressForUser(self, userid, addressId):
972
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
973
    args = removeAddressForUser_args()
974
    args.userid = userid
975
    args.addressId = addressId
976
    args.write(self._oprot)
977
    self._oprot.writeMessageEnd()
978
    self._oprot.trans.flush()
979
 
980
  def recv_removeAddressForUser(self, ):
981
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
982
    if mtype == TMessageType.EXCEPTION:
983
      x = TApplicationException()
984
      x.read(self._iprot)
985
      self._iprot.readMessageEnd()
986
      raise x
987
    result = removeAddressForUser_result()
988
    result.read(self._iprot)
989
    self._iprot.readMessageEnd()
3431 rajveer 990
    if result.success is not None:
94 ashish 991
      return result.success
3431 rajveer 992
    if result.ucx is not None:
94 ashish 993
      raise result.ucx
994
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
995
 
996
  def setUserAsLoggedIn(self, userId, timestamp):
997
    """
998
    Parameters:
999
     - userId
1000
     - timestamp
1001
    """
1002
    self.send_setUserAsLoggedIn(userId, timestamp)
1003
    return self.recv_setUserAsLoggedIn()
1004
 
1005
  def send_setUserAsLoggedIn(self, userId, timestamp):
1006
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1007
    args = setUserAsLoggedIn_args()
1008
    args.userId = userId
1009
    args.timestamp = timestamp
1010
    args.write(self._oprot)
1011
    self._oprot.writeMessageEnd()
1012
    self._oprot.trans.flush()
1013
 
1014
  def recv_setUserAsLoggedIn(self, ):
1015
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1016
    if mtype == TMessageType.EXCEPTION:
1017
      x = TApplicationException()
1018
      x.read(self._iprot)
1019
      self._iprot.readMessageEnd()
1020
      raise x
1021
    result = setUserAsLoggedIn_result()
1022
    result.read(self._iprot)
1023
    self._iprot.readMessageEnd()
3431 rajveer 1024
    if result.success is not None:
94 ashish 1025
      return result.success
3431 rajveer 1026
    if result.ucx is not None:
94 ashish 1027
      raise result.ucx
1028
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1029
 
1030
  def setUserAsLoggedOut(self, userid, timestamp):
1031
    """
1032
    Parameters:
1033
     - userid
1034
     - timestamp
1035
    """
1036
    self.send_setUserAsLoggedOut(userid, timestamp)
1037
    return self.recv_setUserAsLoggedOut()
1038
 
1039
  def send_setUserAsLoggedOut(self, userid, timestamp):
1040
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1041
    args = setUserAsLoggedOut_args()
1042
    args.userid = userid
1043
    args.timestamp = timestamp
1044
    args.write(self._oprot)
1045
    self._oprot.writeMessageEnd()
1046
    self._oprot.trans.flush()
1047
 
1048
  def recv_setUserAsLoggedOut(self, ):
1049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1050
    if mtype == TMessageType.EXCEPTION:
1051
      x = TApplicationException()
1052
      x.read(self._iprot)
1053
      self._iprot.readMessageEnd()
1054
      raise x
1055
    result = setUserAsLoggedOut_result()
1056
    result.read(self._iprot)
1057
    self._iprot.readMessageEnd()
3431 rajveer 1058
    if result.success is not None:
94 ashish 1059
      return result.success
3431 rajveer 1060
    if result.ucx is not None:
94 ashish 1061
      raise result.ucx
1062
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1063
 
504 rajveer 1064
  def setDefaultAddress(self, userid, addressId):
1065
    """
1066
    Parameters:
1067
     - userid
1068
     - addressId
1069
    """
1070
    self.send_setDefaultAddress(userid, addressId)
1071
    return self.recv_setDefaultAddress()
1072
 
1073
  def send_setDefaultAddress(self, userid, addressId):
1074
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1075
    args = setDefaultAddress_args()
1076
    args.userid = userid
1077
    args.addressId = addressId
1078
    args.write(self._oprot)
1079
    self._oprot.writeMessageEnd()
1080
    self._oprot.trans.flush()
1081
 
1082
  def recv_setDefaultAddress(self, ):
1083
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1084
    if mtype == TMessageType.EXCEPTION:
1085
      x = TApplicationException()
1086
      x.read(self._iprot)
1087
      self._iprot.readMessageEnd()
1088
      raise x
1089
    result = setDefaultAddress_result()
1090
    result.read(self._iprot)
1091
    self._iprot.readMessageEnd()
3431 rajveer 1092
    if result.success is not None:
504 rajveer 1093
      return result.success
3431 rajveer 1094
    if result.ucx is not None:
504 rajveer 1095
      raise result.ucx
1096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1097
 
594 rajveer 1098
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1099
    """
1100
    Parameters:
1101
     - userid
594 rajveer 1102
     - oldPassword
1103
     - newPassword
94 ashish 1104
    """
594 rajveer 1105
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1106
    return self.recv_updatePassword()
1107
 
594 rajveer 1108
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1109
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1110
    args = updatePassword_args()
1111
    args.userid = userid
594 rajveer 1112
    args.oldPassword = oldPassword
1113
    args.newPassword = newPassword
94 ashish 1114
    args.write(self._oprot)
1115
    self._oprot.writeMessageEnd()
1116
    self._oprot.trans.flush()
1117
 
1118
  def recv_updatePassword(self, ):
1119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1120
    if mtype == TMessageType.EXCEPTION:
1121
      x = TApplicationException()
1122
      x.read(self._iprot)
1123
      self._iprot.readMessageEnd()
1124
      raise x
1125
    result = updatePassword_result()
1126
    result.read(self._iprot)
1127
    self._iprot.readMessageEnd()
3431 rajveer 1128
    if result.success is not None:
94 ashish 1129
      return result.success
3431 rajveer 1130
    if result.ucx is not None:
94 ashish 1131
      raise result.ucx
1132
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1133
 
884 rajveer 1134
  def forgotPassword(self, email, newPassword):
581 rajveer 1135
    """
1136
    Parameters:
1137
     - email
884 rajveer 1138
     - newPassword
581 rajveer 1139
    """
884 rajveer 1140
    self.send_forgotPassword(email, newPassword)
581 rajveer 1141
    return self.recv_forgotPassword()
1142
 
884 rajveer 1143
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1144
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1145
    args = forgotPassword_args()
1146
    args.email = email
884 rajveer 1147
    args.newPassword = newPassword
581 rajveer 1148
    args.write(self._oprot)
1149
    self._oprot.writeMessageEnd()
1150
    self._oprot.trans.flush()
1151
 
1152
  def recv_forgotPassword(self, ):
1153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1154
    if mtype == TMessageType.EXCEPTION:
1155
      x = TApplicationException()
1156
      x.read(self._iprot)
1157
      self._iprot.readMessageEnd()
1158
      raise x
1159
    result = forgotPassword_result()
1160
    result.read(self._iprot)
1161
    self._iprot.readMessageEnd()
3431 rajveer 1162
    if result.success is not None:
581 rajveer 1163
      return result.success
3431 rajveer 1164
    if result.ucx is not None:
581 rajveer 1165
      raise result.ucx
1166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1167
 
594 rajveer 1168
  def getAllAddressesForUser(self, userId):
1169
    """
1170
    Parameters:
1171
     - userId
1172
    """
1173
    self.send_getAllAddressesForUser(userId)
1174
    return self.recv_getAllAddressesForUser()
1175
 
1176
  def send_getAllAddressesForUser(self, userId):
1177
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1178
    args = getAllAddressesForUser_args()
1179
    args.userId = userId
1180
    args.write(self._oprot)
1181
    self._oprot.writeMessageEnd()
1182
    self._oprot.trans.flush()
1183
 
1184
  def recv_getAllAddressesForUser(self, ):
1185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1186
    if mtype == TMessageType.EXCEPTION:
1187
      x = TApplicationException()
1188
      x.read(self._iprot)
1189
      self._iprot.readMessageEnd()
1190
      raise x
1191
    result = getAllAddressesForUser_result()
1192
    result.read(self._iprot)
1193
    self._iprot.readMessageEnd()
3431 rajveer 1194
    if result.success is not None:
594 rajveer 1195
      return result.success
3431 rajveer 1196
    if result.ucx is not None:
594 rajveer 1197
      raise result.ucx
1198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1199
 
1894 vikas 1200
  def getAddressById(self, addressId):
1201
    """
1202
    Parameters:
1203
     - addressId
1204
    """
1205
    self.send_getAddressById(addressId)
1206
    return self.recv_getAddressById()
1207
 
1208
  def send_getAddressById(self, addressId):
1209
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1210
    args = getAddressById_args()
1211
    args.addressId = addressId
1212
    args.write(self._oprot)
1213
    self._oprot.writeMessageEnd()
1214
    self._oprot.trans.flush()
1215
 
1216
  def recv_getAddressById(self, ):
1217
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1218
    if mtype == TMessageType.EXCEPTION:
1219
      x = TApplicationException()
1220
      x.read(self._iprot)
1221
      self._iprot.readMessageEnd()
1222
      raise x
1223
    result = getAddressById_result()
1224
    result.read(self._iprot)
1225
    self._iprot.readMessageEnd()
3431 rajveer 1226
    if result.success is not None:
1894 vikas 1227
      return result.success
3431 rajveer 1228
    if result.ucx is not None:
1894 vikas 1229
      raise result.ucx
1230
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1231
 
594 rajveer 1232
  def getDefaultAddressId(self, userId):
1233
    """
1234
    Parameters:
1235
     - userId
1236
    """
1237
    self.send_getDefaultAddressId(userId)
1238
    return self.recv_getDefaultAddressId()
1239
 
1240
  def send_getDefaultAddressId(self, userId):
1241
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1242
    args = getDefaultAddressId_args()
1243
    args.userId = userId
1244
    args.write(self._oprot)
1245
    self._oprot.writeMessageEnd()
1246
    self._oprot.trans.flush()
1247
 
1248
  def recv_getDefaultAddressId(self, ):
1249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1250
    if mtype == TMessageType.EXCEPTION:
1251
      x = TApplicationException()
1252
      x.read(self._iprot)
1253
      self._iprot.readMessageEnd()
1254
      raise x
1255
    result = getDefaultAddressId_result()
1256
    result.read(self._iprot)
1257
    self._iprot.readMessageEnd()
3431 rajveer 1258
    if result.success is not None:
594 rajveer 1259
      return result.success
3431 rajveer 1260
    if result.ucx is not None:
594 rajveer 1261
      raise result.ucx
1262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1263
 
785 rajveer 1264
  def getDefaultPincode(self, userId):
1265
    """
1266
    Parameters:
1267
     - userId
1268
    """
1269
    self.send_getDefaultPincode(userId)
1270
    return self.recv_getDefaultPincode()
1271
 
1272
  def send_getDefaultPincode(self, userId):
1273
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1274
    args = getDefaultPincode_args()
1275
    args.userId = userId
1276
    args.write(self._oprot)
1277
    self._oprot.writeMessageEnd()
1278
    self._oprot.trans.flush()
1279
 
1280
  def recv_getDefaultPincode(self, ):
1281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1282
    if mtype == TMessageType.EXCEPTION:
1283
      x = TApplicationException()
1284
      x.read(self._iprot)
1285
      self._iprot.readMessageEnd()
1286
      raise x
1287
    result = getDefaultPincode_result()
1288
    result.read(self._iprot)
1289
    self._iprot.readMessageEnd()
3431 rajveer 1290
    if result.success is not None:
785 rajveer 1291
      return result.success
3431 rajveer 1292
    if result.ucx is not None:
785 rajveer 1293
      raise result.ucx
1294
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1295
 
1274 varun.gupt 1296
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1297
    """
1298
    Parameters:
1299
     - userId
1300
     - replyTo
1301
     - communicationType
1302
     - orderId
1303
     - airwaybillNo
1304
     - productName
1305
     - subject
1306
     - message
1307
    """
1308
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1309
    return self.recv_saveUserCommunication()
1310
 
1311
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1312
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1313
    args = saveUserCommunication_args()
1314
    args.userId = userId
1315
    args.replyTo = replyTo
1316
    args.communicationType = communicationType
1317
    args.orderId = orderId
1318
    args.airwaybillNo = airwaybillNo
1319
    args.productName = productName
1320
    args.subject = subject
1321
    args.message = message
1322
    args.write(self._oprot)
1323
    self._oprot.writeMessageEnd()
1324
    self._oprot.trans.flush()
1325
 
1326
  def recv_saveUserCommunication(self, ):
1327
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1328
    if mtype == TMessageType.EXCEPTION:
1329
      x = TApplicationException()
1330
      x.read(self._iprot)
1331
      self._iprot.readMessageEnd()
1332
      raise x
1333
    result = saveUserCommunication_result()
1334
    result.read(self._iprot)
1335
    self._iprot.readMessageEnd()
3431 rajveer 1336
    if result.success is not None:
1274 varun.gupt 1337
      return result.success
3431 rajveer 1338
    if result.ucx is not None:
1274 varun.gupt 1339
      raise result.ucx
1340
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1341
 
1590 varun.gupt 1342
  def getUserCommunicationById(self, id):
1343
    """
1344
    Parameters:
1345
     - id
1346
    """
1347
    self.send_getUserCommunicationById(id)
1348
    return self.recv_getUserCommunicationById()
1349
 
1350
  def send_getUserCommunicationById(self, id):
1351
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1352
    args = getUserCommunicationById_args()
1353
    args.id = id
1354
    args.write(self._oprot)
1355
    self._oprot.writeMessageEnd()
1356
    self._oprot.trans.flush()
1357
 
1358
  def recv_getUserCommunicationById(self, ):
1359
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1360
    if mtype == TMessageType.EXCEPTION:
1361
      x = TApplicationException()
1362
      x.read(self._iprot)
1363
      self._iprot.readMessageEnd()
1364
      raise x
1365
    result = getUserCommunicationById_result()
1366
    result.read(self._iprot)
1367
    self._iprot.readMessageEnd()
3431 rajveer 1368
    if result.success is not None:
1590 varun.gupt 1369
      return result.success
3431 rajveer 1370
    if result.ucx is not None:
1590 varun.gupt 1371
      raise result.ucx
1372
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1373
 
1374
  def getUserCommunicationByUser(self, userId):
1375
    """
1376
    Parameters:
1377
     - userId
1378
    """
1379
    self.send_getUserCommunicationByUser(userId)
1380
    return self.recv_getUserCommunicationByUser()
1381
 
1382
  def send_getUserCommunicationByUser(self, userId):
1383
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1384
    args = getUserCommunicationByUser_args()
1385
    args.userId = userId
1386
    args.write(self._oprot)
1387
    self._oprot.writeMessageEnd()
1388
    self._oprot.trans.flush()
1389
 
1390
  def recv_getUserCommunicationByUser(self, ):
1391
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1392
    if mtype == TMessageType.EXCEPTION:
1393
      x = TApplicationException()
1394
      x.read(self._iprot)
1395
      self._iprot.readMessageEnd()
1396
      raise x
1397
    result = getUserCommunicationByUser_result()
1398
    result.read(self._iprot)
1399
    self._iprot.readMessageEnd()
3431 rajveer 1400
    if result.success is not None:
1590 varun.gupt 1401
      return result.success
3431 rajveer 1402
    if result.ucx is not None:
1590 varun.gupt 1403
      raise result.ucx
1404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1405
 
1406
  def getAllUserCommunications(self, ):
1407
    self.send_getAllUserCommunications()
1408
    return self.recv_getAllUserCommunications()
1409
 
1410
  def send_getAllUserCommunications(self, ):
1411
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1412
    args = getAllUserCommunications_args()
1413
    args.write(self._oprot)
1414
    self._oprot.writeMessageEnd()
1415
    self._oprot.trans.flush()
1416
 
1417
  def recv_getAllUserCommunications(self, ):
1418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1419
    if mtype == TMessageType.EXCEPTION:
1420
      x = TApplicationException()
1421
      x.read(self._iprot)
1422
      self._iprot.readMessageEnd()
1423
      raise x
1424
    result = getAllUserCommunications_result()
1425
    result.read(self._iprot)
1426
    self._iprot.readMessageEnd()
3431 rajveer 1427
    if result.success is not None:
1590 varun.gupt 1428
      return result.success
3431 rajveer 1429
    if result.ucx is not None:
1590 varun.gupt 1430
      raise result.ucx
1431
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1432
 
1859 vikas 1433
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1434
    """
1435
    Parameters:
1436
     - name
1859 vikas 1437
     - addedOn
1845 vikas 1438
    """
1859 vikas 1439
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1440
    return self.recv_createMasterAffiliate()
1441
 
1859 vikas 1442
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1443
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1444
    args = createMasterAffiliate_args()
1445
    args.name = name
1859 vikas 1446
    args.addedOn = addedOn
1845 vikas 1447
    args.write(self._oprot)
1448
    self._oprot.writeMessageEnd()
1449
    self._oprot.trans.flush()
1450
 
1451
  def recv_createMasterAffiliate(self, ):
1452
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1453
    if mtype == TMessageType.EXCEPTION:
1454
      x = TApplicationException()
1455
      x.read(self._iprot)
1456
      self._iprot.readMessageEnd()
1457
      raise x
1458
    result = createMasterAffiliate_result()
1459
    result.read(self._iprot)
1460
    self._iprot.readMessageEnd()
3431 rajveer 1461
    if result.success is not None:
1845 vikas 1462
      return result.success
3431 rajveer 1463
    if result.utx is not None:
1845 vikas 1464
      raise result.utx
1465
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1466
 
1899 vikas 1467
  def getAllMasterAffiliates(self, ):
1468
    self.send_getAllMasterAffiliates()
1469
    return self.recv_getAllMasterAffiliates()
1470
 
1471
  def send_getAllMasterAffiliates(self, ):
1472
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1473
    args = getAllMasterAffiliates_args()
1474
    args.write(self._oprot)
1475
    self._oprot.writeMessageEnd()
1476
    self._oprot.trans.flush()
1477
 
1478
  def recv_getAllMasterAffiliates(self, ):
1479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1480
    if mtype == TMessageType.EXCEPTION:
1481
      x = TApplicationException()
1482
      x.read(self._iprot)
1483
      self._iprot.readMessageEnd()
1484
      raise x
1485
    result = getAllMasterAffiliates_result()
1486
    result.read(self._iprot)
1487
    self._iprot.readMessageEnd()
3431 rajveer 1488
    if result.success is not None:
1899 vikas 1489
      return result.success
3431 rajveer 1490
    if result.utx is not None:
1899 vikas 1491
      raise result.utx
1492
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1493
 
1845 vikas 1494
  def getMasterAffiliateById(self, id):
1495
    """
1496
    Parameters:
1497
     - id
1498
    """
1499
    self.send_getMasterAffiliateById(id)
1500
    return self.recv_getMasterAffiliateById()
1501
 
1502
  def send_getMasterAffiliateById(self, id):
1503
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1504
    args = getMasterAffiliateById_args()
1505
    args.id = id
1506
    args.write(self._oprot)
1507
    self._oprot.writeMessageEnd()
1508
    self._oprot.trans.flush()
1509
 
1510
  def recv_getMasterAffiliateById(self, ):
1511
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1512
    if mtype == TMessageType.EXCEPTION:
1513
      x = TApplicationException()
1514
      x.read(self._iprot)
1515
      self._iprot.readMessageEnd()
1516
      raise x
1517
    result = getMasterAffiliateById_result()
1518
    result.read(self._iprot)
1519
    self._iprot.readMessageEnd()
3431 rajveer 1520
    if result.success is not None:
1845 vikas 1521
      return result.success
3431 rajveer 1522
    if result.utx is not None:
1845 vikas 1523
      raise result.utx
1524
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1525
 
1526
  def getMasterAffiliateByName(self, name):
1527
    """
1528
    Parameters:
1529
     - name
1530
    """
1531
    self.send_getMasterAffiliateByName(name)
1532
    return self.recv_getMasterAffiliateByName()
1533
 
1534
  def send_getMasterAffiliateByName(self, name):
1535
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1536
    args = getMasterAffiliateByName_args()
1537
    args.name = name
1538
    args.write(self._oprot)
1539
    self._oprot.writeMessageEnd()
1540
    self._oprot.trans.flush()
1541
 
1542
  def recv_getMasterAffiliateByName(self, ):
1543
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1544
    if mtype == TMessageType.EXCEPTION:
1545
      x = TApplicationException()
1546
      x.read(self._iprot)
1547
      self._iprot.readMessageEnd()
1548
      raise x
1549
    result = getMasterAffiliateByName_result()
1550
    result.read(self._iprot)
1551
    self._iprot.readMessageEnd()
3431 rajveer 1552
    if result.success is not None:
1845 vikas 1553
      return result.success
3431 rajveer 1554
    if result.utx is not None:
1845 vikas 1555
      raise result.utx
1556
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1557
 
1859 vikas 1558
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1559
    """
1560
    Parameters:
1561
     - name
1562
     - url
1563
     - masterAffiliateId
1859 vikas 1564
     - addedOn
1845 vikas 1565
    """
1859 vikas 1566
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1567
    return self.recv_createAffiliate()
1568
 
1859 vikas 1569
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1570
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1571
    args = createAffiliate_args()
1572
    args.name = name
1573
    args.url = url
1574
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1575
    args.addedOn = addedOn
1845 vikas 1576
    args.write(self._oprot)
1577
    self._oprot.writeMessageEnd()
1578
    self._oprot.trans.flush()
1579
 
1580
  def recv_createAffiliate(self, ):
1581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1582
    if mtype == TMessageType.EXCEPTION:
1583
      x = TApplicationException()
1584
      x.read(self._iprot)
1585
      self._iprot.readMessageEnd()
1586
      raise x
1587
    result = createAffiliate_result()
1588
    result.read(self._iprot)
1589
    self._iprot.readMessageEnd()
3431 rajveer 1590
    if result.success is not None:
1845 vikas 1591
      return result.success
3431 rajveer 1592
    if result.utx is not None:
1845 vikas 1593
      raise result.utx
1594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1595
 
1596
  def getAffiliateById(self, id):
1597
    """
1598
    Parameters:
1599
     - id
1600
    """
1601
    self.send_getAffiliateById(id)
1602
    return self.recv_getAffiliateById()
1603
 
1604
  def send_getAffiliateById(self, id):
1605
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1606
    args = getAffiliateById_args()
1607
    args.id = id
1608
    args.write(self._oprot)
1609
    self._oprot.writeMessageEnd()
1610
    self._oprot.trans.flush()
1611
 
1612
  def recv_getAffiliateById(self, ):
1613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1614
    if mtype == TMessageType.EXCEPTION:
1615
      x = TApplicationException()
1616
      x.read(self._iprot)
1617
      self._iprot.readMessageEnd()
1618
      raise x
1619
    result = getAffiliateById_result()
1620
    result.read(self._iprot)
1621
    self._iprot.readMessageEnd()
3431 rajveer 1622
    if result.success is not None:
1845 vikas 1623
      return result.success
3431 rajveer 1624
    if result.utx is not None:
1845 vikas 1625
      raise result.utx
1626
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1627
 
1628
  def getAffiliateByName(self, name):
1629
    """
1630
    Parameters:
1631
     - name
1632
    """
1633
    self.send_getAffiliateByName(name)
1634
    return self.recv_getAffiliateByName()
1635
 
1636
  def send_getAffiliateByName(self, name):
1637
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1638
    args = getAffiliateByName_args()
1639
    args.name = name
1640
    args.write(self._oprot)
1641
    self._oprot.writeMessageEnd()
1642
    self._oprot.trans.flush()
1643
 
1644
  def recv_getAffiliateByName(self, ):
1645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1646
    if mtype == TMessageType.EXCEPTION:
1647
      x = TApplicationException()
1648
      x.read(self._iprot)
1649
      self._iprot.readMessageEnd()
1650
      raise x
1651
    result = getAffiliateByName_result()
1652
    result.read(self._iprot)
1653
    self._iprot.readMessageEnd()
3431 rajveer 1654
    if result.success is not None:
1845 vikas 1655
      return result.success
3431 rajveer 1656
    if result.utx is not None:
1845 vikas 1657
      raise result.utx
1658
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1659
 
1996 vikas 1660
  def getTrackerById(self, id):
1845 vikas 1661
    """
1662
    Parameters:
1663
     - id
1664
    """
1996 vikas 1665
    self.send_getTrackerById(id)
1845 vikas 1666
    return self.recv_getTrackerById()
1667
 
1996 vikas 1668
  def send_getTrackerById(self, id):
1845 vikas 1669
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1670
    args = getTrackerById_args()
1996 vikas 1671
    args.id = id
1845 vikas 1672
    args.write(self._oprot)
1673
    self._oprot.writeMessageEnd()
1674
    self._oprot.trans.flush()
1675
 
1676
  def recv_getTrackerById(self, ):
1677
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1678
    if mtype == TMessageType.EXCEPTION:
1679
      x = TApplicationException()
1680
      x.read(self._iprot)
1681
      self._iprot.readMessageEnd()
1682
      raise x
1683
    result = getTrackerById_result()
1684
    result.read(self._iprot)
1685
    self._iprot.readMessageEnd()
3431 rajveer 1686
    if result.success is not None:
1845 vikas 1687
      return result.success
3431 rajveer 1688
    if result.utx is not None:
1845 vikas 1689
      raise result.utx
1690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1691
 
1996 vikas 1692
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1693
    """
1694
    Parameters:
1996 vikas 1695
     - id
1845 vikas 1696
    """
1996 vikas 1697
    self.send_getAffiliatesByMasterAffiliate(id)
1698
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1699
 
1996 vikas 1700
  def send_getAffiliatesByMasterAffiliate(self, id):
1701
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1702
    args = getAffiliatesByMasterAffiliate_args()
1703
    args.id = id
1845 vikas 1704
    args.write(self._oprot)
1705
    self._oprot.writeMessageEnd()
1706
    self._oprot.trans.flush()
1707
 
1996 vikas 1708
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1710
    if mtype == TMessageType.EXCEPTION:
1711
      x = TApplicationException()
1712
      x.read(self._iprot)
1713
      self._iprot.readMessageEnd()
1714
      raise x
1996 vikas 1715
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1716
    result.read(self._iprot)
1717
    self._iprot.readMessageEnd()
3431 rajveer 1718
    if result.success is not None:
1845 vikas 1719
      return result.success
3431 rajveer 1720
    if result.utx is not None:
1845 vikas 1721
      raise result.utx
1996 vikas 1722
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1723
 
1996 vikas 1724
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1725
    """
1726
    Parameters:
1996 vikas 1727
     - affiliateId
1845 vikas 1728
     - userId
1729
     - event
1730
     - url
1731
     - data
1859 vikas 1732
     - addedOn
1845 vikas 1733
    """
1996 vikas 1734
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1735
    return self.recv_addTrackLog()
1736
 
1996 vikas 1737
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1738
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1739
    args = addTrackLog_args()
1996 vikas 1740
    args.affiliateId = affiliateId
1845 vikas 1741
    args.userId = userId
1742
    args.event = event
1743
    args.url = url
1744
    args.data = data
1859 vikas 1745
    args.addedOn = addedOn
1845 vikas 1746
    args.write(self._oprot)
1747
    self._oprot.writeMessageEnd()
1748
    self._oprot.trans.flush()
1749
 
1750
  def recv_addTrackLog(self, ):
1751
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1752
    if mtype == TMessageType.EXCEPTION:
1753
      x = TApplicationException()
1754
      x.read(self._iprot)
1755
      self._iprot.readMessageEnd()
1756
      raise x
1757
    result = addTrackLog_result()
1758
    result.read(self._iprot)
1759
    self._iprot.readMessageEnd()
3431 rajveer 1760
    if result.success is not None:
1845 vikas 1761
      return result.success
3431 rajveer 1762
    if result.utx is not None:
1845 vikas 1763
      raise result.utx
1764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1765
 
1766
  def getTrackLogById(self, id):
1767
    """
1768
    Parameters:
1769
     - id
1770
    """
1771
    self.send_getTrackLogById(id)
1772
    return self.recv_getTrackLogById()
1773
 
1774
  def send_getTrackLogById(self, id):
1775
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1776
    args = getTrackLogById_args()
1777
    args.id = id
1778
    args.write(self._oprot)
1779
    self._oprot.writeMessageEnd()
1780
    self._oprot.trans.flush()
1781
 
1782
  def recv_getTrackLogById(self, ):
1783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1784
    if mtype == TMessageType.EXCEPTION:
1785
      x = TApplicationException()
1786
      x.read(self._iprot)
1787
      self._iprot.readMessageEnd()
1788
      raise x
1789
    result = getTrackLogById_result()
1790
    result.read(self._iprot)
1791
    self._iprot.readMessageEnd()
3431 rajveer 1792
    if result.success is not None:
1845 vikas 1793
      return result.success
3431 rajveer 1794
    if result.utx is not None:
1845 vikas 1795
      raise result.utx
1796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1797
 
3293 vikas 1798
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1799
    """
1800
    Parameters:
1996 vikas 1801
     - affiliateId
3293 vikas 1802
     - startDate
1803
     - endDate
1845 vikas 1804
    """
3293 vikas 1805
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1806
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1807
 
3293 vikas 1808
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1809
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1810
    args = getTrackLogsByAffiliate_args()
1811
    args.affiliateId = affiliateId
3293 vikas 1812
    args.startDate = startDate
1813
    args.endDate = endDate
1845 vikas 1814
    args.write(self._oprot)
1815
    self._oprot.writeMessageEnd()
1816
    self._oprot.trans.flush()
1817
 
1996 vikas 1818
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1819
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1820
    if mtype == TMessageType.EXCEPTION:
1821
      x = TApplicationException()
1822
      x.read(self._iprot)
1823
      self._iprot.readMessageEnd()
1824
      raise x
1996 vikas 1825
    result = getTrackLogsByAffiliate_result()
1845 vikas 1826
    result.read(self._iprot)
1827
    self._iprot.readMessageEnd()
3431 rajveer 1828
    if result.success is not None:
1845 vikas 1829
      return result.success
3431 rajveer 1830
    if result.utx is not None:
1845 vikas 1831
      raise result.utx
1996 vikas 1832
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1833
 
1834
  def getTrackLogsByUser(self, userId):
1835
    """
1836
    Parameters:
1837
     - userId
1838
    """
1839
    self.send_getTrackLogsByUser(userId)
1840
    return self.recv_getTrackLogsByUser()
1841
 
1842
  def send_getTrackLogsByUser(self, userId):
1843
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1844
    args = getTrackLogsByUser_args()
1845
    args.userId = userId
1846
    args.write(self._oprot)
1847
    self._oprot.writeMessageEnd()
1848
    self._oprot.trans.flush()
1849
 
1850
  def recv_getTrackLogsByUser(self, ):
1851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1852
    if mtype == TMessageType.EXCEPTION:
1853
      x = TApplicationException()
1854
      x.read(self._iprot)
1855
      self._iprot.readMessageEnd()
1856
      raise x
1857
    result = getTrackLogsByUser_result()
1858
    result.read(self._iprot)
1859
    self._iprot.readMessageEnd()
3431 rajveer 1860
    if result.success is not None:
1845 vikas 1861
      return result.success
3431 rajveer 1862
    if result.utx is not None:
1845 vikas 1863
      raise result.utx
1864
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1865
 
1996 vikas 1866
  def getTrackLogs(self, userId, event, url):
1845 vikas 1867
    """
1868
    Parameters:
1869
     - userId
1870
     - event
1871
     - url
1872
    """
1996 vikas 1873
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1874
    return self.recv_getTrackLogs()
1875
 
1996 vikas 1876
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1877
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1878
    args = getTrackLogs_args()
1879
    args.userId = userId
1880
    args.event = event
1881
    args.url = url
1882
    args.write(self._oprot)
1883
    self._oprot.writeMessageEnd()
1884
    self._oprot.trans.flush()
1885
 
1886
  def recv_getTrackLogs(self, ):
1887
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1888
    if mtype == TMessageType.EXCEPTION:
1889
      x = TApplicationException()
1890
      x.read(self._iprot)
1891
      self._iprot.readMessageEnd()
1892
      raise x
1893
    result = getTrackLogs_result()
1894
    result.read(self._iprot)
1895
    self._iprot.readMessageEnd()
3431 rajveer 1896
    if result.success is not None:
1845 vikas 1897
      return result.success
3431 rajveer 1898
    if result.utx is not None:
1845 vikas 1899
      raise result.utx
1900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1901
 
559 chandransh 1902
  def createCart(self, userId):
94 ashish 1903
    """
1904
    Parameters:
559 chandransh 1905
     - userId
94 ashish 1906
    """
559 chandransh 1907
    self.send_createCart(userId)
1908
    return self.recv_createCart()
94 ashish 1909
 
559 chandransh 1910
  def send_createCart(self, userId):
1911
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1912
    args = createCart_args()
1913
    args.userId = userId
94 ashish 1914
    args.write(self._oprot)
1915
    self._oprot.writeMessageEnd()
1916
    self._oprot.trans.flush()
1917
 
559 chandransh 1918
  def recv_createCart(self, ):
94 ashish 1919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1920
    if mtype == TMessageType.EXCEPTION:
1921
      x = TApplicationException()
1922
      x.read(self._iprot)
1923
      self._iprot.readMessageEnd()
1924
      raise x
559 chandransh 1925
    result = createCart_result()
94 ashish 1926
    result.read(self._iprot)
1927
    self._iprot.readMessageEnd()
3431 rajveer 1928
    if result.success is not None:
94 ashish 1929
      return result.success
3431 rajveer 1930
    if result.scx is not None:
559 chandransh 1931
      raise result.scx
1932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1933
 
559 chandransh 1934
  def getCurrentCart(self, userId):
94 ashish 1935
    """
1936
    Parameters:
559 chandransh 1937
     - userId
94 ashish 1938
    """
559 chandransh 1939
    self.send_getCurrentCart(userId)
1940
    return self.recv_getCurrentCart()
94 ashish 1941
 
559 chandransh 1942
  def send_getCurrentCart(self, userId):
1943
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1944
    args = getCurrentCart_args()
1945
    args.userId = userId
94 ashish 1946
    args.write(self._oprot)
1947
    self._oprot.writeMessageEnd()
1948
    self._oprot.trans.flush()
1949
 
559 chandransh 1950
  def recv_getCurrentCart(self, ):
94 ashish 1951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1952
    if mtype == TMessageType.EXCEPTION:
1953
      x = TApplicationException()
1954
      x.read(self._iprot)
1955
      self._iprot.readMessageEnd()
1956
      raise x
559 chandransh 1957
    result = getCurrentCart_result()
94 ashish 1958
    result.read(self._iprot)
1959
    self._iprot.readMessageEnd()
3431 rajveer 1960
    if result.success is not None:
94 ashish 1961
      return result.success
3431 rajveer 1962
    if result.scx is not None:
559 chandransh 1963
      raise result.scx
1964
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1965
 
559 chandransh 1966
  def getCart(self, cartId):
94 ashish 1967
    """
1968
    Parameters:
559 chandransh 1969
     - cartId
94 ashish 1970
    """
559 chandransh 1971
    self.send_getCart(cartId)
1972
    return self.recv_getCart()
94 ashish 1973
 
559 chandransh 1974
  def send_getCart(self, cartId):
1975
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1976
    args = getCart_args()
1977
    args.cartId = cartId
94 ashish 1978
    args.write(self._oprot)
1979
    self._oprot.writeMessageEnd()
1980
    self._oprot.trans.flush()
1981
 
559 chandransh 1982
  def recv_getCart(self, ):
94 ashish 1983
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1984
    if mtype == TMessageType.EXCEPTION:
1985
      x = TApplicationException()
1986
      x.read(self._iprot)
1987
      self._iprot.readMessageEnd()
1988
      raise x
559 chandransh 1989
    result = getCart_result()
94 ashish 1990
    result.read(self._iprot)
1991
    self._iprot.readMessageEnd()
3431 rajveer 1992
    if result.success is not None:
94 ashish 1993
      return result.success
3431 rajveer 1994
    if result.scx is not None:
559 chandransh 1995
      raise result.scx
1996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1997
 
559 chandransh 1998
  def getCartsForUser(self, userId, status):
94 ashish 1999
    """
2000
    Parameters:
559 chandransh 2001
     - userId
2002
     - status
94 ashish 2003
    """
559 chandransh 2004
    self.send_getCartsForUser(userId, status)
2005
    return self.recv_getCartsForUser()
94 ashish 2006
 
559 chandransh 2007
  def send_getCartsForUser(self, userId, status):
2008
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
2009
    args = getCartsForUser_args()
2010
    args.userId = userId
2011
    args.status = status
94 ashish 2012
    args.write(self._oprot)
2013
    self._oprot.writeMessageEnd()
2014
    self._oprot.trans.flush()
2015
 
559 chandransh 2016
  def recv_getCartsForUser(self, ):
94 ashish 2017
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2018
    if mtype == TMessageType.EXCEPTION:
2019
      x = TApplicationException()
2020
      x.read(self._iprot)
2021
      self._iprot.readMessageEnd()
2022
      raise x
559 chandransh 2023
    result = getCartsForUser_result()
94 ashish 2024
    result.read(self._iprot)
2025
    self._iprot.readMessageEnd()
3431 rajveer 2026
    if result.success is not None:
94 ashish 2027
      return result.success
3431 rajveer 2028
    if result.scx is not None:
559 chandransh 2029
      raise result.scx
2030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2031
 
559 chandransh 2032
  def getCartsByStatus(self, status):
94 ashish 2033
    """
2034
    Parameters:
559 chandransh 2035
     - status
94 ashish 2036
    """
559 chandransh 2037
    self.send_getCartsByStatus(status)
2038
    return self.recv_getCartsByStatus()
94 ashish 2039
 
559 chandransh 2040
  def send_getCartsByStatus(self, status):
2041
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2042
    args = getCartsByStatus_args()
2043
    args.status = status
94 ashish 2044
    args.write(self._oprot)
2045
    self._oprot.writeMessageEnd()
2046
    self._oprot.trans.flush()
2047
 
559 chandransh 2048
  def recv_getCartsByStatus(self, ):
94 ashish 2049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2050
    if mtype == TMessageType.EXCEPTION:
2051
      x = TApplicationException()
2052
      x.read(self._iprot)
2053
      self._iprot.readMessageEnd()
2054
      raise x
559 chandransh 2055
    result = getCartsByStatus_result()
94 ashish 2056
    result.read(self._iprot)
2057
    self._iprot.readMessageEnd()
3431 rajveer 2058
    if result.success is not None:
94 ashish 2059
      return result.success
3431 rajveer 2060
    if result.scx is not None:
559 chandransh 2061
      raise result.scx
2062
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2063
 
559 chandransh 2064
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2065
    """
2066
    Parameters:
559 chandransh 2067
     - from_time
2068
     - to_time
2069
     - status
94 ashish 2070
    """
559 chandransh 2071
    self.send_getCartsByTime(from_time, to_time, status)
2072
    return self.recv_getCartsByTime()
94 ashish 2073
 
559 chandransh 2074
  def send_getCartsByTime(self, from_time, to_time, status):
2075
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2076
    args = getCartsByTime_args()
2077
    args.from_time = from_time
2078
    args.to_time = to_time
2079
    args.status = status
94 ashish 2080
    args.write(self._oprot)
2081
    self._oprot.writeMessageEnd()
2082
    self._oprot.trans.flush()
2083
 
559 chandransh 2084
  def recv_getCartsByTime(self, ):
94 ashish 2085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2086
    if mtype == TMessageType.EXCEPTION:
2087
      x = TApplicationException()
2088
      x.read(self._iprot)
2089
      self._iprot.readMessageEnd()
2090
      raise x
559 chandransh 2091
    result = getCartsByTime_result()
94 ashish 2092
    result.read(self._iprot)
2093
    self._iprot.readMessageEnd()
3431 rajveer 2094
    if result.success is not None:
94 ashish 2095
      return result.success
3431 rajveer 2096
    if result.scx is not None:
559 chandransh 2097
      raise result.scx
2098
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2099
 
559 chandransh 2100
  def changeCartStatus(self, cartId, status):
130 ashish 2101
    """
2102
    Parameters:
559 chandransh 2103
     - cartId
2104
     - status
130 ashish 2105
    """
559 chandransh 2106
    self.send_changeCartStatus(cartId, status)
2107
    self.recv_changeCartStatus()
94 ashish 2108
 
559 chandransh 2109
  def send_changeCartStatus(self, cartId, status):
2110
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2111
    args = changeCartStatus_args()
2112
    args.cartId = cartId
2113
    args.status = status
130 ashish 2114
    args.write(self._oprot)
2115
    self._oprot.writeMessageEnd()
2116
    self._oprot.trans.flush()
2117
 
559 chandransh 2118
  def recv_changeCartStatus(self, ):
130 ashish 2119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2120
    if mtype == TMessageType.EXCEPTION:
2121
      x = TApplicationException()
2122
      x.read(self._iprot)
2123
      self._iprot.readMessageEnd()
2124
      raise x
559 chandransh 2125
    result = changeCartStatus_result()
130 ashish 2126
    result.read(self._iprot)
2127
    self._iprot.readMessageEnd()
3431 rajveer 2128
    if result.scx is not None:
559 chandransh 2129
      raise result.scx
2130
    return
2131
 
2132
  def addItemToCart(self, cartId, itemId, quantity):
2133
    """
2134
    Parameters:
2135
     - cartId
2136
     - itemId
2137
     - quantity
2138
    """
2139
    self.send_addItemToCart(cartId, itemId, quantity)
2035 rajveer 2140
    return self.recv_addItemToCart()
559 chandransh 2141
 
2142
  def send_addItemToCart(self, cartId, itemId, quantity):
2143
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2144
    args = addItemToCart_args()
2145
    args.cartId = cartId
2146
    args.itemId = itemId
2147
    args.quantity = quantity
2148
    args.write(self._oprot)
2149
    self._oprot.writeMessageEnd()
2150
    self._oprot.trans.flush()
2151
 
2152
  def recv_addItemToCart(self, ):
2153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2154
    if mtype == TMessageType.EXCEPTION:
2155
      x = TApplicationException()
2156
      x.read(self._iprot)
2157
      self._iprot.readMessageEnd()
2158
      raise x
2159
    result = addItemToCart_result()
2160
    result.read(self._iprot)
2161
    self._iprot.readMessageEnd()
3431 rajveer 2162
    if result.success is not None:
2035 rajveer 2163
      return result.success
3431 rajveer 2164
    if result.scx is not None:
559 chandransh 2165
      raise result.scx
2035 rajveer 2166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2167
 
2168
  def deleteItemFromCart(self, cartId, itemId):
2169
    """
2170
    Parameters:
2171
     - cartId
2172
     - itemId
2173
    """
2174
    self.send_deleteItemFromCart(cartId, itemId)
2175
    self.recv_deleteItemFromCart()
2176
 
2177
  def send_deleteItemFromCart(self, cartId, itemId):
2178
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2179
    args = deleteItemFromCart_args()
2180
    args.cartId = cartId
2181
    args.itemId = itemId
2182
    args.write(self._oprot)
2183
    self._oprot.writeMessageEnd()
2184
    self._oprot.trans.flush()
2185
 
2186
  def recv_deleteItemFromCart(self, ):
2187
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2188
    if mtype == TMessageType.EXCEPTION:
2189
      x = TApplicationException()
2190
      x.read(self._iprot)
2191
      self._iprot.readMessageEnd()
2192
      raise x
2193
    result = deleteItemFromCart_result()
2194
    result.read(self._iprot)
2195
    self._iprot.readMessageEnd()
3431 rajveer 2196
    if result.scx is not None:
559 chandransh 2197
      raise result.scx
2198
    return
2199
 
2200
  def changeQuantity(self, cartId, itemId, quantity):
2201
    """
2202
    Parameters:
2203
     - cartId
2204
     - itemId
2205
     - quantity
2206
    """
2207
    self.send_changeQuantity(cartId, itemId, quantity)
2208
    self.recv_changeQuantity()
2209
 
2210
  def send_changeQuantity(self, cartId, itemId, quantity):
2211
    self._oprot.writeMessageBegin('changeQuantity', TMessageType.CALL, self._seqid)
2212
    args = changeQuantity_args()
2213
    args.cartId = cartId
2214
    args.itemId = itemId
2215
    args.quantity = quantity
2216
    args.write(self._oprot)
2217
    self._oprot.writeMessageEnd()
2218
    self._oprot.trans.flush()
2219
 
2220
  def recv_changeQuantity(self, ):
2221
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2222
    if mtype == TMessageType.EXCEPTION:
2223
      x = TApplicationException()
2224
      x.read(self._iprot)
2225
      self._iprot.readMessageEnd()
2226
      raise x
2227
    result = changeQuantity_result()
2228
    result.read(self._iprot)
2229
    self._iprot.readMessageEnd()
3431 rajveer 2230
    if result.scx is not None:
559 chandransh 2231
      raise result.scx
2232
    return
2233
 
2234
  def changeItemStatus(self, cartId, itemId, status):
2235
    """
2236
    Parameters:
2237
     - cartId
2238
     - itemId
2239
     - status
2240
    """
2241
    self.send_changeItemStatus(cartId, itemId, status)
2242
    self.recv_changeItemStatus()
2243
 
2244
  def send_changeItemStatus(self, cartId, itemId, status):
2245
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2246
    args = changeItemStatus_args()
2247
    args.cartId = cartId
2248
    args.itemId = itemId
2249
    args.status = status
2250
    args.write(self._oprot)
2251
    self._oprot.writeMessageEnd()
2252
    self._oprot.trans.flush()
2253
 
2254
  def recv_changeItemStatus(self, ):
2255
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2256
    if mtype == TMessageType.EXCEPTION:
2257
      x = TApplicationException()
2258
      x.read(self._iprot)
2259
      self._iprot.readMessageEnd()
2260
      raise x
2261
    result = changeItemStatus_result()
2262
    result.read(self._iprot)
2263
    self._iprot.readMessageEnd()
3431 rajveer 2264
    if result.scx is not None:
559 chandransh 2265
      raise result.scx
2266
    return
2267
 
2268
  def addAddressToCart(self, cartId, addressId):
2269
    """
2270
    Parameters:
2271
     - cartId
2272
     - addressId
2273
    """
2274
    self.send_addAddressToCart(cartId, addressId)
2275
    self.recv_addAddressToCart()
2276
 
2277
  def send_addAddressToCart(self, cartId, addressId):
2278
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2279
    args = addAddressToCart_args()
2280
    args.cartId = cartId
2281
    args.addressId = addressId
2282
    args.write(self._oprot)
2283
    self._oprot.writeMessageEnd()
2284
    self._oprot.trans.flush()
2285
 
2286
  def recv_addAddressToCart(self, ):
2287
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2288
    if mtype == TMessageType.EXCEPTION:
2289
      x = TApplicationException()
2290
      x.read(self._iprot)
2291
      self._iprot.readMessageEnd()
2292
      raise x
2293
    result = addAddressToCart_result()
2294
    result.read(self._iprot)
2295
    self._iprot.readMessageEnd()
3431 rajveer 2296
    if result.scx is not None:
575 chandransh 2297
      raise result.scx
559 chandransh 2298
    return
2299
 
1976 varun.gupt 2300
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2301
    """
2302
    Parameters:
2303
     - cartId
2304
     - couponCode
2305
     - totalPrice
2306
     - discountedPrice
2307
    """
2308
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2309
    self.recv_applyCouponToCart()
2310
 
2311
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2312
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2313
    args = applyCouponToCart_args()
2314
    args.cartId = cartId
2315
    args.couponCode = couponCode
2316
    args.totalPrice = totalPrice
2317
    args.discountedPrice = discountedPrice
2318
    args.write(self._oprot)
2319
    self._oprot.writeMessageEnd()
2320
    self._oprot.trans.flush()
2321
 
2322
  def recv_applyCouponToCart(self, ):
2323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2324
    if mtype == TMessageType.EXCEPTION:
2325
      x = TApplicationException()
2326
      x.read(self._iprot)
2327
      self._iprot.readMessageEnd()
2328
      raise x
2329
    result = applyCouponToCart_result()
2330
    result.read(self._iprot)
2331
    self._iprot.readMessageEnd()
3431 rajveer 2332
    if result.scx is not None:
1976 varun.gupt 2333
      raise result.scx
2334
    return
2335
 
2336
  def removeCoupon(self, cartId):
2337
    """
2338
    Parameters:
2339
     - cartId
2340
    """
2341
    self.send_removeCoupon(cartId)
2342
    self.recv_removeCoupon()
2343
 
2344
  def send_removeCoupon(self, cartId):
2345
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2346
    args = removeCoupon_args()
2347
    args.cartId = cartId
2348
    args.write(self._oprot)
2349
    self._oprot.writeMessageEnd()
2350
    self._oprot.trans.flush()
2351
 
2352
  def recv_removeCoupon(self, ):
2353
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2354
    if mtype == TMessageType.EXCEPTION:
2355
      x = TApplicationException()
2356
      x.read(self._iprot)
2357
      self._iprot.readMessageEnd()
2358
      raise x
2359
    result = removeCoupon_result()
2360
    result.read(self._iprot)
2361
    self._iprot.readMessageEnd()
3431 rajveer 2362
    if result.scx is not None:
1976 varun.gupt 2363
      raise result.scx
2364
    return
2365
 
2815 vikas 2366
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 2367
    """
690 chandransh 2368
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2369
 
559 chandransh 2370
    Parameters:
2371
     - cartId
2815 vikas 2372
     - sessionSource
2373
     - sessionStartTime
559 chandransh 2374
    """
2815 vikas 2375
    self.send_createOrders(cartId, sessionSource, sessionStartTime)
690 chandransh 2376
    return self.recv_createOrders()
559 chandransh 2377
 
2815 vikas 2378
  def send_createOrders(self, cartId, sessionSource, sessionStartTime):
690 chandransh 2379
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2380
    args = createOrders_args()
559 chandransh 2381
    args.cartId = cartId
2815 vikas 2382
    args.sessionSource = sessionSource
2383
    args.sessionStartTime = sessionStartTime
559 chandransh 2384
    args.write(self._oprot)
2385
    self._oprot.writeMessageEnd()
2386
    self._oprot.trans.flush()
2387
 
690 chandransh 2388
  def recv_createOrders(self, ):
559 chandransh 2389
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2390
    if mtype == TMessageType.EXCEPTION:
2391
      x = TApplicationException()
2392
      x.read(self._iprot)
2393
      self._iprot.readMessageEnd()
2394
      raise x
690 chandransh 2395
    result = createOrders_result()
559 chandransh 2396
    result.read(self._iprot)
2397
    self._iprot.readMessageEnd()
3431 rajveer 2398
    if result.success is not None:
130 ashish 2399
      return result.success
3431 rajveer 2400
    if result.scx is not None:
559 chandransh 2401
      raise result.scx
690 chandransh 2402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2403
 
559 chandransh 2404
  def validateCart(self, cartId):
130 ashish 2405
    """
690 chandransh 2406
    Validates that:
2407
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2408
    2. All of the lines in the cart are active items.
690 chandransh 2409
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2410
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2411
 
130 ashish 2412
    Parameters:
559 chandransh 2413
     - cartId
130 ashish 2414
    """
559 chandransh 2415
    self.send_validateCart(cartId)
2416
    return self.recv_validateCart()
130 ashish 2417
 
559 chandransh 2418
  def send_validateCart(self, cartId):
2419
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2420
    args = validateCart_args()
2421
    args.cartId = cartId
130 ashish 2422
    args.write(self._oprot)
2423
    self._oprot.writeMessageEnd()
2424
    self._oprot.trans.flush()
2425
 
559 chandransh 2426
  def recv_validateCart(self, ):
130 ashish 2427
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2428
    if mtype == TMessageType.EXCEPTION:
2429
      x = TApplicationException()
2430
      x.read(self._iprot)
2431
      self._iprot.readMessageEnd()
2432
      raise x
559 chandransh 2433
    result = validateCart_result()
130 ashish 2434
    result.read(self._iprot)
2435
    self._iprot.readMessageEnd()
3431 rajveer 2436
    if result.success is not None:
130 ashish 2437
      return result.success
3431 rajveer 2438
    if result.scex is not None:
575 chandransh 2439
      raise result.scex
559 chandransh 2440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2441
 
690 chandransh 2442
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2443
    """
690 chandransh 2444
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2445
 
575 chandransh 2446
    Parameters:
690 chandransh 2447
     - fromCartId
2448
     - toCartId
2449
    """
2450
    self.send_mergeCart(fromCartId, toCartId)
2451
    self.recv_mergeCart()
2452
 
2453
  def send_mergeCart(self, fromCartId, toCartId):
2454
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2455
    args = mergeCart_args()
2456
    args.fromCartId = fromCartId
2457
    args.toCartId = toCartId
2458
    args.write(self._oprot)
2459
    self._oprot.writeMessageEnd()
2460
    self._oprot.trans.flush()
2461
 
2462
  def recv_mergeCart(self, ):
2463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2464
    if mtype == TMessageType.EXCEPTION:
2465
      x = TApplicationException()
2466
      x.read(self._iprot)
2467
      self._iprot.readMessageEnd()
2468
      raise x
2469
    result = mergeCart_result()
2470
    result.read(self._iprot)
2471
    self._iprot.readMessageEnd()
2472
    return
2473
 
2474
  def checkOut(self, cartId):
2475
    """
2476
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2477
 
690 chandransh 2478
    Parameters:
575 chandransh 2479
     - cartId
2480
    """
690 chandransh 2481
    self.send_checkOut(cartId)
2482
    return self.recv_checkOut()
575 chandransh 2483
 
690 chandransh 2484
  def send_checkOut(self, cartId):
2485
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2486
    args = checkOut_args()
575 chandransh 2487
    args.cartId = cartId
2488
    args.write(self._oprot)
2489
    self._oprot.writeMessageEnd()
2490
    self._oprot.trans.flush()
2491
 
690 chandransh 2492
  def recv_checkOut(self, ):
575 chandransh 2493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2494
    if mtype == TMessageType.EXCEPTION:
2495
      x = TApplicationException()
2496
      x.read(self._iprot)
2497
      self._iprot.readMessageEnd()
2498
      raise x
690 chandransh 2499
    result = checkOut_result()
575 chandransh 2500
    result.read(self._iprot)
2501
    self._iprot.readMessageEnd()
3431 rajveer 2502
    if result.success is not None:
575 chandransh 2503
      return result.success
3431 rajveer 2504
    if result.scex is not None:
575 chandransh 2505
      raise result.scex
690 chandransh 2506
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2507
 
690 chandransh 2508
  def resetCart(self, cartId, items):
559 chandransh 2509
    """
690 chandransh 2510
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2511
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2512
 
559 chandransh 2513
    Parameters:
690 chandransh 2514
     - cartId
2515
     - items
559 chandransh 2516
    """
690 chandransh 2517
    self.send_resetCart(cartId, items)
2518
    return self.recv_resetCart()
130 ashish 2519
 
690 chandransh 2520
  def send_resetCart(self, cartId, items):
2521
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2522
    args = resetCart_args()
2523
    args.cartId = cartId
2524
    args.items = items
559 chandransh 2525
    args.write(self._oprot)
2526
    self._oprot.writeMessageEnd()
2527
    self._oprot.trans.flush()
2528
 
690 chandransh 2529
  def recv_resetCart(self, ):
559 chandransh 2530
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2531
    if mtype == TMessageType.EXCEPTION:
2532
      x = TApplicationException()
2533
      x.read(self._iprot)
2534
      self._iprot.readMessageEnd()
2535
      raise x
690 chandransh 2536
    result = resetCart_result()
559 chandransh 2537
    result.read(self._iprot)
2538
    self._iprot.readMessageEnd()
3431 rajveer 2539
    if result.success is not None:
690 chandransh 2540
      return result.success
3431 rajveer 2541
    if result.scex is not None:
690 chandransh 2542
      raise result.scex
2543
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2544
 
2981 rajveer 2545
  def getUserCount(self, userType):
559 chandransh 2546
    """
2981 rajveer 2547
    Returns number of registered users.
2548
    If userType = null, then it returns count of all users, including anonymous
2549
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2550
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2551
 
559 chandransh 2552
    Parameters:
2981 rajveer 2553
     - userType
559 chandransh 2554
    """
2981 rajveer 2555
    self.send_getUserCount(userType)
2556
    return self.recv_getUserCount()
559 chandransh 2557
 
2981 rajveer 2558
  def send_getUserCount(self, userType):
2559
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2560
    args = getUserCount_args()
2561
    args.userType = userType
559 chandransh 2562
    args.write(self._oprot)
2563
    self._oprot.writeMessageEnd()
2564
    self._oprot.trans.flush()
2565
 
2981 rajveer 2566
  def recv_getUserCount(self, ):
559 chandransh 2567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2568
    if mtype == TMessageType.EXCEPTION:
2569
      x = TApplicationException()
2570
      x.read(self._iprot)
2571
      self._iprot.readMessageEnd()
2572
      raise x
2981 rajveer 2573
    result = getUserCount_result()
559 chandransh 2574
    result.read(self._iprot)
2575
    self._iprot.readMessageEnd()
3431 rajveer 2576
    if result.success is not None:
559 chandransh 2577
      return result.success
2981 rajveer 2578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2579
 
2981 rajveer 2580
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2581
    """
2981 rajveer 2582
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2583
    If any of startDate or endDate is -1, then that filter is ignored.
2584
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2585
 
2586
 
559 chandransh 2587
    Parameters:
2981 rajveer 2588
     - userType
2589
     - startDate
2590
     - endDate
559 chandransh 2591
    """
2981 rajveer 2592
    self.send_getAllUsers(userType, startDate, endDate)
2593
    return self.recv_getAllUsers()
559 chandransh 2594
 
2981 rajveer 2595
  def send_getAllUsers(self, userType, startDate, endDate):
2596
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2597
    args = getAllUsers_args()
2598
    args.userType = userType
2599
    args.startDate = startDate
2600
    args.endDate = endDate
559 chandransh 2601
    args.write(self._oprot)
2602
    self._oprot.writeMessageEnd()
2603
    self._oprot.trans.flush()
2604
 
2981 rajveer 2605
  def recv_getAllUsers(self, ):
559 chandransh 2606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2607
    if mtype == TMessageType.EXCEPTION:
2608
      x = TApplicationException()
2609
      x.read(self._iprot)
2610
      self._iprot.readMessageEnd()
2611
      raise x
2981 rajveer 2612
    result = getAllUsers_result()
559 chandransh 2613
    result.read(self._iprot)
2614
    self._iprot.readMessageEnd()
3431 rajveer 2615
    if result.success is not None:
559 chandransh 2616
      return result.success
2981 rajveer 2617
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2618
 
2981 rajveer 2619
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2620
    """
2621
    Parameters:
2981 rajveer 2622
     - user_id
2623
     - entity_id
2624
     - slide
2625
     - note
559 chandransh 2626
    """
2981 rajveer 2627
    self.send_putUserNote(user_id, entity_id, slide, note)
2628
    self.recv_putUserNote()
559 chandransh 2629
 
2981 rajveer 2630
  def send_putUserNote(self, user_id, entity_id, slide, note):
2631
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2632
    args = putUserNote_args()
2633
    args.user_id = user_id
2634
    args.entity_id = entity_id
2635
    args.slide = slide
2636
    args.note = note
559 chandransh 2637
    args.write(self._oprot)
2638
    self._oprot.writeMessageEnd()
2639
    self._oprot.trans.flush()
2640
 
2981 rajveer 2641
  def recv_putUserNote(self, ):
559 chandransh 2642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2643
    if mtype == TMessageType.EXCEPTION:
2644
      x = TApplicationException()
2645
      x.read(self._iprot)
2646
      self._iprot.readMessageEnd()
2647
      raise x
2981 rajveer 2648
    result = putUserNote_result()
559 chandransh 2649
    result.read(self._iprot)
2650
    self._iprot.readMessageEnd()
2651
    return
2652
 
2981 rajveer 2653
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2654
    """
2655
    Parameters:
2981 rajveer 2656
     - user_id
2657
     - entity_id
559 chandransh 2658
    """
2981 rajveer 2659
    self.send_getUserNotes(user_id, entity_id)
2660
    return self.recv_getUserNotes()
559 chandransh 2661
 
2981 rajveer 2662
  def send_getUserNotes(self, user_id, entity_id):
2663
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2664
    args = getUserNotes_args()
2665
    args.user_id = user_id
2666
    args.entity_id = entity_id
559 chandransh 2667
    args.write(self._oprot)
2668
    self._oprot.writeMessageEnd()
2669
    self._oprot.trans.flush()
2670
 
2981 rajveer 2671
  def recv_getUserNotes(self, ):
559 chandransh 2672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2673
    if mtype == TMessageType.EXCEPTION:
2674
      x = TApplicationException()
2675
      x.read(self._iprot)
2676
      self._iprot.readMessageEnd()
2677
      raise x
2981 rajveer 2678
    result = getUserNotes_result()
559 chandransh 2679
    result.read(self._iprot)
2680
    self._iprot.readMessageEnd()
3431 rajveer 2681
    if result.success is not None:
2981 rajveer 2682
      return result.success
2683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2684
 
2981 rajveer 2685
  def getMyResearchItems(self, userId):
559 chandransh 2686
    """
2981 rajveer 2687
    Returns list of item ids in myresearch for the user
3431 rajveer 2688
 
559 chandransh 2689
    Parameters:
772 rajveer 2690
     - userId
559 chandransh 2691
    """
2981 rajveer 2692
    self.send_getMyResearchItems(userId)
2693
    return self.recv_getMyResearchItems()
559 chandransh 2694
 
2981 rajveer 2695
  def send_getMyResearchItems(self, userId):
2696
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2697
    args = getMyResearchItems_args()
772 rajveer 2698
    args.userId = userId
559 chandransh 2699
    args.write(self._oprot)
2700
    self._oprot.writeMessageEnd()
2701
    self._oprot.trans.flush()
2702
 
2981 rajveer 2703
  def recv_getMyResearchItems(self, ):
559 chandransh 2704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2705
    if mtype == TMessageType.EXCEPTION:
2706
      x = TApplicationException()
2707
      x.read(self._iprot)
2708
      self._iprot.readMessageEnd()
2709
      raise x
2981 rajveer 2710
    result = getMyResearchItems_result()
559 chandransh 2711
    result.read(self._iprot)
2712
    self._iprot.readMessageEnd()
3431 rajveer 2713
    if result.success is not None:
559 chandransh 2714
      return result.success
3431 rajveer 2715
    if result.scx is not None:
559 chandransh 2716
      raise result.scx
2981 rajveer 2717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2718
 
2981 rajveer 2719
  def updateMyResearch(self, userId, itemId):
559 chandransh 2720
    """
2981 rajveer 2721
    add item to my research for a user
3431 rajveer 2722
 
559 chandransh 2723
    Parameters:
2981 rajveer 2724
     - userId
2725
     - itemId
559 chandransh 2726
    """
2981 rajveer 2727
    self.send_updateMyResearch(userId, itemId)
2728
    return self.recv_updateMyResearch()
559 chandransh 2729
 
2981 rajveer 2730
  def send_updateMyResearch(self, userId, itemId):
2731
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2732
    args = updateMyResearch_args()
2733
    args.userId = userId
2734
    args.itemId = itemId
559 chandransh 2735
    args.write(self._oprot)
2736
    self._oprot.writeMessageEnd()
2737
    self._oprot.trans.flush()
2738
 
2981 rajveer 2739
  def recv_updateMyResearch(self, ):
559 chandransh 2740
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2741
    if mtype == TMessageType.EXCEPTION:
2742
      x = TApplicationException()
2743
      x.read(self._iprot)
2744
      self._iprot.readMessageEnd()
2745
      raise x
2981 rajveer 2746
    result = updateMyResearch_result()
559 chandransh 2747
    result.read(self._iprot)
2748
    self._iprot.readMessageEnd()
3431 rajveer 2749
    if result.success is not None:
2981 rajveer 2750
      return result.success
3431 rajveer 2751
    if result.scx is not None:
2981 rajveer 2752
      raise result.scx
2753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2754
 
2981 rajveer 2755
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2756
    """
2981 rajveer 2757
    delete item from my research for a user
3431 rajveer 2758
 
1596 ankur.sing 2759
    Parameters:
2981 rajveer 2760
     - userId
2761
     - itemId
1596 ankur.sing 2762
    """
2981 rajveer 2763
    self.send_deleteItemFromMyResearch(userId, itemId)
2764
    self.recv_deleteItemFromMyResearch()
559 chandransh 2765
 
2981 rajveer 2766
  def send_deleteItemFromMyResearch(self, userId, itemId):
2767
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2768
    args = deleteItemFromMyResearch_args()
2769
    args.userId = userId
2770
    args.itemId = itemId
1596 ankur.sing 2771
    args.write(self._oprot)
2772
    self._oprot.writeMessageEnd()
2773
    self._oprot.trans.flush()
2774
 
2981 rajveer 2775
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2777
    if mtype == TMessageType.EXCEPTION:
2778
      x = TApplicationException()
2779
      x.read(self._iprot)
2780
      self._iprot.readMessageEnd()
2781
      raise x
2981 rajveer 2782
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2783
    result.read(self._iprot)
2784
    self._iprot.readMessageEnd()
3431 rajveer 2785
    if result.scx is not None:
2981 rajveer 2786
      raise result.scx
2787
    return
1596 ankur.sing 2788
 
2981 rajveer 2789
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2790
    """
2981 rajveer 2791
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2792
 
1673 ankur.sing 2793
    Parameters:
2981 rajveer 2794
     - userId
1673 ankur.sing 2795
    """
2981 rajveer 2796
    self.send_getBrowseHistoryItems(userId)
2797
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2798
 
2981 rajveer 2799
  def send_getBrowseHistoryItems(self, userId):
2800
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2801
    args = getBrowseHistoryItems_args()
2802
    args.userId = userId
1673 ankur.sing 2803
    args.write(self._oprot)
2804
    self._oprot.writeMessageEnd()
2805
    self._oprot.trans.flush()
2806
 
2981 rajveer 2807
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2809
    if mtype == TMessageType.EXCEPTION:
2810
      x = TApplicationException()
2811
      x.read(self._iprot)
2812
      self._iprot.readMessageEnd()
2813
      raise x
2981 rajveer 2814
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2815
    result.read(self._iprot)
2816
    self._iprot.readMessageEnd()
3431 rajveer 2817
    if result.success is not None:
1673 ankur.sing 2818
      return result.success
3431 rajveer 2819
    if result.scx is not None:
2981 rajveer 2820
      raise result.scx
2821
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2822
 
2981 rajveer 2823
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2824
    """
2981 rajveer 2825
    add item to browse history for a user
3431 rajveer 2826
 
2642 varun.gupt 2827
    Parameters:
2981 rajveer 2828
     - userId
2829
     - itemId
2642 varun.gupt 2830
    """
2981 rajveer 2831
    self.send_updateBrowseHistory(userId, itemId)
2832
    self.recv_updateBrowseHistory()
1673 ankur.sing 2833
 
2981 rajveer 2834
  def send_updateBrowseHistory(self, userId, itemId):
2835
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2836
    args = updateBrowseHistory_args()
2837
    args.userId = userId
2838
    args.itemId = itemId
2642 varun.gupt 2839
    args.write(self._oprot)
2840
    self._oprot.writeMessageEnd()
2841
    self._oprot.trans.flush()
2842
 
2981 rajveer 2843
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2845
    if mtype == TMessageType.EXCEPTION:
2846
      x = TApplicationException()
2847
      x.read(self._iprot)
2848
      self._iprot.readMessageEnd()
2849
      raise x
2981 rajveer 2850
    result = updateBrowseHistory_result()
2642 varun.gupt 2851
    result.read(self._iprot)
2852
    self._iprot.readMessageEnd()
2853
    return
2854
 
3385 varun.gupt 2855
  def getCartsWithCouponCount(self, couponCode):
2856
    """
2857
    Returns count of Carts with given coupon applied
3431 rajveer 2858
 
3385 varun.gupt 2859
    Parameters:
2860
     - couponCode
2861
    """
2862
    self.send_getCartsWithCouponCount(couponCode)
2863
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2864
 
3385 varun.gupt 2865
  def send_getCartsWithCouponCount(self, couponCode):
2866
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2867
    args = getCartsWithCouponCount_args()
2868
    args.couponCode = couponCode
2869
    args.write(self._oprot)
2870
    self._oprot.writeMessageEnd()
2871
    self._oprot.trans.flush()
2872
 
2873
  def recv_getCartsWithCouponCount(self, ):
2874
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2875
    if mtype == TMessageType.EXCEPTION:
2876
      x = TApplicationException()
2877
      x.read(self._iprot)
2878
      self._iprot.readMessageEnd()
2879
      raise x
2880
    result = getCartsWithCouponCount_result()
2881
    result.read(self._iprot)
2882
    self._iprot.readMessageEnd()
3431 rajveer 2883
    if result.success is not None:
3385 varun.gupt 2884
      return result.success
2885
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2886
 
3499 mandeep.dh 2887
  def increaseTrustLevel(self, userId, trustLevelDelta):
2888
    """
2889
    Updates COD trust level of a user
3385 varun.gupt 2890
 
3499 mandeep.dh 2891
    Parameters:
2892
     - userId
2893
     - trustLevelDelta
2894
    """
2895
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2896
 
2897
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2898
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2899
    args = increaseTrustLevel_args()
2900
    args.userId = userId
2901
    args.trustLevelDelta = trustLevelDelta
2902
    args.write(self._oprot)
2903
    self._oprot.writeMessageEnd()
2904
    self._oprot.trans.flush()
2905
 
3376 rajveer 2906
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2907
  def __init__(self, handler):
3376 rajveer 2908
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2909
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2910
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2911
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2912
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2913
    self._processMap["createUser"] = Processor.process_createUser
2914
    self._processMap["updateUser"] = Processor.process_updateUser
2915
    self._processMap["deleteUser"] = Processor.process_deleteUser
2916
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 2917
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2918
    self._processMap["userExists"] = Processor.process_userExists
2919
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2920
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2921
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2922
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2923
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2924
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2925
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2926
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2927
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2928
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2929
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2930
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2931
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2932
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2933
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2934
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2935
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2936
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2937
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2938
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2939
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2940
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2941
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2942
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2943
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2944
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2945
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2946
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2947
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2948
    self._processMap["createCart"] = Processor.process_createCart
2949
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2950
    self._processMap["getCart"] = Processor.process_getCart
2951
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
2952
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
2953
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2954
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
2955
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2956
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2957
    self._processMap["changeQuantity"] = Processor.process_changeQuantity
2958
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2959
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 2960
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2961
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
690 chandransh 2962
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2963
    self._processMap["validateCart"] = Processor.process_validateCart
2964
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2965
    self._processMap["checkOut"] = Processor.process_checkOut
2966
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2967
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2968
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2969
    self._processMap["putUserNote"] = Processor.process_putUserNote
2970
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2971
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2972
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2973
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2974
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2975
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2976
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2977
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
94 ashish 2978
 
2979
  def process(self, iprot, oprot):
2980
    (name, type, seqid) = iprot.readMessageBegin()
2981
    if name not in self._processMap:
2982
      iprot.skip(TType.STRUCT)
2983
      iprot.readMessageEnd()
2984
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2985
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2986
      x.write(oprot)
2987
      oprot.writeMessageEnd()
2988
      oprot.trans.flush()
2989
      return
2990
    else:
2991
      self._processMap[name](self, seqid, iprot, oprot)
2992
    return True
2993
 
559 chandransh 2994
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2995
    args = createAnonymousUser_args()
94 ashish 2996
    args.read(iprot)
2997
    iprot.readMessageEnd()
559 chandransh 2998
    result = createAnonymousUser_result()
94 ashish 2999
    try:
559 chandransh 3000
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3001
    except UserContextException, ucex:
3002
      result.ucex = ucex
3003
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3004
    result.write(oprot)
3005
    oprot.writeMessageEnd()
3006
    oprot.trans.flush()
3007
 
559 chandransh 3008
  def process_getUserById(self, seqid, iprot, oprot):
3009
    args = getUserById_args()
94 ashish 3010
    args.read(iprot)
3011
    iprot.readMessageEnd()
559 chandransh 3012
    result = getUserById_result()
94 ashish 3013
    try:
559 chandransh 3014
      result.success = self._handler.getUserById(args.userId)
3015
    except UserContextException, ucex:
3016
      result.ucex = ucex
3017
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3018
    result.write(oprot)
3019
    oprot.writeMessageEnd()
3020
    oprot.trans.flush()
3021
 
1491 vikas 3022
  def process_getUserByEmail(self, seqid, iprot, oprot):
3023
    args = getUserByEmail_args()
3024
    args.read(iprot)
3025
    iprot.readMessageEnd()
3026
    result = getUserByEmail_result()
3027
    try:
3028
      result.success = self._handler.getUserByEmail(args.email)
3029
    except UserContextException, ucex:
3030
      result.ucex = ucex
3031
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3032
    result.write(oprot)
3033
    oprot.writeMessageEnd()
3034
    oprot.trans.flush()
3035
 
3032 mandeep.dh 3036
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3037
    args = getUserByMobileNumber_args()
3038
    args.read(iprot)
3039
    iprot.readMessageEnd()
3040
    result = getUserByMobileNumber_result()
3041
    try:
3042
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3043
    except UserContextException, ucex:
3044
      result.ucex = ucex
3045
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3046
    result.write(oprot)
3047
    oprot.writeMessageEnd()
3048
    oprot.trans.flush()
3049
 
559 chandransh 3050
  def process_createUser(self, seqid, iprot, oprot):
3051
    args = createUser_args()
94 ashish 3052
    args.read(iprot)
3053
    iprot.readMessageEnd()
559 chandransh 3054
    result = createUser_result()
94 ashish 3055
    try:
559 chandransh 3056
      result.success = self._handler.createUser(args.user)
3057
    except UserContextException, ucex:
3058
      result.ucex = ucex
3059
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3060
    result.write(oprot)
3061
    oprot.writeMessageEnd()
3062
    oprot.trans.flush()
3063
 
559 chandransh 3064
  def process_updateUser(self, seqid, iprot, oprot):
3065
    args = updateUser_args()
94 ashish 3066
    args.read(iprot)
3067
    iprot.readMessageEnd()
559 chandransh 3068
    result = updateUser_result()
94 ashish 3069
    try:
559 chandransh 3070
      result.success = self._handler.updateUser(args.user)
3071
    except UserContextException, ucex:
3072
      result.ucex = ucex
3073
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3074
    result.write(oprot)
3075
    oprot.writeMessageEnd()
3076
    oprot.trans.flush()
3077
 
559 chandransh 3078
  def process_deleteUser(self, seqid, iprot, oprot):
3079
    args = deleteUser_args()
94 ashish 3080
    args.read(iprot)
3081
    iprot.readMessageEnd()
559 chandransh 3082
    result = deleteUser_result()
94 ashish 3083
    try:
559 chandransh 3084
      result.success = self._handler.deleteUser(args.userId)
3085
    except UserContextException, ucex:
3086
      result.ucex = ucex
3087
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3088
    result.write(oprot)
3089
    oprot.writeMessageEnd()
3090
    oprot.trans.flush()
3091
 
559 chandransh 3092
  def process_getUserState(self, seqid, iprot, oprot):
3093
    args = getUserState_args()
94 ashish 3094
    args.read(iprot)
3095
    iprot.readMessageEnd()
559 chandransh 3096
    result = getUserState_result()
94 ashish 3097
    try:
559 chandransh 3098
      result.success = self._handler.getUserState(args.userId)
3099
    except UserContextException, ucex:
3100
      result.ucex = ucex
3101
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3102
    result.write(oprot)
3103
    oprot.writeMessageEnd()
3104
    oprot.trans.flush()
3105
 
122 ashish 3106
  def process_authenticateUser(self, seqid, iprot, oprot):
3107
    args = authenticateUser_args()
3108
    args.read(iprot)
3109
    iprot.readMessageEnd()
3110
    result = authenticateUser_result()
3111
    try:
559 chandransh 3112
      result.success = self._handler.authenticateUser(args.email, args.password)
3113
    except AuthenticationException, auex:
3114
      result.auex = auex
122 ashish 3115
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3116
    result.write(oprot)
3117
    oprot.writeMessageEnd()
3118
    oprot.trans.flush()
3119
 
94 ashish 3120
  def process_userExists(self, seqid, iprot, oprot):
3121
    args = userExists_args()
3122
    args.read(iprot)
3123
    iprot.readMessageEnd()
3124
    result = userExists_result()
3125
    try:
3126
      result.success = self._handler.userExists(args.email)
3127
    except UserContextException, ucx:
3128
      result.ucx = ucx
3129
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3130
    result.write(oprot)
3131
    oprot.writeMessageEnd()
3132
    oprot.trans.flush()
3133
 
3134
  def process_addAddressForUser(self, seqid, iprot, oprot):
3135
    args = addAddressForUser_args()
3136
    args.read(iprot)
3137
    iprot.readMessageEnd()
3138
    result = addAddressForUser_result()
3139
    try:
567 rajveer 3140
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3141
    except UserContextException, ucx:
3142
      result.ucx = ucx
3143
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3144
    result.write(oprot)
3145
    oprot.writeMessageEnd()
3146
    oprot.trans.flush()
3147
 
3148
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3149
    args = removeAddressForUser_args()
3150
    args.read(iprot)
3151
    iprot.readMessageEnd()
3152
    result = removeAddressForUser_result()
3153
    try:
3154
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3155
    except UserContextException, ucx:
3156
      result.ucx = ucx
3157
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3158
    result.write(oprot)
3159
    oprot.writeMessageEnd()
3160
    oprot.trans.flush()
3161
 
3162
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3163
    args = setUserAsLoggedIn_args()
3164
    args.read(iprot)
3165
    iprot.readMessageEnd()
3166
    result = setUserAsLoggedIn_result()
3167
    try:
3168
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3169
    except UserContextException, ucx:
3170
      result.ucx = ucx
3171
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3172
    result.write(oprot)
3173
    oprot.writeMessageEnd()
3174
    oprot.trans.flush()
3175
 
3176
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3177
    args = setUserAsLoggedOut_args()
3178
    args.read(iprot)
3179
    iprot.readMessageEnd()
3180
    result = setUserAsLoggedOut_result()
3181
    try:
3182
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3183
    except UserContextException, ucx:
3184
      result.ucx = ucx
3185
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3186
    result.write(oprot)
3187
    oprot.writeMessageEnd()
3188
    oprot.trans.flush()
3189
 
504 rajveer 3190
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3191
    args = setDefaultAddress_args()
3192
    args.read(iprot)
3193
    iprot.readMessageEnd()
3194
    result = setDefaultAddress_result()
3195
    try:
3196
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3197
    except UserContextException, ucx:
3198
      result.ucx = ucx
3199
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3200
    result.write(oprot)
3201
    oprot.writeMessageEnd()
3202
    oprot.trans.flush()
3203
 
94 ashish 3204
  def process_updatePassword(self, seqid, iprot, oprot):
3205
    args = updatePassword_args()
3206
    args.read(iprot)
3207
    iprot.readMessageEnd()
3208
    result = updatePassword_result()
3209
    try:
594 rajveer 3210
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3211
    except UserContextException, ucx:
3212
      result.ucx = ucx
3213
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3214
    result.write(oprot)
3215
    oprot.writeMessageEnd()
3216
    oprot.trans.flush()
3217
 
581 rajveer 3218
  def process_forgotPassword(self, seqid, iprot, oprot):
3219
    args = forgotPassword_args()
3220
    args.read(iprot)
3221
    iprot.readMessageEnd()
3222
    result = forgotPassword_result()
3223
    try:
884 rajveer 3224
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3225
    except UserContextException, ucx:
3226
      result.ucx = ucx
3227
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3228
    result.write(oprot)
3229
    oprot.writeMessageEnd()
3230
    oprot.trans.flush()
3231
 
594 rajveer 3232
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3233
    args = getAllAddressesForUser_args()
3234
    args.read(iprot)
3235
    iprot.readMessageEnd()
3236
    result = getAllAddressesForUser_result()
3237
    try:
3238
      result.success = self._handler.getAllAddressesForUser(args.userId)
3239
    except UserContextException, ucx:
3240
      result.ucx = ucx
3241
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3242
    result.write(oprot)
3243
    oprot.writeMessageEnd()
3244
    oprot.trans.flush()
3245
 
1894 vikas 3246
  def process_getAddressById(self, seqid, iprot, oprot):
3247
    args = getAddressById_args()
3248
    args.read(iprot)
3249
    iprot.readMessageEnd()
3250
    result = getAddressById_result()
3251
    try:
3252
      result.success = self._handler.getAddressById(args.addressId)
3253
    except UserContextException, ucx:
3254
      result.ucx = ucx
3255
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
594 rajveer 3260
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3261
    args = getDefaultAddressId_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = getDefaultAddressId_result()
3265
    try:
3266
      result.success = self._handler.getDefaultAddressId(args.userId)
3267
    except UserContextException, ucx:
3268
      result.ucx = ucx
3269
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3270
    result.write(oprot)
3271
    oprot.writeMessageEnd()
3272
    oprot.trans.flush()
3273
 
785 rajveer 3274
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3275
    args = getDefaultPincode_args()
3276
    args.read(iprot)
3277
    iprot.readMessageEnd()
3278
    result = getDefaultPincode_result()
3279
    try:
3280
      result.success = self._handler.getDefaultPincode(args.userId)
3281
    except UserContextException, ucx:
3282
      result.ucx = ucx
3283
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3284
    result.write(oprot)
3285
    oprot.writeMessageEnd()
3286
    oprot.trans.flush()
3287
 
1274 varun.gupt 3288
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3289
    args = saveUserCommunication_args()
3290
    args.read(iprot)
3291
    iprot.readMessageEnd()
3292
    result = saveUserCommunication_result()
3293
    try:
3294
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3295
    except UserCommunicationException, ucx:
3296
      result.ucx = ucx
3297
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3298
    result.write(oprot)
3299
    oprot.writeMessageEnd()
3300
    oprot.trans.flush()
3301
 
1590 varun.gupt 3302
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3303
    args = getUserCommunicationById_args()
3304
    args.read(iprot)
3305
    iprot.readMessageEnd()
3306
    result = getUserCommunicationById_result()
3307
    try:
3308
      result.success = self._handler.getUserCommunicationById(args.id)
3309
    except UserCommunicationException, ucx:
3310
      result.ucx = ucx
3311
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3312
    result.write(oprot)
3313
    oprot.writeMessageEnd()
3314
    oprot.trans.flush()
3315
 
3316
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3317
    args = getUserCommunicationByUser_args()
3318
    args.read(iprot)
3319
    iprot.readMessageEnd()
3320
    result = getUserCommunicationByUser_result()
3321
    try:
3322
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3323
    except UserCommunicationException, ucx:
3324
      result.ucx = ucx
3325
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3326
    result.write(oprot)
3327
    oprot.writeMessageEnd()
3328
    oprot.trans.flush()
3329
 
3330
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3331
    args = getAllUserCommunications_args()
3332
    args.read(iprot)
3333
    iprot.readMessageEnd()
3334
    result = getAllUserCommunications_result()
3335
    try:
3336
      result.success = self._handler.getAllUserCommunications()
3337
    except UserCommunicationException, ucx:
3338
      result.ucx = ucx
3339
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3340
    result.write(oprot)
3341
    oprot.writeMessageEnd()
3342
    oprot.trans.flush()
3343
 
1845 vikas 3344
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3345
    args = createMasterAffiliate_args()
3346
    args.read(iprot)
3347
    iprot.readMessageEnd()
3348
    result = createMasterAffiliate_result()
3349
    try:
1859 vikas 3350
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3351
    except UserAffiliateException, utx:
1845 vikas 3352
      result.utx = utx
3353
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3354
    result.write(oprot)
3355
    oprot.writeMessageEnd()
3356
    oprot.trans.flush()
3357
 
1899 vikas 3358
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3359
    args = getAllMasterAffiliates_args()
3360
    args.read(iprot)
3361
    iprot.readMessageEnd()
3362
    result = getAllMasterAffiliates_result()
3363
    try:
3364
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3365
    except UserAffiliateException, utx:
1899 vikas 3366
      result.utx = utx
3367
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3368
    result.write(oprot)
3369
    oprot.writeMessageEnd()
3370
    oprot.trans.flush()
3371
 
1845 vikas 3372
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3373
    args = getMasterAffiliateById_args()
3374
    args.read(iprot)
3375
    iprot.readMessageEnd()
3376
    result = getMasterAffiliateById_result()
3377
    try:
3378
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3379
    except UserAffiliateException, utx:
1845 vikas 3380
      result.utx = utx
3381
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3382
    result.write(oprot)
3383
    oprot.writeMessageEnd()
3384
    oprot.trans.flush()
3385
 
3386
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3387
    args = getMasterAffiliateByName_args()
3388
    args.read(iprot)
3389
    iprot.readMessageEnd()
3390
    result = getMasterAffiliateByName_result()
3391
    try:
3392
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3393
    except UserAffiliateException, utx:
1845 vikas 3394
      result.utx = utx
3395
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3396
    result.write(oprot)
3397
    oprot.writeMessageEnd()
3398
    oprot.trans.flush()
3399
 
3400
  def process_createAffiliate(self, seqid, iprot, oprot):
3401
    args = createAffiliate_args()
3402
    args.read(iprot)
3403
    iprot.readMessageEnd()
3404
    result = createAffiliate_result()
3405
    try:
1859 vikas 3406
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3407
    except UserAffiliateException, utx:
1845 vikas 3408
      result.utx = utx
3409
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
3414
  def process_getAffiliateById(self, seqid, iprot, oprot):
3415
    args = getAffiliateById_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = getAffiliateById_result()
3419
    try:
3420
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3421
    except UserAffiliateException, utx:
1845 vikas 3422
      result.utx = utx
3423
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3424
    result.write(oprot)
3425
    oprot.writeMessageEnd()
3426
    oprot.trans.flush()
3427
 
3428
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3429
    args = getAffiliateByName_args()
3430
    args.read(iprot)
3431
    iprot.readMessageEnd()
3432
    result = getAffiliateByName_result()
3433
    try:
3434
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3435
    except UserAffiliateException, utx:
1845 vikas 3436
      result.utx = utx
3437
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
3442
  def process_getTrackerById(self, seqid, iprot, oprot):
3443
    args = getTrackerById_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = getTrackerById_result()
3447
    try:
1996 vikas 3448
      result.success = self._handler.getTrackerById(args.id)
3449
    except UserAffiliateException, utx:
1845 vikas 3450
      result.utx = utx
3451
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3452
    result.write(oprot)
3453
    oprot.writeMessageEnd()
3454
    oprot.trans.flush()
3455
 
1996 vikas 3456
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3457
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3458
    args.read(iprot)
3459
    iprot.readMessageEnd()
1996 vikas 3460
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3461
    try:
1996 vikas 3462
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3463
    except UserAffiliateException, utx:
1845 vikas 3464
      result.utx = utx
1996 vikas 3465
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3466
    result.write(oprot)
3467
    oprot.writeMessageEnd()
3468
    oprot.trans.flush()
3469
 
3470
  def process_addTrackLog(self, seqid, iprot, oprot):
3471
    args = addTrackLog_args()
3472
    args.read(iprot)
3473
    iprot.readMessageEnd()
3474
    result = addTrackLog_result()
3475
    try:
1996 vikas 3476
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3477
    except UserAffiliateException, utx:
1845 vikas 3478
      result.utx = utx
3479
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
3484
  def process_getTrackLogById(self, seqid, iprot, oprot):
3485
    args = getTrackLogById_args()
3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
3488
    result = getTrackLogById_result()
3489
    try:
3490
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3491
    except UserAffiliateException, utx:
1845 vikas 3492
      result.utx = utx
3493
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3494
    result.write(oprot)
3495
    oprot.writeMessageEnd()
3496
    oprot.trans.flush()
3497
 
1996 vikas 3498
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3499
    args = getTrackLogsByAffiliate_args()
1845 vikas 3500
    args.read(iprot)
3501
    iprot.readMessageEnd()
1996 vikas 3502
    result = getTrackLogsByAffiliate_result()
1845 vikas 3503
    try:
3293 vikas 3504
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3505
    except UserAffiliateException, utx:
1845 vikas 3506
      result.utx = utx
1996 vikas 3507
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3508
    result.write(oprot)
3509
    oprot.writeMessageEnd()
3510
    oprot.trans.flush()
3511
 
3512
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3513
    args = getTrackLogsByUser_args()
3514
    args.read(iprot)
3515
    iprot.readMessageEnd()
3516
    result = getTrackLogsByUser_result()
3517
    try:
3518
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3519
    except UserAffiliateException, utx:
1845 vikas 3520
      result.utx = utx
3521
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3522
    result.write(oprot)
3523
    oprot.writeMessageEnd()
3524
    oprot.trans.flush()
3525
 
3526
  def process_getTrackLogs(self, seqid, iprot, oprot):
3527
    args = getTrackLogs_args()
3528
    args.read(iprot)
3529
    iprot.readMessageEnd()
3530
    result = getTrackLogs_result()
3531
    try:
1996 vikas 3532
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3533
    except UserAffiliateException, utx:
1845 vikas 3534
      result.utx = utx
3535
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3536
    result.write(oprot)
3537
    oprot.writeMessageEnd()
3538
    oprot.trans.flush()
3539
 
559 chandransh 3540
  def process_createCart(self, seqid, iprot, oprot):
3541
    args = createCart_args()
94 ashish 3542
    args.read(iprot)
3543
    iprot.readMessageEnd()
559 chandransh 3544
    result = createCart_result()
94 ashish 3545
    try:
559 chandransh 3546
      result.success = self._handler.createCart(args.userId)
3547
    except ShoppingCartException, scx:
3548
      result.scx = scx
3549
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3550
    result.write(oprot)
3551
    oprot.writeMessageEnd()
3552
    oprot.trans.flush()
3553
 
559 chandransh 3554
  def process_getCurrentCart(self, seqid, iprot, oprot):
3555
    args = getCurrentCart_args()
94 ashish 3556
    args.read(iprot)
3557
    iprot.readMessageEnd()
559 chandransh 3558
    result = getCurrentCart_result()
94 ashish 3559
    try:
559 chandransh 3560
      result.success = self._handler.getCurrentCart(args.userId)
3561
    except ShoppingCartException, scx:
3562
      result.scx = scx
3563
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3564
    result.write(oprot)
3565
    oprot.writeMessageEnd()
3566
    oprot.trans.flush()
3567
 
559 chandransh 3568
  def process_getCart(self, seqid, iprot, oprot):
3569
    args = getCart_args()
94 ashish 3570
    args.read(iprot)
3571
    iprot.readMessageEnd()
559 chandransh 3572
    result = getCart_result()
94 ashish 3573
    try:
559 chandransh 3574
      result.success = self._handler.getCart(args.cartId)
3575
    except ShoppingCartException, scx:
3576
      result.scx = scx
3577
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3578
    result.write(oprot)
3579
    oprot.writeMessageEnd()
3580
    oprot.trans.flush()
3581
 
559 chandransh 3582
  def process_getCartsForUser(self, seqid, iprot, oprot):
3583
    args = getCartsForUser_args()
94 ashish 3584
    args.read(iprot)
3585
    iprot.readMessageEnd()
559 chandransh 3586
    result = getCartsForUser_result()
94 ashish 3587
    try:
559 chandransh 3588
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3589
    except ShoppingCartException, scx:
3590
      result.scx = scx
3591
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3592
    result.write(oprot)
3593
    oprot.writeMessageEnd()
3594
    oprot.trans.flush()
3595
 
559 chandransh 3596
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3597
    args = getCartsByStatus_args()
94 ashish 3598
    args.read(iprot)
3599
    iprot.readMessageEnd()
559 chandransh 3600
    result = getCartsByStatus_result()
94 ashish 3601
    try:
559 chandransh 3602
      result.success = self._handler.getCartsByStatus(args.status)
3603
    except ShoppingCartException, scx:
3604
      result.scx = scx
3605
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3606
    result.write(oprot)
3607
    oprot.writeMessageEnd()
3608
    oprot.trans.flush()
3609
 
559 chandransh 3610
  def process_getCartsByTime(self, seqid, iprot, oprot):
3611
    args = getCartsByTime_args()
94 ashish 3612
    args.read(iprot)
3613
    iprot.readMessageEnd()
559 chandransh 3614
    result = getCartsByTime_result()
94 ashish 3615
    try:
559 chandransh 3616
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3617
    except ShoppingCartException, scx:
3618
      result.scx = scx
3619
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3620
    result.write(oprot)
3621
    oprot.writeMessageEnd()
3622
    oprot.trans.flush()
3623
 
559 chandransh 3624
  def process_changeCartStatus(self, seqid, iprot, oprot):
3625
    args = changeCartStatus_args()
130 ashish 3626
    args.read(iprot)
3627
    iprot.readMessageEnd()
559 chandransh 3628
    result = changeCartStatus_result()
130 ashish 3629
    try:
559 chandransh 3630
      self._handler.changeCartStatus(args.cartId, args.status)
3631
    except ShoppingCartException, scx:
3632
      result.scx = scx
3633
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
94 ashish 3637
 
559 chandransh 3638
  def process_addItemToCart(self, seqid, iprot, oprot):
3639
    args = addItemToCart_args()
130 ashish 3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
559 chandransh 3642
    result = addItemToCart_result()
130 ashish 3643
    try:
2035 rajveer 3644
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity)
559 chandransh 3645
    except ShoppingCartException, scx:
3646
      result.scx = scx
3647
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3648
    result.write(oprot)
3649
    oprot.writeMessageEnd()
3650
    oprot.trans.flush()
3651
 
559 chandransh 3652
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3653
    args = deleteItemFromCart_args()
3654
    args.read(iprot)
3655
    iprot.readMessageEnd()
3656
    result = deleteItemFromCart_result()
3657
    try:
3658
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3659
    except ShoppingCartException, scx:
3660
      result.scx = scx
3661
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3662
    result.write(oprot)
3663
    oprot.writeMessageEnd()
3664
    oprot.trans.flush()
130 ashish 3665
 
559 chandransh 3666
  def process_changeQuantity(self, seqid, iprot, oprot):
3667
    args = changeQuantity_args()
3668
    args.read(iprot)
3669
    iprot.readMessageEnd()
3670
    result = changeQuantity_result()
3671
    try:
3672
      self._handler.changeQuantity(args.cartId, args.itemId, args.quantity)
3673
    except ShoppingCartException, scx:
3674
      result.scx = scx
3675
    oprot.writeMessageBegin("changeQuantity", TMessageType.REPLY, seqid)
3676
    result.write(oprot)
3677
    oprot.writeMessageEnd()
3678
    oprot.trans.flush()
3679
 
3680
  def process_changeItemStatus(self, seqid, iprot, oprot):
3681
    args = changeItemStatus_args()
3682
    args.read(iprot)
3683
    iprot.readMessageEnd()
3684
    result = changeItemStatus_result()
3685
    try:
3686
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3687
    except ShoppingCartException, scx:
3688
      result.scx = scx
3689
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3690
    result.write(oprot)
3691
    oprot.writeMessageEnd()
3692
    oprot.trans.flush()
3693
 
3694
  def process_addAddressToCart(self, seqid, iprot, oprot):
3695
    args = addAddressToCart_args()
3696
    args.read(iprot)
3697
    iprot.readMessageEnd()
3698
    result = addAddressToCart_result()
575 chandransh 3699
    try:
3700
      self._handler.addAddressToCart(args.cartId, args.addressId)
3701
    except ShoppingCartException, scx:
3702
      result.scx = scx
559 chandransh 3703
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
3707
 
1976 varun.gupt 3708
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3709
    args = applyCouponToCart_args()
3710
    args.read(iprot)
3711
    iprot.readMessageEnd()
3712
    result = applyCouponToCart_result()
3713
    try:
3714
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3715
    except ShoppingCartException, scx:
3716
      result.scx = scx
3717
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
3721
 
3722
  def process_removeCoupon(self, seqid, iprot, oprot):
3723
    args = removeCoupon_args()
3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
3726
    result = removeCoupon_result()
3727
    try:
3728
      self._handler.removeCoupon(args.cartId)
3729
    except ShoppingCartException, scx:
3730
      result.scx = scx
3731
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3732
    result.write(oprot)
3733
    oprot.writeMessageEnd()
3734
    oprot.trans.flush()
3735
 
690 chandransh 3736
  def process_createOrders(self, seqid, iprot, oprot):
3737
    args = createOrders_args()
559 chandransh 3738
    args.read(iprot)
3739
    iprot.readMessageEnd()
690 chandransh 3740
    result = createOrders_result()
559 chandransh 3741
    try:
2815 vikas 3742
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime)
559 chandransh 3743
    except ShoppingCartException, scx:
3744
      result.scx = scx
690 chandransh 3745
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3746
    result.write(oprot)
3747
    oprot.writeMessageEnd()
3748
    oprot.trans.flush()
3749
 
3750
  def process_validateCart(self, seqid, iprot, oprot):
3751
    args = validateCart_args()
3752
    args.read(iprot)
3753
    iprot.readMessageEnd()
3754
    result = validateCart_result()
575 chandransh 3755
    try:
3756
      result.success = self._handler.validateCart(args.cartId)
3757
    except ShoppingCartException, scex:
3758
      result.scex = scex
559 chandransh 3759
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
3763
 
690 chandransh 3764
  def process_mergeCart(self, seqid, iprot, oprot):
3765
    args = mergeCart_args()
575 chandransh 3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
690 chandransh 3768
    result = mergeCart_result()
3769
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3770
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3771
    result.write(oprot)
3772
    oprot.writeMessageEnd()
3773
    oprot.trans.flush()
3774
 
3775
  def process_checkOut(self, seqid, iprot, oprot):
3776
    args = checkOut_args()
3777
    args.read(iprot)
3778
    iprot.readMessageEnd()
3779
    result = checkOut_result()
575 chandransh 3780
    try:
690 chandransh 3781
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3782
    except ShoppingCartException, scex:
3783
      result.scex = scex
690 chandransh 3784
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3785
    result.write(oprot)
3786
    oprot.writeMessageEnd()
3787
    oprot.trans.flush()
3788
 
690 chandransh 3789
  def process_resetCart(self, seqid, iprot, oprot):
3790
    args = resetCart_args()
559 chandransh 3791
    args.read(iprot)
3792
    iprot.readMessageEnd()
690 chandransh 3793
    result = resetCart_result()
3794
    try:
3795
      result.success = self._handler.resetCart(args.cartId, args.items)
3796
    except ShoppingCartException, scex:
3797
      result.scex = scex
3798
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3799
    result.write(oprot)
3800
    oprot.writeMessageEnd()
3801
    oprot.trans.flush()
3802
 
2981 rajveer 3803
  def process_getUserCount(self, seqid, iprot, oprot):
3804
    args = getUserCount_args()
559 chandransh 3805
    args.read(iprot)
3806
    iprot.readMessageEnd()
2981 rajveer 3807
    result = getUserCount_result()
3808
    result.success = self._handler.getUserCount(args.userType)
3809
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3810
    result.write(oprot)
3811
    oprot.writeMessageEnd()
3812
    oprot.trans.flush()
3813
 
2981 rajveer 3814
  def process_getAllUsers(self, seqid, iprot, oprot):
3815
    args = getAllUsers_args()
559 chandransh 3816
    args.read(iprot)
3817
    iprot.readMessageEnd()
2981 rajveer 3818
    result = getAllUsers_result()
3819
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3820
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3821
    result.write(oprot)
3822
    oprot.writeMessageEnd()
3823
    oprot.trans.flush()
3824
 
2981 rajveer 3825
  def process_putUserNote(self, seqid, iprot, oprot):
3826
    args = putUserNote_args()
559 chandransh 3827
    args.read(iprot)
3828
    iprot.readMessageEnd()
2981 rajveer 3829
    result = putUserNote_result()
3830
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3831
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3832
    result.write(oprot)
3833
    oprot.writeMessageEnd()
3834
    oprot.trans.flush()
3835
 
2981 rajveer 3836
  def process_getUserNotes(self, seqid, iprot, oprot):
3837
    args = getUserNotes_args()
559 chandransh 3838
    args.read(iprot)
3839
    iprot.readMessageEnd()
2981 rajveer 3840
    result = getUserNotes_result()
3841
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3842
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3843
    result.write(oprot)
3844
    oprot.writeMessageEnd()
3845
    oprot.trans.flush()
3846
 
2981 rajveer 3847
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3848
    args = getMyResearchItems_args()
559 chandransh 3849
    args.read(iprot)
3850
    iprot.readMessageEnd()
2981 rajveer 3851
    result = getMyResearchItems_result()
559 chandransh 3852
    try:
2981 rajveer 3853
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3854
    except WidgetException, scx:
3855
      result.scx = scx
2981 rajveer 3856
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3857
    result.write(oprot)
3858
    oprot.writeMessageEnd()
3859
    oprot.trans.flush()
3860
 
2981 rajveer 3861
  def process_updateMyResearch(self, seqid, iprot, oprot):
3862
    args = updateMyResearch_args()
772 rajveer 3863
    args.read(iprot)
3864
    iprot.readMessageEnd()
2981 rajveer 3865
    result = updateMyResearch_result()
3866
    try:
3867
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3868
    except WidgetException, scx:
3869
      result.scx = scx
3870
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3871
    result.write(oprot)
3872
    oprot.writeMessageEnd()
3873
    oprot.trans.flush()
559 chandransh 3874
 
2981 rajveer 3875
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3876
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3877
    args.read(iprot)
3878
    iprot.readMessageEnd()
2981 rajveer 3879
    result = deleteItemFromMyResearch_result()
3880
    try:
3881
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3882
    except WidgetException, scx:
3883
      result.scx = scx
3884
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3885
    result.write(oprot)
3886
    oprot.writeMessageEnd()
3887
    oprot.trans.flush()
772 rajveer 3888
 
2981 rajveer 3889
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3890
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3891
    args.read(iprot)
3892
    iprot.readMessageEnd()
2981 rajveer 3893
    result = getBrowseHistoryItems_result()
3894
    try:
3895
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3896
    except WidgetException, scx:
3897
      result.scx = scx
3898
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3899
    result.write(oprot)
3900
    oprot.writeMessageEnd()
3901
    oprot.trans.flush()
1596 ankur.sing 3902
 
2981 rajveer 3903
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3904
    args = updateBrowseHistory_args()
2642 varun.gupt 3905
    args.read(iprot)
3906
    iprot.readMessageEnd()
2981 rajveer 3907
    result = updateBrowseHistory_result()
3908
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3909
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3910
    result.write(oprot)
3911
    oprot.writeMessageEnd()
3912
    oprot.trans.flush()
1673 ankur.sing 3913
 
3385 varun.gupt 3914
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3915
    args = getCartsWithCouponCount_args()
3916
    args.read(iprot)
3917
    iprot.readMessageEnd()
3918
    result = getCartsWithCouponCount_result()
3919
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3920
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3921
    result.write(oprot)
3922
    oprot.writeMessageEnd()
3923
    oprot.trans.flush()
2642 varun.gupt 3924
 
3499 mandeep.dh 3925
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3926
    args = increaseTrustLevel_args()
3927
    args.read(iprot)
3928
    iprot.readMessageEnd()
3929
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3930
    return
3385 varun.gupt 3931
 
3499 mandeep.dh 3932
 
94 ashish 3933
# HELPER FUNCTIONS AND STRUCTURES
3934
 
559 chandransh 3935
class createAnonymousUser_args:
94 ashish 3936
  """
3937
  Attributes:
559 chandransh 3938
   - jsessionId
94 ashish 3939
  """
3940
 
3941
  thrift_spec = (
3942
    None, # 0
559 chandransh 3943
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3944
  )
3945
 
559 chandransh 3946
  def __init__(self, jsessionId=None,):
3947
    self.jsessionId = jsessionId
94 ashish 3948
 
3949
  def read(self, iprot):
3950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3952
      return
3953
    iprot.readStructBegin()
3954
    while True:
3955
      (fname, ftype, fid) = iprot.readFieldBegin()
3956
      if ftype == TType.STOP:
3957
        break
3958
      if fid == 1:
559 chandransh 3959
        if ftype == TType.STRING:
3960
          self.jsessionId = iprot.readString();
94 ashish 3961
        else:
3962
          iprot.skip(ftype)
3963
      else:
3964
        iprot.skip(ftype)
3965
      iprot.readFieldEnd()
3966
    iprot.readStructEnd()
3967
 
3968
  def write(self, oprot):
3969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3971
      return
559 chandransh 3972
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3973
    if self.jsessionId is not None:
559 chandransh 3974
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3975
      oprot.writeString(self.jsessionId)
94 ashish 3976
      oprot.writeFieldEnd()
3977
    oprot.writeFieldStop()
3978
    oprot.writeStructEnd()
3979
 
3431 rajveer 3980
  def validate(self):
3981
    return
3982
 
3983
 
94 ashish 3984
  def __repr__(self):
3985
    L = ['%s=%r' % (key, value)
3986
      for key, value in self.__dict__.iteritems()]
3987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3988
 
3989
  def __eq__(self, other):
3990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3991
 
3992
  def __ne__(self, other):
3993
    return not (self == other)
3994
 
559 chandransh 3995
class createAnonymousUser_result:
94 ashish 3996
  """
3997
  Attributes:
3998
   - success
559 chandransh 3999
   - ucex
94 ashish 4000
  """
4001
 
4002
  thrift_spec = (
559 chandransh 4003
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4004
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4005
  )
4006
 
559 chandransh 4007
  def __init__(self, success=None, ucex=None,):
94 ashish 4008
    self.success = success
559 chandransh 4009
    self.ucex = ucex
94 ashish 4010
 
4011
  def read(self, iprot):
4012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4014
      return
4015
    iprot.readStructBegin()
4016
    while True:
4017
      (fname, ftype, fid) = iprot.readFieldBegin()
4018
      if ftype == TType.STOP:
4019
        break
4020
      if fid == 0:
4021
        if ftype == TType.STRUCT:
559 chandransh 4022
          self.success = User()
94 ashish 4023
          self.success.read(iprot)
4024
        else:
4025
          iprot.skip(ftype)
4026
      elif fid == 1:
4027
        if ftype == TType.STRUCT:
559 chandransh 4028
          self.ucex = UserContextException()
4029
          self.ucex.read(iprot)
94 ashish 4030
        else:
4031
          iprot.skip(ftype)
4032
      else:
4033
        iprot.skip(ftype)
4034
      iprot.readFieldEnd()
4035
    iprot.readStructEnd()
4036
 
4037
  def write(self, oprot):
4038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4040
      return
559 chandransh 4041
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4042
    if self.success is not None:
94 ashish 4043
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4044
      self.success.write(oprot)
4045
      oprot.writeFieldEnd()
3431 rajveer 4046
    if self.ucex is not None:
559 chandransh 4047
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4048
      self.ucex.write(oprot)
94 ashish 4049
      oprot.writeFieldEnd()
4050
    oprot.writeFieldStop()
4051
    oprot.writeStructEnd()
4052
 
3431 rajveer 4053
  def validate(self):
4054
    return
4055
 
4056
 
94 ashish 4057
  def __repr__(self):
4058
    L = ['%s=%r' % (key, value)
4059
      for key, value in self.__dict__.iteritems()]
4060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4061
 
4062
  def __eq__(self, other):
4063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4064
 
4065
  def __ne__(self, other):
4066
    return not (self == other)
4067
 
559 chandransh 4068
class getUserById_args:
94 ashish 4069
  """
4070
  Attributes:
4071
   - userId
4072
  """
4073
 
4074
  thrift_spec = (
4075
    None, # 0
4076
    (1, TType.I64, 'userId', None, None, ), # 1
4077
  )
4078
 
559 chandransh 4079
  def __init__(self, userId=None,):
94 ashish 4080
    self.userId = userId
4081
 
4082
  def read(self, iprot):
4083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4085
      return
4086
    iprot.readStructBegin()
4087
    while True:
4088
      (fname, ftype, fid) = iprot.readFieldBegin()
4089
      if ftype == TType.STOP:
4090
        break
4091
      if fid == 1:
4092
        if ftype == TType.I64:
4093
          self.userId = iprot.readI64();
4094
        else:
4095
          iprot.skip(ftype)
4096
      else:
4097
        iprot.skip(ftype)
4098
      iprot.readFieldEnd()
4099
    iprot.readStructEnd()
4100
 
4101
  def write(self, oprot):
4102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4104
      return
559 chandransh 4105
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4106
    if self.userId is not None:
94 ashish 4107
      oprot.writeFieldBegin('userId', TType.I64, 1)
4108
      oprot.writeI64(self.userId)
4109
      oprot.writeFieldEnd()
4110
    oprot.writeFieldStop()
4111
    oprot.writeStructEnd()
4112
 
3431 rajveer 4113
  def validate(self):
4114
    return
4115
 
4116
 
94 ashish 4117
  def __repr__(self):
4118
    L = ['%s=%r' % (key, value)
4119
      for key, value in self.__dict__.iteritems()]
4120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4121
 
4122
  def __eq__(self, other):
4123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4124
 
4125
  def __ne__(self, other):
4126
    return not (self == other)
4127
 
559 chandransh 4128
class getUserById_result:
94 ashish 4129
  """
4130
  Attributes:
4131
   - success
559 chandransh 4132
   - ucex
94 ashish 4133
  """
4134
 
4135
  thrift_spec = (
559 chandransh 4136
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4137
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4138
  )
4139
 
559 chandransh 4140
  def __init__(self, success=None, ucex=None,):
94 ashish 4141
    self.success = success
559 chandransh 4142
    self.ucex = ucex
94 ashish 4143
 
4144
  def read(self, iprot):
4145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4147
      return
4148
    iprot.readStructBegin()
4149
    while True:
4150
      (fname, ftype, fid) = iprot.readFieldBegin()
4151
      if ftype == TType.STOP:
4152
        break
4153
      if fid == 0:
4154
        if ftype == TType.STRUCT:
559 chandransh 4155
          self.success = User()
94 ashish 4156
          self.success.read(iprot)
4157
        else:
4158
          iprot.skip(ftype)
4159
      elif fid == 1:
4160
        if ftype == TType.STRUCT:
559 chandransh 4161
          self.ucex = UserContextException()
4162
          self.ucex.read(iprot)
94 ashish 4163
        else:
4164
          iprot.skip(ftype)
4165
      else:
4166
        iprot.skip(ftype)
4167
      iprot.readFieldEnd()
4168
    iprot.readStructEnd()
4169
 
4170
  def write(self, oprot):
4171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4173
      return
559 chandransh 4174
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4175
    if self.success is not None:
94 ashish 4176
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4177
      self.success.write(oprot)
4178
      oprot.writeFieldEnd()
3431 rajveer 4179
    if self.ucex is not None:
559 chandransh 4180
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4181
      self.ucex.write(oprot)
94 ashish 4182
      oprot.writeFieldEnd()
4183
    oprot.writeFieldStop()
4184
    oprot.writeStructEnd()
4185
 
3431 rajveer 4186
  def validate(self):
4187
    return
4188
 
4189
 
94 ashish 4190
  def __repr__(self):
4191
    L = ['%s=%r' % (key, value)
4192
      for key, value in self.__dict__.iteritems()]
4193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4194
 
4195
  def __eq__(self, other):
4196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4197
 
4198
  def __ne__(self, other):
4199
    return not (self == other)
4200
 
1491 vikas 4201
class getUserByEmail_args:
4202
  """
4203
  Attributes:
4204
   - email
4205
  """
4206
 
4207
  thrift_spec = (
4208
    None, # 0
4209
    (1, TType.STRING, 'email', None, None, ), # 1
4210
  )
4211
 
4212
  def __init__(self, email=None,):
4213
    self.email = email
4214
 
4215
  def read(self, iprot):
4216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4218
      return
4219
    iprot.readStructBegin()
4220
    while True:
4221
      (fname, ftype, fid) = iprot.readFieldBegin()
4222
      if ftype == TType.STOP:
4223
        break
4224
      if fid == 1:
4225
        if ftype == TType.STRING:
4226
          self.email = iprot.readString();
4227
        else:
4228
          iprot.skip(ftype)
4229
      else:
4230
        iprot.skip(ftype)
4231
      iprot.readFieldEnd()
4232
    iprot.readStructEnd()
4233
 
4234
  def write(self, oprot):
4235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4237
      return
4238
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4239
    if self.email is not None:
1491 vikas 4240
      oprot.writeFieldBegin('email', TType.STRING, 1)
4241
      oprot.writeString(self.email)
4242
      oprot.writeFieldEnd()
4243
    oprot.writeFieldStop()
4244
    oprot.writeStructEnd()
4245
 
3431 rajveer 4246
  def validate(self):
4247
    return
4248
 
4249
 
1491 vikas 4250
  def __repr__(self):
4251
    L = ['%s=%r' % (key, value)
4252
      for key, value in self.__dict__.iteritems()]
4253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4254
 
4255
  def __eq__(self, other):
4256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4257
 
4258
  def __ne__(self, other):
4259
    return not (self == other)
4260
 
4261
class getUserByEmail_result:
4262
  """
4263
  Attributes:
4264
   - success
4265
   - ucex
4266
  """
4267
 
4268
  thrift_spec = (
4269
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4270
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4271
  )
4272
 
4273
  def __init__(self, success=None, ucex=None,):
4274
    self.success = success
4275
    self.ucex = ucex
4276
 
4277
  def read(self, iprot):
4278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4280
      return
4281
    iprot.readStructBegin()
4282
    while True:
4283
      (fname, ftype, fid) = iprot.readFieldBegin()
4284
      if ftype == TType.STOP:
4285
        break
4286
      if fid == 0:
4287
        if ftype == TType.STRUCT:
4288
          self.success = User()
4289
          self.success.read(iprot)
4290
        else:
4291
          iprot.skip(ftype)
4292
      elif fid == 1:
4293
        if ftype == TType.STRUCT:
4294
          self.ucex = UserContextException()
4295
          self.ucex.read(iprot)
4296
        else:
4297
          iprot.skip(ftype)
4298
      else:
4299
        iprot.skip(ftype)
4300
      iprot.readFieldEnd()
4301
    iprot.readStructEnd()
4302
 
4303
  def write(self, oprot):
4304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4306
      return
4307
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4308
    if self.success is not None:
1491 vikas 4309
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4310
      self.success.write(oprot)
4311
      oprot.writeFieldEnd()
3431 rajveer 4312
    if self.ucex is not None:
1491 vikas 4313
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4314
      self.ucex.write(oprot)
4315
      oprot.writeFieldEnd()
4316
    oprot.writeFieldStop()
4317
    oprot.writeStructEnd()
4318
 
3431 rajveer 4319
  def validate(self):
4320
    return
4321
 
4322
 
1491 vikas 4323
  def __repr__(self):
4324
    L = ['%s=%r' % (key, value)
4325
      for key, value in self.__dict__.iteritems()]
4326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4327
 
4328
  def __eq__(self, other):
4329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4330
 
4331
  def __ne__(self, other):
4332
    return not (self == other)
4333
 
3032 mandeep.dh 4334
class getUserByMobileNumber_args:
4335
  """
4336
  Attributes:
4337
   - mobileNumber
4338
  """
4339
 
4340
  thrift_spec = (
4341
    None, # 0
4342
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4343
  )
4344
 
4345
  def __init__(self, mobileNumber=None,):
4346
    self.mobileNumber = mobileNumber
4347
 
4348
  def read(self, iprot):
4349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4351
      return
4352
    iprot.readStructBegin()
4353
    while True:
4354
      (fname, ftype, fid) = iprot.readFieldBegin()
4355
      if ftype == TType.STOP:
4356
        break
4357
      if fid == 1:
4358
        if ftype == TType.I64:
4359
          self.mobileNumber = iprot.readI64();
4360
        else:
4361
          iprot.skip(ftype)
4362
      else:
4363
        iprot.skip(ftype)
4364
      iprot.readFieldEnd()
4365
    iprot.readStructEnd()
4366
 
4367
  def write(self, oprot):
4368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4370
      return
4371
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4372
    if self.mobileNumber is not None:
3032 mandeep.dh 4373
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4374
      oprot.writeI64(self.mobileNumber)
4375
      oprot.writeFieldEnd()
4376
    oprot.writeFieldStop()
4377
    oprot.writeStructEnd()
4378
 
3431 rajveer 4379
  def validate(self):
4380
    return
4381
 
4382
 
3032 mandeep.dh 4383
  def __repr__(self):
4384
    L = ['%s=%r' % (key, value)
4385
      for key, value in self.__dict__.iteritems()]
4386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4387
 
4388
  def __eq__(self, other):
4389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4390
 
4391
  def __ne__(self, other):
4392
    return not (self == other)
4393
 
4394
class getUserByMobileNumber_result:
4395
  """
4396
  Attributes:
4397
   - success
4398
   - ucex
4399
  """
4400
 
4401
  thrift_spec = (
4402
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4403
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4404
  )
4405
 
4406
  def __init__(self, success=None, ucex=None,):
4407
    self.success = success
4408
    self.ucex = ucex
4409
 
4410
  def read(self, iprot):
4411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4413
      return
4414
    iprot.readStructBegin()
4415
    while True:
4416
      (fname, ftype, fid) = iprot.readFieldBegin()
4417
      if ftype == TType.STOP:
4418
        break
4419
      if fid == 0:
4420
        if ftype == TType.STRUCT:
4421
          self.success = User()
4422
          self.success.read(iprot)
4423
        else:
4424
          iprot.skip(ftype)
4425
      elif fid == 1:
4426
        if ftype == TType.STRUCT:
4427
          self.ucex = UserContextException()
4428
          self.ucex.read(iprot)
4429
        else:
4430
          iprot.skip(ftype)
4431
      else:
4432
        iprot.skip(ftype)
4433
      iprot.readFieldEnd()
4434
    iprot.readStructEnd()
4435
 
4436
  def write(self, oprot):
4437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4439
      return
4440
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4441
    if self.success is not None:
3032 mandeep.dh 4442
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4443
      self.success.write(oprot)
4444
      oprot.writeFieldEnd()
3431 rajveer 4445
    if self.ucex is not None:
3032 mandeep.dh 4446
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4447
      self.ucex.write(oprot)
4448
      oprot.writeFieldEnd()
4449
    oprot.writeFieldStop()
4450
    oprot.writeStructEnd()
4451
 
3431 rajveer 4452
  def validate(self):
4453
    return
4454
 
4455
 
3032 mandeep.dh 4456
  def __repr__(self):
4457
    L = ['%s=%r' % (key, value)
4458
      for key, value in self.__dict__.iteritems()]
4459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4460
 
4461
  def __eq__(self, other):
4462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4463
 
4464
  def __ne__(self, other):
4465
    return not (self == other)
4466
 
559 chandransh 4467
class createUser_args:
94 ashish 4468
  """
4469
  Attributes:
559 chandransh 4470
   - user
94 ashish 4471
  """
4472
 
4473
  thrift_spec = (
4474
    None, # 0
559 chandransh 4475
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4476
  )
4477
 
559 chandransh 4478
  def __init__(self, user=None,):
4479
    self.user = user
94 ashish 4480
 
4481
  def read(self, iprot):
4482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4484
      return
4485
    iprot.readStructBegin()
4486
    while True:
4487
      (fname, ftype, fid) = iprot.readFieldBegin()
4488
      if ftype == TType.STOP:
4489
        break
4490
      if fid == 1:
559 chandransh 4491
        if ftype == TType.STRUCT:
4492
          self.user = User()
4493
          self.user.read(iprot)
94 ashish 4494
        else:
4495
          iprot.skip(ftype)
4496
      else:
4497
        iprot.skip(ftype)
4498
      iprot.readFieldEnd()
4499
    iprot.readStructEnd()
4500
 
4501
  def write(self, oprot):
4502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4504
      return
559 chandransh 4505
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4506
    if self.user is not None:
559 chandransh 4507
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4508
      self.user.write(oprot)
94 ashish 4509
      oprot.writeFieldEnd()
4510
    oprot.writeFieldStop()
4511
    oprot.writeStructEnd()
4512
 
3431 rajveer 4513
  def validate(self):
4514
    return
4515
 
4516
 
94 ashish 4517
  def __repr__(self):
4518
    L = ['%s=%r' % (key, value)
4519
      for key, value in self.__dict__.iteritems()]
4520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4521
 
4522
  def __eq__(self, other):
4523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4524
 
4525
  def __ne__(self, other):
4526
    return not (self == other)
4527
 
559 chandransh 4528
class createUser_result:
94 ashish 4529
  """
4530
  Attributes:
4531
   - success
559 chandransh 4532
   - ucex
94 ashish 4533
  """
4534
 
4535
  thrift_spec = (
559 chandransh 4536
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4537
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4538
  )
4539
 
559 chandransh 4540
  def __init__(self, success=None, ucex=None,):
94 ashish 4541
    self.success = success
559 chandransh 4542
    self.ucex = ucex
94 ashish 4543
 
4544
  def read(self, iprot):
4545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4547
      return
4548
    iprot.readStructBegin()
4549
    while True:
4550
      (fname, ftype, fid) = iprot.readFieldBegin()
4551
      if ftype == TType.STOP:
4552
        break
4553
      if fid == 0:
4554
        if ftype == TType.STRUCT:
559 chandransh 4555
          self.success = User()
94 ashish 4556
          self.success.read(iprot)
4557
        else:
4558
          iprot.skip(ftype)
4559
      elif fid == 1:
4560
        if ftype == TType.STRUCT:
559 chandransh 4561
          self.ucex = UserContextException()
4562
          self.ucex.read(iprot)
94 ashish 4563
        else:
4564
          iprot.skip(ftype)
4565
      else:
4566
        iprot.skip(ftype)
4567
      iprot.readFieldEnd()
4568
    iprot.readStructEnd()
4569
 
4570
  def write(self, oprot):
4571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4573
      return
559 chandransh 4574
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4575
    if self.success is not None:
94 ashish 4576
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4577
      self.success.write(oprot)
4578
      oprot.writeFieldEnd()
3431 rajveer 4579
    if self.ucex is not None:
559 chandransh 4580
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4581
      self.ucex.write(oprot)
94 ashish 4582
      oprot.writeFieldEnd()
4583
    oprot.writeFieldStop()
4584
    oprot.writeStructEnd()
4585
 
3431 rajveer 4586
  def validate(self):
4587
    return
4588
 
4589
 
94 ashish 4590
  def __repr__(self):
4591
    L = ['%s=%r' % (key, value)
4592
      for key, value in self.__dict__.iteritems()]
4593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4594
 
4595
  def __eq__(self, other):
4596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4597
 
4598
  def __ne__(self, other):
4599
    return not (self == other)
4600
 
559 chandransh 4601
class updateUser_args:
94 ashish 4602
  """
4603
  Attributes:
559 chandransh 4604
   - user
94 ashish 4605
  """
4606
 
4607
  thrift_spec = (
4608
    None, # 0
559 chandransh 4609
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4610
  )
4611
 
559 chandransh 4612
  def __init__(self, user=None,):
4613
    self.user = user
94 ashish 4614
 
4615
  def read(self, iprot):
4616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4618
      return
4619
    iprot.readStructBegin()
4620
    while True:
4621
      (fname, ftype, fid) = iprot.readFieldBegin()
4622
      if ftype == TType.STOP:
4623
        break
4624
      if fid == 1:
559 chandransh 4625
        if ftype == TType.STRUCT:
4626
          self.user = User()
4627
          self.user.read(iprot)
94 ashish 4628
        else:
4629
          iprot.skip(ftype)
4630
      else:
4631
        iprot.skip(ftype)
4632
      iprot.readFieldEnd()
4633
    iprot.readStructEnd()
4634
 
4635
  def write(self, oprot):
4636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4638
      return
559 chandransh 4639
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4640
    if self.user is not None:
559 chandransh 4641
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4642
      self.user.write(oprot)
94 ashish 4643
      oprot.writeFieldEnd()
4644
    oprot.writeFieldStop()
4645
    oprot.writeStructEnd()
4646
 
3431 rajveer 4647
  def validate(self):
4648
    return
4649
 
4650
 
94 ashish 4651
  def __repr__(self):
4652
    L = ['%s=%r' % (key, value)
4653
      for key, value in self.__dict__.iteritems()]
4654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4655
 
4656
  def __eq__(self, other):
4657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4658
 
4659
  def __ne__(self, other):
4660
    return not (self == other)
4661
 
559 chandransh 4662
class updateUser_result:
94 ashish 4663
  """
4664
  Attributes:
4665
   - success
559 chandransh 4666
   - ucex
94 ashish 4667
  """
4668
 
4669
  thrift_spec = (
559 chandransh 4670
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4671
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4672
  )
4673
 
559 chandransh 4674
  def __init__(self, success=None, ucex=None,):
94 ashish 4675
    self.success = success
559 chandransh 4676
    self.ucex = ucex
94 ashish 4677
 
4678
  def read(self, iprot):
4679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4681
      return
4682
    iprot.readStructBegin()
4683
    while True:
4684
      (fname, ftype, fid) = iprot.readFieldBegin()
4685
      if ftype == TType.STOP:
4686
        break
4687
      if fid == 0:
4688
        if ftype == TType.STRUCT:
559 chandransh 4689
          self.success = User()
94 ashish 4690
          self.success.read(iprot)
4691
        else:
4692
          iprot.skip(ftype)
4693
      elif fid == 1:
4694
        if ftype == TType.STRUCT:
559 chandransh 4695
          self.ucex = UserContextException()
4696
          self.ucex.read(iprot)
94 ashish 4697
        else:
4698
          iprot.skip(ftype)
4699
      else:
4700
        iprot.skip(ftype)
4701
      iprot.readFieldEnd()
4702
    iprot.readStructEnd()
4703
 
4704
  def write(self, oprot):
4705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4707
      return
559 chandransh 4708
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4709
    if self.success is not None:
94 ashish 4710
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4711
      self.success.write(oprot)
4712
      oprot.writeFieldEnd()
3431 rajveer 4713
    if self.ucex is not None:
559 chandransh 4714
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4715
      self.ucex.write(oprot)
94 ashish 4716
      oprot.writeFieldEnd()
4717
    oprot.writeFieldStop()
4718
    oprot.writeStructEnd()
4719
 
3431 rajveer 4720
  def validate(self):
4721
    return
4722
 
4723
 
94 ashish 4724
  def __repr__(self):
4725
    L = ['%s=%r' % (key, value)
4726
      for key, value in self.__dict__.iteritems()]
4727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4728
 
4729
  def __eq__(self, other):
4730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4731
 
4732
  def __ne__(self, other):
4733
    return not (self == other)
4734
 
559 chandransh 4735
class deleteUser_args:
94 ashish 4736
  """
4737
  Attributes:
4738
   - userId
4739
  """
4740
 
4741
  thrift_spec = (
4742
    None, # 0
4743
    (1, TType.I64, 'userId', None, None, ), # 1
4744
  )
4745
 
559 chandransh 4746
  def __init__(self, userId=None,):
94 ashish 4747
    self.userId = userId
4748
 
4749
  def read(self, iprot):
4750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4752
      return
4753
    iprot.readStructBegin()
4754
    while True:
4755
      (fname, ftype, fid) = iprot.readFieldBegin()
4756
      if ftype == TType.STOP:
4757
        break
4758
      if fid == 1:
4759
        if ftype == TType.I64:
4760
          self.userId = iprot.readI64();
4761
        else:
4762
          iprot.skip(ftype)
4763
      else:
4764
        iprot.skip(ftype)
4765
      iprot.readFieldEnd()
4766
    iprot.readStructEnd()
4767
 
4768
  def write(self, oprot):
4769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4771
      return
559 chandransh 4772
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4773
    if self.userId is not None:
94 ashish 4774
      oprot.writeFieldBegin('userId', TType.I64, 1)
4775
      oprot.writeI64(self.userId)
4776
      oprot.writeFieldEnd()
4777
    oprot.writeFieldStop()
4778
    oprot.writeStructEnd()
4779
 
3431 rajveer 4780
  def validate(self):
4781
    return
4782
 
4783
 
94 ashish 4784
  def __repr__(self):
4785
    L = ['%s=%r' % (key, value)
4786
      for key, value in self.__dict__.iteritems()]
4787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4788
 
4789
  def __eq__(self, other):
4790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4791
 
4792
  def __ne__(self, other):
4793
    return not (self == other)
4794
 
559 chandransh 4795
class deleteUser_result:
94 ashish 4796
  """
4797
  Attributes:
4798
   - success
559 chandransh 4799
   - ucex
94 ashish 4800
  """
4801
 
4802
  thrift_spec = (
559 chandransh 4803
    (0, TType.BOOL, 'success', None, None, ), # 0
4804
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4805
  )
4806
 
559 chandransh 4807
  def __init__(self, success=None, ucex=None,):
94 ashish 4808
    self.success = success
559 chandransh 4809
    self.ucex = ucex
94 ashish 4810
 
4811
  def read(self, iprot):
4812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4814
      return
4815
    iprot.readStructBegin()
4816
    while True:
4817
      (fname, ftype, fid) = iprot.readFieldBegin()
4818
      if ftype == TType.STOP:
4819
        break
4820
      if fid == 0:
559 chandransh 4821
        if ftype == TType.BOOL:
4822
          self.success = iprot.readBool();
94 ashish 4823
        else:
4824
          iprot.skip(ftype)
4825
      elif fid == 1:
4826
        if ftype == TType.STRUCT:
559 chandransh 4827
          self.ucex = UserContextException()
4828
          self.ucex.read(iprot)
94 ashish 4829
        else:
4830
          iprot.skip(ftype)
4831
      else:
4832
        iprot.skip(ftype)
4833
      iprot.readFieldEnd()
4834
    iprot.readStructEnd()
4835
 
4836
  def write(self, oprot):
4837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4839
      return
559 chandransh 4840
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4841
    if self.success is not None:
559 chandransh 4842
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4843
      oprot.writeBool(self.success)
94 ashish 4844
      oprot.writeFieldEnd()
3431 rajveer 4845
    if self.ucex is not None:
559 chandransh 4846
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4847
      self.ucex.write(oprot)
94 ashish 4848
      oprot.writeFieldEnd()
4849
    oprot.writeFieldStop()
4850
    oprot.writeStructEnd()
4851
 
3431 rajveer 4852
  def validate(self):
4853
    return
4854
 
4855
 
94 ashish 4856
  def __repr__(self):
4857
    L = ['%s=%r' % (key, value)
4858
      for key, value in self.__dict__.iteritems()]
4859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4860
 
4861
  def __eq__(self, other):
4862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4863
 
4864
  def __ne__(self, other):
4865
    return not (self == other)
4866
 
559 chandransh 4867
class getUserState_args:
94 ashish 4868
  """
4869
  Attributes:
4870
   - userId
4871
  """
4872
 
4873
  thrift_spec = (
4874
    None, # 0
4875
    (1, TType.I64, 'userId', None, None, ), # 1
4876
  )
4877
 
559 chandransh 4878
  def __init__(self, userId=None,):
94 ashish 4879
    self.userId = userId
4880
 
4881
  def read(self, iprot):
4882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4884
      return
4885
    iprot.readStructBegin()
4886
    while True:
4887
      (fname, ftype, fid) = iprot.readFieldBegin()
4888
      if ftype == TType.STOP:
4889
        break
4890
      if fid == 1:
4891
        if ftype == TType.I64:
4892
          self.userId = iprot.readI64();
4893
        else:
4894
          iprot.skip(ftype)
4895
      else:
4896
        iprot.skip(ftype)
4897
      iprot.readFieldEnd()
4898
    iprot.readStructEnd()
4899
 
4900
  def write(self, oprot):
4901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4903
      return
559 chandransh 4904
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 4905
    if self.userId is not None:
94 ashish 4906
      oprot.writeFieldBegin('userId', TType.I64, 1)
4907
      oprot.writeI64(self.userId)
4908
      oprot.writeFieldEnd()
4909
    oprot.writeFieldStop()
4910
    oprot.writeStructEnd()
4911
 
3431 rajveer 4912
  def validate(self):
4913
    return
4914
 
4915
 
94 ashish 4916
  def __repr__(self):
4917
    L = ['%s=%r' % (key, value)
4918
      for key, value in self.__dict__.iteritems()]
4919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4920
 
4921
  def __eq__(self, other):
4922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4923
 
4924
  def __ne__(self, other):
4925
    return not (self == other)
4926
 
559 chandransh 4927
class getUserState_result:
94 ashish 4928
  """
4929
  Attributes:
4930
   - success
559 chandransh 4931
   - ucex
94 ashish 4932
  """
4933
 
4934
  thrift_spec = (
559 chandransh 4935
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
4936
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4937
  )
4938
 
559 chandransh 4939
  def __init__(self, success=None, ucex=None,):
94 ashish 4940
    self.success = success
559 chandransh 4941
    self.ucex = ucex
94 ashish 4942
 
4943
  def read(self, iprot):
4944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4946
      return
4947
    iprot.readStructBegin()
4948
    while True:
4949
      (fname, ftype, fid) = iprot.readFieldBegin()
4950
      if ftype == TType.STOP:
4951
        break
4952
      if fid == 0:
4953
        if ftype == TType.STRUCT:
559 chandransh 4954
          self.success = UserState()
94 ashish 4955
          self.success.read(iprot)
4956
        else:
4957
          iprot.skip(ftype)
4958
      elif fid == 1:
4959
        if ftype == TType.STRUCT:
559 chandransh 4960
          self.ucex = UserContextException()
4961
          self.ucex.read(iprot)
94 ashish 4962
        else:
4963
          iprot.skip(ftype)
4964
      else:
4965
        iprot.skip(ftype)
4966
      iprot.readFieldEnd()
4967
    iprot.readStructEnd()
4968
 
4969
  def write(self, oprot):
4970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4972
      return
559 chandransh 4973
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 4974
    if self.success is not None:
94 ashish 4975
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4976
      self.success.write(oprot)
4977
      oprot.writeFieldEnd()
3431 rajveer 4978
    if self.ucex is not None:
559 chandransh 4979
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4980
      self.ucex.write(oprot)
94 ashish 4981
      oprot.writeFieldEnd()
4982
    oprot.writeFieldStop()
4983
    oprot.writeStructEnd()
4984
 
3431 rajveer 4985
  def validate(self):
4986
    return
4987
 
4988
 
94 ashish 4989
  def __repr__(self):
4990
    L = ['%s=%r' % (key, value)
4991
      for key, value in self.__dict__.iteritems()]
4992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4993
 
4994
  def __eq__(self, other):
4995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4996
 
4997
  def __ne__(self, other):
4998
    return not (self == other)
4999
 
559 chandransh 5000
class authenticateUser_args:
94 ashish 5001
  """
5002
  Attributes:
5003
   - email
5004
   - password
5005
  """
5006
 
5007
  thrift_spec = (
5008
    None, # 0
5009
    (1, TType.STRING, 'email', None, None, ), # 1
5010
    (2, TType.STRING, 'password', None, None, ), # 2
5011
  )
5012
 
5013
  def __init__(self, email=None, password=None,):
5014
    self.email = email
5015
    self.password = password
5016
 
5017
  def read(self, iprot):
5018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5020
      return
5021
    iprot.readStructBegin()
5022
    while True:
5023
      (fname, ftype, fid) = iprot.readFieldBegin()
5024
      if ftype == TType.STOP:
5025
        break
5026
      if fid == 1:
5027
        if ftype == TType.STRING:
5028
          self.email = iprot.readString();
5029
        else:
5030
          iprot.skip(ftype)
5031
      elif fid == 2:
5032
        if ftype == TType.STRING:
5033
          self.password = iprot.readString();
5034
        else:
5035
          iprot.skip(ftype)
5036
      else:
5037
        iprot.skip(ftype)
5038
      iprot.readFieldEnd()
5039
    iprot.readStructEnd()
5040
 
5041
  def write(self, oprot):
5042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5044
      return
559 chandransh 5045
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5046
    if self.email is not None:
94 ashish 5047
      oprot.writeFieldBegin('email', TType.STRING, 1)
5048
      oprot.writeString(self.email)
5049
      oprot.writeFieldEnd()
3431 rajveer 5050
    if self.password is not None:
94 ashish 5051
      oprot.writeFieldBegin('password', TType.STRING, 2)
5052
      oprot.writeString(self.password)
5053
      oprot.writeFieldEnd()
5054
    oprot.writeFieldStop()
5055
    oprot.writeStructEnd()
5056
 
3431 rajveer 5057
  def validate(self):
5058
    return
5059
 
5060
 
94 ashish 5061
  def __repr__(self):
5062
    L = ['%s=%r' % (key, value)
5063
      for key, value in self.__dict__.iteritems()]
5064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5065
 
5066
  def __eq__(self, other):
5067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5068
 
5069
  def __ne__(self, other):
5070
    return not (self == other)
5071
 
559 chandransh 5072
class authenticateUser_result:
94 ashish 5073
  """
5074
  Attributes:
5075
   - success
559 chandransh 5076
   - auex
94 ashish 5077
  """
5078
 
5079
  thrift_spec = (
559 chandransh 5080
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5081
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5082
  )
5083
 
559 chandransh 5084
  def __init__(self, success=None, auex=None,):
94 ashish 5085
    self.success = success
559 chandransh 5086
    self.auex = auex
94 ashish 5087
 
5088
  def read(self, iprot):
5089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5091
      return
5092
    iprot.readStructBegin()
5093
    while True:
5094
      (fname, ftype, fid) = iprot.readFieldBegin()
5095
      if ftype == TType.STOP:
5096
        break
5097
      if fid == 0:
5098
        if ftype == TType.STRUCT:
559 chandransh 5099
          self.success = User()
94 ashish 5100
          self.success.read(iprot)
5101
        else:
5102
          iprot.skip(ftype)
5103
      elif fid == 1:
5104
        if ftype == TType.STRUCT:
559 chandransh 5105
          self.auex = AuthenticationException()
5106
          self.auex.read(iprot)
94 ashish 5107
        else:
5108
          iprot.skip(ftype)
5109
      else:
5110
        iprot.skip(ftype)
5111
      iprot.readFieldEnd()
5112
    iprot.readStructEnd()
5113
 
5114
  def write(self, oprot):
5115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5117
      return
559 chandransh 5118
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5119
    if self.success is not None:
94 ashish 5120
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5121
      self.success.write(oprot)
5122
      oprot.writeFieldEnd()
3431 rajveer 5123
    if self.auex is not None:
559 chandransh 5124
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5125
      self.auex.write(oprot)
94 ashish 5126
      oprot.writeFieldEnd()
5127
    oprot.writeFieldStop()
5128
    oprot.writeStructEnd()
5129
 
3431 rajveer 5130
  def validate(self):
5131
    return
5132
 
5133
 
94 ashish 5134
  def __repr__(self):
5135
    L = ['%s=%r' % (key, value)
5136
      for key, value in self.__dict__.iteritems()]
5137
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5138
 
5139
  def __eq__(self, other):
5140
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5141
 
5142
  def __ne__(self, other):
5143
    return not (self == other)
5144
 
559 chandransh 5145
class userExists_args:
122 ashish 5146
  """
5147
  Attributes:
559 chandransh 5148
   - email
122 ashish 5149
  """
5150
 
5151
  thrift_spec = (
5152
    None, # 0
559 chandransh 5153
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5154
  )
5155
 
559 chandransh 5156
  def __init__(self, email=None,):
5157
    self.email = email
122 ashish 5158
 
5159
  def read(self, iprot):
5160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5162
      return
5163
    iprot.readStructBegin()
5164
    while True:
5165
      (fname, ftype, fid) = iprot.readFieldBegin()
5166
      if ftype == TType.STOP:
5167
        break
5168
      if fid == 1:
5169
        if ftype == TType.STRING:
559 chandransh 5170
          self.email = iprot.readString();
122 ashish 5171
        else:
5172
          iprot.skip(ftype)
559 chandransh 5173
      else:
5174
        iprot.skip(ftype)
5175
      iprot.readFieldEnd()
5176
    iprot.readStructEnd()
5177
 
5178
  def write(self, oprot):
5179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5181
      return
5182
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5183
    if self.email is not None:
559 chandransh 5184
      oprot.writeFieldBegin('email', TType.STRING, 1)
5185
      oprot.writeString(self.email)
5186
      oprot.writeFieldEnd()
5187
    oprot.writeFieldStop()
5188
    oprot.writeStructEnd()
5189
 
3431 rajveer 5190
  def validate(self):
5191
    return
5192
 
5193
 
559 chandransh 5194
  def __repr__(self):
5195
    L = ['%s=%r' % (key, value)
5196
      for key, value in self.__dict__.iteritems()]
5197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5198
 
5199
  def __eq__(self, other):
5200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5201
 
5202
  def __ne__(self, other):
5203
    return not (self == other)
5204
 
5205
class userExists_result:
5206
  """
5207
  Attributes:
5208
   - success
5209
   - ucx
5210
  """
5211
 
5212
  thrift_spec = (
5213
    (0, TType.BOOL, 'success', None, None, ), # 0
5214
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5215
  )
5216
 
5217
  def __init__(self, success=None, ucx=None,):
5218
    self.success = success
5219
    self.ucx = ucx
5220
 
5221
  def read(self, iprot):
5222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5224
      return
5225
    iprot.readStructBegin()
5226
    while True:
5227
      (fname, ftype, fid) = iprot.readFieldBegin()
5228
      if ftype == TType.STOP:
5229
        break
5230
      if fid == 0:
5231
        if ftype == TType.BOOL:
5232
          self.success = iprot.readBool();
5233
        else:
5234
          iprot.skip(ftype)
5235
      elif fid == 1:
5236
        if ftype == TType.STRUCT:
5237
          self.ucx = UserContextException()
5238
          self.ucx.read(iprot)
5239
        else:
5240
          iprot.skip(ftype)
5241
      else:
5242
        iprot.skip(ftype)
5243
      iprot.readFieldEnd()
5244
    iprot.readStructEnd()
5245
 
5246
  def write(self, oprot):
5247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5249
      return
5250
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5251
    if self.success is not None:
559 chandransh 5252
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5253
      oprot.writeBool(self.success)
5254
      oprot.writeFieldEnd()
3431 rajveer 5255
    if self.ucx is not None:
559 chandransh 5256
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5257
      self.ucx.write(oprot)
5258
      oprot.writeFieldEnd()
5259
    oprot.writeFieldStop()
5260
    oprot.writeStructEnd()
5261
 
3431 rajveer 5262
  def validate(self):
5263
    return
5264
 
5265
 
559 chandransh 5266
  def __repr__(self):
5267
    L = ['%s=%r' % (key, value)
5268
      for key, value in self.__dict__.iteritems()]
5269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5270
 
5271
  def __eq__(self, other):
5272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5273
 
5274
  def __ne__(self, other):
5275
    return not (self == other)
5276
 
5277
class addAddressForUser_args:
5278
  """
5279
  Attributes:
5280
   - userId
5281
   - address
5282
   - setDefault
5283
  """
5284
 
5285
  thrift_spec = (
5286
    None, # 0
5287
    (1, TType.I64, 'userId', None, None, ), # 1
5288
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5289
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5290
  )
5291
 
567 rajveer 5292
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5293
    self.userId = userId
5294
    self.address = address
5295
    self.setDefault = setDefault
5296
 
5297
  def read(self, iprot):
5298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5300
      return
5301
    iprot.readStructBegin()
5302
    while True:
5303
      (fname, ftype, fid) = iprot.readFieldBegin()
5304
      if ftype == TType.STOP:
5305
        break
5306
      if fid == 1:
5307
        if ftype == TType.I64:
5308
          self.userId = iprot.readI64();
5309
        else:
5310
          iprot.skip(ftype)
122 ashish 5311
      elif fid == 2:
559 chandransh 5312
        if ftype == TType.STRUCT:
5313
          self.address = Address()
5314
          self.address.read(iprot)
122 ashish 5315
        else:
5316
          iprot.skip(ftype)
5317
      elif fid == 3:
5318
        if ftype == TType.BOOL:
559 chandransh 5319
          self.setDefault = iprot.readBool();
122 ashish 5320
        else:
5321
          iprot.skip(ftype)
5322
      else:
5323
        iprot.skip(ftype)
5324
      iprot.readFieldEnd()
5325
    iprot.readStructEnd()
5326
 
5327
  def write(self, oprot):
5328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5330
      return
559 chandransh 5331
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5332
    if self.userId is not None:
559 chandransh 5333
      oprot.writeFieldBegin('userId', TType.I64, 1)
5334
      oprot.writeI64(self.userId)
122 ashish 5335
      oprot.writeFieldEnd()
3431 rajveer 5336
    if self.address is not None:
559 chandransh 5337
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5338
      self.address.write(oprot)
122 ashish 5339
      oprot.writeFieldEnd()
3431 rajveer 5340
    if self.setDefault is not None:
567 rajveer 5341
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5342
      oprot.writeBool(self.setDefault)
5343
      oprot.writeFieldEnd()
122 ashish 5344
    oprot.writeFieldStop()
5345
    oprot.writeStructEnd()
5346
 
3431 rajveer 5347
  def validate(self):
5348
    return
5349
 
5350
 
122 ashish 5351
  def __repr__(self):
5352
    L = ['%s=%r' % (key, value)
5353
      for key, value in self.__dict__.iteritems()]
5354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5355
 
5356
  def __eq__(self, other):
5357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5358
 
5359
  def __ne__(self, other):
5360
    return not (self == other)
5361
 
559 chandransh 5362
class addAddressForUser_result:
122 ashish 5363
  """
5364
  Attributes:
5365
   - success
559 chandransh 5366
   - ucx
122 ashish 5367
  """
5368
 
5369
  thrift_spec = (
567 rajveer 5370
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5371
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5372
  )
5373
 
559 chandransh 5374
  def __init__(self, success=None, ucx=None,):
122 ashish 5375
    self.success = success
559 chandransh 5376
    self.ucx = ucx
122 ashish 5377
 
5378
  def read(self, iprot):
5379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5381
      return
5382
    iprot.readStructBegin()
5383
    while True:
5384
      (fname, ftype, fid) = iprot.readFieldBegin()
5385
      if ftype == TType.STOP:
5386
        break
5387
      if fid == 0:
567 rajveer 5388
        if ftype == TType.I64:
5389
          self.success = iprot.readI64();
122 ashish 5390
        else:
5391
          iprot.skip(ftype)
5392
      elif fid == 1:
5393
        if ftype == TType.STRUCT:
559 chandransh 5394
          self.ucx = UserContextException()
5395
          self.ucx.read(iprot)
122 ashish 5396
        else:
5397
          iprot.skip(ftype)
5398
      else:
5399
        iprot.skip(ftype)
5400
      iprot.readFieldEnd()
5401
    iprot.readStructEnd()
5402
 
5403
  def write(self, oprot):
5404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5406
      return
559 chandransh 5407
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5408
    if self.success is not None:
567 rajveer 5409
      oprot.writeFieldBegin('success', TType.I64, 0)
5410
      oprot.writeI64(self.success)
122 ashish 5411
      oprot.writeFieldEnd()
3431 rajveer 5412
    if self.ucx is not None:
559 chandransh 5413
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5414
      self.ucx.write(oprot)
122 ashish 5415
      oprot.writeFieldEnd()
5416
    oprot.writeFieldStop()
5417
    oprot.writeStructEnd()
5418
 
3431 rajveer 5419
  def validate(self):
5420
    return
5421
 
5422
 
122 ashish 5423
  def __repr__(self):
5424
    L = ['%s=%r' % (key, value)
5425
      for key, value in self.__dict__.iteritems()]
5426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5427
 
5428
  def __eq__(self, other):
5429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5430
 
5431
  def __ne__(self, other):
5432
    return not (self == other)
5433
 
559 chandransh 5434
class removeAddressForUser_args:
94 ashish 5435
  """
5436
  Attributes:
559 chandransh 5437
   - userid
5438
   - addressId
94 ashish 5439
  """
5440
 
5441
  thrift_spec = (
5442
    None, # 0
559 chandransh 5443
    (1, TType.I64, 'userid', None, None, ), # 1
5444
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5445
  )
5446
 
559 chandransh 5447
  def __init__(self, userid=None, addressId=None,):
5448
    self.userid = userid
5449
    self.addressId = addressId
94 ashish 5450
 
5451
  def read(self, iprot):
5452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5454
      return
5455
    iprot.readStructBegin()
5456
    while True:
5457
      (fname, ftype, fid) = iprot.readFieldBegin()
5458
      if ftype == TType.STOP:
5459
        break
5460
      if fid == 1:
559 chandransh 5461
        if ftype == TType.I64:
5462
          self.userid = iprot.readI64();
94 ashish 5463
        else:
5464
          iprot.skip(ftype)
559 chandransh 5465
      elif fid == 2:
5466
        if ftype == TType.I64:
5467
          self.addressId = iprot.readI64();
5468
        else:
5469
          iprot.skip(ftype)
94 ashish 5470
      else:
5471
        iprot.skip(ftype)
5472
      iprot.readFieldEnd()
5473
    iprot.readStructEnd()
5474
 
5475
  def write(self, oprot):
5476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5478
      return
559 chandransh 5479
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5480
    if self.userid is not None:
559 chandransh 5481
      oprot.writeFieldBegin('userid', TType.I64, 1)
5482
      oprot.writeI64(self.userid)
94 ashish 5483
      oprot.writeFieldEnd()
3431 rajveer 5484
    if self.addressId is not None:
559 chandransh 5485
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5486
      oprot.writeI64(self.addressId)
5487
      oprot.writeFieldEnd()
94 ashish 5488
    oprot.writeFieldStop()
5489
    oprot.writeStructEnd()
5490
 
3431 rajveer 5491
  def validate(self):
5492
    return
5493
 
5494
 
94 ashish 5495
  def __repr__(self):
5496
    L = ['%s=%r' % (key, value)
5497
      for key, value in self.__dict__.iteritems()]
5498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5499
 
5500
  def __eq__(self, other):
5501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5502
 
5503
  def __ne__(self, other):
5504
    return not (self == other)
5505
 
559 chandransh 5506
class removeAddressForUser_result:
94 ashish 5507
  """
5508
  Attributes:
5509
   - success
5510
   - ucx
5511
  """
5512
 
5513
  thrift_spec = (
5514
    (0, TType.BOOL, 'success', None, None, ), # 0
5515
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5516
  )
5517
 
5518
  def __init__(self, success=None, ucx=None,):
5519
    self.success = success
5520
    self.ucx = ucx
5521
 
5522
  def read(self, iprot):
5523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5525
      return
5526
    iprot.readStructBegin()
5527
    while True:
5528
      (fname, ftype, fid) = iprot.readFieldBegin()
5529
      if ftype == TType.STOP:
5530
        break
5531
      if fid == 0:
5532
        if ftype == TType.BOOL:
5533
          self.success = iprot.readBool();
5534
        else:
5535
          iprot.skip(ftype)
5536
      elif fid == 1:
5537
        if ftype == TType.STRUCT:
5538
          self.ucx = UserContextException()
5539
          self.ucx.read(iprot)
5540
        else:
5541
          iprot.skip(ftype)
5542
      else:
5543
        iprot.skip(ftype)
5544
      iprot.readFieldEnd()
5545
    iprot.readStructEnd()
5546
 
5547
  def write(self, oprot):
5548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5550
      return
559 chandransh 5551
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5552
    if self.success is not None:
94 ashish 5553
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5554
      oprot.writeBool(self.success)
5555
      oprot.writeFieldEnd()
3431 rajveer 5556
    if self.ucx is not None:
94 ashish 5557
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5558
      self.ucx.write(oprot)
5559
      oprot.writeFieldEnd()
5560
    oprot.writeFieldStop()
5561
    oprot.writeStructEnd()
5562
 
3431 rajveer 5563
  def validate(self):
5564
    return
5565
 
5566
 
94 ashish 5567
  def __repr__(self):
5568
    L = ['%s=%r' % (key, value)
5569
      for key, value in self.__dict__.iteritems()]
5570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5571
 
5572
  def __eq__(self, other):
5573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5574
 
5575
  def __ne__(self, other):
5576
    return not (self == other)
5577
 
559 chandransh 5578
class setUserAsLoggedIn_args:
94 ashish 5579
  """
5580
  Attributes:
559 chandransh 5581
   - userId
94 ashish 5582
   - timestamp
5583
  """
5584
 
5585
  thrift_spec = (
5586
    None, # 0
559 chandransh 5587
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5588
    (2, TType.I64, 'timestamp', None, None, ), # 2
5589
  )
5590
 
559 chandransh 5591
  def __init__(self, userId=None, timestamp=None,):
5592
    self.userId = userId
94 ashish 5593
    self.timestamp = timestamp
5594
 
5595
  def read(self, iprot):
5596
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5597
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5598
      return
5599
    iprot.readStructBegin()
5600
    while True:
5601
      (fname, ftype, fid) = iprot.readFieldBegin()
5602
      if ftype == TType.STOP:
5603
        break
5604
      if fid == 1:
559 chandransh 5605
        if ftype == TType.I64:
5606
          self.userId = iprot.readI64();
94 ashish 5607
        else:
5608
          iprot.skip(ftype)
5609
      elif fid == 2:
5610
        if ftype == TType.I64:
5611
          self.timestamp = iprot.readI64();
5612
        else:
5613
          iprot.skip(ftype)
5614
      else:
5615
        iprot.skip(ftype)
5616
      iprot.readFieldEnd()
5617
    iprot.readStructEnd()
5618
 
5619
  def write(self, oprot):
5620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5622
      return
559 chandransh 5623
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5624
    if self.userId is not None:
559 chandransh 5625
      oprot.writeFieldBegin('userId', TType.I64, 1)
5626
      oprot.writeI64(self.userId)
94 ashish 5627
      oprot.writeFieldEnd()
3431 rajveer 5628
    if self.timestamp is not None:
94 ashish 5629
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5630
      oprot.writeI64(self.timestamp)
5631
      oprot.writeFieldEnd()
5632
    oprot.writeFieldStop()
5633
    oprot.writeStructEnd()
5634
 
3431 rajveer 5635
  def validate(self):
5636
    return
5637
 
5638
 
94 ashish 5639
  def __repr__(self):
5640
    L = ['%s=%r' % (key, value)
5641
      for key, value in self.__dict__.iteritems()]
5642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5643
 
5644
  def __eq__(self, other):
5645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5646
 
5647
  def __ne__(self, other):
5648
    return not (self == other)
5649
 
559 chandransh 5650
class setUserAsLoggedIn_result:
94 ashish 5651
  """
5652
  Attributes:
5653
   - success
5654
   - ucx
5655
  """
5656
 
5657
  thrift_spec = (
5658
    (0, TType.BOOL, 'success', None, None, ), # 0
5659
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5660
  )
5661
 
5662
  def __init__(self, success=None, ucx=None,):
5663
    self.success = success
5664
    self.ucx = ucx
5665
 
5666
  def read(self, iprot):
5667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5669
      return
5670
    iprot.readStructBegin()
5671
    while True:
5672
      (fname, ftype, fid) = iprot.readFieldBegin()
5673
      if ftype == TType.STOP:
5674
        break
5675
      if fid == 0:
5676
        if ftype == TType.BOOL:
5677
          self.success = iprot.readBool();
5678
        else:
5679
          iprot.skip(ftype)
5680
      elif fid == 1:
5681
        if ftype == TType.STRUCT:
5682
          self.ucx = UserContextException()
5683
          self.ucx.read(iprot)
5684
        else:
5685
          iprot.skip(ftype)
5686
      else:
5687
        iprot.skip(ftype)
5688
      iprot.readFieldEnd()
5689
    iprot.readStructEnd()
5690
 
5691
  def write(self, oprot):
5692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5694
      return
559 chandransh 5695
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5696
    if self.success is not None:
94 ashish 5697
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5698
      oprot.writeBool(self.success)
5699
      oprot.writeFieldEnd()
3431 rajveer 5700
    if self.ucx is not None:
94 ashish 5701
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5702
      self.ucx.write(oprot)
5703
      oprot.writeFieldEnd()
5704
    oprot.writeFieldStop()
5705
    oprot.writeStructEnd()
5706
 
3431 rajveer 5707
  def validate(self):
5708
    return
5709
 
5710
 
94 ashish 5711
  def __repr__(self):
5712
    L = ['%s=%r' % (key, value)
5713
      for key, value in self.__dict__.iteritems()]
5714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5715
 
5716
  def __eq__(self, other):
5717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5718
 
5719
  def __ne__(self, other):
5720
    return not (self == other)
5721
 
559 chandransh 5722
class setUserAsLoggedOut_args:
94 ashish 5723
  """
5724
  Attributes:
5725
   - userid
5726
   - timestamp
5727
  """
5728
 
5729
  thrift_spec = (
5730
    None, # 0
559 chandransh 5731
    (1, TType.I64, 'userid', None, None, ), # 1
5732
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5733
  )
5734
 
559 chandransh 5735
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5736
    self.userid = userid
5737
    self.timestamp = timestamp
5738
 
5739
  def read(self, iprot):
5740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5742
      return
5743
    iprot.readStructBegin()
5744
    while True:
5745
      (fname, ftype, fid) = iprot.readFieldBegin()
5746
      if ftype == TType.STOP:
5747
        break
5748
      if fid == 1:
5749
        if ftype == TType.I64:
5750
          self.userid = iprot.readI64();
5751
        else:
5752
          iprot.skip(ftype)
559 chandransh 5753
      elif fid == 2:
94 ashish 5754
        if ftype == TType.I64:
5755
          self.timestamp = iprot.readI64();
5756
        else:
5757
          iprot.skip(ftype)
5758
      else:
5759
        iprot.skip(ftype)
5760
      iprot.readFieldEnd()
5761
    iprot.readStructEnd()
5762
 
5763
  def write(self, oprot):
5764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5766
      return
559 chandransh 5767
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5768
    if self.userid is not None:
559 chandransh 5769
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5770
      oprot.writeI64(self.userid)
5771
      oprot.writeFieldEnd()
3431 rajveer 5772
    if self.timestamp is not None:
559 chandransh 5773
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5774
      oprot.writeI64(self.timestamp)
5775
      oprot.writeFieldEnd()
5776
    oprot.writeFieldStop()
5777
    oprot.writeStructEnd()
5778
 
3431 rajveer 5779
  def validate(self):
5780
    return
5781
 
5782
 
94 ashish 5783
  def __repr__(self):
5784
    L = ['%s=%r' % (key, value)
5785
      for key, value in self.__dict__.iteritems()]
5786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5787
 
5788
  def __eq__(self, other):
5789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5790
 
5791
  def __ne__(self, other):
5792
    return not (self == other)
5793
 
559 chandransh 5794
class setUserAsLoggedOut_result:
94 ashish 5795
  """
5796
  Attributes:
5797
   - success
5798
   - ucx
5799
  """
5800
 
5801
  thrift_spec = (
5802
    (0, TType.BOOL, 'success', None, None, ), # 0
5803
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5804
  )
5805
 
5806
  def __init__(self, success=None, ucx=None,):
5807
    self.success = success
5808
    self.ucx = ucx
5809
 
5810
  def read(self, iprot):
5811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5813
      return
5814
    iprot.readStructBegin()
5815
    while True:
5816
      (fname, ftype, fid) = iprot.readFieldBegin()
5817
      if ftype == TType.STOP:
5818
        break
5819
      if fid == 0:
5820
        if ftype == TType.BOOL:
5821
          self.success = iprot.readBool();
5822
        else:
5823
          iprot.skip(ftype)
5824
      elif fid == 1:
5825
        if ftype == TType.STRUCT:
5826
          self.ucx = UserContextException()
5827
          self.ucx.read(iprot)
5828
        else:
5829
          iprot.skip(ftype)
5830
      else:
5831
        iprot.skip(ftype)
5832
      iprot.readFieldEnd()
5833
    iprot.readStructEnd()
5834
 
5835
  def write(self, oprot):
5836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5838
      return
559 chandransh 5839
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5840
    if self.success is not None:
94 ashish 5841
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5842
      oprot.writeBool(self.success)
5843
      oprot.writeFieldEnd()
3431 rajveer 5844
    if self.ucx is not None:
94 ashish 5845
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5846
      self.ucx.write(oprot)
5847
      oprot.writeFieldEnd()
5848
    oprot.writeFieldStop()
5849
    oprot.writeStructEnd()
5850
 
3431 rajveer 5851
  def validate(self):
5852
    return
5853
 
5854
 
94 ashish 5855
  def __repr__(self):
5856
    L = ['%s=%r' % (key, value)
5857
      for key, value in self.__dict__.iteritems()]
5858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5859
 
5860
  def __eq__(self, other):
5861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5862
 
5863
  def __ne__(self, other):
5864
    return not (self == other)
5865
 
559 chandransh 5866
class setDefaultAddress_args:
94 ashish 5867
  """
5868
  Attributes:
5869
   - userid
5870
   - addressId
5871
  """
5872
 
5873
  thrift_spec = (
5874
    None, # 0
5875
    (1, TType.I64, 'userid', None, None, ), # 1
5876
    (2, TType.I64, 'addressId', None, None, ), # 2
5877
  )
5878
 
5879
  def __init__(self, userid=None, addressId=None,):
5880
    self.userid = userid
5881
    self.addressId = addressId
5882
 
5883
  def read(self, iprot):
5884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5886
      return
5887
    iprot.readStructBegin()
5888
    while True:
5889
      (fname, ftype, fid) = iprot.readFieldBegin()
5890
      if ftype == TType.STOP:
5891
        break
5892
      if fid == 1:
5893
        if ftype == TType.I64:
5894
          self.userid = iprot.readI64();
5895
        else:
5896
          iprot.skip(ftype)
5897
      elif fid == 2:
5898
        if ftype == TType.I64:
5899
          self.addressId = iprot.readI64();
5900
        else:
5901
          iprot.skip(ftype)
5902
      else:
5903
        iprot.skip(ftype)
5904
      iprot.readFieldEnd()
5905
    iprot.readStructEnd()
5906
 
5907
  def write(self, oprot):
5908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5910
      return
559 chandransh 5911
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5912
    if self.userid is not None:
94 ashish 5913
      oprot.writeFieldBegin('userid', TType.I64, 1)
5914
      oprot.writeI64(self.userid)
5915
      oprot.writeFieldEnd()
3431 rajveer 5916
    if self.addressId is not None:
94 ashish 5917
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5918
      oprot.writeI64(self.addressId)
5919
      oprot.writeFieldEnd()
5920
    oprot.writeFieldStop()
5921
    oprot.writeStructEnd()
5922
 
3431 rajveer 5923
  def validate(self):
5924
    return
5925
 
5926
 
94 ashish 5927
  def __repr__(self):
5928
    L = ['%s=%r' % (key, value)
5929
      for key, value in self.__dict__.iteritems()]
5930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5931
 
5932
  def __eq__(self, other):
5933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5934
 
5935
  def __ne__(self, other):
5936
    return not (self == other)
5937
 
559 chandransh 5938
class setDefaultAddress_result:
94 ashish 5939
  """
5940
  Attributes:
5941
   - success
5942
   - ucx
5943
  """
5944
 
5945
  thrift_spec = (
5946
    (0, TType.BOOL, 'success', None, None, ), # 0
5947
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5948
  )
5949
 
5950
  def __init__(self, success=None, ucx=None,):
5951
    self.success = success
5952
    self.ucx = ucx
5953
 
5954
  def read(self, iprot):
5955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5957
      return
5958
    iprot.readStructBegin()
5959
    while True:
5960
      (fname, ftype, fid) = iprot.readFieldBegin()
5961
      if ftype == TType.STOP:
5962
        break
5963
      if fid == 0:
5964
        if ftype == TType.BOOL:
5965
          self.success = iprot.readBool();
5966
        else:
5967
          iprot.skip(ftype)
5968
      elif fid == 1:
5969
        if ftype == TType.STRUCT:
5970
          self.ucx = UserContextException()
5971
          self.ucx.read(iprot)
5972
        else:
5973
          iprot.skip(ftype)
5974
      else:
5975
        iprot.skip(ftype)
5976
      iprot.readFieldEnd()
5977
    iprot.readStructEnd()
5978
 
5979
  def write(self, oprot):
5980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5982
      return
559 chandransh 5983
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5984
    if self.success is not None:
94 ashish 5985
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5986
      oprot.writeBool(self.success)
5987
      oprot.writeFieldEnd()
3431 rajveer 5988
    if self.ucx is not None:
94 ashish 5989
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5990
      self.ucx.write(oprot)
5991
      oprot.writeFieldEnd()
5992
    oprot.writeFieldStop()
5993
    oprot.writeStructEnd()
5994
 
3431 rajveer 5995
  def validate(self):
5996
    return
5997
 
5998
 
94 ashish 5999
  def __repr__(self):
6000
    L = ['%s=%r' % (key, value)
6001
      for key, value in self.__dict__.iteritems()]
6002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6003
 
6004
  def __eq__(self, other):
6005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6006
 
6007
  def __ne__(self, other):
6008
    return not (self == other)
6009
 
559 chandransh 6010
class updatePassword_args:
94 ashish 6011
  """
6012
  Attributes:
559 chandransh 6013
   - userid
594 rajveer 6014
   - oldPassword
6015
   - newPassword
94 ashish 6016
  """
6017
 
6018
  thrift_spec = (
6019
    None, # 0
559 chandransh 6020
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6021
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6022
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6023
  )
6024
 
594 rajveer 6025
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6026
    self.userid = userid
594 rajveer 6027
    self.oldPassword = oldPassword
6028
    self.newPassword = newPassword
94 ashish 6029
 
6030
  def read(self, iprot):
6031
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6032
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6033
      return
6034
    iprot.readStructBegin()
6035
    while True:
6036
      (fname, ftype, fid) = iprot.readFieldBegin()
6037
      if ftype == TType.STOP:
6038
        break
6039
      if fid == 1:
6040
        if ftype == TType.I64:
559 chandransh 6041
          self.userid = iprot.readI64();
94 ashish 6042
        else:
6043
          iprot.skip(ftype)
6044
      elif fid == 2:
559 chandransh 6045
        if ftype == TType.STRING:
594 rajveer 6046
          self.oldPassword = iprot.readString();
94 ashish 6047
        else:
6048
          iprot.skip(ftype)
594 rajveer 6049
      elif fid == 3:
6050
        if ftype == TType.STRING:
6051
          self.newPassword = iprot.readString();
6052
        else:
6053
          iprot.skip(ftype)
94 ashish 6054
      else:
6055
        iprot.skip(ftype)
6056
      iprot.readFieldEnd()
6057
    iprot.readStructEnd()
6058
 
6059
  def write(self, oprot):
6060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6062
      return
559 chandransh 6063
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6064
    if self.userid is not None:
559 chandransh 6065
      oprot.writeFieldBegin('userid', TType.I64, 1)
6066
      oprot.writeI64(self.userid)
94 ashish 6067
      oprot.writeFieldEnd()
3431 rajveer 6068
    if self.oldPassword is not None:
594 rajveer 6069
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6070
      oprot.writeString(self.oldPassword)
94 ashish 6071
      oprot.writeFieldEnd()
3431 rajveer 6072
    if self.newPassword is not None:
594 rajveer 6073
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6074
      oprot.writeString(self.newPassword)
6075
      oprot.writeFieldEnd()
94 ashish 6076
    oprot.writeFieldStop()
6077
    oprot.writeStructEnd()
6078
 
3431 rajveer 6079
  def validate(self):
6080
    return
6081
 
6082
 
94 ashish 6083
  def __repr__(self):
6084
    L = ['%s=%r' % (key, value)
6085
      for key, value in self.__dict__.iteritems()]
6086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6087
 
6088
  def __eq__(self, other):
6089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6090
 
6091
  def __ne__(self, other):
6092
    return not (self == other)
6093
 
559 chandransh 6094
class updatePassword_result:
94 ashish 6095
  """
6096
  Attributes:
6097
   - success
6098
   - ucx
6099
  """
6100
 
6101
  thrift_spec = (
6102
    (0, TType.BOOL, 'success', None, None, ), # 0
6103
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6104
  )
6105
 
6106
  def __init__(self, success=None, ucx=None,):
6107
    self.success = success
6108
    self.ucx = ucx
6109
 
6110
  def read(self, iprot):
6111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6113
      return
6114
    iprot.readStructBegin()
6115
    while True:
6116
      (fname, ftype, fid) = iprot.readFieldBegin()
6117
      if ftype == TType.STOP:
6118
        break
6119
      if fid == 0:
6120
        if ftype == TType.BOOL:
6121
          self.success = iprot.readBool();
6122
        else:
6123
          iprot.skip(ftype)
6124
      elif fid == 1:
6125
        if ftype == TType.STRUCT:
6126
          self.ucx = UserContextException()
6127
          self.ucx.read(iprot)
6128
        else:
6129
          iprot.skip(ftype)
6130
      else:
6131
        iprot.skip(ftype)
6132
      iprot.readFieldEnd()
6133
    iprot.readStructEnd()
6134
 
6135
  def write(self, oprot):
6136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6138
      return
559 chandransh 6139
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6140
    if self.success is not None:
94 ashish 6141
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6142
      oprot.writeBool(self.success)
6143
      oprot.writeFieldEnd()
3431 rajveer 6144
    if self.ucx is not None:
94 ashish 6145
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6146
      self.ucx.write(oprot)
6147
      oprot.writeFieldEnd()
6148
    oprot.writeFieldStop()
6149
    oprot.writeStructEnd()
6150
 
3431 rajveer 6151
  def validate(self):
6152
    return
6153
 
6154
 
94 ashish 6155
  def __repr__(self):
6156
    L = ['%s=%r' % (key, value)
6157
      for key, value in self.__dict__.iteritems()]
6158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6159
 
6160
  def __eq__(self, other):
6161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6162
 
6163
  def __ne__(self, other):
6164
    return not (self == other)
6165
 
581 rajveer 6166
class forgotPassword_args:
6167
  """
6168
  Attributes:
6169
   - email
884 rajveer 6170
   - newPassword
581 rajveer 6171
  """
6172
 
6173
  thrift_spec = (
6174
    None, # 0
6175
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6176
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6177
  )
6178
 
884 rajveer 6179
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6180
    self.email = email
884 rajveer 6181
    self.newPassword = newPassword
581 rajveer 6182
 
6183
  def read(self, iprot):
6184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6186
      return
6187
    iprot.readStructBegin()
6188
    while True:
6189
      (fname, ftype, fid) = iprot.readFieldBegin()
6190
      if ftype == TType.STOP:
6191
        break
6192
      if fid == 1:
6193
        if ftype == TType.STRING:
6194
          self.email = iprot.readString();
6195
        else:
6196
          iprot.skip(ftype)
884 rajveer 6197
      elif fid == 2:
6198
        if ftype == TType.STRING:
6199
          self.newPassword = iprot.readString();
6200
        else:
6201
          iprot.skip(ftype)
581 rajveer 6202
      else:
6203
        iprot.skip(ftype)
6204
      iprot.readFieldEnd()
6205
    iprot.readStructEnd()
6206
 
6207
  def write(self, oprot):
6208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6210
      return
6211
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6212
    if self.email is not None:
581 rajveer 6213
      oprot.writeFieldBegin('email', TType.STRING, 1)
6214
      oprot.writeString(self.email)
6215
      oprot.writeFieldEnd()
3431 rajveer 6216
    if self.newPassword is not None:
884 rajveer 6217
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6218
      oprot.writeString(self.newPassword)
6219
      oprot.writeFieldEnd()
581 rajveer 6220
    oprot.writeFieldStop()
6221
    oprot.writeStructEnd()
6222
 
3431 rajveer 6223
  def validate(self):
6224
    return
6225
 
6226
 
581 rajveer 6227
  def __repr__(self):
6228
    L = ['%s=%r' % (key, value)
6229
      for key, value in self.__dict__.iteritems()]
6230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6231
 
6232
  def __eq__(self, other):
6233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6234
 
6235
  def __ne__(self, other):
6236
    return not (self == other)
6237
 
6238
class forgotPassword_result:
6239
  """
6240
  Attributes:
6241
   - success
6242
   - ucx
6243
  """
6244
 
6245
  thrift_spec = (
6246
    (0, TType.BOOL, 'success', None, None, ), # 0
6247
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6248
  )
6249
 
6250
  def __init__(self, success=None, ucx=None,):
6251
    self.success = success
6252
    self.ucx = ucx
6253
 
6254
  def read(self, iprot):
6255
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6256
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6257
      return
6258
    iprot.readStructBegin()
6259
    while True:
6260
      (fname, ftype, fid) = iprot.readFieldBegin()
6261
      if ftype == TType.STOP:
6262
        break
6263
      if fid == 0:
6264
        if ftype == TType.BOOL:
6265
          self.success = iprot.readBool();
6266
        else:
6267
          iprot.skip(ftype)
6268
      elif fid == 1:
6269
        if ftype == TType.STRUCT:
6270
          self.ucx = UserContextException()
6271
          self.ucx.read(iprot)
6272
        else:
6273
          iprot.skip(ftype)
6274
      else:
6275
        iprot.skip(ftype)
6276
      iprot.readFieldEnd()
6277
    iprot.readStructEnd()
6278
 
6279
  def write(self, oprot):
6280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6282
      return
6283
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6284
    if self.success is not None:
581 rajveer 6285
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6286
      oprot.writeBool(self.success)
6287
      oprot.writeFieldEnd()
3431 rajveer 6288
    if self.ucx is not None:
581 rajveer 6289
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6290
      self.ucx.write(oprot)
6291
      oprot.writeFieldEnd()
6292
    oprot.writeFieldStop()
6293
    oprot.writeStructEnd()
6294
 
3431 rajveer 6295
  def validate(self):
6296
    return
6297
 
6298
 
581 rajveer 6299
  def __repr__(self):
6300
    L = ['%s=%r' % (key, value)
6301
      for key, value in self.__dict__.iteritems()]
6302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6303
 
6304
  def __eq__(self, other):
6305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6306
 
6307
  def __ne__(self, other):
6308
    return not (self == other)
6309
 
594 rajveer 6310
class getAllAddressesForUser_args:
6311
  """
6312
  Attributes:
6313
   - userId
6314
  """
6315
 
6316
  thrift_spec = (
6317
    None, # 0
6318
    (1, TType.I64, 'userId', None, None, ), # 1
6319
  )
6320
 
6321
  def __init__(self, userId=None,):
6322
    self.userId = userId
6323
 
6324
  def read(self, iprot):
6325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6327
      return
6328
    iprot.readStructBegin()
6329
    while True:
6330
      (fname, ftype, fid) = iprot.readFieldBegin()
6331
      if ftype == TType.STOP:
6332
        break
6333
      if fid == 1:
6334
        if ftype == TType.I64:
6335
          self.userId = iprot.readI64();
6336
        else:
6337
          iprot.skip(ftype)
6338
      else:
6339
        iprot.skip(ftype)
6340
      iprot.readFieldEnd()
6341
    iprot.readStructEnd()
6342
 
6343
  def write(self, oprot):
6344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6346
      return
6347
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6348
    if self.userId is not None:
594 rajveer 6349
      oprot.writeFieldBegin('userId', TType.I64, 1)
6350
      oprot.writeI64(self.userId)
6351
      oprot.writeFieldEnd()
6352
    oprot.writeFieldStop()
6353
    oprot.writeStructEnd()
6354
 
3431 rajveer 6355
  def validate(self):
6356
    return
6357
 
6358
 
594 rajveer 6359
  def __repr__(self):
6360
    L = ['%s=%r' % (key, value)
6361
      for key, value in self.__dict__.iteritems()]
6362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6363
 
6364
  def __eq__(self, other):
6365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6366
 
6367
  def __ne__(self, other):
6368
    return not (self == other)
6369
 
6370
class getAllAddressesForUser_result:
6371
  """
6372
  Attributes:
6373
   - success
6374
   - ucx
6375
  """
6376
 
6377
  thrift_spec = (
6378
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6379
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6380
  )
6381
 
6382
  def __init__(self, success=None, ucx=None,):
6383
    self.success = success
6384
    self.ucx = ucx
6385
 
6386
  def read(self, iprot):
6387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6389
      return
6390
    iprot.readStructBegin()
6391
    while True:
6392
      (fname, ftype, fid) = iprot.readFieldBegin()
6393
      if ftype == TType.STOP:
6394
        break
6395
      if fid == 0:
6396
        if ftype == TType.LIST:
6397
          self.success = []
3385 varun.gupt 6398
          (_etype38, _size35) = iprot.readListBegin()
6399
          for _i39 in xrange(_size35):
6400
            _elem40 = Address()
6401
            _elem40.read(iprot)
6402
            self.success.append(_elem40)
594 rajveer 6403
          iprot.readListEnd()
6404
        else:
6405
          iprot.skip(ftype)
6406
      elif fid == 1:
6407
        if ftype == TType.STRUCT:
6408
          self.ucx = UserContextException()
6409
          self.ucx.read(iprot)
6410
        else:
6411
          iprot.skip(ftype)
6412
      else:
6413
        iprot.skip(ftype)
6414
      iprot.readFieldEnd()
6415
    iprot.readStructEnd()
6416
 
6417
  def write(self, oprot):
6418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6420
      return
6421
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6422
    if self.success is not None:
594 rajveer 6423
      oprot.writeFieldBegin('success', TType.LIST, 0)
6424
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 6425
      for iter41 in self.success:
6426
        iter41.write(oprot)
594 rajveer 6427
      oprot.writeListEnd()
6428
      oprot.writeFieldEnd()
3431 rajveer 6429
    if self.ucx is not None:
594 rajveer 6430
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6431
      self.ucx.write(oprot)
6432
      oprot.writeFieldEnd()
6433
    oprot.writeFieldStop()
6434
    oprot.writeStructEnd()
6435
 
3431 rajveer 6436
  def validate(self):
6437
    return
6438
 
6439
 
594 rajveer 6440
  def __repr__(self):
6441
    L = ['%s=%r' % (key, value)
6442
      for key, value in self.__dict__.iteritems()]
6443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6444
 
6445
  def __eq__(self, other):
6446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6447
 
6448
  def __ne__(self, other):
6449
    return not (self == other)
6450
 
1894 vikas 6451
class getAddressById_args:
6452
  """
6453
  Attributes:
6454
   - addressId
6455
  """
6456
 
6457
  thrift_spec = (
6458
    None, # 0
6459
    (1, TType.I64, 'addressId', None, None, ), # 1
6460
  )
6461
 
6462
  def __init__(self, addressId=None,):
6463
    self.addressId = addressId
6464
 
6465
  def read(self, iprot):
6466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6468
      return
6469
    iprot.readStructBegin()
6470
    while True:
6471
      (fname, ftype, fid) = iprot.readFieldBegin()
6472
      if ftype == TType.STOP:
6473
        break
6474
      if fid == 1:
6475
        if ftype == TType.I64:
6476
          self.addressId = iprot.readI64();
6477
        else:
6478
          iprot.skip(ftype)
6479
      else:
6480
        iprot.skip(ftype)
6481
      iprot.readFieldEnd()
6482
    iprot.readStructEnd()
6483
 
6484
  def write(self, oprot):
6485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6487
      return
6488
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6489
    if self.addressId is not None:
1894 vikas 6490
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6491
      oprot.writeI64(self.addressId)
6492
      oprot.writeFieldEnd()
6493
    oprot.writeFieldStop()
6494
    oprot.writeStructEnd()
6495
 
3431 rajveer 6496
  def validate(self):
6497
    return
6498
 
6499
 
1894 vikas 6500
  def __repr__(self):
6501
    L = ['%s=%r' % (key, value)
6502
      for key, value in self.__dict__.iteritems()]
6503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6504
 
6505
  def __eq__(self, other):
6506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6507
 
6508
  def __ne__(self, other):
6509
    return not (self == other)
6510
 
6511
class getAddressById_result:
6512
  """
6513
  Attributes:
6514
   - success
6515
   - ucx
6516
  """
6517
 
6518
  thrift_spec = (
6519
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6520
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6521
  )
6522
 
6523
  def __init__(self, success=None, ucx=None,):
6524
    self.success = success
6525
    self.ucx = ucx
6526
 
6527
  def read(self, iprot):
6528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6530
      return
6531
    iprot.readStructBegin()
6532
    while True:
6533
      (fname, ftype, fid) = iprot.readFieldBegin()
6534
      if ftype == TType.STOP:
6535
        break
6536
      if fid == 0:
6537
        if ftype == TType.STRUCT:
6538
          self.success = Address()
6539
          self.success.read(iprot)
6540
        else:
6541
          iprot.skip(ftype)
6542
      elif fid == 1:
6543
        if ftype == TType.STRUCT:
6544
          self.ucx = UserContextException()
6545
          self.ucx.read(iprot)
6546
        else:
6547
          iprot.skip(ftype)
6548
      else:
6549
        iprot.skip(ftype)
6550
      iprot.readFieldEnd()
6551
    iprot.readStructEnd()
6552
 
6553
  def write(self, oprot):
6554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6556
      return
6557
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6558
    if self.success is not None:
1894 vikas 6559
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6560
      self.success.write(oprot)
6561
      oprot.writeFieldEnd()
3431 rajveer 6562
    if self.ucx is not None:
1894 vikas 6563
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6564
      self.ucx.write(oprot)
6565
      oprot.writeFieldEnd()
6566
    oprot.writeFieldStop()
6567
    oprot.writeStructEnd()
6568
 
3431 rajveer 6569
  def validate(self):
6570
    return
6571
 
6572
 
1894 vikas 6573
  def __repr__(self):
6574
    L = ['%s=%r' % (key, value)
6575
      for key, value in self.__dict__.iteritems()]
6576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6577
 
6578
  def __eq__(self, other):
6579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6580
 
6581
  def __ne__(self, other):
6582
    return not (self == other)
6583
 
594 rajveer 6584
class getDefaultAddressId_args:
6585
  """
6586
  Attributes:
6587
   - userId
6588
  """
6589
 
6590
  thrift_spec = (
6591
    None, # 0
6592
    (1, TType.I64, 'userId', None, None, ), # 1
6593
  )
6594
 
6595
  def __init__(self, userId=None,):
6596
    self.userId = userId
6597
 
6598
  def read(self, iprot):
6599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6601
      return
6602
    iprot.readStructBegin()
6603
    while True:
6604
      (fname, ftype, fid) = iprot.readFieldBegin()
6605
      if ftype == TType.STOP:
6606
        break
6607
      if fid == 1:
6608
        if ftype == TType.I64:
6609
          self.userId = iprot.readI64();
6610
        else:
6611
          iprot.skip(ftype)
6612
      else:
6613
        iprot.skip(ftype)
6614
      iprot.readFieldEnd()
6615
    iprot.readStructEnd()
6616
 
6617
  def write(self, oprot):
6618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6620
      return
6621
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6622
    if self.userId is not None:
594 rajveer 6623
      oprot.writeFieldBegin('userId', TType.I64, 1)
6624
      oprot.writeI64(self.userId)
6625
      oprot.writeFieldEnd()
6626
    oprot.writeFieldStop()
6627
    oprot.writeStructEnd()
6628
 
3431 rajveer 6629
  def validate(self):
6630
    return
6631
 
6632
 
594 rajveer 6633
  def __repr__(self):
6634
    L = ['%s=%r' % (key, value)
6635
      for key, value in self.__dict__.iteritems()]
6636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6637
 
6638
  def __eq__(self, other):
6639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6640
 
6641
  def __ne__(self, other):
6642
    return not (self == other)
6643
 
6644
class getDefaultAddressId_result:
6645
  """
6646
  Attributes:
6647
   - success
6648
   - ucx
6649
  """
6650
 
6651
  thrift_spec = (
6652
    (0, TType.I64, 'success', None, None, ), # 0
6653
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6654
  )
6655
 
6656
  def __init__(self, success=None, ucx=None,):
6657
    self.success = success
6658
    self.ucx = ucx
6659
 
6660
  def read(self, iprot):
6661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6663
      return
6664
    iprot.readStructBegin()
6665
    while True:
6666
      (fname, ftype, fid) = iprot.readFieldBegin()
6667
      if ftype == TType.STOP:
6668
        break
6669
      if fid == 0:
6670
        if ftype == TType.I64:
6671
          self.success = iprot.readI64();
6672
        else:
6673
          iprot.skip(ftype)
6674
      elif fid == 1:
6675
        if ftype == TType.STRUCT:
6676
          self.ucx = UserContextException()
6677
          self.ucx.read(iprot)
6678
        else:
6679
          iprot.skip(ftype)
6680
      else:
6681
        iprot.skip(ftype)
6682
      iprot.readFieldEnd()
6683
    iprot.readStructEnd()
6684
 
6685
  def write(self, oprot):
6686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6688
      return
6689
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6690
    if self.success is not None:
594 rajveer 6691
      oprot.writeFieldBegin('success', TType.I64, 0)
6692
      oprot.writeI64(self.success)
6693
      oprot.writeFieldEnd()
3431 rajveer 6694
    if self.ucx is not None:
594 rajveer 6695
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6696
      self.ucx.write(oprot)
6697
      oprot.writeFieldEnd()
6698
    oprot.writeFieldStop()
6699
    oprot.writeStructEnd()
6700
 
3431 rajveer 6701
  def validate(self):
6702
    return
6703
 
6704
 
594 rajveer 6705
  def __repr__(self):
6706
    L = ['%s=%r' % (key, value)
6707
      for key, value in self.__dict__.iteritems()]
6708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6709
 
6710
  def __eq__(self, other):
6711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6712
 
6713
  def __ne__(self, other):
6714
    return not (self == other)
6715
 
785 rajveer 6716
class getDefaultPincode_args:
6717
  """
6718
  Attributes:
6719
   - userId
6720
  """
6721
 
6722
  thrift_spec = (
6723
    None, # 0
6724
    (1, TType.I64, 'userId', None, None, ), # 1
6725
  )
6726
 
6727
  def __init__(self, userId=None,):
6728
    self.userId = userId
6729
 
6730
  def read(self, iprot):
6731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6733
      return
6734
    iprot.readStructBegin()
6735
    while True:
6736
      (fname, ftype, fid) = iprot.readFieldBegin()
6737
      if ftype == TType.STOP:
6738
        break
6739
      if fid == 1:
6740
        if ftype == TType.I64:
6741
          self.userId = iprot.readI64();
6742
        else:
6743
          iprot.skip(ftype)
6744
      else:
6745
        iprot.skip(ftype)
6746
      iprot.readFieldEnd()
6747
    iprot.readStructEnd()
6748
 
6749
  def write(self, oprot):
6750
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6751
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6752
      return
6753
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6754
    if self.userId is not None:
785 rajveer 6755
      oprot.writeFieldBegin('userId', TType.I64, 1)
6756
      oprot.writeI64(self.userId)
6757
      oprot.writeFieldEnd()
6758
    oprot.writeFieldStop()
6759
    oprot.writeStructEnd()
6760
 
3431 rajveer 6761
  def validate(self):
6762
    return
6763
 
6764
 
785 rajveer 6765
  def __repr__(self):
6766
    L = ['%s=%r' % (key, value)
6767
      for key, value in self.__dict__.iteritems()]
6768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6769
 
6770
  def __eq__(self, other):
6771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6772
 
6773
  def __ne__(self, other):
6774
    return not (self == other)
6775
 
6776
class getDefaultPincode_result:
6777
  """
6778
  Attributes:
6779
   - success
6780
   - ucx
6781
  """
6782
 
6783
  thrift_spec = (
6784
    (0, TType.STRING, 'success', None, None, ), # 0
6785
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6786
  )
6787
 
6788
  def __init__(self, success=None, ucx=None,):
6789
    self.success = success
6790
    self.ucx = ucx
6791
 
6792
  def read(self, iprot):
6793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6794
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6795
      return
6796
    iprot.readStructBegin()
6797
    while True:
6798
      (fname, ftype, fid) = iprot.readFieldBegin()
6799
      if ftype == TType.STOP:
6800
        break
6801
      if fid == 0:
6802
        if ftype == TType.STRING:
6803
          self.success = iprot.readString();
6804
        else:
6805
          iprot.skip(ftype)
6806
      elif fid == 1:
6807
        if ftype == TType.STRUCT:
6808
          self.ucx = UserContextException()
6809
          self.ucx.read(iprot)
6810
        else:
6811
          iprot.skip(ftype)
6812
      else:
6813
        iprot.skip(ftype)
6814
      iprot.readFieldEnd()
6815
    iprot.readStructEnd()
6816
 
6817
  def write(self, oprot):
6818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6820
      return
6821
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6822
    if self.success is not None:
785 rajveer 6823
      oprot.writeFieldBegin('success', TType.STRING, 0)
6824
      oprot.writeString(self.success)
6825
      oprot.writeFieldEnd()
3431 rajveer 6826
    if self.ucx is not None:
785 rajveer 6827
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6828
      self.ucx.write(oprot)
6829
      oprot.writeFieldEnd()
6830
    oprot.writeFieldStop()
6831
    oprot.writeStructEnd()
6832
 
3431 rajveer 6833
  def validate(self):
6834
    return
6835
 
6836
 
785 rajveer 6837
  def __repr__(self):
6838
    L = ['%s=%r' % (key, value)
6839
      for key, value in self.__dict__.iteritems()]
6840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6841
 
6842
  def __eq__(self, other):
6843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6844
 
6845
  def __ne__(self, other):
6846
    return not (self == other)
6847
 
1274 varun.gupt 6848
class saveUserCommunication_args:
6849
  """
6850
  Attributes:
6851
   - userId
6852
   - replyTo
6853
   - communicationType
6854
   - orderId
6855
   - airwaybillNo
6856
   - productName
6857
   - subject
6858
   - message
6859
  """
6860
 
6861
  thrift_spec = (
6862
    None, # 0
6863
    (1, TType.I64, 'userId', None, None, ), # 1
6864
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6865
    (3, TType.I64, 'communicationType', None, None, ), # 3
6866
    (4, TType.I64, 'orderId', None, None, ), # 4
6867
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6868
    (6, TType.STRING, 'productName', None, None, ), # 6
6869
    (7, TType.STRING, 'subject', None, None, ), # 7
6870
    (8, TType.STRING, 'message', None, None, ), # 8
6871
  )
6872
 
6873
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6874
    self.userId = userId
6875
    self.replyTo = replyTo
6876
    self.communicationType = communicationType
6877
    self.orderId = orderId
6878
    self.airwaybillNo = airwaybillNo
6879
    self.productName = productName
6880
    self.subject = subject
6881
    self.message = message
6882
 
6883
  def read(self, iprot):
6884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6886
      return
6887
    iprot.readStructBegin()
6888
    while True:
6889
      (fname, ftype, fid) = iprot.readFieldBegin()
6890
      if ftype == TType.STOP:
6891
        break
6892
      if fid == 1:
6893
        if ftype == TType.I64:
6894
          self.userId = iprot.readI64();
6895
        else:
6896
          iprot.skip(ftype)
6897
      elif fid == 2:
6898
        if ftype == TType.STRING:
6899
          self.replyTo = iprot.readString();
6900
        else:
6901
          iprot.skip(ftype)
6902
      elif fid == 3:
6903
        if ftype == TType.I64:
6904
          self.communicationType = iprot.readI64();
6905
        else:
6906
          iprot.skip(ftype)
6907
      elif fid == 4:
6908
        if ftype == TType.I64:
6909
          self.orderId = iprot.readI64();
6910
        else:
6911
          iprot.skip(ftype)
6912
      elif fid == 5:
6913
        if ftype == TType.STRING:
6914
          self.airwaybillNo = iprot.readString();
6915
        else:
6916
          iprot.skip(ftype)
6917
      elif fid == 6:
6918
        if ftype == TType.STRING:
6919
          self.productName = iprot.readString();
6920
        else:
6921
          iprot.skip(ftype)
6922
      elif fid == 7:
6923
        if ftype == TType.STRING:
6924
          self.subject = iprot.readString();
6925
        else:
6926
          iprot.skip(ftype)
6927
      elif fid == 8:
6928
        if ftype == TType.STRING:
6929
          self.message = iprot.readString();
6930
        else:
6931
          iprot.skip(ftype)
6932
      else:
6933
        iprot.skip(ftype)
6934
      iprot.readFieldEnd()
6935
    iprot.readStructEnd()
6936
 
6937
  def write(self, oprot):
6938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6940
      return
6941
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6942
    if self.userId is not None:
1274 varun.gupt 6943
      oprot.writeFieldBegin('userId', TType.I64, 1)
6944
      oprot.writeI64(self.userId)
6945
      oprot.writeFieldEnd()
3431 rajveer 6946
    if self.replyTo is not None:
1274 varun.gupt 6947
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6948
      oprot.writeString(self.replyTo)
6949
      oprot.writeFieldEnd()
3431 rajveer 6950
    if self.communicationType is not None:
1274 varun.gupt 6951
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6952
      oprot.writeI64(self.communicationType)
6953
      oprot.writeFieldEnd()
3431 rajveer 6954
    if self.orderId is not None:
1274 varun.gupt 6955
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6956
      oprot.writeI64(self.orderId)
6957
      oprot.writeFieldEnd()
3431 rajveer 6958
    if self.airwaybillNo is not None:
1274 varun.gupt 6959
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6960
      oprot.writeString(self.airwaybillNo)
6961
      oprot.writeFieldEnd()
3431 rajveer 6962
    if self.productName is not None:
1274 varun.gupt 6963
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6964
      oprot.writeString(self.productName)
6965
      oprot.writeFieldEnd()
3431 rajveer 6966
    if self.subject is not None:
1274 varun.gupt 6967
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6968
      oprot.writeString(self.subject)
6969
      oprot.writeFieldEnd()
3431 rajveer 6970
    if self.message is not None:
1274 varun.gupt 6971
      oprot.writeFieldBegin('message', TType.STRING, 8)
6972
      oprot.writeString(self.message)
6973
      oprot.writeFieldEnd()
6974
    oprot.writeFieldStop()
6975
    oprot.writeStructEnd()
6976
 
3431 rajveer 6977
  def validate(self):
6978
    return
6979
 
6980
 
1274 varun.gupt 6981
  def __repr__(self):
6982
    L = ['%s=%r' % (key, value)
6983
      for key, value in self.__dict__.iteritems()]
6984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6985
 
6986
  def __eq__(self, other):
6987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6988
 
6989
  def __ne__(self, other):
6990
    return not (self == other)
6991
 
6992
class saveUserCommunication_result:
6993
  """
6994
  Attributes:
6995
   - success
6996
   - ucx
6997
  """
6998
 
6999
  thrift_spec = (
7000
    (0, TType.BOOL, 'success', None, None, ), # 0
7001
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7002
  )
7003
 
7004
  def __init__(self, success=None, ucx=None,):
7005
    self.success = success
7006
    self.ucx = ucx
7007
 
7008
  def read(self, iprot):
7009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7011
      return
7012
    iprot.readStructBegin()
7013
    while True:
7014
      (fname, ftype, fid) = iprot.readFieldBegin()
7015
      if ftype == TType.STOP:
7016
        break
7017
      if fid == 0:
7018
        if ftype == TType.BOOL:
7019
          self.success = iprot.readBool();
7020
        else:
7021
          iprot.skip(ftype)
7022
      elif fid == 1:
7023
        if ftype == TType.STRUCT:
7024
          self.ucx = UserCommunicationException()
7025
          self.ucx.read(iprot)
7026
        else:
7027
          iprot.skip(ftype)
7028
      else:
7029
        iprot.skip(ftype)
7030
      iprot.readFieldEnd()
7031
    iprot.readStructEnd()
7032
 
7033
  def write(self, oprot):
7034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7036
      return
7037
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7038
    if self.success is not None:
1274 varun.gupt 7039
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7040
      oprot.writeBool(self.success)
7041
      oprot.writeFieldEnd()
3431 rajveer 7042
    if self.ucx is not None:
1274 varun.gupt 7043
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7044
      self.ucx.write(oprot)
7045
      oprot.writeFieldEnd()
7046
    oprot.writeFieldStop()
7047
    oprot.writeStructEnd()
7048
 
3431 rajveer 7049
  def validate(self):
7050
    return
7051
 
7052
 
1274 varun.gupt 7053
  def __repr__(self):
7054
    L = ['%s=%r' % (key, value)
7055
      for key, value in self.__dict__.iteritems()]
7056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7057
 
7058
  def __eq__(self, other):
7059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7060
 
7061
  def __ne__(self, other):
7062
    return not (self == other)
7063
 
1590 varun.gupt 7064
class getUserCommunicationById_args:
7065
  """
7066
  Attributes:
7067
   - id
7068
  """
7069
 
7070
  thrift_spec = (
7071
    None, # 0
7072
    (1, TType.I64, 'id', None, None, ), # 1
7073
  )
7074
 
7075
  def __init__(self, id=None,):
7076
    self.id = id
7077
 
7078
  def read(self, iprot):
7079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7081
      return
7082
    iprot.readStructBegin()
7083
    while True:
7084
      (fname, ftype, fid) = iprot.readFieldBegin()
7085
      if ftype == TType.STOP:
7086
        break
7087
      if fid == 1:
7088
        if ftype == TType.I64:
7089
          self.id = iprot.readI64();
7090
        else:
7091
          iprot.skip(ftype)
7092
      else:
7093
        iprot.skip(ftype)
7094
      iprot.readFieldEnd()
7095
    iprot.readStructEnd()
7096
 
7097
  def write(self, oprot):
7098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7100
      return
7101
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7102
    if self.id is not None:
1590 varun.gupt 7103
      oprot.writeFieldBegin('id', TType.I64, 1)
7104
      oprot.writeI64(self.id)
7105
      oprot.writeFieldEnd()
7106
    oprot.writeFieldStop()
7107
    oprot.writeStructEnd()
7108
 
3431 rajveer 7109
  def validate(self):
7110
    return
7111
 
7112
 
1590 varun.gupt 7113
  def __repr__(self):
7114
    L = ['%s=%r' % (key, value)
7115
      for key, value in self.__dict__.iteritems()]
7116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7117
 
7118
  def __eq__(self, other):
7119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7120
 
7121
  def __ne__(self, other):
7122
    return not (self == other)
7123
 
7124
class getUserCommunicationById_result:
7125
  """
7126
  Attributes:
7127
   - success
7128
   - ucx
7129
  """
7130
 
7131
  thrift_spec = (
7132
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7133
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7134
  )
7135
 
7136
  def __init__(self, success=None, ucx=None,):
7137
    self.success = success
7138
    self.ucx = ucx
7139
 
7140
  def read(self, iprot):
7141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7143
      return
7144
    iprot.readStructBegin()
7145
    while True:
7146
      (fname, ftype, fid) = iprot.readFieldBegin()
7147
      if ftype == TType.STOP:
7148
        break
7149
      if fid == 0:
7150
        if ftype == TType.STRUCT:
7151
          self.success = UserCommunication()
7152
          self.success.read(iprot)
7153
        else:
7154
          iprot.skip(ftype)
7155
      elif fid == 1:
7156
        if ftype == TType.STRUCT:
7157
          self.ucx = UserCommunicationException()
7158
          self.ucx.read(iprot)
7159
        else:
7160
          iprot.skip(ftype)
7161
      else:
7162
        iprot.skip(ftype)
7163
      iprot.readFieldEnd()
7164
    iprot.readStructEnd()
7165
 
7166
  def write(self, oprot):
7167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7169
      return
7170
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7171
    if self.success is not None:
1590 varun.gupt 7172
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7173
      self.success.write(oprot)
7174
      oprot.writeFieldEnd()
3431 rajveer 7175
    if self.ucx is not None:
1590 varun.gupt 7176
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7177
      self.ucx.write(oprot)
7178
      oprot.writeFieldEnd()
7179
    oprot.writeFieldStop()
7180
    oprot.writeStructEnd()
7181
 
3431 rajveer 7182
  def validate(self):
7183
    return
7184
 
7185
 
1590 varun.gupt 7186
  def __repr__(self):
7187
    L = ['%s=%r' % (key, value)
7188
      for key, value in self.__dict__.iteritems()]
7189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7190
 
7191
  def __eq__(self, other):
7192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7193
 
7194
  def __ne__(self, other):
7195
    return not (self == other)
7196
 
7197
class getUserCommunicationByUser_args:
7198
  """
7199
  Attributes:
7200
   - userId
7201
  """
7202
 
7203
  thrift_spec = (
7204
    None, # 0
7205
    (1, TType.I64, 'userId', None, None, ), # 1
7206
  )
7207
 
7208
  def __init__(self, userId=None,):
7209
    self.userId = userId
7210
 
7211
  def read(self, iprot):
7212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7214
      return
7215
    iprot.readStructBegin()
7216
    while True:
7217
      (fname, ftype, fid) = iprot.readFieldBegin()
7218
      if ftype == TType.STOP:
7219
        break
7220
      if fid == 1:
7221
        if ftype == TType.I64:
7222
          self.userId = iprot.readI64();
7223
        else:
7224
          iprot.skip(ftype)
7225
      else:
7226
        iprot.skip(ftype)
7227
      iprot.readFieldEnd()
7228
    iprot.readStructEnd()
7229
 
7230
  def write(self, oprot):
7231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7233
      return
7234
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7235
    if self.userId is not None:
1590 varun.gupt 7236
      oprot.writeFieldBegin('userId', TType.I64, 1)
7237
      oprot.writeI64(self.userId)
7238
      oprot.writeFieldEnd()
7239
    oprot.writeFieldStop()
7240
    oprot.writeStructEnd()
7241
 
3431 rajveer 7242
  def validate(self):
7243
    return
7244
 
7245
 
1590 varun.gupt 7246
  def __repr__(self):
7247
    L = ['%s=%r' % (key, value)
7248
      for key, value in self.__dict__.iteritems()]
7249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7250
 
7251
  def __eq__(self, other):
7252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7253
 
7254
  def __ne__(self, other):
7255
    return not (self == other)
7256
 
7257
class getUserCommunicationByUser_result:
7258
  """
7259
  Attributes:
7260
   - success
7261
   - ucx
7262
  """
7263
 
7264
  thrift_spec = (
7265
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7266
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7267
  )
7268
 
7269
  def __init__(self, success=None, ucx=None,):
7270
    self.success = success
7271
    self.ucx = ucx
7272
 
7273
  def read(self, iprot):
7274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7276
      return
7277
    iprot.readStructBegin()
7278
    while True:
7279
      (fname, ftype, fid) = iprot.readFieldBegin()
7280
      if ftype == TType.STOP:
7281
        break
7282
      if fid == 0:
7283
        if ftype == TType.LIST:
7284
          self.success = []
3385 varun.gupt 7285
          (_etype45, _size42) = iprot.readListBegin()
7286
          for _i46 in xrange(_size42):
7287
            _elem47 = UserCommunication()
7288
            _elem47.read(iprot)
7289
            self.success.append(_elem47)
1590 varun.gupt 7290
          iprot.readListEnd()
7291
        else:
7292
          iprot.skip(ftype)
7293
      elif fid == 1:
7294
        if ftype == TType.STRUCT:
7295
          self.ucx = UserCommunicationException()
7296
          self.ucx.read(iprot)
7297
        else:
7298
          iprot.skip(ftype)
7299
      else:
7300
        iprot.skip(ftype)
7301
      iprot.readFieldEnd()
7302
    iprot.readStructEnd()
7303
 
7304
  def write(self, oprot):
7305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7307
      return
7308
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7309
    if self.success is not None:
1590 varun.gupt 7310
      oprot.writeFieldBegin('success', TType.LIST, 0)
7311
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7312
      for iter48 in self.success:
7313
        iter48.write(oprot)
1590 varun.gupt 7314
      oprot.writeListEnd()
7315
      oprot.writeFieldEnd()
3431 rajveer 7316
    if self.ucx is not None:
1590 varun.gupt 7317
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7318
      self.ucx.write(oprot)
7319
      oprot.writeFieldEnd()
7320
    oprot.writeFieldStop()
7321
    oprot.writeStructEnd()
7322
 
3431 rajveer 7323
  def validate(self):
7324
    return
7325
 
7326
 
1590 varun.gupt 7327
  def __repr__(self):
7328
    L = ['%s=%r' % (key, value)
7329
      for key, value in self.__dict__.iteritems()]
7330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7331
 
7332
  def __eq__(self, other):
7333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7334
 
7335
  def __ne__(self, other):
7336
    return not (self == other)
7337
 
7338
class getAllUserCommunications_args:
7339
 
7340
  thrift_spec = (
7341
  )
7342
 
7343
  def read(self, iprot):
7344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7346
      return
7347
    iprot.readStructBegin()
7348
    while True:
7349
      (fname, ftype, fid) = iprot.readFieldBegin()
7350
      if ftype == TType.STOP:
7351
        break
7352
      else:
7353
        iprot.skip(ftype)
7354
      iprot.readFieldEnd()
7355
    iprot.readStructEnd()
7356
 
7357
  def write(self, oprot):
7358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7360
      return
7361
    oprot.writeStructBegin('getAllUserCommunications_args')
7362
    oprot.writeFieldStop()
7363
    oprot.writeStructEnd()
7364
 
3431 rajveer 7365
  def validate(self):
7366
    return
7367
 
7368
 
1590 varun.gupt 7369
  def __repr__(self):
7370
    L = ['%s=%r' % (key, value)
7371
      for key, value in self.__dict__.iteritems()]
7372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7373
 
7374
  def __eq__(self, other):
7375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7376
 
7377
  def __ne__(self, other):
7378
    return not (self == other)
7379
 
7380
class getAllUserCommunications_result:
7381
  """
7382
  Attributes:
7383
   - success
7384
   - ucx
7385
  """
7386
 
7387
  thrift_spec = (
7388
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7389
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7390
  )
7391
 
7392
  def __init__(self, success=None, ucx=None,):
7393
    self.success = success
7394
    self.ucx = ucx
7395
 
7396
  def read(self, iprot):
7397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7399
      return
7400
    iprot.readStructBegin()
7401
    while True:
7402
      (fname, ftype, fid) = iprot.readFieldBegin()
7403
      if ftype == TType.STOP:
7404
        break
7405
      if fid == 0:
7406
        if ftype == TType.LIST:
7407
          self.success = []
3385 varun.gupt 7408
          (_etype52, _size49) = iprot.readListBegin()
7409
          for _i53 in xrange(_size49):
7410
            _elem54 = UserCommunication()
7411
            _elem54.read(iprot)
7412
            self.success.append(_elem54)
1590 varun.gupt 7413
          iprot.readListEnd()
7414
        else:
7415
          iprot.skip(ftype)
7416
      elif fid == 1:
7417
        if ftype == TType.STRUCT:
7418
          self.ucx = UserCommunicationException()
7419
          self.ucx.read(iprot)
7420
        else:
7421
          iprot.skip(ftype)
7422
      else:
7423
        iprot.skip(ftype)
7424
      iprot.readFieldEnd()
7425
    iprot.readStructEnd()
7426
 
7427
  def write(self, oprot):
7428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7430
      return
7431
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7432
    if self.success is not None:
1590 varun.gupt 7433
      oprot.writeFieldBegin('success', TType.LIST, 0)
7434
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7435
      for iter55 in self.success:
7436
        iter55.write(oprot)
1590 varun.gupt 7437
      oprot.writeListEnd()
7438
      oprot.writeFieldEnd()
3431 rajveer 7439
    if self.ucx is not None:
1590 varun.gupt 7440
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7441
      self.ucx.write(oprot)
7442
      oprot.writeFieldEnd()
7443
    oprot.writeFieldStop()
7444
    oprot.writeStructEnd()
7445
 
3431 rajveer 7446
  def validate(self):
7447
    return
7448
 
7449
 
1590 varun.gupt 7450
  def __repr__(self):
7451
    L = ['%s=%r' % (key, value)
7452
      for key, value in self.__dict__.iteritems()]
7453
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7454
 
7455
  def __eq__(self, other):
7456
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7457
 
7458
  def __ne__(self, other):
7459
    return not (self == other)
7460
 
1845 vikas 7461
class createMasterAffiliate_args:
7462
  """
7463
  Attributes:
7464
   - name
1859 vikas 7465
   - addedOn
1845 vikas 7466
  """
7467
 
7468
  thrift_spec = (
7469
    None, # 0
7470
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7471
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7472
  )
7473
 
1859 vikas 7474
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7475
    self.name = name
1859 vikas 7476
    self.addedOn = addedOn
1845 vikas 7477
 
7478
  def read(self, iprot):
7479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7481
      return
7482
    iprot.readStructBegin()
7483
    while True:
7484
      (fname, ftype, fid) = iprot.readFieldBegin()
7485
      if ftype == TType.STOP:
7486
        break
7487
      if fid == 1:
7488
        if ftype == TType.STRING:
7489
          self.name = iprot.readString();
7490
        else:
7491
          iprot.skip(ftype)
1859 vikas 7492
      elif fid == 2:
7493
        if ftype == TType.I64:
7494
          self.addedOn = iprot.readI64();
7495
        else:
7496
          iprot.skip(ftype)
1845 vikas 7497
      else:
7498
        iprot.skip(ftype)
7499
      iprot.readFieldEnd()
7500
    iprot.readStructEnd()
7501
 
7502
  def write(self, oprot):
7503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7505
      return
7506
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7507
    if self.name is not None:
1845 vikas 7508
      oprot.writeFieldBegin('name', TType.STRING, 1)
7509
      oprot.writeString(self.name)
7510
      oprot.writeFieldEnd()
3431 rajveer 7511
    if self.addedOn is not None:
1859 vikas 7512
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7513
      oprot.writeI64(self.addedOn)
7514
      oprot.writeFieldEnd()
1845 vikas 7515
    oprot.writeFieldStop()
7516
    oprot.writeStructEnd()
7517
 
3431 rajveer 7518
  def validate(self):
7519
    return
7520
 
7521
 
1845 vikas 7522
  def __repr__(self):
7523
    L = ['%s=%r' % (key, value)
7524
      for key, value in self.__dict__.iteritems()]
7525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7526
 
7527
  def __eq__(self, other):
7528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7529
 
7530
  def __ne__(self, other):
7531
    return not (self == other)
7532
 
7533
class createMasterAffiliate_result:
7534
  """
7535
  Attributes:
7536
   - success
7537
   - utx
7538
  """
7539
 
7540
  thrift_spec = (
7541
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7542
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7543
  )
7544
 
7545
  def __init__(self, success=None, utx=None,):
7546
    self.success = success
7547
    self.utx = utx
7548
 
7549
  def read(self, iprot):
7550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7552
      return
7553
    iprot.readStructBegin()
7554
    while True:
7555
      (fname, ftype, fid) = iprot.readFieldBegin()
7556
      if ftype == TType.STOP:
7557
        break
7558
      if fid == 0:
7559
        if ftype == TType.STRUCT:
7560
          self.success = MasterAffiliate()
7561
          self.success.read(iprot)
7562
        else:
7563
          iprot.skip(ftype)
7564
      elif fid == 1:
7565
        if ftype == TType.STRUCT:
1996 vikas 7566
          self.utx = UserAffiliateException()
1845 vikas 7567
          self.utx.read(iprot)
7568
        else:
7569
          iprot.skip(ftype)
7570
      else:
7571
        iprot.skip(ftype)
7572
      iprot.readFieldEnd()
7573
    iprot.readStructEnd()
7574
 
7575
  def write(self, oprot):
7576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7578
      return
7579
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7580
    if self.success is not None:
1845 vikas 7581
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7582
      self.success.write(oprot)
7583
      oprot.writeFieldEnd()
3431 rajveer 7584
    if self.utx is not None:
1845 vikas 7585
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7586
      self.utx.write(oprot)
7587
      oprot.writeFieldEnd()
7588
    oprot.writeFieldStop()
7589
    oprot.writeStructEnd()
7590
 
3431 rajveer 7591
  def validate(self):
7592
    return
7593
 
7594
 
1845 vikas 7595
  def __repr__(self):
7596
    L = ['%s=%r' % (key, value)
7597
      for key, value in self.__dict__.iteritems()]
7598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7599
 
7600
  def __eq__(self, other):
7601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7602
 
7603
  def __ne__(self, other):
7604
    return not (self == other)
7605
 
1899 vikas 7606
class getAllMasterAffiliates_args:
7607
 
7608
  thrift_spec = (
7609
  )
7610
 
7611
  def read(self, iprot):
7612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7614
      return
7615
    iprot.readStructBegin()
7616
    while True:
7617
      (fname, ftype, fid) = iprot.readFieldBegin()
7618
      if ftype == TType.STOP:
7619
        break
7620
      else:
7621
        iprot.skip(ftype)
7622
      iprot.readFieldEnd()
7623
    iprot.readStructEnd()
7624
 
7625
  def write(self, oprot):
7626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7628
      return
7629
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7630
    oprot.writeFieldStop()
7631
    oprot.writeStructEnd()
7632
 
3431 rajveer 7633
  def validate(self):
7634
    return
7635
 
7636
 
1899 vikas 7637
  def __repr__(self):
7638
    L = ['%s=%r' % (key, value)
7639
      for key, value in self.__dict__.iteritems()]
7640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7641
 
7642
  def __eq__(self, other):
7643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7644
 
7645
  def __ne__(self, other):
7646
    return not (self == other)
7647
 
7648
class getAllMasterAffiliates_result:
7649
  """
7650
  Attributes:
7651
   - success
7652
   - utx
7653
  """
7654
 
7655
  thrift_spec = (
7656
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7657
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7658
  )
7659
 
7660
  def __init__(self, success=None, utx=None,):
7661
    self.success = success
7662
    self.utx = utx
7663
 
7664
  def read(self, iprot):
7665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7667
      return
7668
    iprot.readStructBegin()
7669
    while True:
7670
      (fname, ftype, fid) = iprot.readFieldBegin()
7671
      if ftype == TType.STOP:
7672
        break
7673
      if fid == 0:
7674
        if ftype == TType.LIST:
7675
          self.success = []
3385 varun.gupt 7676
          (_etype59, _size56) = iprot.readListBegin()
7677
          for _i60 in xrange(_size56):
7678
            _elem61 = MasterAffiliate()
7679
            _elem61.read(iprot)
7680
            self.success.append(_elem61)
1899 vikas 7681
          iprot.readListEnd()
7682
        else:
7683
          iprot.skip(ftype)
7684
      elif fid == 1:
7685
        if ftype == TType.STRUCT:
1996 vikas 7686
          self.utx = UserAffiliateException()
1899 vikas 7687
          self.utx.read(iprot)
7688
        else:
7689
          iprot.skip(ftype)
7690
      else:
7691
        iprot.skip(ftype)
7692
      iprot.readFieldEnd()
7693
    iprot.readStructEnd()
7694
 
7695
  def write(self, oprot):
7696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7698
      return
7699
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7700
    if self.success is not None:
1899 vikas 7701
      oprot.writeFieldBegin('success', TType.LIST, 0)
7702
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 7703
      for iter62 in self.success:
7704
        iter62.write(oprot)
1899 vikas 7705
      oprot.writeListEnd()
7706
      oprot.writeFieldEnd()
3431 rajveer 7707
    if self.utx is not None:
1899 vikas 7708
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7709
      self.utx.write(oprot)
7710
      oprot.writeFieldEnd()
7711
    oprot.writeFieldStop()
7712
    oprot.writeStructEnd()
7713
 
3431 rajveer 7714
  def validate(self):
7715
    return
7716
 
7717
 
1899 vikas 7718
  def __repr__(self):
7719
    L = ['%s=%r' % (key, value)
7720
      for key, value in self.__dict__.iteritems()]
7721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7722
 
7723
  def __eq__(self, other):
7724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7725
 
7726
  def __ne__(self, other):
7727
    return not (self == other)
7728
 
1845 vikas 7729
class getMasterAffiliateById_args:
7730
  """
7731
  Attributes:
7732
   - id
7733
  """
7734
 
7735
  thrift_spec = (
7736
    None, # 0
7737
    (1, TType.I64, 'id', None, None, ), # 1
7738
  )
7739
 
7740
  def __init__(self, id=None,):
7741
    self.id = id
7742
 
7743
  def read(self, iprot):
7744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7746
      return
7747
    iprot.readStructBegin()
7748
    while True:
7749
      (fname, ftype, fid) = iprot.readFieldBegin()
7750
      if ftype == TType.STOP:
7751
        break
7752
      if fid == 1:
7753
        if ftype == TType.I64:
7754
          self.id = iprot.readI64();
7755
        else:
7756
          iprot.skip(ftype)
7757
      else:
7758
        iprot.skip(ftype)
7759
      iprot.readFieldEnd()
7760
    iprot.readStructEnd()
7761
 
7762
  def write(self, oprot):
7763
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7764
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7765
      return
7766
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7767
    if self.id is not None:
1845 vikas 7768
      oprot.writeFieldBegin('id', TType.I64, 1)
7769
      oprot.writeI64(self.id)
7770
      oprot.writeFieldEnd()
7771
    oprot.writeFieldStop()
7772
    oprot.writeStructEnd()
7773
 
3431 rajveer 7774
  def validate(self):
7775
    return
7776
 
7777
 
1845 vikas 7778
  def __repr__(self):
7779
    L = ['%s=%r' % (key, value)
7780
      for key, value in self.__dict__.iteritems()]
7781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7782
 
7783
  def __eq__(self, other):
7784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7785
 
7786
  def __ne__(self, other):
7787
    return not (self == other)
7788
 
7789
class getMasterAffiliateById_result:
7790
  """
7791
  Attributes:
7792
   - success
7793
   - utx
7794
  """
7795
 
7796
  thrift_spec = (
7797
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7798
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7799
  )
7800
 
7801
  def __init__(self, success=None, utx=None,):
7802
    self.success = success
7803
    self.utx = utx
7804
 
7805
  def read(self, iprot):
7806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7808
      return
7809
    iprot.readStructBegin()
7810
    while True:
7811
      (fname, ftype, fid) = iprot.readFieldBegin()
7812
      if ftype == TType.STOP:
7813
        break
7814
      if fid == 0:
7815
        if ftype == TType.STRUCT:
7816
          self.success = MasterAffiliate()
7817
          self.success.read(iprot)
7818
        else:
7819
          iprot.skip(ftype)
7820
      elif fid == 1:
7821
        if ftype == TType.STRUCT:
1996 vikas 7822
          self.utx = UserAffiliateException()
1845 vikas 7823
          self.utx.read(iprot)
7824
        else:
7825
          iprot.skip(ftype)
7826
      else:
7827
        iprot.skip(ftype)
7828
      iprot.readFieldEnd()
7829
    iprot.readStructEnd()
7830
 
7831
  def write(self, oprot):
7832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7834
      return
7835
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7836
    if self.success is not None:
1845 vikas 7837
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7838
      self.success.write(oprot)
7839
      oprot.writeFieldEnd()
3431 rajveer 7840
    if self.utx is not None:
1845 vikas 7841
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7842
      self.utx.write(oprot)
7843
      oprot.writeFieldEnd()
7844
    oprot.writeFieldStop()
7845
    oprot.writeStructEnd()
7846
 
3431 rajveer 7847
  def validate(self):
7848
    return
7849
 
7850
 
1845 vikas 7851
  def __repr__(self):
7852
    L = ['%s=%r' % (key, value)
7853
      for key, value in self.__dict__.iteritems()]
7854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7855
 
7856
  def __eq__(self, other):
7857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7858
 
7859
  def __ne__(self, other):
7860
    return not (self == other)
7861
 
7862
class getMasterAffiliateByName_args:
7863
  """
7864
  Attributes:
7865
   - name
7866
  """
7867
 
7868
  thrift_spec = (
7869
    None, # 0
7870
    (1, TType.STRING, 'name', None, None, ), # 1
7871
  )
7872
 
7873
  def __init__(self, name=None,):
7874
    self.name = name
7875
 
7876
  def read(self, iprot):
7877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7879
      return
7880
    iprot.readStructBegin()
7881
    while True:
7882
      (fname, ftype, fid) = iprot.readFieldBegin()
7883
      if ftype == TType.STOP:
7884
        break
7885
      if fid == 1:
7886
        if ftype == TType.STRING:
7887
          self.name = iprot.readString();
7888
        else:
7889
          iprot.skip(ftype)
7890
      else:
7891
        iprot.skip(ftype)
7892
      iprot.readFieldEnd()
7893
    iprot.readStructEnd()
7894
 
7895
  def write(self, oprot):
7896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7898
      return
7899
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7900
    if self.name is not None:
1845 vikas 7901
      oprot.writeFieldBegin('name', TType.STRING, 1)
7902
      oprot.writeString(self.name)
7903
      oprot.writeFieldEnd()
7904
    oprot.writeFieldStop()
7905
    oprot.writeStructEnd()
7906
 
3431 rajveer 7907
  def validate(self):
7908
    return
7909
 
7910
 
1845 vikas 7911
  def __repr__(self):
7912
    L = ['%s=%r' % (key, value)
7913
      for key, value in self.__dict__.iteritems()]
7914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7915
 
7916
  def __eq__(self, other):
7917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7918
 
7919
  def __ne__(self, other):
7920
    return not (self == other)
7921
 
7922
class getMasterAffiliateByName_result:
7923
  """
7924
  Attributes:
7925
   - success
7926
   - utx
7927
  """
7928
 
7929
  thrift_spec = (
7930
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7931
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7932
  )
7933
 
7934
  def __init__(self, success=None, utx=None,):
7935
    self.success = success
7936
    self.utx = utx
7937
 
7938
  def read(self, iprot):
7939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7941
      return
7942
    iprot.readStructBegin()
7943
    while True:
7944
      (fname, ftype, fid) = iprot.readFieldBegin()
7945
      if ftype == TType.STOP:
7946
        break
7947
      if fid == 0:
7948
        if ftype == TType.STRUCT:
7949
          self.success = MasterAffiliate()
7950
          self.success.read(iprot)
7951
        else:
7952
          iprot.skip(ftype)
7953
      elif fid == 1:
7954
        if ftype == TType.STRUCT:
1996 vikas 7955
          self.utx = UserAffiliateException()
1845 vikas 7956
          self.utx.read(iprot)
7957
        else:
7958
          iprot.skip(ftype)
7959
      else:
7960
        iprot.skip(ftype)
7961
      iprot.readFieldEnd()
7962
    iprot.readStructEnd()
7963
 
7964
  def write(self, oprot):
7965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7967
      return
7968
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7969
    if self.success is not None:
1845 vikas 7970
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7971
      self.success.write(oprot)
7972
      oprot.writeFieldEnd()
3431 rajveer 7973
    if self.utx is not None:
1845 vikas 7974
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7975
      self.utx.write(oprot)
7976
      oprot.writeFieldEnd()
7977
    oprot.writeFieldStop()
7978
    oprot.writeStructEnd()
7979
 
3431 rajveer 7980
  def validate(self):
7981
    return
7982
 
7983
 
1845 vikas 7984
  def __repr__(self):
7985
    L = ['%s=%r' % (key, value)
7986
      for key, value in self.__dict__.iteritems()]
7987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7988
 
7989
  def __eq__(self, other):
7990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7991
 
7992
  def __ne__(self, other):
7993
    return not (self == other)
7994
 
7995
class createAffiliate_args:
7996
  """
7997
  Attributes:
7998
   - name
7999
   - url
8000
   - masterAffiliateId
1859 vikas 8001
   - addedOn
1845 vikas 8002
  """
8003
 
8004
  thrift_spec = (
8005
    None, # 0
8006
    (1, TType.STRING, 'name', None, None, ), # 1
8007
    (2, TType.STRING, 'url', None, None, ), # 2
8008
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8009
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8010
  )
8011
 
1859 vikas 8012
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8013
    self.name = name
8014
    self.url = url
8015
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8016
    self.addedOn = addedOn
1845 vikas 8017
 
8018
  def read(self, iprot):
8019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8021
      return
8022
    iprot.readStructBegin()
8023
    while True:
8024
      (fname, ftype, fid) = iprot.readFieldBegin()
8025
      if ftype == TType.STOP:
8026
        break
8027
      if fid == 1:
8028
        if ftype == TType.STRING:
8029
          self.name = iprot.readString();
8030
        else:
8031
          iprot.skip(ftype)
8032
      elif fid == 2:
8033
        if ftype == TType.STRING:
8034
          self.url = iprot.readString();
8035
        else:
8036
          iprot.skip(ftype)
8037
      elif fid == 3:
8038
        if ftype == TType.I64:
8039
          self.masterAffiliateId = iprot.readI64();
8040
        else:
8041
          iprot.skip(ftype)
1859 vikas 8042
      elif fid == 4:
8043
        if ftype == TType.I64:
8044
          self.addedOn = iprot.readI64();
8045
        else:
8046
          iprot.skip(ftype)
1845 vikas 8047
      else:
8048
        iprot.skip(ftype)
8049
      iprot.readFieldEnd()
8050
    iprot.readStructEnd()
8051
 
8052
  def write(self, oprot):
8053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8055
      return
8056
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8057
    if self.name is not None:
1845 vikas 8058
      oprot.writeFieldBegin('name', TType.STRING, 1)
8059
      oprot.writeString(self.name)
8060
      oprot.writeFieldEnd()
3431 rajveer 8061
    if self.url is not None:
1845 vikas 8062
      oprot.writeFieldBegin('url', TType.STRING, 2)
8063
      oprot.writeString(self.url)
8064
      oprot.writeFieldEnd()
3431 rajveer 8065
    if self.masterAffiliateId is not None:
1845 vikas 8066
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8067
      oprot.writeI64(self.masterAffiliateId)
8068
      oprot.writeFieldEnd()
3431 rajveer 8069
    if self.addedOn is not None:
1859 vikas 8070
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8071
      oprot.writeI64(self.addedOn)
8072
      oprot.writeFieldEnd()
1845 vikas 8073
    oprot.writeFieldStop()
8074
    oprot.writeStructEnd()
8075
 
3431 rajveer 8076
  def validate(self):
8077
    return
8078
 
8079
 
1845 vikas 8080
  def __repr__(self):
8081
    L = ['%s=%r' % (key, value)
8082
      for key, value in self.__dict__.iteritems()]
8083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8084
 
8085
  def __eq__(self, other):
8086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8087
 
8088
  def __ne__(self, other):
8089
    return not (self == other)
8090
 
8091
class createAffiliate_result:
8092
  """
8093
  Attributes:
8094
   - success
8095
   - utx
8096
  """
8097
 
8098
  thrift_spec = (
8099
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8100
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8101
  )
8102
 
8103
  def __init__(self, success=None, utx=None,):
8104
    self.success = success
8105
    self.utx = utx
8106
 
8107
  def read(self, iprot):
8108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8110
      return
8111
    iprot.readStructBegin()
8112
    while True:
8113
      (fname, ftype, fid) = iprot.readFieldBegin()
8114
      if ftype == TType.STOP:
8115
        break
8116
      if fid == 0:
8117
        if ftype == TType.STRUCT:
8118
          self.success = Affiliate()
8119
          self.success.read(iprot)
8120
        else:
8121
          iprot.skip(ftype)
8122
      elif fid == 1:
8123
        if ftype == TType.STRUCT:
1996 vikas 8124
          self.utx = UserAffiliateException()
1845 vikas 8125
          self.utx.read(iprot)
8126
        else:
8127
          iprot.skip(ftype)
8128
      else:
8129
        iprot.skip(ftype)
8130
      iprot.readFieldEnd()
8131
    iprot.readStructEnd()
8132
 
8133
  def write(self, oprot):
8134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8136
      return
8137
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8138
    if self.success is not None:
1845 vikas 8139
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8140
      self.success.write(oprot)
8141
      oprot.writeFieldEnd()
3431 rajveer 8142
    if self.utx is not None:
1845 vikas 8143
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8144
      self.utx.write(oprot)
8145
      oprot.writeFieldEnd()
8146
    oprot.writeFieldStop()
8147
    oprot.writeStructEnd()
8148
 
3431 rajveer 8149
  def validate(self):
8150
    return
8151
 
8152
 
1845 vikas 8153
  def __repr__(self):
8154
    L = ['%s=%r' % (key, value)
8155
      for key, value in self.__dict__.iteritems()]
8156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8157
 
8158
  def __eq__(self, other):
8159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8160
 
8161
  def __ne__(self, other):
8162
    return not (self == other)
8163
 
8164
class getAffiliateById_args:
8165
  """
8166
  Attributes:
8167
   - id
8168
  """
8169
 
8170
  thrift_spec = (
8171
    None, # 0
8172
    (1, TType.I64, 'id', None, None, ), # 1
8173
  )
8174
 
8175
  def __init__(self, id=None,):
8176
    self.id = id
8177
 
8178
  def read(self, iprot):
8179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8181
      return
8182
    iprot.readStructBegin()
8183
    while True:
8184
      (fname, ftype, fid) = iprot.readFieldBegin()
8185
      if ftype == TType.STOP:
8186
        break
8187
      if fid == 1:
8188
        if ftype == TType.I64:
8189
          self.id = iprot.readI64();
8190
        else:
8191
          iprot.skip(ftype)
8192
      else:
8193
        iprot.skip(ftype)
8194
      iprot.readFieldEnd()
8195
    iprot.readStructEnd()
8196
 
8197
  def write(self, oprot):
8198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8200
      return
8201
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8202
    if self.id is not None:
1845 vikas 8203
      oprot.writeFieldBegin('id', TType.I64, 1)
8204
      oprot.writeI64(self.id)
8205
      oprot.writeFieldEnd()
8206
    oprot.writeFieldStop()
8207
    oprot.writeStructEnd()
8208
 
3431 rajveer 8209
  def validate(self):
8210
    return
8211
 
8212
 
1845 vikas 8213
  def __repr__(self):
8214
    L = ['%s=%r' % (key, value)
8215
      for key, value in self.__dict__.iteritems()]
8216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8217
 
8218
  def __eq__(self, other):
8219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8220
 
8221
  def __ne__(self, other):
8222
    return not (self == other)
8223
 
8224
class getAffiliateById_result:
8225
  """
8226
  Attributes:
8227
   - success
8228
   - utx
8229
  """
8230
 
8231
  thrift_spec = (
8232
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8233
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8234
  )
8235
 
8236
  def __init__(self, success=None, utx=None,):
8237
    self.success = success
8238
    self.utx = utx
8239
 
8240
  def read(self, iprot):
8241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8243
      return
8244
    iprot.readStructBegin()
8245
    while True:
8246
      (fname, ftype, fid) = iprot.readFieldBegin()
8247
      if ftype == TType.STOP:
8248
        break
8249
      if fid == 0:
8250
        if ftype == TType.STRUCT:
8251
          self.success = Affiliate()
8252
          self.success.read(iprot)
8253
        else:
8254
          iprot.skip(ftype)
8255
      elif fid == 1:
8256
        if ftype == TType.STRUCT:
1996 vikas 8257
          self.utx = UserAffiliateException()
1845 vikas 8258
          self.utx.read(iprot)
8259
        else:
8260
          iprot.skip(ftype)
8261
      else:
8262
        iprot.skip(ftype)
8263
      iprot.readFieldEnd()
8264
    iprot.readStructEnd()
8265
 
8266
  def write(self, oprot):
8267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8269
      return
8270
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8271
    if self.success is not None:
1845 vikas 8272
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8273
      self.success.write(oprot)
8274
      oprot.writeFieldEnd()
3431 rajveer 8275
    if self.utx is not None:
1845 vikas 8276
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8277
      self.utx.write(oprot)
8278
      oprot.writeFieldEnd()
8279
    oprot.writeFieldStop()
8280
    oprot.writeStructEnd()
8281
 
3431 rajveer 8282
  def validate(self):
8283
    return
8284
 
8285
 
1845 vikas 8286
  def __repr__(self):
8287
    L = ['%s=%r' % (key, value)
8288
      for key, value in self.__dict__.iteritems()]
8289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8290
 
8291
  def __eq__(self, other):
8292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8293
 
8294
  def __ne__(self, other):
8295
    return not (self == other)
8296
 
8297
class getAffiliateByName_args:
8298
  """
8299
  Attributes:
8300
   - name
8301
  """
8302
 
8303
  thrift_spec = (
8304
    None, # 0
8305
    (1, TType.STRING, 'name', None, None, ), # 1
8306
  )
8307
 
8308
  def __init__(self, name=None,):
8309
    self.name = name
8310
 
8311
  def read(self, iprot):
8312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8314
      return
8315
    iprot.readStructBegin()
8316
    while True:
8317
      (fname, ftype, fid) = iprot.readFieldBegin()
8318
      if ftype == TType.STOP:
8319
        break
8320
      if fid == 1:
8321
        if ftype == TType.STRING:
8322
          self.name = iprot.readString();
8323
        else:
8324
          iprot.skip(ftype)
8325
      else:
8326
        iprot.skip(ftype)
8327
      iprot.readFieldEnd()
8328
    iprot.readStructEnd()
8329
 
8330
  def write(self, oprot):
8331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8333
      return
8334
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8335
    if self.name is not None:
1845 vikas 8336
      oprot.writeFieldBegin('name', TType.STRING, 1)
8337
      oprot.writeString(self.name)
8338
      oprot.writeFieldEnd()
8339
    oprot.writeFieldStop()
8340
    oprot.writeStructEnd()
8341
 
3431 rajveer 8342
  def validate(self):
8343
    return
8344
 
8345
 
1845 vikas 8346
  def __repr__(self):
8347
    L = ['%s=%r' % (key, value)
8348
      for key, value in self.__dict__.iteritems()]
8349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8350
 
8351
  def __eq__(self, other):
8352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8353
 
8354
  def __ne__(self, other):
8355
    return not (self == other)
8356
 
8357
class getAffiliateByName_result:
8358
  """
8359
  Attributes:
8360
   - success
8361
   - utx
8362
  """
8363
 
8364
  thrift_spec = (
8365
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8366
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8367
  )
8368
 
8369
  def __init__(self, success=None, utx=None,):
8370
    self.success = success
8371
    self.utx = utx
8372
 
8373
  def read(self, iprot):
8374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8376
      return
8377
    iprot.readStructBegin()
8378
    while True:
8379
      (fname, ftype, fid) = iprot.readFieldBegin()
8380
      if ftype == TType.STOP:
8381
        break
8382
      if fid == 0:
8383
        if ftype == TType.STRUCT:
8384
          self.success = Affiliate()
8385
          self.success.read(iprot)
8386
        else:
8387
          iprot.skip(ftype)
8388
      elif fid == 1:
8389
        if ftype == TType.STRUCT:
1996 vikas 8390
          self.utx = UserAffiliateException()
1845 vikas 8391
          self.utx.read(iprot)
8392
        else:
8393
          iprot.skip(ftype)
8394
      else:
8395
        iprot.skip(ftype)
8396
      iprot.readFieldEnd()
8397
    iprot.readStructEnd()
8398
 
8399
  def write(self, oprot):
8400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8402
      return
8403
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8404
    if self.success is not None:
1845 vikas 8405
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8406
      self.success.write(oprot)
8407
      oprot.writeFieldEnd()
3431 rajveer 8408
    if self.utx is not None:
1845 vikas 8409
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8410
      self.utx.write(oprot)
8411
      oprot.writeFieldEnd()
8412
    oprot.writeFieldStop()
8413
    oprot.writeStructEnd()
8414
 
3431 rajveer 8415
  def validate(self):
8416
    return
8417
 
8418
 
1845 vikas 8419
  def __repr__(self):
8420
    L = ['%s=%r' % (key, value)
8421
      for key, value in self.__dict__.iteritems()]
8422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8423
 
8424
  def __eq__(self, other):
8425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8426
 
8427
  def __ne__(self, other):
8428
    return not (self == other)
8429
 
1996 vikas 8430
class getTrackerById_args:
1845 vikas 8431
  """
8432
  Attributes:
8433
   - id
8434
  """
8435
 
8436
  thrift_spec = (
8437
    None, # 0
8438
    (1, TType.I64, 'id', None, None, ), # 1
8439
  )
8440
 
8441
  def __init__(self, id=None,):
8442
    self.id = id
8443
 
8444
  def read(self, iprot):
8445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8447
      return
8448
    iprot.readStructBegin()
8449
    while True:
8450
      (fname, ftype, fid) = iprot.readFieldBegin()
8451
      if ftype == TType.STOP:
8452
        break
8453
      if fid == 1:
8454
        if ftype == TType.I64:
8455
          self.id = iprot.readI64();
8456
        else:
8457
          iprot.skip(ftype)
8458
      else:
8459
        iprot.skip(ftype)
8460
      iprot.readFieldEnd()
8461
    iprot.readStructEnd()
8462
 
8463
  def write(self, oprot):
8464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8466
      return
1996 vikas 8467
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8468
    if self.id is not None:
1845 vikas 8469
      oprot.writeFieldBegin('id', TType.I64, 1)
8470
      oprot.writeI64(self.id)
8471
      oprot.writeFieldEnd()
8472
    oprot.writeFieldStop()
8473
    oprot.writeStructEnd()
8474
 
3431 rajveer 8475
  def validate(self):
8476
    return
8477
 
8478
 
1845 vikas 8479
  def __repr__(self):
8480
    L = ['%s=%r' % (key, value)
8481
      for key, value in self.__dict__.iteritems()]
8482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8483
 
8484
  def __eq__(self, other):
8485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8486
 
8487
  def __ne__(self, other):
8488
    return not (self == other)
8489
 
8490
class getTrackerById_result:
8491
  """
8492
  Attributes:
8493
   - success
8494
   - utx
8495
  """
8496
 
8497
  thrift_spec = (
8498
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8499
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8500
  )
8501
 
8502
  def __init__(self, success=None, utx=None,):
8503
    self.success = success
8504
    self.utx = utx
8505
 
8506
  def read(self, iprot):
8507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8509
      return
8510
    iprot.readStructBegin()
8511
    while True:
8512
      (fname, ftype, fid) = iprot.readFieldBegin()
8513
      if ftype == TType.STOP:
8514
        break
8515
      if fid == 0:
8516
        if ftype == TType.STRUCT:
8517
          self.success = Tracker()
8518
          self.success.read(iprot)
8519
        else:
8520
          iprot.skip(ftype)
8521
      elif fid == 1:
8522
        if ftype == TType.STRUCT:
1996 vikas 8523
          self.utx = UserAffiliateException()
1845 vikas 8524
          self.utx.read(iprot)
8525
        else:
8526
          iprot.skip(ftype)
8527
      else:
8528
        iprot.skip(ftype)
8529
      iprot.readFieldEnd()
8530
    iprot.readStructEnd()
8531
 
8532
  def write(self, oprot):
8533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8535
      return
8536
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8537
    if self.success is not None:
1845 vikas 8538
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8539
      self.success.write(oprot)
8540
      oprot.writeFieldEnd()
3431 rajveer 8541
    if self.utx is not None:
1845 vikas 8542
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8543
      self.utx.write(oprot)
8544
      oprot.writeFieldEnd()
8545
    oprot.writeFieldStop()
8546
    oprot.writeStructEnd()
8547
 
3431 rajveer 8548
  def validate(self):
8549
    return
8550
 
8551
 
1845 vikas 8552
  def __repr__(self):
8553
    L = ['%s=%r' % (key, value)
8554
      for key, value in self.__dict__.iteritems()]
8555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8556
 
8557
  def __eq__(self, other):
8558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8559
 
8560
  def __ne__(self, other):
8561
    return not (self == other)
8562
 
1996 vikas 8563
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8564
  """
8565
  Attributes:
1996 vikas 8566
   - id
1845 vikas 8567
  """
8568
 
8569
  thrift_spec = (
8570
    None, # 0
1996 vikas 8571
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8572
  )
8573
 
1996 vikas 8574
  def __init__(self, id=None,):
8575
    self.id = id
1845 vikas 8576
 
8577
  def read(self, iprot):
8578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8580
      return
8581
    iprot.readStructBegin()
8582
    while True:
8583
      (fname, ftype, fid) = iprot.readFieldBegin()
8584
      if ftype == TType.STOP:
8585
        break
8586
      if fid == 1:
8587
        if ftype == TType.I64:
1996 vikas 8588
          self.id = iprot.readI64();
1845 vikas 8589
        else:
8590
          iprot.skip(ftype)
8591
      else:
8592
        iprot.skip(ftype)
8593
      iprot.readFieldEnd()
8594
    iprot.readStructEnd()
8595
 
8596
  def write(self, oprot):
8597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8599
      return
1996 vikas 8600
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8601
    if self.id is not None:
1996 vikas 8602
      oprot.writeFieldBegin('id', TType.I64, 1)
8603
      oprot.writeI64(self.id)
1845 vikas 8604
      oprot.writeFieldEnd()
8605
    oprot.writeFieldStop()
8606
    oprot.writeStructEnd()
8607
 
3431 rajveer 8608
  def validate(self):
8609
    return
8610
 
8611
 
1845 vikas 8612
  def __repr__(self):
8613
    L = ['%s=%r' % (key, value)
8614
      for key, value in self.__dict__.iteritems()]
8615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8616
 
8617
  def __eq__(self, other):
8618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8619
 
8620
  def __ne__(self, other):
8621
    return not (self == other)
8622
 
1996 vikas 8623
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8624
  """
8625
  Attributes:
8626
   - success
8627
   - utx
8628
  """
8629
 
8630
  thrift_spec = (
1996 vikas 8631
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8632
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8633
  )
8634
 
8635
  def __init__(self, success=None, utx=None,):
8636
    self.success = success
8637
    self.utx = utx
8638
 
8639
  def read(self, iprot):
8640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8642
      return
8643
    iprot.readStructBegin()
8644
    while True:
8645
      (fname, ftype, fid) = iprot.readFieldBegin()
8646
      if ftype == TType.STOP:
8647
        break
8648
      if fid == 0:
8649
        if ftype == TType.LIST:
8650
          self.success = []
3385 varun.gupt 8651
          (_etype66, _size63) = iprot.readListBegin()
8652
          for _i67 in xrange(_size63):
8653
            _elem68 = Affiliate()
8654
            _elem68.read(iprot)
8655
            self.success.append(_elem68)
1845 vikas 8656
          iprot.readListEnd()
8657
        else:
8658
          iprot.skip(ftype)
8659
      elif fid == 1:
8660
        if ftype == TType.STRUCT:
1996 vikas 8661
          self.utx = UserAffiliateException()
1845 vikas 8662
          self.utx.read(iprot)
8663
        else:
8664
          iprot.skip(ftype)
8665
      else:
8666
        iprot.skip(ftype)
8667
      iprot.readFieldEnd()
8668
    iprot.readStructEnd()
8669
 
8670
  def write(self, oprot):
8671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8673
      return
1996 vikas 8674
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8675
    if self.success is not None:
1845 vikas 8676
      oprot.writeFieldBegin('success', TType.LIST, 0)
8677
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 8678
      for iter69 in self.success:
8679
        iter69.write(oprot)
1845 vikas 8680
      oprot.writeListEnd()
8681
      oprot.writeFieldEnd()
3431 rajveer 8682
    if self.utx is not None:
1845 vikas 8683
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8684
      self.utx.write(oprot)
8685
      oprot.writeFieldEnd()
8686
    oprot.writeFieldStop()
8687
    oprot.writeStructEnd()
8688
 
3431 rajveer 8689
  def validate(self):
8690
    return
8691
 
8692
 
1845 vikas 8693
  def __repr__(self):
8694
    L = ['%s=%r' % (key, value)
8695
      for key, value in self.__dict__.iteritems()]
8696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8697
 
8698
  def __eq__(self, other):
8699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8700
 
8701
  def __ne__(self, other):
8702
    return not (self == other)
8703
 
8704
class addTrackLog_args:
8705
  """
8706
  Attributes:
1996 vikas 8707
   - affiliateId
1845 vikas 8708
   - userId
8709
   - event
8710
   - url
8711
   - data
1859 vikas 8712
   - addedOn
1845 vikas 8713
  """
8714
 
8715
  thrift_spec = (
8716
    None, # 0
1996 vikas 8717
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8718
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8719
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8720
    (4, TType.STRING, 'url', None, None, ), # 4
8721
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8722
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8723
  )
8724
 
1996 vikas 8725
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8726
    self.affiliateId = affiliateId
1845 vikas 8727
    self.userId = userId
8728
    self.event = event
8729
    self.url = url
8730
    self.data = data
1859 vikas 8731
    self.addedOn = addedOn
1845 vikas 8732
 
8733
  def read(self, iprot):
8734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8736
      return
8737
    iprot.readStructBegin()
8738
    while True:
8739
      (fname, ftype, fid) = iprot.readFieldBegin()
8740
      if ftype == TType.STOP:
8741
        break
8742
      if fid == 1:
8743
        if ftype == TType.I64:
1996 vikas 8744
          self.affiliateId = iprot.readI64();
1845 vikas 8745
        else:
8746
          iprot.skip(ftype)
8747
      elif fid == 2:
8748
        if ftype == TType.I64:
8749
          self.userId = iprot.readI64();
8750
        else:
8751
          iprot.skip(ftype)
8752
      elif fid == 3:
3378 vikas 8753
        if ftype == TType.I32:
8754
          self.event = iprot.readI32();
1845 vikas 8755
        else:
8756
          iprot.skip(ftype)
8757
      elif fid == 4:
8758
        if ftype == TType.STRING:
8759
          self.url = iprot.readString();
8760
        else:
8761
          iprot.skip(ftype)
8762
      elif fid == 5:
8763
        if ftype == TType.STRING:
8764
          self.data = iprot.readString();
8765
        else:
8766
          iprot.skip(ftype)
1859 vikas 8767
      elif fid == 6:
8768
        if ftype == TType.I64:
8769
          self.addedOn = iprot.readI64();
8770
        else:
8771
          iprot.skip(ftype)
1845 vikas 8772
      else:
8773
        iprot.skip(ftype)
8774
      iprot.readFieldEnd()
8775
    iprot.readStructEnd()
8776
 
8777
  def write(self, oprot):
8778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8780
      return
8781
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8782
    if self.affiliateId is not None:
1996 vikas 8783
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8784
      oprot.writeI64(self.affiliateId)
1845 vikas 8785
      oprot.writeFieldEnd()
3431 rajveer 8786
    if self.userId is not None:
1845 vikas 8787
      oprot.writeFieldBegin('userId', TType.I64, 2)
8788
      oprot.writeI64(self.userId)
8789
      oprot.writeFieldEnd()
3431 rajveer 8790
    if self.event is not None:
3378 vikas 8791
      oprot.writeFieldBegin('event', TType.I32, 3)
8792
      oprot.writeI32(self.event)
1845 vikas 8793
      oprot.writeFieldEnd()
3431 rajveer 8794
    if self.url is not None:
1845 vikas 8795
      oprot.writeFieldBegin('url', TType.STRING, 4)
8796
      oprot.writeString(self.url)
8797
      oprot.writeFieldEnd()
3431 rajveer 8798
    if self.data is not None:
1845 vikas 8799
      oprot.writeFieldBegin('data', TType.STRING, 5)
8800
      oprot.writeString(self.data)
8801
      oprot.writeFieldEnd()
3431 rajveer 8802
    if self.addedOn is not None:
1859 vikas 8803
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8804
      oprot.writeI64(self.addedOn)
8805
      oprot.writeFieldEnd()
1845 vikas 8806
    oprot.writeFieldStop()
8807
    oprot.writeStructEnd()
8808
 
3431 rajveer 8809
  def validate(self):
8810
    return
8811
 
8812
 
1845 vikas 8813
  def __repr__(self):
8814
    L = ['%s=%r' % (key, value)
8815
      for key, value in self.__dict__.iteritems()]
8816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8817
 
8818
  def __eq__(self, other):
8819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8820
 
8821
  def __ne__(self, other):
8822
    return not (self == other)
8823
 
8824
class addTrackLog_result:
8825
  """
8826
  Attributes:
8827
   - success
8828
   - utx
8829
  """
8830
 
8831
  thrift_spec = (
8832
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8833
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8834
  )
8835
 
8836
  def __init__(self, success=None, utx=None,):
8837
    self.success = success
8838
    self.utx = utx
8839
 
8840
  def read(self, iprot):
8841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8843
      return
8844
    iprot.readStructBegin()
8845
    while True:
8846
      (fname, ftype, fid) = iprot.readFieldBegin()
8847
      if ftype == TType.STOP:
8848
        break
8849
      if fid == 0:
8850
        if ftype == TType.I64:
8851
          self.success = iprot.readI64();
8852
        else:
8853
          iprot.skip(ftype)
8854
      elif fid == 1:
8855
        if ftype == TType.STRUCT:
1996 vikas 8856
          self.utx = UserAffiliateException()
1845 vikas 8857
          self.utx.read(iprot)
8858
        else:
8859
          iprot.skip(ftype)
8860
      else:
8861
        iprot.skip(ftype)
8862
      iprot.readFieldEnd()
8863
    iprot.readStructEnd()
8864
 
8865
  def write(self, oprot):
8866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8868
      return
8869
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8870
    if self.success is not None:
1845 vikas 8871
      oprot.writeFieldBegin('success', TType.I64, 0)
8872
      oprot.writeI64(self.success)
8873
      oprot.writeFieldEnd()
3431 rajveer 8874
    if self.utx is not None:
1845 vikas 8875
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8876
      self.utx.write(oprot)
8877
      oprot.writeFieldEnd()
8878
    oprot.writeFieldStop()
8879
    oprot.writeStructEnd()
8880
 
3431 rajveer 8881
  def validate(self):
8882
    return
8883
 
8884
 
1845 vikas 8885
  def __repr__(self):
8886
    L = ['%s=%r' % (key, value)
8887
      for key, value in self.__dict__.iteritems()]
8888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8889
 
8890
  def __eq__(self, other):
8891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8892
 
8893
  def __ne__(self, other):
8894
    return not (self == other)
8895
 
8896
class getTrackLogById_args:
8897
  """
8898
  Attributes:
8899
   - id
8900
  """
8901
 
8902
  thrift_spec = (
8903
    None, # 0
8904
    (1, TType.I64, 'id', None, None, ), # 1
8905
  )
8906
 
8907
  def __init__(self, id=None,):
8908
    self.id = id
8909
 
8910
  def read(self, iprot):
8911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8913
      return
8914
    iprot.readStructBegin()
8915
    while True:
8916
      (fname, ftype, fid) = iprot.readFieldBegin()
8917
      if ftype == TType.STOP:
8918
        break
8919
      if fid == 1:
8920
        if ftype == TType.I64:
8921
          self.id = iprot.readI64();
8922
        else:
8923
          iprot.skip(ftype)
8924
      else:
8925
        iprot.skip(ftype)
8926
      iprot.readFieldEnd()
8927
    iprot.readStructEnd()
8928
 
8929
  def write(self, oprot):
8930
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8931
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8932
      return
8933
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8934
    if self.id is not None:
1845 vikas 8935
      oprot.writeFieldBegin('id', TType.I64, 1)
8936
      oprot.writeI64(self.id)
8937
      oprot.writeFieldEnd()
8938
    oprot.writeFieldStop()
8939
    oprot.writeStructEnd()
8940
 
3431 rajveer 8941
  def validate(self):
8942
    return
8943
 
8944
 
1845 vikas 8945
  def __repr__(self):
8946
    L = ['%s=%r' % (key, value)
8947
      for key, value in self.__dict__.iteritems()]
8948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8949
 
8950
  def __eq__(self, other):
8951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8952
 
8953
  def __ne__(self, other):
8954
    return not (self == other)
8955
 
8956
class getTrackLogById_result:
8957
  """
8958
  Attributes:
8959
   - success
8960
   - utx
8961
  """
8962
 
8963
  thrift_spec = (
8964
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8965
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8966
  )
8967
 
8968
  def __init__(self, success=None, utx=None,):
8969
    self.success = success
8970
    self.utx = utx
8971
 
8972
  def read(self, iprot):
8973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8975
      return
8976
    iprot.readStructBegin()
8977
    while True:
8978
      (fname, ftype, fid) = iprot.readFieldBegin()
8979
      if ftype == TType.STOP:
8980
        break
8981
      if fid == 0:
8982
        if ftype == TType.STRUCT:
8983
          self.success = TrackLog()
8984
          self.success.read(iprot)
8985
        else:
8986
          iprot.skip(ftype)
8987
      elif fid == 1:
8988
        if ftype == TType.STRUCT:
1996 vikas 8989
          self.utx = UserAffiliateException()
1845 vikas 8990
          self.utx.read(iprot)
8991
        else:
8992
          iprot.skip(ftype)
8993
      else:
8994
        iprot.skip(ftype)
8995
      iprot.readFieldEnd()
8996
    iprot.readStructEnd()
8997
 
8998
  def write(self, oprot):
8999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9001
      return
9002
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9003
    if self.success is not None:
1845 vikas 9004
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9005
      self.success.write(oprot)
9006
      oprot.writeFieldEnd()
3431 rajveer 9007
    if self.utx is not None:
1845 vikas 9008
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9009
      self.utx.write(oprot)
9010
      oprot.writeFieldEnd()
9011
    oprot.writeFieldStop()
9012
    oprot.writeStructEnd()
9013
 
3431 rajveer 9014
  def validate(self):
9015
    return
9016
 
9017
 
1845 vikas 9018
  def __repr__(self):
9019
    L = ['%s=%r' % (key, value)
9020
      for key, value in self.__dict__.iteritems()]
9021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9022
 
9023
  def __eq__(self, other):
9024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9025
 
9026
  def __ne__(self, other):
9027
    return not (self == other)
9028
 
1996 vikas 9029
class getTrackLogsByAffiliate_args:
1845 vikas 9030
  """
9031
  Attributes:
1996 vikas 9032
   - affiliateId
3293 vikas 9033
   - startDate
9034
   - endDate
1845 vikas 9035
  """
9036
 
9037
  thrift_spec = (
9038
    None, # 0
1996 vikas 9039
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9040
    (2, TType.I64, 'startDate', None, None, ), # 2
9041
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9042
  )
9043
 
3293 vikas 9044
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9045
    self.affiliateId = affiliateId
3293 vikas 9046
    self.startDate = startDate
9047
    self.endDate = endDate
1845 vikas 9048
 
9049
  def read(self, iprot):
9050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9052
      return
9053
    iprot.readStructBegin()
9054
    while True:
9055
      (fname, ftype, fid) = iprot.readFieldBegin()
9056
      if ftype == TType.STOP:
9057
        break
9058
      if fid == 1:
9059
        if ftype == TType.I64:
1996 vikas 9060
          self.affiliateId = iprot.readI64();
1845 vikas 9061
        else:
9062
          iprot.skip(ftype)
3293 vikas 9063
      elif fid == 2:
9064
        if ftype == TType.I64:
9065
          self.startDate = iprot.readI64();
9066
        else:
9067
          iprot.skip(ftype)
9068
      elif fid == 3:
9069
        if ftype == TType.I64:
9070
          self.endDate = iprot.readI64();
9071
        else:
9072
          iprot.skip(ftype)
1845 vikas 9073
      else:
9074
        iprot.skip(ftype)
9075
      iprot.readFieldEnd()
9076
    iprot.readStructEnd()
9077
 
9078
  def write(self, oprot):
9079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9081
      return
1996 vikas 9082
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9083
    if self.affiliateId is not None:
1996 vikas 9084
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9085
      oprot.writeI64(self.affiliateId)
1845 vikas 9086
      oprot.writeFieldEnd()
3431 rajveer 9087
    if self.startDate is not None:
3293 vikas 9088
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9089
      oprot.writeI64(self.startDate)
9090
      oprot.writeFieldEnd()
3431 rajveer 9091
    if self.endDate is not None:
3293 vikas 9092
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9093
      oprot.writeI64(self.endDate)
9094
      oprot.writeFieldEnd()
1845 vikas 9095
    oprot.writeFieldStop()
9096
    oprot.writeStructEnd()
9097
 
3431 rajveer 9098
  def validate(self):
9099
    return
9100
 
9101
 
1845 vikas 9102
  def __repr__(self):
9103
    L = ['%s=%r' % (key, value)
9104
      for key, value in self.__dict__.iteritems()]
9105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9106
 
9107
  def __eq__(self, other):
9108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9109
 
9110
  def __ne__(self, other):
9111
    return not (self == other)
9112
 
1996 vikas 9113
class getTrackLogsByAffiliate_result:
1845 vikas 9114
  """
9115
  Attributes:
9116
   - success
9117
   - utx
9118
  """
9119
 
9120
  thrift_spec = (
9121
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9122
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9123
  )
9124
 
9125
  def __init__(self, success=None, utx=None,):
9126
    self.success = success
9127
    self.utx = utx
9128
 
9129
  def read(self, iprot):
9130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9132
      return
9133
    iprot.readStructBegin()
9134
    while True:
9135
      (fname, ftype, fid) = iprot.readFieldBegin()
9136
      if ftype == TType.STOP:
9137
        break
9138
      if fid == 0:
9139
        if ftype == TType.LIST:
9140
          self.success = []
3385 varun.gupt 9141
          (_etype73, _size70) = iprot.readListBegin()
9142
          for _i74 in xrange(_size70):
9143
            _elem75 = TrackLog()
9144
            _elem75.read(iprot)
9145
            self.success.append(_elem75)
1845 vikas 9146
          iprot.readListEnd()
9147
        else:
9148
          iprot.skip(ftype)
9149
      elif fid == 1:
9150
        if ftype == TType.STRUCT:
1996 vikas 9151
          self.utx = UserAffiliateException()
1845 vikas 9152
          self.utx.read(iprot)
9153
        else:
9154
          iprot.skip(ftype)
9155
      else:
9156
        iprot.skip(ftype)
9157
      iprot.readFieldEnd()
9158
    iprot.readStructEnd()
9159
 
9160
  def write(self, oprot):
9161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9163
      return
1996 vikas 9164
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9165
    if self.success is not None:
1845 vikas 9166
      oprot.writeFieldBegin('success', TType.LIST, 0)
9167
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9168
      for iter76 in self.success:
9169
        iter76.write(oprot)
1845 vikas 9170
      oprot.writeListEnd()
9171
      oprot.writeFieldEnd()
3431 rajveer 9172
    if self.utx is not None:
1845 vikas 9173
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9174
      self.utx.write(oprot)
9175
      oprot.writeFieldEnd()
9176
    oprot.writeFieldStop()
9177
    oprot.writeStructEnd()
9178
 
3431 rajveer 9179
  def validate(self):
9180
    return
9181
 
9182
 
1845 vikas 9183
  def __repr__(self):
9184
    L = ['%s=%r' % (key, value)
9185
      for key, value in self.__dict__.iteritems()]
9186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9187
 
9188
  def __eq__(self, other):
9189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9190
 
9191
  def __ne__(self, other):
9192
    return not (self == other)
9193
 
9194
class getTrackLogsByUser_args:
9195
  """
9196
  Attributes:
9197
   - userId
9198
  """
9199
 
9200
  thrift_spec = (
9201
    None, # 0
9202
    (1, TType.I64, 'userId', None, None, ), # 1
9203
  )
9204
 
9205
  def __init__(self, userId=None,):
9206
    self.userId = userId
9207
 
9208
  def read(self, iprot):
9209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9211
      return
9212
    iprot.readStructBegin()
9213
    while True:
9214
      (fname, ftype, fid) = iprot.readFieldBegin()
9215
      if ftype == TType.STOP:
9216
        break
9217
      if fid == 1:
9218
        if ftype == TType.I64:
9219
          self.userId = iprot.readI64();
9220
        else:
9221
          iprot.skip(ftype)
9222
      else:
9223
        iprot.skip(ftype)
9224
      iprot.readFieldEnd()
9225
    iprot.readStructEnd()
9226
 
9227
  def write(self, oprot):
9228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9230
      return
9231
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9232
    if self.userId is not None:
1845 vikas 9233
      oprot.writeFieldBegin('userId', TType.I64, 1)
9234
      oprot.writeI64(self.userId)
9235
      oprot.writeFieldEnd()
9236
    oprot.writeFieldStop()
9237
    oprot.writeStructEnd()
9238
 
3431 rajveer 9239
  def validate(self):
9240
    return
9241
 
9242
 
1845 vikas 9243
  def __repr__(self):
9244
    L = ['%s=%r' % (key, value)
9245
      for key, value in self.__dict__.iteritems()]
9246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9247
 
9248
  def __eq__(self, other):
9249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9250
 
9251
  def __ne__(self, other):
9252
    return not (self == other)
9253
 
9254
class getTrackLogsByUser_result:
9255
  """
9256
  Attributes:
9257
   - success
9258
   - utx
9259
  """
9260
 
9261
  thrift_spec = (
9262
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9263
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9264
  )
9265
 
9266
  def __init__(self, success=None, utx=None,):
9267
    self.success = success
9268
    self.utx = utx
9269
 
9270
  def read(self, iprot):
9271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9273
      return
9274
    iprot.readStructBegin()
9275
    while True:
9276
      (fname, ftype, fid) = iprot.readFieldBegin()
9277
      if ftype == TType.STOP:
9278
        break
9279
      if fid == 0:
9280
        if ftype == TType.LIST:
9281
          self.success = []
3385 varun.gupt 9282
          (_etype80, _size77) = iprot.readListBegin()
9283
          for _i81 in xrange(_size77):
9284
            _elem82 = TrackLog()
9285
            _elem82.read(iprot)
9286
            self.success.append(_elem82)
1845 vikas 9287
          iprot.readListEnd()
9288
        else:
9289
          iprot.skip(ftype)
9290
      elif fid == 1:
9291
        if ftype == TType.STRUCT:
1996 vikas 9292
          self.utx = UserAffiliateException()
1845 vikas 9293
          self.utx.read(iprot)
9294
        else:
9295
          iprot.skip(ftype)
9296
      else:
9297
        iprot.skip(ftype)
9298
      iprot.readFieldEnd()
9299
    iprot.readStructEnd()
9300
 
9301
  def write(self, oprot):
9302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9304
      return
9305
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9306
    if self.success is not None:
1845 vikas 9307
      oprot.writeFieldBegin('success', TType.LIST, 0)
9308
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9309
      for iter83 in self.success:
9310
        iter83.write(oprot)
1845 vikas 9311
      oprot.writeListEnd()
9312
      oprot.writeFieldEnd()
3431 rajveer 9313
    if self.utx is not None:
1845 vikas 9314
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9315
      self.utx.write(oprot)
9316
      oprot.writeFieldEnd()
9317
    oprot.writeFieldStop()
9318
    oprot.writeStructEnd()
9319
 
3431 rajveer 9320
  def validate(self):
9321
    return
9322
 
9323
 
1845 vikas 9324
  def __repr__(self):
9325
    L = ['%s=%r' % (key, value)
9326
      for key, value in self.__dict__.iteritems()]
9327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9328
 
9329
  def __eq__(self, other):
9330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9331
 
9332
  def __ne__(self, other):
9333
    return not (self == other)
9334
 
9335
class getTrackLogs_args:
9336
  """
9337
  Attributes:
9338
   - userId
9339
   - event
9340
   - url
9341
  """
9342
 
9343
  thrift_spec = (
9344
    None, # 0
1996 vikas 9345
    (1, TType.I64, 'userId', None, None, ), # 1
9346
    (2, TType.STRING, 'event', None, None, ), # 2
9347
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9348
  )
9349
 
1996 vikas 9350
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9351
    self.userId = userId
9352
    self.event = event
9353
    self.url = url
9354
 
9355
  def read(self, iprot):
9356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9358
      return
9359
    iprot.readStructBegin()
9360
    while True:
9361
      (fname, ftype, fid) = iprot.readFieldBegin()
9362
      if ftype == TType.STOP:
9363
        break
9364
      if fid == 1:
9365
        if ftype == TType.I64:
1996 vikas 9366
          self.userId = iprot.readI64();
1845 vikas 9367
        else:
9368
          iprot.skip(ftype)
9369
      elif fid == 2:
9370
        if ftype == TType.STRING:
9371
          self.event = iprot.readString();
9372
        else:
9373
          iprot.skip(ftype)
1996 vikas 9374
      elif fid == 3:
1845 vikas 9375
        if ftype == TType.STRING:
9376
          self.url = iprot.readString();
9377
        else:
9378
          iprot.skip(ftype)
9379
      else:
9380
        iprot.skip(ftype)
9381
      iprot.readFieldEnd()
9382
    iprot.readStructEnd()
9383
 
9384
  def write(self, oprot):
9385
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9386
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9387
      return
9388
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9389
    if self.userId is not None:
1996 vikas 9390
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9391
      oprot.writeI64(self.userId)
9392
      oprot.writeFieldEnd()
3431 rajveer 9393
    if self.event is not None:
1996 vikas 9394
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9395
      oprot.writeString(self.event)
9396
      oprot.writeFieldEnd()
3431 rajveer 9397
    if self.url is not None:
1996 vikas 9398
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9399
      oprot.writeString(self.url)
9400
      oprot.writeFieldEnd()
9401
    oprot.writeFieldStop()
9402
    oprot.writeStructEnd()
9403
 
3431 rajveer 9404
  def validate(self):
9405
    return
9406
 
9407
 
1845 vikas 9408
  def __repr__(self):
9409
    L = ['%s=%r' % (key, value)
9410
      for key, value in self.__dict__.iteritems()]
9411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9412
 
9413
  def __eq__(self, other):
9414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9415
 
9416
  def __ne__(self, other):
9417
    return not (self == other)
9418
 
9419
class getTrackLogs_result:
9420
  """
9421
  Attributes:
9422
   - success
9423
   - utx
9424
  """
9425
 
9426
  thrift_spec = (
9427
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9428
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9429
  )
9430
 
9431
  def __init__(self, success=None, utx=None,):
9432
    self.success = success
9433
    self.utx = utx
9434
 
9435
  def read(self, iprot):
9436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9438
      return
9439
    iprot.readStructBegin()
9440
    while True:
9441
      (fname, ftype, fid) = iprot.readFieldBegin()
9442
      if ftype == TType.STOP:
9443
        break
9444
      if fid == 0:
9445
        if ftype == TType.LIST:
9446
          self.success = []
3385 varun.gupt 9447
          (_etype87, _size84) = iprot.readListBegin()
9448
          for _i88 in xrange(_size84):
9449
            _elem89 = TrackLog()
9450
            _elem89.read(iprot)
9451
            self.success.append(_elem89)
1845 vikas 9452
          iprot.readListEnd()
9453
        else:
9454
          iprot.skip(ftype)
9455
      elif fid == 1:
9456
        if ftype == TType.STRUCT:
1996 vikas 9457
          self.utx = UserAffiliateException()
1845 vikas 9458
          self.utx.read(iprot)
9459
        else:
9460
          iprot.skip(ftype)
9461
      else:
9462
        iprot.skip(ftype)
9463
      iprot.readFieldEnd()
9464
    iprot.readStructEnd()
9465
 
9466
  def write(self, oprot):
9467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9469
      return
9470
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9471
    if self.success is not None:
1845 vikas 9472
      oprot.writeFieldBegin('success', TType.LIST, 0)
9473
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 9474
      for iter90 in self.success:
9475
        iter90.write(oprot)
1845 vikas 9476
      oprot.writeListEnd()
9477
      oprot.writeFieldEnd()
3431 rajveer 9478
    if self.utx is not None:
1845 vikas 9479
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9480
      self.utx.write(oprot)
9481
      oprot.writeFieldEnd()
9482
    oprot.writeFieldStop()
9483
    oprot.writeStructEnd()
9484
 
3431 rajveer 9485
  def validate(self):
9486
    return
9487
 
9488
 
1845 vikas 9489
  def __repr__(self):
9490
    L = ['%s=%r' % (key, value)
9491
      for key, value in self.__dict__.iteritems()]
9492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9493
 
9494
  def __eq__(self, other):
9495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9496
 
9497
  def __ne__(self, other):
9498
    return not (self == other)
9499
 
559 chandransh 9500
class createCart_args:
94 ashish 9501
  """
9502
  Attributes:
559 chandransh 9503
   - userId
94 ashish 9504
  """
9505
 
9506
  thrift_spec = (
9507
    None, # 0
559 chandransh 9508
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9509
  )
9510
 
559 chandransh 9511
  def __init__(self, userId=None,):
9512
    self.userId = userId
94 ashish 9513
 
9514
  def read(self, iprot):
9515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9517
      return
9518
    iprot.readStructBegin()
9519
    while True:
9520
      (fname, ftype, fid) = iprot.readFieldBegin()
9521
      if ftype == TType.STOP:
9522
        break
9523
      if fid == 1:
9524
        if ftype == TType.I64:
559 chandransh 9525
          self.userId = iprot.readI64();
94 ashish 9526
        else:
9527
          iprot.skip(ftype)
559 chandransh 9528
      else:
9529
        iprot.skip(ftype)
9530
      iprot.readFieldEnd()
9531
    iprot.readStructEnd()
9532
 
9533
  def write(self, oprot):
9534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9536
      return
9537
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9538
    if self.userId is not None:
559 chandransh 9539
      oprot.writeFieldBegin('userId', TType.I64, 1)
9540
      oprot.writeI64(self.userId)
9541
      oprot.writeFieldEnd()
9542
    oprot.writeFieldStop()
9543
    oprot.writeStructEnd()
9544
 
3431 rajveer 9545
  def validate(self):
9546
    return
9547
 
9548
 
559 chandransh 9549
  def __repr__(self):
9550
    L = ['%s=%r' % (key, value)
9551
      for key, value in self.__dict__.iteritems()]
9552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9553
 
9554
  def __eq__(self, other):
9555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9556
 
9557
  def __ne__(self, other):
9558
    return not (self == other)
9559
 
9560
class createCart_result:
9561
  """
9562
  Attributes:
9563
   - success
9564
   - scx
9565
  """
9566
 
9567
  thrift_spec = (
9568
    (0, TType.I64, 'success', None, None, ), # 0
9569
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9570
  )
9571
 
9572
  def __init__(self, success=None, scx=None,):
9573
    self.success = success
9574
    self.scx = scx
9575
 
9576
  def read(self, iprot):
9577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9579
      return
9580
    iprot.readStructBegin()
9581
    while True:
9582
      (fname, ftype, fid) = iprot.readFieldBegin()
9583
      if ftype == TType.STOP:
9584
        break
9585
      if fid == 0:
94 ashish 9586
        if ftype == TType.I64:
559 chandransh 9587
          self.success = iprot.readI64();
94 ashish 9588
        else:
9589
          iprot.skip(ftype)
559 chandransh 9590
      elif fid == 1:
9591
        if ftype == TType.STRUCT:
9592
          self.scx = ShoppingCartException()
9593
          self.scx.read(iprot)
9594
        else:
9595
          iprot.skip(ftype)
94 ashish 9596
      else:
9597
        iprot.skip(ftype)
9598
      iprot.readFieldEnd()
9599
    iprot.readStructEnd()
9600
 
9601
  def write(self, oprot):
9602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9604
      return
559 chandransh 9605
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9606
    if self.success is not None:
559 chandransh 9607
      oprot.writeFieldBegin('success', TType.I64, 0)
9608
      oprot.writeI64(self.success)
94 ashish 9609
      oprot.writeFieldEnd()
3431 rajveer 9610
    if self.scx is not None:
559 chandransh 9611
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9612
      self.scx.write(oprot)
94 ashish 9613
      oprot.writeFieldEnd()
9614
    oprot.writeFieldStop()
9615
    oprot.writeStructEnd()
9616
 
3431 rajveer 9617
  def validate(self):
9618
    return
9619
 
9620
 
94 ashish 9621
  def __repr__(self):
9622
    L = ['%s=%r' % (key, value)
9623
      for key, value in self.__dict__.iteritems()]
9624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9625
 
9626
  def __eq__(self, other):
9627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9628
 
9629
  def __ne__(self, other):
9630
    return not (self == other)
9631
 
559 chandransh 9632
class getCurrentCart_args:
94 ashish 9633
  """
9634
  Attributes:
559 chandransh 9635
   - userId
9636
  """
9637
 
9638
  thrift_spec = (
9639
    None, # 0
9640
    (1, TType.I64, 'userId', None, None, ), # 1
9641
  )
9642
 
9643
  def __init__(self, userId=None,):
9644
    self.userId = userId
9645
 
9646
  def read(self, iprot):
9647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9649
      return
9650
    iprot.readStructBegin()
9651
    while True:
9652
      (fname, ftype, fid) = iprot.readFieldBegin()
9653
      if ftype == TType.STOP:
9654
        break
9655
      if fid == 1:
9656
        if ftype == TType.I64:
9657
          self.userId = iprot.readI64();
9658
        else:
9659
          iprot.skip(ftype)
9660
      else:
9661
        iprot.skip(ftype)
9662
      iprot.readFieldEnd()
9663
    iprot.readStructEnd()
9664
 
9665
  def write(self, oprot):
9666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9668
      return
9669
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9670
    if self.userId is not None:
559 chandransh 9671
      oprot.writeFieldBegin('userId', TType.I64, 1)
9672
      oprot.writeI64(self.userId)
9673
      oprot.writeFieldEnd()
9674
    oprot.writeFieldStop()
9675
    oprot.writeStructEnd()
9676
 
3431 rajveer 9677
  def validate(self):
9678
    return
9679
 
9680
 
559 chandransh 9681
  def __repr__(self):
9682
    L = ['%s=%r' % (key, value)
9683
      for key, value in self.__dict__.iteritems()]
9684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9685
 
9686
  def __eq__(self, other):
9687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9688
 
9689
  def __ne__(self, other):
9690
    return not (self == other)
9691
 
9692
class getCurrentCart_result:
9693
  """
9694
  Attributes:
94 ashish 9695
   - success
559 chandransh 9696
   - scx
94 ashish 9697
  """
9698
 
9699
  thrift_spec = (
559 chandransh 9700
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9701
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9702
  )
9703
 
559 chandransh 9704
  def __init__(self, success=None, scx=None,):
94 ashish 9705
    self.success = success
559 chandransh 9706
    self.scx = scx
94 ashish 9707
 
9708
  def read(self, iprot):
9709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9711
      return
9712
    iprot.readStructBegin()
9713
    while True:
9714
      (fname, ftype, fid) = iprot.readFieldBegin()
9715
      if ftype == TType.STOP:
9716
        break
9717
      if fid == 0:
559 chandransh 9718
        if ftype == TType.STRUCT:
9719
          self.success = Cart()
9720
          self.success.read(iprot)
94 ashish 9721
        else:
9722
          iprot.skip(ftype)
9723
      elif fid == 1:
9724
        if ftype == TType.STRUCT:
559 chandransh 9725
          self.scx = ShoppingCartException()
9726
          self.scx.read(iprot)
94 ashish 9727
        else:
9728
          iprot.skip(ftype)
9729
      else:
9730
        iprot.skip(ftype)
9731
      iprot.readFieldEnd()
9732
    iprot.readStructEnd()
9733
 
9734
  def write(self, oprot):
9735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9737
      return
559 chandransh 9738
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9739
    if self.success is not None:
559 chandransh 9740
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9741
      self.success.write(oprot)
94 ashish 9742
      oprot.writeFieldEnd()
3431 rajveer 9743
    if self.scx is not None:
559 chandransh 9744
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9745
      self.scx.write(oprot)
94 ashish 9746
      oprot.writeFieldEnd()
9747
    oprot.writeFieldStop()
9748
    oprot.writeStructEnd()
9749
 
3431 rajveer 9750
  def validate(self):
9751
    return
9752
 
9753
 
94 ashish 9754
  def __repr__(self):
9755
    L = ['%s=%r' % (key, value)
9756
      for key, value in self.__dict__.iteritems()]
9757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9758
 
9759
  def __eq__(self, other):
9760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9761
 
9762
  def __ne__(self, other):
9763
    return not (self == other)
9764
 
559 chandransh 9765
class getCart_args:
504 rajveer 9766
  """
9767
  Attributes:
559 chandransh 9768
   - cartId
504 rajveer 9769
  """
9770
 
9771
  thrift_spec = (
9772
    None, # 0
559 chandransh 9773
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9774
  )
9775
 
559 chandransh 9776
  def __init__(self, cartId=None,):
9777
    self.cartId = cartId
504 rajveer 9778
 
9779
  def read(self, iprot):
9780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9782
      return
9783
    iprot.readStructBegin()
9784
    while True:
9785
      (fname, ftype, fid) = iprot.readFieldBegin()
9786
      if ftype == TType.STOP:
9787
        break
9788
      if fid == 1:
9789
        if ftype == TType.I64:
559 chandransh 9790
          self.cartId = iprot.readI64();
504 rajveer 9791
        else:
9792
          iprot.skip(ftype)
9793
      else:
9794
        iprot.skip(ftype)
9795
      iprot.readFieldEnd()
9796
    iprot.readStructEnd()
9797
 
9798
  def write(self, oprot):
9799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9801
      return
559 chandransh 9802
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9803
    if self.cartId is not None:
559 chandransh 9804
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9805
      oprot.writeI64(self.cartId)
504 rajveer 9806
      oprot.writeFieldEnd()
9807
    oprot.writeFieldStop()
9808
    oprot.writeStructEnd()
9809
 
3431 rajveer 9810
  def validate(self):
9811
    return
9812
 
9813
 
504 rajveer 9814
  def __repr__(self):
9815
    L = ['%s=%r' % (key, value)
9816
      for key, value in self.__dict__.iteritems()]
9817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9818
 
9819
  def __eq__(self, other):
9820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9821
 
9822
  def __ne__(self, other):
9823
    return not (self == other)
9824
 
559 chandransh 9825
class getCart_result:
504 rajveer 9826
  """
9827
  Attributes:
9828
   - success
559 chandransh 9829
   - scx
504 rajveer 9830
  """
9831
 
9832
  thrift_spec = (
559 chandransh 9833
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9834
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9835
  )
9836
 
559 chandransh 9837
  def __init__(self, success=None, scx=None,):
504 rajveer 9838
    self.success = success
559 chandransh 9839
    self.scx = scx
504 rajveer 9840
 
9841
  def read(self, iprot):
9842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9844
      return
9845
    iprot.readStructBegin()
9846
    while True:
9847
      (fname, ftype, fid) = iprot.readFieldBegin()
9848
      if ftype == TType.STOP:
9849
        break
9850
      if fid == 0:
559 chandransh 9851
        if ftype == TType.STRUCT:
9852
          self.success = Cart()
9853
          self.success.read(iprot)
504 rajveer 9854
        else:
9855
          iprot.skip(ftype)
9856
      elif fid == 1:
9857
        if ftype == TType.STRUCT:
559 chandransh 9858
          self.scx = ShoppingCartException()
9859
          self.scx.read(iprot)
504 rajveer 9860
        else:
9861
          iprot.skip(ftype)
9862
      else:
9863
        iprot.skip(ftype)
9864
      iprot.readFieldEnd()
9865
    iprot.readStructEnd()
9866
 
9867
  def write(self, oprot):
9868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9870
      return
559 chandransh 9871
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9872
    if self.success is not None:
559 chandransh 9873
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9874
      self.success.write(oprot)
504 rajveer 9875
      oprot.writeFieldEnd()
3431 rajveer 9876
    if self.scx is not None:
559 chandransh 9877
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9878
      self.scx.write(oprot)
504 rajveer 9879
      oprot.writeFieldEnd()
9880
    oprot.writeFieldStop()
9881
    oprot.writeStructEnd()
9882
 
3431 rajveer 9883
  def validate(self):
9884
    return
9885
 
9886
 
504 rajveer 9887
  def __repr__(self):
9888
    L = ['%s=%r' % (key, value)
9889
      for key, value in self.__dict__.iteritems()]
9890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9891
 
9892
  def __eq__(self, other):
9893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9894
 
9895
  def __ne__(self, other):
9896
    return not (self == other)
9897
 
559 chandransh 9898
class getCartsForUser_args:
94 ashish 9899
  """
9900
  Attributes:
559 chandransh 9901
   - userId
9902
   - status
94 ashish 9903
  """
9904
 
9905
  thrift_spec = (
9906
    None, # 0
559 chandransh 9907
    (1, TType.I64, 'userId', None, None, ), # 1
9908
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 9909
  )
9910
 
559 chandransh 9911
  def __init__(self, userId=None, status=None,):
9912
    self.userId = userId
9913
    self.status = status
94 ashish 9914
 
9915
  def read(self, iprot):
9916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9918
      return
9919
    iprot.readStructBegin()
9920
    while True:
9921
      (fname, ftype, fid) = iprot.readFieldBegin()
9922
      if ftype == TType.STOP:
9923
        break
9924
      if fid == 1:
9925
        if ftype == TType.I64:
559 chandransh 9926
          self.userId = iprot.readI64();
94 ashish 9927
        else:
9928
          iprot.skip(ftype)
9929
      elif fid == 2:
559 chandransh 9930
        if ftype == TType.I32:
9931
          self.status = iprot.readI32();
94 ashish 9932
        else:
9933
          iprot.skip(ftype)
9934
      else:
9935
        iprot.skip(ftype)
9936
      iprot.readFieldEnd()
9937
    iprot.readStructEnd()
9938
 
9939
  def write(self, oprot):
9940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9942
      return
559 chandransh 9943
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 9944
    if self.userId is not None:
559 chandransh 9945
      oprot.writeFieldBegin('userId', TType.I64, 1)
9946
      oprot.writeI64(self.userId)
94 ashish 9947
      oprot.writeFieldEnd()
3431 rajveer 9948
    if self.status is not None:
559 chandransh 9949
      oprot.writeFieldBegin('status', TType.I32, 2)
9950
      oprot.writeI32(self.status)
94 ashish 9951
      oprot.writeFieldEnd()
9952
    oprot.writeFieldStop()
9953
    oprot.writeStructEnd()
9954
 
3431 rajveer 9955
  def validate(self):
9956
    return
9957
 
9958
 
94 ashish 9959
  def __repr__(self):
9960
    L = ['%s=%r' % (key, value)
9961
      for key, value in self.__dict__.iteritems()]
9962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9963
 
9964
  def __eq__(self, other):
9965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9966
 
9967
  def __ne__(self, other):
9968
    return not (self == other)
9969
 
559 chandransh 9970
class getCartsForUser_result:
94 ashish 9971
  """
9972
  Attributes:
9973
   - success
559 chandransh 9974
   - scx
94 ashish 9975
  """
9976
 
9977
  thrift_spec = (
559 chandransh 9978
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9979
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9980
  )
9981
 
559 chandransh 9982
  def __init__(self, success=None, scx=None,):
94 ashish 9983
    self.success = success
559 chandransh 9984
    self.scx = scx
94 ashish 9985
 
9986
  def read(self, iprot):
9987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9989
      return
9990
    iprot.readStructBegin()
9991
    while True:
9992
      (fname, ftype, fid) = iprot.readFieldBegin()
9993
      if ftype == TType.STOP:
9994
        break
9995
      if fid == 0:
559 chandransh 9996
        if ftype == TType.LIST:
9997
          self.success = []
3385 varun.gupt 9998
          (_etype94, _size91) = iprot.readListBegin()
9999
          for _i95 in xrange(_size91):
10000
            _elem96 = Cart()
10001
            _elem96.read(iprot)
10002
            self.success.append(_elem96)
559 chandransh 10003
          iprot.readListEnd()
94 ashish 10004
        else:
10005
          iprot.skip(ftype)
10006
      elif fid == 1:
10007
        if ftype == TType.STRUCT:
559 chandransh 10008
          self.scx = ShoppingCartException()
10009
          self.scx.read(iprot)
94 ashish 10010
        else:
10011
          iprot.skip(ftype)
10012
      else:
10013
        iprot.skip(ftype)
10014
      iprot.readFieldEnd()
10015
    iprot.readStructEnd()
10016
 
10017
  def write(self, oprot):
10018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10020
      return
559 chandransh 10021
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 10022
    if self.success is not None:
559 chandransh 10023
      oprot.writeFieldBegin('success', TType.LIST, 0)
10024
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10025
      for iter97 in self.success:
10026
        iter97.write(oprot)
559 chandransh 10027
      oprot.writeListEnd()
94 ashish 10028
      oprot.writeFieldEnd()
3431 rajveer 10029
    if self.scx is not None:
559 chandransh 10030
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10031
      self.scx.write(oprot)
94 ashish 10032
      oprot.writeFieldEnd()
10033
    oprot.writeFieldStop()
10034
    oprot.writeStructEnd()
10035
 
3431 rajveer 10036
  def validate(self):
10037
    return
10038
 
10039
 
94 ashish 10040
  def __repr__(self):
10041
    L = ['%s=%r' % (key, value)
10042
      for key, value in self.__dict__.iteritems()]
10043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10044
 
10045
  def __eq__(self, other):
10046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10047
 
10048
  def __ne__(self, other):
10049
    return not (self == other)
10050
 
559 chandransh 10051
class getCartsByStatus_args:
94 ashish 10052
  """
10053
  Attributes:
559 chandransh 10054
   - status
94 ashish 10055
  """
10056
 
10057
  thrift_spec = (
10058
    None, # 0
559 chandransh 10059
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10060
  )
10061
 
559 chandransh 10062
  def __init__(self, status=None,):
10063
    self.status = status
94 ashish 10064
 
10065
  def read(self, iprot):
10066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10068
      return
10069
    iprot.readStructBegin()
10070
    while True:
10071
      (fname, ftype, fid) = iprot.readFieldBegin()
10072
      if ftype == TType.STOP:
10073
        break
10074
      if fid == 1:
559 chandransh 10075
        if ftype == TType.I32:
10076
          self.status = iprot.readI32();
10077
        else:
10078
          iprot.skip(ftype)
10079
      else:
10080
        iprot.skip(ftype)
10081
      iprot.readFieldEnd()
10082
    iprot.readStructEnd()
10083
 
10084
  def write(self, oprot):
10085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10087
      return
10088
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10089
    if self.status is not None:
559 chandransh 10090
      oprot.writeFieldBegin('status', TType.I32, 1)
10091
      oprot.writeI32(self.status)
10092
      oprot.writeFieldEnd()
10093
    oprot.writeFieldStop()
10094
    oprot.writeStructEnd()
10095
 
3431 rajveer 10096
  def validate(self):
10097
    return
10098
 
10099
 
559 chandransh 10100
  def __repr__(self):
10101
    L = ['%s=%r' % (key, value)
10102
      for key, value in self.__dict__.iteritems()]
10103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10104
 
10105
  def __eq__(self, other):
10106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10107
 
10108
  def __ne__(self, other):
10109
    return not (self == other)
10110
 
10111
class getCartsByStatus_result:
10112
  """
10113
  Attributes:
10114
   - success
10115
   - scx
10116
  """
10117
 
10118
  thrift_spec = (
10119
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10120
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10121
  )
10122
 
10123
  def __init__(self, success=None, scx=None,):
10124
    self.success = success
10125
    self.scx = scx
10126
 
10127
  def read(self, iprot):
10128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10130
      return
10131
    iprot.readStructBegin()
10132
    while True:
10133
      (fname, ftype, fid) = iprot.readFieldBegin()
10134
      if ftype == TType.STOP:
10135
        break
10136
      if fid == 0:
10137
        if ftype == TType.LIST:
10138
          self.success = []
3385 varun.gupt 10139
          (_etype101, _size98) = iprot.readListBegin()
10140
          for _i102 in xrange(_size98):
10141
            _elem103 = Cart()
10142
            _elem103.read(iprot)
10143
            self.success.append(_elem103)
559 chandransh 10144
          iprot.readListEnd()
10145
        else:
10146
          iprot.skip(ftype)
10147
      elif fid == 1:
10148
        if ftype == TType.STRUCT:
10149
          self.scx = ShoppingCartException()
10150
          self.scx.read(iprot)
10151
        else:
10152
          iprot.skip(ftype)
10153
      else:
10154
        iprot.skip(ftype)
10155
      iprot.readFieldEnd()
10156
    iprot.readStructEnd()
10157
 
10158
  def write(self, oprot):
10159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10161
      return
10162
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10163
    if self.success is not None:
559 chandransh 10164
      oprot.writeFieldBegin('success', TType.LIST, 0)
10165
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10166
      for iter104 in self.success:
10167
        iter104.write(oprot)
559 chandransh 10168
      oprot.writeListEnd()
10169
      oprot.writeFieldEnd()
3431 rajveer 10170
    if self.scx is not None:
559 chandransh 10171
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10172
      self.scx.write(oprot)
10173
      oprot.writeFieldEnd()
10174
    oprot.writeFieldStop()
10175
    oprot.writeStructEnd()
10176
 
3431 rajveer 10177
  def validate(self):
10178
    return
10179
 
10180
 
559 chandransh 10181
  def __repr__(self):
10182
    L = ['%s=%r' % (key, value)
10183
      for key, value in self.__dict__.iteritems()]
10184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10185
 
10186
  def __eq__(self, other):
10187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10188
 
10189
  def __ne__(self, other):
10190
    return not (self == other)
10191
 
10192
class getCartsByTime_args:
10193
  """
10194
  Attributes:
10195
   - from_time
10196
   - to_time
10197
   - status
10198
  """
10199
 
10200
  thrift_spec = (
10201
    None, # 0
10202
    (1, TType.I64, 'from_time', None, None, ), # 1
10203
    (2, TType.I64, 'to_time', None, None, ), # 2
10204
    (3, TType.I32, 'status', None, None, ), # 3
10205
  )
10206
 
10207
  def __init__(self, from_time=None, to_time=None, status=None,):
10208
    self.from_time = from_time
10209
    self.to_time = to_time
10210
    self.status = status
10211
 
10212
  def read(self, iprot):
10213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10215
      return
10216
    iprot.readStructBegin()
10217
    while True:
10218
      (fname, ftype, fid) = iprot.readFieldBegin()
10219
      if ftype == TType.STOP:
10220
        break
10221
      if fid == 1:
94 ashish 10222
        if ftype == TType.I64:
559 chandransh 10223
          self.from_time = iprot.readI64();
94 ashish 10224
        else:
10225
          iprot.skip(ftype)
122 ashish 10226
      elif fid == 2:
559 chandransh 10227
        if ftype == TType.I64:
10228
          self.to_time = iprot.readI64();
122 ashish 10229
        else:
10230
          iprot.skip(ftype)
559 chandransh 10231
      elif fid == 3:
10232
        if ftype == TType.I32:
10233
          self.status = iprot.readI32();
10234
        else:
10235
          iprot.skip(ftype)
94 ashish 10236
      else:
10237
        iprot.skip(ftype)
10238
      iprot.readFieldEnd()
10239
    iprot.readStructEnd()
10240
 
10241
  def write(self, oprot):
10242
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10243
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10244
      return
559 chandransh 10245
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10246
    if self.from_time is not None:
559 chandransh 10247
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10248
      oprot.writeI64(self.from_time)
94 ashish 10249
      oprot.writeFieldEnd()
3431 rajveer 10250
    if self.to_time is not None:
559 chandransh 10251
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10252
      oprot.writeI64(self.to_time)
122 ashish 10253
      oprot.writeFieldEnd()
3431 rajveer 10254
    if self.status is not None:
559 chandransh 10255
      oprot.writeFieldBegin('status', TType.I32, 3)
10256
      oprot.writeI32(self.status)
10257
      oprot.writeFieldEnd()
94 ashish 10258
    oprot.writeFieldStop()
10259
    oprot.writeStructEnd()
10260
 
3431 rajveer 10261
  def validate(self):
10262
    return
10263
 
10264
 
94 ashish 10265
  def __repr__(self):
10266
    L = ['%s=%r' % (key, value)
10267
      for key, value in self.__dict__.iteritems()]
10268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10269
 
10270
  def __eq__(self, other):
10271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10272
 
10273
  def __ne__(self, other):
10274
    return not (self == other)
10275
 
559 chandransh 10276
class getCartsByTime_result:
94 ashish 10277
  """
10278
  Attributes:
10279
   - success
559 chandransh 10280
   - scx
94 ashish 10281
  """
10282
 
10283
  thrift_spec = (
559 chandransh 10284
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10285
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10286
  )
10287
 
559 chandransh 10288
  def __init__(self, success=None, scx=None,):
94 ashish 10289
    self.success = success
559 chandransh 10290
    self.scx = scx
94 ashish 10291
 
10292
  def read(self, iprot):
10293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10295
      return
10296
    iprot.readStructBegin()
10297
    while True:
10298
      (fname, ftype, fid) = iprot.readFieldBegin()
10299
      if ftype == TType.STOP:
10300
        break
10301
      if fid == 0:
559 chandransh 10302
        if ftype == TType.LIST:
10303
          self.success = []
3385 varun.gupt 10304
          (_etype108, _size105) = iprot.readListBegin()
10305
          for _i109 in xrange(_size105):
10306
            _elem110 = Cart()
10307
            _elem110.read(iprot)
10308
            self.success.append(_elem110)
559 chandransh 10309
          iprot.readListEnd()
94 ashish 10310
        else:
10311
          iprot.skip(ftype)
10312
      elif fid == 1:
10313
        if ftype == TType.STRUCT:
559 chandransh 10314
          self.scx = ShoppingCartException()
10315
          self.scx.read(iprot)
94 ashish 10316
        else:
10317
          iprot.skip(ftype)
10318
      else:
10319
        iprot.skip(ftype)
10320
      iprot.readFieldEnd()
10321
    iprot.readStructEnd()
10322
 
10323
  def write(self, oprot):
10324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10326
      return
559 chandransh 10327
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10328
    if self.success is not None:
559 chandransh 10329
      oprot.writeFieldBegin('success', TType.LIST, 0)
10330
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 10331
      for iter111 in self.success:
10332
        iter111.write(oprot)
559 chandransh 10333
      oprot.writeListEnd()
94 ashish 10334
      oprot.writeFieldEnd()
3431 rajveer 10335
    if self.scx is not None:
559 chandransh 10336
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10337
      self.scx.write(oprot)
94 ashish 10338
      oprot.writeFieldEnd()
10339
    oprot.writeFieldStop()
10340
    oprot.writeStructEnd()
10341
 
3431 rajveer 10342
  def validate(self):
10343
    return
10344
 
10345
 
94 ashish 10346
  def __repr__(self):
10347
    L = ['%s=%r' % (key, value)
10348
      for key, value in self.__dict__.iteritems()]
10349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10350
 
10351
  def __eq__(self, other):
10352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10353
 
10354
  def __ne__(self, other):
10355
    return not (self == other)
10356
 
559 chandransh 10357
class changeCartStatus_args:
94 ashish 10358
  """
10359
  Attributes:
559 chandransh 10360
   - cartId
10361
   - status
94 ashish 10362
  """
10363
 
10364
  thrift_spec = (
10365
    None, # 0
559 chandransh 10366
    (1, TType.I64, 'cartId', None, None, ), # 1
10367
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10368
  )
10369
 
559 chandransh 10370
  def __init__(self, cartId=None, status=None,):
10371
    self.cartId = cartId
10372
    self.status = status
94 ashish 10373
 
10374
  def read(self, iprot):
10375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10377
      return
10378
    iprot.readStructBegin()
10379
    while True:
10380
      (fname, ftype, fid) = iprot.readFieldBegin()
10381
      if ftype == TType.STOP:
10382
        break
10383
      if fid == 1:
10384
        if ftype == TType.I64:
559 chandransh 10385
          self.cartId = iprot.readI64();
94 ashish 10386
        else:
10387
          iprot.skip(ftype)
559 chandransh 10388
      elif fid == 2:
10389
        if ftype == TType.I32:
10390
          self.status = iprot.readI32();
10391
        else:
10392
          iprot.skip(ftype)
94 ashish 10393
      else:
10394
        iprot.skip(ftype)
10395
      iprot.readFieldEnd()
10396
    iprot.readStructEnd()
10397
 
10398
  def write(self, oprot):
10399
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10400
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10401
      return
559 chandransh 10402
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10403
    if self.cartId is not None:
559 chandransh 10404
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10405
      oprot.writeI64(self.cartId)
94 ashish 10406
      oprot.writeFieldEnd()
3431 rajveer 10407
    if self.status is not None:
559 chandransh 10408
      oprot.writeFieldBegin('status', TType.I32, 2)
10409
      oprot.writeI32(self.status)
10410
      oprot.writeFieldEnd()
94 ashish 10411
    oprot.writeFieldStop()
10412
    oprot.writeStructEnd()
10413
 
3431 rajveer 10414
  def validate(self):
10415
    return
10416
 
10417
 
94 ashish 10418
  def __repr__(self):
10419
    L = ['%s=%r' % (key, value)
10420
      for key, value in self.__dict__.iteritems()]
10421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10422
 
10423
  def __eq__(self, other):
10424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10425
 
10426
  def __ne__(self, other):
10427
    return not (self == other)
10428
 
559 chandransh 10429
class changeCartStatus_result:
94 ashish 10430
  """
10431
  Attributes:
559 chandransh 10432
   - scx
10433
  """
10434
 
10435
  thrift_spec = (
10436
    None, # 0
10437
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10438
  )
10439
 
10440
  def __init__(self, scx=None,):
10441
    self.scx = scx
10442
 
10443
  def read(self, iprot):
10444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10446
      return
10447
    iprot.readStructBegin()
10448
    while True:
10449
      (fname, ftype, fid) = iprot.readFieldBegin()
10450
      if ftype == TType.STOP:
10451
        break
10452
      if fid == 1:
10453
        if ftype == TType.STRUCT:
10454
          self.scx = ShoppingCartException()
10455
          self.scx.read(iprot)
10456
        else:
10457
          iprot.skip(ftype)
10458
      else:
10459
        iprot.skip(ftype)
10460
      iprot.readFieldEnd()
10461
    iprot.readStructEnd()
10462
 
10463
  def write(self, oprot):
10464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10466
      return
10467
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10468
    if self.scx is not None:
559 chandransh 10469
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10470
      self.scx.write(oprot)
10471
      oprot.writeFieldEnd()
10472
    oprot.writeFieldStop()
10473
    oprot.writeStructEnd()
10474
 
3431 rajveer 10475
  def validate(self):
10476
    return
10477
 
10478
 
559 chandransh 10479
  def __repr__(self):
10480
    L = ['%s=%r' % (key, value)
10481
      for key, value in self.__dict__.iteritems()]
10482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10483
 
10484
  def __eq__(self, other):
10485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10486
 
10487
  def __ne__(self, other):
10488
    return not (self == other)
10489
 
10490
class addItemToCart_args:
10491
  """
10492
  Attributes:
10493
   - cartId
10494
   - itemId
10495
   - quantity
10496
  """
10497
 
10498
  thrift_spec = (
10499
    None, # 0
10500
    (1, TType.I64, 'cartId', None, None, ), # 1
10501
    (2, TType.I64, 'itemId', None, None, ), # 2
10502
    (3, TType.I64, 'quantity', None, None, ), # 3
10503
  )
10504
 
10505
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10506
    self.cartId = cartId
10507
    self.itemId = itemId
10508
    self.quantity = quantity
10509
 
10510
  def read(self, iprot):
10511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10513
      return
10514
    iprot.readStructBegin()
10515
    while True:
10516
      (fname, ftype, fid) = iprot.readFieldBegin()
10517
      if ftype == TType.STOP:
10518
        break
10519
      if fid == 1:
10520
        if ftype == TType.I64:
10521
          self.cartId = iprot.readI64();
10522
        else:
10523
          iprot.skip(ftype)
10524
      elif fid == 2:
10525
        if ftype == TType.I64:
10526
          self.itemId = iprot.readI64();
10527
        else:
10528
          iprot.skip(ftype)
10529
      elif fid == 3:
10530
        if ftype == TType.I64:
10531
          self.quantity = iprot.readI64();
10532
        else:
10533
          iprot.skip(ftype)
10534
      else:
10535
        iprot.skip(ftype)
10536
      iprot.readFieldEnd()
10537
    iprot.readStructEnd()
10538
 
10539
  def write(self, oprot):
10540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10542
      return
10543
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10544
    if self.cartId is not None:
559 chandransh 10545
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10546
      oprot.writeI64(self.cartId)
10547
      oprot.writeFieldEnd()
3431 rajveer 10548
    if self.itemId is not None:
559 chandransh 10549
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10550
      oprot.writeI64(self.itemId)
10551
      oprot.writeFieldEnd()
3431 rajveer 10552
    if self.quantity is not None:
559 chandransh 10553
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10554
      oprot.writeI64(self.quantity)
10555
      oprot.writeFieldEnd()
10556
    oprot.writeFieldStop()
10557
    oprot.writeStructEnd()
10558
 
3431 rajveer 10559
  def validate(self):
10560
    return
10561
 
10562
 
559 chandransh 10563
  def __repr__(self):
10564
    L = ['%s=%r' % (key, value)
10565
      for key, value in self.__dict__.iteritems()]
10566
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10567
 
10568
  def __eq__(self, other):
10569
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10570
 
10571
  def __ne__(self, other):
10572
    return not (self == other)
10573
 
10574
class addItemToCart_result:
10575
  """
10576
  Attributes:
2035 rajveer 10577
   - success
559 chandransh 10578
   - scx
10579
  """
10580
 
10581
  thrift_spec = (
2035 rajveer 10582
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10583
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10584
  )
10585
 
2035 rajveer 10586
  def __init__(self, success=None, scx=None,):
10587
    self.success = success
559 chandransh 10588
    self.scx = scx
10589
 
10590
  def read(self, iprot):
10591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10593
      return
10594
    iprot.readStructBegin()
10595
    while True:
10596
      (fname, ftype, fid) = iprot.readFieldBegin()
10597
      if ftype == TType.STOP:
10598
        break
2035 rajveer 10599
      if fid == 0:
10600
        if ftype == TType.STRING:
10601
          self.success = iprot.readString();
10602
        else:
10603
          iprot.skip(ftype)
10604
      elif fid == 1:
559 chandransh 10605
        if ftype == TType.STRUCT:
10606
          self.scx = ShoppingCartException()
10607
          self.scx.read(iprot)
10608
        else:
10609
          iprot.skip(ftype)
10610
      else:
10611
        iprot.skip(ftype)
10612
      iprot.readFieldEnd()
10613
    iprot.readStructEnd()
10614
 
10615
  def write(self, oprot):
10616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10618
      return
10619
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10620
    if self.success is not None:
2035 rajveer 10621
      oprot.writeFieldBegin('success', TType.STRING, 0)
10622
      oprot.writeString(self.success)
10623
      oprot.writeFieldEnd()
3431 rajveer 10624
    if self.scx is not None:
559 chandransh 10625
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10626
      self.scx.write(oprot)
10627
      oprot.writeFieldEnd()
10628
    oprot.writeFieldStop()
10629
    oprot.writeStructEnd()
10630
 
3431 rajveer 10631
  def validate(self):
10632
    return
10633
 
10634
 
559 chandransh 10635
  def __repr__(self):
10636
    L = ['%s=%r' % (key, value)
10637
      for key, value in self.__dict__.iteritems()]
10638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10639
 
10640
  def __eq__(self, other):
10641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10642
 
10643
  def __ne__(self, other):
10644
    return not (self == other)
10645
 
10646
class deleteItemFromCart_args:
10647
  """
10648
  Attributes:
10649
   - cartId
10650
   - itemId
10651
  """
10652
 
10653
  thrift_spec = (
10654
    None, # 0
10655
    (1, TType.I64, 'cartId', None, None, ), # 1
10656
    (2, TType.I64, 'itemId', None, None, ), # 2
10657
  )
10658
 
10659
  def __init__(self, cartId=None, itemId=None,):
10660
    self.cartId = cartId
10661
    self.itemId = itemId
10662
 
10663
  def read(self, iprot):
10664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10666
      return
10667
    iprot.readStructBegin()
10668
    while True:
10669
      (fname, ftype, fid) = iprot.readFieldBegin()
10670
      if ftype == TType.STOP:
10671
        break
10672
      if fid == 1:
10673
        if ftype == TType.I64:
10674
          self.cartId = iprot.readI64();
10675
        else:
10676
          iprot.skip(ftype)
10677
      elif fid == 2:
10678
        if ftype == TType.I64:
10679
          self.itemId = iprot.readI64();
10680
        else:
10681
          iprot.skip(ftype)
10682
      else:
10683
        iprot.skip(ftype)
10684
      iprot.readFieldEnd()
10685
    iprot.readStructEnd()
10686
 
10687
  def write(self, oprot):
10688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10690
      return
10691
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10692
    if self.cartId is not None:
559 chandransh 10693
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10694
      oprot.writeI64(self.cartId)
10695
      oprot.writeFieldEnd()
3431 rajveer 10696
    if self.itemId is not None:
559 chandransh 10697
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10698
      oprot.writeI64(self.itemId)
10699
      oprot.writeFieldEnd()
10700
    oprot.writeFieldStop()
10701
    oprot.writeStructEnd()
10702
 
3431 rajveer 10703
  def validate(self):
10704
    return
10705
 
10706
 
559 chandransh 10707
  def __repr__(self):
10708
    L = ['%s=%r' % (key, value)
10709
      for key, value in self.__dict__.iteritems()]
10710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10711
 
10712
  def __eq__(self, other):
10713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10714
 
10715
  def __ne__(self, other):
10716
    return not (self == other)
10717
 
10718
class deleteItemFromCart_result:
10719
  """
10720
  Attributes:
10721
   - scx
10722
  """
10723
 
10724
  thrift_spec = (
10725
    None, # 0
10726
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10727
  )
10728
 
10729
  def __init__(self, scx=None,):
10730
    self.scx = scx
10731
 
10732
  def read(self, iprot):
10733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10735
      return
10736
    iprot.readStructBegin()
10737
    while True:
10738
      (fname, ftype, fid) = iprot.readFieldBegin()
10739
      if ftype == TType.STOP:
10740
        break
10741
      if fid == 1:
10742
        if ftype == TType.STRUCT:
10743
          self.scx = ShoppingCartException()
10744
          self.scx.read(iprot)
10745
        else:
10746
          iprot.skip(ftype)
10747
      else:
10748
        iprot.skip(ftype)
10749
      iprot.readFieldEnd()
10750
    iprot.readStructEnd()
10751
 
10752
  def write(self, oprot):
10753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10755
      return
10756
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10757
    if self.scx is not None:
559 chandransh 10758
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10759
      self.scx.write(oprot)
10760
      oprot.writeFieldEnd()
10761
    oprot.writeFieldStop()
10762
    oprot.writeStructEnd()
10763
 
3431 rajveer 10764
  def validate(self):
10765
    return
10766
 
10767
 
559 chandransh 10768
  def __repr__(self):
10769
    L = ['%s=%r' % (key, value)
10770
      for key, value in self.__dict__.iteritems()]
10771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10772
 
10773
  def __eq__(self, other):
10774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10775
 
10776
  def __ne__(self, other):
10777
    return not (self == other)
10778
 
10779
class changeQuantity_args:
10780
  """
10781
  Attributes:
10782
   - cartId
10783
   - itemId
10784
   - quantity
10785
  """
10786
 
10787
  thrift_spec = (
10788
    None, # 0
10789
    (1, TType.I64, 'cartId', None, None, ), # 1
10790
    (2, TType.I64, 'itemId', None, None, ), # 2
10791
    (3, TType.I64, 'quantity', None, None, ), # 3
10792
  )
10793
 
10794
  def __init__(self, cartId=None, itemId=None, quantity=None,):
10795
    self.cartId = cartId
10796
    self.itemId = itemId
10797
    self.quantity = quantity
10798
 
10799
  def read(self, iprot):
10800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10802
      return
10803
    iprot.readStructBegin()
10804
    while True:
10805
      (fname, ftype, fid) = iprot.readFieldBegin()
10806
      if ftype == TType.STOP:
10807
        break
10808
      if fid == 1:
10809
        if ftype == TType.I64:
10810
          self.cartId = iprot.readI64();
10811
        else:
10812
          iprot.skip(ftype)
10813
      elif fid == 2:
10814
        if ftype == TType.I64:
10815
          self.itemId = iprot.readI64();
10816
        else:
10817
          iprot.skip(ftype)
10818
      elif fid == 3:
10819
        if ftype == TType.I64:
10820
          self.quantity = iprot.readI64();
10821
        else:
10822
          iprot.skip(ftype)
10823
      else:
10824
        iprot.skip(ftype)
10825
      iprot.readFieldEnd()
10826
    iprot.readStructEnd()
10827
 
10828
  def write(self, oprot):
10829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10831
      return
10832
    oprot.writeStructBegin('changeQuantity_args')
3431 rajveer 10833
    if self.cartId is not None:
559 chandransh 10834
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10835
      oprot.writeI64(self.cartId)
10836
      oprot.writeFieldEnd()
3431 rajveer 10837
    if self.itemId is not None:
559 chandransh 10838
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10839
      oprot.writeI64(self.itemId)
10840
      oprot.writeFieldEnd()
3431 rajveer 10841
    if self.quantity is not None:
559 chandransh 10842
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10843
      oprot.writeI64(self.quantity)
10844
      oprot.writeFieldEnd()
10845
    oprot.writeFieldStop()
10846
    oprot.writeStructEnd()
10847
 
3431 rajveer 10848
  def validate(self):
10849
    return
10850
 
10851
 
559 chandransh 10852
  def __repr__(self):
10853
    L = ['%s=%r' % (key, value)
10854
      for key, value in self.__dict__.iteritems()]
10855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10856
 
10857
  def __eq__(self, other):
10858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10859
 
10860
  def __ne__(self, other):
10861
    return not (self == other)
10862
 
10863
class changeQuantity_result:
10864
  """
10865
  Attributes:
10866
   - scx
10867
  """
10868
 
10869
  thrift_spec = (
10870
    None, # 0
10871
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10872
  )
10873
 
10874
  def __init__(self, scx=None,):
10875
    self.scx = scx
10876
 
10877
  def read(self, iprot):
10878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10880
      return
10881
    iprot.readStructBegin()
10882
    while True:
10883
      (fname, ftype, fid) = iprot.readFieldBegin()
10884
      if ftype == TType.STOP:
10885
        break
10886
      if fid == 1:
10887
        if ftype == TType.STRUCT:
10888
          self.scx = ShoppingCartException()
10889
          self.scx.read(iprot)
10890
        else:
10891
          iprot.skip(ftype)
10892
      else:
10893
        iprot.skip(ftype)
10894
      iprot.readFieldEnd()
10895
    iprot.readStructEnd()
10896
 
10897
  def write(self, oprot):
10898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10900
      return
10901
    oprot.writeStructBegin('changeQuantity_result')
3431 rajveer 10902
    if self.scx is not None:
559 chandransh 10903
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10904
      self.scx.write(oprot)
10905
      oprot.writeFieldEnd()
10906
    oprot.writeFieldStop()
10907
    oprot.writeStructEnd()
10908
 
3431 rajveer 10909
  def validate(self):
10910
    return
10911
 
10912
 
559 chandransh 10913
  def __repr__(self):
10914
    L = ['%s=%r' % (key, value)
10915
      for key, value in self.__dict__.iteritems()]
10916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10917
 
10918
  def __eq__(self, other):
10919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10920
 
10921
  def __ne__(self, other):
10922
    return not (self == other)
10923
 
10924
class changeItemStatus_args:
10925
  """
10926
  Attributes:
10927
   - cartId
10928
   - itemId
10929
   - status
10930
  """
10931
 
10932
  thrift_spec = (
10933
    None, # 0
10934
    (1, TType.I64, 'cartId', None, None, ), # 1
10935
    (2, TType.I64, 'itemId', None, None, ), # 2
10936
    (3, TType.I32, 'status', None, None, ), # 3
10937
  )
10938
 
10939
  def __init__(self, cartId=None, itemId=None, status=None,):
10940
    self.cartId = cartId
10941
    self.itemId = itemId
10942
    self.status = status
10943
 
10944
  def read(self, iprot):
10945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10947
      return
10948
    iprot.readStructBegin()
10949
    while True:
10950
      (fname, ftype, fid) = iprot.readFieldBegin()
10951
      if ftype == TType.STOP:
10952
        break
10953
      if fid == 1:
10954
        if ftype == TType.I64:
10955
          self.cartId = iprot.readI64();
10956
        else:
10957
          iprot.skip(ftype)
10958
      elif fid == 2:
10959
        if ftype == TType.I64:
10960
          self.itemId = iprot.readI64();
10961
        else:
10962
          iprot.skip(ftype)
10963
      elif fid == 3:
10964
        if ftype == TType.I32:
10965
          self.status = iprot.readI32();
10966
        else:
10967
          iprot.skip(ftype)
10968
      else:
10969
        iprot.skip(ftype)
10970
      iprot.readFieldEnd()
10971
    iprot.readStructEnd()
10972
 
10973
  def write(self, oprot):
10974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10976
      return
10977
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 10978
    if self.cartId is not None:
559 chandransh 10979
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10980
      oprot.writeI64(self.cartId)
10981
      oprot.writeFieldEnd()
3431 rajveer 10982
    if self.itemId is not None:
559 chandransh 10983
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10984
      oprot.writeI64(self.itemId)
10985
      oprot.writeFieldEnd()
3431 rajveer 10986
    if self.status is not None:
559 chandransh 10987
      oprot.writeFieldBegin('status', TType.I32, 3)
10988
      oprot.writeI32(self.status)
10989
      oprot.writeFieldEnd()
10990
    oprot.writeFieldStop()
10991
    oprot.writeStructEnd()
10992
 
3431 rajveer 10993
  def validate(self):
10994
    return
10995
 
10996
 
559 chandransh 10997
  def __repr__(self):
10998
    L = ['%s=%r' % (key, value)
10999
      for key, value in self.__dict__.iteritems()]
11000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11001
 
11002
  def __eq__(self, other):
11003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11004
 
11005
  def __ne__(self, other):
11006
    return not (self == other)
11007
 
11008
class changeItemStatus_result:
11009
  """
11010
  Attributes:
11011
   - scx
11012
  """
11013
 
11014
  thrift_spec = (
11015
    None, # 0
11016
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11017
  )
11018
 
11019
  def __init__(self, scx=None,):
11020
    self.scx = scx
11021
 
11022
  def read(self, iprot):
11023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11025
      return
11026
    iprot.readStructBegin()
11027
    while True:
11028
      (fname, ftype, fid) = iprot.readFieldBegin()
11029
      if ftype == TType.STOP:
11030
        break
11031
      if fid == 1:
11032
        if ftype == TType.STRUCT:
11033
          self.scx = ShoppingCartException()
11034
          self.scx.read(iprot)
11035
        else:
11036
          iprot.skip(ftype)
11037
      else:
11038
        iprot.skip(ftype)
11039
      iprot.readFieldEnd()
11040
    iprot.readStructEnd()
11041
 
11042
  def write(self, oprot):
11043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11045
      return
11046
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 11047
    if self.scx is not None:
559 chandransh 11048
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11049
      self.scx.write(oprot)
11050
      oprot.writeFieldEnd()
11051
    oprot.writeFieldStop()
11052
    oprot.writeStructEnd()
11053
 
3431 rajveer 11054
  def validate(self):
11055
    return
11056
 
11057
 
559 chandransh 11058
  def __repr__(self):
11059
    L = ['%s=%r' % (key, value)
11060
      for key, value in self.__dict__.iteritems()]
11061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11062
 
11063
  def __eq__(self, other):
11064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11065
 
11066
  def __ne__(self, other):
11067
    return not (self == other)
11068
 
11069
class addAddressToCart_args:
11070
  """
11071
  Attributes:
11072
   - cartId
11073
   - addressId
11074
  """
11075
 
11076
  thrift_spec = (
11077
    None, # 0
11078
    (1, TType.I64, 'cartId', None, None, ), # 1
11079
    (2, TType.I64, 'addressId', None, None, ), # 2
11080
  )
11081
 
11082
  def __init__(self, cartId=None, addressId=None,):
11083
    self.cartId = cartId
11084
    self.addressId = addressId
11085
 
11086
  def read(self, iprot):
11087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11089
      return
11090
    iprot.readStructBegin()
11091
    while True:
11092
      (fname, ftype, fid) = iprot.readFieldBegin()
11093
      if ftype == TType.STOP:
11094
        break
11095
      if fid == 1:
11096
        if ftype == TType.I64:
11097
          self.cartId = iprot.readI64();
11098
        else:
11099
          iprot.skip(ftype)
11100
      elif fid == 2:
11101
        if ftype == TType.I64:
11102
          self.addressId = iprot.readI64();
11103
        else:
11104
          iprot.skip(ftype)
11105
      else:
11106
        iprot.skip(ftype)
11107
      iprot.readFieldEnd()
11108
    iprot.readStructEnd()
11109
 
11110
  def write(self, oprot):
11111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11113
      return
11114
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11115
    if self.cartId is not None:
559 chandransh 11116
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11117
      oprot.writeI64(self.cartId)
11118
      oprot.writeFieldEnd()
3431 rajveer 11119
    if self.addressId is not None:
559 chandransh 11120
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11121
      oprot.writeI64(self.addressId)
11122
      oprot.writeFieldEnd()
11123
    oprot.writeFieldStop()
11124
    oprot.writeStructEnd()
11125
 
3431 rajveer 11126
  def validate(self):
11127
    return
11128
 
11129
 
559 chandransh 11130
  def __repr__(self):
11131
    L = ['%s=%r' % (key, value)
11132
      for key, value in self.__dict__.iteritems()]
11133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11134
 
11135
  def __eq__(self, other):
11136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11137
 
11138
  def __ne__(self, other):
11139
    return not (self == other)
11140
 
11141
class addAddressToCart_result:
575 chandransh 11142
  """
11143
  Attributes:
11144
   - scx
11145
  """
559 chandransh 11146
 
11147
  thrift_spec = (
575 chandransh 11148
    None, # 0
11149
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11150
  )
11151
 
575 chandransh 11152
  def __init__(self, scx=None,):
11153
    self.scx = scx
11154
 
559 chandransh 11155
  def read(self, iprot):
11156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11158
      return
11159
    iprot.readStructBegin()
11160
    while True:
11161
      (fname, ftype, fid) = iprot.readFieldBegin()
11162
      if ftype == TType.STOP:
11163
        break
575 chandransh 11164
      if fid == 1:
11165
        if ftype == TType.STRUCT:
11166
          self.scx = ShoppingCartException()
11167
          self.scx.read(iprot)
11168
        else:
11169
          iprot.skip(ftype)
559 chandransh 11170
      else:
11171
        iprot.skip(ftype)
11172
      iprot.readFieldEnd()
11173
    iprot.readStructEnd()
11174
 
11175
  def write(self, oprot):
11176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11178
      return
11179
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11180
    if self.scx is not None:
575 chandransh 11181
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11182
      self.scx.write(oprot)
11183
      oprot.writeFieldEnd()
559 chandransh 11184
    oprot.writeFieldStop()
11185
    oprot.writeStructEnd()
11186
 
3431 rajveer 11187
  def validate(self):
11188
    return
11189
 
11190
 
559 chandransh 11191
  def __repr__(self):
11192
    L = ['%s=%r' % (key, value)
11193
      for key, value in self.__dict__.iteritems()]
11194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11195
 
11196
  def __eq__(self, other):
11197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11198
 
11199
  def __ne__(self, other):
11200
    return not (self == other)
11201
 
1976 varun.gupt 11202
class applyCouponToCart_args:
11203
  """
11204
  Attributes:
11205
   - cartId
11206
   - couponCode
11207
   - totalPrice
11208
   - discountedPrice
11209
  """
11210
 
11211
  thrift_spec = (
11212
    None, # 0
11213
    (1, TType.I64, 'cartId', None, None, ), # 1
11214
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11215
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11216
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11217
  )
11218
 
11219
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11220
    self.cartId = cartId
11221
    self.couponCode = couponCode
11222
    self.totalPrice = totalPrice
11223
    self.discountedPrice = discountedPrice
11224
 
11225
  def read(self, iprot):
11226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11228
      return
11229
    iprot.readStructBegin()
11230
    while True:
11231
      (fname, ftype, fid) = iprot.readFieldBegin()
11232
      if ftype == TType.STOP:
11233
        break
11234
      if fid == 1:
11235
        if ftype == TType.I64:
11236
          self.cartId = iprot.readI64();
11237
        else:
11238
          iprot.skip(ftype)
11239
      elif fid == 2:
11240
        if ftype == TType.STRING:
11241
          self.couponCode = iprot.readString();
11242
        else:
11243
          iprot.skip(ftype)
11244
      elif fid == 3:
11245
        if ftype == TType.DOUBLE:
11246
          self.totalPrice = iprot.readDouble();
11247
        else:
11248
          iprot.skip(ftype)
11249
      elif fid == 4:
11250
        if ftype == TType.DOUBLE:
11251
          self.discountedPrice = iprot.readDouble();
11252
        else:
11253
          iprot.skip(ftype)
11254
      else:
11255
        iprot.skip(ftype)
11256
      iprot.readFieldEnd()
11257
    iprot.readStructEnd()
11258
 
11259
  def write(self, oprot):
11260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11262
      return
11263
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11264
    if self.cartId is not None:
1976 varun.gupt 11265
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11266
      oprot.writeI64(self.cartId)
11267
      oprot.writeFieldEnd()
3431 rajveer 11268
    if self.couponCode is not None:
1976 varun.gupt 11269
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11270
      oprot.writeString(self.couponCode)
11271
      oprot.writeFieldEnd()
3431 rajveer 11272
    if self.totalPrice is not None:
1976 varun.gupt 11273
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11274
      oprot.writeDouble(self.totalPrice)
11275
      oprot.writeFieldEnd()
3431 rajveer 11276
    if self.discountedPrice is not None:
1976 varun.gupt 11277
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11278
      oprot.writeDouble(self.discountedPrice)
11279
      oprot.writeFieldEnd()
11280
    oprot.writeFieldStop()
11281
    oprot.writeStructEnd()
11282
 
3431 rajveer 11283
  def validate(self):
11284
    return
11285
 
11286
 
1976 varun.gupt 11287
  def __repr__(self):
11288
    L = ['%s=%r' % (key, value)
11289
      for key, value in self.__dict__.iteritems()]
11290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11291
 
11292
  def __eq__(self, other):
11293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11294
 
11295
  def __ne__(self, other):
11296
    return not (self == other)
11297
 
11298
class applyCouponToCart_result:
11299
  """
11300
  Attributes:
11301
   - scx
11302
  """
11303
 
11304
  thrift_spec = (
11305
    None, # 0
11306
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11307
  )
11308
 
11309
  def __init__(self, scx=None,):
11310
    self.scx = scx
11311
 
11312
  def read(self, iprot):
11313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11315
      return
11316
    iprot.readStructBegin()
11317
    while True:
11318
      (fname, ftype, fid) = iprot.readFieldBegin()
11319
      if ftype == TType.STOP:
11320
        break
11321
      if fid == 1:
11322
        if ftype == TType.STRUCT:
11323
          self.scx = ShoppingCartException()
11324
          self.scx.read(iprot)
11325
        else:
11326
          iprot.skip(ftype)
11327
      else:
11328
        iprot.skip(ftype)
11329
      iprot.readFieldEnd()
11330
    iprot.readStructEnd()
11331
 
11332
  def write(self, oprot):
11333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11335
      return
11336
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11337
    if self.scx is not None:
1976 varun.gupt 11338
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11339
      self.scx.write(oprot)
11340
      oprot.writeFieldEnd()
11341
    oprot.writeFieldStop()
11342
    oprot.writeStructEnd()
11343
 
3431 rajveer 11344
  def validate(self):
11345
    return
11346
 
11347
 
1976 varun.gupt 11348
  def __repr__(self):
11349
    L = ['%s=%r' % (key, value)
11350
      for key, value in self.__dict__.iteritems()]
11351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11352
 
11353
  def __eq__(self, other):
11354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11355
 
11356
  def __ne__(self, other):
11357
    return not (self == other)
11358
 
11359
class removeCoupon_args:
11360
  """
11361
  Attributes:
11362
   - cartId
11363
  """
11364
 
11365
  thrift_spec = (
11366
    None, # 0
11367
    (1, TType.I64, 'cartId', None, None, ), # 1
11368
  )
11369
 
11370
  def __init__(self, cartId=None,):
11371
    self.cartId = cartId
11372
 
11373
  def read(self, iprot):
11374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11376
      return
11377
    iprot.readStructBegin()
11378
    while True:
11379
      (fname, ftype, fid) = iprot.readFieldBegin()
11380
      if ftype == TType.STOP:
11381
        break
11382
      if fid == 1:
11383
        if ftype == TType.I64:
11384
          self.cartId = iprot.readI64();
11385
        else:
11386
          iprot.skip(ftype)
11387
      else:
11388
        iprot.skip(ftype)
11389
      iprot.readFieldEnd()
11390
    iprot.readStructEnd()
11391
 
11392
  def write(self, oprot):
11393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11395
      return
11396
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11397
    if self.cartId is not None:
1976 varun.gupt 11398
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11399
      oprot.writeI64(self.cartId)
11400
      oprot.writeFieldEnd()
11401
    oprot.writeFieldStop()
11402
    oprot.writeStructEnd()
11403
 
3431 rajveer 11404
  def validate(self):
11405
    return
11406
 
11407
 
1976 varun.gupt 11408
  def __repr__(self):
11409
    L = ['%s=%r' % (key, value)
11410
      for key, value in self.__dict__.iteritems()]
11411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11412
 
11413
  def __eq__(self, other):
11414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11415
 
11416
  def __ne__(self, other):
11417
    return not (self == other)
11418
 
11419
class removeCoupon_result:
11420
  """
11421
  Attributes:
11422
   - scx
11423
  """
11424
 
11425
  thrift_spec = (
11426
    None, # 0
11427
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11428
  )
11429
 
11430
  def __init__(self, scx=None,):
11431
    self.scx = scx
11432
 
11433
  def read(self, iprot):
11434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11436
      return
11437
    iprot.readStructBegin()
11438
    while True:
11439
      (fname, ftype, fid) = iprot.readFieldBegin()
11440
      if ftype == TType.STOP:
11441
        break
11442
      if fid == 1:
11443
        if ftype == TType.STRUCT:
11444
          self.scx = ShoppingCartException()
11445
          self.scx.read(iprot)
11446
        else:
11447
          iprot.skip(ftype)
11448
      else:
11449
        iprot.skip(ftype)
11450
      iprot.readFieldEnd()
11451
    iprot.readStructEnd()
11452
 
11453
  def write(self, oprot):
11454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11456
      return
11457
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11458
    if self.scx is not None:
1976 varun.gupt 11459
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11460
      self.scx.write(oprot)
11461
      oprot.writeFieldEnd()
11462
    oprot.writeFieldStop()
11463
    oprot.writeStructEnd()
11464
 
3431 rajveer 11465
  def validate(self):
11466
    return
11467
 
11468
 
1976 varun.gupt 11469
  def __repr__(self):
11470
    L = ['%s=%r' % (key, value)
11471
      for key, value in self.__dict__.iteritems()]
11472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11473
 
11474
  def __eq__(self, other):
11475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11476
 
11477
  def __ne__(self, other):
11478
    return not (self == other)
11479
 
690 chandransh 11480
class createOrders_args:
559 chandransh 11481
  """
11482
  Attributes:
11483
   - cartId
2815 vikas 11484
   - sessionSource
11485
   - sessionStartTime
559 chandransh 11486
  """
11487
 
11488
  thrift_spec = (
11489
    None, # 0
11490
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11491
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11492
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
559 chandransh 11493
  )
11494
 
2815 vikas 11495
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None,):
559 chandransh 11496
    self.cartId = cartId
2815 vikas 11497
    self.sessionSource = sessionSource
11498
    self.sessionStartTime = sessionStartTime
559 chandransh 11499
 
11500
  def read(self, iprot):
11501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11503
      return
11504
    iprot.readStructBegin()
11505
    while True:
11506
      (fname, ftype, fid) = iprot.readFieldBegin()
11507
      if ftype == TType.STOP:
11508
        break
11509
      if fid == 1:
11510
        if ftype == TType.I64:
11511
          self.cartId = iprot.readI64();
11512
        else:
11513
          iprot.skip(ftype)
2815 vikas 11514
      elif fid == 2:
11515
        if ftype == TType.STRING:
11516
          self.sessionSource = iprot.readString();
11517
        else:
11518
          iprot.skip(ftype)
11519
      elif fid == 3:
11520
        if ftype == TType.I64:
11521
          self.sessionStartTime = iprot.readI64();
11522
        else:
11523
          iprot.skip(ftype)
559 chandransh 11524
      else:
11525
        iprot.skip(ftype)
11526
      iprot.readFieldEnd()
11527
    iprot.readStructEnd()
11528
 
11529
  def write(self, oprot):
11530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11532
      return
690 chandransh 11533
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11534
    if self.cartId is not None:
559 chandransh 11535
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11536
      oprot.writeI64(self.cartId)
11537
      oprot.writeFieldEnd()
3431 rajveer 11538
    if self.sessionSource is not None:
2815 vikas 11539
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11540
      oprot.writeString(self.sessionSource)
11541
      oprot.writeFieldEnd()
3431 rajveer 11542
    if self.sessionStartTime is not None:
2815 vikas 11543
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11544
      oprot.writeI64(self.sessionStartTime)
11545
      oprot.writeFieldEnd()
559 chandransh 11546
    oprot.writeFieldStop()
11547
    oprot.writeStructEnd()
11548
 
3431 rajveer 11549
  def validate(self):
11550
    return
11551
 
11552
 
559 chandransh 11553
  def __repr__(self):
11554
    L = ['%s=%r' % (key, value)
11555
      for key, value in self.__dict__.iteritems()]
11556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11557
 
11558
  def __eq__(self, other):
11559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11560
 
11561
  def __ne__(self, other):
11562
    return not (self == other)
11563
 
690 chandransh 11564
class createOrders_result:
559 chandransh 11565
  """
11566
  Attributes:
94 ashish 11567
   - success
559 chandransh 11568
   - scx
94 ashish 11569
  """
11570
 
11571
  thrift_spec = (
575 chandransh 11572
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11573
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11574
  )
11575
 
559 chandransh 11576
  def __init__(self, success=None, scx=None,):
94 ashish 11577
    self.success = success
559 chandransh 11578
    self.scx = scx
94 ashish 11579
 
11580
  def read(self, iprot):
11581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11583
      return
11584
    iprot.readStructBegin()
11585
    while True:
11586
      (fname, ftype, fid) = iprot.readFieldBegin()
11587
      if ftype == TType.STOP:
11588
        break
11589
      if fid == 0:
575 chandransh 11590
        if ftype == TType.I64:
11591
          self.success = iprot.readI64();
94 ashish 11592
        else:
11593
          iprot.skip(ftype)
11594
      elif fid == 1:
11595
        if ftype == TType.STRUCT:
559 chandransh 11596
          self.scx = ShoppingCartException()
11597
          self.scx.read(iprot)
94 ashish 11598
        else:
11599
          iprot.skip(ftype)
11600
      else:
11601
        iprot.skip(ftype)
11602
      iprot.readFieldEnd()
11603
    iprot.readStructEnd()
11604
 
11605
  def write(self, oprot):
11606
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11607
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11608
      return
690 chandransh 11609
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11610
    if self.success is not None:
575 chandransh 11611
      oprot.writeFieldBegin('success', TType.I64, 0)
11612
      oprot.writeI64(self.success)
94 ashish 11613
      oprot.writeFieldEnd()
3431 rajveer 11614
    if self.scx is not None:
559 chandransh 11615
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11616
      self.scx.write(oprot)
94 ashish 11617
      oprot.writeFieldEnd()
11618
    oprot.writeFieldStop()
11619
    oprot.writeStructEnd()
11620
 
3431 rajveer 11621
  def validate(self):
11622
    return
11623
 
11624
 
94 ashish 11625
  def __repr__(self):
11626
    L = ['%s=%r' % (key, value)
11627
      for key, value in self.__dict__.iteritems()]
11628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11629
 
11630
  def __eq__(self, other):
11631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11632
 
11633
  def __ne__(self, other):
11634
    return not (self == other)
11635
 
559 chandransh 11636
class validateCart_args:
94 ashish 11637
  """
11638
  Attributes:
559 chandransh 11639
   - cartId
94 ashish 11640
  """
11641
 
11642
  thrift_spec = (
11643
    None, # 0
559 chandransh 11644
    (1, TType.I64, 'cartId', None, None, ), # 1
94 ashish 11645
  )
11646
 
559 chandransh 11647
  def __init__(self, cartId=None,):
11648
    self.cartId = cartId
94 ashish 11649
 
11650
  def read(self, iprot):
11651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11653
      return
11654
    iprot.readStructBegin()
11655
    while True:
11656
      (fname, ftype, fid) = iprot.readFieldBegin()
11657
      if ftype == TType.STOP:
11658
        break
11659
      if fid == 1:
11660
        if ftype == TType.I64:
559 chandransh 11661
          self.cartId = iprot.readI64();
94 ashish 11662
        else:
11663
          iprot.skip(ftype)
11664
      else:
11665
        iprot.skip(ftype)
11666
      iprot.readFieldEnd()
11667
    iprot.readStructEnd()
11668
 
11669
  def write(self, oprot):
11670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11672
      return
559 chandransh 11673
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11674
    if self.cartId is not None:
559 chandransh 11675
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11676
      oprot.writeI64(self.cartId)
94 ashish 11677
      oprot.writeFieldEnd()
11678
    oprot.writeFieldStop()
11679
    oprot.writeStructEnd()
11680
 
3431 rajveer 11681
  def validate(self):
11682
    return
11683
 
11684
 
94 ashish 11685
  def __repr__(self):
11686
    L = ['%s=%r' % (key, value)
11687
      for key, value in self.__dict__.iteritems()]
11688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11689
 
11690
  def __eq__(self, other):
11691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11692
 
11693
  def __ne__(self, other):
11694
    return not (self == other)
11695
 
559 chandransh 11696
class validateCart_result:
94 ashish 11697
  """
11698
  Attributes:
11699
   - success
575 chandransh 11700
   - scex
94 ashish 11701
  """
11702
 
11703
  thrift_spec = (
1466 ankur.sing 11704
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11705
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11706
  )
11707
 
575 chandransh 11708
  def __init__(self, success=None, scex=None,):
94 ashish 11709
    self.success = success
575 chandransh 11710
    self.scex = scex
94 ashish 11711
 
11712
  def read(self, iprot):
11713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11715
      return
11716
    iprot.readStructBegin()
11717
    while True:
11718
      (fname, ftype, fid) = iprot.readFieldBegin()
11719
      if ftype == TType.STOP:
11720
        break
11721
      if fid == 0:
1466 ankur.sing 11722
        if ftype == TType.STRING:
11723
          self.success = iprot.readString();
94 ashish 11724
        else:
11725
          iprot.skip(ftype)
575 chandransh 11726
      elif fid == 1:
11727
        if ftype == TType.STRUCT:
11728
          self.scex = ShoppingCartException()
11729
          self.scex.read(iprot)
11730
        else:
11731
          iprot.skip(ftype)
94 ashish 11732
      else:
11733
        iprot.skip(ftype)
11734
      iprot.readFieldEnd()
11735
    iprot.readStructEnd()
11736
 
11737
  def write(self, oprot):
11738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11740
      return
559 chandransh 11741
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11742
    if self.success is not None:
1466 ankur.sing 11743
      oprot.writeFieldBegin('success', TType.STRING, 0)
11744
      oprot.writeString(self.success)
94 ashish 11745
      oprot.writeFieldEnd()
3431 rajveer 11746
    if self.scex is not None:
575 chandransh 11747
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11748
      self.scex.write(oprot)
11749
      oprot.writeFieldEnd()
559 chandransh 11750
    oprot.writeFieldStop()
11751
    oprot.writeStructEnd()
11752
 
3431 rajveer 11753
  def validate(self):
11754
    return
11755
 
11756
 
559 chandransh 11757
  def __repr__(self):
11758
    L = ['%s=%r' % (key, value)
11759
      for key, value in self.__dict__.iteritems()]
11760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11761
 
11762
  def __eq__(self, other):
11763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11764
 
11765
  def __ne__(self, other):
11766
    return not (self == other)
11767
 
690 chandransh 11768
class mergeCart_args:
575 chandransh 11769
  """
11770
  Attributes:
690 chandransh 11771
   - fromCartId
11772
   - toCartId
11773
  """
11774
 
11775
  thrift_spec = (
11776
    None, # 0
11777
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11778
    (2, TType.I64, 'toCartId', None, None, ), # 2
11779
  )
11780
 
11781
  def __init__(self, fromCartId=None, toCartId=None,):
11782
    self.fromCartId = fromCartId
11783
    self.toCartId = toCartId
11784
 
11785
  def read(self, iprot):
11786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11788
      return
11789
    iprot.readStructBegin()
11790
    while True:
11791
      (fname, ftype, fid) = iprot.readFieldBegin()
11792
      if ftype == TType.STOP:
11793
        break
11794
      if fid == 1:
11795
        if ftype == TType.I64:
11796
          self.fromCartId = iprot.readI64();
11797
        else:
11798
          iprot.skip(ftype)
11799
      elif fid == 2:
11800
        if ftype == TType.I64:
11801
          self.toCartId = iprot.readI64();
11802
        else:
11803
          iprot.skip(ftype)
11804
      else:
11805
        iprot.skip(ftype)
11806
      iprot.readFieldEnd()
11807
    iprot.readStructEnd()
11808
 
11809
  def write(self, oprot):
11810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11812
      return
11813
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11814
    if self.fromCartId is not None:
690 chandransh 11815
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11816
      oprot.writeI64(self.fromCartId)
11817
      oprot.writeFieldEnd()
3431 rajveer 11818
    if self.toCartId is not None:
690 chandransh 11819
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11820
      oprot.writeI64(self.toCartId)
11821
      oprot.writeFieldEnd()
11822
    oprot.writeFieldStop()
11823
    oprot.writeStructEnd()
11824
 
3431 rajveer 11825
  def validate(self):
11826
    return
11827
 
11828
 
690 chandransh 11829
  def __repr__(self):
11830
    L = ['%s=%r' % (key, value)
11831
      for key, value in self.__dict__.iteritems()]
11832
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11833
 
11834
  def __eq__(self, other):
11835
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11836
 
11837
  def __ne__(self, other):
11838
    return not (self == other)
11839
 
11840
class mergeCart_result:
11841
 
11842
  thrift_spec = (
11843
  )
11844
 
11845
  def read(self, iprot):
11846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11848
      return
11849
    iprot.readStructBegin()
11850
    while True:
11851
      (fname, ftype, fid) = iprot.readFieldBegin()
11852
      if ftype == TType.STOP:
11853
        break
11854
      else:
11855
        iprot.skip(ftype)
11856
      iprot.readFieldEnd()
11857
    iprot.readStructEnd()
11858
 
11859
  def write(self, oprot):
11860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11862
      return
11863
    oprot.writeStructBegin('mergeCart_result')
11864
    oprot.writeFieldStop()
11865
    oprot.writeStructEnd()
11866
 
3431 rajveer 11867
  def validate(self):
11868
    return
11869
 
11870
 
690 chandransh 11871
  def __repr__(self):
11872
    L = ['%s=%r' % (key, value)
11873
      for key, value in self.__dict__.iteritems()]
11874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11875
 
11876
  def __eq__(self, other):
11877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11878
 
11879
  def __ne__(self, other):
11880
    return not (self == other)
11881
 
11882
class checkOut_args:
11883
  """
11884
  Attributes:
575 chandransh 11885
   - cartId
11886
  """
11887
 
11888
  thrift_spec = (
11889
    None, # 0
11890
    (1, TType.I64, 'cartId', None, None, ), # 1
11891
  )
11892
 
11893
  def __init__(self, cartId=None,):
11894
    self.cartId = cartId
11895
 
11896
  def read(self, iprot):
11897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11899
      return
11900
    iprot.readStructBegin()
11901
    while True:
11902
      (fname, ftype, fid) = iprot.readFieldBegin()
11903
      if ftype == TType.STOP:
11904
        break
11905
      if fid == 1:
11906
        if ftype == TType.I64:
11907
          self.cartId = iprot.readI64();
11908
        else:
11909
          iprot.skip(ftype)
11910
      else:
11911
        iprot.skip(ftype)
11912
      iprot.readFieldEnd()
11913
    iprot.readStructEnd()
11914
 
11915
  def write(self, oprot):
11916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11918
      return
690 chandransh 11919
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11920
    if self.cartId is not None:
575 chandransh 11921
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11922
      oprot.writeI64(self.cartId)
11923
      oprot.writeFieldEnd()
11924
    oprot.writeFieldStop()
11925
    oprot.writeStructEnd()
11926
 
3431 rajveer 11927
  def validate(self):
11928
    return
11929
 
11930
 
575 chandransh 11931
  def __repr__(self):
11932
    L = ['%s=%r' % (key, value)
11933
      for key, value in self.__dict__.iteritems()]
11934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11935
 
11936
  def __eq__(self, other):
11937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11938
 
11939
  def __ne__(self, other):
11940
    return not (self == other)
11941
 
690 chandransh 11942
class checkOut_result:
575 chandransh 11943
  """
11944
  Attributes:
11945
   - success
11946
   - scex
11947
  """
11948
 
11949
  thrift_spec = (
11950
    (0, TType.BOOL, 'success', None, None, ), # 0
11951
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11952
  )
11953
 
11954
  def __init__(self, success=None, scex=None,):
11955
    self.success = success
11956
    self.scex = scex
11957
 
11958
  def read(self, iprot):
11959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11961
      return
11962
    iprot.readStructBegin()
11963
    while True:
11964
      (fname, ftype, fid) = iprot.readFieldBegin()
11965
      if ftype == TType.STOP:
11966
        break
11967
      if fid == 0:
11968
        if ftype == TType.BOOL:
11969
          self.success = iprot.readBool();
11970
        else:
11971
          iprot.skip(ftype)
11972
      elif fid == 1:
11973
        if ftype == TType.STRUCT:
11974
          self.scex = ShoppingCartException()
11975
          self.scex.read(iprot)
11976
        else:
11977
          iprot.skip(ftype)
11978
      else:
11979
        iprot.skip(ftype)
11980
      iprot.readFieldEnd()
11981
    iprot.readStructEnd()
11982
 
11983
  def write(self, oprot):
11984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11986
      return
690 chandransh 11987
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11988
    if self.success is not None:
575 chandransh 11989
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11990
      oprot.writeBool(self.success)
11991
      oprot.writeFieldEnd()
3431 rajveer 11992
    if self.scex is not None:
575 chandransh 11993
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11994
      self.scex.write(oprot)
11995
      oprot.writeFieldEnd()
11996
    oprot.writeFieldStop()
11997
    oprot.writeStructEnd()
11998
 
3431 rajveer 11999
  def validate(self):
12000
    return
12001
 
12002
 
575 chandransh 12003
  def __repr__(self):
12004
    L = ['%s=%r' % (key, value)
12005
      for key, value in self.__dict__.iteritems()]
12006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12007
 
12008
  def __eq__(self, other):
12009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12010
 
12011
  def __ne__(self, other):
12012
    return not (self == other)
12013
 
690 chandransh 12014
class resetCart_args:
559 chandransh 12015
  """
12016
  Attributes:
690 chandransh 12017
   - cartId
12018
   - items
559 chandransh 12019
  """
12020
 
12021
  thrift_spec = (
12022
    None, # 0
690 chandransh 12023
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 12024
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 12025
  )
12026
 
690 chandransh 12027
  def __init__(self, cartId=None, items=None,):
12028
    self.cartId = cartId
12029
    self.items = items
559 chandransh 12030
 
12031
  def read(self, iprot):
12032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12034
      return
12035
    iprot.readStructBegin()
12036
    while True:
12037
      (fname, ftype, fid) = iprot.readFieldBegin()
12038
      if ftype == TType.STOP:
12039
        break
12040
      if fid == 1:
12041
        if ftype == TType.I64:
690 chandransh 12042
          self.cartId = iprot.readI64();
559 chandransh 12043
        else:
12044
          iprot.skip(ftype)
12045
      elif fid == 2:
690 chandransh 12046
        if ftype == TType.MAP:
12047
          self.items = {}
3385 varun.gupt 12048
          (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() 
12049
          for _i116 in xrange(_size112):
12050
            _key117 = iprot.readI64();
12051
            _val118 = iprot.readDouble();
12052
            self.items[_key117] = _val118
690 chandransh 12053
          iprot.readMapEnd()
559 chandransh 12054
        else:
12055
          iprot.skip(ftype)
12056
      else:
12057
        iprot.skip(ftype)
12058
      iprot.readFieldEnd()
12059
    iprot.readStructEnd()
12060
 
12061
  def write(self, oprot):
12062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12064
      return
690 chandransh 12065
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12066
    if self.cartId is not None:
690 chandransh 12067
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12068
      oprot.writeI64(self.cartId)
94 ashish 12069
      oprot.writeFieldEnd()
3431 rajveer 12070
    if self.items is not None:
690 chandransh 12071
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12072
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
3385 varun.gupt 12073
      for kiter119,viter120 in self.items.items():
12074
        oprot.writeI64(kiter119)
12075
        oprot.writeDouble(viter120)
690 chandransh 12076
      oprot.writeMapEnd()
559 chandransh 12077
      oprot.writeFieldEnd()
94 ashish 12078
    oprot.writeFieldStop()
12079
    oprot.writeStructEnd()
12080
 
3431 rajveer 12081
  def validate(self):
12082
    return
12083
 
12084
 
94 ashish 12085
  def __repr__(self):
12086
    L = ['%s=%r' % (key, value)
12087
      for key, value in self.__dict__.iteritems()]
12088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12089
 
12090
  def __eq__(self, other):
12091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12092
 
12093
  def __ne__(self, other):
12094
    return not (self == other)
12095
 
690 chandransh 12096
class resetCart_result:
12097
  """
12098
  Attributes:
12099
   - success
12100
   - scex
12101
  """
559 chandransh 12102
 
12103
  thrift_spec = (
690 chandransh 12104
    (0, TType.BOOL, 'success', None, None, ), # 0
12105
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12106
  )
12107
 
690 chandransh 12108
  def __init__(self, success=None, scex=None,):
12109
    self.success = success
12110
    self.scex = scex
12111
 
559 chandransh 12112
  def read(self, iprot):
12113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12115
      return
12116
    iprot.readStructBegin()
12117
    while True:
12118
      (fname, ftype, fid) = iprot.readFieldBegin()
12119
      if ftype == TType.STOP:
12120
        break
690 chandransh 12121
      if fid == 0:
12122
        if ftype == TType.BOOL:
12123
          self.success = iprot.readBool();
12124
        else:
12125
          iprot.skip(ftype)
12126
      elif fid == 1:
12127
        if ftype == TType.STRUCT:
12128
          self.scex = ShoppingCartException()
12129
          self.scex.read(iprot)
12130
        else:
12131
          iprot.skip(ftype)
559 chandransh 12132
      else:
12133
        iprot.skip(ftype)
12134
      iprot.readFieldEnd()
12135
    iprot.readStructEnd()
12136
 
12137
  def write(self, oprot):
12138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12140
      return
690 chandransh 12141
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12142
    if self.success is not None:
690 chandransh 12143
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12144
      oprot.writeBool(self.success)
12145
      oprot.writeFieldEnd()
3431 rajveer 12146
    if self.scex is not None:
690 chandransh 12147
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12148
      self.scex.write(oprot)
12149
      oprot.writeFieldEnd()
559 chandransh 12150
    oprot.writeFieldStop()
12151
    oprot.writeStructEnd()
12152
 
3431 rajveer 12153
  def validate(self):
12154
    return
12155
 
12156
 
559 chandransh 12157
  def __repr__(self):
12158
    L = ['%s=%r' % (key, value)
12159
      for key, value in self.__dict__.iteritems()]
12160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12161
 
12162
  def __eq__(self, other):
12163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12164
 
12165
  def __ne__(self, other):
12166
    return not (self == other)
12167
 
2981 rajveer 12168
class getUserCount_args:
94 ashish 12169
  """
12170
  Attributes:
2981 rajveer 12171
   - userType
559 chandransh 12172
  """
12173
 
12174
  thrift_spec = (
12175
    None, # 0
2981 rajveer 12176
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12177
  )
12178
 
2981 rajveer 12179
  def __init__(self, userType=None,):
12180
    self.userType = userType
559 chandransh 12181
 
12182
  def read(self, iprot):
12183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12185
      return
12186
    iprot.readStructBegin()
12187
    while True:
12188
      (fname, ftype, fid) = iprot.readFieldBegin()
12189
      if ftype == TType.STOP:
12190
        break
12191
      if fid == 1:
2981 rajveer 12192
        if ftype == TType.I32:
12193
          self.userType = iprot.readI32();
559 chandransh 12194
        else:
12195
          iprot.skip(ftype)
12196
      else:
12197
        iprot.skip(ftype)
12198
      iprot.readFieldEnd()
12199
    iprot.readStructEnd()
12200
 
12201
  def write(self, oprot):
12202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12204
      return
2981 rajveer 12205
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12206
    if self.userType is not None:
2981 rajveer 12207
      oprot.writeFieldBegin('userType', TType.I32, 1)
12208
      oprot.writeI32(self.userType)
559 chandransh 12209
      oprot.writeFieldEnd()
12210
    oprot.writeFieldStop()
12211
    oprot.writeStructEnd()
12212
 
3431 rajveer 12213
  def validate(self):
12214
    return
12215
 
12216
 
559 chandransh 12217
  def __repr__(self):
12218
    L = ['%s=%r' % (key, value)
12219
      for key, value in self.__dict__.iteritems()]
12220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12221
 
12222
  def __eq__(self, other):
12223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12224
 
12225
  def __ne__(self, other):
12226
    return not (self == other)
12227
 
2981 rajveer 12228
class getUserCount_result:
94 ashish 12229
  """
12230
  Attributes:
12231
   - success
12232
  """
12233
 
12234
  thrift_spec = (
2981 rajveer 12235
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12236
  )
12237
 
2981 rajveer 12238
  def __init__(self, success=None,):
94 ashish 12239
    self.success = success
12240
 
12241
  def read(self, iprot):
12242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12244
      return
12245
    iprot.readStructBegin()
12246
    while True:
12247
      (fname, ftype, fid) = iprot.readFieldBegin()
12248
      if ftype == TType.STOP:
12249
        break
12250
      if fid == 0:
2981 rajveer 12251
        if ftype == TType.I64:
12252
          self.success = iprot.readI64();
94 ashish 12253
        else:
12254
          iprot.skip(ftype)
12255
      else:
12256
        iprot.skip(ftype)
12257
      iprot.readFieldEnd()
12258
    iprot.readStructEnd()
12259
 
12260
  def write(self, oprot):
12261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12263
      return
2981 rajveer 12264
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12265
    if self.success is not None:
2981 rajveer 12266
      oprot.writeFieldBegin('success', TType.I64, 0)
12267
      oprot.writeI64(self.success)
94 ashish 12268
      oprot.writeFieldEnd()
12269
    oprot.writeFieldStop()
12270
    oprot.writeStructEnd()
12271
 
3431 rajveer 12272
  def validate(self):
12273
    return
12274
 
12275
 
94 ashish 12276
  def __repr__(self):
12277
    L = ['%s=%r' % (key, value)
12278
      for key, value in self.__dict__.iteritems()]
12279
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12280
 
12281
  def __eq__(self, other):
12282
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12283
 
12284
  def __ne__(self, other):
12285
    return not (self == other)
12286
 
2981 rajveer 12287
class getAllUsers_args:
94 ashish 12288
  """
12289
  Attributes:
2981 rajveer 12290
   - userType
12291
   - startDate
12292
   - endDate
94 ashish 12293
  """
12294
 
12295
  thrift_spec = (
12296
    None, # 0
2981 rajveer 12297
    (1, TType.I32, 'userType', None, None, ), # 1
12298
    (2, TType.I64, 'startDate', None, None, ), # 2
12299
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12300
  )
12301
 
2981 rajveer 12302
  def __init__(self, userType=None, startDate=None, endDate=None,):
12303
    self.userType = userType
12304
    self.startDate = startDate
12305
    self.endDate = endDate
94 ashish 12306
 
12307
  def read(self, iprot):
12308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12310
      return
12311
    iprot.readStructBegin()
12312
    while True:
12313
      (fname, ftype, fid) = iprot.readFieldBegin()
12314
      if ftype == TType.STOP:
12315
        break
12316
      if fid == 1:
2981 rajveer 12317
        if ftype == TType.I32:
12318
          self.userType = iprot.readI32();
94 ashish 12319
        else:
12320
          iprot.skip(ftype)
12321
      elif fid == 2:
559 chandransh 12322
        if ftype == TType.I64:
2981 rajveer 12323
          self.startDate = iprot.readI64();
94 ashish 12324
        else:
12325
          iprot.skip(ftype)
2981 rajveer 12326
      elif fid == 3:
12327
        if ftype == TType.I64:
12328
          self.endDate = iprot.readI64();
12329
        else:
12330
          iprot.skip(ftype)
94 ashish 12331
      else:
12332
        iprot.skip(ftype)
12333
      iprot.readFieldEnd()
12334
    iprot.readStructEnd()
12335
 
12336
  def write(self, oprot):
12337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12339
      return
2981 rajveer 12340
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12341
    if self.userType is not None:
2981 rajveer 12342
      oprot.writeFieldBegin('userType', TType.I32, 1)
12343
      oprot.writeI32(self.userType)
94 ashish 12344
      oprot.writeFieldEnd()
3431 rajveer 12345
    if self.startDate is not None:
2981 rajveer 12346
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12347
      oprot.writeI64(self.startDate)
94 ashish 12348
      oprot.writeFieldEnd()
3431 rajveer 12349
    if self.endDate is not None:
2981 rajveer 12350
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12351
      oprot.writeI64(self.endDate)
12352
      oprot.writeFieldEnd()
94 ashish 12353
    oprot.writeFieldStop()
12354
    oprot.writeStructEnd()
12355
 
3431 rajveer 12356
  def validate(self):
12357
    return
12358
 
12359
 
94 ashish 12360
  def __repr__(self):
12361
    L = ['%s=%r' % (key, value)
12362
      for key, value in self.__dict__.iteritems()]
12363
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12364
 
12365
  def __eq__(self, other):
12366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12367
 
12368
  def __ne__(self, other):
12369
    return not (self == other)
12370
 
2981 rajveer 12371
class getAllUsers_result:
94 ashish 12372
  """
12373
  Attributes:
12374
   - success
12375
  """
12376
 
12377
  thrift_spec = (
2981 rajveer 12378
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12379
  )
12380
 
2981 rajveer 12381
  def __init__(self, success=None,):
94 ashish 12382
    self.success = success
12383
 
12384
  def read(self, iprot):
12385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12387
      return
12388
    iprot.readStructBegin()
12389
    while True:
12390
      (fname, ftype, fid) = iprot.readFieldBegin()
12391
      if ftype == TType.STOP:
12392
        break
12393
      if fid == 0:
2981 rajveer 12394
        if ftype == TType.LIST:
12395
          self.success = []
3385 varun.gupt 12396
          (_etype124, _size121) = iprot.readListBegin()
12397
          for _i125 in xrange(_size121):
12398
            _elem126 = User()
12399
            _elem126.read(iprot)
12400
            self.success.append(_elem126)
2981 rajveer 12401
          iprot.readListEnd()
94 ashish 12402
        else:
12403
          iprot.skip(ftype)
12404
      else:
12405
        iprot.skip(ftype)
12406
      iprot.readFieldEnd()
12407
    iprot.readStructEnd()
12408
 
12409
  def write(self, oprot):
12410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12412
      return
2981 rajveer 12413
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12414
    if self.success is not None:
2981 rajveer 12415
      oprot.writeFieldBegin('success', TType.LIST, 0)
12416
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 12417
      for iter127 in self.success:
12418
        iter127.write(oprot)
2981 rajveer 12419
      oprot.writeListEnd()
94 ashish 12420
      oprot.writeFieldEnd()
12421
    oprot.writeFieldStop()
12422
    oprot.writeStructEnd()
12423
 
3431 rajveer 12424
  def validate(self):
12425
    return
12426
 
12427
 
94 ashish 12428
  def __repr__(self):
12429
    L = ['%s=%r' % (key, value)
12430
      for key, value in self.__dict__.iteritems()]
12431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12432
 
12433
  def __eq__(self, other):
12434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12435
 
12436
  def __ne__(self, other):
12437
    return not (self == other)
12438
 
2981 rajveer 12439
class putUserNote_args:
130 ashish 12440
  """
12441
  Attributes:
2981 rajveer 12442
   - user_id
12443
   - entity_id
12444
   - slide
12445
   - note
130 ashish 12446
  """
94 ashish 12447
 
130 ashish 12448
  thrift_spec = (
12449
    None, # 0
2981 rajveer 12450
    (1, TType.I64, 'user_id', None, None, ), # 1
12451
    (2, TType.I64, 'entity_id', None, None, ), # 2
12452
    (3, TType.STRING, 'slide', None, None, ), # 3
12453
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12454
  )
12455
 
2981 rajveer 12456
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12457
    self.user_id = user_id
12458
    self.entity_id = entity_id
12459
    self.slide = slide
12460
    self.note = note
130 ashish 12461
 
12462
  def read(self, iprot):
12463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12465
      return
12466
    iprot.readStructBegin()
12467
    while True:
12468
      (fname, ftype, fid) = iprot.readFieldBegin()
12469
      if ftype == TType.STOP:
12470
        break
12471
      if fid == 1:
12472
        if ftype == TType.I64:
2981 rajveer 12473
          self.user_id = iprot.readI64();
130 ashish 12474
        else:
12475
          iprot.skip(ftype)
559 chandransh 12476
      elif fid == 2:
12477
        if ftype == TType.I64:
2981 rajveer 12478
          self.entity_id = iprot.readI64();
559 chandransh 12479
        else:
12480
          iprot.skip(ftype)
2981 rajveer 12481
      elif fid == 3:
12482
        if ftype == TType.STRING:
12483
          self.slide = iprot.readString();
12484
        else:
12485
          iprot.skip(ftype)
12486
      elif fid == 4:
12487
        if ftype == TType.STRING:
12488
          self.note = iprot.readString();
12489
        else:
12490
          iprot.skip(ftype)
130 ashish 12491
      else:
12492
        iprot.skip(ftype)
12493
      iprot.readFieldEnd()
12494
    iprot.readStructEnd()
12495
 
12496
  def write(self, oprot):
12497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12499
      return
2981 rajveer 12500
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12501
    if self.user_id is not None:
2981 rajveer 12502
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12503
      oprot.writeI64(self.user_id)
130 ashish 12504
      oprot.writeFieldEnd()
3431 rajveer 12505
    if self.entity_id is not None:
2981 rajveer 12506
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12507
      oprot.writeI64(self.entity_id)
559 chandransh 12508
      oprot.writeFieldEnd()
3431 rajveer 12509
    if self.slide is not None:
2981 rajveer 12510
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12511
      oprot.writeString(self.slide)
12512
      oprot.writeFieldEnd()
3431 rajveer 12513
    if self.note is not None:
2981 rajveer 12514
      oprot.writeFieldBegin('note', TType.STRING, 4)
12515
      oprot.writeString(self.note)
12516
      oprot.writeFieldEnd()
130 ashish 12517
    oprot.writeFieldStop()
12518
    oprot.writeStructEnd()
12519
 
3431 rajveer 12520
  def validate(self):
12521
    return
12522
 
12523
 
130 ashish 12524
  def __repr__(self):
12525
    L = ['%s=%r' % (key, value)
12526
      for key, value in self.__dict__.iteritems()]
12527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12528
 
12529
  def __eq__(self, other):
12530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12531
 
12532
  def __ne__(self, other):
12533
    return not (self == other)
12534
 
2981 rajveer 12535
class putUserNote_result:
559 chandransh 12536
 
12537
  thrift_spec = (
12538
  )
12539
 
12540
  def read(self, iprot):
12541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12543
      return
12544
    iprot.readStructBegin()
12545
    while True:
12546
      (fname, ftype, fid) = iprot.readFieldBegin()
12547
      if ftype == TType.STOP:
12548
        break
12549
      else:
12550
        iprot.skip(ftype)
12551
      iprot.readFieldEnd()
12552
    iprot.readStructEnd()
12553
 
12554
  def write(self, oprot):
12555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12557
      return
2981 rajveer 12558
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12559
    oprot.writeFieldStop()
12560
    oprot.writeStructEnd()
12561
 
3431 rajveer 12562
  def validate(self):
12563
    return
12564
 
12565
 
559 chandransh 12566
  def __repr__(self):
12567
    L = ['%s=%r' % (key, value)
12568
      for key, value in self.__dict__.iteritems()]
12569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12570
 
12571
  def __eq__(self, other):
12572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12573
 
12574
  def __ne__(self, other):
12575
    return not (self == other)
12576
 
2981 rajveer 12577
class getUserNotes_args:
559 chandransh 12578
  """
12579
  Attributes:
2981 rajveer 12580
   - user_id
12581
   - entity_id
559 chandransh 12582
  """
12583
 
12584
  thrift_spec = (
12585
    None, # 0
2981 rajveer 12586
    (1, TType.I64, 'user_id', None, None, ), # 1
12587
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12588
  )
12589
 
2981 rajveer 12590
  def __init__(self, user_id=None, entity_id=None,):
12591
    self.user_id = user_id
12592
    self.entity_id = entity_id
559 chandransh 12593
 
12594
  def read(self, iprot):
12595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12597
      return
12598
    iprot.readStructBegin()
12599
    while True:
12600
      (fname, ftype, fid) = iprot.readFieldBegin()
12601
      if ftype == TType.STOP:
12602
        break
12603
      if fid == 1:
12604
        if ftype == TType.I64:
2981 rajveer 12605
          self.user_id = iprot.readI64();
559 chandransh 12606
        else:
12607
          iprot.skip(ftype)
12608
      elif fid == 2:
12609
        if ftype == TType.I64:
2981 rajveer 12610
          self.entity_id = iprot.readI64();
559 chandransh 12611
        else:
12612
          iprot.skip(ftype)
12613
      else:
12614
        iprot.skip(ftype)
12615
      iprot.readFieldEnd()
12616
    iprot.readStructEnd()
12617
 
12618
  def write(self, oprot):
12619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12621
      return
2981 rajveer 12622
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12623
    if self.user_id is not None:
2981 rajveer 12624
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12625
      oprot.writeI64(self.user_id)
559 chandransh 12626
      oprot.writeFieldEnd()
3431 rajveer 12627
    if self.entity_id is not None:
2981 rajveer 12628
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12629
      oprot.writeI64(self.entity_id)
559 chandransh 12630
      oprot.writeFieldEnd()
12631
    oprot.writeFieldStop()
12632
    oprot.writeStructEnd()
12633
 
3431 rajveer 12634
  def validate(self):
12635
    return
12636
 
12637
 
559 chandransh 12638
  def __repr__(self):
12639
    L = ['%s=%r' % (key, value)
12640
      for key, value in self.__dict__.iteritems()]
12641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12642
 
12643
  def __eq__(self, other):
12644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12645
 
12646
  def __ne__(self, other):
12647
    return not (self == other)
12648
 
2981 rajveer 12649
class getUserNotes_result:
12650
  """
12651
  Attributes:
12652
   - success
12653
  """
559 chandransh 12654
 
12655
  thrift_spec = (
2981 rajveer 12656
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12657
  )
12658
 
2981 rajveer 12659
  def __init__(self, success=None,):
12660
    self.success = success
12661
 
559 chandransh 12662
  def read(self, iprot):
12663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12665
      return
12666
    iprot.readStructBegin()
12667
    while True:
12668
      (fname, ftype, fid) = iprot.readFieldBegin()
12669
      if ftype == TType.STOP:
12670
        break
2981 rajveer 12671
      if fid == 0:
12672
        if ftype == TType.LIST:
12673
          self.success = []
3385 varun.gupt 12674
          (_etype131, _size128) = iprot.readListBegin()
12675
          for _i132 in xrange(_size128):
12676
            _elem133 = UserNote()
12677
            _elem133.read(iprot)
12678
            self.success.append(_elem133)
2981 rajveer 12679
          iprot.readListEnd()
12680
        else:
12681
          iprot.skip(ftype)
559 chandransh 12682
      else:
12683
        iprot.skip(ftype)
12684
      iprot.readFieldEnd()
12685
    iprot.readStructEnd()
12686
 
12687
  def write(self, oprot):
12688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12690
      return
2981 rajveer 12691
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12692
    if self.success is not None:
2981 rajveer 12693
      oprot.writeFieldBegin('success', TType.LIST, 0)
12694
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3385 varun.gupt 12695
      for iter134 in self.success:
12696
        iter134.write(oprot)
2981 rajveer 12697
      oprot.writeListEnd()
12698
      oprot.writeFieldEnd()
559 chandransh 12699
    oprot.writeFieldStop()
12700
    oprot.writeStructEnd()
12701
 
3431 rajveer 12702
  def validate(self):
12703
    return
12704
 
12705
 
559 chandransh 12706
  def __repr__(self):
12707
    L = ['%s=%r' % (key, value)
12708
      for key, value in self.__dict__.iteritems()]
12709
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12710
 
12711
  def __eq__(self, other):
12712
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12713
 
12714
  def __ne__(self, other):
12715
    return not (self == other)
12716
 
2981 rajveer 12717
class getMyResearchItems_args:
559 chandransh 12718
  """
12719
  Attributes:
772 rajveer 12720
   - userId
559 chandransh 12721
  """
12722
 
12723
  thrift_spec = (
12724
    None, # 0
772 rajveer 12725
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12726
  )
12727
 
772 rajveer 12728
  def __init__(self, userId=None,):
12729
    self.userId = userId
559 chandransh 12730
 
12731
  def read(self, iprot):
12732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12734
      return
12735
    iprot.readStructBegin()
12736
    while True:
12737
      (fname, ftype, fid) = iprot.readFieldBegin()
12738
      if ftype == TType.STOP:
12739
        break
12740
      if fid == 1:
12741
        if ftype == TType.I64:
772 rajveer 12742
          self.userId = iprot.readI64();
559 chandransh 12743
        else:
12744
          iprot.skip(ftype)
12745
      else:
12746
        iprot.skip(ftype)
12747
      iprot.readFieldEnd()
12748
    iprot.readStructEnd()
12749
 
12750
  def write(self, oprot):
12751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12753
      return
2981 rajveer 12754
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12755
    if self.userId is not None:
772 rajveer 12756
      oprot.writeFieldBegin('userId', TType.I64, 1)
12757
      oprot.writeI64(self.userId)
559 chandransh 12758
      oprot.writeFieldEnd()
12759
    oprot.writeFieldStop()
12760
    oprot.writeStructEnd()
12761
 
3431 rajveer 12762
  def validate(self):
12763
    return
12764
 
12765
 
559 chandransh 12766
  def __repr__(self):
12767
    L = ['%s=%r' % (key, value)
12768
      for key, value in self.__dict__.iteritems()]
12769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12770
 
12771
  def __eq__(self, other):
12772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12773
 
12774
  def __ne__(self, other):
12775
    return not (self == other)
12776
 
2981 rajveer 12777
class getMyResearchItems_result:
559 chandransh 12778
  """
12779
  Attributes:
130 ashish 12780
   - success
559 chandransh 12781
   - scx
130 ashish 12782
  """
12783
 
12784
  thrift_spec = (
2981 rajveer 12785
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12786
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12787
  )
12788
 
559 chandransh 12789
  def __init__(self, success=None, scx=None,):
130 ashish 12790
    self.success = success
559 chandransh 12791
    self.scx = scx
130 ashish 12792
 
12793
  def read(self, iprot):
12794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12796
      return
12797
    iprot.readStructBegin()
12798
    while True:
12799
      (fname, ftype, fid) = iprot.readFieldBegin()
12800
      if ftype == TType.STOP:
12801
        break
12802
      if fid == 0:
2981 rajveer 12803
        if ftype == TType.LIST:
12804
          self.success = []
3385 varun.gupt 12805
          (_etype138, _size135) = iprot.readListBegin()
12806
          for _i139 in xrange(_size135):
12807
            _elem140 = iprot.readI64();
12808
            self.success.append(_elem140)
2981 rajveer 12809
          iprot.readListEnd()
130 ashish 12810
        else:
12811
          iprot.skip(ftype)
12812
      elif fid == 1:
12813
        if ftype == TType.STRUCT:
559 chandransh 12814
          self.scx = WidgetException()
12815
          self.scx.read(iprot)
130 ashish 12816
        else:
12817
          iprot.skip(ftype)
12818
      else:
12819
        iprot.skip(ftype)
12820
      iprot.readFieldEnd()
12821
    iprot.readStructEnd()
12822
 
12823
  def write(self, oprot):
12824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12826
      return
2981 rajveer 12827
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12828
    if self.success is not None:
2981 rajveer 12829
      oprot.writeFieldBegin('success', TType.LIST, 0)
12830
      oprot.writeListBegin(TType.I64, len(self.success))
3385 varun.gupt 12831
      for iter141 in self.success:
12832
        oprot.writeI64(iter141)
2981 rajveer 12833
      oprot.writeListEnd()
130 ashish 12834
      oprot.writeFieldEnd()
3431 rajveer 12835
    if self.scx is not None:
559 chandransh 12836
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12837
      self.scx.write(oprot)
130 ashish 12838
      oprot.writeFieldEnd()
12839
    oprot.writeFieldStop()
12840
    oprot.writeStructEnd()
12841
 
3431 rajveer 12842
  def validate(self):
12843
    return
12844
 
12845
 
130 ashish 12846
  def __repr__(self):
12847
    L = ['%s=%r' % (key, value)
12848
      for key, value in self.__dict__.iteritems()]
12849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12850
 
12851
  def __eq__(self, other):
12852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12853
 
12854
  def __ne__(self, other):
12855
    return not (self == other)
12856
 
2981 rajveer 12857
class updateMyResearch_args:
130 ashish 12858
  """
12859
  Attributes:
2981 rajveer 12860
   - userId
12861
   - itemId
130 ashish 12862
  """
12863
 
12864
  thrift_spec = (
12865
    None, # 0
2981 rajveer 12866
    (1, TType.I64, 'userId', None, None, ), # 1
12867
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12868
  )
12869
 
2981 rajveer 12870
  def __init__(self, userId=None, itemId=None,):
12871
    self.userId = userId
12872
    self.itemId = itemId
130 ashish 12873
 
12874
  def read(self, iprot):
12875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12877
      return
12878
    iprot.readStructBegin()
12879
    while True:
12880
      (fname, ftype, fid) = iprot.readFieldBegin()
12881
      if ftype == TType.STOP:
12882
        break
12883
      if fid == 1:
559 chandransh 12884
        if ftype == TType.I64:
2981 rajveer 12885
          self.userId = iprot.readI64();
130 ashish 12886
        else:
12887
          iprot.skip(ftype)
12888
      elif fid == 2:
559 chandransh 12889
        if ftype == TType.I64:
2981 rajveer 12890
          self.itemId = iprot.readI64();
559 chandransh 12891
        else:
12892
          iprot.skip(ftype)
130 ashish 12893
      else:
12894
        iprot.skip(ftype)
12895
      iprot.readFieldEnd()
12896
    iprot.readStructEnd()
12897
 
12898
  def write(self, oprot):
12899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12901
      return
2981 rajveer 12902
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12903
    if self.userId is not None:
2981 rajveer 12904
      oprot.writeFieldBegin('userId', TType.I64, 1)
12905
      oprot.writeI64(self.userId)
130 ashish 12906
      oprot.writeFieldEnd()
3431 rajveer 12907
    if self.itemId is not None:
2981 rajveer 12908
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12909
      oprot.writeI64(self.itemId)
130 ashish 12910
      oprot.writeFieldEnd()
12911
    oprot.writeFieldStop()
12912
    oprot.writeStructEnd()
12913
 
3431 rajveer 12914
  def validate(self):
12915
    return
12916
 
12917
 
130 ashish 12918
  def __repr__(self):
12919
    L = ['%s=%r' % (key, value)
12920
      for key, value in self.__dict__.iteritems()]
12921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12922
 
12923
  def __eq__(self, other):
12924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12925
 
12926
  def __ne__(self, other):
12927
    return not (self == other)
12928
 
2981 rajveer 12929
class updateMyResearch_result:
12930
  """
12931
  Attributes:
12932
   - success
12933
   - scx
12934
  """
559 chandransh 12935
 
12936
  thrift_spec = (
2981 rajveer 12937
    (0, TType.BOOL, 'success', None, None, ), # 0
12938
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12939
  )
12940
 
2981 rajveer 12941
  def __init__(self, success=None, scx=None,):
12942
    self.success = success
12943
    self.scx = scx
12944
 
559 chandransh 12945
  def read(self, iprot):
12946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12948
      return
12949
    iprot.readStructBegin()
12950
    while True:
12951
      (fname, ftype, fid) = iprot.readFieldBegin()
12952
      if ftype == TType.STOP:
12953
        break
2981 rajveer 12954
      if fid == 0:
12955
        if ftype == TType.BOOL:
12956
          self.success = iprot.readBool();
12957
        else:
12958
          iprot.skip(ftype)
12959
      elif fid == 1:
12960
        if ftype == TType.STRUCT:
12961
          self.scx = WidgetException()
12962
          self.scx.read(iprot)
12963
        else:
12964
          iprot.skip(ftype)
559 chandransh 12965
      else:
12966
        iprot.skip(ftype)
12967
      iprot.readFieldEnd()
12968
    iprot.readStructEnd()
12969
 
12970
  def write(self, oprot):
12971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12973
      return
2981 rajveer 12974
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12975
    if self.success is not None:
2981 rajveer 12976
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12977
      oprot.writeBool(self.success)
12978
      oprot.writeFieldEnd()
3431 rajveer 12979
    if self.scx is not None:
2981 rajveer 12980
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12981
      self.scx.write(oprot)
12982
      oprot.writeFieldEnd()
559 chandransh 12983
    oprot.writeFieldStop()
12984
    oprot.writeStructEnd()
12985
 
3431 rajveer 12986
  def validate(self):
12987
    return
12988
 
12989
 
559 chandransh 12990
  def __repr__(self):
12991
    L = ['%s=%r' % (key, value)
12992
      for key, value in self.__dict__.iteritems()]
12993
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12994
 
12995
  def __eq__(self, other):
12996
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12997
 
12998
  def __ne__(self, other):
12999
    return not (self == other)
13000
 
2981 rajveer 13001
class deleteItemFromMyResearch_args:
1596 ankur.sing 13002
  """
13003
  Attributes:
2981 rajveer 13004
   - userId
13005
   - itemId
1596 ankur.sing 13006
  """
559 chandransh 13007
 
1596 ankur.sing 13008
  thrift_spec = (
13009
    None, # 0
2981 rajveer 13010
    (1, TType.I64, 'userId', None, None, ), # 1
13011
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 13012
  )
13013
 
2981 rajveer 13014
  def __init__(self, userId=None, itemId=None,):
13015
    self.userId = userId
13016
    self.itemId = itemId
1596 ankur.sing 13017
 
13018
  def read(self, iprot):
13019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13021
      return
13022
    iprot.readStructBegin()
13023
    while True:
13024
      (fname, ftype, fid) = iprot.readFieldBegin()
13025
      if ftype == TType.STOP:
13026
        break
13027
      if fid == 1:
2981 rajveer 13028
        if ftype == TType.I64:
13029
          self.userId = iprot.readI64();
1596 ankur.sing 13030
        else:
13031
          iprot.skip(ftype)
2981 rajveer 13032
      elif fid == 2:
13033
        if ftype == TType.I64:
13034
          self.itemId = iprot.readI64();
13035
        else:
13036
          iprot.skip(ftype)
1596 ankur.sing 13037
      else:
13038
        iprot.skip(ftype)
13039
      iprot.readFieldEnd()
13040
    iprot.readStructEnd()
13041
 
13042
  def write(self, oprot):
13043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13045
      return
2981 rajveer 13046
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13047
    if self.userId is not None:
2981 rajveer 13048
      oprot.writeFieldBegin('userId', TType.I64, 1)
13049
      oprot.writeI64(self.userId)
1596 ankur.sing 13050
      oprot.writeFieldEnd()
3431 rajveer 13051
    if self.itemId is not None:
2981 rajveer 13052
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13053
      oprot.writeI64(self.itemId)
13054
      oprot.writeFieldEnd()
1596 ankur.sing 13055
    oprot.writeFieldStop()
13056
    oprot.writeStructEnd()
13057
 
3431 rajveer 13058
  def validate(self):
13059
    return
13060
 
13061
 
1596 ankur.sing 13062
  def __repr__(self):
13063
    L = ['%s=%r' % (key, value)
13064
      for key, value in self.__dict__.iteritems()]
13065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13066
 
13067
  def __eq__(self, other):
13068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13069
 
13070
  def __ne__(self, other):
13071
    return not (self == other)
13072
 
2981 rajveer 13073
class deleteItemFromMyResearch_result:
1596 ankur.sing 13074
  """
13075
  Attributes:
2981 rajveer 13076
   - scx
1596 ankur.sing 13077
  """
13078
 
13079
  thrift_spec = (
2981 rajveer 13080
    None, # 0
13081
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13082
  )
13083
 
2981 rajveer 13084
  def __init__(self, scx=None,):
13085
    self.scx = scx
1596 ankur.sing 13086
 
13087
  def read(self, iprot):
13088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13090
      return
13091
    iprot.readStructBegin()
13092
    while True:
13093
      (fname, ftype, fid) = iprot.readFieldBegin()
13094
      if ftype == TType.STOP:
13095
        break
2981 rajveer 13096
      if fid == 1:
13097
        if ftype == TType.STRUCT:
13098
          self.scx = WidgetException()
13099
          self.scx.read(iprot)
1596 ankur.sing 13100
        else:
13101
          iprot.skip(ftype)
13102
      else:
13103
        iprot.skip(ftype)
13104
      iprot.readFieldEnd()
13105
    iprot.readStructEnd()
13106
 
13107
  def write(self, oprot):
13108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13110
      return
2981 rajveer 13111
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13112
    if self.scx is not None:
2981 rajveer 13113
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13114
      self.scx.write(oprot)
1596 ankur.sing 13115
      oprot.writeFieldEnd()
13116
    oprot.writeFieldStop()
13117
    oprot.writeStructEnd()
13118
 
3431 rajveer 13119
  def validate(self):
13120
    return
13121
 
13122
 
1596 ankur.sing 13123
  def __repr__(self):
13124
    L = ['%s=%r' % (key, value)
13125
      for key, value in self.__dict__.iteritems()]
13126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13127
 
13128
  def __eq__(self, other):
13129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13130
 
13131
  def __ne__(self, other):
13132
    return not (self == other)
13133
 
2981 rajveer 13134
class getBrowseHistoryItems_args:
1673 ankur.sing 13135
  """
13136
  Attributes:
2981 rajveer 13137
   - userId
1673 ankur.sing 13138
  """
1596 ankur.sing 13139
 
1673 ankur.sing 13140
  thrift_spec = (
13141
    None, # 0
2981 rajveer 13142
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13143
  )
13144
 
2981 rajveer 13145
  def __init__(self, userId=None,):
13146
    self.userId = userId
1673 ankur.sing 13147
 
13148
  def read(self, iprot):
13149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13151
      return
13152
    iprot.readStructBegin()
13153
    while True:
13154
      (fname, ftype, fid) = iprot.readFieldBegin()
13155
      if ftype == TType.STOP:
13156
        break
13157
      if fid == 1:
1891 ankur.sing 13158
        if ftype == TType.I64:
2981 rajveer 13159
          self.userId = iprot.readI64();
1891 ankur.sing 13160
        else:
13161
          iprot.skip(ftype)
1673 ankur.sing 13162
      else:
13163
        iprot.skip(ftype)
13164
      iprot.readFieldEnd()
13165
    iprot.readStructEnd()
13166
 
13167
  def write(self, oprot):
13168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13170
      return
2981 rajveer 13171
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13172
    if self.userId is not None:
2981 rajveer 13173
      oprot.writeFieldBegin('userId', TType.I64, 1)
13174
      oprot.writeI64(self.userId)
1673 ankur.sing 13175
      oprot.writeFieldEnd()
13176
    oprot.writeFieldStop()
13177
    oprot.writeStructEnd()
13178
 
3431 rajveer 13179
  def validate(self):
13180
    return
13181
 
13182
 
1673 ankur.sing 13183
  def __repr__(self):
13184
    L = ['%s=%r' % (key, value)
13185
      for key, value in self.__dict__.iteritems()]
13186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13187
 
13188
  def __eq__(self, other):
13189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13190
 
13191
  def __ne__(self, other):
13192
    return not (self == other)
13193
 
2981 rajveer 13194
class getBrowseHistoryItems_result:
1673 ankur.sing 13195
  """
13196
  Attributes:
13197
   - success
2981 rajveer 13198
   - scx
1673 ankur.sing 13199
  """
13200
 
13201
  thrift_spec = (
2981 rajveer 13202
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13203
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13204
  )
13205
 
2981 rajveer 13206
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13207
    self.success = success
2981 rajveer 13208
    self.scx = scx
1673 ankur.sing 13209
 
13210
  def read(self, iprot):
13211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13213
      return
13214
    iprot.readStructBegin()
13215
    while True:
13216
      (fname, ftype, fid) = iprot.readFieldBegin()
13217
      if ftype == TType.STOP:
13218
        break
13219
      if fid == 0:
13220
        if ftype == TType.LIST:
13221
          self.success = []
3385 varun.gupt 13222
          (_etype145, _size142) = iprot.readListBegin()
13223
          for _i146 in xrange(_size142):
13224
            _elem147 = iprot.readI64();
13225
            self.success.append(_elem147)
1673 ankur.sing 13226
          iprot.readListEnd()
13227
        else:
13228
          iprot.skip(ftype)
2981 rajveer 13229
      elif fid == 1:
13230
        if ftype == TType.STRUCT:
13231
          self.scx = WidgetException()
13232
          self.scx.read(iprot)
13233
        else:
13234
          iprot.skip(ftype)
1673 ankur.sing 13235
      else:
13236
        iprot.skip(ftype)
13237
      iprot.readFieldEnd()
13238
    iprot.readStructEnd()
13239
 
13240
  def write(self, oprot):
13241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13243
      return
2981 rajveer 13244
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13245
    if self.success is not None:
1673 ankur.sing 13246
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13247
      oprot.writeListBegin(TType.I64, len(self.success))
3385 varun.gupt 13248
      for iter148 in self.success:
13249
        oprot.writeI64(iter148)
1673 ankur.sing 13250
      oprot.writeListEnd()
13251
      oprot.writeFieldEnd()
3431 rajveer 13252
    if self.scx is not None:
2981 rajveer 13253
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13254
      self.scx.write(oprot)
2642 varun.gupt 13255
      oprot.writeFieldEnd()
13256
    oprot.writeFieldStop()
13257
    oprot.writeStructEnd()
13258
 
3431 rajveer 13259
  def validate(self):
13260
    return
13261
 
13262
 
2642 varun.gupt 13263
  def __repr__(self):
13264
    L = ['%s=%r' % (key, value)
13265
      for key, value in self.__dict__.iteritems()]
13266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13267
 
13268
  def __eq__(self, other):
13269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13270
 
13271
  def __ne__(self, other):
13272
    return not (self == other)
13273
 
2981 rajveer 13274
class updateBrowseHistory_args:
2642 varun.gupt 13275
  """
13276
  Attributes:
2981 rajveer 13277
   - userId
13278
   - itemId
2642 varun.gupt 13279
  """
13280
 
13281
  thrift_spec = (
13282
    None, # 0
2981 rajveer 13283
    (1, TType.I64, 'userId', None, None, ), # 1
13284
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13285
  )
13286
 
2981 rajveer 13287
  def __init__(self, userId=None, itemId=None,):
13288
    self.userId = userId
13289
    self.itemId = itemId
2642 varun.gupt 13290
 
13291
  def read(self, iprot):
13292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13294
      return
13295
    iprot.readStructBegin()
13296
    while True:
13297
      (fname, ftype, fid) = iprot.readFieldBegin()
13298
      if ftype == TType.STOP:
13299
        break
13300
      if fid == 1:
13301
        if ftype == TType.I64:
2981 rajveer 13302
          self.userId = iprot.readI64();
2642 varun.gupt 13303
        else:
13304
          iprot.skip(ftype)
13305
      elif fid == 2:
13306
        if ftype == TType.I64:
2981 rajveer 13307
          self.itemId = iprot.readI64();
2642 varun.gupt 13308
        else:
13309
          iprot.skip(ftype)
13310
      else:
13311
        iprot.skip(ftype)
13312
      iprot.readFieldEnd()
13313
    iprot.readStructEnd()
13314
 
13315
  def write(self, oprot):
13316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13318
      return
2981 rajveer 13319
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13320
    if self.userId is not None:
2981 rajveer 13321
      oprot.writeFieldBegin('userId', TType.I64, 1)
13322
      oprot.writeI64(self.userId)
2642 varun.gupt 13323
      oprot.writeFieldEnd()
3431 rajveer 13324
    if self.itemId is not None:
2981 rajveer 13325
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13326
      oprot.writeI64(self.itemId)
2642 varun.gupt 13327
      oprot.writeFieldEnd()
13328
    oprot.writeFieldStop()
13329
    oprot.writeStructEnd()
13330
 
3431 rajveer 13331
  def validate(self):
13332
    return
13333
 
13334
 
2642 varun.gupt 13335
  def __repr__(self):
13336
    L = ['%s=%r' % (key, value)
13337
      for key, value in self.__dict__.iteritems()]
13338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13339
 
13340
  def __eq__(self, other):
13341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13342
 
13343
  def __ne__(self, other):
13344
    return not (self == other)
13345
 
2981 rajveer 13346
class updateBrowseHistory_result:
2642 varun.gupt 13347
 
13348
  thrift_spec = (
13349
  )
13350
 
13351
  def read(self, iprot):
13352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13354
      return
13355
    iprot.readStructBegin()
13356
    while True:
13357
      (fname, ftype, fid) = iprot.readFieldBegin()
13358
      if ftype == TType.STOP:
13359
        break
13360
      else:
13361
        iprot.skip(ftype)
13362
      iprot.readFieldEnd()
13363
    iprot.readStructEnd()
13364
 
13365
  def write(self, oprot):
13366
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13367
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13368
      return
2981 rajveer 13369
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13370
    oprot.writeFieldStop()
13371
    oprot.writeStructEnd()
13372
 
3431 rajveer 13373
  def validate(self):
13374
    return
13375
 
13376
 
2642 varun.gupt 13377
  def __repr__(self):
13378
    L = ['%s=%r' % (key, value)
13379
      for key, value in self.__dict__.iteritems()]
13380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13381
 
13382
  def __eq__(self, other):
13383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13384
 
13385
  def __ne__(self, other):
13386
    return not (self == other)
13387
 
3385 varun.gupt 13388
class getCartsWithCouponCount_args:
13389
  """
13390
  Attributes:
13391
   - couponCode
13392
  """
2642 varun.gupt 13393
 
3385 varun.gupt 13394
  thrift_spec = (
13395
    None, # 0
13396
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13397
  )
13398
 
13399
  def __init__(self, couponCode=None,):
13400
    self.couponCode = couponCode
13401
 
13402
  def read(self, iprot):
13403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13405
      return
13406
    iprot.readStructBegin()
13407
    while True:
13408
      (fname, ftype, fid) = iprot.readFieldBegin()
13409
      if ftype == TType.STOP:
13410
        break
13411
      if fid == 1:
13412
        if ftype == TType.STRING:
13413
          self.couponCode = iprot.readString();
13414
        else:
13415
          iprot.skip(ftype)
13416
      else:
13417
        iprot.skip(ftype)
13418
      iprot.readFieldEnd()
13419
    iprot.readStructEnd()
13420
 
13421
  def write(self, oprot):
13422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13424
      return
13425
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13426
    if self.couponCode is not None:
3385 varun.gupt 13427
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13428
      oprot.writeString(self.couponCode)
13429
      oprot.writeFieldEnd()
13430
    oprot.writeFieldStop()
13431
    oprot.writeStructEnd()
13432
 
3431 rajveer 13433
  def validate(self):
13434
    return
13435
 
13436
 
3385 varun.gupt 13437
  def __repr__(self):
13438
    L = ['%s=%r' % (key, value)
13439
      for key, value in self.__dict__.iteritems()]
13440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13441
 
13442
  def __eq__(self, other):
13443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13444
 
13445
  def __ne__(self, other):
13446
    return not (self == other)
13447
 
13448
class getCartsWithCouponCount_result:
13449
  """
13450
  Attributes:
13451
   - success
13452
  """
13453
 
13454
  thrift_spec = (
13455
    (0, TType.I64, 'success', None, None, ), # 0
13456
  )
13457
 
13458
  def __init__(self, success=None,):
13459
    self.success = success
13460
 
13461
  def read(self, iprot):
13462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13464
      return
13465
    iprot.readStructBegin()
13466
    while True:
13467
      (fname, ftype, fid) = iprot.readFieldBegin()
13468
      if ftype == TType.STOP:
13469
        break
13470
      if fid == 0:
13471
        if ftype == TType.I64:
13472
          self.success = iprot.readI64();
13473
        else:
13474
          iprot.skip(ftype)
13475
      else:
13476
        iprot.skip(ftype)
13477
      iprot.readFieldEnd()
13478
    iprot.readStructEnd()
13479
 
13480
  def write(self, oprot):
13481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13483
      return
13484
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13485
    if self.success is not None:
3385 varun.gupt 13486
      oprot.writeFieldBegin('success', TType.I64, 0)
13487
      oprot.writeI64(self.success)
13488
      oprot.writeFieldEnd()
13489
    oprot.writeFieldStop()
13490
    oprot.writeStructEnd()
13491
 
3431 rajveer 13492
  def validate(self):
13493
    return
13494
 
13495
 
3385 varun.gupt 13496
  def __repr__(self):
13497
    L = ['%s=%r' % (key, value)
13498
      for key, value in self.__dict__.iteritems()]
13499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13500
 
13501
  def __eq__(self, other):
13502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13503
 
13504
  def __ne__(self, other):
13505
    return not (self == other)
3499 mandeep.dh 13506
 
13507
class increaseTrustLevel_args:
13508
  """
13509
  Attributes:
13510
   - userId
13511
   - trustLevelDelta
13512
  """
13513
 
13514
  thrift_spec = (
13515
    None, # 0
13516
    (1, TType.I64, 'userId', None, None, ), # 1
13517
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13518
  )
13519
 
13520
  def __init__(self, userId=None, trustLevelDelta=None,):
13521
    self.userId = userId
13522
    self.trustLevelDelta = trustLevelDelta
13523
 
13524
  def read(self, iprot):
13525
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13526
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13527
      return
13528
    iprot.readStructBegin()
13529
    while True:
13530
      (fname, ftype, fid) = iprot.readFieldBegin()
13531
      if ftype == TType.STOP:
13532
        break
13533
      if fid == 1:
13534
        if ftype == TType.I64:
13535
          self.userId = iprot.readI64();
13536
        else:
13537
          iprot.skip(ftype)
13538
      elif fid == 2:
13539
        if ftype == TType.DOUBLE:
13540
          self.trustLevelDelta = iprot.readDouble();
13541
        else:
13542
          iprot.skip(ftype)
13543
      else:
13544
        iprot.skip(ftype)
13545
      iprot.readFieldEnd()
13546
    iprot.readStructEnd()
13547
 
13548
  def write(self, oprot):
13549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13551
      return
13552
    oprot.writeStructBegin('increaseTrustLevel_args')
13553
    if self.userId is not None:
13554
      oprot.writeFieldBegin('userId', TType.I64, 1)
13555
      oprot.writeI64(self.userId)
13556
      oprot.writeFieldEnd()
13557
    if self.trustLevelDelta is not None:
13558
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13559
      oprot.writeDouble(self.trustLevelDelta)
13560
      oprot.writeFieldEnd()
13561
    oprot.writeFieldStop()
13562
    oprot.writeStructEnd()
13563
 
13564
  def validate(self):
13565
    return
13566
 
13567
 
13568
  def __repr__(self):
13569
    L = ['%s=%r' % (key, value)
13570
      for key, value in self.__dict__.iteritems()]
13571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13572
 
13573
  def __eq__(self, other):
13574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13575
 
13576
  def __ne__(self, other):
13577
    return not (self == other)