Subversion Repositories SmartDukaan

Rev

Rev 3563 | Rev 4189 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  """
21
  service
22
  """
559 chandransh 23
  def createAnonymousUser(self, jsessionId):
94 ashish 24
    """
25
    Parameters:
559 chandransh 26
     - jsessionId
94 ashish 27
    """
28
    pass
29
 
559 chandransh 30
  def getUserById(self, userId):
94 ashish 31
    """
32
    Parameters:
33
     - userId
34
    """
35
    pass
36
 
1491 vikas 37
  def getUserByEmail(self, email):
38
    """
39
    Parameters:
40
     - email
41
    """
42
    pass
43
 
3032 mandeep.dh 44
  def getUserByMobileNumber(self, mobileNumber):
45
    """
46
    Parameters:
47
     - mobileNumber
48
    """
49
    pass
50
 
559 chandransh 51
  def createUser(self, user):
94 ashish 52
    """
53
    Parameters:
559 chandransh 54
     - user
94 ashish 55
    """
56
    pass
57
 
559 chandransh 58
  def updateUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def deleteUser(self, userId):
94 ashish 66
    """
67
    Parameters:
68
     - userId
69
    """
70
    pass
71
 
559 chandransh 72
  def getUserState(self, userId):
94 ashish 73
    """
74
    Parameters:
75
     - userId
76
    """
77
    pass
78
 
559 chandransh 79
  def authenticateUser(self, email, password):
94 ashish 80
    """
81
    Parameters:
82
     - email
83
     - password
84
    """
85
    pass
86
 
87
  def userExists(self, email):
88
    """
89
    Parameters:
90
     - email
91
    """
92
    pass
93
 
567 rajveer 94
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 95
    """
96
    Parameters:
97
     - userId
98
     - address
513 rajveer 99
     - setDefault
94 ashish 100
    """
101
    pass
102
 
103
  def removeAddressForUser(self, userid, addressId):
104
    """
105
    Parameters:
106
     - userid
107
     - addressId
108
    """
109
    pass
110
 
111
  def setUserAsLoggedIn(self, userId, timestamp):
112
    """
113
    Parameters:
114
     - userId
115
     - timestamp
116
    """
117
    pass
118
 
119
  def setUserAsLoggedOut(self, userid, timestamp):
120
    """
121
    Parameters:
122
     - userid
123
     - timestamp
124
    """
125
    pass
126
 
504 rajveer 127
  def setDefaultAddress(self, userid, addressId):
128
    """
129
    Parameters:
130
     - userid
131
     - addressId
132
    """
133
    pass
134
 
594 rajveer 135
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 136
    """
137
    Parameters:
138
     - userid
594 rajveer 139
     - oldPassword
140
     - newPassword
94 ashish 141
    """
142
    pass
143
 
884 rajveer 144
  def forgotPassword(self, email, newPassword):
581 rajveer 145
    """
146
    Parameters:
147
     - email
884 rajveer 148
     - newPassword
581 rajveer 149
    """
150
    pass
151
 
594 rajveer 152
  def getAllAddressesForUser(self, userId):
153
    """
154
    Parameters:
155
     - userId
156
    """
157
    pass
158
 
1894 vikas 159
  def getAddressById(self, addressId):
160
    """
161
    Parameters:
162
     - addressId
163
    """
164
    pass
165
 
594 rajveer 166
  def getDefaultAddressId(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
785 rajveer 173
  def getDefaultPincode(self, userId):
174
    """
175
    Parameters:
176
     - userId
177
    """
178
    pass
179
 
1274 varun.gupt 180
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
181
    """
182
    Parameters:
183
     - userId
184
     - replyTo
185
     - communicationType
186
     - orderId
187
     - airwaybillNo
188
     - productName
189
     - subject
190
     - message
191
    """
192
    pass
193
 
1590 varun.gupt 194
  def getUserCommunicationById(self, id):
195
    """
196
    Parameters:
197
     - id
198
    """
199
    pass
200
 
201
  def getUserCommunicationByUser(self, userId):
202
    """
203
    Parameters:
204
     - userId
205
    """
206
    pass
207
 
208
  def getAllUserCommunications(self, ):
209
    pass
210
 
1859 vikas 211
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 212
    """
213
    Parameters:
214
     - name
1859 vikas 215
     - addedOn
1845 vikas 216
    """
217
    pass
218
 
1899 vikas 219
  def getAllMasterAffiliates(self, ):
220
    pass
221
 
1845 vikas 222
  def getMasterAffiliateById(self, id):
223
    """
224
    Parameters:
225
     - id
226
    """
227
    pass
228
 
229
  def getMasterAffiliateByName(self, name):
230
    """
231
    Parameters:
232
     - name
233
    """
234
    pass
235
 
1859 vikas 236
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 237
    """
238
    Parameters:
239
     - name
240
     - url
241
     - masterAffiliateId
1859 vikas 242
     - addedOn
1845 vikas 243
    """
244
    pass
245
 
246
  def getAffiliateById(self, id):
247
    """
248
    Parameters:
249
     - id
250
    """
251
    pass
252
 
253
  def getAffiliateByName(self, name):
254
    """
255
    Parameters:
256
     - name
257
    """
258
    pass
259
 
1996 vikas 260
  def getTrackerById(self, id):
1845 vikas 261
    """
262
    Parameters:
263
     - id
264
    """
265
    pass
266
 
1996 vikas 267
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 268
    """
269
    Parameters:
1996 vikas 270
     - id
1845 vikas 271
    """
272
    pass
273
 
1996 vikas 274
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 275
    """
276
    Parameters:
277
     - affiliateId
278
     - userId
279
     - event
280
     - url
281
     - data
1859 vikas 282
     - addedOn
1845 vikas 283
    """
284
    pass
285
 
286
  def getTrackLogById(self, id):
287
    """
288
    Parameters:
289
     - id
290
    """
291
    pass
292
 
3293 vikas 293
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 294
    """
295
    Parameters:
1996 vikas 296
     - affiliateId
3293 vikas 297
     - startDate
298
     - endDate
1845 vikas 299
    """
300
    pass
301
 
302
  def getTrackLogsByUser(self, userId):
303
    """
304
    Parameters:
305
     - userId
306
    """
307
    pass
308
 
1996 vikas 309
  def getTrackLogs(self, userId, event, url):
1845 vikas 310
    """
311
    Parameters:
312
     - userId
313
     - event
314
     - url
315
    """
316
    pass
317
 
559 chandransh 318
  def createCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCurrentCart(self, userId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - userId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCart(self, cartId):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - cartId
94 ashish 336
    """
337
    pass
338
 
559 chandransh 339
  def getCartsForUser(self, userId, status):
94 ashish 340
    """
341
    Parameters:
559 chandransh 342
     - userId
343
     - status
94 ashish 344
    """
345
    pass
346
 
559 chandransh 347
  def getCartsByStatus(self, status):
94 ashish 348
    """
349
    Parameters:
559 chandransh 350
     - status
94 ashish 351
    """
352
    pass
353
 
559 chandransh 354
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 355
    """
356
    Parameters:
559 chandransh 357
     - from_time
358
     - to_time
359
     - status
94 ashish 360
    """
361
    pass
362
 
559 chandransh 363
  def changeCartStatus(self, cartId, status):
130 ashish 364
    """
365
    Parameters:
559 chandransh 366
     - cartId
367
     - status
130 ashish 368
    """
369
    pass
94 ashish 370
 
3557 rajveer 371
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 372
    """
373
    Parameters:
559 chandransh 374
     - cartId
375
     - itemId
376
     - quantity
3557 rajveer 377
     - sourceId
130 ashish 378
    """
379
    pass
380
 
559 chandransh 381
  def deleteItemFromCart(self, cartId, itemId):
382
    """
383
    Parameters:
384
     - cartId
385
     - itemId
386
    """
387
    pass
130 ashish 388
 
559 chandransh 389
  def changeItemStatus(self, cartId, itemId, status):
390
    """
391
    Parameters:
392
     - cartId
393
     - itemId
394
     - status
395
    """
396
    pass
397
 
398
  def addAddressToCart(self, cartId, addressId):
399
    """
400
    Parameters:
401
     - cartId
402
     - addressId
403
    """
404
    pass
405
 
1976 varun.gupt 406
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
407
    """
408
    Parameters:
409
     - cartId
410
     - couponCode
411
     - totalPrice
412
     - discountedPrice
413
    """
414
    pass
415
 
416
  def removeCoupon(self, cartId):
417
    """
418
    Parameters:
419
     - cartId
420
    """
421
    pass
422
 
3554 varun.gupt 423
  def deleteDiscountsFromCart(self, cartId):
424
    """
425
    Deletes all the discounts associated with the cart
426
 
427
    Parameters:
428
     - cartId
429
    """
430
    pass
431
 
432
  def saveDiscounts(self, discounts):
433
    """
434
    Accepts a list of thrift objects of Discount type and saves them
435
 
436
    Parameters:
437
     - discounts
438
    """
439
    pass
440
 
3858 vikas 441
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
559 chandransh 442
    """
690 chandransh 443
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 444
 
559 chandransh 445
    Parameters:
446
     - cartId
2815 vikas 447
     - sessionSource
448
     - sessionStartTime
3858 vikas 449
     - firstSource
450
     - firstSourceTime
559 chandransh 451
    """
452
    pass
453
 
3557 rajveer 454
  def validateCart(self, cartId, sourceId):
559 chandransh 455
    """
690 chandransh 456
    Validates that:
457
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 458
    2. All of the lines in the cart are active items.
690 chandransh 459
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 460
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 461
 
559 chandransh 462
    Parameters:
463
     - cartId
3557 rajveer 464
     - sourceId
559 chandransh 465
    """
466
    pass
467
 
690 chandransh 468
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 469
    """
690 chandransh 470
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 471
 
575 chandransh 472
    Parameters:
690 chandransh 473
     - fromCartId
474
     - toCartId
475
    """
476
    pass
477
 
478
  def checkOut(self, cartId):
479
    """
480
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 481
 
690 chandransh 482
    Parameters:
575 chandransh 483
     - cartId
484
    """
485
    pass
486
 
690 chandransh 487
  def resetCart(self, cartId, items):
559 chandransh 488
    """
690 chandransh 489
    The second parameter is a map of item ids and their quantities which have been successfully processed.
490
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 491
 
559 chandransh 492
    Parameters:
690 chandransh 493
     - cartId
494
     - items
559 chandransh 495
    """
496
    pass
497
 
2981 rajveer 498
  def getUserCount(self, userType):
559 chandransh 499
    """
2981 rajveer 500
    Returns number of registered users.
501
    If userType = null, then it returns count of all users, including anonymous
502
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
503
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 504
 
559 chandransh 505
    Parameters:
2981 rajveer 506
     - userType
559 chandransh 507
    """
508
    pass
509
 
2981 rajveer 510
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 511
    """
2981 rajveer 512
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
513
    If any of startDate or endDate is -1, then that filter is ignored.
514
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 515
 
516
 
559 chandransh 517
    Parameters:
2981 rajveer 518
     - userType
519
     - startDate
520
     - endDate
559 chandransh 521
    """
522
    pass
523
 
2981 rajveer 524
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 525
    """
526
    Parameters:
2981 rajveer 527
     - user_id
528
     - entity_id
529
     - slide
530
     - note
559 chandransh 531
    """
532
    pass
533
 
2981 rajveer 534
  def getUserNotes(self, user_id, entity_id):
559 chandransh 535
    """
536
    Parameters:
2981 rajveer 537
     - user_id
538
     - entity_id
559 chandransh 539
    """
540
    pass
541
 
2981 rajveer 542
  def getMyResearchItems(self, userId):
559 chandransh 543
    """
2981 rajveer 544
    Returns list of item ids in myresearch for the user
3431 rajveer 545
 
559 chandransh 546
    Parameters:
547
     - userId
548
    """
549
    pass
550
 
2981 rajveer 551
  def updateMyResearch(self, userId, itemId):
559 chandransh 552
    """
2981 rajveer 553
    add item to my research for a user
3431 rajveer 554
 
559 chandransh 555
    Parameters:
2981 rajveer 556
     - userId
557
     - itemId
559 chandransh 558
    """
559
    pass
560
 
2981 rajveer 561
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 562
    """
2981 rajveer 563
    delete item from my research for a user
3431 rajveer 564
 
1596 ankur.sing 565
    Parameters:
2981 rajveer 566
     - userId
567
     - itemId
1596 ankur.sing 568
    """
569
    pass
559 chandransh 570
 
2981 rajveer 571
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 572
    """
2981 rajveer 573
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 574
 
1673 ankur.sing 575
    Parameters:
2981 rajveer 576
     - userId
1673 ankur.sing 577
    """
578
    pass
1596 ankur.sing 579
 
2981 rajveer 580
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 581
    """
2981 rajveer 582
    add item to browse history for a user
3431 rajveer 583
 
2642 varun.gupt 584
    Parameters:
2981 rajveer 585
     - userId
586
     - itemId
2642 varun.gupt 587
    """
588
    pass
1673 ankur.sing 589
 
3385 varun.gupt 590
  def getCartsWithCouponCount(self, couponCode):
591
    """
592
    Returns count of Carts with given coupon applied
3431 rajveer 593
 
3385 varun.gupt 594
    Parameters:
595
     - couponCode
596
    """
597
    pass
2642 varun.gupt 598
 
3499 mandeep.dh 599
  def increaseTrustLevel(self, userId, trustLevelDelta):
600
    """
601
    Updates COD trust level of a user
3385 varun.gupt 602
 
3499 mandeep.dh 603
    Parameters:
604
     - userId
605
     - trustLevelDelta
606
    """
607
    pass
608
 
609
 
3376 rajveer 610
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 611
  """
612
  service
613
  """
614
  def __init__(self, iprot, oprot=None):
3376 rajveer 615
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 616
 
559 chandransh 617
  def createAnonymousUser(self, jsessionId):
94 ashish 618
    """
619
    Parameters:
559 chandransh 620
     - jsessionId
94 ashish 621
    """
559 chandransh 622
    self.send_createAnonymousUser(jsessionId)
623
    return self.recv_createAnonymousUser()
94 ashish 624
 
559 chandransh 625
  def send_createAnonymousUser(self, jsessionId):
626
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
627
    args = createAnonymousUser_args()
628
    args.jsessionId = jsessionId
94 ashish 629
    args.write(self._oprot)
630
    self._oprot.writeMessageEnd()
631
    self._oprot.trans.flush()
632
 
559 chandransh 633
  def recv_createAnonymousUser(self, ):
94 ashish 634
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
635
    if mtype == TMessageType.EXCEPTION:
636
      x = TApplicationException()
637
      x.read(self._iprot)
638
      self._iprot.readMessageEnd()
639
      raise x
559 chandransh 640
    result = createAnonymousUser_result()
94 ashish 641
    result.read(self._iprot)
642
    self._iprot.readMessageEnd()
3431 rajveer 643
    if result.success is not None:
94 ashish 644
      return result.success
3431 rajveer 645
    if result.ucex is not None:
559 chandransh 646
      raise result.ucex
647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 648
 
559 chandransh 649
  def getUserById(self, userId):
94 ashish 650
    """
651
    Parameters:
652
     - userId
653
    """
559 chandransh 654
    self.send_getUserById(userId)
655
    return self.recv_getUserById()
94 ashish 656
 
559 chandransh 657
  def send_getUserById(self, userId):
658
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
659
    args = getUserById_args()
94 ashish 660
    args.userId = userId
661
    args.write(self._oprot)
662
    self._oprot.writeMessageEnd()
663
    self._oprot.trans.flush()
664
 
559 chandransh 665
  def recv_getUserById(self, ):
94 ashish 666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
667
    if mtype == TMessageType.EXCEPTION:
668
      x = TApplicationException()
669
      x.read(self._iprot)
670
      self._iprot.readMessageEnd()
671
      raise x
559 chandransh 672
    result = getUserById_result()
94 ashish 673
    result.read(self._iprot)
674
    self._iprot.readMessageEnd()
3431 rajveer 675
    if result.success is not None:
94 ashish 676
      return result.success
3431 rajveer 677
    if result.ucex is not None:
559 chandransh 678
      raise result.ucex
679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 680
 
1491 vikas 681
  def getUserByEmail(self, email):
682
    """
683
    Parameters:
684
     - email
685
    """
686
    self.send_getUserByEmail(email)
687
    return self.recv_getUserByEmail()
688
 
689
  def send_getUserByEmail(self, email):
690
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
691
    args = getUserByEmail_args()
692
    args.email = email
693
    args.write(self._oprot)
694
    self._oprot.writeMessageEnd()
695
    self._oprot.trans.flush()
696
 
697
  def recv_getUserByEmail(self, ):
698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
699
    if mtype == TMessageType.EXCEPTION:
700
      x = TApplicationException()
701
      x.read(self._iprot)
702
      self._iprot.readMessageEnd()
703
      raise x
704
    result = getUserByEmail_result()
705
    result.read(self._iprot)
706
    self._iprot.readMessageEnd()
3431 rajveer 707
    if result.success is not None:
1491 vikas 708
      return result.success
3431 rajveer 709
    if result.ucex is not None:
1491 vikas 710
      raise result.ucex
711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
712
 
3032 mandeep.dh 713
  def getUserByMobileNumber(self, mobileNumber):
714
    """
715
    Parameters:
716
     - mobileNumber
717
    """
718
    self.send_getUserByMobileNumber(mobileNumber)
719
    return self.recv_getUserByMobileNumber()
720
 
721
  def send_getUserByMobileNumber(self, mobileNumber):
722
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
723
    args = getUserByMobileNumber_args()
724
    args.mobileNumber = mobileNumber
725
    args.write(self._oprot)
726
    self._oprot.writeMessageEnd()
727
    self._oprot.trans.flush()
728
 
729
  def recv_getUserByMobileNumber(self, ):
730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
731
    if mtype == TMessageType.EXCEPTION:
732
      x = TApplicationException()
733
      x.read(self._iprot)
734
      self._iprot.readMessageEnd()
735
      raise x
736
    result = getUserByMobileNumber_result()
737
    result.read(self._iprot)
738
    self._iprot.readMessageEnd()
3431 rajveer 739
    if result.success is not None:
3032 mandeep.dh 740
      return result.success
3431 rajveer 741
    if result.ucex is not None:
3032 mandeep.dh 742
      raise result.ucex
743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
744
 
559 chandransh 745
  def createUser(self, user):
94 ashish 746
    """
747
    Parameters:
559 chandransh 748
     - user
94 ashish 749
    """
559 chandransh 750
    self.send_createUser(user)
751
    return self.recv_createUser()
94 ashish 752
 
559 chandransh 753
  def send_createUser(self, user):
754
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
755
    args = createUser_args()
756
    args.user = user
94 ashish 757
    args.write(self._oprot)
758
    self._oprot.writeMessageEnd()
759
    self._oprot.trans.flush()
760
 
559 chandransh 761
  def recv_createUser(self, ):
94 ashish 762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
763
    if mtype == TMessageType.EXCEPTION:
764
      x = TApplicationException()
765
      x.read(self._iprot)
766
      self._iprot.readMessageEnd()
767
      raise x
559 chandransh 768
    result = createUser_result()
94 ashish 769
    result.read(self._iprot)
770
    self._iprot.readMessageEnd()
3431 rajveer 771
    if result.success is not None:
94 ashish 772
      return result.success
3431 rajveer 773
    if result.ucex is not None:
559 chandransh 774
      raise result.ucex
775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 776
 
559 chandransh 777
  def updateUser(self, user):
94 ashish 778
    """
779
    Parameters:
559 chandransh 780
     - user
94 ashish 781
    """
559 chandransh 782
    self.send_updateUser(user)
783
    return self.recv_updateUser()
94 ashish 784
 
559 chandransh 785
  def send_updateUser(self, user):
786
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
787
    args = updateUser_args()
788
    args.user = user
94 ashish 789
    args.write(self._oprot)
790
    self._oprot.writeMessageEnd()
791
    self._oprot.trans.flush()
792
 
559 chandransh 793
  def recv_updateUser(self, ):
94 ashish 794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
795
    if mtype == TMessageType.EXCEPTION:
796
      x = TApplicationException()
797
      x.read(self._iprot)
798
      self._iprot.readMessageEnd()
799
      raise x
559 chandransh 800
    result = updateUser_result()
94 ashish 801
    result.read(self._iprot)
802
    self._iprot.readMessageEnd()
3431 rajveer 803
    if result.success is not None:
94 ashish 804
      return result.success
3431 rajveer 805
    if result.ucex is not None:
559 chandransh 806
      raise result.ucex
807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 808
 
559 chandransh 809
  def deleteUser(self, userId):
94 ashish 810
    """
811
    Parameters:
812
     - userId
813
    """
559 chandransh 814
    self.send_deleteUser(userId)
815
    return self.recv_deleteUser()
94 ashish 816
 
559 chandransh 817
  def send_deleteUser(self, userId):
818
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
819
    args = deleteUser_args()
94 ashish 820
    args.userId = userId
821
    args.write(self._oprot)
822
    self._oprot.writeMessageEnd()
823
    self._oprot.trans.flush()
824
 
559 chandransh 825
  def recv_deleteUser(self, ):
94 ashish 826
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
827
    if mtype == TMessageType.EXCEPTION:
828
      x = TApplicationException()
829
      x.read(self._iprot)
830
      self._iprot.readMessageEnd()
831
      raise x
559 chandransh 832
    result = deleteUser_result()
94 ashish 833
    result.read(self._iprot)
834
    self._iprot.readMessageEnd()
3431 rajveer 835
    if result.success is not None:
94 ashish 836
      return result.success
3431 rajveer 837
    if result.ucex is not None:
559 chandransh 838
      raise result.ucex
839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 840
 
559 chandransh 841
  def getUserState(self, userId):
94 ashish 842
    """
843
    Parameters:
844
     - userId
845
    """
559 chandransh 846
    self.send_getUserState(userId)
847
    return self.recv_getUserState()
94 ashish 848
 
559 chandransh 849
  def send_getUserState(self, userId):
850
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
851
    args = getUserState_args()
94 ashish 852
    args.userId = userId
853
    args.write(self._oprot)
854
    self._oprot.writeMessageEnd()
855
    self._oprot.trans.flush()
856
 
559 chandransh 857
  def recv_getUserState(self, ):
94 ashish 858
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
859
    if mtype == TMessageType.EXCEPTION:
860
      x = TApplicationException()
861
      x.read(self._iprot)
862
      self._iprot.readMessageEnd()
863
      raise x
559 chandransh 864
    result = getUserState_result()
94 ashish 865
    result.read(self._iprot)
866
    self._iprot.readMessageEnd()
3431 rajveer 867
    if result.success is not None:
94 ashish 868
      return result.success
3431 rajveer 869
    if result.ucex is not None:
559 chandransh 870
      raise result.ucex
871
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 872
 
559 chandransh 873
  def authenticateUser(self, email, password):
94 ashish 874
    """
875
    Parameters:
876
     - email
877
     - password
878
    """
559 chandransh 879
    self.send_authenticateUser(email, password)
122 ashish 880
    return self.recv_authenticateUser()
881
 
559 chandransh 882
  def send_authenticateUser(self, email, password):
122 ashish 883
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
884
    args = authenticateUser_args()
559 chandransh 885
    args.email = email
122 ashish 886
    args.password = password
887
    args.write(self._oprot)
888
    self._oprot.writeMessageEnd()
889
    self._oprot.trans.flush()
890
 
891
  def recv_authenticateUser(self, ):
892
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
893
    if mtype == TMessageType.EXCEPTION:
894
      x = TApplicationException()
895
      x.read(self._iprot)
896
      self._iprot.readMessageEnd()
897
      raise x
898
    result = authenticateUser_result()
899
    result.read(self._iprot)
900
    self._iprot.readMessageEnd()
3431 rajveer 901
    if result.success is not None:
122 ashish 902
      return result.success
3431 rajveer 903
    if result.auex is not None:
559 chandransh 904
      raise result.auex
122 ashish 905
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
906
 
94 ashish 907
  def userExists(self, email):
908
    """
909
    Parameters:
910
     - email
911
    """
912
    self.send_userExists(email)
913
    return self.recv_userExists()
914
 
915
  def send_userExists(self, email):
916
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
917
    args = userExists_args()
918
    args.email = email
919
    args.write(self._oprot)
920
    self._oprot.writeMessageEnd()
921
    self._oprot.trans.flush()
922
 
923
  def recv_userExists(self, ):
924
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
925
    if mtype == TMessageType.EXCEPTION:
926
      x = TApplicationException()
927
      x.read(self._iprot)
928
      self._iprot.readMessageEnd()
929
      raise x
930
    result = userExists_result()
931
    result.read(self._iprot)
932
    self._iprot.readMessageEnd()
3431 rajveer 933
    if result.success is not None:
94 ashish 934
      return result.success
3431 rajveer 935
    if result.ucx is not None:
94 ashish 936
      raise result.ucx
937
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
938
 
567 rajveer 939
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 940
    """
941
    Parameters:
942
     - userId
943
     - address
513 rajveer 944
     - setDefault
94 ashish 945
    """
567 rajveer 946
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 947
    return self.recv_addAddressForUser()
948
 
567 rajveer 949
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 950
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
951
    args = addAddressForUser_args()
559 chandransh 952
    args.userId = userId
94 ashish 953
    args.address = address
513 rajveer 954
    args.setDefault = setDefault
94 ashish 955
    args.write(self._oprot)
956
    self._oprot.writeMessageEnd()
957
    self._oprot.trans.flush()
958
 
959
  def recv_addAddressForUser(self, ):
960
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
961
    if mtype == TMessageType.EXCEPTION:
962
      x = TApplicationException()
963
      x.read(self._iprot)
964
      self._iprot.readMessageEnd()
965
      raise x
966
    result = addAddressForUser_result()
967
    result.read(self._iprot)
968
    self._iprot.readMessageEnd()
3431 rajveer 969
    if result.success is not None:
94 ashish 970
      return result.success
3431 rajveer 971
    if result.ucx is not None:
94 ashish 972
      raise result.ucx
973
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
974
 
975
  def removeAddressForUser(self, userid, addressId):
976
    """
977
    Parameters:
978
     - userid
979
     - addressId
980
    """
981
    self.send_removeAddressForUser(userid, addressId)
982
    return self.recv_removeAddressForUser()
983
 
984
  def send_removeAddressForUser(self, userid, addressId):
985
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
986
    args = removeAddressForUser_args()
987
    args.userid = userid
988
    args.addressId = addressId
989
    args.write(self._oprot)
990
    self._oprot.writeMessageEnd()
991
    self._oprot.trans.flush()
992
 
993
  def recv_removeAddressForUser(self, ):
994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
995
    if mtype == TMessageType.EXCEPTION:
996
      x = TApplicationException()
997
      x.read(self._iprot)
998
      self._iprot.readMessageEnd()
999
      raise x
1000
    result = removeAddressForUser_result()
1001
    result.read(self._iprot)
1002
    self._iprot.readMessageEnd()
3431 rajveer 1003
    if result.success is not None:
94 ashish 1004
      return result.success
3431 rajveer 1005
    if result.ucx is not None:
94 ashish 1006
      raise result.ucx
1007
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1008
 
1009
  def setUserAsLoggedIn(self, userId, timestamp):
1010
    """
1011
    Parameters:
1012
     - userId
1013
     - timestamp
1014
    """
1015
    self.send_setUserAsLoggedIn(userId, timestamp)
1016
    return self.recv_setUserAsLoggedIn()
1017
 
1018
  def send_setUserAsLoggedIn(self, userId, timestamp):
1019
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1020
    args = setUserAsLoggedIn_args()
1021
    args.userId = userId
1022
    args.timestamp = timestamp
1023
    args.write(self._oprot)
1024
    self._oprot.writeMessageEnd()
1025
    self._oprot.trans.flush()
1026
 
1027
  def recv_setUserAsLoggedIn(self, ):
1028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1029
    if mtype == TMessageType.EXCEPTION:
1030
      x = TApplicationException()
1031
      x.read(self._iprot)
1032
      self._iprot.readMessageEnd()
1033
      raise x
1034
    result = setUserAsLoggedIn_result()
1035
    result.read(self._iprot)
1036
    self._iprot.readMessageEnd()
3431 rajveer 1037
    if result.success is not None:
94 ashish 1038
      return result.success
3431 rajveer 1039
    if result.ucx is not None:
94 ashish 1040
      raise result.ucx
1041
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1042
 
1043
  def setUserAsLoggedOut(self, userid, timestamp):
1044
    """
1045
    Parameters:
1046
     - userid
1047
     - timestamp
1048
    """
1049
    self.send_setUserAsLoggedOut(userid, timestamp)
1050
    return self.recv_setUserAsLoggedOut()
1051
 
1052
  def send_setUserAsLoggedOut(self, userid, timestamp):
1053
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1054
    args = setUserAsLoggedOut_args()
1055
    args.userid = userid
1056
    args.timestamp = timestamp
1057
    args.write(self._oprot)
1058
    self._oprot.writeMessageEnd()
1059
    self._oprot.trans.flush()
1060
 
1061
  def recv_setUserAsLoggedOut(self, ):
1062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1063
    if mtype == TMessageType.EXCEPTION:
1064
      x = TApplicationException()
1065
      x.read(self._iprot)
1066
      self._iprot.readMessageEnd()
1067
      raise x
1068
    result = setUserAsLoggedOut_result()
1069
    result.read(self._iprot)
1070
    self._iprot.readMessageEnd()
3431 rajveer 1071
    if result.success is not None:
94 ashish 1072
      return result.success
3431 rajveer 1073
    if result.ucx is not None:
94 ashish 1074
      raise result.ucx
1075
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1076
 
504 rajveer 1077
  def setDefaultAddress(self, userid, addressId):
1078
    """
1079
    Parameters:
1080
     - userid
1081
     - addressId
1082
    """
1083
    self.send_setDefaultAddress(userid, addressId)
1084
    return self.recv_setDefaultAddress()
1085
 
1086
  def send_setDefaultAddress(self, userid, addressId):
1087
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1088
    args = setDefaultAddress_args()
1089
    args.userid = userid
1090
    args.addressId = addressId
1091
    args.write(self._oprot)
1092
    self._oprot.writeMessageEnd()
1093
    self._oprot.trans.flush()
1094
 
1095
  def recv_setDefaultAddress(self, ):
1096
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1097
    if mtype == TMessageType.EXCEPTION:
1098
      x = TApplicationException()
1099
      x.read(self._iprot)
1100
      self._iprot.readMessageEnd()
1101
      raise x
1102
    result = setDefaultAddress_result()
1103
    result.read(self._iprot)
1104
    self._iprot.readMessageEnd()
3431 rajveer 1105
    if result.success is not None:
504 rajveer 1106
      return result.success
3431 rajveer 1107
    if result.ucx is not None:
504 rajveer 1108
      raise result.ucx
1109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1110
 
594 rajveer 1111
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1112
    """
1113
    Parameters:
1114
     - userid
594 rajveer 1115
     - oldPassword
1116
     - newPassword
94 ashish 1117
    """
594 rajveer 1118
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1119
    return self.recv_updatePassword()
1120
 
594 rajveer 1121
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1122
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1123
    args = updatePassword_args()
1124
    args.userid = userid
594 rajveer 1125
    args.oldPassword = oldPassword
1126
    args.newPassword = newPassword
94 ashish 1127
    args.write(self._oprot)
1128
    self._oprot.writeMessageEnd()
1129
    self._oprot.trans.flush()
1130
 
1131
  def recv_updatePassword(self, ):
1132
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1133
    if mtype == TMessageType.EXCEPTION:
1134
      x = TApplicationException()
1135
      x.read(self._iprot)
1136
      self._iprot.readMessageEnd()
1137
      raise x
1138
    result = updatePassword_result()
1139
    result.read(self._iprot)
1140
    self._iprot.readMessageEnd()
3431 rajveer 1141
    if result.success is not None:
94 ashish 1142
      return result.success
3431 rajveer 1143
    if result.ucx is not None:
94 ashish 1144
      raise result.ucx
1145
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1146
 
884 rajveer 1147
  def forgotPassword(self, email, newPassword):
581 rajveer 1148
    """
1149
    Parameters:
1150
     - email
884 rajveer 1151
     - newPassword
581 rajveer 1152
    """
884 rajveer 1153
    self.send_forgotPassword(email, newPassword)
581 rajveer 1154
    return self.recv_forgotPassword()
1155
 
884 rajveer 1156
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1157
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1158
    args = forgotPassword_args()
1159
    args.email = email
884 rajveer 1160
    args.newPassword = newPassword
581 rajveer 1161
    args.write(self._oprot)
1162
    self._oprot.writeMessageEnd()
1163
    self._oprot.trans.flush()
1164
 
1165
  def recv_forgotPassword(self, ):
1166
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1167
    if mtype == TMessageType.EXCEPTION:
1168
      x = TApplicationException()
1169
      x.read(self._iprot)
1170
      self._iprot.readMessageEnd()
1171
      raise x
1172
    result = forgotPassword_result()
1173
    result.read(self._iprot)
1174
    self._iprot.readMessageEnd()
3431 rajveer 1175
    if result.success is not None:
581 rajveer 1176
      return result.success
3431 rajveer 1177
    if result.ucx is not None:
581 rajveer 1178
      raise result.ucx
1179
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1180
 
594 rajveer 1181
  def getAllAddressesForUser(self, userId):
1182
    """
1183
    Parameters:
1184
     - userId
1185
    """
1186
    self.send_getAllAddressesForUser(userId)
1187
    return self.recv_getAllAddressesForUser()
1188
 
1189
  def send_getAllAddressesForUser(self, userId):
1190
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1191
    args = getAllAddressesForUser_args()
1192
    args.userId = userId
1193
    args.write(self._oprot)
1194
    self._oprot.writeMessageEnd()
1195
    self._oprot.trans.flush()
1196
 
1197
  def recv_getAllAddressesForUser(self, ):
1198
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1199
    if mtype == TMessageType.EXCEPTION:
1200
      x = TApplicationException()
1201
      x.read(self._iprot)
1202
      self._iprot.readMessageEnd()
1203
      raise x
1204
    result = getAllAddressesForUser_result()
1205
    result.read(self._iprot)
1206
    self._iprot.readMessageEnd()
3431 rajveer 1207
    if result.success is not None:
594 rajveer 1208
      return result.success
3431 rajveer 1209
    if result.ucx is not None:
594 rajveer 1210
      raise result.ucx
1211
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1212
 
1894 vikas 1213
  def getAddressById(self, addressId):
1214
    """
1215
    Parameters:
1216
     - addressId
1217
    """
1218
    self.send_getAddressById(addressId)
1219
    return self.recv_getAddressById()
1220
 
1221
  def send_getAddressById(self, addressId):
1222
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1223
    args = getAddressById_args()
1224
    args.addressId = addressId
1225
    args.write(self._oprot)
1226
    self._oprot.writeMessageEnd()
1227
    self._oprot.trans.flush()
1228
 
1229
  def recv_getAddressById(self, ):
1230
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1231
    if mtype == TMessageType.EXCEPTION:
1232
      x = TApplicationException()
1233
      x.read(self._iprot)
1234
      self._iprot.readMessageEnd()
1235
      raise x
1236
    result = getAddressById_result()
1237
    result.read(self._iprot)
1238
    self._iprot.readMessageEnd()
3431 rajveer 1239
    if result.success is not None:
1894 vikas 1240
      return result.success
3431 rajveer 1241
    if result.ucx is not None:
1894 vikas 1242
      raise result.ucx
1243
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1244
 
594 rajveer 1245
  def getDefaultAddressId(self, userId):
1246
    """
1247
    Parameters:
1248
     - userId
1249
    """
1250
    self.send_getDefaultAddressId(userId)
1251
    return self.recv_getDefaultAddressId()
1252
 
1253
  def send_getDefaultAddressId(self, userId):
1254
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1255
    args = getDefaultAddressId_args()
1256
    args.userId = userId
1257
    args.write(self._oprot)
1258
    self._oprot.writeMessageEnd()
1259
    self._oprot.trans.flush()
1260
 
1261
  def recv_getDefaultAddressId(self, ):
1262
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1263
    if mtype == TMessageType.EXCEPTION:
1264
      x = TApplicationException()
1265
      x.read(self._iprot)
1266
      self._iprot.readMessageEnd()
1267
      raise x
1268
    result = getDefaultAddressId_result()
1269
    result.read(self._iprot)
1270
    self._iprot.readMessageEnd()
3431 rajveer 1271
    if result.success is not None:
594 rajveer 1272
      return result.success
3431 rajveer 1273
    if result.ucx is not None:
594 rajveer 1274
      raise result.ucx
1275
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1276
 
785 rajveer 1277
  def getDefaultPincode(self, userId):
1278
    """
1279
    Parameters:
1280
     - userId
1281
    """
1282
    self.send_getDefaultPincode(userId)
1283
    return self.recv_getDefaultPincode()
1284
 
1285
  def send_getDefaultPincode(self, userId):
1286
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1287
    args = getDefaultPincode_args()
1288
    args.userId = userId
1289
    args.write(self._oprot)
1290
    self._oprot.writeMessageEnd()
1291
    self._oprot.trans.flush()
1292
 
1293
  def recv_getDefaultPincode(self, ):
1294
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1295
    if mtype == TMessageType.EXCEPTION:
1296
      x = TApplicationException()
1297
      x.read(self._iprot)
1298
      self._iprot.readMessageEnd()
1299
      raise x
1300
    result = getDefaultPincode_result()
1301
    result.read(self._iprot)
1302
    self._iprot.readMessageEnd()
3431 rajveer 1303
    if result.success is not None:
785 rajveer 1304
      return result.success
3431 rajveer 1305
    if result.ucx is not None:
785 rajveer 1306
      raise result.ucx
1307
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1308
 
1274 varun.gupt 1309
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1310
    """
1311
    Parameters:
1312
     - userId
1313
     - replyTo
1314
     - communicationType
1315
     - orderId
1316
     - airwaybillNo
1317
     - productName
1318
     - subject
1319
     - message
1320
    """
1321
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1322
    return self.recv_saveUserCommunication()
1323
 
1324
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1325
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1326
    args = saveUserCommunication_args()
1327
    args.userId = userId
1328
    args.replyTo = replyTo
1329
    args.communicationType = communicationType
1330
    args.orderId = orderId
1331
    args.airwaybillNo = airwaybillNo
1332
    args.productName = productName
1333
    args.subject = subject
1334
    args.message = message
1335
    args.write(self._oprot)
1336
    self._oprot.writeMessageEnd()
1337
    self._oprot.trans.flush()
1338
 
1339
  def recv_saveUserCommunication(self, ):
1340
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1341
    if mtype == TMessageType.EXCEPTION:
1342
      x = TApplicationException()
1343
      x.read(self._iprot)
1344
      self._iprot.readMessageEnd()
1345
      raise x
1346
    result = saveUserCommunication_result()
1347
    result.read(self._iprot)
1348
    self._iprot.readMessageEnd()
3431 rajveer 1349
    if result.success is not None:
1274 varun.gupt 1350
      return result.success
3431 rajveer 1351
    if result.ucx is not None:
1274 varun.gupt 1352
      raise result.ucx
1353
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1354
 
1590 varun.gupt 1355
  def getUserCommunicationById(self, id):
1356
    """
1357
    Parameters:
1358
     - id
1359
    """
1360
    self.send_getUserCommunicationById(id)
1361
    return self.recv_getUserCommunicationById()
1362
 
1363
  def send_getUserCommunicationById(self, id):
1364
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1365
    args = getUserCommunicationById_args()
1366
    args.id = id
1367
    args.write(self._oprot)
1368
    self._oprot.writeMessageEnd()
1369
    self._oprot.trans.flush()
1370
 
1371
  def recv_getUserCommunicationById(self, ):
1372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1373
    if mtype == TMessageType.EXCEPTION:
1374
      x = TApplicationException()
1375
      x.read(self._iprot)
1376
      self._iprot.readMessageEnd()
1377
      raise x
1378
    result = getUserCommunicationById_result()
1379
    result.read(self._iprot)
1380
    self._iprot.readMessageEnd()
3431 rajveer 1381
    if result.success is not None:
1590 varun.gupt 1382
      return result.success
3431 rajveer 1383
    if result.ucx is not None:
1590 varun.gupt 1384
      raise result.ucx
1385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1386
 
1387
  def getUserCommunicationByUser(self, userId):
1388
    """
1389
    Parameters:
1390
     - userId
1391
    """
1392
    self.send_getUserCommunicationByUser(userId)
1393
    return self.recv_getUserCommunicationByUser()
1394
 
1395
  def send_getUserCommunicationByUser(self, userId):
1396
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1397
    args = getUserCommunicationByUser_args()
1398
    args.userId = userId
1399
    args.write(self._oprot)
1400
    self._oprot.writeMessageEnd()
1401
    self._oprot.trans.flush()
1402
 
1403
  def recv_getUserCommunicationByUser(self, ):
1404
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1405
    if mtype == TMessageType.EXCEPTION:
1406
      x = TApplicationException()
1407
      x.read(self._iprot)
1408
      self._iprot.readMessageEnd()
1409
      raise x
1410
    result = getUserCommunicationByUser_result()
1411
    result.read(self._iprot)
1412
    self._iprot.readMessageEnd()
3431 rajveer 1413
    if result.success is not None:
1590 varun.gupt 1414
      return result.success
3431 rajveer 1415
    if result.ucx is not None:
1590 varun.gupt 1416
      raise result.ucx
1417
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1418
 
1419
  def getAllUserCommunications(self, ):
1420
    self.send_getAllUserCommunications()
1421
    return self.recv_getAllUserCommunications()
1422
 
1423
  def send_getAllUserCommunications(self, ):
1424
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1425
    args = getAllUserCommunications_args()
1426
    args.write(self._oprot)
1427
    self._oprot.writeMessageEnd()
1428
    self._oprot.trans.flush()
1429
 
1430
  def recv_getAllUserCommunications(self, ):
1431
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1432
    if mtype == TMessageType.EXCEPTION:
1433
      x = TApplicationException()
1434
      x.read(self._iprot)
1435
      self._iprot.readMessageEnd()
1436
      raise x
1437
    result = getAllUserCommunications_result()
1438
    result.read(self._iprot)
1439
    self._iprot.readMessageEnd()
3431 rajveer 1440
    if result.success is not None:
1590 varun.gupt 1441
      return result.success
3431 rajveer 1442
    if result.ucx is not None:
1590 varun.gupt 1443
      raise result.ucx
1444
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1445
 
1859 vikas 1446
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1447
    """
1448
    Parameters:
1449
     - name
1859 vikas 1450
     - addedOn
1845 vikas 1451
    """
1859 vikas 1452
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1453
    return self.recv_createMasterAffiliate()
1454
 
1859 vikas 1455
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1456
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1457
    args = createMasterAffiliate_args()
1458
    args.name = name
1859 vikas 1459
    args.addedOn = addedOn
1845 vikas 1460
    args.write(self._oprot)
1461
    self._oprot.writeMessageEnd()
1462
    self._oprot.trans.flush()
1463
 
1464
  def recv_createMasterAffiliate(self, ):
1465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1466
    if mtype == TMessageType.EXCEPTION:
1467
      x = TApplicationException()
1468
      x.read(self._iprot)
1469
      self._iprot.readMessageEnd()
1470
      raise x
1471
    result = createMasterAffiliate_result()
1472
    result.read(self._iprot)
1473
    self._iprot.readMessageEnd()
3431 rajveer 1474
    if result.success is not None:
1845 vikas 1475
      return result.success
3431 rajveer 1476
    if result.utx is not None:
1845 vikas 1477
      raise result.utx
1478
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1479
 
1899 vikas 1480
  def getAllMasterAffiliates(self, ):
1481
    self.send_getAllMasterAffiliates()
1482
    return self.recv_getAllMasterAffiliates()
1483
 
1484
  def send_getAllMasterAffiliates(self, ):
1485
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1486
    args = getAllMasterAffiliates_args()
1487
    args.write(self._oprot)
1488
    self._oprot.writeMessageEnd()
1489
    self._oprot.trans.flush()
1490
 
1491
  def recv_getAllMasterAffiliates(self, ):
1492
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1493
    if mtype == TMessageType.EXCEPTION:
1494
      x = TApplicationException()
1495
      x.read(self._iprot)
1496
      self._iprot.readMessageEnd()
1497
      raise x
1498
    result = getAllMasterAffiliates_result()
1499
    result.read(self._iprot)
1500
    self._iprot.readMessageEnd()
3431 rajveer 1501
    if result.success is not None:
1899 vikas 1502
      return result.success
3431 rajveer 1503
    if result.utx is not None:
1899 vikas 1504
      raise result.utx
1505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1506
 
1845 vikas 1507
  def getMasterAffiliateById(self, id):
1508
    """
1509
    Parameters:
1510
     - id
1511
    """
1512
    self.send_getMasterAffiliateById(id)
1513
    return self.recv_getMasterAffiliateById()
1514
 
1515
  def send_getMasterAffiliateById(self, id):
1516
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1517
    args = getMasterAffiliateById_args()
1518
    args.id = id
1519
    args.write(self._oprot)
1520
    self._oprot.writeMessageEnd()
1521
    self._oprot.trans.flush()
1522
 
1523
  def recv_getMasterAffiliateById(self, ):
1524
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1525
    if mtype == TMessageType.EXCEPTION:
1526
      x = TApplicationException()
1527
      x.read(self._iprot)
1528
      self._iprot.readMessageEnd()
1529
      raise x
1530
    result = getMasterAffiliateById_result()
1531
    result.read(self._iprot)
1532
    self._iprot.readMessageEnd()
3431 rajveer 1533
    if result.success is not None:
1845 vikas 1534
      return result.success
3431 rajveer 1535
    if result.utx is not None:
1845 vikas 1536
      raise result.utx
1537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1538
 
1539
  def getMasterAffiliateByName(self, name):
1540
    """
1541
    Parameters:
1542
     - name
1543
    """
1544
    self.send_getMasterAffiliateByName(name)
1545
    return self.recv_getMasterAffiliateByName()
1546
 
1547
  def send_getMasterAffiliateByName(self, name):
1548
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1549
    args = getMasterAffiliateByName_args()
1550
    args.name = name
1551
    args.write(self._oprot)
1552
    self._oprot.writeMessageEnd()
1553
    self._oprot.trans.flush()
1554
 
1555
  def recv_getMasterAffiliateByName(self, ):
1556
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1557
    if mtype == TMessageType.EXCEPTION:
1558
      x = TApplicationException()
1559
      x.read(self._iprot)
1560
      self._iprot.readMessageEnd()
1561
      raise x
1562
    result = getMasterAffiliateByName_result()
1563
    result.read(self._iprot)
1564
    self._iprot.readMessageEnd()
3431 rajveer 1565
    if result.success is not None:
1845 vikas 1566
      return result.success
3431 rajveer 1567
    if result.utx is not None:
1845 vikas 1568
      raise result.utx
1569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1570
 
1859 vikas 1571
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1572
    """
1573
    Parameters:
1574
     - name
1575
     - url
1576
     - masterAffiliateId
1859 vikas 1577
     - addedOn
1845 vikas 1578
    """
1859 vikas 1579
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1580
    return self.recv_createAffiliate()
1581
 
1859 vikas 1582
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1583
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1584
    args = createAffiliate_args()
1585
    args.name = name
1586
    args.url = url
1587
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1588
    args.addedOn = addedOn
1845 vikas 1589
    args.write(self._oprot)
1590
    self._oprot.writeMessageEnd()
1591
    self._oprot.trans.flush()
1592
 
1593
  def recv_createAffiliate(self, ):
1594
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1595
    if mtype == TMessageType.EXCEPTION:
1596
      x = TApplicationException()
1597
      x.read(self._iprot)
1598
      self._iprot.readMessageEnd()
1599
      raise x
1600
    result = createAffiliate_result()
1601
    result.read(self._iprot)
1602
    self._iprot.readMessageEnd()
3431 rajveer 1603
    if result.success is not None:
1845 vikas 1604
      return result.success
3431 rajveer 1605
    if result.utx is not None:
1845 vikas 1606
      raise result.utx
1607
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1608
 
1609
  def getAffiliateById(self, id):
1610
    """
1611
    Parameters:
1612
     - id
1613
    """
1614
    self.send_getAffiliateById(id)
1615
    return self.recv_getAffiliateById()
1616
 
1617
  def send_getAffiliateById(self, id):
1618
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1619
    args = getAffiliateById_args()
1620
    args.id = id
1621
    args.write(self._oprot)
1622
    self._oprot.writeMessageEnd()
1623
    self._oprot.trans.flush()
1624
 
1625
  def recv_getAffiliateById(self, ):
1626
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1627
    if mtype == TMessageType.EXCEPTION:
1628
      x = TApplicationException()
1629
      x.read(self._iprot)
1630
      self._iprot.readMessageEnd()
1631
      raise x
1632
    result = getAffiliateById_result()
1633
    result.read(self._iprot)
1634
    self._iprot.readMessageEnd()
3431 rajveer 1635
    if result.success is not None:
1845 vikas 1636
      return result.success
3431 rajveer 1637
    if result.utx is not None:
1845 vikas 1638
      raise result.utx
1639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1640
 
1641
  def getAffiliateByName(self, name):
1642
    """
1643
    Parameters:
1644
     - name
1645
    """
1646
    self.send_getAffiliateByName(name)
1647
    return self.recv_getAffiliateByName()
1648
 
1649
  def send_getAffiliateByName(self, name):
1650
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1651
    args = getAffiliateByName_args()
1652
    args.name = name
1653
    args.write(self._oprot)
1654
    self._oprot.writeMessageEnd()
1655
    self._oprot.trans.flush()
1656
 
1657
  def recv_getAffiliateByName(self, ):
1658
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1659
    if mtype == TMessageType.EXCEPTION:
1660
      x = TApplicationException()
1661
      x.read(self._iprot)
1662
      self._iprot.readMessageEnd()
1663
      raise x
1664
    result = getAffiliateByName_result()
1665
    result.read(self._iprot)
1666
    self._iprot.readMessageEnd()
3431 rajveer 1667
    if result.success is not None:
1845 vikas 1668
      return result.success
3431 rajveer 1669
    if result.utx is not None:
1845 vikas 1670
      raise result.utx
1671
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1672
 
1996 vikas 1673
  def getTrackerById(self, id):
1845 vikas 1674
    """
1675
    Parameters:
1676
     - id
1677
    """
1996 vikas 1678
    self.send_getTrackerById(id)
1845 vikas 1679
    return self.recv_getTrackerById()
1680
 
1996 vikas 1681
  def send_getTrackerById(self, id):
1845 vikas 1682
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1683
    args = getTrackerById_args()
1996 vikas 1684
    args.id = id
1845 vikas 1685
    args.write(self._oprot)
1686
    self._oprot.writeMessageEnd()
1687
    self._oprot.trans.flush()
1688
 
1689
  def recv_getTrackerById(self, ):
1690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1691
    if mtype == TMessageType.EXCEPTION:
1692
      x = TApplicationException()
1693
      x.read(self._iprot)
1694
      self._iprot.readMessageEnd()
1695
      raise x
1696
    result = getTrackerById_result()
1697
    result.read(self._iprot)
1698
    self._iprot.readMessageEnd()
3431 rajveer 1699
    if result.success is not None:
1845 vikas 1700
      return result.success
3431 rajveer 1701
    if result.utx is not None:
1845 vikas 1702
      raise result.utx
1703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1704
 
1996 vikas 1705
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1706
    """
1707
    Parameters:
1996 vikas 1708
     - id
1845 vikas 1709
    """
1996 vikas 1710
    self.send_getAffiliatesByMasterAffiliate(id)
1711
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1712
 
1996 vikas 1713
  def send_getAffiliatesByMasterAffiliate(self, id):
1714
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1715
    args = getAffiliatesByMasterAffiliate_args()
1716
    args.id = id
1845 vikas 1717
    args.write(self._oprot)
1718
    self._oprot.writeMessageEnd()
1719
    self._oprot.trans.flush()
1720
 
1996 vikas 1721
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1722
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1723
    if mtype == TMessageType.EXCEPTION:
1724
      x = TApplicationException()
1725
      x.read(self._iprot)
1726
      self._iprot.readMessageEnd()
1727
      raise x
1996 vikas 1728
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1729
    result.read(self._iprot)
1730
    self._iprot.readMessageEnd()
3431 rajveer 1731
    if result.success is not None:
1845 vikas 1732
      return result.success
3431 rajveer 1733
    if result.utx is not None:
1845 vikas 1734
      raise result.utx
1996 vikas 1735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1736
 
1996 vikas 1737
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1738
    """
1739
    Parameters:
1996 vikas 1740
     - affiliateId
1845 vikas 1741
     - userId
1742
     - event
1743
     - url
1744
     - data
1859 vikas 1745
     - addedOn
1845 vikas 1746
    """
1996 vikas 1747
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1748
    return self.recv_addTrackLog()
1749
 
1996 vikas 1750
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1751
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1752
    args = addTrackLog_args()
1996 vikas 1753
    args.affiliateId = affiliateId
1845 vikas 1754
    args.userId = userId
1755
    args.event = event
1756
    args.url = url
1757
    args.data = data
1859 vikas 1758
    args.addedOn = addedOn
1845 vikas 1759
    args.write(self._oprot)
1760
    self._oprot.writeMessageEnd()
1761
    self._oprot.trans.flush()
1762
 
1763
  def recv_addTrackLog(self, ):
1764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1765
    if mtype == TMessageType.EXCEPTION:
1766
      x = TApplicationException()
1767
      x.read(self._iprot)
1768
      self._iprot.readMessageEnd()
1769
      raise x
1770
    result = addTrackLog_result()
1771
    result.read(self._iprot)
1772
    self._iprot.readMessageEnd()
3431 rajveer 1773
    if result.success is not None:
1845 vikas 1774
      return result.success
3431 rajveer 1775
    if result.utx is not None:
1845 vikas 1776
      raise result.utx
1777
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1778
 
1779
  def getTrackLogById(self, id):
1780
    """
1781
    Parameters:
1782
     - id
1783
    """
1784
    self.send_getTrackLogById(id)
1785
    return self.recv_getTrackLogById()
1786
 
1787
  def send_getTrackLogById(self, id):
1788
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1789
    args = getTrackLogById_args()
1790
    args.id = id
1791
    args.write(self._oprot)
1792
    self._oprot.writeMessageEnd()
1793
    self._oprot.trans.flush()
1794
 
1795
  def recv_getTrackLogById(self, ):
1796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1797
    if mtype == TMessageType.EXCEPTION:
1798
      x = TApplicationException()
1799
      x.read(self._iprot)
1800
      self._iprot.readMessageEnd()
1801
      raise x
1802
    result = getTrackLogById_result()
1803
    result.read(self._iprot)
1804
    self._iprot.readMessageEnd()
3431 rajveer 1805
    if result.success is not None:
1845 vikas 1806
      return result.success
3431 rajveer 1807
    if result.utx is not None:
1845 vikas 1808
      raise result.utx
1809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1810
 
3293 vikas 1811
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1812
    """
1813
    Parameters:
1996 vikas 1814
     - affiliateId
3293 vikas 1815
     - startDate
1816
     - endDate
1845 vikas 1817
    """
3293 vikas 1818
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1819
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1820
 
3293 vikas 1821
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1822
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1823
    args = getTrackLogsByAffiliate_args()
1824
    args.affiliateId = affiliateId
3293 vikas 1825
    args.startDate = startDate
1826
    args.endDate = endDate
1845 vikas 1827
    args.write(self._oprot)
1828
    self._oprot.writeMessageEnd()
1829
    self._oprot.trans.flush()
1830
 
1996 vikas 1831
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1833
    if mtype == TMessageType.EXCEPTION:
1834
      x = TApplicationException()
1835
      x.read(self._iprot)
1836
      self._iprot.readMessageEnd()
1837
      raise x
1996 vikas 1838
    result = getTrackLogsByAffiliate_result()
1845 vikas 1839
    result.read(self._iprot)
1840
    self._iprot.readMessageEnd()
3431 rajveer 1841
    if result.success is not None:
1845 vikas 1842
      return result.success
3431 rajveer 1843
    if result.utx is not None:
1845 vikas 1844
      raise result.utx
1996 vikas 1845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1846
 
1847
  def getTrackLogsByUser(self, userId):
1848
    """
1849
    Parameters:
1850
     - userId
1851
    """
1852
    self.send_getTrackLogsByUser(userId)
1853
    return self.recv_getTrackLogsByUser()
1854
 
1855
  def send_getTrackLogsByUser(self, userId):
1856
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1857
    args = getTrackLogsByUser_args()
1858
    args.userId = userId
1859
    args.write(self._oprot)
1860
    self._oprot.writeMessageEnd()
1861
    self._oprot.trans.flush()
1862
 
1863
  def recv_getTrackLogsByUser(self, ):
1864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1865
    if mtype == TMessageType.EXCEPTION:
1866
      x = TApplicationException()
1867
      x.read(self._iprot)
1868
      self._iprot.readMessageEnd()
1869
      raise x
1870
    result = getTrackLogsByUser_result()
1871
    result.read(self._iprot)
1872
    self._iprot.readMessageEnd()
3431 rajveer 1873
    if result.success is not None:
1845 vikas 1874
      return result.success
3431 rajveer 1875
    if result.utx is not None:
1845 vikas 1876
      raise result.utx
1877
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1878
 
1996 vikas 1879
  def getTrackLogs(self, userId, event, url):
1845 vikas 1880
    """
1881
    Parameters:
1882
     - userId
1883
     - event
1884
     - url
1885
    """
1996 vikas 1886
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1887
    return self.recv_getTrackLogs()
1888
 
1996 vikas 1889
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1890
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1891
    args = getTrackLogs_args()
1892
    args.userId = userId
1893
    args.event = event
1894
    args.url = url
1895
    args.write(self._oprot)
1896
    self._oprot.writeMessageEnd()
1897
    self._oprot.trans.flush()
1898
 
1899
  def recv_getTrackLogs(self, ):
1900
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1901
    if mtype == TMessageType.EXCEPTION:
1902
      x = TApplicationException()
1903
      x.read(self._iprot)
1904
      self._iprot.readMessageEnd()
1905
      raise x
1906
    result = getTrackLogs_result()
1907
    result.read(self._iprot)
1908
    self._iprot.readMessageEnd()
3431 rajveer 1909
    if result.success is not None:
1845 vikas 1910
      return result.success
3431 rajveer 1911
    if result.utx is not None:
1845 vikas 1912
      raise result.utx
1913
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1914
 
559 chandransh 1915
  def createCart(self, userId):
94 ashish 1916
    """
1917
    Parameters:
559 chandransh 1918
     - userId
94 ashish 1919
    """
559 chandransh 1920
    self.send_createCart(userId)
1921
    return self.recv_createCart()
94 ashish 1922
 
559 chandransh 1923
  def send_createCart(self, userId):
1924
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1925
    args = createCart_args()
1926
    args.userId = userId
94 ashish 1927
    args.write(self._oprot)
1928
    self._oprot.writeMessageEnd()
1929
    self._oprot.trans.flush()
1930
 
559 chandransh 1931
  def recv_createCart(self, ):
94 ashish 1932
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1933
    if mtype == TMessageType.EXCEPTION:
1934
      x = TApplicationException()
1935
      x.read(self._iprot)
1936
      self._iprot.readMessageEnd()
1937
      raise x
559 chandransh 1938
    result = createCart_result()
94 ashish 1939
    result.read(self._iprot)
1940
    self._iprot.readMessageEnd()
3431 rajveer 1941
    if result.success is not None:
94 ashish 1942
      return result.success
3431 rajveer 1943
    if result.scx is not None:
559 chandransh 1944
      raise result.scx
1945
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1946
 
559 chandransh 1947
  def getCurrentCart(self, userId):
94 ashish 1948
    """
1949
    Parameters:
559 chandransh 1950
     - userId
94 ashish 1951
    """
559 chandransh 1952
    self.send_getCurrentCart(userId)
1953
    return self.recv_getCurrentCart()
94 ashish 1954
 
559 chandransh 1955
  def send_getCurrentCart(self, userId):
1956
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1957
    args = getCurrentCart_args()
1958
    args.userId = userId
94 ashish 1959
    args.write(self._oprot)
1960
    self._oprot.writeMessageEnd()
1961
    self._oprot.trans.flush()
1962
 
559 chandransh 1963
  def recv_getCurrentCart(self, ):
94 ashish 1964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1965
    if mtype == TMessageType.EXCEPTION:
1966
      x = TApplicationException()
1967
      x.read(self._iprot)
1968
      self._iprot.readMessageEnd()
1969
      raise x
559 chandransh 1970
    result = getCurrentCart_result()
94 ashish 1971
    result.read(self._iprot)
1972
    self._iprot.readMessageEnd()
3431 rajveer 1973
    if result.success is not None:
94 ashish 1974
      return result.success
3431 rajveer 1975
    if result.scx is not None:
559 chandransh 1976
      raise result.scx
1977
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1978
 
559 chandransh 1979
  def getCart(self, cartId):
94 ashish 1980
    """
1981
    Parameters:
559 chandransh 1982
     - cartId
94 ashish 1983
    """
559 chandransh 1984
    self.send_getCart(cartId)
1985
    return self.recv_getCart()
94 ashish 1986
 
559 chandransh 1987
  def send_getCart(self, cartId):
1988
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1989
    args = getCart_args()
1990
    args.cartId = cartId
94 ashish 1991
    args.write(self._oprot)
1992
    self._oprot.writeMessageEnd()
1993
    self._oprot.trans.flush()
1994
 
559 chandransh 1995
  def recv_getCart(self, ):
94 ashish 1996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1997
    if mtype == TMessageType.EXCEPTION:
1998
      x = TApplicationException()
1999
      x.read(self._iprot)
2000
      self._iprot.readMessageEnd()
2001
      raise x
559 chandransh 2002
    result = getCart_result()
94 ashish 2003
    result.read(self._iprot)
2004
    self._iprot.readMessageEnd()
3431 rajveer 2005
    if result.success is not None:
94 ashish 2006
      return result.success
3431 rajveer 2007
    if result.scx is not None:
559 chandransh 2008
      raise result.scx
2009
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2010
 
559 chandransh 2011
  def getCartsForUser(self, userId, status):
94 ashish 2012
    """
2013
    Parameters:
559 chandransh 2014
     - userId
2015
     - status
94 ashish 2016
    """
559 chandransh 2017
    self.send_getCartsForUser(userId, status)
2018
    return self.recv_getCartsForUser()
94 ashish 2019
 
559 chandransh 2020
  def send_getCartsForUser(self, userId, status):
2021
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
2022
    args = getCartsForUser_args()
2023
    args.userId = userId
2024
    args.status = status
94 ashish 2025
    args.write(self._oprot)
2026
    self._oprot.writeMessageEnd()
2027
    self._oprot.trans.flush()
2028
 
559 chandransh 2029
  def recv_getCartsForUser(self, ):
94 ashish 2030
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2031
    if mtype == TMessageType.EXCEPTION:
2032
      x = TApplicationException()
2033
      x.read(self._iprot)
2034
      self._iprot.readMessageEnd()
2035
      raise x
559 chandransh 2036
    result = getCartsForUser_result()
94 ashish 2037
    result.read(self._iprot)
2038
    self._iprot.readMessageEnd()
3431 rajveer 2039
    if result.success is not None:
94 ashish 2040
      return result.success
3431 rajveer 2041
    if result.scx is not None:
559 chandransh 2042
      raise result.scx
2043
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2044
 
559 chandransh 2045
  def getCartsByStatus(self, status):
94 ashish 2046
    """
2047
    Parameters:
559 chandransh 2048
     - status
94 ashish 2049
    """
559 chandransh 2050
    self.send_getCartsByStatus(status)
2051
    return self.recv_getCartsByStatus()
94 ashish 2052
 
559 chandransh 2053
  def send_getCartsByStatus(self, status):
2054
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2055
    args = getCartsByStatus_args()
2056
    args.status = status
94 ashish 2057
    args.write(self._oprot)
2058
    self._oprot.writeMessageEnd()
2059
    self._oprot.trans.flush()
2060
 
559 chandransh 2061
  def recv_getCartsByStatus(self, ):
94 ashish 2062
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2063
    if mtype == TMessageType.EXCEPTION:
2064
      x = TApplicationException()
2065
      x.read(self._iprot)
2066
      self._iprot.readMessageEnd()
2067
      raise x
559 chandransh 2068
    result = getCartsByStatus_result()
94 ashish 2069
    result.read(self._iprot)
2070
    self._iprot.readMessageEnd()
3431 rajveer 2071
    if result.success is not None:
94 ashish 2072
      return result.success
3431 rajveer 2073
    if result.scx is not None:
559 chandransh 2074
      raise result.scx
2075
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2076
 
559 chandransh 2077
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2078
    """
2079
    Parameters:
559 chandransh 2080
     - from_time
2081
     - to_time
2082
     - status
94 ashish 2083
    """
559 chandransh 2084
    self.send_getCartsByTime(from_time, to_time, status)
2085
    return self.recv_getCartsByTime()
94 ashish 2086
 
559 chandransh 2087
  def send_getCartsByTime(self, from_time, to_time, status):
2088
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2089
    args = getCartsByTime_args()
2090
    args.from_time = from_time
2091
    args.to_time = to_time
2092
    args.status = status
94 ashish 2093
    args.write(self._oprot)
2094
    self._oprot.writeMessageEnd()
2095
    self._oprot.trans.flush()
2096
 
559 chandransh 2097
  def recv_getCartsByTime(self, ):
94 ashish 2098
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2099
    if mtype == TMessageType.EXCEPTION:
2100
      x = TApplicationException()
2101
      x.read(self._iprot)
2102
      self._iprot.readMessageEnd()
2103
      raise x
559 chandransh 2104
    result = getCartsByTime_result()
94 ashish 2105
    result.read(self._iprot)
2106
    self._iprot.readMessageEnd()
3431 rajveer 2107
    if result.success is not None:
94 ashish 2108
      return result.success
3431 rajveer 2109
    if result.scx is not None:
559 chandransh 2110
      raise result.scx
2111
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2112
 
559 chandransh 2113
  def changeCartStatus(self, cartId, status):
130 ashish 2114
    """
2115
    Parameters:
559 chandransh 2116
     - cartId
2117
     - status
130 ashish 2118
    """
559 chandransh 2119
    self.send_changeCartStatus(cartId, status)
2120
    self.recv_changeCartStatus()
94 ashish 2121
 
559 chandransh 2122
  def send_changeCartStatus(self, cartId, status):
2123
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2124
    args = changeCartStatus_args()
2125
    args.cartId = cartId
2126
    args.status = status
130 ashish 2127
    args.write(self._oprot)
2128
    self._oprot.writeMessageEnd()
2129
    self._oprot.trans.flush()
2130
 
559 chandransh 2131
  def recv_changeCartStatus(self, ):
130 ashish 2132
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2133
    if mtype == TMessageType.EXCEPTION:
2134
      x = TApplicationException()
2135
      x.read(self._iprot)
2136
      self._iprot.readMessageEnd()
2137
      raise x
559 chandransh 2138
    result = changeCartStatus_result()
130 ashish 2139
    result.read(self._iprot)
2140
    self._iprot.readMessageEnd()
3431 rajveer 2141
    if result.scx is not None:
559 chandransh 2142
      raise result.scx
2143
    return
2144
 
3557 rajveer 2145
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2146
    """
2147
    Parameters:
2148
     - cartId
2149
     - itemId
2150
     - quantity
3557 rajveer 2151
     - sourceId
559 chandransh 2152
    """
3557 rajveer 2153
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2154
    return self.recv_addItemToCart()
559 chandransh 2155
 
3557 rajveer 2156
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2157
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2158
    args = addItemToCart_args()
2159
    args.cartId = cartId
2160
    args.itemId = itemId
2161
    args.quantity = quantity
3557 rajveer 2162
    args.sourceId = sourceId
559 chandransh 2163
    args.write(self._oprot)
2164
    self._oprot.writeMessageEnd()
2165
    self._oprot.trans.flush()
2166
 
2167
  def recv_addItemToCart(self, ):
2168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2169
    if mtype == TMessageType.EXCEPTION:
2170
      x = TApplicationException()
2171
      x.read(self._iprot)
2172
      self._iprot.readMessageEnd()
2173
      raise x
2174
    result = addItemToCart_result()
2175
    result.read(self._iprot)
2176
    self._iprot.readMessageEnd()
3431 rajveer 2177
    if result.success is not None:
2035 rajveer 2178
      return result.success
3431 rajveer 2179
    if result.scx is not None:
559 chandransh 2180
      raise result.scx
2035 rajveer 2181
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2182
 
2183
  def deleteItemFromCart(self, cartId, itemId):
2184
    """
2185
    Parameters:
2186
     - cartId
2187
     - itemId
2188
    """
2189
    self.send_deleteItemFromCart(cartId, itemId)
2190
    self.recv_deleteItemFromCart()
2191
 
2192
  def send_deleteItemFromCart(self, cartId, itemId):
2193
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2194
    args = deleteItemFromCart_args()
2195
    args.cartId = cartId
2196
    args.itemId = itemId
2197
    args.write(self._oprot)
2198
    self._oprot.writeMessageEnd()
2199
    self._oprot.trans.flush()
2200
 
2201
  def recv_deleteItemFromCart(self, ):
2202
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2203
    if mtype == TMessageType.EXCEPTION:
2204
      x = TApplicationException()
2205
      x.read(self._iprot)
2206
      self._iprot.readMessageEnd()
2207
      raise x
2208
    result = deleteItemFromCart_result()
2209
    result.read(self._iprot)
2210
    self._iprot.readMessageEnd()
3431 rajveer 2211
    if result.scx is not None:
559 chandransh 2212
      raise result.scx
2213
    return
2214
 
2215
  def changeItemStatus(self, cartId, itemId, status):
2216
    """
2217
    Parameters:
2218
     - cartId
2219
     - itemId
2220
     - status
2221
    """
2222
    self.send_changeItemStatus(cartId, itemId, status)
2223
    self.recv_changeItemStatus()
2224
 
2225
  def send_changeItemStatus(self, cartId, itemId, status):
2226
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2227
    args = changeItemStatus_args()
2228
    args.cartId = cartId
2229
    args.itemId = itemId
2230
    args.status = status
2231
    args.write(self._oprot)
2232
    self._oprot.writeMessageEnd()
2233
    self._oprot.trans.flush()
2234
 
2235
  def recv_changeItemStatus(self, ):
2236
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2237
    if mtype == TMessageType.EXCEPTION:
2238
      x = TApplicationException()
2239
      x.read(self._iprot)
2240
      self._iprot.readMessageEnd()
2241
      raise x
2242
    result = changeItemStatus_result()
2243
    result.read(self._iprot)
2244
    self._iprot.readMessageEnd()
3431 rajveer 2245
    if result.scx is not None:
559 chandransh 2246
      raise result.scx
2247
    return
2248
 
2249
  def addAddressToCart(self, cartId, addressId):
2250
    """
2251
    Parameters:
2252
     - cartId
2253
     - addressId
2254
    """
2255
    self.send_addAddressToCart(cartId, addressId)
2256
    self.recv_addAddressToCart()
2257
 
2258
  def send_addAddressToCart(self, cartId, addressId):
2259
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2260
    args = addAddressToCart_args()
2261
    args.cartId = cartId
2262
    args.addressId = addressId
2263
    args.write(self._oprot)
2264
    self._oprot.writeMessageEnd()
2265
    self._oprot.trans.flush()
2266
 
2267
  def recv_addAddressToCart(self, ):
2268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2269
    if mtype == TMessageType.EXCEPTION:
2270
      x = TApplicationException()
2271
      x.read(self._iprot)
2272
      self._iprot.readMessageEnd()
2273
      raise x
2274
    result = addAddressToCart_result()
2275
    result.read(self._iprot)
2276
    self._iprot.readMessageEnd()
3431 rajveer 2277
    if result.scx is not None:
575 chandransh 2278
      raise result.scx
559 chandransh 2279
    return
2280
 
1976 varun.gupt 2281
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2282
    """
2283
    Parameters:
2284
     - cartId
2285
     - couponCode
2286
     - totalPrice
2287
     - discountedPrice
2288
    """
2289
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2290
    self.recv_applyCouponToCart()
2291
 
2292
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2293
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2294
    args = applyCouponToCart_args()
2295
    args.cartId = cartId
2296
    args.couponCode = couponCode
2297
    args.totalPrice = totalPrice
2298
    args.discountedPrice = discountedPrice
2299
    args.write(self._oprot)
2300
    self._oprot.writeMessageEnd()
2301
    self._oprot.trans.flush()
2302
 
2303
  def recv_applyCouponToCart(self, ):
2304
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2305
    if mtype == TMessageType.EXCEPTION:
2306
      x = TApplicationException()
2307
      x.read(self._iprot)
2308
      self._iprot.readMessageEnd()
2309
      raise x
2310
    result = applyCouponToCart_result()
2311
    result.read(self._iprot)
2312
    self._iprot.readMessageEnd()
3431 rajveer 2313
    if result.scx is not None:
1976 varun.gupt 2314
      raise result.scx
2315
    return
2316
 
2317
  def removeCoupon(self, cartId):
2318
    """
2319
    Parameters:
2320
     - cartId
2321
    """
2322
    self.send_removeCoupon(cartId)
2323
    self.recv_removeCoupon()
2324
 
2325
  def send_removeCoupon(self, cartId):
2326
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2327
    args = removeCoupon_args()
2328
    args.cartId = cartId
2329
    args.write(self._oprot)
2330
    self._oprot.writeMessageEnd()
2331
    self._oprot.trans.flush()
2332
 
2333
  def recv_removeCoupon(self, ):
2334
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2335
    if mtype == TMessageType.EXCEPTION:
2336
      x = TApplicationException()
2337
      x.read(self._iprot)
2338
      self._iprot.readMessageEnd()
2339
      raise x
2340
    result = removeCoupon_result()
2341
    result.read(self._iprot)
2342
    self._iprot.readMessageEnd()
3431 rajveer 2343
    if result.scx is not None:
1976 varun.gupt 2344
      raise result.scx
2345
    return
2346
 
3554 varun.gupt 2347
  def deleteDiscountsFromCart(self, cartId):
2348
    """
2349
    Deletes all the discounts associated with the cart
2350
 
2351
    Parameters:
2352
     - cartId
2353
    """
2354
    self.send_deleteDiscountsFromCart(cartId)
2355
    self.recv_deleteDiscountsFromCart()
2356
 
2357
  def send_deleteDiscountsFromCart(self, cartId):
2358
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2359
    args = deleteDiscountsFromCart_args()
2360
    args.cartId = cartId
2361
    args.write(self._oprot)
2362
    self._oprot.writeMessageEnd()
2363
    self._oprot.trans.flush()
2364
 
2365
  def recv_deleteDiscountsFromCart(self, ):
2366
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2367
    if mtype == TMessageType.EXCEPTION:
2368
      x = TApplicationException()
2369
      x.read(self._iprot)
2370
      self._iprot.readMessageEnd()
2371
      raise x
2372
    result = deleteDiscountsFromCart_result()
2373
    result.read(self._iprot)
2374
    self._iprot.readMessageEnd()
2375
    if result.scx is not None:
2376
      raise result.scx
2377
    return
2378
 
2379
  def saveDiscounts(self, discounts):
2380
    """
2381
    Accepts a list of thrift objects of Discount type and saves them
2382
 
2383
    Parameters:
2384
     - discounts
2385
    """
2386
    self.send_saveDiscounts(discounts)
2387
    self.recv_saveDiscounts()
2388
 
2389
  def send_saveDiscounts(self, discounts):
2390
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2391
    args = saveDiscounts_args()
2392
    args.discounts = discounts
2393
    args.write(self._oprot)
2394
    self._oprot.writeMessageEnd()
2395
    self._oprot.trans.flush()
2396
 
2397
  def recv_saveDiscounts(self, ):
2398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2399
    if mtype == TMessageType.EXCEPTION:
2400
      x = TApplicationException()
2401
      x.read(self._iprot)
2402
      self._iprot.readMessageEnd()
2403
      raise x
2404
    result = saveDiscounts_result()
2405
    result.read(self._iprot)
2406
    self._iprot.readMessageEnd()
2407
    if result.scx is not None:
2408
      raise result.scx
2409
    return
2410
 
3858 vikas 2411
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
559 chandransh 2412
    """
690 chandransh 2413
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2414
 
559 chandransh 2415
    Parameters:
2416
     - cartId
2815 vikas 2417
     - sessionSource
2418
     - sessionStartTime
3858 vikas 2419
     - firstSource
2420
     - firstSourceTime
559 chandransh 2421
    """
3858 vikas 2422
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime)
690 chandransh 2423
    return self.recv_createOrders()
559 chandransh 2424
 
3858 vikas 2425
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime):
690 chandransh 2426
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2427
    args = createOrders_args()
559 chandransh 2428
    args.cartId = cartId
2815 vikas 2429
    args.sessionSource = sessionSource
2430
    args.sessionStartTime = sessionStartTime
3858 vikas 2431
    args.firstSource = firstSource
2432
    args.firstSourceTime = firstSourceTime
559 chandransh 2433
    args.write(self._oprot)
2434
    self._oprot.writeMessageEnd()
2435
    self._oprot.trans.flush()
2436
 
690 chandransh 2437
  def recv_createOrders(self, ):
559 chandransh 2438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2439
    if mtype == TMessageType.EXCEPTION:
2440
      x = TApplicationException()
2441
      x.read(self._iprot)
2442
      self._iprot.readMessageEnd()
2443
      raise x
690 chandransh 2444
    result = createOrders_result()
559 chandransh 2445
    result.read(self._iprot)
2446
    self._iprot.readMessageEnd()
3431 rajveer 2447
    if result.success is not None:
130 ashish 2448
      return result.success
3431 rajveer 2449
    if result.scx is not None:
559 chandransh 2450
      raise result.scx
690 chandransh 2451
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2452
 
3557 rajveer 2453
  def validateCart(self, cartId, sourceId):
130 ashish 2454
    """
690 chandransh 2455
    Validates that:
2456
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2457
    2. All of the lines in the cart are active items.
690 chandransh 2458
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2459
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2460
 
130 ashish 2461
    Parameters:
559 chandransh 2462
     - cartId
3557 rajveer 2463
     - sourceId
130 ashish 2464
    """
3557 rajveer 2465
    self.send_validateCart(cartId, sourceId)
559 chandransh 2466
    return self.recv_validateCart()
130 ashish 2467
 
3557 rajveer 2468
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2469
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2470
    args = validateCart_args()
2471
    args.cartId = cartId
3557 rajveer 2472
    args.sourceId = sourceId
130 ashish 2473
    args.write(self._oprot)
2474
    self._oprot.writeMessageEnd()
2475
    self._oprot.trans.flush()
2476
 
559 chandransh 2477
  def recv_validateCart(self, ):
130 ashish 2478
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2479
    if mtype == TMessageType.EXCEPTION:
2480
      x = TApplicationException()
2481
      x.read(self._iprot)
2482
      self._iprot.readMessageEnd()
2483
      raise x
559 chandransh 2484
    result = validateCart_result()
130 ashish 2485
    result.read(self._iprot)
2486
    self._iprot.readMessageEnd()
3431 rajveer 2487
    if result.success is not None:
130 ashish 2488
      return result.success
3431 rajveer 2489
    if result.scex is not None:
575 chandransh 2490
      raise result.scex
559 chandransh 2491
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2492
 
690 chandransh 2493
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2494
    """
690 chandransh 2495
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2496
 
575 chandransh 2497
    Parameters:
690 chandransh 2498
     - fromCartId
2499
     - toCartId
2500
    """
2501
    self.send_mergeCart(fromCartId, toCartId)
2502
    self.recv_mergeCart()
2503
 
2504
  def send_mergeCart(self, fromCartId, toCartId):
2505
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2506
    args = mergeCart_args()
2507
    args.fromCartId = fromCartId
2508
    args.toCartId = toCartId
2509
    args.write(self._oprot)
2510
    self._oprot.writeMessageEnd()
2511
    self._oprot.trans.flush()
2512
 
2513
  def recv_mergeCart(self, ):
2514
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2515
    if mtype == TMessageType.EXCEPTION:
2516
      x = TApplicationException()
2517
      x.read(self._iprot)
2518
      self._iprot.readMessageEnd()
2519
      raise x
2520
    result = mergeCart_result()
2521
    result.read(self._iprot)
2522
    self._iprot.readMessageEnd()
2523
    return
2524
 
2525
  def checkOut(self, cartId):
2526
    """
2527
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2528
 
690 chandransh 2529
    Parameters:
575 chandransh 2530
     - cartId
2531
    """
690 chandransh 2532
    self.send_checkOut(cartId)
2533
    return self.recv_checkOut()
575 chandransh 2534
 
690 chandransh 2535
  def send_checkOut(self, cartId):
2536
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2537
    args = checkOut_args()
575 chandransh 2538
    args.cartId = cartId
2539
    args.write(self._oprot)
2540
    self._oprot.writeMessageEnd()
2541
    self._oprot.trans.flush()
2542
 
690 chandransh 2543
  def recv_checkOut(self, ):
575 chandransh 2544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2545
    if mtype == TMessageType.EXCEPTION:
2546
      x = TApplicationException()
2547
      x.read(self._iprot)
2548
      self._iprot.readMessageEnd()
2549
      raise x
690 chandransh 2550
    result = checkOut_result()
575 chandransh 2551
    result.read(self._iprot)
2552
    self._iprot.readMessageEnd()
3431 rajveer 2553
    if result.success is not None:
575 chandransh 2554
      return result.success
3431 rajveer 2555
    if result.scex is not None:
575 chandransh 2556
      raise result.scex
690 chandransh 2557
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2558
 
690 chandransh 2559
  def resetCart(self, cartId, items):
559 chandransh 2560
    """
690 chandransh 2561
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2562
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2563
 
559 chandransh 2564
    Parameters:
690 chandransh 2565
     - cartId
2566
     - items
559 chandransh 2567
    """
690 chandransh 2568
    self.send_resetCart(cartId, items)
2569
    return self.recv_resetCart()
130 ashish 2570
 
690 chandransh 2571
  def send_resetCart(self, cartId, items):
2572
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2573
    args = resetCart_args()
2574
    args.cartId = cartId
2575
    args.items = items
559 chandransh 2576
    args.write(self._oprot)
2577
    self._oprot.writeMessageEnd()
2578
    self._oprot.trans.flush()
2579
 
690 chandransh 2580
  def recv_resetCart(self, ):
559 chandransh 2581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2582
    if mtype == TMessageType.EXCEPTION:
2583
      x = TApplicationException()
2584
      x.read(self._iprot)
2585
      self._iprot.readMessageEnd()
2586
      raise x
690 chandransh 2587
    result = resetCart_result()
559 chandransh 2588
    result.read(self._iprot)
2589
    self._iprot.readMessageEnd()
3431 rajveer 2590
    if result.success is not None:
690 chandransh 2591
      return result.success
3431 rajveer 2592
    if result.scex is not None:
690 chandransh 2593
      raise result.scex
2594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2595
 
2981 rajveer 2596
  def getUserCount(self, userType):
559 chandransh 2597
    """
2981 rajveer 2598
    Returns number of registered users.
2599
    If userType = null, then it returns count of all users, including anonymous
2600
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2601
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2602
 
559 chandransh 2603
    Parameters:
2981 rajveer 2604
     - userType
559 chandransh 2605
    """
2981 rajveer 2606
    self.send_getUserCount(userType)
2607
    return self.recv_getUserCount()
559 chandransh 2608
 
2981 rajveer 2609
  def send_getUserCount(self, userType):
2610
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2611
    args = getUserCount_args()
2612
    args.userType = userType
559 chandransh 2613
    args.write(self._oprot)
2614
    self._oprot.writeMessageEnd()
2615
    self._oprot.trans.flush()
2616
 
2981 rajveer 2617
  def recv_getUserCount(self, ):
559 chandransh 2618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2619
    if mtype == TMessageType.EXCEPTION:
2620
      x = TApplicationException()
2621
      x.read(self._iprot)
2622
      self._iprot.readMessageEnd()
2623
      raise x
2981 rajveer 2624
    result = getUserCount_result()
559 chandransh 2625
    result.read(self._iprot)
2626
    self._iprot.readMessageEnd()
3431 rajveer 2627
    if result.success is not None:
559 chandransh 2628
      return result.success
2981 rajveer 2629
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2630
 
2981 rajveer 2631
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2632
    """
2981 rajveer 2633
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2634
    If any of startDate or endDate is -1, then that filter is ignored.
2635
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2636
 
2637
 
559 chandransh 2638
    Parameters:
2981 rajveer 2639
     - userType
2640
     - startDate
2641
     - endDate
559 chandransh 2642
    """
2981 rajveer 2643
    self.send_getAllUsers(userType, startDate, endDate)
2644
    return self.recv_getAllUsers()
559 chandransh 2645
 
2981 rajveer 2646
  def send_getAllUsers(self, userType, startDate, endDate):
2647
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2648
    args = getAllUsers_args()
2649
    args.userType = userType
2650
    args.startDate = startDate
2651
    args.endDate = endDate
559 chandransh 2652
    args.write(self._oprot)
2653
    self._oprot.writeMessageEnd()
2654
    self._oprot.trans.flush()
2655
 
2981 rajveer 2656
  def recv_getAllUsers(self, ):
559 chandransh 2657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2658
    if mtype == TMessageType.EXCEPTION:
2659
      x = TApplicationException()
2660
      x.read(self._iprot)
2661
      self._iprot.readMessageEnd()
2662
      raise x
2981 rajveer 2663
    result = getAllUsers_result()
559 chandransh 2664
    result.read(self._iprot)
2665
    self._iprot.readMessageEnd()
3431 rajveer 2666
    if result.success is not None:
559 chandransh 2667
      return result.success
2981 rajveer 2668
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2669
 
2981 rajveer 2670
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2671
    """
2672
    Parameters:
2981 rajveer 2673
     - user_id
2674
     - entity_id
2675
     - slide
2676
     - note
559 chandransh 2677
    """
2981 rajveer 2678
    self.send_putUserNote(user_id, entity_id, slide, note)
2679
    self.recv_putUserNote()
559 chandransh 2680
 
2981 rajveer 2681
  def send_putUserNote(self, user_id, entity_id, slide, note):
2682
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2683
    args = putUserNote_args()
2684
    args.user_id = user_id
2685
    args.entity_id = entity_id
2686
    args.slide = slide
2687
    args.note = note
559 chandransh 2688
    args.write(self._oprot)
2689
    self._oprot.writeMessageEnd()
2690
    self._oprot.trans.flush()
2691
 
2981 rajveer 2692
  def recv_putUserNote(self, ):
559 chandransh 2693
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2694
    if mtype == TMessageType.EXCEPTION:
2695
      x = TApplicationException()
2696
      x.read(self._iprot)
2697
      self._iprot.readMessageEnd()
2698
      raise x
2981 rajveer 2699
    result = putUserNote_result()
559 chandransh 2700
    result.read(self._iprot)
2701
    self._iprot.readMessageEnd()
2702
    return
2703
 
2981 rajveer 2704
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2705
    """
2706
    Parameters:
2981 rajveer 2707
     - user_id
2708
     - entity_id
559 chandransh 2709
    """
2981 rajveer 2710
    self.send_getUserNotes(user_id, entity_id)
2711
    return self.recv_getUserNotes()
559 chandransh 2712
 
2981 rajveer 2713
  def send_getUserNotes(self, user_id, entity_id):
2714
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2715
    args = getUserNotes_args()
2716
    args.user_id = user_id
2717
    args.entity_id = entity_id
559 chandransh 2718
    args.write(self._oprot)
2719
    self._oprot.writeMessageEnd()
2720
    self._oprot.trans.flush()
2721
 
2981 rajveer 2722
  def recv_getUserNotes(self, ):
559 chandransh 2723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2724
    if mtype == TMessageType.EXCEPTION:
2725
      x = TApplicationException()
2726
      x.read(self._iprot)
2727
      self._iprot.readMessageEnd()
2728
      raise x
2981 rajveer 2729
    result = getUserNotes_result()
559 chandransh 2730
    result.read(self._iprot)
2731
    self._iprot.readMessageEnd()
3431 rajveer 2732
    if result.success is not None:
2981 rajveer 2733
      return result.success
2734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2735
 
2981 rajveer 2736
  def getMyResearchItems(self, userId):
559 chandransh 2737
    """
2981 rajveer 2738
    Returns list of item ids in myresearch for the user
3431 rajveer 2739
 
559 chandransh 2740
    Parameters:
772 rajveer 2741
     - userId
559 chandransh 2742
    """
2981 rajveer 2743
    self.send_getMyResearchItems(userId)
2744
    return self.recv_getMyResearchItems()
559 chandransh 2745
 
2981 rajveer 2746
  def send_getMyResearchItems(self, userId):
2747
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2748
    args = getMyResearchItems_args()
772 rajveer 2749
    args.userId = userId
559 chandransh 2750
    args.write(self._oprot)
2751
    self._oprot.writeMessageEnd()
2752
    self._oprot.trans.flush()
2753
 
2981 rajveer 2754
  def recv_getMyResearchItems(self, ):
559 chandransh 2755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2756
    if mtype == TMessageType.EXCEPTION:
2757
      x = TApplicationException()
2758
      x.read(self._iprot)
2759
      self._iprot.readMessageEnd()
2760
      raise x
2981 rajveer 2761
    result = getMyResearchItems_result()
559 chandransh 2762
    result.read(self._iprot)
2763
    self._iprot.readMessageEnd()
3431 rajveer 2764
    if result.success is not None:
559 chandransh 2765
      return result.success
3431 rajveer 2766
    if result.scx is not None:
559 chandransh 2767
      raise result.scx
2981 rajveer 2768
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2769
 
2981 rajveer 2770
  def updateMyResearch(self, userId, itemId):
559 chandransh 2771
    """
2981 rajveer 2772
    add item to my research for a user
3431 rajveer 2773
 
559 chandransh 2774
    Parameters:
2981 rajveer 2775
     - userId
2776
     - itemId
559 chandransh 2777
    """
2981 rajveer 2778
    self.send_updateMyResearch(userId, itemId)
2779
    return self.recv_updateMyResearch()
559 chandransh 2780
 
2981 rajveer 2781
  def send_updateMyResearch(self, userId, itemId):
2782
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2783
    args = updateMyResearch_args()
2784
    args.userId = userId
2785
    args.itemId = itemId
559 chandransh 2786
    args.write(self._oprot)
2787
    self._oprot.writeMessageEnd()
2788
    self._oprot.trans.flush()
2789
 
2981 rajveer 2790
  def recv_updateMyResearch(self, ):
559 chandransh 2791
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2792
    if mtype == TMessageType.EXCEPTION:
2793
      x = TApplicationException()
2794
      x.read(self._iprot)
2795
      self._iprot.readMessageEnd()
2796
      raise x
2981 rajveer 2797
    result = updateMyResearch_result()
559 chandransh 2798
    result.read(self._iprot)
2799
    self._iprot.readMessageEnd()
3431 rajveer 2800
    if result.success is not None:
2981 rajveer 2801
      return result.success
3431 rajveer 2802
    if result.scx is not None:
2981 rajveer 2803
      raise result.scx
2804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2805
 
2981 rajveer 2806
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2807
    """
2981 rajveer 2808
    delete item from my research for a user
3431 rajveer 2809
 
1596 ankur.sing 2810
    Parameters:
2981 rajveer 2811
     - userId
2812
     - itemId
1596 ankur.sing 2813
    """
2981 rajveer 2814
    self.send_deleteItemFromMyResearch(userId, itemId)
2815
    self.recv_deleteItemFromMyResearch()
559 chandransh 2816
 
2981 rajveer 2817
  def send_deleteItemFromMyResearch(self, userId, itemId):
2818
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2819
    args = deleteItemFromMyResearch_args()
2820
    args.userId = userId
2821
    args.itemId = itemId
1596 ankur.sing 2822
    args.write(self._oprot)
2823
    self._oprot.writeMessageEnd()
2824
    self._oprot.trans.flush()
2825
 
2981 rajveer 2826
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2828
    if mtype == TMessageType.EXCEPTION:
2829
      x = TApplicationException()
2830
      x.read(self._iprot)
2831
      self._iprot.readMessageEnd()
2832
      raise x
2981 rajveer 2833
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2834
    result.read(self._iprot)
2835
    self._iprot.readMessageEnd()
3431 rajveer 2836
    if result.scx is not None:
2981 rajveer 2837
      raise result.scx
2838
    return
1596 ankur.sing 2839
 
2981 rajveer 2840
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2841
    """
2981 rajveer 2842
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2843
 
1673 ankur.sing 2844
    Parameters:
2981 rajveer 2845
     - userId
1673 ankur.sing 2846
    """
2981 rajveer 2847
    self.send_getBrowseHistoryItems(userId)
2848
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2849
 
2981 rajveer 2850
  def send_getBrowseHistoryItems(self, userId):
2851
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2852
    args = getBrowseHistoryItems_args()
2853
    args.userId = userId
1673 ankur.sing 2854
    args.write(self._oprot)
2855
    self._oprot.writeMessageEnd()
2856
    self._oprot.trans.flush()
2857
 
2981 rajveer 2858
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2860
    if mtype == TMessageType.EXCEPTION:
2861
      x = TApplicationException()
2862
      x.read(self._iprot)
2863
      self._iprot.readMessageEnd()
2864
      raise x
2981 rajveer 2865
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2866
    result.read(self._iprot)
2867
    self._iprot.readMessageEnd()
3431 rajveer 2868
    if result.success is not None:
1673 ankur.sing 2869
      return result.success
3431 rajveer 2870
    if result.scx is not None:
2981 rajveer 2871
      raise result.scx
2872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2873
 
2981 rajveer 2874
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2875
    """
2981 rajveer 2876
    add item to browse history for a user
3431 rajveer 2877
 
2642 varun.gupt 2878
    Parameters:
2981 rajveer 2879
     - userId
2880
     - itemId
2642 varun.gupt 2881
    """
2981 rajveer 2882
    self.send_updateBrowseHistory(userId, itemId)
2883
    self.recv_updateBrowseHistory()
1673 ankur.sing 2884
 
2981 rajveer 2885
  def send_updateBrowseHistory(self, userId, itemId):
2886
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2887
    args = updateBrowseHistory_args()
2888
    args.userId = userId
2889
    args.itemId = itemId
2642 varun.gupt 2890
    args.write(self._oprot)
2891
    self._oprot.writeMessageEnd()
2892
    self._oprot.trans.flush()
2893
 
2981 rajveer 2894
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2895
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2896
    if mtype == TMessageType.EXCEPTION:
2897
      x = TApplicationException()
2898
      x.read(self._iprot)
2899
      self._iprot.readMessageEnd()
2900
      raise x
2981 rajveer 2901
    result = updateBrowseHistory_result()
2642 varun.gupt 2902
    result.read(self._iprot)
2903
    self._iprot.readMessageEnd()
2904
    return
2905
 
3385 varun.gupt 2906
  def getCartsWithCouponCount(self, couponCode):
2907
    """
2908
    Returns count of Carts with given coupon applied
3431 rajveer 2909
 
3385 varun.gupt 2910
    Parameters:
2911
     - couponCode
2912
    """
2913
    self.send_getCartsWithCouponCount(couponCode)
2914
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2915
 
3385 varun.gupt 2916
  def send_getCartsWithCouponCount(self, couponCode):
2917
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2918
    args = getCartsWithCouponCount_args()
2919
    args.couponCode = couponCode
2920
    args.write(self._oprot)
2921
    self._oprot.writeMessageEnd()
2922
    self._oprot.trans.flush()
2923
 
2924
  def recv_getCartsWithCouponCount(self, ):
2925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2926
    if mtype == TMessageType.EXCEPTION:
2927
      x = TApplicationException()
2928
      x.read(self._iprot)
2929
      self._iprot.readMessageEnd()
2930
      raise x
2931
    result = getCartsWithCouponCount_result()
2932
    result.read(self._iprot)
2933
    self._iprot.readMessageEnd()
3431 rajveer 2934
    if result.success is not None:
3385 varun.gupt 2935
      return result.success
2936
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2937
 
3499 mandeep.dh 2938
  def increaseTrustLevel(self, userId, trustLevelDelta):
2939
    """
2940
    Updates COD trust level of a user
3385 varun.gupt 2941
 
3499 mandeep.dh 2942
    Parameters:
2943
     - userId
2944
     - trustLevelDelta
2945
    """
2946
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2947
 
2948
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2949
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2950
    args = increaseTrustLevel_args()
2951
    args.userId = userId
2952
    args.trustLevelDelta = trustLevelDelta
2953
    args.write(self._oprot)
2954
    self._oprot.writeMessageEnd()
2955
    self._oprot.trans.flush()
2956
 
3376 rajveer 2957
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2958
  def __init__(self, handler):
3376 rajveer 2959
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2960
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2961
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2962
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2963
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2964
    self._processMap["createUser"] = Processor.process_createUser
2965
    self._processMap["updateUser"] = Processor.process_updateUser
2966
    self._processMap["deleteUser"] = Processor.process_deleteUser
2967
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 2968
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2969
    self._processMap["userExists"] = Processor.process_userExists
2970
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2971
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2972
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2973
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2974
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2975
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2976
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2977
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2978
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2979
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2980
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2981
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2982
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2983
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2984
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2985
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2986
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2987
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2988
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2989
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2990
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2991
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2992
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2993
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2994
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2995
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2996
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2997
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2998
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2999
    self._processMap["createCart"] = Processor.process_createCart
3000
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
3001
    self._processMap["getCart"] = Processor.process_getCart
3002
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
3003
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
3004
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
3005
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
3006
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3007
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3008
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3009
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 3010
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3011
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3012
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3013
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3014
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3015
    self._processMap["validateCart"] = Processor.process_validateCart
3016
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3017
    self._processMap["checkOut"] = Processor.process_checkOut
3018
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3019
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3020
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 3021
    self._processMap["putUserNote"] = Processor.process_putUserNote
3022
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 3023
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3024
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3025
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3026
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3027
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3028
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3029
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
94 ashish 3030
 
3031
  def process(self, iprot, oprot):
3032
    (name, type, seqid) = iprot.readMessageBegin()
3033
    if name not in self._processMap:
3034
      iprot.skip(TType.STRUCT)
3035
      iprot.readMessageEnd()
3036
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3037
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3038
      x.write(oprot)
3039
      oprot.writeMessageEnd()
3040
      oprot.trans.flush()
3041
      return
3042
    else:
3043
      self._processMap[name](self, seqid, iprot, oprot)
3044
    return True
3045
 
559 chandransh 3046
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3047
    args = createAnonymousUser_args()
94 ashish 3048
    args.read(iprot)
3049
    iprot.readMessageEnd()
559 chandransh 3050
    result = createAnonymousUser_result()
94 ashish 3051
    try:
559 chandransh 3052
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3053
    except UserContextException, ucex:
3054
      result.ucex = ucex
3055
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3056
    result.write(oprot)
3057
    oprot.writeMessageEnd()
3058
    oprot.trans.flush()
3059
 
559 chandransh 3060
  def process_getUserById(self, seqid, iprot, oprot):
3061
    args = getUserById_args()
94 ashish 3062
    args.read(iprot)
3063
    iprot.readMessageEnd()
559 chandransh 3064
    result = getUserById_result()
94 ashish 3065
    try:
559 chandransh 3066
      result.success = self._handler.getUserById(args.userId)
3067
    except UserContextException, ucex:
3068
      result.ucex = ucex
3069
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3070
    result.write(oprot)
3071
    oprot.writeMessageEnd()
3072
    oprot.trans.flush()
3073
 
1491 vikas 3074
  def process_getUserByEmail(self, seqid, iprot, oprot):
3075
    args = getUserByEmail_args()
3076
    args.read(iprot)
3077
    iprot.readMessageEnd()
3078
    result = getUserByEmail_result()
3079
    try:
3080
      result.success = self._handler.getUserByEmail(args.email)
3081
    except UserContextException, ucex:
3082
      result.ucex = ucex
3083
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3084
    result.write(oprot)
3085
    oprot.writeMessageEnd()
3086
    oprot.trans.flush()
3087
 
3032 mandeep.dh 3088
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3089
    args = getUserByMobileNumber_args()
3090
    args.read(iprot)
3091
    iprot.readMessageEnd()
3092
    result = getUserByMobileNumber_result()
3093
    try:
3094
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3095
    except UserContextException, ucex:
3096
      result.ucex = ucex
3097
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3098
    result.write(oprot)
3099
    oprot.writeMessageEnd()
3100
    oprot.trans.flush()
3101
 
559 chandransh 3102
  def process_createUser(self, seqid, iprot, oprot):
3103
    args = createUser_args()
94 ashish 3104
    args.read(iprot)
3105
    iprot.readMessageEnd()
559 chandransh 3106
    result = createUser_result()
94 ashish 3107
    try:
559 chandransh 3108
      result.success = self._handler.createUser(args.user)
3109
    except UserContextException, ucex:
3110
      result.ucex = ucex
3111
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3112
    result.write(oprot)
3113
    oprot.writeMessageEnd()
3114
    oprot.trans.flush()
3115
 
559 chandransh 3116
  def process_updateUser(self, seqid, iprot, oprot):
3117
    args = updateUser_args()
94 ashish 3118
    args.read(iprot)
3119
    iprot.readMessageEnd()
559 chandransh 3120
    result = updateUser_result()
94 ashish 3121
    try:
559 chandransh 3122
      result.success = self._handler.updateUser(args.user)
3123
    except UserContextException, ucex:
3124
      result.ucex = ucex
3125
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3126
    result.write(oprot)
3127
    oprot.writeMessageEnd()
3128
    oprot.trans.flush()
3129
 
559 chandransh 3130
  def process_deleteUser(self, seqid, iprot, oprot):
3131
    args = deleteUser_args()
94 ashish 3132
    args.read(iprot)
3133
    iprot.readMessageEnd()
559 chandransh 3134
    result = deleteUser_result()
94 ashish 3135
    try:
559 chandransh 3136
      result.success = self._handler.deleteUser(args.userId)
3137
    except UserContextException, ucex:
3138
      result.ucex = ucex
3139
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3140
    result.write(oprot)
3141
    oprot.writeMessageEnd()
3142
    oprot.trans.flush()
3143
 
559 chandransh 3144
  def process_getUserState(self, seqid, iprot, oprot):
3145
    args = getUserState_args()
94 ashish 3146
    args.read(iprot)
3147
    iprot.readMessageEnd()
559 chandransh 3148
    result = getUserState_result()
94 ashish 3149
    try:
559 chandransh 3150
      result.success = self._handler.getUserState(args.userId)
3151
    except UserContextException, ucex:
3152
      result.ucex = ucex
3153
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3154
    result.write(oprot)
3155
    oprot.writeMessageEnd()
3156
    oprot.trans.flush()
3157
 
122 ashish 3158
  def process_authenticateUser(self, seqid, iprot, oprot):
3159
    args = authenticateUser_args()
3160
    args.read(iprot)
3161
    iprot.readMessageEnd()
3162
    result = authenticateUser_result()
3163
    try:
559 chandransh 3164
      result.success = self._handler.authenticateUser(args.email, args.password)
3165
    except AuthenticationException, auex:
3166
      result.auex = auex
122 ashish 3167
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3168
    result.write(oprot)
3169
    oprot.writeMessageEnd()
3170
    oprot.trans.flush()
3171
 
94 ashish 3172
  def process_userExists(self, seqid, iprot, oprot):
3173
    args = userExists_args()
3174
    args.read(iprot)
3175
    iprot.readMessageEnd()
3176
    result = userExists_result()
3177
    try:
3178
      result.success = self._handler.userExists(args.email)
3179
    except UserContextException, ucx:
3180
      result.ucx = ucx
3181
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3182
    result.write(oprot)
3183
    oprot.writeMessageEnd()
3184
    oprot.trans.flush()
3185
 
3186
  def process_addAddressForUser(self, seqid, iprot, oprot):
3187
    args = addAddressForUser_args()
3188
    args.read(iprot)
3189
    iprot.readMessageEnd()
3190
    result = addAddressForUser_result()
3191
    try:
567 rajveer 3192
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3193
    except UserContextException, ucx:
3194
      result.ucx = ucx
3195
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3196
    result.write(oprot)
3197
    oprot.writeMessageEnd()
3198
    oprot.trans.flush()
3199
 
3200
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3201
    args = removeAddressForUser_args()
3202
    args.read(iprot)
3203
    iprot.readMessageEnd()
3204
    result = removeAddressForUser_result()
3205
    try:
3206
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3207
    except UserContextException, ucx:
3208
      result.ucx = ucx
3209
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3210
    result.write(oprot)
3211
    oprot.writeMessageEnd()
3212
    oprot.trans.flush()
3213
 
3214
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3215
    args = setUserAsLoggedIn_args()
3216
    args.read(iprot)
3217
    iprot.readMessageEnd()
3218
    result = setUserAsLoggedIn_result()
3219
    try:
3220
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3221
    except UserContextException, ucx:
3222
      result.ucx = ucx
3223
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3224
    result.write(oprot)
3225
    oprot.writeMessageEnd()
3226
    oprot.trans.flush()
3227
 
3228
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3229
    args = setUserAsLoggedOut_args()
3230
    args.read(iprot)
3231
    iprot.readMessageEnd()
3232
    result = setUserAsLoggedOut_result()
3233
    try:
3234
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3235
    except UserContextException, ucx:
3236
      result.ucx = ucx
3237
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3238
    result.write(oprot)
3239
    oprot.writeMessageEnd()
3240
    oprot.trans.flush()
3241
 
504 rajveer 3242
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3243
    args = setDefaultAddress_args()
3244
    args.read(iprot)
3245
    iprot.readMessageEnd()
3246
    result = setDefaultAddress_result()
3247
    try:
3248
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3249
    except UserContextException, ucx:
3250
      result.ucx = ucx
3251
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3252
    result.write(oprot)
3253
    oprot.writeMessageEnd()
3254
    oprot.trans.flush()
3255
 
94 ashish 3256
  def process_updatePassword(self, seqid, iprot, oprot):
3257
    args = updatePassword_args()
3258
    args.read(iprot)
3259
    iprot.readMessageEnd()
3260
    result = updatePassword_result()
3261
    try:
594 rajveer 3262
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3263
    except UserContextException, ucx:
3264
      result.ucx = ucx
3265
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3266
    result.write(oprot)
3267
    oprot.writeMessageEnd()
3268
    oprot.trans.flush()
3269
 
581 rajveer 3270
  def process_forgotPassword(self, seqid, iprot, oprot):
3271
    args = forgotPassword_args()
3272
    args.read(iprot)
3273
    iprot.readMessageEnd()
3274
    result = forgotPassword_result()
3275
    try:
884 rajveer 3276
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3277
    except UserContextException, ucx:
3278
      result.ucx = ucx
3279
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3280
    result.write(oprot)
3281
    oprot.writeMessageEnd()
3282
    oprot.trans.flush()
3283
 
594 rajveer 3284
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3285
    args = getAllAddressesForUser_args()
3286
    args.read(iprot)
3287
    iprot.readMessageEnd()
3288
    result = getAllAddressesForUser_result()
3289
    try:
3290
      result.success = self._handler.getAllAddressesForUser(args.userId)
3291
    except UserContextException, ucx:
3292
      result.ucx = ucx
3293
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3294
    result.write(oprot)
3295
    oprot.writeMessageEnd()
3296
    oprot.trans.flush()
3297
 
1894 vikas 3298
  def process_getAddressById(self, seqid, iprot, oprot):
3299
    args = getAddressById_args()
3300
    args.read(iprot)
3301
    iprot.readMessageEnd()
3302
    result = getAddressById_result()
3303
    try:
3304
      result.success = self._handler.getAddressById(args.addressId)
3305
    except UserContextException, ucx:
3306
      result.ucx = ucx
3307
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3308
    result.write(oprot)
3309
    oprot.writeMessageEnd()
3310
    oprot.trans.flush()
3311
 
594 rajveer 3312
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3313
    args = getDefaultAddressId_args()
3314
    args.read(iprot)
3315
    iprot.readMessageEnd()
3316
    result = getDefaultAddressId_result()
3317
    try:
3318
      result.success = self._handler.getDefaultAddressId(args.userId)
3319
    except UserContextException, ucx:
3320
      result.ucx = ucx
3321
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3322
    result.write(oprot)
3323
    oprot.writeMessageEnd()
3324
    oprot.trans.flush()
3325
 
785 rajveer 3326
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3327
    args = getDefaultPincode_args()
3328
    args.read(iprot)
3329
    iprot.readMessageEnd()
3330
    result = getDefaultPincode_result()
3331
    try:
3332
      result.success = self._handler.getDefaultPincode(args.userId)
3333
    except UserContextException, ucx:
3334
      result.ucx = ucx
3335
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3336
    result.write(oprot)
3337
    oprot.writeMessageEnd()
3338
    oprot.trans.flush()
3339
 
1274 varun.gupt 3340
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3341
    args = saveUserCommunication_args()
3342
    args.read(iprot)
3343
    iprot.readMessageEnd()
3344
    result = saveUserCommunication_result()
3345
    try:
3346
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3347
    except UserCommunicationException, ucx:
3348
      result.ucx = ucx
3349
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3350
    result.write(oprot)
3351
    oprot.writeMessageEnd()
3352
    oprot.trans.flush()
3353
 
1590 varun.gupt 3354
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3355
    args = getUserCommunicationById_args()
3356
    args.read(iprot)
3357
    iprot.readMessageEnd()
3358
    result = getUserCommunicationById_result()
3359
    try:
3360
      result.success = self._handler.getUserCommunicationById(args.id)
3361
    except UserCommunicationException, ucx:
3362
      result.ucx = ucx
3363
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3364
    result.write(oprot)
3365
    oprot.writeMessageEnd()
3366
    oprot.trans.flush()
3367
 
3368
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3369
    args = getUserCommunicationByUser_args()
3370
    args.read(iprot)
3371
    iprot.readMessageEnd()
3372
    result = getUserCommunicationByUser_result()
3373
    try:
3374
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3375
    except UserCommunicationException, ucx:
3376
      result.ucx = ucx
3377
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3378
    result.write(oprot)
3379
    oprot.writeMessageEnd()
3380
    oprot.trans.flush()
3381
 
3382
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3383
    args = getAllUserCommunications_args()
3384
    args.read(iprot)
3385
    iprot.readMessageEnd()
3386
    result = getAllUserCommunications_result()
3387
    try:
3388
      result.success = self._handler.getAllUserCommunications()
3389
    except UserCommunicationException, ucx:
3390
      result.ucx = ucx
3391
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3392
    result.write(oprot)
3393
    oprot.writeMessageEnd()
3394
    oprot.trans.flush()
3395
 
1845 vikas 3396
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3397
    args = createMasterAffiliate_args()
3398
    args.read(iprot)
3399
    iprot.readMessageEnd()
3400
    result = createMasterAffiliate_result()
3401
    try:
1859 vikas 3402
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3403
    except UserAffiliateException, utx:
1845 vikas 3404
      result.utx = utx
3405
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3406
    result.write(oprot)
3407
    oprot.writeMessageEnd()
3408
    oprot.trans.flush()
3409
 
1899 vikas 3410
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3411
    args = getAllMasterAffiliates_args()
3412
    args.read(iprot)
3413
    iprot.readMessageEnd()
3414
    result = getAllMasterAffiliates_result()
3415
    try:
3416
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3417
    except UserAffiliateException, utx:
1899 vikas 3418
      result.utx = utx
3419
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3420
    result.write(oprot)
3421
    oprot.writeMessageEnd()
3422
    oprot.trans.flush()
3423
 
1845 vikas 3424
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3425
    args = getMasterAffiliateById_args()
3426
    args.read(iprot)
3427
    iprot.readMessageEnd()
3428
    result = getMasterAffiliateById_result()
3429
    try:
3430
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3431
    except UserAffiliateException, utx:
1845 vikas 3432
      result.utx = utx
3433
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3434
    result.write(oprot)
3435
    oprot.writeMessageEnd()
3436
    oprot.trans.flush()
3437
 
3438
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3439
    args = getMasterAffiliateByName_args()
3440
    args.read(iprot)
3441
    iprot.readMessageEnd()
3442
    result = getMasterAffiliateByName_result()
3443
    try:
3444
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3445
    except UserAffiliateException, utx:
1845 vikas 3446
      result.utx = utx
3447
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3448
    result.write(oprot)
3449
    oprot.writeMessageEnd()
3450
    oprot.trans.flush()
3451
 
3452
  def process_createAffiliate(self, seqid, iprot, oprot):
3453
    args = createAffiliate_args()
3454
    args.read(iprot)
3455
    iprot.readMessageEnd()
3456
    result = createAffiliate_result()
3457
    try:
1859 vikas 3458
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3459
    except UserAffiliateException, utx:
1845 vikas 3460
      result.utx = utx
3461
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3462
    result.write(oprot)
3463
    oprot.writeMessageEnd()
3464
    oprot.trans.flush()
3465
 
3466
  def process_getAffiliateById(self, seqid, iprot, oprot):
3467
    args = getAffiliateById_args()
3468
    args.read(iprot)
3469
    iprot.readMessageEnd()
3470
    result = getAffiliateById_result()
3471
    try:
3472
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3473
    except UserAffiliateException, utx:
1845 vikas 3474
      result.utx = utx
3475
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3476
    result.write(oprot)
3477
    oprot.writeMessageEnd()
3478
    oprot.trans.flush()
3479
 
3480
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3481
    args = getAffiliateByName_args()
3482
    args.read(iprot)
3483
    iprot.readMessageEnd()
3484
    result = getAffiliateByName_result()
3485
    try:
3486
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3487
    except UserAffiliateException, utx:
1845 vikas 3488
      result.utx = utx
3489
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3490
    result.write(oprot)
3491
    oprot.writeMessageEnd()
3492
    oprot.trans.flush()
3493
 
3494
  def process_getTrackerById(self, seqid, iprot, oprot):
3495
    args = getTrackerById_args()
3496
    args.read(iprot)
3497
    iprot.readMessageEnd()
3498
    result = getTrackerById_result()
3499
    try:
1996 vikas 3500
      result.success = self._handler.getTrackerById(args.id)
3501
    except UserAffiliateException, utx:
1845 vikas 3502
      result.utx = utx
3503
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3504
    result.write(oprot)
3505
    oprot.writeMessageEnd()
3506
    oprot.trans.flush()
3507
 
1996 vikas 3508
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3509
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3510
    args.read(iprot)
3511
    iprot.readMessageEnd()
1996 vikas 3512
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3513
    try:
1996 vikas 3514
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3515
    except UserAffiliateException, utx:
1845 vikas 3516
      result.utx = utx
1996 vikas 3517
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3518
    result.write(oprot)
3519
    oprot.writeMessageEnd()
3520
    oprot.trans.flush()
3521
 
3522
  def process_addTrackLog(self, seqid, iprot, oprot):
3523
    args = addTrackLog_args()
3524
    args.read(iprot)
3525
    iprot.readMessageEnd()
3526
    result = addTrackLog_result()
3527
    try:
1996 vikas 3528
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3529
    except UserAffiliateException, utx:
1845 vikas 3530
      result.utx = utx
3531
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3532
    result.write(oprot)
3533
    oprot.writeMessageEnd()
3534
    oprot.trans.flush()
3535
 
3536
  def process_getTrackLogById(self, seqid, iprot, oprot):
3537
    args = getTrackLogById_args()
3538
    args.read(iprot)
3539
    iprot.readMessageEnd()
3540
    result = getTrackLogById_result()
3541
    try:
3542
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3543
    except UserAffiliateException, utx:
1845 vikas 3544
      result.utx = utx
3545
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3546
    result.write(oprot)
3547
    oprot.writeMessageEnd()
3548
    oprot.trans.flush()
3549
 
1996 vikas 3550
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3551
    args = getTrackLogsByAffiliate_args()
1845 vikas 3552
    args.read(iprot)
3553
    iprot.readMessageEnd()
1996 vikas 3554
    result = getTrackLogsByAffiliate_result()
1845 vikas 3555
    try:
3293 vikas 3556
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3557
    except UserAffiliateException, utx:
1845 vikas 3558
      result.utx = utx
1996 vikas 3559
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3560
    result.write(oprot)
3561
    oprot.writeMessageEnd()
3562
    oprot.trans.flush()
3563
 
3564
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3565
    args = getTrackLogsByUser_args()
3566
    args.read(iprot)
3567
    iprot.readMessageEnd()
3568
    result = getTrackLogsByUser_result()
3569
    try:
3570
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3571
    except UserAffiliateException, utx:
1845 vikas 3572
      result.utx = utx
3573
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3574
    result.write(oprot)
3575
    oprot.writeMessageEnd()
3576
    oprot.trans.flush()
3577
 
3578
  def process_getTrackLogs(self, seqid, iprot, oprot):
3579
    args = getTrackLogs_args()
3580
    args.read(iprot)
3581
    iprot.readMessageEnd()
3582
    result = getTrackLogs_result()
3583
    try:
1996 vikas 3584
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3585
    except UserAffiliateException, utx:
1845 vikas 3586
      result.utx = utx
3587
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3588
    result.write(oprot)
3589
    oprot.writeMessageEnd()
3590
    oprot.trans.flush()
3591
 
559 chandransh 3592
  def process_createCart(self, seqid, iprot, oprot):
3593
    args = createCart_args()
94 ashish 3594
    args.read(iprot)
3595
    iprot.readMessageEnd()
559 chandransh 3596
    result = createCart_result()
94 ashish 3597
    try:
559 chandransh 3598
      result.success = self._handler.createCart(args.userId)
3599
    except ShoppingCartException, scx:
3600
      result.scx = scx
3601
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3602
    result.write(oprot)
3603
    oprot.writeMessageEnd()
3604
    oprot.trans.flush()
3605
 
559 chandransh 3606
  def process_getCurrentCart(self, seqid, iprot, oprot):
3607
    args = getCurrentCart_args()
94 ashish 3608
    args.read(iprot)
3609
    iprot.readMessageEnd()
559 chandransh 3610
    result = getCurrentCart_result()
94 ashish 3611
    try:
559 chandransh 3612
      result.success = self._handler.getCurrentCart(args.userId)
3613
    except ShoppingCartException, scx:
3614
      result.scx = scx
3615
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3616
    result.write(oprot)
3617
    oprot.writeMessageEnd()
3618
    oprot.trans.flush()
3619
 
559 chandransh 3620
  def process_getCart(self, seqid, iprot, oprot):
3621
    args = getCart_args()
94 ashish 3622
    args.read(iprot)
3623
    iprot.readMessageEnd()
559 chandransh 3624
    result = getCart_result()
94 ashish 3625
    try:
559 chandransh 3626
      result.success = self._handler.getCart(args.cartId)
3627
    except ShoppingCartException, scx:
3628
      result.scx = scx
3629
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3630
    result.write(oprot)
3631
    oprot.writeMessageEnd()
3632
    oprot.trans.flush()
3633
 
559 chandransh 3634
  def process_getCartsForUser(self, seqid, iprot, oprot):
3635
    args = getCartsForUser_args()
94 ashish 3636
    args.read(iprot)
3637
    iprot.readMessageEnd()
559 chandransh 3638
    result = getCartsForUser_result()
94 ashish 3639
    try:
559 chandransh 3640
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3641
    except ShoppingCartException, scx:
3642
      result.scx = scx
3643
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3644
    result.write(oprot)
3645
    oprot.writeMessageEnd()
3646
    oprot.trans.flush()
3647
 
559 chandransh 3648
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3649
    args = getCartsByStatus_args()
94 ashish 3650
    args.read(iprot)
3651
    iprot.readMessageEnd()
559 chandransh 3652
    result = getCartsByStatus_result()
94 ashish 3653
    try:
559 chandransh 3654
      result.success = self._handler.getCartsByStatus(args.status)
3655
    except ShoppingCartException, scx:
3656
      result.scx = scx
3657
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3658
    result.write(oprot)
3659
    oprot.writeMessageEnd()
3660
    oprot.trans.flush()
3661
 
559 chandransh 3662
  def process_getCartsByTime(self, seqid, iprot, oprot):
3663
    args = getCartsByTime_args()
94 ashish 3664
    args.read(iprot)
3665
    iprot.readMessageEnd()
559 chandransh 3666
    result = getCartsByTime_result()
94 ashish 3667
    try:
559 chandransh 3668
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3669
    except ShoppingCartException, scx:
3670
      result.scx = scx
3671
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3672
    result.write(oprot)
3673
    oprot.writeMessageEnd()
3674
    oprot.trans.flush()
3675
 
559 chandransh 3676
  def process_changeCartStatus(self, seqid, iprot, oprot):
3677
    args = changeCartStatus_args()
130 ashish 3678
    args.read(iprot)
3679
    iprot.readMessageEnd()
559 chandransh 3680
    result = changeCartStatus_result()
130 ashish 3681
    try:
559 chandransh 3682
      self._handler.changeCartStatus(args.cartId, args.status)
3683
    except ShoppingCartException, scx:
3684
      result.scx = scx
3685
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3686
    result.write(oprot)
3687
    oprot.writeMessageEnd()
3688
    oprot.trans.flush()
94 ashish 3689
 
559 chandransh 3690
  def process_addItemToCart(self, seqid, iprot, oprot):
3691
    args = addItemToCart_args()
130 ashish 3692
    args.read(iprot)
3693
    iprot.readMessageEnd()
559 chandransh 3694
    result = addItemToCart_result()
130 ashish 3695
    try:
3557 rajveer 3696
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3697
    except ShoppingCartException, scx:
3698
      result.scx = scx
3699
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3700
    result.write(oprot)
3701
    oprot.writeMessageEnd()
3702
    oprot.trans.flush()
3703
 
559 chandransh 3704
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3705
    args = deleteItemFromCart_args()
3706
    args.read(iprot)
3707
    iprot.readMessageEnd()
3708
    result = deleteItemFromCart_result()
3709
    try:
3710
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3711
    except ShoppingCartException, scx:
3712
      result.scx = scx
3713
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3714
    result.write(oprot)
3715
    oprot.writeMessageEnd()
3716
    oprot.trans.flush()
130 ashish 3717
 
559 chandransh 3718
  def process_changeItemStatus(self, seqid, iprot, oprot):
3719
    args = changeItemStatus_args()
3720
    args.read(iprot)
3721
    iprot.readMessageEnd()
3722
    result = changeItemStatus_result()
3723
    try:
3724
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3725
    except ShoppingCartException, scx:
3726
      result.scx = scx
3727
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3728
    result.write(oprot)
3729
    oprot.writeMessageEnd()
3730
    oprot.trans.flush()
3731
 
3732
  def process_addAddressToCart(self, seqid, iprot, oprot):
3733
    args = addAddressToCart_args()
3734
    args.read(iprot)
3735
    iprot.readMessageEnd()
3736
    result = addAddressToCart_result()
575 chandransh 3737
    try:
3738
      self._handler.addAddressToCart(args.cartId, args.addressId)
3739
    except ShoppingCartException, scx:
3740
      result.scx = scx
559 chandransh 3741
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3742
    result.write(oprot)
3743
    oprot.writeMessageEnd()
3744
    oprot.trans.flush()
3745
 
1976 varun.gupt 3746
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3747
    args = applyCouponToCart_args()
3748
    args.read(iprot)
3749
    iprot.readMessageEnd()
3750
    result = applyCouponToCart_result()
3751
    try:
3752
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3753
    except ShoppingCartException, scx:
3754
      result.scx = scx
3755
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3756
    result.write(oprot)
3757
    oprot.writeMessageEnd()
3758
    oprot.trans.flush()
3759
 
3760
  def process_removeCoupon(self, seqid, iprot, oprot):
3761
    args = removeCoupon_args()
3762
    args.read(iprot)
3763
    iprot.readMessageEnd()
3764
    result = removeCoupon_result()
3765
    try:
3766
      self._handler.removeCoupon(args.cartId)
3767
    except ShoppingCartException, scx:
3768
      result.scx = scx
3769
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3770
    result.write(oprot)
3771
    oprot.writeMessageEnd()
3772
    oprot.trans.flush()
3773
 
3554 varun.gupt 3774
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3775
    args = deleteDiscountsFromCart_args()
3776
    args.read(iprot)
3777
    iprot.readMessageEnd()
3778
    result = deleteDiscountsFromCart_result()
3779
    try:
3780
      self._handler.deleteDiscountsFromCart(args.cartId)
3781
    except ShoppingCartException, scx:
3782
      result.scx = scx
3783
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3784
    result.write(oprot)
3785
    oprot.writeMessageEnd()
3786
    oprot.trans.flush()
3787
 
3788
  def process_saveDiscounts(self, seqid, iprot, oprot):
3789
    args = saveDiscounts_args()
3790
    args.read(iprot)
3791
    iprot.readMessageEnd()
3792
    result = saveDiscounts_result()
3793
    try:
3794
      self._handler.saveDiscounts(args.discounts)
3795
    except ShoppingCartException, scx:
3796
      result.scx = scx
3797
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3798
    result.write(oprot)
3799
    oprot.writeMessageEnd()
3800
    oprot.trans.flush()
3801
 
690 chandransh 3802
  def process_createOrders(self, seqid, iprot, oprot):
3803
    args = createOrders_args()
559 chandransh 3804
    args.read(iprot)
3805
    iprot.readMessageEnd()
690 chandransh 3806
    result = createOrders_result()
559 chandransh 3807
    try:
3858 vikas 3808
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime)
559 chandransh 3809
    except ShoppingCartException, scx:
3810
      result.scx = scx
690 chandransh 3811
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3812
    result.write(oprot)
3813
    oprot.writeMessageEnd()
3814
    oprot.trans.flush()
3815
 
3816
  def process_validateCart(self, seqid, iprot, oprot):
3817
    args = validateCart_args()
3818
    args.read(iprot)
3819
    iprot.readMessageEnd()
3820
    result = validateCart_result()
575 chandransh 3821
    try:
3557 rajveer 3822
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3823
    except ShoppingCartException, scex:
3824
      result.scex = scex
559 chandransh 3825
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3826
    result.write(oprot)
3827
    oprot.writeMessageEnd()
3828
    oprot.trans.flush()
3829
 
690 chandransh 3830
  def process_mergeCart(self, seqid, iprot, oprot):
3831
    args = mergeCart_args()
575 chandransh 3832
    args.read(iprot)
3833
    iprot.readMessageEnd()
690 chandransh 3834
    result = mergeCart_result()
3835
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3836
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3837
    result.write(oprot)
3838
    oprot.writeMessageEnd()
3839
    oprot.trans.flush()
3840
 
3841
  def process_checkOut(self, seqid, iprot, oprot):
3842
    args = checkOut_args()
3843
    args.read(iprot)
3844
    iprot.readMessageEnd()
3845
    result = checkOut_result()
575 chandransh 3846
    try:
690 chandransh 3847
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3848
    except ShoppingCartException, scex:
3849
      result.scex = scex
690 chandransh 3850
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3851
    result.write(oprot)
3852
    oprot.writeMessageEnd()
3853
    oprot.trans.flush()
3854
 
690 chandransh 3855
  def process_resetCart(self, seqid, iprot, oprot):
3856
    args = resetCart_args()
559 chandransh 3857
    args.read(iprot)
3858
    iprot.readMessageEnd()
690 chandransh 3859
    result = resetCart_result()
3860
    try:
3861
      result.success = self._handler.resetCart(args.cartId, args.items)
3862
    except ShoppingCartException, scex:
3863
      result.scex = scex
3864
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3865
    result.write(oprot)
3866
    oprot.writeMessageEnd()
3867
    oprot.trans.flush()
3868
 
2981 rajveer 3869
  def process_getUserCount(self, seqid, iprot, oprot):
3870
    args = getUserCount_args()
559 chandransh 3871
    args.read(iprot)
3872
    iprot.readMessageEnd()
2981 rajveer 3873
    result = getUserCount_result()
3874
    result.success = self._handler.getUserCount(args.userType)
3875
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3876
    result.write(oprot)
3877
    oprot.writeMessageEnd()
3878
    oprot.trans.flush()
3879
 
2981 rajveer 3880
  def process_getAllUsers(self, seqid, iprot, oprot):
3881
    args = getAllUsers_args()
559 chandransh 3882
    args.read(iprot)
3883
    iprot.readMessageEnd()
2981 rajveer 3884
    result = getAllUsers_result()
3885
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3886
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3887
    result.write(oprot)
3888
    oprot.writeMessageEnd()
3889
    oprot.trans.flush()
3890
 
2981 rajveer 3891
  def process_putUserNote(self, seqid, iprot, oprot):
3892
    args = putUserNote_args()
559 chandransh 3893
    args.read(iprot)
3894
    iprot.readMessageEnd()
2981 rajveer 3895
    result = putUserNote_result()
3896
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3897
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3898
    result.write(oprot)
3899
    oprot.writeMessageEnd()
3900
    oprot.trans.flush()
3901
 
2981 rajveer 3902
  def process_getUserNotes(self, seqid, iprot, oprot):
3903
    args = getUserNotes_args()
559 chandransh 3904
    args.read(iprot)
3905
    iprot.readMessageEnd()
2981 rajveer 3906
    result = getUserNotes_result()
3907
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3908
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3909
    result.write(oprot)
3910
    oprot.writeMessageEnd()
3911
    oprot.trans.flush()
3912
 
2981 rajveer 3913
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3914
    args = getMyResearchItems_args()
559 chandransh 3915
    args.read(iprot)
3916
    iprot.readMessageEnd()
2981 rajveer 3917
    result = getMyResearchItems_result()
559 chandransh 3918
    try:
2981 rajveer 3919
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3920
    except WidgetException, scx:
3921
      result.scx = scx
2981 rajveer 3922
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3923
    result.write(oprot)
3924
    oprot.writeMessageEnd()
3925
    oprot.trans.flush()
3926
 
2981 rajveer 3927
  def process_updateMyResearch(self, seqid, iprot, oprot):
3928
    args = updateMyResearch_args()
772 rajveer 3929
    args.read(iprot)
3930
    iprot.readMessageEnd()
2981 rajveer 3931
    result = updateMyResearch_result()
3932
    try:
3933
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3934
    except WidgetException, scx:
3935
      result.scx = scx
3936
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3937
    result.write(oprot)
3938
    oprot.writeMessageEnd()
3939
    oprot.trans.flush()
559 chandransh 3940
 
2981 rajveer 3941
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3942
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3943
    args.read(iprot)
3944
    iprot.readMessageEnd()
2981 rajveer 3945
    result = deleteItemFromMyResearch_result()
3946
    try:
3947
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3948
    except WidgetException, scx:
3949
      result.scx = scx
3950
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3951
    result.write(oprot)
3952
    oprot.writeMessageEnd()
3953
    oprot.trans.flush()
772 rajveer 3954
 
2981 rajveer 3955
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3956
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3957
    args.read(iprot)
3958
    iprot.readMessageEnd()
2981 rajveer 3959
    result = getBrowseHistoryItems_result()
3960
    try:
3961
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3962
    except WidgetException, scx:
3963
      result.scx = scx
3964
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3965
    result.write(oprot)
3966
    oprot.writeMessageEnd()
3967
    oprot.trans.flush()
1596 ankur.sing 3968
 
2981 rajveer 3969
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3970
    args = updateBrowseHistory_args()
2642 varun.gupt 3971
    args.read(iprot)
3972
    iprot.readMessageEnd()
2981 rajveer 3973
    result = updateBrowseHistory_result()
3974
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3975
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3976
    result.write(oprot)
3977
    oprot.writeMessageEnd()
3978
    oprot.trans.flush()
1673 ankur.sing 3979
 
3385 varun.gupt 3980
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3981
    args = getCartsWithCouponCount_args()
3982
    args.read(iprot)
3983
    iprot.readMessageEnd()
3984
    result = getCartsWithCouponCount_result()
3985
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3986
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3987
    result.write(oprot)
3988
    oprot.writeMessageEnd()
3989
    oprot.trans.flush()
2642 varun.gupt 3990
 
3499 mandeep.dh 3991
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3992
    args = increaseTrustLevel_args()
3993
    args.read(iprot)
3994
    iprot.readMessageEnd()
3995
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3996
    return
3385 varun.gupt 3997
 
3499 mandeep.dh 3998
 
94 ashish 3999
# HELPER FUNCTIONS AND STRUCTURES
4000
 
559 chandransh 4001
class createAnonymousUser_args:
94 ashish 4002
  """
4003
  Attributes:
559 chandransh 4004
   - jsessionId
94 ashish 4005
  """
4006
 
4007
  thrift_spec = (
4008
    None, # 0
559 chandransh 4009
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4010
  )
4011
 
559 chandransh 4012
  def __init__(self, jsessionId=None,):
4013
    self.jsessionId = jsessionId
94 ashish 4014
 
4015
  def read(self, iprot):
4016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4018
      return
4019
    iprot.readStructBegin()
4020
    while True:
4021
      (fname, ftype, fid) = iprot.readFieldBegin()
4022
      if ftype == TType.STOP:
4023
        break
4024
      if fid == 1:
559 chandransh 4025
        if ftype == TType.STRING:
4026
          self.jsessionId = iprot.readString();
94 ashish 4027
        else:
4028
          iprot.skip(ftype)
4029
      else:
4030
        iprot.skip(ftype)
4031
      iprot.readFieldEnd()
4032
    iprot.readStructEnd()
4033
 
4034
  def write(self, oprot):
4035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4037
      return
559 chandransh 4038
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4039
    if self.jsessionId is not None:
559 chandransh 4040
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4041
      oprot.writeString(self.jsessionId)
94 ashish 4042
      oprot.writeFieldEnd()
4043
    oprot.writeFieldStop()
4044
    oprot.writeStructEnd()
4045
 
3431 rajveer 4046
  def validate(self):
4047
    return
4048
 
4049
 
94 ashish 4050
  def __repr__(self):
4051
    L = ['%s=%r' % (key, value)
4052
      for key, value in self.__dict__.iteritems()]
4053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4054
 
4055
  def __eq__(self, other):
4056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4057
 
4058
  def __ne__(self, other):
4059
    return not (self == other)
4060
 
559 chandransh 4061
class createAnonymousUser_result:
94 ashish 4062
  """
4063
  Attributes:
4064
   - success
559 chandransh 4065
   - ucex
94 ashish 4066
  """
4067
 
4068
  thrift_spec = (
559 chandransh 4069
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4070
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4071
  )
4072
 
559 chandransh 4073
  def __init__(self, success=None, ucex=None,):
94 ashish 4074
    self.success = success
559 chandransh 4075
    self.ucex = ucex
94 ashish 4076
 
4077
  def read(self, iprot):
4078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4080
      return
4081
    iprot.readStructBegin()
4082
    while True:
4083
      (fname, ftype, fid) = iprot.readFieldBegin()
4084
      if ftype == TType.STOP:
4085
        break
4086
      if fid == 0:
4087
        if ftype == TType.STRUCT:
559 chandransh 4088
          self.success = User()
94 ashish 4089
          self.success.read(iprot)
4090
        else:
4091
          iprot.skip(ftype)
4092
      elif fid == 1:
4093
        if ftype == TType.STRUCT:
559 chandransh 4094
          self.ucex = UserContextException()
4095
          self.ucex.read(iprot)
94 ashish 4096
        else:
4097
          iprot.skip(ftype)
4098
      else:
4099
        iprot.skip(ftype)
4100
      iprot.readFieldEnd()
4101
    iprot.readStructEnd()
4102
 
4103
  def write(self, oprot):
4104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4106
      return
559 chandransh 4107
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4108
    if self.success is not None:
94 ashish 4109
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4110
      self.success.write(oprot)
4111
      oprot.writeFieldEnd()
3431 rajveer 4112
    if self.ucex is not None:
559 chandransh 4113
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4114
      self.ucex.write(oprot)
94 ashish 4115
      oprot.writeFieldEnd()
4116
    oprot.writeFieldStop()
4117
    oprot.writeStructEnd()
4118
 
3431 rajveer 4119
  def validate(self):
4120
    return
4121
 
4122
 
94 ashish 4123
  def __repr__(self):
4124
    L = ['%s=%r' % (key, value)
4125
      for key, value in self.__dict__.iteritems()]
4126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4127
 
4128
  def __eq__(self, other):
4129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4130
 
4131
  def __ne__(self, other):
4132
    return not (self == other)
4133
 
559 chandransh 4134
class getUserById_args:
94 ashish 4135
  """
4136
  Attributes:
4137
   - userId
4138
  """
4139
 
4140
  thrift_spec = (
4141
    None, # 0
4142
    (1, TType.I64, 'userId', None, None, ), # 1
4143
  )
4144
 
559 chandransh 4145
  def __init__(self, userId=None,):
94 ashish 4146
    self.userId = userId
4147
 
4148
  def read(self, iprot):
4149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4151
      return
4152
    iprot.readStructBegin()
4153
    while True:
4154
      (fname, ftype, fid) = iprot.readFieldBegin()
4155
      if ftype == TType.STOP:
4156
        break
4157
      if fid == 1:
4158
        if ftype == TType.I64:
4159
          self.userId = iprot.readI64();
4160
        else:
4161
          iprot.skip(ftype)
4162
      else:
4163
        iprot.skip(ftype)
4164
      iprot.readFieldEnd()
4165
    iprot.readStructEnd()
4166
 
4167
  def write(self, oprot):
4168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4170
      return
559 chandransh 4171
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4172
    if self.userId is not None:
94 ashish 4173
      oprot.writeFieldBegin('userId', TType.I64, 1)
4174
      oprot.writeI64(self.userId)
4175
      oprot.writeFieldEnd()
4176
    oprot.writeFieldStop()
4177
    oprot.writeStructEnd()
4178
 
3431 rajveer 4179
  def validate(self):
4180
    return
4181
 
4182
 
94 ashish 4183
  def __repr__(self):
4184
    L = ['%s=%r' % (key, value)
4185
      for key, value in self.__dict__.iteritems()]
4186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4187
 
4188
  def __eq__(self, other):
4189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4190
 
4191
  def __ne__(self, other):
4192
    return not (self == other)
4193
 
559 chandransh 4194
class getUserById_result:
94 ashish 4195
  """
4196
  Attributes:
4197
   - success
559 chandransh 4198
   - ucex
94 ashish 4199
  """
4200
 
4201
  thrift_spec = (
559 chandransh 4202
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4203
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4204
  )
4205
 
559 chandransh 4206
  def __init__(self, success=None, ucex=None,):
94 ashish 4207
    self.success = success
559 chandransh 4208
    self.ucex = ucex
94 ashish 4209
 
4210
  def read(self, iprot):
4211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4213
      return
4214
    iprot.readStructBegin()
4215
    while True:
4216
      (fname, ftype, fid) = iprot.readFieldBegin()
4217
      if ftype == TType.STOP:
4218
        break
4219
      if fid == 0:
4220
        if ftype == TType.STRUCT:
559 chandransh 4221
          self.success = User()
94 ashish 4222
          self.success.read(iprot)
4223
        else:
4224
          iprot.skip(ftype)
4225
      elif fid == 1:
4226
        if ftype == TType.STRUCT:
559 chandransh 4227
          self.ucex = UserContextException()
4228
          self.ucex.read(iprot)
94 ashish 4229
        else:
4230
          iprot.skip(ftype)
4231
      else:
4232
        iprot.skip(ftype)
4233
      iprot.readFieldEnd()
4234
    iprot.readStructEnd()
4235
 
4236
  def write(self, oprot):
4237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4239
      return
559 chandransh 4240
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4241
    if self.success is not None:
94 ashish 4242
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4243
      self.success.write(oprot)
4244
      oprot.writeFieldEnd()
3431 rajveer 4245
    if self.ucex is not None:
559 chandransh 4246
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4247
      self.ucex.write(oprot)
94 ashish 4248
      oprot.writeFieldEnd()
4249
    oprot.writeFieldStop()
4250
    oprot.writeStructEnd()
4251
 
3431 rajveer 4252
  def validate(self):
4253
    return
4254
 
4255
 
94 ashish 4256
  def __repr__(self):
4257
    L = ['%s=%r' % (key, value)
4258
      for key, value in self.__dict__.iteritems()]
4259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4260
 
4261
  def __eq__(self, other):
4262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4263
 
4264
  def __ne__(self, other):
4265
    return not (self == other)
4266
 
1491 vikas 4267
class getUserByEmail_args:
4268
  """
4269
  Attributes:
4270
   - email
4271
  """
4272
 
4273
  thrift_spec = (
4274
    None, # 0
4275
    (1, TType.STRING, 'email', None, None, ), # 1
4276
  )
4277
 
4278
  def __init__(self, email=None,):
4279
    self.email = email
4280
 
4281
  def read(self, iprot):
4282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4284
      return
4285
    iprot.readStructBegin()
4286
    while True:
4287
      (fname, ftype, fid) = iprot.readFieldBegin()
4288
      if ftype == TType.STOP:
4289
        break
4290
      if fid == 1:
4291
        if ftype == TType.STRING:
4292
          self.email = iprot.readString();
4293
        else:
4294
          iprot.skip(ftype)
4295
      else:
4296
        iprot.skip(ftype)
4297
      iprot.readFieldEnd()
4298
    iprot.readStructEnd()
4299
 
4300
  def write(self, oprot):
4301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4303
      return
4304
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4305
    if self.email is not None:
1491 vikas 4306
      oprot.writeFieldBegin('email', TType.STRING, 1)
4307
      oprot.writeString(self.email)
4308
      oprot.writeFieldEnd()
4309
    oprot.writeFieldStop()
4310
    oprot.writeStructEnd()
4311
 
3431 rajveer 4312
  def validate(self):
4313
    return
4314
 
4315
 
1491 vikas 4316
  def __repr__(self):
4317
    L = ['%s=%r' % (key, value)
4318
      for key, value in self.__dict__.iteritems()]
4319
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4320
 
4321
  def __eq__(self, other):
4322
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4323
 
4324
  def __ne__(self, other):
4325
    return not (self == other)
4326
 
4327
class getUserByEmail_result:
4328
  """
4329
  Attributes:
4330
   - success
4331
   - ucex
4332
  """
4333
 
4334
  thrift_spec = (
4335
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4336
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4337
  )
4338
 
4339
  def __init__(self, success=None, ucex=None,):
4340
    self.success = success
4341
    self.ucex = ucex
4342
 
4343
  def read(self, iprot):
4344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4346
      return
4347
    iprot.readStructBegin()
4348
    while True:
4349
      (fname, ftype, fid) = iprot.readFieldBegin()
4350
      if ftype == TType.STOP:
4351
        break
4352
      if fid == 0:
4353
        if ftype == TType.STRUCT:
4354
          self.success = User()
4355
          self.success.read(iprot)
4356
        else:
4357
          iprot.skip(ftype)
4358
      elif fid == 1:
4359
        if ftype == TType.STRUCT:
4360
          self.ucex = UserContextException()
4361
          self.ucex.read(iprot)
4362
        else:
4363
          iprot.skip(ftype)
4364
      else:
4365
        iprot.skip(ftype)
4366
      iprot.readFieldEnd()
4367
    iprot.readStructEnd()
4368
 
4369
  def write(self, oprot):
4370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4372
      return
4373
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4374
    if self.success is not None:
1491 vikas 4375
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4376
      self.success.write(oprot)
4377
      oprot.writeFieldEnd()
3431 rajveer 4378
    if self.ucex is not None:
1491 vikas 4379
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4380
      self.ucex.write(oprot)
4381
      oprot.writeFieldEnd()
4382
    oprot.writeFieldStop()
4383
    oprot.writeStructEnd()
4384
 
3431 rajveer 4385
  def validate(self):
4386
    return
4387
 
4388
 
1491 vikas 4389
  def __repr__(self):
4390
    L = ['%s=%r' % (key, value)
4391
      for key, value in self.__dict__.iteritems()]
4392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4393
 
4394
  def __eq__(self, other):
4395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4396
 
4397
  def __ne__(self, other):
4398
    return not (self == other)
4399
 
3032 mandeep.dh 4400
class getUserByMobileNumber_args:
4401
  """
4402
  Attributes:
4403
   - mobileNumber
4404
  """
4405
 
4406
  thrift_spec = (
4407
    None, # 0
4408
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4409
  )
4410
 
4411
  def __init__(self, mobileNumber=None,):
4412
    self.mobileNumber = mobileNumber
4413
 
4414
  def read(self, iprot):
4415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4417
      return
4418
    iprot.readStructBegin()
4419
    while True:
4420
      (fname, ftype, fid) = iprot.readFieldBegin()
4421
      if ftype == TType.STOP:
4422
        break
4423
      if fid == 1:
4424
        if ftype == TType.I64:
4425
          self.mobileNumber = iprot.readI64();
4426
        else:
4427
          iprot.skip(ftype)
4428
      else:
4429
        iprot.skip(ftype)
4430
      iprot.readFieldEnd()
4431
    iprot.readStructEnd()
4432
 
4433
  def write(self, oprot):
4434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4436
      return
4437
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4438
    if self.mobileNumber is not None:
3032 mandeep.dh 4439
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4440
      oprot.writeI64(self.mobileNumber)
4441
      oprot.writeFieldEnd()
4442
    oprot.writeFieldStop()
4443
    oprot.writeStructEnd()
4444
 
3431 rajveer 4445
  def validate(self):
4446
    return
4447
 
4448
 
3032 mandeep.dh 4449
  def __repr__(self):
4450
    L = ['%s=%r' % (key, value)
4451
      for key, value in self.__dict__.iteritems()]
4452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4453
 
4454
  def __eq__(self, other):
4455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4456
 
4457
  def __ne__(self, other):
4458
    return not (self == other)
4459
 
4460
class getUserByMobileNumber_result:
4461
  """
4462
  Attributes:
4463
   - success
4464
   - ucex
4465
  """
4466
 
4467
  thrift_spec = (
4468
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4469
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4470
  )
4471
 
4472
  def __init__(self, success=None, ucex=None,):
4473
    self.success = success
4474
    self.ucex = ucex
4475
 
4476
  def read(self, iprot):
4477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4479
      return
4480
    iprot.readStructBegin()
4481
    while True:
4482
      (fname, ftype, fid) = iprot.readFieldBegin()
4483
      if ftype == TType.STOP:
4484
        break
4485
      if fid == 0:
4486
        if ftype == TType.STRUCT:
4487
          self.success = User()
4488
          self.success.read(iprot)
4489
        else:
4490
          iprot.skip(ftype)
4491
      elif fid == 1:
4492
        if ftype == TType.STRUCT:
4493
          self.ucex = UserContextException()
4494
          self.ucex.read(iprot)
4495
        else:
4496
          iprot.skip(ftype)
4497
      else:
4498
        iprot.skip(ftype)
4499
      iprot.readFieldEnd()
4500
    iprot.readStructEnd()
4501
 
4502
  def write(self, oprot):
4503
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4504
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4505
      return
4506
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4507
    if self.success is not None:
3032 mandeep.dh 4508
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4509
      self.success.write(oprot)
4510
      oprot.writeFieldEnd()
3431 rajveer 4511
    if self.ucex is not None:
3032 mandeep.dh 4512
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4513
      self.ucex.write(oprot)
4514
      oprot.writeFieldEnd()
4515
    oprot.writeFieldStop()
4516
    oprot.writeStructEnd()
4517
 
3431 rajveer 4518
  def validate(self):
4519
    return
4520
 
4521
 
3032 mandeep.dh 4522
  def __repr__(self):
4523
    L = ['%s=%r' % (key, value)
4524
      for key, value in self.__dict__.iteritems()]
4525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4526
 
4527
  def __eq__(self, other):
4528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4529
 
4530
  def __ne__(self, other):
4531
    return not (self == other)
4532
 
559 chandransh 4533
class createUser_args:
94 ashish 4534
  """
4535
  Attributes:
559 chandransh 4536
   - user
94 ashish 4537
  """
4538
 
4539
  thrift_spec = (
4540
    None, # 0
559 chandransh 4541
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4542
  )
4543
 
559 chandransh 4544
  def __init__(self, user=None,):
4545
    self.user = user
94 ashish 4546
 
4547
  def read(self, iprot):
4548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4550
      return
4551
    iprot.readStructBegin()
4552
    while True:
4553
      (fname, ftype, fid) = iprot.readFieldBegin()
4554
      if ftype == TType.STOP:
4555
        break
4556
      if fid == 1:
559 chandransh 4557
        if ftype == TType.STRUCT:
4558
          self.user = User()
4559
          self.user.read(iprot)
94 ashish 4560
        else:
4561
          iprot.skip(ftype)
4562
      else:
4563
        iprot.skip(ftype)
4564
      iprot.readFieldEnd()
4565
    iprot.readStructEnd()
4566
 
4567
  def write(self, oprot):
4568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4570
      return
559 chandransh 4571
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4572
    if self.user is not None:
559 chandransh 4573
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4574
      self.user.write(oprot)
94 ashish 4575
      oprot.writeFieldEnd()
4576
    oprot.writeFieldStop()
4577
    oprot.writeStructEnd()
4578
 
3431 rajveer 4579
  def validate(self):
4580
    return
4581
 
4582
 
94 ashish 4583
  def __repr__(self):
4584
    L = ['%s=%r' % (key, value)
4585
      for key, value in self.__dict__.iteritems()]
4586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4587
 
4588
  def __eq__(self, other):
4589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4590
 
4591
  def __ne__(self, other):
4592
    return not (self == other)
4593
 
559 chandransh 4594
class createUser_result:
94 ashish 4595
  """
4596
  Attributes:
4597
   - success
559 chandransh 4598
   - ucex
94 ashish 4599
  """
4600
 
4601
  thrift_spec = (
559 chandransh 4602
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4603
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4604
  )
4605
 
559 chandransh 4606
  def __init__(self, success=None, ucex=None,):
94 ashish 4607
    self.success = success
559 chandransh 4608
    self.ucex = ucex
94 ashish 4609
 
4610
  def read(self, iprot):
4611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4613
      return
4614
    iprot.readStructBegin()
4615
    while True:
4616
      (fname, ftype, fid) = iprot.readFieldBegin()
4617
      if ftype == TType.STOP:
4618
        break
4619
      if fid == 0:
4620
        if ftype == TType.STRUCT:
559 chandransh 4621
          self.success = User()
94 ashish 4622
          self.success.read(iprot)
4623
        else:
4624
          iprot.skip(ftype)
4625
      elif fid == 1:
4626
        if ftype == TType.STRUCT:
559 chandransh 4627
          self.ucex = UserContextException()
4628
          self.ucex.read(iprot)
94 ashish 4629
        else:
4630
          iprot.skip(ftype)
4631
      else:
4632
        iprot.skip(ftype)
4633
      iprot.readFieldEnd()
4634
    iprot.readStructEnd()
4635
 
4636
  def write(self, oprot):
4637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4639
      return
559 chandransh 4640
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4641
    if self.success is not None:
94 ashish 4642
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4643
      self.success.write(oprot)
4644
      oprot.writeFieldEnd()
3431 rajveer 4645
    if self.ucex is not None:
559 chandransh 4646
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4647
      self.ucex.write(oprot)
94 ashish 4648
      oprot.writeFieldEnd()
4649
    oprot.writeFieldStop()
4650
    oprot.writeStructEnd()
4651
 
3431 rajveer 4652
  def validate(self):
4653
    return
4654
 
4655
 
94 ashish 4656
  def __repr__(self):
4657
    L = ['%s=%r' % (key, value)
4658
      for key, value in self.__dict__.iteritems()]
4659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4660
 
4661
  def __eq__(self, other):
4662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4663
 
4664
  def __ne__(self, other):
4665
    return not (self == other)
4666
 
559 chandransh 4667
class updateUser_args:
94 ashish 4668
  """
4669
  Attributes:
559 chandransh 4670
   - user
94 ashish 4671
  """
4672
 
4673
  thrift_spec = (
4674
    None, # 0
559 chandransh 4675
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4676
  )
4677
 
559 chandransh 4678
  def __init__(self, user=None,):
4679
    self.user = user
94 ashish 4680
 
4681
  def read(self, iprot):
4682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4684
      return
4685
    iprot.readStructBegin()
4686
    while True:
4687
      (fname, ftype, fid) = iprot.readFieldBegin()
4688
      if ftype == TType.STOP:
4689
        break
4690
      if fid == 1:
559 chandransh 4691
        if ftype == TType.STRUCT:
4692
          self.user = User()
4693
          self.user.read(iprot)
94 ashish 4694
        else:
4695
          iprot.skip(ftype)
4696
      else:
4697
        iprot.skip(ftype)
4698
      iprot.readFieldEnd()
4699
    iprot.readStructEnd()
4700
 
4701
  def write(self, oprot):
4702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4704
      return
559 chandransh 4705
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4706
    if self.user is not None:
559 chandransh 4707
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4708
      self.user.write(oprot)
94 ashish 4709
      oprot.writeFieldEnd()
4710
    oprot.writeFieldStop()
4711
    oprot.writeStructEnd()
4712
 
3431 rajveer 4713
  def validate(self):
4714
    return
4715
 
4716
 
94 ashish 4717
  def __repr__(self):
4718
    L = ['%s=%r' % (key, value)
4719
      for key, value in self.__dict__.iteritems()]
4720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4721
 
4722
  def __eq__(self, other):
4723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4724
 
4725
  def __ne__(self, other):
4726
    return not (self == other)
4727
 
559 chandransh 4728
class updateUser_result:
94 ashish 4729
  """
4730
  Attributes:
4731
   - success
559 chandransh 4732
   - ucex
94 ashish 4733
  """
4734
 
4735
  thrift_spec = (
559 chandransh 4736
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4737
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4738
  )
4739
 
559 chandransh 4740
  def __init__(self, success=None, ucex=None,):
94 ashish 4741
    self.success = success
559 chandransh 4742
    self.ucex = ucex
94 ashish 4743
 
4744
  def read(self, iprot):
4745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4747
      return
4748
    iprot.readStructBegin()
4749
    while True:
4750
      (fname, ftype, fid) = iprot.readFieldBegin()
4751
      if ftype == TType.STOP:
4752
        break
4753
      if fid == 0:
4754
        if ftype == TType.STRUCT:
559 chandransh 4755
          self.success = User()
94 ashish 4756
          self.success.read(iprot)
4757
        else:
4758
          iprot.skip(ftype)
4759
      elif fid == 1:
4760
        if ftype == TType.STRUCT:
559 chandransh 4761
          self.ucex = UserContextException()
4762
          self.ucex.read(iprot)
94 ashish 4763
        else:
4764
          iprot.skip(ftype)
4765
      else:
4766
        iprot.skip(ftype)
4767
      iprot.readFieldEnd()
4768
    iprot.readStructEnd()
4769
 
4770
  def write(self, oprot):
4771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4773
      return
559 chandransh 4774
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4775
    if self.success is not None:
94 ashish 4776
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4777
      self.success.write(oprot)
4778
      oprot.writeFieldEnd()
3431 rajveer 4779
    if self.ucex is not None:
559 chandransh 4780
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4781
      self.ucex.write(oprot)
94 ashish 4782
      oprot.writeFieldEnd()
4783
    oprot.writeFieldStop()
4784
    oprot.writeStructEnd()
4785
 
3431 rajveer 4786
  def validate(self):
4787
    return
4788
 
4789
 
94 ashish 4790
  def __repr__(self):
4791
    L = ['%s=%r' % (key, value)
4792
      for key, value in self.__dict__.iteritems()]
4793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4794
 
4795
  def __eq__(self, other):
4796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4797
 
4798
  def __ne__(self, other):
4799
    return not (self == other)
4800
 
559 chandransh 4801
class deleteUser_args:
94 ashish 4802
  """
4803
  Attributes:
4804
   - userId
4805
  """
4806
 
4807
  thrift_spec = (
4808
    None, # 0
4809
    (1, TType.I64, 'userId', None, None, ), # 1
4810
  )
4811
 
559 chandransh 4812
  def __init__(self, userId=None,):
94 ashish 4813
    self.userId = userId
4814
 
4815
  def read(self, iprot):
4816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4818
      return
4819
    iprot.readStructBegin()
4820
    while True:
4821
      (fname, ftype, fid) = iprot.readFieldBegin()
4822
      if ftype == TType.STOP:
4823
        break
4824
      if fid == 1:
4825
        if ftype == TType.I64:
4826
          self.userId = iprot.readI64();
4827
        else:
4828
          iprot.skip(ftype)
4829
      else:
4830
        iprot.skip(ftype)
4831
      iprot.readFieldEnd()
4832
    iprot.readStructEnd()
4833
 
4834
  def write(self, oprot):
4835
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4836
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4837
      return
559 chandransh 4838
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4839
    if self.userId is not None:
94 ashish 4840
      oprot.writeFieldBegin('userId', TType.I64, 1)
4841
      oprot.writeI64(self.userId)
4842
      oprot.writeFieldEnd()
4843
    oprot.writeFieldStop()
4844
    oprot.writeStructEnd()
4845
 
3431 rajveer 4846
  def validate(self):
4847
    return
4848
 
4849
 
94 ashish 4850
  def __repr__(self):
4851
    L = ['%s=%r' % (key, value)
4852
      for key, value in self.__dict__.iteritems()]
4853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4854
 
4855
  def __eq__(self, other):
4856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4857
 
4858
  def __ne__(self, other):
4859
    return not (self == other)
4860
 
559 chandransh 4861
class deleteUser_result:
94 ashish 4862
  """
4863
  Attributes:
4864
   - success
559 chandransh 4865
   - ucex
94 ashish 4866
  """
4867
 
4868
  thrift_spec = (
559 chandransh 4869
    (0, TType.BOOL, 'success', None, None, ), # 0
4870
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4871
  )
4872
 
559 chandransh 4873
  def __init__(self, success=None, ucex=None,):
94 ashish 4874
    self.success = success
559 chandransh 4875
    self.ucex = ucex
94 ashish 4876
 
4877
  def read(self, iprot):
4878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4880
      return
4881
    iprot.readStructBegin()
4882
    while True:
4883
      (fname, ftype, fid) = iprot.readFieldBegin()
4884
      if ftype == TType.STOP:
4885
        break
4886
      if fid == 0:
559 chandransh 4887
        if ftype == TType.BOOL:
4888
          self.success = iprot.readBool();
94 ashish 4889
        else:
4890
          iprot.skip(ftype)
4891
      elif fid == 1:
4892
        if ftype == TType.STRUCT:
559 chandransh 4893
          self.ucex = UserContextException()
4894
          self.ucex.read(iprot)
94 ashish 4895
        else:
4896
          iprot.skip(ftype)
4897
      else:
4898
        iprot.skip(ftype)
4899
      iprot.readFieldEnd()
4900
    iprot.readStructEnd()
4901
 
4902
  def write(self, oprot):
4903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4905
      return
559 chandransh 4906
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4907
    if self.success is not None:
559 chandransh 4908
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4909
      oprot.writeBool(self.success)
94 ashish 4910
      oprot.writeFieldEnd()
3431 rajveer 4911
    if self.ucex is not None:
559 chandransh 4912
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4913
      self.ucex.write(oprot)
94 ashish 4914
      oprot.writeFieldEnd()
4915
    oprot.writeFieldStop()
4916
    oprot.writeStructEnd()
4917
 
3431 rajveer 4918
  def validate(self):
4919
    return
4920
 
4921
 
94 ashish 4922
  def __repr__(self):
4923
    L = ['%s=%r' % (key, value)
4924
      for key, value in self.__dict__.iteritems()]
4925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4926
 
4927
  def __eq__(self, other):
4928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4929
 
4930
  def __ne__(self, other):
4931
    return not (self == other)
4932
 
559 chandransh 4933
class getUserState_args:
94 ashish 4934
  """
4935
  Attributes:
4936
   - userId
4937
  """
4938
 
4939
  thrift_spec = (
4940
    None, # 0
4941
    (1, TType.I64, 'userId', None, None, ), # 1
4942
  )
4943
 
559 chandransh 4944
  def __init__(self, userId=None,):
94 ashish 4945
    self.userId = userId
4946
 
4947
  def read(self, iprot):
4948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4950
      return
4951
    iprot.readStructBegin()
4952
    while True:
4953
      (fname, ftype, fid) = iprot.readFieldBegin()
4954
      if ftype == TType.STOP:
4955
        break
4956
      if fid == 1:
4957
        if ftype == TType.I64:
4958
          self.userId = iprot.readI64();
4959
        else:
4960
          iprot.skip(ftype)
4961
      else:
4962
        iprot.skip(ftype)
4963
      iprot.readFieldEnd()
4964
    iprot.readStructEnd()
4965
 
4966
  def write(self, oprot):
4967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4969
      return
559 chandransh 4970
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 4971
    if self.userId is not None:
94 ashish 4972
      oprot.writeFieldBegin('userId', TType.I64, 1)
4973
      oprot.writeI64(self.userId)
4974
      oprot.writeFieldEnd()
4975
    oprot.writeFieldStop()
4976
    oprot.writeStructEnd()
4977
 
3431 rajveer 4978
  def validate(self):
4979
    return
4980
 
4981
 
94 ashish 4982
  def __repr__(self):
4983
    L = ['%s=%r' % (key, value)
4984
      for key, value in self.__dict__.iteritems()]
4985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4986
 
4987
  def __eq__(self, other):
4988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4989
 
4990
  def __ne__(self, other):
4991
    return not (self == other)
4992
 
559 chandransh 4993
class getUserState_result:
94 ashish 4994
  """
4995
  Attributes:
4996
   - success
559 chandransh 4997
   - ucex
94 ashish 4998
  """
4999
 
5000
  thrift_spec = (
559 chandransh 5001
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
5002
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 5003
  )
5004
 
559 chandransh 5005
  def __init__(self, success=None, ucex=None,):
94 ashish 5006
    self.success = success
559 chandransh 5007
    self.ucex = ucex
94 ashish 5008
 
5009
  def read(self, iprot):
5010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5012
      return
5013
    iprot.readStructBegin()
5014
    while True:
5015
      (fname, ftype, fid) = iprot.readFieldBegin()
5016
      if ftype == TType.STOP:
5017
        break
5018
      if fid == 0:
5019
        if ftype == TType.STRUCT:
559 chandransh 5020
          self.success = UserState()
94 ashish 5021
          self.success.read(iprot)
5022
        else:
5023
          iprot.skip(ftype)
5024
      elif fid == 1:
5025
        if ftype == TType.STRUCT:
559 chandransh 5026
          self.ucex = UserContextException()
5027
          self.ucex.read(iprot)
94 ashish 5028
        else:
5029
          iprot.skip(ftype)
5030
      else:
5031
        iprot.skip(ftype)
5032
      iprot.readFieldEnd()
5033
    iprot.readStructEnd()
5034
 
5035
  def write(self, oprot):
5036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5038
      return
559 chandransh 5039
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 5040
    if self.success is not None:
94 ashish 5041
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5042
      self.success.write(oprot)
5043
      oprot.writeFieldEnd()
3431 rajveer 5044
    if self.ucex is not None:
559 chandransh 5045
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5046
      self.ucex.write(oprot)
94 ashish 5047
      oprot.writeFieldEnd()
5048
    oprot.writeFieldStop()
5049
    oprot.writeStructEnd()
5050
 
3431 rajveer 5051
  def validate(self):
5052
    return
5053
 
5054
 
94 ashish 5055
  def __repr__(self):
5056
    L = ['%s=%r' % (key, value)
5057
      for key, value in self.__dict__.iteritems()]
5058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5059
 
5060
  def __eq__(self, other):
5061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5062
 
5063
  def __ne__(self, other):
5064
    return not (self == other)
5065
 
559 chandransh 5066
class authenticateUser_args:
94 ashish 5067
  """
5068
  Attributes:
5069
   - email
5070
   - password
5071
  """
5072
 
5073
  thrift_spec = (
5074
    None, # 0
5075
    (1, TType.STRING, 'email', None, None, ), # 1
5076
    (2, TType.STRING, 'password', None, None, ), # 2
5077
  )
5078
 
5079
  def __init__(self, email=None, password=None,):
5080
    self.email = email
5081
    self.password = password
5082
 
5083
  def read(self, iprot):
5084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5086
      return
5087
    iprot.readStructBegin()
5088
    while True:
5089
      (fname, ftype, fid) = iprot.readFieldBegin()
5090
      if ftype == TType.STOP:
5091
        break
5092
      if fid == 1:
5093
        if ftype == TType.STRING:
5094
          self.email = iprot.readString();
5095
        else:
5096
          iprot.skip(ftype)
5097
      elif fid == 2:
5098
        if ftype == TType.STRING:
5099
          self.password = iprot.readString();
5100
        else:
5101
          iprot.skip(ftype)
5102
      else:
5103
        iprot.skip(ftype)
5104
      iprot.readFieldEnd()
5105
    iprot.readStructEnd()
5106
 
5107
  def write(self, oprot):
5108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5110
      return
559 chandransh 5111
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5112
    if self.email is not None:
94 ashish 5113
      oprot.writeFieldBegin('email', TType.STRING, 1)
5114
      oprot.writeString(self.email)
5115
      oprot.writeFieldEnd()
3431 rajveer 5116
    if self.password is not None:
94 ashish 5117
      oprot.writeFieldBegin('password', TType.STRING, 2)
5118
      oprot.writeString(self.password)
5119
      oprot.writeFieldEnd()
5120
    oprot.writeFieldStop()
5121
    oprot.writeStructEnd()
5122
 
3431 rajveer 5123
  def validate(self):
5124
    return
5125
 
5126
 
94 ashish 5127
  def __repr__(self):
5128
    L = ['%s=%r' % (key, value)
5129
      for key, value in self.__dict__.iteritems()]
5130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5131
 
5132
  def __eq__(self, other):
5133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5134
 
5135
  def __ne__(self, other):
5136
    return not (self == other)
5137
 
559 chandransh 5138
class authenticateUser_result:
94 ashish 5139
  """
5140
  Attributes:
5141
   - success
559 chandransh 5142
   - auex
94 ashish 5143
  """
5144
 
5145
  thrift_spec = (
559 chandransh 5146
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5147
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5148
  )
5149
 
559 chandransh 5150
  def __init__(self, success=None, auex=None,):
94 ashish 5151
    self.success = success
559 chandransh 5152
    self.auex = auex
94 ashish 5153
 
5154
  def read(self, iprot):
5155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5157
      return
5158
    iprot.readStructBegin()
5159
    while True:
5160
      (fname, ftype, fid) = iprot.readFieldBegin()
5161
      if ftype == TType.STOP:
5162
        break
5163
      if fid == 0:
5164
        if ftype == TType.STRUCT:
559 chandransh 5165
          self.success = User()
94 ashish 5166
          self.success.read(iprot)
5167
        else:
5168
          iprot.skip(ftype)
5169
      elif fid == 1:
5170
        if ftype == TType.STRUCT:
559 chandransh 5171
          self.auex = AuthenticationException()
5172
          self.auex.read(iprot)
94 ashish 5173
        else:
5174
          iprot.skip(ftype)
5175
      else:
5176
        iprot.skip(ftype)
5177
      iprot.readFieldEnd()
5178
    iprot.readStructEnd()
5179
 
5180
  def write(self, oprot):
5181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5183
      return
559 chandransh 5184
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5185
    if self.success is not None:
94 ashish 5186
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5187
      self.success.write(oprot)
5188
      oprot.writeFieldEnd()
3431 rajveer 5189
    if self.auex is not None:
559 chandransh 5190
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5191
      self.auex.write(oprot)
94 ashish 5192
      oprot.writeFieldEnd()
5193
    oprot.writeFieldStop()
5194
    oprot.writeStructEnd()
5195
 
3431 rajveer 5196
  def validate(self):
5197
    return
5198
 
5199
 
94 ashish 5200
  def __repr__(self):
5201
    L = ['%s=%r' % (key, value)
5202
      for key, value in self.__dict__.iteritems()]
5203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5204
 
5205
  def __eq__(self, other):
5206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5207
 
5208
  def __ne__(self, other):
5209
    return not (self == other)
5210
 
559 chandransh 5211
class userExists_args:
122 ashish 5212
  """
5213
  Attributes:
559 chandransh 5214
   - email
122 ashish 5215
  """
5216
 
5217
  thrift_spec = (
5218
    None, # 0
559 chandransh 5219
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5220
  )
5221
 
559 chandransh 5222
  def __init__(self, email=None,):
5223
    self.email = email
122 ashish 5224
 
5225
  def read(self, iprot):
5226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5228
      return
5229
    iprot.readStructBegin()
5230
    while True:
5231
      (fname, ftype, fid) = iprot.readFieldBegin()
5232
      if ftype == TType.STOP:
5233
        break
5234
      if fid == 1:
5235
        if ftype == TType.STRING:
559 chandransh 5236
          self.email = iprot.readString();
122 ashish 5237
        else:
5238
          iprot.skip(ftype)
559 chandransh 5239
      else:
5240
        iprot.skip(ftype)
5241
      iprot.readFieldEnd()
5242
    iprot.readStructEnd()
5243
 
5244
  def write(self, oprot):
5245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5247
      return
5248
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5249
    if self.email is not None:
559 chandransh 5250
      oprot.writeFieldBegin('email', TType.STRING, 1)
5251
      oprot.writeString(self.email)
5252
      oprot.writeFieldEnd()
5253
    oprot.writeFieldStop()
5254
    oprot.writeStructEnd()
5255
 
3431 rajveer 5256
  def validate(self):
5257
    return
5258
 
5259
 
559 chandransh 5260
  def __repr__(self):
5261
    L = ['%s=%r' % (key, value)
5262
      for key, value in self.__dict__.iteritems()]
5263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5264
 
5265
  def __eq__(self, other):
5266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5267
 
5268
  def __ne__(self, other):
5269
    return not (self == other)
5270
 
5271
class userExists_result:
5272
  """
5273
  Attributes:
5274
   - success
5275
   - ucx
5276
  """
5277
 
5278
  thrift_spec = (
5279
    (0, TType.BOOL, 'success', None, None, ), # 0
5280
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5281
  )
5282
 
5283
  def __init__(self, success=None, ucx=None,):
5284
    self.success = success
5285
    self.ucx = ucx
5286
 
5287
  def read(self, iprot):
5288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5290
      return
5291
    iprot.readStructBegin()
5292
    while True:
5293
      (fname, ftype, fid) = iprot.readFieldBegin()
5294
      if ftype == TType.STOP:
5295
        break
5296
      if fid == 0:
5297
        if ftype == TType.BOOL:
5298
          self.success = iprot.readBool();
5299
        else:
5300
          iprot.skip(ftype)
5301
      elif fid == 1:
5302
        if ftype == TType.STRUCT:
5303
          self.ucx = UserContextException()
5304
          self.ucx.read(iprot)
5305
        else:
5306
          iprot.skip(ftype)
5307
      else:
5308
        iprot.skip(ftype)
5309
      iprot.readFieldEnd()
5310
    iprot.readStructEnd()
5311
 
5312
  def write(self, oprot):
5313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5315
      return
5316
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5317
    if self.success is not None:
559 chandransh 5318
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5319
      oprot.writeBool(self.success)
5320
      oprot.writeFieldEnd()
3431 rajveer 5321
    if self.ucx is not None:
559 chandransh 5322
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5323
      self.ucx.write(oprot)
5324
      oprot.writeFieldEnd()
5325
    oprot.writeFieldStop()
5326
    oprot.writeStructEnd()
5327
 
3431 rajveer 5328
  def validate(self):
5329
    return
5330
 
5331
 
559 chandransh 5332
  def __repr__(self):
5333
    L = ['%s=%r' % (key, value)
5334
      for key, value in self.__dict__.iteritems()]
5335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5336
 
5337
  def __eq__(self, other):
5338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5339
 
5340
  def __ne__(self, other):
5341
    return not (self == other)
5342
 
5343
class addAddressForUser_args:
5344
  """
5345
  Attributes:
5346
   - userId
5347
   - address
5348
   - setDefault
5349
  """
5350
 
5351
  thrift_spec = (
5352
    None, # 0
5353
    (1, TType.I64, 'userId', None, None, ), # 1
5354
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5355
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5356
  )
5357
 
567 rajveer 5358
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5359
    self.userId = userId
5360
    self.address = address
5361
    self.setDefault = setDefault
5362
 
5363
  def read(self, iprot):
5364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5366
      return
5367
    iprot.readStructBegin()
5368
    while True:
5369
      (fname, ftype, fid) = iprot.readFieldBegin()
5370
      if ftype == TType.STOP:
5371
        break
5372
      if fid == 1:
5373
        if ftype == TType.I64:
5374
          self.userId = iprot.readI64();
5375
        else:
5376
          iprot.skip(ftype)
122 ashish 5377
      elif fid == 2:
559 chandransh 5378
        if ftype == TType.STRUCT:
5379
          self.address = Address()
5380
          self.address.read(iprot)
122 ashish 5381
        else:
5382
          iprot.skip(ftype)
5383
      elif fid == 3:
5384
        if ftype == TType.BOOL:
559 chandransh 5385
          self.setDefault = iprot.readBool();
122 ashish 5386
        else:
5387
          iprot.skip(ftype)
5388
      else:
5389
        iprot.skip(ftype)
5390
      iprot.readFieldEnd()
5391
    iprot.readStructEnd()
5392
 
5393
  def write(self, oprot):
5394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5396
      return
559 chandransh 5397
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5398
    if self.userId is not None:
559 chandransh 5399
      oprot.writeFieldBegin('userId', TType.I64, 1)
5400
      oprot.writeI64(self.userId)
122 ashish 5401
      oprot.writeFieldEnd()
3431 rajveer 5402
    if self.address is not None:
559 chandransh 5403
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5404
      self.address.write(oprot)
122 ashish 5405
      oprot.writeFieldEnd()
3431 rajveer 5406
    if self.setDefault is not None:
567 rajveer 5407
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5408
      oprot.writeBool(self.setDefault)
5409
      oprot.writeFieldEnd()
122 ashish 5410
    oprot.writeFieldStop()
5411
    oprot.writeStructEnd()
5412
 
3431 rajveer 5413
  def validate(self):
5414
    return
5415
 
5416
 
122 ashish 5417
  def __repr__(self):
5418
    L = ['%s=%r' % (key, value)
5419
      for key, value in self.__dict__.iteritems()]
5420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5421
 
5422
  def __eq__(self, other):
5423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5424
 
5425
  def __ne__(self, other):
5426
    return not (self == other)
5427
 
559 chandransh 5428
class addAddressForUser_result:
122 ashish 5429
  """
5430
  Attributes:
5431
   - success
559 chandransh 5432
   - ucx
122 ashish 5433
  """
5434
 
5435
  thrift_spec = (
567 rajveer 5436
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5437
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5438
  )
5439
 
559 chandransh 5440
  def __init__(self, success=None, ucx=None,):
122 ashish 5441
    self.success = success
559 chandransh 5442
    self.ucx = ucx
122 ashish 5443
 
5444
  def read(self, iprot):
5445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5447
      return
5448
    iprot.readStructBegin()
5449
    while True:
5450
      (fname, ftype, fid) = iprot.readFieldBegin()
5451
      if ftype == TType.STOP:
5452
        break
5453
      if fid == 0:
567 rajveer 5454
        if ftype == TType.I64:
5455
          self.success = iprot.readI64();
122 ashish 5456
        else:
5457
          iprot.skip(ftype)
5458
      elif fid == 1:
5459
        if ftype == TType.STRUCT:
559 chandransh 5460
          self.ucx = UserContextException()
5461
          self.ucx.read(iprot)
122 ashish 5462
        else:
5463
          iprot.skip(ftype)
5464
      else:
5465
        iprot.skip(ftype)
5466
      iprot.readFieldEnd()
5467
    iprot.readStructEnd()
5468
 
5469
  def write(self, oprot):
5470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5472
      return
559 chandransh 5473
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5474
    if self.success is not None:
567 rajveer 5475
      oprot.writeFieldBegin('success', TType.I64, 0)
5476
      oprot.writeI64(self.success)
122 ashish 5477
      oprot.writeFieldEnd()
3431 rajveer 5478
    if self.ucx is not None:
559 chandransh 5479
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5480
      self.ucx.write(oprot)
122 ashish 5481
      oprot.writeFieldEnd()
5482
    oprot.writeFieldStop()
5483
    oprot.writeStructEnd()
5484
 
3431 rajveer 5485
  def validate(self):
5486
    return
5487
 
5488
 
122 ashish 5489
  def __repr__(self):
5490
    L = ['%s=%r' % (key, value)
5491
      for key, value in self.__dict__.iteritems()]
5492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5493
 
5494
  def __eq__(self, other):
5495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5496
 
5497
  def __ne__(self, other):
5498
    return not (self == other)
5499
 
559 chandransh 5500
class removeAddressForUser_args:
94 ashish 5501
  """
5502
  Attributes:
559 chandransh 5503
   - userid
5504
   - addressId
94 ashish 5505
  """
5506
 
5507
  thrift_spec = (
5508
    None, # 0
559 chandransh 5509
    (1, TType.I64, 'userid', None, None, ), # 1
5510
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5511
  )
5512
 
559 chandransh 5513
  def __init__(self, userid=None, addressId=None,):
5514
    self.userid = userid
5515
    self.addressId = addressId
94 ashish 5516
 
5517
  def read(self, iprot):
5518
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5519
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5520
      return
5521
    iprot.readStructBegin()
5522
    while True:
5523
      (fname, ftype, fid) = iprot.readFieldBegin()
5524
      if ftype == TType.STOP:
5525
        break
5526
      if fid == 1:
559 chandransh 5527
        if ftype == TType.I64:
5528
          self.userid = iprot.readI64();
94 ashish 5529
        else:
5530
          iprot.skip(ftype)
559 chandransh 5531
      elif fid == 2:
5532
        if ftype == TType.I64:
5533
          self.addressId = iprot.readI64();
5534
        else:
5535
          iprot.skip(ftype)
94 ashish 5536
      else:
5537
        iprot.skip(ftype)
5538
      iprot.readFieldEnd()
5539
    iprot.readStructEnd()
5540
 
5541
  def write(self, oprot):
5542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5544
      return
559 chandransh 5545
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5546
    if self.userid is not None:
559 chandransh 5547
      oprot.writeFieldBegin('userid', TType.I64, 1)
5548
      oprot.writeI64(self.userid)
94 ashish 5549
      oprot.writeFieldEnd()
3431 rajveer 5550
    if self.addressId is not None:
559 chandransh 5551
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5552
      oprot.writeI64(self.addressId)
5553
      oprot.writeFieldEnd()
94 ashish 5554
    oprot.writeFieldStop()
5555
    oprot.writeStructEnd()
5556
 
3431 rajveer 5557
  def validate(self):
5558
    return
5559
 
5560
 
94 ashish 5561
  def __repr__(self):
5562
    L = ['%s=%r' % (key, value)
5563
      for key, value in self.__dict__.iteritems()]
5564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5565
 
5566
  def __eq__(self, other):
5567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5568
 
5569
  def __ne__(self, other):
5570
    return not (self == other)
5571
 
559 chandransh 5572
class removeAddressForUser_result:
94 ashish 5573
  """
5574
  Attributes:
5575
   - success
5576
   - ucx
5577
  """
5578
 
5579
  thrift_spec = (
5580
    (0, TType.BOOL, 'success', None, None, ), # 0
5581
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5582
  )
5583
 
5584
  def __init__(self, success=None, ucx=None,):
5585
    self.success = success
5586
    self.ucx = ucx
5587
 
5588
  def read(self, iprot):
5589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5591
      return
5592
    iprot.readStructBegin()
5593
    while True:
5594
      (fname, ftype, fid) = iprot.readFieldBegin()
5595
      if ftype == TType.STOP:
5596
        break
5597
      if fid == 0:
5598
        if ftype == TType.BOOL:
5599
          self.success = iprot.readBool();
5600
        else:
5601
          iprot.skip(ftype)
5602
      elif fid == 1:
5603
        if ftype == TType.STRUCT:
5604
          self.ucx = UserContextException()
5605
          self.ucx.read(iprot)
5606
        else:
5607
          iprot.skip(ftype)
5608
      else:
5609
        iprot.skip(ftype)
5610
      iprot.readFieldEnd()
5611
    iprot.readStructEnd()
5612
 
5613
  def write(self, oprot):
5614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5616
      return
559 chandransh 5617
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5618
    if self.success is not None:
94 ashish 5619
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5620
      oprot.writeBool(self.success)
5621
      oprot.writeFieldEnd()
3431 rajveer 5622
    if self.ucx is not None:
94 ashish 5623
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5624
      self.ucx.write(oprot)
5625
      oprot.writeFieldEnd()
5626
    oprot.writeFieldStop()
5627
    oprot.writeStructEnd()
5628
 
3431 rajveer 5629
  def validate(self):
5630
    return
5631
 
5632
 
94 ashish 5633
  def __repr__(self):
5634
    L = ['%s=%r' % (key, value)
5635
      for key, value in self.__dict__.iteritems()]
5636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5637
 
5638
  def __eq__(self, other):
5639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5640
 
5641
  def __ne__(self, other):
5642
    return not (self == other)
5643
 
559 chandransh 5644
class setUserAsLoggedIn_args:
94 ashish 5645
  """
5646
  Attributes:
559 chandransh 5647
   - userId
94 ashish 5648
   - timestamp
5649
  """
5650
 
5651
  thrift_spec = (
5652
    None, # 0
559 chandransh 5653
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5654
    (2, TType.I64, 'timestamp', None, None, ), # 2
5655
  )
5656
 
559 chandransh 5657
  def __init__(self, userId=None, timestamp=None,):
5658
    self.userId = userId
94 ashish 5659
    self.timestamp = timestamp
5660
 
5661
  def read(self, iprot):
5662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5664
      return
5665
    iprot.readStructBegin()
5666
    while True:
5667
      (fname, ftype, fid) = iprot.readFieldBegin()
5668
      if ftype == TType.STOP:
5669
        break
5670
      if fid == 1:
559 chandransh 5671
        if ftype == TType.I64:
5672
          self.userId = iprot.readI64();
94 ashish 5673
        else:
5674
          iprot.skip(ftype)
5675
      elif fid == 2:
5676
        if ftype == TType.I64:
5677
          self.timestamp = iprot.readI64();
5678
        else:
5679
          iprot.skip(ftype)
5680
      else:
5681
        iprot.skip(ftype)
5682
      iprot.readFieldEnd()
5683
    iprot.readStructEnd()
5684
 
5685
  def write(self, oprot):
5686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5688
      return
559 chandransh 5689
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5690
    if self.userId is not None:
559 chandransh 5691
      oprot.writeFieldBegin('userId', TType.I64, 1)
5692
      oprot.writeI64(self.userId)
94 ashish 5693
      oprot.writeFieldEnd()
3431 rajveer 5694
    if self.timestamp is not None:
94 ashish 5695
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5696
      oprot.writeI64(self.timestamp)
5697
      oprot.writeFieldEnd()
5698
    oprot.writeFieldStop()
5699
    oprot.writeStructEnd()
5700
 
3431 rajveer 5701
  def validate(self):
5702
    return
5703
 
5704
 
94 ashish 5705
  def __repr__(self):
5706
    L = ['%s=%r' % (key, value)
5707
      for key, value in self.__dict__.iteritems()]
5708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5709
 
5710
  def __eq__(self, other):
5711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5712
 
5713
  def __ne__(self, other):
5714
    return not (self == other)
5715
 
559 chandransh 5716
class setUserAsLoggedIn_result:
94 ashish 5717
  """
5718
  Attributes:
5719
   - success
5720
   - ucx
5721
  """
5722
 
5723
  thrift_spec = (
5724
    (0, TType.BOOL, 'success', None, None, ), # 0
5725
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5726
  )
5727
 
5728
  def __init__(self, success=None, ucx=None,):
5729
    self.success = success
5730
    self.ucx = ucx
5731
 
5732
  def read(self, iprot):
5733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5735
      return
5736
    iprot.readStructBegin()
5737
    while True:
5738
      (fname, ftype, fid) = iprot.readFieldBegin()
5739
      if ftype == TType.STOP:
5740
        break
5741
      if fid == 0:
5742
        if ftype == TType.BOOL:
5743
          self.success = iprot.readBool();
5744
        else:
5745
          iprot.skip(ftype)
5746
      elif fid == 1:
5747
        if ftype == TType.STRUCT:
5748
          self.ucx = UserContextException()
5749
          self.ucx.read(iprot)
5750
        else:
5751
          iprot.skip(ftype)
5752
      else:
5753
        iprot.skip(ftype)
5754
      iprot.readFieldEnd()
5755
    iprot.readStructEnd()
5756
 
5757
  def write(self, oprot):
5758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5760
      return
559 chandransh 5761
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5762
    if self.success is not None:
94 ashish 5763
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5764
      oprot.writeBool(self.success)
5765
      oprot.writeFieldEnd()
3431 rajveer 5766
    if self.ucx is not None:
94 ashish 5767
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5768
      self.ucx.write(oprot)
5769
      oprot.writeFieldEnd()
5770
    oprot.writeFieldStop()
5771
    oprot.writeStructEnd()
5772
 
3431 rajveer 5773
  def validate(self):
5774
    return
5775
 
5776
 
94 ashish 5777
  def __repr__(self):
5778
    L = ['%s=%r' % (key, value)
5779
      for key, value in self.__dict__.iteritems()]
5780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5781
 
5782
  def __eq__(self, other):
5783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5784
 
5785
  def __ne__(self, other):
5786
    return not (self == other)
5787
 
559 chandransh 5788
class setUserAsLoggedOut_args:
94 ashish 5789
  """
5790
  Attributes:
5791
   - userid
5792
   - timestamp
5793
  """
5794
 
5795
  thrift_spec = (
5796
    None, # 0
559 chandransh 5797
    (1, TType.I64, 'userid', None, None, ), # 1
5798
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5799
  )
5800
 
559 chandransh 5801
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5802
    self.userid = userid
5803
    self.timestamp = timestamp
5804
 
5805
  def read(self, iprot):
5806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5808
      return
5809
    iprot.readStructBegin()
5810
    while True:
5811
      (fname, ftype, fid) = iprot.readFieldBegin()
5812
      if ftype == TType.STOP:
5813
        break
5814
      if fid == 1:
5815
        if ftype == TType.I64:
5816
          self.userid = iprot.readI64();
5817
        else:
5818
          iprot.skip(ftype)
559 chandransh 5819
      elif fid == 2:
94 ashish 5820
        if ftype == TType.I64:
5821
          self.timestamp = iprot.readI64();
5822
        else:
5823
          iprot.skip(ftype)
5824
      else:
5825
        iprot.skip(ftype)
5826
      iprot.readFieldEnd()
5827
    iprot.readStructEnd()
5828
 
5829
  def write(self, oprot):
5830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5832
      return
559 chandransh 5833
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5834
    if self.userid is not None:
559 chandransh 5835
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5836
      oprot.writeI64(self.userid)
5837
      oprot.writeFieldEnd()
3431 rajveer 5838
    if self.timestamp is not None:
559 chandransh 5839
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5840
      oprot.writeI64(self.timestamp)
5841
      oprot.writeFieldEnd()
5842
    oprot.writeFieldStop()
5843
    oprot.writeStructEnd()
5844
 
3431 rajveer 5845
  def validate(self):
5846
    return
5847
 
5848
 
94 ashish 5849
  def __repr__(self):
5850
    L = ['%s=%r' % (key, value)
5851
      for key, value in self.__dict__.iteritems()]
5852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5853
 
5854
  def __eq__(self, other):
5855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5856
 
5857
  def __ne__(self, other):
5858
    return not (self == other)
5859
 
559 chandransh 5860
class setUserAsLoggedOut_result:
94 ashish 5861
  """
5862
  Attributes:
5863
   - success
5864
   - ucx
5865
  """
5866
 
5867
  thrift_spec = (
5868
    (0, TType.BOOL, 'success', None, None, ), # 0
5869
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5870
  )
5871
 
5872
  def __init__(self, success=None, ucx=None,):
5873
    self.success = success
5874
    self.ucx = ucx
5875
 
5876
  def read(self, iprot):
5877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5879
      return
5880
    iprot.readStructBegin()
5881
    while True:
5882
      (fname, ftype, fid) = iprot.readFieldBegin()
5883
      if ftype == TType.STOP:
5884
        break
5885
      if fid == 0:
5886
        if ftype == TType.BOOL:
5887
          self.success = iprot.readBool();
5888
        else:
5889
          iprot.skip(ftype)
5890
      elif fid == 1:
5891
        if ftype == TType.STRUCT:
5892
          self.ucx = UserContextException()
5893
          self.ucx.read(iprot)
5894
        else:
5895
          iprot.skip(ftype)
5896
      else:
5897
        iprot.skip(ftype)
5898
      iprot.readFieldEnd()
5899
    iprot.readStructEnd()
5900
 
5901
  def write(self, oprot):
5902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5904
      return
559 chandransh 5905
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5906
    if self.success is not None:
94 ashish 5907
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5908
      oprot.writeBool(self.success)
5909
      oprot.writeFieldEnd()
3431 rajveer 5910
    if self.ucx is not None:
94 ashish 5911
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5912
      self.ucx.write(oprot)
5913
      oprot.writeFieldEnd()
5914
    oprot.writeFieldStop()
5915
    oprot.writeStructEnd()
5916
 
3431 rajveer 5917
  def validate(self):
5918
    return
5919
 
5920
 
94 ashish 5921
  def __repr__(self):
5922
    L = ['%s=%r' % (key, value)
5923
      for key, value in self.__dict__.iteritems()]
5924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5925
 
5926
  def __eq__(self, other):
5927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5928
 
5929
  def __ne__(self, other):
5930
    return not (self == other)
5931
 
559 chandransh 5932
class setDefaultAddress_args:
94 ashish 5933
  """
5934
  Attributes:
5935
   - userid
5936
   - addressId
5937
  """
5938
 
5939
  thrift_spec = (
5940
    None, # 0
5941
    (1, TType.I64, 'userid', None, None, ), # 1
5942
    (2, TType.I64, 'addressId', None, None, ), # 2
5943
  )
5944
 
5945
  def __init__(self, userid=None, addressId=None,):
5946
    self.userid = userid
5947
    self.addressId = addressId
5948
 
5949
  def read(self, iprot):
5950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5952
      return
5953
    iprot.readStructBegin()
5954
    while True:
5955
      (fname, ftype, fid) = iprot.readFieldBegin()
5956
      if ftype == TType.STOP:
5957
        break
5958
      if fid == 1:
5959
        if ftype == TType.I64:
5960
          self.userid = iprot.readI64();
5961
        else:
5962
          iprot.skip(ftype)
5963
      elif fid == 2:
5964
        if ftype == TType.I64:
5965
          self.addressId = iprot.readI64();
5966
        else:
5967
          iprot.skip(ftype)
5968
      else:
5969
        iprot.skip(ftype)
5970
      iprot.readFieldEnd()
5971
    iprot.readStructEnd()
5972
 
5973
  def write(self, oprot):
5974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5976
      return
559 chandransh 5977
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5978
    if self.userid is not None:
94 ashish 5979
      oprot.writeFieldBegin('userid', TType.I64, 1)
5980
      oprot.writeI64(self.userid)
5981
      oprot.writeFieldEnd()
3431 rajveer 5982
    if self.addressId is not None:
94 ashish 5983
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5984
      oprot.writeI64(self.addressId)
5985
      oprot.writeFieldEnd()
5986
    oprot.writeFieldStop()
5987
    oprot.writeStructEnd()
5988
 
3431 rajveer 5989
  def validate(self):
5990
    return
5991
 
5992
 
94 ashish 5993
  def __repr__(self):
5994
    L = ['%s=%r' % (key, value)
5995
      for key, value in self.__dict__.iteritems()]
5996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5997
 
5998
  def __eq__(self, other):
5999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6000
 
6001
  def __ne__(self, other):
6002
    return not (self == other)
6003
 
559 chandransh 6004
class setDefaultAddress_result:
94 ashish 6005
  """
6006
  Attributes:
6007
   - success
6008
   - ucx
6009
  """
6010
 
6011
  thrift_spec = (
6012
    (0, TType.BOOL, 'success', None, None, ), # 0
6013
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6014
  )
6015
 
6016
  def __init__(self, success=None, ucx=None,):
6017
    self.success = success
6018
    self.ucx = ucx
6019
 
6020
  def read(self, iprot):
6021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6023
      return
6024
    iprot.readStructBegin()
6025
    while True:
6026
      (fname, ftype, fid) = iprot.readFieldBegin()
6027
      if ftype == TType.STOP:
6028
        break
6029
      if fid == 0:
6030
        if ftype == TType.BOOL:
6031
          self.success = iprot.readBool();
6032
        else:
6033
          iprot.skip(ftype)
6034
      elif fid == 1:
6035
        if ftype == TType.STRUCT:
6036
          self.ucx = UserContextException()
6037
          self.ucx.read(iprot)
6038
        else:
6039
          iprot.skip(ftype)
6040
      else:
6041
        iprot.skip(ftype)
6042
      iprot.readFieldEnd()
6043
    iprot.readStructEnd()
6044
 
6045
  def write(self, oprot):
6046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6048
      return
559 chandransh 6049
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6050
    if self.success is not None:
94 ashish 6051
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6052
      oprot.writeBool(self.success)
6053
      oprot.writeFieldEnd()
3431 rajveer 6054
    if self.ucx is not None:
94 ashish 6055
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6056
      self.ucx.write(oprot)
6057
      oprot.writeFieldEnd()
6058
    oprot.writeFieldStop()
6059
    oprot.writeStructEnd()
6060
 
3431 rajveer 6061
  def validate(self):
6062
    return
6063
 
6064
 
94 ashish 6065
  def __repr__(self):
6066
    L = ['%s=%r' % (key, value)
6067
      for key, value in self.__dict__.iteritems()]
6068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6069
 
6070
  def __eq__(self, other):
6071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6072
 
6073
  def __ne__(self, other):
6074
    return not (self == other)
6075
 
559 chandransh 6076
class updatePassword_args:
94 ashish 6077
  """
6078
  Attributes:
559 chandransh 6079
   - userid
594 rajveer 6080
   - oldPassword
6081
   - newPassword
94 ashish 6082
  """
6083
 
6084
  thrift_spec = (
6085
    None, # 0
559 chandransh 6086
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6087
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6088
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6089
  )
6090
 
594 rajveer 6091
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6092
    self.userid = userid
594 rajveer 6093
    self.oldPassword = oldPassword
6094
    self.newPassword = newPassword
94 ashish 6095
 
6096
  def read(self, iprot):
6097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6099
      return
6100
    iprot.readStructBegin()
6101
    while True:
6102
      (fname, ftype, fid) = iprot.readFieldBegin()
6103
      if ftype == TType.STOP:
6104
        break
6105
      if fid == 1:
6106
        if ftype == TType.I64:
559 chandransh 6107
          self.userid = iprot.readI64();
94 ashish 6108
        else:
6109
          iprot.skip(ftype)
6110
      elif fid == 2:
559 chandransh 6111
        if ftype == TType.STRING:
594 rajveer 6112
          self.oldPassword = iprot.readString();
94 ashish 6113
        else:
6114
          iprot.skip(ftype)
594 rajveer 6115
      elif fid == 3:
6116
        if ftype == TType.STRING:
6117
          self.newPassword = iprot.readString();
6118
        else:
6119
          iprot.skip(ftype)
94 ashish 6120
      else:
6121
        iprot.skip(ftype)
6122
      iprot.readFieldEnd()
6123
    iprot.readStructEnd()
6124
 
6125
  def write(self, oprot):
6126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6128
      return
559 chandransh 6129
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6130
    if self.userid is not None:
559 chandransh 6131
      oprot.writeFieldBegin('userid', TType.I64, 1)
6132
      oprot.writeI64(self.userid)
94 ashish 6133
      oprot.writeFieldEnd()
3431 rajveer 6134
    if self.oldPassword is not None:
594 rajveer 6135
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6136
      oprot.writeString(self.oldPassword)
94 ashish 6137
      oprot.writeFieldEnd()
3431 rajveer 6138
    if self.newPassword is not None:
594 rajveer 6139
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6140
      oprot.writeString(self.newPassword)
6141
      oprot.writeFieldEnd()
94 ashish 6142
    oprot.writeFieldStop()
6143
    oprot.writeStructEnd()
6144
 
3431 rajveer 6145
  def validate(self):
6146
    return
6147
 
6148
 
94 ashish 6149
  def __repr__(self):
6150
    L = ['%s=%r' % (key, value)
6151
      for key, value in self.__dict__.iteritems()]
6152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6153
 
6154
  def __eq__(self, other):
6155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6156
 
6157
  def __ne__(self, other):
6158
    return not (self == other)
6159
 
559 chandransh 6160
class updatePassword_result:
94 ashish 6161
  """
6162
  Attributes:
6163
   - success
6164
   - ucx
6165
  """
6166
 
6167
  thrift_spec = (
6168
    (0, TType.BOOL, 'success', None, None, ), # 0
6169
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6170
  )
6171
 
6172
  def __init__(self, success=None, ucx=None,):
6173
    self.success = success
6174
    self.ucx = ucx
6175
 
6176
  def read(self, iprot):
6177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6179
      return
6180
    iprot.readStructBegin()
6181
    while True:
6182
      (fname, ftype, fid) = iprot.readFieldBegin()
6183
      if ftype == TType.STOP:
6184
        break
6185
      if fid == 0:
6186
        if ftype == TType.BOOL:
6187
          self.success = iprot.readBool();
6188
        else:
6189
          iprot.skip(ftype)
6190
      elif fid == 1:
6191
        if ftype == TType.STRUCT:
6192
          self.ucx = UserContextException()
6193
          self.ucx.read(iprot)
6194
        else:
6195
          iprot.skip(ftype)
6196
      else:
6197
        iprot.skip(ftype)
6198
      iprot.readFieldEnd()
6199
    iprot.readStructEnd()
6200
 
6201
  def write(self, oprot):
6202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6204
      return
559 chandransh 6205
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6206
    if self.success is not None:
94 ashish 6207
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6208
      oprot.writeBool(self.success)
6209
      oprot.writeFieldEnd()
3431 rajveer 6210
    if self.ucx is not None:
94 ashish 6211
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6212
      self.ucx.write(oprot)
6213
      oprot.writeFieldEnd()
6214
    oprot.writeFieldStop()
6215
    oprot.writeStructEnd()
6216
 
3431 rajveer 6217
  def validate(self):
6218
    return
6219
 
6220
 
94 ashish 6221
  def __repr__(self):
6222
    L = ['%s=%r' % (key, value)
6223
      for key, value in self.__dict__.iteritems()]
6224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6225
 
6226
  def __eq__(self, other):
6227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6228
 
6229
  def __ne__(self, other):
6230
    return not (self == other)
6231
 
581 rajveer 6232
class forgotPassword_args:
6233
  """
6234
  Attributes:
6235
   - email
884 rajveer 6236
   - newPassword
581 rajveer 6237
  """
6238
 
6239
  thrift_spec = (
6240
    None, # 0
6241
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6242
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6243
  )
6244
 
884 rajveer 6245
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6246
    self.email = email
884 rajveer 6247
    self.newPassword = newPassword
581 rajveer 6248
 
6249
  def read(self, iprot):
6250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6252
      return
6253
    iprot.readStructBegin()
6254
    while True:
6255
      (fname, ftype, fid) = iprot.readFieldBegin()
6256
      if ftype == TType.STOP:
6257
        break
6258
      if fid == 1:
6259
        if ftype == TType.STRING:
6260
          self.email = iprot.readString();
6261
        else:
6262
          iprot.skip(ftype)
884 rajveer 6263
      elif fid == 2:
6264
        if ftype == TType.STRING:
6265
          self.newPassword = iprot.readString();
6266
        else:
6267
          iprot.skip(ftype)
581 rajveer 6268
      else:
6269
        iprot.skip(ftype)
6270
      iprot.readFieldEnd()
6271
    iprot.readStructEnd()
6272
 
6273
  def write(self, oprot):
6274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6276
      return
6277
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6278
    if self.email is not None:
581 rajveer 6279
      oprot.writeFieldBegin('email', TType.STRING, 1)
6280
      oprot.writeString(self.email)
6281
      oprot.writeFieldEnd()
3431 rajveer 6282
    if self.newPassword is not None:
884 rajveer 6283
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6284
      oprot.writeString(self.newPassword)
6285
      oprot.writeFieldEnd()
581 rajveer 6286
    oprot.writeFieldStop()
6287
    oprot.writeStructEnd()
6288
 
3431 rajveer 6289
  def validate(self):
6290
    return
6291
 
6292
 
581 rajveer 6293
  def __repr__(self):
6294
    L = ['%s=%r' % (key, value)
6295
      for key, value in self.__dict__.iteritems()]
6296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6297
 
6298
  def __eq__(self, other):
6299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6300
 
6301
  def __ne__(self, other):
6302
    return not (self == other)
6303
 
6304
class forgotPassword_result:
6305
  """
6306
  Attributes:
6307
   - success
6308
   - ucx
6309
  """
6310
 
6311
  thrift_spec = (
6312
    (0, TType.BOOL, 'success', None, None, ), # 0
6313
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6314
  )
6315
 
6316
  def __init__(self, success=None, ucx=None,):
6317
    self.success = success
6318
    self.ucx = ucx
6319
 
6320
  def read(self, iprot):
6321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6323
      return
6324
    iprot.readStructBegin()
6325
    while True:
6326
      (fname, ftype, fid) = iprot.readFieldBegin()
6327
      if ftype == TType.STOP:
6328
        break
6329
      if fid == 0:
6330
        if ftype == TType.BOOL:
6331
          self.success = iprot.readBool();
6332
        else:
6333
          iprot.skip(ftype)
6334
      elif fid == 1:
6335
        if ftype == TType.STRUCT:
6336
          self.ucx = UserContextException()
6337
          self.ucx.read(iprot)
6338
        else:
6339
          iprot.skip(ftype)
6340
      else:
6341
        iprot.skip(ftype)
6342
      iprot.readFieldEnd()
6343
    iprot.readStructEnd()
6344
 
6345
  def write(self, oprot):
6346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6348
      return
6349
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6350
    if self.success is not None:
581 rajveer 6351
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6352
      oprot.writeBool(self.success)
6353
      oprot.writeFieldEnd()
3431 rajveer 6354
    if self.ucx is not None:
581 rajveer 6355
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6356
      self.ucx.write(oprot)
6357
      oprot.writeFieldEnd()
6358
    oprot.writeFieldStop()
6359
    oprot.writeStructEnd()
6360
 
3431 rajveer 6361
  def validate(self):
6362
    return
6363
 
6364
 
581 rajveer 6365
  def __repr__(self):
6366
    L = ['%s=%r' % (key, value)
6367
      for key, value in self.__dict__.iteritems()]
6368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6369
 
6370
  def __eq__(self, other):
6371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6372
 
6373
  def __ne__(self, other):
6374
    return not (self == other)
6375
 
594 rajveer 6376
class getAllAddressesForUser_args:
6377
  """
6378
  Attributes:
6379
   - userId
6380
  """
6381
 
6382
  thrift_spec = (
6383
    None, # 0
6384
    (1, TType.I64, 'userId', None, None, ), # 1
6385
  )
6386
 
6387
  def __init__(self, userId=None,):
6388
    self.userId = userId
6389
 
6390
  def read(self, iprot):
6391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6393
      return
6394
    iprot.readStructBegin()
6395
    while True:
6396
      (fname, ftype, fid) = iprot.readFieldBegin()
6397
      if ftype == TType.STOP:
6398
        break
6399
      if fid == 1:
6400
        if ftype == TType.I64:
6401
          self.userId = iprot.readI64();
6402
        else:
6403
          iprot.skip(ftype)
6404
      else:
6405
        iprot.skip(ftype)
6406
      iprot.readFieldEnd()
6407
    iprot.readStructEnd()
6408
 
6409
  def write(self, oprot):
6410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6412
      return
6413
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6414
    if self.userId is not None:
594 rajveer 6415
      oprot.writeFieldBegin('userId', TType.I64, 1)
6416
      oprot.writeI64(self.userId)
6417
      oprot.writeFieldEnd()
6418
    oprot.writeFieldStop()
6419
    oprot.writeStructEnd()
6420
 
3431 rajveer 6421
  def validate(self):
6422
    return
6423
 
6424
 
594 rajveer 6425
  def __repr__(self):
6426
    L = ['%s=%r' % (key, value)
6427
      for key, value in self.__dict__.iteritems()]
6428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6429
 
6430
  def __eq__(self, other):
6431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6432
 
6433
  def __ne__(self, other):
6434
    return not (self == other)
6435
 
6436
class getAllAddressesForUser_result:
6437
  """
6438
  Attributes:
6439
   - success
6440
   - ucx
6441
  """
6442
 
6443
  thrift_spec = (
6444
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6445
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6446
  )
6447
 
6448
  def __init__(self, success=None, ucx=None,):
6449
    self.success = success
6450
    self.ucx = ucx
6451
 
6452
  def read(self, iprot):
6453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6455
      return
6456
    iprot.readStructBegin()
6457
    while True:
6458
      (fname, ftype, fid) = iprot.readFieldBegin()
6459
      if ftype == TType.STOP:
6460
        break
6461
      if fid == 0:
6462
        if ftype == TType.LIST:
6463
          self.success = []
3554 varun.gupt 6464
          (_etype45, _size42) = iprot.readListBegin()
6465
          for _i46 in xrange(_size42):
6466
            _elem47 = Address()
6467
            _elem47.read(iprot)
6468
            self.success.append(_elem47)
594 rajveer 6469
          iprot.readListEnd()
6470
        else:
6471
          iprot.skip(ftype)
6472
      elif fid == 1:
6473
        if ftype == TType.STRUCT:
6474
          self.ucx = UserContextException()
6475
          self.ucx.read(iprot)
6476
        else:
6477
          iprot.skip(ftype)
6478
      else:
6479
        iprot.skip(ftype)
6480
      iprot.readFieldEnd()
6481
    iprot.readStructEnd()
6482
 
6483
  def write(self, oprot):
6484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6486
      return
6487
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6488
    if self.success is not None:
594 rajveer 6489
      oprot.writeFieldBegin('success', TType.LIST, 0)
6490
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 6491
      for iter48 in self.success:
6492
        iter48.write(oprot)
594 rajveer 6493
      oprot.writeListEnd()
6494
      oprot.writeFieldEnd()
3431 rajveer 6495
    if self.ucx is not None:
594 rajveer 6496
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6497
      self.ucx.write(oprot)
6498
      oprot.writeFieldEnd()
6499
    oprot.writeFieldStop()
6500
    oprot.writeStructEnd()
6501
 
3431 rajveer 6502
  def validate(self):
6503
    return
6504
 
6505
 
594 rajveer 6506
  def __repr__(self):
6507
    L = ['%s=%r' % (key, value)
6508
      for key, value in self.__dict__.iteritems()]
6509
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6510
 
6511
  def __eq__(self, other):
6512
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6513
 
6514
  def __ne__(self, other):
6515
    return not (self == other)
6516
 
1894 vikas 6517
class getAddressById_args:
6518
  """
6519
  Attributes:
6520
   - addressId
6521
  """
6522
 
6523
  thrift_spec = (
6524
    None, # 0
6525
    (1, TType.I64, 'addressId', None, None, ), # 1
6526
  )
6527
 
6528
  def __init__(self, addressId=None,):
6529
    self.addressId = addressId
6530
 
6531
  def read(self, iprot):
6532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6534
      return
6535
    iprot.readStructBegin()
6536
    while True:
6537
      (fname, ftype, fid) = iprot.readFieldBegin()
6538
      if ftype == TType.STOP:
6539
        break
6540
      if fid == 1:
6541
        if ftype == TType.I64:
6542
          self.addressId = iprot.readI64();
6543
        else:
6544
          iprot.skip(ftype)
6545
      else:
6546
        iprot.skip(ftype)
6547
      iprot.readFieldEnd()
6548
    iprot.readStructEnd()
6549
 
6550
  def write(self, oprot):
6551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6553
      return
6554
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6555
    if self.addressId is not None:
1894 vikas 6556
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6557
      oprot.writeI64(self.addressId)
6558
      oprot.writeFieldEnd()
6559
    oprot.writeFieldStop()
6560
    oprot.writeStructEnd()
6561
 
3431 rajveer 6562
  def validate(self):
6563
    return
6564
 
6565
 
1894 vikas 6566
  def __repr__(self):
6567
    L = ['%s=%r' % (key, value)
6568
      for key, value in self.__dict__.iteritems()]
6569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6570
 
6571
  def __eq__(self, other):
6572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6573
 
6574
  def __ne__(self, other):
6575
    return not (self == other)
6576
 
6577
class getAddressById_result:
6578
  """
6579
  Attributes:
6580
   - success
6581
   - ucx
6582
  """
6583
 
6584
  thrift_spec = (
6585
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6586
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6587
  )
6588
 
6589
  def __init__(self, success=None, ucx=None,):
6590
    self.success = success
6591
    self.ucx = ucx
6592
 
6593
  def read(self, iprot):
6594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6596
      return
6597
    iprot.readStructBegin()
6598
    while True:
6599
      (fname, ftype, fid) = iprot.readFieldBegin()
6600
      if ftype == TType.STOP:
6601
        break
6602
      if fid == 0:
6603
        if ftype == TType.STRUCT:
6604
          self.success = Address()
6605
          self.success.read(iprot)
6606
        else:
6607
          iprot.skip(ftype)
6608
      elif fid == 1:
6609
        if ftype == TType.STRUCT:
6610
          self.ucx = UserContextException()
6611
          self.ucx.read(iprot)
6612
        else:
6613
          iprot.skip(ftype)
6614
      else:
6615
        iprot.skip(ftype)
6616
      iprot.readFieldEnd()
6617
    iprot.readStructEnd()
6618
 
6619
  def write(self, oprot):
6620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6622
      return
6623
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6624
    if self.success is not None:
1894 vikas 6625
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6626
      self.success.write(oprot)
6627
      oprot.writeFieldEnd()
3431 rajveer 6628
    if self.ucx is not None:
1894 vikas 6629
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6630
      self.ucx.write(oprot)
6631
      oprot.writeFieldEnd()
6632
    oprot.writeFieldStop()
6633
    oprot.writeStructEnd()
6634
 
3431 rajveer 6635
  def validate(self):
6636
    return
6637
 
6638
 
1894 vikas 6639
  def __repr__(self):
6640
    L = ['%s=%r' % (key, value)
6641
      for key, value in self.__dict__.iteritems()]
6642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6643
 
6644
  def __eq__(self, other):
6645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6646
 
6647
  def __ne__(self, other):
6648
    return not (self == other)
6649
 
594 rajveer 6650
class getDefaultAddressId_args:
6651
  """
6652
  Attributes:
6653
   - userId
6654
  """
6655
 
6656
  thrift_spec = (
6657
    None, # 0
6658
    (1, TType.I64, 'userId', None, None, ), # 1
6659
  )
6660
 
6661
  def __init__(self, userId=None,):
6662
    self.userId = userId
6663
 
6664
  def read(self, iprot):
6665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6667
      return
6668
    iprot.readStructBegin()
6669
    while True:
6670
      (fname, ftype, fid) = iprot.readFieldBegin()
6671
      if ftype == TType.STOP:
6672
        break
6673
      if fid == 1:
6674
        if ftype == TType.I64:
6675
          self.userId = iprot.readI64();
6676
        else:
6677
          iprot.skip(ftype)
6678
      else:
6679
        iprot.skip(ftype)
6680
      iprot.readFieldEnd()
6681
    iprot.readStructEnd()
6682
 
6683
  def write(self, oprot):
6684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6686
      return
6687
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6688
    if self.userId is not None:
594 rajveer 6689
      oprot.writeFieldBegin('userId', TType.I64, 1)
6690
      oprot.writeI64(self.userId)
6691
      oprot.writeFieldEnd()
6692
    oprot.writeFieldStop()
6693
    oprot.writeStructEnd()
6694
 
3431 rajveer 6695
  def validate(self):
6696
    return
6697
 
6698
 
594 rajveer 6699
  def __repr__(self):
6700
    L = ['%s=%r' % (key, value)
6701
      for key, value in self.__dict__.iteritems()]
6702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6703
 
6704
  def __eq__(self, other):
6705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6706
 
6707
  def __ne__(self, other):
6708
    return not (self == other)
6709
 
6710
class getDefaultAddressId_result:
6711
  """
6712
  Attributes:
6713
   - success
6714
   - ucx
6715
  """
6716
 
6717
  thrift_spec = (
6718
    (0, TType.I64, 'success', None, None, ), # 0
6719
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6720
  )
6721
 
6722
  def __init__(self, success=None, ucx=None,):
6723
    self.success = success
6724
    self.ucx = ucx
6725
 
6726
  def read(self, iprot):
6727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6729
      return
6730
    iprot.readStructBegin()
6731
    while True:
6732
      (fname, ftype, fid) = iprot.readFieldBegin()
6733
      if ftype == TType.STOP:
6734
        break
6735
      if fid == 0:
6736
        if ftype == TType.I64:
6737
          self.success = iprot.readI64();
6738
        else:
6739
          iprot.skip(ftype)
6740
      elif fid == 1:
6741
        if ftype == TType.STRUCT:
6742
          self.ucx = UserContextException()
6743
          self.ucx.read(iprot)
6744
        else:
6745
          iprot.skip(ftype)
6746
      else:
6747
        iprot.skip(ftype)
6748
      iprot.readFieldEnd()
6749
    iprot.readStructEnd()
6750
 
6751
  def write(self, oprot):
6752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6754
      return
6755
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6756
    if self.success is not None:
594 rajveer 6757
      oprot.writeFieldBegin('success', TType.I64, 0)
6758
      oprot.writeI64(self.success)
6759
      oprot.writeFieldEnd()
3431 rajveer 6760
    if self.ucx is not None:
594 rajveer 6761
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6762
      self.ucx.write(oprot)
6763
      oprot.writeFieldEnd()
6764
    oprot.writeFieldStop()
6765
    oprot.writeStructEnd()
6766
 
3431 rajveer 6767
  def validate(self):
6768
    return
6769
 
6770
 
594 rajveer 6771
  def __repr__(self):
6772
    L = ['%s=%r' % (key, value)
6773
      for key, value in self.__dict__.iteritems()]
6774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6775
 
6776
  def __eq__(self, other):
6777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6778
 
6779
  def __ne__(self, other):
6780
    return not (self == other)
6781
 
785 rajveer 6782
class getDefaultPincode_args:
6783
  """
6784
  Attributes:
6785
   - userId
6786
  """
6787
 
6788
  thrift_spec = (
6789
    None, # 0
6790
    (1, TType.I64, 'userId', None, None, ), # 1
6791
  )
6792
 
6793
  def __init__(self, userId=None,):
6794
    self.userId = userId
6795
 
6796
  def read(self, iprot):
6797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6799
      return
6800
    iprot.readStructBegin()
6801
    while True:
6802
      (fname, ftype, fid) = iprot.readFieldBegin()
6803
      if ftype == TType.STOP:
6804
        break
6805
      if fid == 1:
6806
        if ftype == TType.I64:
6807
          self.userId = iprot.readI64();
6808
        else:
6809
          iprot.skip(ftype)
6810
      else:
6811
        iprot.skip(ftype)
6812
      iprot.readFieldEnd()
6813
    iprot.readStructEnd()
6814
 
6815
  def write(self, oprot):
6816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6818
      return
6819
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6820
    if self.userId is not None:
785 rajveer 6821
      oprot.writeFieldBegin('userId', TType.I64, 1)
6822
      oprot.writeI64(self.userId)
6823
      oprot.writeFieldEnd()
6824
    oprot.writeFieldStop()
6825
    oprot.writeStructEnd()
6826
 
3431 rajveer 6827
  def validate(self):
6828
    return
6829
 
6830
 
785 rajveer 6831
  def __repr__(self):
6832
    L = ['%s=%r' % (key, value)
6833
      for key, value in self.__dict__.iteritems()]
6834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6835
 
6836
  def __eq__(self, other):
6837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6838
 
6839
  def __ne__(self, other):
6840
    return not (self == other)
6841
 
6842
class getDefaultPincode_result:
6843
  """
6844
  Attributes:
6845
   - success
6846
   - ucx
6847
  """
6848
 
6849
  thrift_spec = (
6850
    (0, TType.STRING, 'success', None, None, ), # 0
6851
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6852
  )
6853
 
6854
  def __init__(self, success=None, ucx=None,):
6855
    self.success = success
6856
    self.ucx = ucx
6857
 
6858
  def read(self, iprot):
6859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6861
      return
6862
    iprot.readStructBegin()
6863
    while True:
6864
      (fname, ftype, fid) = iprot.readFieldBegin()
6865
      if ftype == TType.STOP:
6866
        break
6867
      if fid == 0:
6868
        if ftype == TType.STRING:
6869
          self.success = iprot.readString();
6870
        else:
6871
          iprot.skip(ftype)
6872
      elif fid == 1:
6873
        if ftype == TType.STRUCT:
6874
          self.ucx = UserContextException()
6875
          self.ucx.read(iprot)
6876
        else:
6877
          iprot.skip(ftype)
6878
      else:
6879
        iprot.skip(ftype)
6880
      iprot.readFieldEnd()
6881
    iprot.readStructEnd()
6882
 
6883
  def write(self, oprot):
6884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6886
      return
6887
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6888
    if self.success is not None:
785 rajveer 6889
      oprot.writeFieldBegin('success', TType.STRING, 0)
6890
      oprot.writeString(self.success)
6891
      oprot.writeFieldEnd()
3431 rajveer 6892
    if self.ucx is not None:
785 rajveer 6893
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6894
      self.ucx.write(oprot)
6895
      oprot.writeFieldEnd()
6896
    oprot.writeFieldStop()
6897
    oprot.writeStructEnd()
6898
 
3431 rajveer 6899
  def validate(self):
6900
    return
6901
 
6902
 
785 rajveer 6903
  def __repr__(self):
6904
    L = ['%s=%r' % (key, value)
6905
      for key, value in self.__dict__.iteritems()]
6906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6907
 
6908
  def __eq__(self, other):
6909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6910
 
6911
  def __ne__(self, other):
6912
    return not (self == other)
6913
 
1274 varun.gupt 6914
class saveUserCommunication_args:
6915
  """
6916
  Attributes:
6917
   - userId
6918
   - replyTo
6919
   - communicationType
6920
   - orderId
6921
   - airwaybillNo
6922
   - productName
6923
   - subject
6924
   - message
6925
  """
6926
 
6927
  thrift_spec = (
6928
    None, # 0
6929
    (1, TType.I64, 'userId', None, None, ), # 1
6930
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6931
    (3, TType.I64, 'communicationType', None, None, ), # 3
6932
    (4, TType.I64, 'orderId', None, None, ), # 4
6933
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6934
    (6, TType.STRING, 'productName', None, None, ), # 6
6935
    (7, TType.STRING, 'subject', None, None, ), # 7
6936
    (8, TType.STRING, 'message', None, None, ), # 8
6937
  )
6938
 
6939
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6940
    self.userId = userId
6941
    self.replyTo = replyTo
6942
    self.communicationType = communicationType
6943
    self.orderId = orderId
6944
    self.airwaybillNo = airwaybillNo
6945
    self.productName = productName
6946
    self.subject = subject
6947
    self.message = message
6948
 
6949
  def read(self, iprot):
6950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6952
      return
6953
    iprot.readStructBegin()
6954
    while True:
6955
      (fname, ftype, fid) = iprot.readFieldBegin()
6956
      if ftype == TType.STOP:
6957
        break
6958
      if fid == 1:
6959
        if ftype == TType.I64:
6960
          self.userId = iprot.readI64();
6961
        else:
6962
          iprot.skip(ftype)
6963
      elif fid == 2:
6964
        if ftype == TType.STRING:
6965
          self.replyTo = iprot.readString();
6966
        else:
6967
          iprot.skip(ftype)
6968
      elif fid == 3:
6969
        if ftype == TType.I64:
6970
          self.communicationType = iprot.readI64();
6971
        else:
6972
          iprot.skip(ftype)
6973
      elif fid == 4:
6974
        if ftype == TType.I64:
6975
          self.orderId = iprot.readI64();
6976
        else:
6977
          iprot.skip(ftype)
6978
      elif fid == 5:
6979
        if ftype == TType.STRING:
6980
          self.airwaybillNo = iprot.readString();
6981
        else:
6982
          iprot.skip(ftype)
6983
      elif fid == 6:
6984
        if ftype == TType.STRING:
6985
          self.productName = iprot.readString();
6986
        else:
6987
          iprot.skip(ftype)
6988
      elif fid == 7:
6989
        if ftype == TType.STRING:
6990
          self.subject = iprot.readString();
6991
        else:
6992
          iprot.skip(ftype)
6993
      elif fid == 8:
6994
        if ftype == TType.STRING:
6995
          self.message = iprot.readString();
6996
        else:
6997
          iprot.skip(ftype)
6998
      else:
6999
        iprot.skip(ftype)
7000
      iprot.readFieldEnd()
7001
    iprot.readStructEnd()
7002
 
7003
  def write(self, oprot):
7004
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7005
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7006
      return
7007
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7008
    if self.userId is not None:
1274 varun.gupt 7009
      oprot.writeFieldBegin('userId', TType.I64, 1)
7010
      oprot.writeI64(self.userId)
7011
      oprot.writeFieldEnd()
3431 rajveer 7012
    if self.replyTo is not None:
1274 varun.gupt 7013
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7014
      oprot.writeString(self.replyTo)
7015
      oprot.writeFieldEnd()
3431 rajveer 7016
    if self.communicationType is not None:
1274 varun.gupt 7017
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7018
      oprot.writeI64(self.communicationType)
7019
      oprot.writeFieldEnd()
3431 rajveer 7020
    if self.orderId is not None:
1274 varun.gupt 7021
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7022
      oprot.writeI64(self.orderId)
7023
      oprot.writeFieldEnd()
3431 rajveer 7024
    if self.airwaybillNo is not None:
1274 varun.gupt 7025
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7026
      oprot.writeString(self.airwaybillNo)
7027
      oprot.writeFieldEnd()
3431 rajveer 7028
    if self.productName is not None:
1274 varun.gupt 7029
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7030
      oprot.writeString(self.productName)
7031
      oprot.writeFieldEnd()
3431 rajveer 7032
    if self.subject is not None:
1274 varun.gupt 7033
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7034
      oprot.writeString(self.subject)
7035
      oprot.writeFieldEnd()
3431 rajveer 7036
    if self.message is not None:
1274 varun.gupt 7037
      oprot.writeFieldBegin('message', TType.STRING, 8)
7038
      oprot.writeString(self.message)
7039
      oprot.writeFieldEnd()
7040
    oprot.writeFieldStop()
7041
    oprot.writeStructEnd()
7042
 
3431 rajveer 7043
  def validate(self):
7044
    return
7045
 
7046
 
1274 varun.gupt 7047
  def __repr__(self):
7048
    L = ['%s=%r' % (key, value)
7049
      for key, value in self.__dict__.iteritems()]
7050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7051
 
7052
  def __eq__(self, other):
7053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7054
 
7055
  def __ne__(self, other):
7056
    return not (self == other)
7057
 
7058
class saveUserCommunication_result:
7059
  """
7060
  Attributes:
7061
   - success
7062
   - ucx
7063
  """
7064
 
7065
  thrift_spec = (
7066
    (0, TType.BOOL, 'success', None, None, ), # 0
7067
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7068
  )
7069
 
7070
  def __init__(self, success=None, ucx=None,):
7071
    self.success = success
7072
    self.ucx = ucx
7073
 
7074
  def read(self, iprot):
7075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7077
      return
7078
    iprot.readStructBegin()
7079
    while True:
7080
      (fname, ftype, fid) = iprot.readFieldBegin()
7081
      if ftype == TType.STOP:
7082
        break
7083
      if fid == 0:
7084
        if ftype == TType.BOOL:
7085
          self.success = iprot.readBool();
7086
        else:
7087
          iprot.skip(ftype)
7088
      elif fid == 1:
7089
        if ftype == TType.STRUCT:
7090
          self.ucx = UserCommunicationException()
7091
          self.ucx.read(iprot)
7092
        else:
7093
          iprot.skip(ftype)
7094
      else:
7095
        iprot.skip(ftype)
7096
      iprot.readFieldEnd()
7097
    iprot.readStructEnd()
7098
 
7099
  def write(self, oprot):
7100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7102
      return
7103
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7104
    if self.success is not None:
1274 varun.gupt 7105
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7106
      oprot.writeBool(self.success)
7107
      oprot.writeFieldEnd()
3431 rajveer 7108
    if self.ucx is not None:
1274 varun.gupt 7109
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7110
      self.ucx.write(oprot)
7111
      oprot.writeFieldEnd()
7112
    oprot.writeFieldStop()
7113
    oprot.writeStructEnd()
7114
 
3431 rajveer 7115
  def validate(self):
7116
    return
7117
 
7118
 
1274 varun.gupt 7119
  def __repr__(self):
7120
    L = ['%s=%r' % (key, value)
7121
      for key, value in self.__dict__.iteritems()]
7122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7123
 
7124
  def __eq__(self, other):
7125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7126
 
7127
  def __ne__(self, other):
7128
    return not (self == other)
7129
 
1590 varun.gupt 7130
class getUserCommunicationById_args:
7131
  """
7132
  Attributes:
7133
   - id
7134
  """
7135
 
7136
  thrift_spec = (
7137
    None, # 0
7138
    (1, TType.I64, 'id', None, None, ), # 1
7139
  )
7140
 
7141
  def __init__(self, id=None,):
7142
    self.id = id
7143
 
7144
  def read(self, iprot):
7145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7147
      return
7148
    iprot.readStructBegin()
7149
    while True:
7150
      (fname, ftype, fid) = iprot.readFieldBegin()
7151
      if ftype == TType.STOP:
7152
        break
7153
      if fid == 1:
7154
        if ftype == TType.I64:
7155
          self.id = iprot.readI64();
7156
        else:
7157
          iprot.skip(ftype)
7158
      else:
7159
        iprot.skip(ftype)
7160
      iprot.readFieldEnd()
7161
    iprot.readStructEnd()
7162
 
7163
  def write(self, oprot):
7164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7166
      return
7167
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7168
    if self.id is not None:
1590 varun.gupt 7169
      oprot.writeFieldBegin('id', TType.I64, 1)
7170
      oprot.writeI64(self.id)
7171
      oprot.writeFieldEnd()
7172
    oprot.writeFieldStop()
7173
    oprot.writeStructEnd()
7174
 
3431 rajveer 7175
  def validate(self):
7176
    return
7177
 
7178
 
1590 varun.gupt 7179
  def __repr__(self):
7180
    L = ['%s=%r' % (key, value)
7181
      for key, value in self.__dict__.iteritems()]
7182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7183
 
7184
  def __eq__(self, other):
7185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7186
 
7187
  def __ne__(self, other):
7188
    return not (self == other)
7189
 
7190
class getUserCommunicationById_result:
7191
  """
7192
  Attributes:
7193
   - success
7194
   - ucx
7195
  """
7196
 
7197
  thrift_spec = (
7198
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7199
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7200
  )
7201
 
7202
  def __init__(self, success=None, ucx=None,):
7203
    self.success = success
7204
    self.ucx = ucx
7205
 
7206
  def read(self, iprot):
7207
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7208
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7209
      return
7210
    iprot.readStructBegin()
7211
    while True:
7212
      (fname, ftype, fid) = iprot.readFieldBegin()
7213
      if ftype == TType.STOP:
7214
        break
7215
      if fid == 0:
7216
        if ftype == TType.STRUCT:
7217
          self.success = UserCommunication()
7218
          self.success.read(iprot)
7219
        else:
7220
          iprot.skip(ftype)
7221
      elif fid == 1:
7222
        if ftype == TType.STRUCT:
7223
          self.ucx = UserCommunicationException()
7224
          self.ucx.read(iprot)
7225
        else:
7226
          iprot.skip(ftype)
7227
      else:
7228
        iprot.skip(ftype)
7229
      iprot.readFieldEnd()
7230
    iprot.readStructEnd()
7231
 
7232
  def write(self, oprot):
7233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7235
      return
7236
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7237
    if self.success is not None:
1590 varun.gupt 7238
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7239
      self.success.write(oprot)
7240
      oprot.writeFieldEnd()
3431 rajveer 7241
    if self.ucx is not None:
1590 varun.gupt 7242
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7243
      self.ucx.write(oprot)
7244
      oprot.writeFieldEnd()
7245
    oprot.writeFieldStop()
7246
    oprot.writeStructEnd()
7247
 
3431 rajveer 7248
  def validate(self):
7249
    return
7250
 
7251
 
1590 varun.gupt 7252
  def __repr__(self):
7253
    L = ['%s=%r' % (key, value)
7254
      for key, value in self.__dict__.iteritems()]
7255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7256
 
7257
  def __eq__(self, other):
7258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7259
 
7260
  def __ne__(self, other):
7261
    return not (self == other)
7262
 
7263
class getUserCommunicationByUser_args:
7264
  """
7265
  Attributes:
7266
   - userId
7267
  """
7268
 
7269
  thrift_spec = (
7270
    None, # 0
7271
    (1, TType.I64, 'userId', None, None, ), # 1
7272
  )
7273
 
7274
  def __init__(self, userId=None,):
7275
    self.userId = userId
7276
 
7277
  def read(self, iprot):
7278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7280
      return
7281
    iprot.readStructBegin()
7282
    while True:
7283
      (fname, ftype, fid) = iprot.readFieldBegin()
7284
      if ftype == TType.STOP:
7285
        break
7286
      if fid == 1:
7287
        if ftype == TType.I64:
7288
          self.userId = iprot.readI64();
7289
        else:
7290
          iprot.skip(ftype)
7291
      else:
7292
        iprot.skip(ftype)
7293
      iprot.readFieldEnd()
7294
    iprot.readStructEnd()
7295
 
7296
  def write(self, oprot):
7297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7299
      return
7300
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7301
    if self.userId is not None:
1590 varun.gupt 7302
      oprot.writeFieldBegin('userId', TType.I64, 1)
7303
      oprot.writeI64(self.userId)
7304
      oprot.writeFieldEnd()
7305
    oprot.writeFieldStop()
7306
    oprot.writeStructEnd()
7307
 
3431 rajveer 7308
  def validate(self):
7309
    return
7310
 
7311
 
1590 varun.gupt 7312
  def __repr__(self):
7313
    L = ['%s=%r' % (key, value)
7314
      for key, value in self.__dict__.iteritems()]
7315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7316
 
7317
  def __eq__(self, other):
7318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7319
 
7320
  def __ne__(self, other):
7321
    return not (self == other)
7322
 
7323
class getUserCommunicationByUser_result:
7324
  """
7325
  Attributes:
7326
   - success
7327
   - ucx
7328
  """
7329
 
7330
  thrift_spec = (
7331
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7332
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7333
  )
7334
 
7335
  def __init__(self, success=None, ucx=None,):
7336
    self.success = success
7337
    self.ucx = ucx
7338
 
7339
  def read(self, iprot):
7340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7342
      return
7343
    iprot.readStructBegin()
7344
    while True:
7345
      (fname, ftype, fid) = iprot.readFieldBegin()
7346
      if ftype == TType.STOP:
7347
        break
7348
      if fid == 0:
7349
        if ftype == TType.LIST:
7350
          self.success = []
3554 varun.gupt 7351
          (_etype52, _size49) = iprot.readListBegin()
7352
          for _i53 in xrange(_size49):
7353
            _elem54 = UserCommunication()
7354
            _elem54.read(iprot)
7355
            self.success.append(_elem54)
1590 varun.gupt 7356
          iprot.readListEnd()
7357
        else:
7358
          iprot.skip(ftype)
7359
      elif fid == 1:
7360
        if ftype == TType.STRUCT:
7361
          self.ucx = UserCommunicationException()
7362
          self.ucx.read(iprot)
7363
        else:
7364
          iprot.skip(ftype)
7365
      else:
7366
        iprot.skip(ftype)
7367
      iprot.readFieldEnd()
7368
    iprot.readStructEnd()
7369
 
7370
  def write(self, oprot):
7371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7373
      return
7374
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7375
    if self.success is not None:
1590 varun.gupt 7376
      oprot.writeFieldBegin('success', TType.LIST, 0)
7377
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7378
      for iter55 in self.success:
7379
        iter55.write(oprot)
1590 varun.gupt 7380
      oprot.writeListEnd()
7381
      oprot.writeFieldEnd()
3431 rajveer 7382
    if self.ucx is not None:
1590 varun.gupt 7383
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7384
      self.ucx.write(oprot)
7385
      oprot.writeFieldEnd()
7386
    oprot.writeFieldStop()
7387
    oprot.writeStructEnd()
7388
 
3431 rajveer 7389
  def validate(self):
7390
    return
7391
 
7392
 
1590 varun.gupt 7393
  def __repr__(self):
7394
    L = ['%s=%r' % (key, value)
7395
      for key, value in self.__dict__.iteritems()]
7396
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7397
 
7398
  def __eq__(self, other):
7399
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7400
 
7401
  def __ne__(self, other):
7402
    return not (self == other)
7403
 
7404
class getAllUserCommunications_args:
7405
 
7406
  thrift_spec = (
7407
  )
7408
 
7409
  def read(self, iprot):
7410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7412
      return
7413
    iprot.readStructBegin()
7414
    while True:
7415
      (fname, ftype, fid) = iprot.readFieldBegin()
7416
      if ftype == TType.STOP:
7417
        break
7418
      else:
7419
        iprot.skip(ftype)
7420
      iprot.readFieldEnd()
7421
    iprot.readStructEnd()
7422
 
7423
  def write(self, oprot):
7424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7426
      return
7427
    oprot.writeStructBegin('getAllUserCommunications_args')
7428
    oprot.writeFieldStop()
7429
    oprot.writeStructEnd()
7430
 
3431 rajveer 7431
  def validate(self):
7432
    return
7433
 
7434
 
1590 varun.gupt 7435
  def __repr__(self):
7436
    L = ['%s=%r' % (key, value)
7437
      for key, value in self.__dict__.iteritems()]
7438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7439
 
7440
  def __eq__(self, other):
7441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7442
 
7443
  def __ne__(self, other):
7444
    return not (self == other)
7445
 
7446
class getAllUserCommunications_result:
7447
  """
7448
  Attributes:
7449
   - success
7450
   - ucx
7451
  """
7452
 
7453
  thrift_spec = (
7454
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7455
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7456
  )
7457
 
7458
  def __init__(self, success=None, ucx=None,):
7459
    self.success = success
7460
    self.ucx = ucx
7461
 
7462
  def read(self, iprot):
7463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7465
      return
7466
    iprot.readStructBegin()
7467
    while True:
7468
      (fname, ftype, fid) = iprot.readFieldBegin()
7469
      if ftype == TType.STOP:
7470
        break
7471
      if fid == 0:
7472
        if ftype == TType.LIST:
7473
          self.success = []
3554 varun.gupt 7474
          (_etype59, _size56) = iprot.readListBegin()
7475
          for _i60 in xrange(_size56):
7476
            _elem61 = UserCommunication()
7477
            _elem61.read(iprot)
7478
            self.success.append(_elem61)
1590 varun.gupt 7479
          iprot.readListEnd()
7480
        else:
7481
          iprot.skip(ftype)
7482
      elif fid == 1:
7483
        if ftype == TType.STRUCT:
7484
          self.ucx = UserCommunicationException()
7485
          self.ucx.read(iprot)
7486
        else:
7487
          iprot.skip(ftype)
7488
      else:
7489
        iprot.skip(ftype)
7490
      iprot.readFieldEnd()
7491
    iprot.readStructEnd()
7492
 
7493
  def write(self, oprot):
7494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7496
      return
7497
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7498
    if self.success is not None:
1590 varun.gupt 7499
      oprot.writeFieldBegin('success', TType.LIST, 0)
7500
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7501
      for iter62 in self.success:
7502
        iter62.write(oprot)
1590 varun.gupt 7503
      oprot.writeListEnd()
7504
      oprot.writeFieldEnd()
3431 rajveer 7505
    if self.ucx is not None:
1590 varun.gupt 7506
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7507
      self.ucx.write(oprot)
7508
      oprot.writeFieldEnd()
7509
    oprot.writeFieldStop()
7510
    oprot.writeStructEnd()
7511
 
3431 rajveer 7512
  def validate(self):
7513
    return
7514
 
7515
 
1590 varun.gupt 7516
  def __repr__(self):
7517
    L = ['%s=%r' % (key, value)
7518
      for key, value in self.__dict__.iteritems()]
7519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7520
 
7521
  def __eq__(self, other):
7522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7523
 
7524
  def __ne__(self, other):
7525
    return not (self == other)
7526
 
1845 vikas 7527
class createMasterAffiliate_args:
7528
  """
7529
  Attributes:
7530
   - name
1859 vikas 7531
   - addedOn
1845 vikas 7532
  """
7533
 
7534
  thrift_spec = (
7535
    None, # 0
7536
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7537
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7538
  )
7539
 
1859 vikas 7540
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7541
    self.name = name
1859 vikas 7542
    self.addedOn = addedOn
1845 vikas 7543
 
7544
  def read(self, iprot):
7545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7547
      return
7548
    iprot.readStructBegin()
7549
    while True:
7550
      (fname, ftype, fid) = iprot.readFieldBegin()
7551
      if ftype == TType.STOP:
7552
        break
7553
      if fid == 1:
7554
        if ftype == TType.STRING:
7555
          self.name = iprot.readString();
7556
        else:
7557
          iprot.skip(ftype)
1859 vikas 7558
      elif fid == 2:
7559
        if ftype == TType.I64:
7560
          self.addedOn = iprot.readI64();
7561
        else:
7562
          iprot.skip(ftype)
1845 vikas 7563
      else:
7564
        iprot.skip(ftype)
7565
      iprot.readFieldEnd()
7566
    iprot.readStructEnd()
7567
 
7568
  def write(self, oprot):
7569
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7570
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7571
      return
7572
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7573
    if self.name is not None:
1845 vikas 7574
      oprot.writeFieldBegin('name', TType.STRING, 1)
7575
      oprot.writeString(self.name)
7576
      oprot.writeFieldEnd()
3431 rajveer 7577
    if self.addedOn is not None:
1859 vikas 7578
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7579
      oprot.writeI64(self.addedOn)
7580
      oprot.writeFieldEnd()
1845 vikas 7581
    oprot.writeFieldStop()
7582
    oprot.writeStructEnd()
7583
 
3431 rajveer 7584
  def validate(self):
7585
    return
7586
 
7587
 
1845 vikas 7588
  def __repr__(self):
7589
    L = ['%s=%r' % (key, value)
7590
      for key, value in self.__dict__.iteritems()]
7591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7592
 
7593
  def __eq__(self, other):
7594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7595
 
7596
  def __ne__(self, other):
7597
    return not (self == other)
7598
 
7599
class createMasterAffiliate_result:
7600
  """
7601
  Attributes:
7602
   - success
7603
   - utx
7604
  """
7605
 
7606
  thrift_spec = (
7607
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7608
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7609
  )
7610
 
7611
  def __init__(self, success=None, utx=None,):
7612
    self.success = success
7613
    self.utx = utx
7614
 
7615
  def read(self, iprot):
7616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7618
      return
7619
    iprot.readStructBegin()
7620
    while True:
7621
      (fname, ftype, fid) = iprot.readFieldBegin()
7622
      if ftype == TType.STOP:
7623
        break
7624
      if fid == 0:
7625
        if ftype == TType.STRUCT:
7626
          self.success = MasterAffiliate()
7627
          self.success.read(iprot)
7628
        else:
7629
          iprot.skip(ftype)
7630
      elif fid == 1:
7631
        if ftype == TType.STRUCT:
1996 vikas 7632
          self.utx = UserAffiliateException()
1845 vikas 7633
          self.utx.read(iprot)
7634
        else:
7635
          iprot.skip(ftype)
7636
      else:
7637
        iprot.skip(ftype)
7638
      iprot.readFieldEnd()
7639
    iprot.readStructEnd()
7640
 
7641
  def write(self, oprot):
7642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7644
      return
7645
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7646
    if self.success is not None:
1845 vikas 7647
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7648
      self.success.write(oprot)
7649
      oprot.writeFieldEnd()
3431 rajveer 7650
    if self.utx is not None:
1845 vikas 7651
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7652
      self.utx.write(oprot)
7653
      oprot.writeFieldEnd()
7654
    oprot.writeFieldStop()
7655
    oprot.writeStructEnd()
7656
 
3431 rajveer 7657
  def validate(self):
7658
    return
7659
 
7660
 
1845 vikas 7661
  def __repr__(self):
7662
    L = ['%s=%r' % (key, value)
7663
      for key, value in self.__dict__.iteritems()]
7664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7665
 
7666
  def __eq__(self, other):
7667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7668
 
7669
  def __ne__(self, other):
7670
    return not (self == other)
7671
 
1899 vikas 7672
class getAllMasterAffiliates_args:
7673
 
7674
  thrift_spec = (
7675
  )
7676
 
7677
  def read(self, iprot):
7678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7680
      return
7681
    iprot.readStructBegin()
7682
    while True:
7683
      (fname, ftype, fid) = iprot.readFieldBegin()
7684
      if ftype == TType.STOP:
7685
        break
7686
      else:
7687
        iprot.skip(ftype)
7688
      iprot.readFieldEnd()
7689
    iprot.readStructEnd()
7690
 
7691
  def write(self, oprot):
7692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7694
      return
7695
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7696
    oprot.writeFieldStop()
7697
    oprot.writeStructEnd()
7698
 
3431 rajveer 7699
  def validate(self):
7700
    return
7701
 
7702
 
1899 vikas 7703
  def __repr__(self):
7704
    L = ['%s=%r' % (key, value)
7705
      for key, value in self.__dict__.iteritems()]
7706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7707
 
7708
  def __eq__(self, other):
7709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7710
 
7711
  def __ne__(self, other):
7712
    return not (self == other)
7713
 
7714
class getAllMasterAffiliates_result:
7715
  """
7716
  Attributes:
7717
   - success
7718
   - utx
7719
  """
7720
 
7721
  thrift_spec = (
7722
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7723
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7724
  )
7725
 
7726
  def __init__(self, success=None, utx=None,):
7727
    self.success = success
7728
    self.utx = utx
7729
 
7730
  def read(self, iprot):
7731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7733
      return
7734
    iprot.readStructBegin()
7735
    while True:
7736
      (fname, ftype, fid) = iprot.readFieldBegin()
7737
      if ftype == TType.STOP:
7738
        break
7739
      if fid == 0:
7740
        if ftype == TType.LIST:
7741
          self.success = []
3554 varun.gupt 7742
          (_etype66, _size63) = iprot.readListBegin()
7743
          for _i67 in xrange(_size63):
7744
            _elem68 = MasterAffiliate()
7745
            _elem68.read(iprot)
7746
            self.success.append(_elem68)
1899 vikas 7747
          iprot.readListEnd()
7748
        else:
7749
          iprot.skip(ftype)
7750
      elif fid == 1:
7751
        if ftype == TType.STRUCT:
1996 vikas 7752
          self.utx = UserAffiliateException()
1899 vikas 7753
          self.utx.read(iprot)
7754
        else:
7755
          iprot.skip(ftype)
7756
      else:
7757
        iprot.skip(ftype)
7758
      iprot.readFieldEnd()
7759
    iprot.readStructEnd()
7760
 
7761
  def write(self, oprot):
7762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7764
      return
7765
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7766
    if self.success is not None:
1899 vikas 7767
      oprot.writeFieldBegin('success', TType.LIST, 0)
7768
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7769
      for iter69 in self.success:
7770
        iter69.write(oprot)
1899 vikas 7771
      oprot.writeListEnd()
7772
      oprot.writeFieldEnd()
3431 rajveer 7773
    if self.utx is not None:
1899 vikas 7774
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7775
      self.utx.write(oprot)
7776
      oprot.writeFieldEnd()
7777
    oprot.writeFieldStop()
7778
    oprot.writeStructEnd()
7779
 
3431 rajveer 7780
  def validate(self):
7781
    return
7782
 
7783
 
1899 vikas 7784
  def __repr__(self):
7785
    L = ['%s=%r' % (key, value)
7786
      for key, value in self.__dict__.iteritems()]
7787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7788
 
7789
  def __eq__(self, other):
7790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7791
 
7792
  def __ne__(self, other):
7793
    return not (self == other)
7794
 
1845 vikas 7795
class getMasterAffiliateById_args:
7796
  """
7797
  Attributes:
7798
   - id
7799
  """
7800
 
7801
  thrift_spec = (
7802
    None, # 0
7803
    (1, TType.I64, 'id', None, None, ), # 1
7804
  )
7805
 
7806
  def __init__(self, id=None,):
7807
    self.id = id
7808
 
7809
  def read(self, iprot):
7810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7812
      return
7813
    iprot.readStructBegin()
7814
    while True:
7815
      (fname, ftype, fid) = iprot.readFieldBegin()
7816
      if ftype == TType.STOP:
7817
        break
7818
      if fid == 1:
7819
        if ftype == TType.I64:
7820
          self.id = iprot.readI64();
7821
        else:
7822
          iprot.skip(ftype)
7823
      else:
7824
        iprot.skip(ftype)
7825
      iprot.readFieldEnd()
7826
    iprot.readStructEnd()
7827
 
7828
  def write(self, oprot):
7829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7831
      return
7832
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7833
    if self.id is not None:
1845 vikas 7834
      oprot.writeFieldBegin('id', TType.I64, 1)
7835
      oprot.writeI64(self.id)
7836
      oprot.writeFieldEnd()
7837
    oprot.writeFieldStop()
7838
    oprot.writeStructEnd()
7839
 
3431 rajveer 7840
  def validate(self):
7841
    return
7842
 
7843
 
1845 vikas 7844
  def __repr__(self):
7845
    L = ['%s=%r' % (key, value)
7846
      for key, value in self.__dict__.iteritems()]
7847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7848
 
7849
  def __eq__(self, other):
7850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7851
 
7852
  def __ne__(self, other):
7853
    return not (self == other)
7854
 
7855
class getMasterAffiliateById_result:
7856
  """
7857
  Attributes:
7858
   - success
7859
   - utx
7860
  """
7861
 
7862
  thrift_spec = (
7863
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7864
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7865
  )
7866
 
7867
  def __init__(self, success=None, utx=None,):
7868
    self.success = success
7869
    self.utx = utx
7870
 
7871
  def read(self, iprot):
7872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7874
      return
7875
    iprot.readStructBegin()
7876
    while True:
7877
      (fname, ftype, fid) = iprot.readFieldBegin()
7878
      if ftype == TType.STOP:
7879
        break
7880
      if fid == 0:
7881
        if ftype == TType.STRUCT:
7882
          self.success = MasterAffiliate()
7883
          self.success.read(iprot)
7884
        else:
7885
          iprot.skip(ftype)
7886
      elif fid == 1:
7887
        if ftype == TType.STRUCT:
1996 vikas 7888
          self.utx = UserAffiliateException()
1845 vikas 7889
          self.utx.read(iprot)
7890
        else:
7891
          iprot.skip(ftype)
7892
      else:
7893
        iprot.skip(ftype)
7894
      iprot.readFieldEnd()
7895
    iprot.readStructEnd()
7896
 
7897
  def write(self, oprot):
7898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7900
      return
7901
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7902
    if self.success is not None:
1845 vikas 7903
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7904
      self.success.write(oprot)
7905
      oprot.writeFieldEnd()
3431 rajveer 7906
    if self.utx is not None:
1845 vikas 7907
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7908
      self.utx.write(oprot)
7909
      oprot.writeFieldEnd()
7910
    oprot.writeFieldStop()
7911
    oprot.writeStructEnd()
7912
 
3431 rajveer 7913
  def validate(self):
7914
    return
7915
 
7916
 
1845 vikas 7917
  def __repr__(self):
7918
    L = ['%s=%r' % (key, value)
7919
      for key, value in self.__dict__.iteritems()]
7920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7921
 
7922
  def __eq__(self, other):
7923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7924
 
7925
  def __ne__(self, other):
7926
    return not (self == other)
7927
 
7928
class getMasterAffiliateByName_args:
7929
  """
7930
  Attributes:
7931
   - name
7932
  """
7933
 
7934
  thrift_spec = (
7935
    None, # 0
7936
    (1, TType.STRING, 'name', None, None, ), # 1
7937
  )
7938
 
7939
  def __init__(self, name=None,):
7940
    self.name = name
7941
 
7942
  def read(self, iprot):
7943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7945
      return
7946
    iprot.readStructBegin()
7947
    while True:
7948
      (fname, ftype, fid) = iprot.readFieldBegin()
7949
      if ftype == TType.STOP:
7950
        break
7951
      if fid == 1:
7952
        if ftype == TType.STRING:
7953
          self.name = iprot.readString();
7954
        else:
7955
          iprot.skip(ftype)
7956
      else:
7957
        iprot.skip(ftype)
7958
      iprot.readFieldEnd()
7959
    iprot.readStructEnd()
7960
 
7961
  def write(self, oprot):
7962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7964
      return
7965
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7966
    if self.name is not None:
1845 vikas 7967
      oprot.writeFieldBegin('name', TType.STRING, 1)
7968
      oprot.writeString(self.name)
7969
      oprot.writeFieldEnd()
7970
    oprot.writeFieldStop()
7971
    oprot.writeStructEnd()
7972
 
3431 rajveer 7973
  def validate(self):
7974
    return
7975
 
7976
 
1845 vikas 7977
  def __repr__(self):
7978
    L = ['%s=%r' % (key, value)
7979
      for key, value in self.__dict__.iteritems()]
7980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7981
 
7982
  def __eq__(self, other):
7983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7984
 
7985
  def __ne__(self, other):
7986
    return not (self == other)
7987
 
7988
class getMasterAffiliateByName_result:
7989
  """
7990
  Attributes:
7991
   - success
7992
   - utx
7993
  """
7994
 
7995
  thrift_spec = (
7996
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7997
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7998
  )
7999
 
8000
  def __init__(self, success=None, utx=None,):
8001
    self.success = success
8002
    self.utx = utx
8003
 
8004
  def read(self, iprot):
8005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8007
      return
8008
    iprot.readStructBegin()
8009
    while True:
8010
      (fname, ftype, fid) = iprot.readFieldBegin()
8011
      if ftype == TType.STOP:
8012
        break
8013
      if fid == 0:
8014
        if ftype == TType.STRUCT:
8015
          self.success = MasterAffiliate()
8016
          self.success.read(iprot)
8017
        else:
8018
          iprot.skip(ftype)
8019
      elif fid == 1:
8020
        if ftype == TType.STRUCT:
1996 vikas 8021
          self.utx = UserAffiliateException()
1845 vikas 8022
          self.utx.read(iprot)
8023
        else:
8024
          iprot.skip(ftype)
8025
      else:
8026
        iprot.skip(ftype)
8027
      iprot.readFieldEnd()
8028
    iprot.readStructEnd()
8029
 
8030
  def write(self, oprot):
8031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8033
      return
8034
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8035
    if self.success is not None:
1845 vikas 8036
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8037
      self.success.write(oprot)
8038
      oprot.writeFieldEnd()
3431 rajveer 8039
    if self.utx is not None:
1845 vikas 8040
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8041
      self.utx.write(oprot)
8042
      oprot.writeFieldEnd()
8043
    oprot.writeFieldStop()
8044
    oprot.writeStructEnd()
8045
 
3431 rajveer 8046
  def validate(self):
8047
    return
8048
 
8049
 
1845 vikas 8050
  def __repr__(self):
8051
    L = ['%s=%r' % (key, value)
8052
      for key, value in self.__dict__.iteritems()]
8053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8054
 
8055
  def __eq__(self, other):
8056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8057
 
8058
  def __ne__(self, other):
8059
    return not (self == other)
8060
 
8061
class createAffiliate_args:
8062
  """
8063
  Attributes:
8064
   - name
8065
   - url
8066
   - masterAffiliateId
1859 vikas 8067
   - addedOn
1845 vikas 8068
  """
8069
 
8070
  thrift_spec = (
8071
    None, # 0
8072
    (1, TType.STRING, 'name', None, None, ), # 1
8073
    (2, TType.STRING, 'url', None, None, ), # 2
8074
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8075
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8076
  )
8077
 
1859 vikas 8078
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8079
    self.name = name
8080
    self.url = url
8081
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8082
    self.addedOn = addedOn
1845 vikas 8083
 
8084
  def read(self, iprot):
8085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8087
      return
8088
    iprot.readStructBegin()
8089
    while True:
8090
      (fname, ftype, fid) = iprot.readFieldBegin()
8091
      if ftype == TType.STOP:
8092
        break
8093
      if fid == 1:
8094
        if ftype == TType.STRING:
8095
          self.name = iprot.readString();
8096
        else:
8097
          iprot.skip(ftype)
8098
      elif fid == 2:
8099
        if ftype == TType.STRING:
8100
          self.url = iprot.readString();
8101
        else:
8102
          iprot.skip(ftype)
8103
      elif fid == 3:
8104
        if ftype == TType.I64:
8105
          self.masterAffiliateId = iprot.readI64();
8106
        else:
8107
          iprot.skip(ftype)
1859 vikas 8108
      elif fid == 4:
8109
        if ftype == TType.I64:
8110
          self.addedOn = iprot.readI64();
8111
        else:
8112
          iprot.skip(ftype)
1845 vikas 8113
      else:
8114
        iprot.skip(ftype)
8115
      iprot.readFieldEnd()
8116
    iprot.readStructEnd()
8117
 
8118
  def write(self, oprot):
8119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8121
      return
8122
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8123
    if self.name is not None:
1845 vikas 8124
      oprot.writeFieldBegin('name', TType.STRING, 1)
8125
      oprot.writeString(self.name)
8126
      oprot.writeFieldEnd()
3431 rajveer 8127
    if self.url is not None:
1845 vikas 8128
      oprot.writeFieldBegin('url', TType.STRING, 2)
8129
      oprot.writeString(self.url)
8130
      oprot.writeFieldEnd()
3431 rajveer 8131
    if self.masterAffiliateId is not None:
1845 vikas 8132
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8133
      oprot.writeI64(self.masterAffiliateId)
8134
      oprot.writeFieldEnd()
3431 rajveer 8135
    if self.addedOn is not None:
1859 vikas 8136
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8137
      oprot.writeI64(self.addedOn)
8138
      oprot.writeFieldEnd()
1845 vikas 8139
    oprot.writeFieldStop()
8140
    oprot.writeStructEnd()
8141
 
3431 rajveer 8142
  def validate(self):
8143
    return
8144
 
8145
 
1845 vikas 8146
  def __repr__(self):
8147
    L = ['%s=%r' % (key, value)
8148
      for key, value in self.__dict__.iteritems()]
8149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8150
 
8151
  def __eq__(self, other):
8152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8153
 
8154
  def __ne__(self, other):
8155
    return not (self == other)
8156
 
8157
class createAffiliate_result:
8158
  """
8159
  Attributes:
8160
   - success
8161
   - utx
8162
  """
8163
 
8164
  thrift_spec = (
8165
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8166
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8167
  )
8168
 
8169
  def __init__(self, success=None, utx=None,):
8170
    self.success = success
8171
    self.utx = utx
8172
 
8173
  def read(self, iprot):
8174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8176
      return
8177
    iprot.readStructBegin()
8178
    while True:
8179
      (fname, ftype, fid) = iprot.readFieldBegin()
8180
      if ftype == TType.STOP:
8181
        break
8182
      if fid == 0:
8183
        if ftype == TType.STRUCT:
8184
          self.success = Affiliate()
8185
          self.success.read(iprot)
8186
        else:
8187
          iprot.skip(ftype)
8188
      elif fid == 1:
8189
        if ftype == TType.STRUCT:
1996 vikas 8190
          self.utx = UserAffiliateException()
1845 vikas 8191
          self.utx.read(iprot)
8192
        else:
8193
          iprot.skip(ftype)
8194
      else:
8195
        iprot.skip(ftype)
8196
      iprot.readFieldEnd()
8197
    iprot.readStructEnd()
8198
 
8199
  def write(self, oprot):
8200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8202
      return
8203
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8204
    if self.success is not None:
1845 vikas 8205
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8206
      self.success.write(oprot)
8207
      oprot.writeFieldEnd()
3431 rajveer 8208
    if self.utx is not None:
1845 vikas 8209
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8210
      self.utx.write(oprot)
8211
      oprot.writeFieldEnd()
8212
    oprot.writeFieldStop()
8213
    oprot.writeStructEnd()
8214
 
3431 rajveer 8215
  def validate(self):
8216
    return
8217
 
8218
 
1845 vikas 8219
  def __repr__(self):
8220
    L = ['%s=%r' % (key, value)
8221
      for key, value in self.__dict__.iteritems()]
8222
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8223
 
8224
  def __eq__(self, other):
8225
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8226
 
8227
  def __ne__(self, other):
8228
    return not (self == other)
8229
 
8230
class getAffiliateById_args:
8231
  """
8232
  Attributes:
8233
   - id
8234
  """
8235
 
8236
  thrift_spec = (
8237
    None, # 0
8238
    (1, TType.I64, 'id', None, None, ), # 1
8239
  )
8240
 
8241
  def __init__(self, id=None,):
8242
    self.id = id
8243
 
8244
  def read(self, iprot):
8245
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8246
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8247
      return
8248
    iprot.readStructBegin()
8249
    while True:
8250
      (fname, ftype, fid) = iprot.readFieldBegin()
8251
      if ftype == TType.STOP:
8252
        break
8253
      if fid == 1:
8254
        if ftype == TType.I64:
8255
          self.id = iprot.readI64();
8256
        else:
8257
          iprot.skip(ftype)
8258
      else:
8259
        iprot.skip(ftype)
8260
      iprot.readFieldEnd()
8261
    iprot.readStructEnd()
8262
 
8263
  def write(self, oprot):
8264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8266
      return
8267
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8268
    if self.id is not None:
1845 vikas 8269
      oprot.writeFieldBegin('id', TType.I64, 1)
8270
      oprot.writeI64(self.id)
8271
      oprot.writeFieldEnd()
8272
    oprot.writeFieldStop()
8273
    oprot.writeStructEnd()
8274
 
3431 rajveer 8275
  def validate(self):
8276
    return
8277
 
8278
 
1845 vikas 8279
  def __repr__(self):
8280
    L = ['%s=%r' % (key, value)
8281
      for key, value in self.__dict__.iteritems()]
8282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8283
 
8284
  def __eq__(self, other):
8285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8286
 
8287
  def __ne__(self, other):
8288
    return not (self == other)
8289
 
8290
class getAffiliateById_result:
8291
  """
8292
  Attributes:
8293
   - success
8294
   - utx
8295
  """
8296
 
8297
  thrift_spec = (
8298
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8299
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8300
  )
8301
 
8302
  def __init__(self, success=None, utx=None,):
8303
    self.success = success
8304
    self.utx = utx
8305
 
8306
  def read(self, iprot):
8307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8309
      return
8310
    iprot.readStructBegin()
8311
    while True:
8312
      (fname, ftype, fid) = iprot.readFieldBegin()
8313
      if ftype == TType.STOP:
8314
        break
8315
      if fid == 0:
8316
        if ftype == TType.STRUCT:
8317
          self.success = Affiliate()
8318
          self.success.read(iprot)
8319
        else:
8320
          iprot.skip(ftype)
8321
      elif fid == 1:
8322
        if ftype == TType.STRUCT:
1996 vikas 8323
          self.utx = UserAffiliateException()
1845 vikas 8324
          self.utx.read(iprot)
8325
        else:
8326
          iprot.skip(ftype)
8327
      else:
8328
        iprot.skip(ftype)
8329
      iprot.readFieldEnd()
8330
    iprot.readStructEnd()
8331
 
8332
  def write(self, oprot):
8333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8335
      return
8336
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8337
    if self.success is not None:
1845 vikas 8338
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8339
      self.success.write(oprot)
8340
      oprot.writeFieldEnd()
3431 rajveer 8341
    if self.utx is not None:
1845 vikas 8342
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8343
      self.utx.write(oprot)
8344
      oprot.writeFieldEnd()
8345
    oprot.writeFieldStop()
8346
    oprot.writeStructEnd()
8347
 
3431 rajveer 8348
  def validate(self):
8349
    return
8350
 
8351
 
1845 vikas 8352
  def __repr__(self):
8353
    L = ['%s=%r' % (key, value)
8354
      for key, value in self.__dict__.iteritems()]
8355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8356
 
8357
  def __eq__(self, other):
8358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8359
 
8360
  def __ne__(self, other):
8361
    return not (self == other)
8362
 
8363
class getAffiliateByName_args:
8364
  """
8365
  Attributes:
8366
   - name
8367
  """
8368
 
8369
  thrift_spec = (
8370
    None, # 0
8371
    (1, TType.STRING, 'name', None, None, ), # 1
8372
  )
8373
 
8374
  def __init__(self, name=None,):
8375
    self.name = name
8376
 
8377
  def read(self, iprot):
8378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8380
      return
8381
    iprot.readStructBegin()
8382
    while True:
8383
      (fname, ftype, fid) = iprot.readFieldBegin()
8384
      if ftype == TType.STOP:
8385
        break
8386
      if fid == 1:
8387
        if ftype == TType.STRING:
8388
          self.name = iprot.readString();
8389
        else:
8390
          iprot.skip(ftype)
8391
      else:
8392
        iprot.skip(ftype)
8393
      iprot.readFieldEnd()
8394
    iprot.readStructEnd()
8395
 
8396
  def write(self, oprot):
8397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8399
      return
8400
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8401
    if self.name is not None:
1845 vikas 8402
      oprot.writeFieldBegin('name', TType.STRING, 1)
8403
      oprot.writeString(self.name)
8404
      oprot.writeFieldEnd()
8405
    oprot.writeFieldStop()
8406
    oprot.writeStructEnd()
8407
 
3431 rajveer 8408
  def validate(self):
8409
    return
8410
 
8411
 
1845 vikas 8412
  def __repr__(self):
8413
    L = ['%s=%r' % (key, value)
8414
      for key, value in self.__dict__.iteritems()]
8415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8416
 
8417
  def __eq__(self, other):
8418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8419
 
8420
  def __ne__(self, other):
8421
    return not (self == other)
8422
 
8423
class getAffiliateByName_result:
8424
  """
8425
  Attributes:
8426
   - success
8427
   - utx
8428
  """
8429
 
8430
  thrift_spec = (
8431
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8432
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8433
  )
8434
 
8435
  def __init__(self, success=None, utx=None,):
8436
    self.success = success
8437
    self.utx = utx
8438
 
8439
  def read(self, iprot):
8440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8442
      return
8443
    iprot.readStructBegin()
8444
    while True:
8445
      (fname, ftype, fid) = iprot.readFieldBegin()
8446
      if ftype == TType.STOP:
8447
        break
8448
      if fid == 0:
8449
        if ftype == TType.STRUCT:
8450
          self.success = Affiliate()
8451
          self.success.read(iprot)
8452
        else:
8453
          iprot.skip(ftype)
8454
      elif fid == 1:
8455
        if ftype == TType.STRUCT:
1996 vikas 8456
          self.utx = UserAffiliateException()
1845 vikas 8457
          self.utx.read(iprot)
8458
        else:
8459
          iprot.skip(ftype)
8460
      else:
8461
        iprot.skip(ftype)
8462
      iprot.readFieldEnd()
8463
    iprot.readStructEnd()
8464
 
8465
  def write(self, oprot):
8466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8468
      return
8469
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8470
    if self.success is not None:
1845 vikas 8471
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8472
      self.success.write(oprot)
8473
      oprot.writeFieldEnd()
3431 rajveer 8474
    if self.utx is not None:
1845 vikas 8475
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8476
      self.utx.write(oprot)
8477
      oprot.writeFieldEnd()
8478
    oprot.writeFieldStop()
8479
    oprot.writeStructEnd()
8480
 
3431 rajveer 8481
  def validate(self):
8482
    return
8483
 
8484
 
1845 vikas 8485
  def __repr__(self):
8486
    L = ['%s=%r' % (key, value)
8487
      for key, value in self.__dict__.iteritems()]
8488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8489
 
8490
  def __eq__(self, other):
8491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8492
 
8493
  def __ne__(self, other):
8494
    return not (self == other)
8495
 
1996 vikas 8496
class getTrackerById_args:
1845 vikas 8497
  """
8498
  Attributes:
8499
   - id
8500
  """
8501
 
8502
  thrift_spec = (
8503
    None, # 0
8504
    (1, TType.I64, 'id', None, None, ), # 1
8505
  )
8506
 
8507
  def __init__(self, id=None,):
8508
    self.id = id
8509
 
8510
  def read(self, iprot):
8511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8513
      return
8514
    iprot.readStructBegin()
8515
    while True:
8516
      (fname, ftype, fid) = iprot.readFieldBegin()
8517
      if ftype == TType.STOP:
8518
        break
8519
      if fid == 1:
8520
        if ftype == TType.I64:
8521
          self.id = iprot.readI64();
8522
        else:
8523
          iprot.skip(ftype)
8524
      else:
8525
        iprot.skip(ftype)
8526
      iprot.readFieldEnd()
8527
    iprot.readStructEnd()
8528
 
8529
  def write(self, oprot):
8530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8532
      return
1996 vikas 8533
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8534
    if self.id is not None:
1845 vikas 8535
      oprot.writeFieldBegin('id', TType.I64, 1)
8536
      oprot.writeI64(self.id)
8537
      oprot.writeFieldEnd()
8538
    oprot.writeFieldStop()
8539
    oprot.writeStructEnd()
8540
 
3431 rajveer 8541
  def validate(self):
8542
    return
8543
 
8544
 
1845 vikas 8545
  def __repr__(self):
8546
    L = ['%s=%r' % (key, value)
8547
      for key, value in self.__dict__.iteritems()]
8548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8549
 
8550
  def __eq__(self, other):
8551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8552
 
8553
  def __ne__(self, other):
8554
    return not (self == other)
8555
 
8556
class getTrackerById_result:
8557
  """
8558
  Attributes:
8559
   - success
8560
   - utx
8561
  """
8562
 
8563
  thrift_spec = (
8564
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8565
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8566
  )
8567
 
8568
  def __init__(self, success=None, utx=None,):
8569
    self.success = success
8570
    self.utx = utx
8571
 
8572
  def read(self, iprot):
8573
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8574
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8575
      return
8576
    iprot.readStructBegin()
8577
    while True:
8578
      (fname, ftype, fid) = iprot.readFieldBegin()
8579
      if ftype == TType.STOP:
8580
        break
8581
      if fid == 0:
8582
        if ftype == TType.STRUCT:
8583
          self.success = Tracker()
8584
          self.success.read(iprot)
8585
        else:
8586
          iprot.skip(ftype)
8587
      elif fid == 1:
8588
        if ftype == TType.STRUCT:
1996 vikas 8589
          self.utx = UserAffiliateException()
1845 vikas 8590
          self.utx.read(iprot)
8591
        else:
8592
          iprot.skip(ftype)
8593
      else:
8594
        iprot.skip(ftype)
8595
      iprot.readFieldEnd()
8596
    iprot.readStructEnd()
8597
 
8598
  def write(self, oprot):
8599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8601
      return
8602
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8603
    if self.success is not None:
1845 vikas 8604
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8605
      self.success.write(oprot)
8606
      oprot.writeFieldEnd()
3431 rajveer 8607
    if self.utx is not None:
1845 vikas 8608
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8609
      self.utx.write(oprot)
8610
      oprot.writeFieldEnd()
8611
    oprot.writeFieldStop()
8612
    oprot.writeStructEnd()
8613
 
3431 rajveer 8614
  def validate(self):
8615
    return
8616
 
8617
 
1845 vikas 8618
  def __repr__(self):
8619
    L = ['%s=%r' % (key, value)
8620
      for key, value in self.__dict__.iteritems()]
8621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8622
 
8623
  def __eq__(self, other):
8624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8625
 
8626
  def __ne__(self, other):
8627
    return not (self == other)
8628
 
1996 vikas 8629
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8630
  """
8631
  Attributes:
1996 vikas 8632
   - id
1845 vikas 8633
  """
8634
 
8635
  thrift_spec = (
8636
    None, # 0
1996 vikas 8637
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8638
  )
8639
 
1996 vikas 8640
  def __init__(self, id=None,):
8641
    self.id = id
1845 vikas 8642
 
8643
  def read(self, iprot):
8644
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8645
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8646
      return
8647
    iprot.readStructBegin()
8648
    while True:
8649
      (fname, ftype, fid) = iprot.readFieldBegin()
8650
      if ftype == TType.STOP:
8651
        break
8652
      if fid == 1:
8653
        if ftype == TType.I64:
1996 vikas 8654
          self.id = iprot.readI64();
1845 vikas 8655
        else:
8656
          iprot.skip(ftype)
8657
      else:
8658
        iprot.skip(ftype)
8659
      iprot.readFieldEnd()
8660
    iprot.readStructEnd()
8661
 
8662
  def write(self, oprot):
8663
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8664
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8665
      return
1996 vikas 8666
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8667
    if self.id is not None:
1996 vikas 8668
      oprot.writeFieldBegin('id', TType.I64, 1)
8669
      oprot.writeI64(self.id)
1845 vikas 8670
      oprot.writeFieldEnd()
8671
    oprot.writeFieldStop()
8672
    oprot.writeStructEnd()
8673
 
3431 rajveer 8674
  def validate(self):
8675
    return
8676
 
8677
 
1845 vikas 8678
  def __repr__(self):
8679
    L = ['%s=%r' % (key, value)
8680
      for key, value in self.__dict__.iteritems()]
8681
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8682
 
8683
  def __eq__(self, other):
8684
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8685
 
8686
  def __ne__(self, other):
8687
    return not (self == other)
8688
 
1996 vikas 8689
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8690
  """
8691
  Attributes:
8692
   - success
8693
   - utx
8694
  """
8695
 
8696
  thrift_spec = (
1996 vikas 8697
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8698
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8699
  )
8700
 
8701
  def __init__(self, success=None, utx=None,):
8702
    self.success = success
8703
    self.utx = utx
8704
 
8705
  def read(self, iprot):
8706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8708
      return
8709
    iprot.readStructBegin()
8710
    while True:
8711
      (fname, ftype, fid) = iprot.readFieldBegin()
8712
      if ftype == TType.STOP:
8713
        break
8714
      if fid == 0:
8715
        if ftype == TType.LIST:
8716
          self.success = []
3554 varun.gupt 8717
          (_etype73, _size70) = iprot.readListBegin()
8718
          for _i74 in xrange(_size70):
8719
            _elem75 = Affiliate()
8720
            _elem75.read(iprot)
8721
            self.success.append(_elem75)
1845 vikas 8722
          iprot.readListEnd()
8723
        else:
8724
          iprot.skip(ftype)
8725
      elif fid == 1:
8726
        if ftype == TType.STRUCT:
1996 vikas 8727
          self.utx = UserAffiliateException()
1845 vikas 8728
          self.utx.read(iprot)
8729
        else:
8730
          iprot.skip(ftype)
8731
      else:
8732
        iprot.skip(ftype)
8733
      iprot.readFieldEnd()
8734
    iprot.readStructEnd()
8735
 
8736
  def write(self, oprot):
8737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8739
      return
1996 vikas 8740
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8741
    if self.success is not None:
1845 vikas 8742
      oprot.writeFieldBegin('success', TType.LIST, 0)
8743
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 8744
      for iter76 in self.success:
8745
        iter76.write(oprot)
1845 vikas 8746
      oprot.writeListEnd()
8747
      oprot.writeFieldEnd()
3431 rajveer 8748
    if self.utx is not None:
1845 vikas 8749
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8750
      self.utx.write(oprot)
8751
      oprot.writeFieldEnd()
8752
    oprot.writeFieldStop()
8753
    oprot.writeStructEnd()
8754
 
3431 rajveer 8755
  def validate(self):
8756
    return
8757
 
8758
 
1845 vikas 8759
  def __repr__(self):
8760
    L = ['%s=%r' % (key, value)
8761
      for key, value in self.__dict__.iteritems()]
8762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8763
 
8764
  def __eq__(self, other):
8765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8766
 
8767
  def __ne__(self, other):
8768
    return not (self == other)
8769
 
8770
class addTrackLog_args:
8771
  """
8772
  Attributes:
1996 vikas 8773
   - affiliateId
1845 vikas 8774
   - userId
8775
   - event
8776
   - url
8777
   - data
1859 vikas 8778
   - addedOn
1845 vikas 8779
  """
8780
 
8781
  thrift_spec = (
8782
    None, # 0
1996 vikas 8783
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8784
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8785
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8786
    (4, TType.STRING, 'url', None, None, ), # 4
8787
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8788
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8789
  )
8790
 
1996 vikas 8791
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8792
    self.affiliateId = affiliateId
1845 vikas 8793
    self.userId = userId
8794
    self.event = event
8795
    self.url = url
8796
    self.data = data
1859 vikas 8797
    self.addedOn = addedOn
1845 vikas 8798
 
8799
  def read(self, iprot):
8800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8802
      return
8803
    iprot.readStructBegin()
8804
    while True:
8805
      (fname, ftype, fid) = iprot.readFieldBegin()
8806
      if ftype == TType.STOP:
8807
        break
8808
      if fid == 1:
8809
        if ftype == TType.I64:
1996 vikas 8810
          self.affiliateId = iprot.readI64();
1845 vikas 8811
        else:
8812
          iprot.skip(ftype)
8813
      elif fid == 2:
8814
        if ftype == TType.I64:
8815
          self.userId = iprot.readI64();
8816
        else:
8817
          iprot.skip(ftype)
8818
      elif fid == 3:
3378 vikas 8819
        if ftype == TType.I32:
8820
          self.event = iprot.readI32();
1845 vikas 8821
        else:
8822
          iprot.skip(ftype)
8823
      elif fid == 4:
8824
        if ftype == TType.STRING:
8825
          self.url = iprot.readString();
8826
        else:
8827
          iprot.skip(ftype)
8828
      elif fid == 5:
8829
        if ftype == TType.STRING:
8830
          self.data = iprot.readString();
8831
        else:
8832
          iprot.skip(ftype)
1859 vikas 8833
      elif fid == 6:
8834
        if ftype == TType.I64:
8835
          self.addedOn = iprot.readI64();
8836
        else:
8837
          iprot.skip(ftype)
1845 vikas 8838
      else:
8839
        iprot.skip(ftype)
8840
      iprot.readFieldEnd()
8841
    iprot.readStructEnd()
8842
 
8843
  def write(self, oprot):
8844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8846
      return
8847
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8848
    if self.affiliateId is not None:
1996 vikas 8849
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8850
      oprot.writeI64(self.affiliateId)
1845 vikas 8851
      oprot.writeFieldEnd()
3431 rajveer 8852
    if self.userId is not None:
1845 vikas 8853
      oprot.writeFieldBegin('userId', TType.I64, 2)
8854
      oprot.writeI64(self.userId)
8855
      oprot.writeFieldEnd()
3431 rajveer 8856
    if self.event is not None:
3378 vikas 8857
      oprot.writeFieldBegin('event', TType.I32, 3)
8858
      oprot.writeI32(self.event)
1845 vikas 8859
      oprot.writeFieldEnd()
3431 rajveer 8860
    if self.url is not None:
1845 vikas 8861
      oprot.writeFieldBegin('url', TType.STRING, 4)
8862
      oprot.writeString(self.url)
8863
      oprot.writeFieldEnd()
3431 rajveer 8864
    if self.data is not None:
1845 vikas 8865
      oprot.writeFieldBegin('data', TType.STRING, 5)
8866
      oprot.writeString(self.data)
8867
      oprot.writeFieldEnd()
3431 rajveer 8868
    if self.addedOn is not None:
1859 vikas 8869
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8870
      oprot.writeI64(self.addedOn)
8871
      oprot.writeFieldEnd()
1845 vikas 8872
    oprot.writeFieldStop()
8873
    oprot.writeStructEnd()
8874
 
3431 rajveer 8875
  def validate(self):
8876
    return
8877
 
8878
 
1845 vikas 8879
  def __repr__(self):
8880
    L = ['%s=%r' % (key, value)
8881
      for key, value in self.__dict__.iteritems()]
8882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8883
 
8884
  def __eq__(self, other):
8885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8886
 
8887
  def __ne__(self, other):
8888
    return not (self == other)
8889
 
8890
class addTrackLog_result:
8891
  """
8892
  Attributes:
8893
   - success
8894
   - utx
8895
  """
8896
 
8897
  thrift_spec = (
8898
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8899
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8900
  )
8901
 
8902
  def __init__(self, success=None, utx=None,):
8903
    self.success = success
8904
    self.utx = utx
8905
 
8906
  def read(self, iprot):
8907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8909
      return
8910
    iprot.readStructBegin()
8911
    while True:
8912
      (fname, ftype, fid) = iprot.readFieldBegin()
8913
      if ftype == TType.STOP:
8914
        break
8915
      if fid == 0:
8916
        if ftype == TType.I64:
8917
          self.success = iprot.readI64();
8918
        else:
8919
          iprot.skip(ftype)
8920
      elif fid == 1:
8921
        if ftype == TType.STRUCT:
1996 vikas 8922
          self.utx = UserAffiliateException()
1845 vikas 8923
          self.utx.read(iprot)
8924
        else:
8925
          iprot.skip(ftype)
8926
      else:
8927
        iprot.skip(ftype)
8928
      iprot.readFieldEnd()
8929
    iprot.readStructEnd()
8930
 
8931
  def write(self, oprot):
8932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8934
      return
8935
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8936
    if self.success is not None:
1845 vikas 8937
      oprot.writeFieldBegin('success', TType.I64, 0)
8938
      oprot.writeI64(self.success)
8939
      oprot.writeFieldEnd()
3431 rajveer 8940
    if self.utx is not None:
1845 vikas 8941
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8942
      self.utx.write(oprot)
8943
      oprot.writeFieldEnd()
8944
    oprot.writeFieldStop()
8945
    oprot.writeStructEnd()
8946
 
3431 rajveer 8947
  def validate(self):
8948
    return
8949
 
8950
 
1845 vikas 8951
  def __repr__(self):
8952
    L = ['%s=%r' % (key, value)
8953
      for key, value in self.__dict__.iteritems()]
8954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8955
 
8956
  def __eq__(self, other):
8957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8958
 
8959
  def __ne__(self, other):
8960
    return not (self == other)
8961
 
8962
class getTrackLogById_args:
8963
  """
8964
  Attributes:
8965
   - id
8966
  """
8967
 
8968
  thrift_spec = (
8969
    None, # 0
8970
    (1, TType.I64, 'id', None, None, ), # 1
8971
  )
8972
 
8973
  def __init__(self, id=None,):
8974
    self.id = id
8975
 
8976
  def read(self, iprot):
8977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8979
      return
8980
    iprot.readStructBegin()
8981
    while True:
8982
      (fname, ftype, fid) = iprot.readFieldBegin()
8983
      if ftype == TType.STOP:
8984
        break
8985
      if fid == 1:
8986
        if ftype == TType.I64:
8987
          self.id = iprot.readI64();
8988
        else:
8989
          iprot.skip(ftype)
8990
      else:
8991
        iprot.skip(ftype)
8992
      iprot.readFieldEnd()
8993
    iprot.readStructEnd()
8994
 
8995
  def write(self, oprot):
8996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8998
      return
8999
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 9000
    if self.id is not None:
1845 vikas 9001
      oprot.writeFieldBegin('id', TType.I64, 1)
9002
      oprot.writeI64(self.id)
9003
      oprot.writeFieldEnd()
9004
    oprot.writeFieldStop()
9005
    oprot.writeStructEnd()
9006
 
3431 rajveer 9007
  def validate(self):
9008
    return
9009
 
9010
 
1845 vikas 9011
  def __repr__(self):
9012
    L = ['%s=%r' % (key, value)
9013
      for key, value in self.__dict__.iteritems()]
9014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9015
 
9016
  def __eq__(self, other):
9017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9018
 
9019
  def __ne__(self, other):
9020
    return not (self == other)
9021
 
9022
class getTrackLogById_result:
9023
  """
9024
  Attributes:
9025
   - success
9026
   - utx
9027
  """
9028
 
9029
  thrift_spec = (
9030
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9031
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9032
  )
9033
 
9034
  def __init__(self, success=None, utx=None,):
9035
    self.success = success
9036
    self.utx = utx
9037
 
9038
  def read(self, iprot):
9039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9041
      return
9042
    iprot.readStructBegin()
9043
    while True:
9044
      (fname, ftype, fid) = iprot.readFieldBegin()
9045
      if ftype == TType.STOP:
9046
        break
9047
      if fid == 0:
9048
        if ftype == TType.STRUCT:
9049
          self.success = TrackLog()
9050
          self.success.read(iprot)
9051
        else:
9052
          iprot.skip(ftype)
9053
      elif fid == 1:
9054
        if ftype == TType.STRUCT:
1996 vikas 9055
          self.utx = UserAffiliateException()
1845 vikas 9056
          self.utx.read(iprot)
9057
        else:
9058
          iprot.skip(ftype)
9059
      else:
9060
        iprot.skip(ftype)
9061
      iprot.readFieldEnd()
9062
    iprot.readStructEnd()
9063
 
9064
  def write(self, oprot):
9065
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9066
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9067
      return
9068
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9069
    if self.success is not None:
1845 vikas 9070
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9071
      self.success.write(oprot)
9072
      oprot.writeFieldEnd()
3431 rajveer 9073
    if self.utx is not None:
1845 vikas 9074
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9075
      self.utx.write(oprot)
9076
      oprot.writeFieldEnd()
9077
    oprot.writeFieldStop()
9078
    oprot.writeStructEnd()
9079
 
3431 rajveer 9080
  def validate(self):
9081
    return
9082
 
9083
 
1845 vikas 9084
  def __repr__(self):
9085
    L = ['%s=%r' % (key, value)
9086
      for key, value in self.__dict__.iteritems()]
9087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9088
 
9089
  def __eq__(self, other):
9090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9091
 
9092
  def __ne__(self, other):
9093
    return not (self == other)
9094
 
1996 vikas 9095
class getTrackLogsByAffiliate_args:
1845 vikas 9096
  """
9097
  Attributes:
1996 vikas 9098
   - affiliateId
3293 vikas 9099
   - startDate
9100
   - endDate
1845 vikas 9101
  """
9102
 
9103
  thrift_spec = (
9104
    None, # 0
1996 vikas 9105
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9106
    (2, TType.I64, 'startDate', None, None, ), # 2
9107
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9108
  )
9109
 
3293 vikas 9110
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9111
    self.affiliateId = affiliateId
3293 vikas 9112
    self.startDate = startDate
9113
    self.endDate = endDate
1845 vikas 9114
 
9115
  def read(self, iprot):
9116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9118
      return
9119
    iprot.readStructBegin()
9120
    while True:
9121
      (fname, ftype, fid) = iprot.readFieldBegin()
9122
      if ftype == TType.STOP:
9123
        break
9124
      if fid == 1:
9125
        if ftype == TType.I64:
1996 vikas 9126
          self.affiliateId = iprot.readI64();
1845 vikas 9127
        else:
9128
          iprot.skip(ftype)
3293 vikas 9129
      elif fid == 2:
9130
        if ftype == TType.I64:
9131
          self.startDate = iprot.readI64();
9132
        else:
9133
          iprot.skip(ftype)
9134
      elif fid == 3:
9135
        if ftype == TType.I64:
9136
          self.endDate = iprot.readI64();
9137
        else:
9138
          iprot.skip(ftype)
1845 vikas 9139
      else:
9140
        iprot.skip(ftype)
9141
      iprot.readFieldEnd()
9142
    iprot.readStructEnd()
9143
 
9144
  def write(self, oprot):
9145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9147
      return
1996 vikas 9148
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9149
    if self.affiliateId is not None:
1996 vikas 9150
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9151
      oprot.writeI64(self.affiliateId)
1845 vikas 9152
      oprot.writeFieldEnd()
3431 rajveer 9153
    if self.startDate is not None:
3293 vikas 9154
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9155
      oprot.writeI64(self.startDate)
9156
      oprot.writeFieldEnd()
3431 rajveer 9157
    if self.endDate is not None:
3293 vikas 9158
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9159
      oprot.writeI64(self.endDate)
9160
      oprot.writeFieldEnd()
1845 vikas 9161
    oprot.writeFieldStop()
9162
    oprot.writeStructEnd()
9163
 
3431 rajveer 9164
  def validate(self):
9165
    return
9166
 
9167
 
1845 vikas 9168
  def __repr__(self):
9169
    L = ['%s=%r' % (key, value)
9170
      for key, value in self.__dict__.iteritems()]
9171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9172
 
9173
  def __eq__(self, other):
9174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9175
 
9176
  def __ne__(self, other):
9177
    return not (self == other)
9178
 
1996 vikas 9179
class getTrackLogsByAffiliate_result:
1845 vikas 9180
  """
9181
  Attributes:
9182
   - success
9183
   - utx
9184
  """
9185
 
9186
  thrift_spec = (
9187
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9188
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9189
  )
9190
 
9191
  def __init__(self, success=None, utx=None,):
9192
    self.success = success
9193
    self.utx = utx
9194
 
9195
  def read(self, iprot):
9196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9198
      return
9199
    iprot.readStructBegin()
9200
    while True:
9201
      (fname, ftype, fid) = iprot.readFieldBegin()
9202
      if ftype == TType.STOP:
9203
        break
9204
      if fid == 0:
9205
        if ftype == TType.LIST:
9206
          self.success = []
3554 varun.gupt 9207
          (_etype80, _size77) = iprot.readListBegin()
9208
          for _i81 in xrange(_size77):
9209
            _elem82 = TrackLog()
9210
            _elem82.read(iprot)
9211
            self.success.append(_elem82)
1845 vikas 9212
          iprot.readListEnd()
9213
        else:
9214
          iprot.skip(ftype)
9215
      elif fid == 1:
9216
        if ftype == TType.STRUCT:
1996 vikas 9217
          self.utx = UserAffiliateException()
1845 vikas 9218
          self.utx.read(iprot)
9219
        else:
9220
          iprot.skip(ftype)
9221
      else:
9222
        iprot.skip(ftype)
9223
      iprot.readFieldEnd()
9224
    iprot.readStructEnd()
9225
 
9226
  def write(self, oprot):
9227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9229
      return
1996 vikas 9230
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9231
    if self.success is not None:
1845 vikas 9232
      oprot.writeFieldBegin('success', TType.LIST, 0)
9233
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9234
      for iter83 in self.success:
9235
        iter83.write(oprot)
1845 vikas 9236
      oprot.writeListEnd()
9237
      oprot.writeFieldEnd()
3431 rajveer 9238
    if self.utx is not None:
1845 vikas 9239
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9240
      self.utx.write(oprot)
9241
      oprot.writeFieldEnd()
9242
    oprot.writeFieldStop()
9243
    oprot.writeStructEnd()
9244
 
3431 rajveer 9245
  def validate(self):
9246
    return
9247
 
9248
 
1845 vikas 9249
  def __repr__(self):
9250
    L = ['%s=%r' % (key, value)
9251
      for key, value in self.__dict__.iteritems()]
9252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9253
 
9254
  def __eq__(self, other):
9255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9256
 
9257
  def __ne__(self, other):
9258
    return not (self == other)
9259
 
9260
class getTrackLogsByUser_args:
9261
  """
9262
  Attributes:
9263
   - userId
9264
  """
9265
 
9266
  thrift_spec = (
9267
    None, # 0
9268
    (1, TType.I64, 'userId', None, None, ), # 1
9269
  )
9270
 
9271
  def __init__(self, userId=None,):
9272
    self.userId = userId
9273
 
9274
  def read(self, iprot):
9275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9277
      return
9278
    iprot.readStructBegin()
9279
    while True:
9280
      (fname, ftype, fid) = iprot.readFieldBegin()
9281
      if ftype == TType.STOP:
9282
        break
9283
      if fid == 1:
9284
        if ftype == TType.I64:
9285
          self.userId = iprot.readI64();
9286
        else:
9287
          iprot.skip(ftype)
9288
      else:
9289
        iprot.skip(ftype)
9290
      iprot.readFieldEnd()
9291
    iprot.readStructEnd()
9292
 
9293
  def write(self, oprot):
9294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9296
      return
9297
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9298
    if self.userId is not None:
1845 vikas 9299
      oprot.writeFieldBegin('userId', TType.I64, 1)
9300
      oprot.writeI64(self.userId)
9301
      oprot.writeFieldEnd()
9302
    oprot.writeFieldStop()
9303
    oprot.writeStructEnd()
9304
 
3431 rajveer 9305
  def validate(self):
9306
    return
9307
 
9308
 
1845 vikas 9309
  def __repr__(self):
9310
    L = ['%s=%r' % (key, value)
9311
      for key, value in self.__dict__.iteritems()]
9312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9313
 
9314
  def __eq__(self, other):
9315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9316
 
9317
  def __ne__(self, other):
9318
    return not (self == other)
9319
 
9320
class getTrackLogsByUser_result:
9321
  """
9322
  Attributes:
9323
   - success
9324
   - utx
9325
  """
9326
 
9327
  thrift_spec = (
9328
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9329
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9330
  )
9331
 
9332
  def __init__(self, success=None, utx=None,):
9333
    self.success = success
9334
    self.utx = utx
9335
 
9336
  def read(self, iprot):
9337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9339
      return
9340
    iprot.readStructBegin()
9341
    while True:
9342
      (fname, ftype, fid) = iprot.readFieldBegin()
9343
      if ftype == TType.STOP:
9344
        break
9345
      if fid == 0:
9346
        if ftype == TType.LIST:
9347
          self.success = []
3554 varun.gupt 9348
          (_etype87, _size84) = iprot.readListBegin()
9349
          for _i88 in xrange(_size84):
9350
            _elem89 = TrackLog()
9351
            _elem89.read(iprot)
9352
            self.success.append(_elem89)
1845 vikas 9353
          iprot.readListEnd()
9354
        else:
9355
          iprot.skip(ftype)
9356
      elif fid == 1:
9357
        if ftype == TType.STRUCT:
1996 vikas 9358
          self.utx = UserAffiliateException()
1845 vikas 9359
          self.utx.read(iprot)
9360
        else:
9361
          iprot.skip(ftype)
9362
      else:
9363
        iprot.skip(ftype)
9364
      iprot.readFieldEnd()
9365
    iprot.readStructEnd()
9366
 
9367
  def write(self, oprot):
9368
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9369
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9370
      return
9371
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9372
    if self.success is not None:
1845 vikas 9373
      oprot.writeFieldBegin('success', TType.LIST, 0)
9374
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9375
      for iter90 in self.success:
9376
        iter90.write(oprot)
1845 vikas 9377
      oprot.writeListEnd()
9378
      oprot.writeFieldEnd()
3431 rajveer 9379
    if self.utx is not None:
1845 vikas 9380
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9381
      self.utx.write(oprot)
9382
      oprot.writeFieldEnd()
9383
    oprot.writeFieldStop()
9384
    oprot.writeStructEnd()
9385
 
3431 rajveer 9386
  def validate(self):
9387
    return
9388
 
9389
 
1845 vikas 9390
  def __repr__(self):
9391
    L = ['%s=%r' % (key, value)
9392
      for key, value in self.__dict__.iteritems()]
9393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9394
 
9395
  def __eq__(self, other):
9396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9397
 
9398
  def __ne__(self, other):
9399
    return not (self == other)
9400
 
9401
class getTrackLogs_args:
9402
  """
9403
  Attributes:
9404
   - userId
9405
   - event
9406
   - url
9407
  """
9408
 
9409
  thrift_spec = (
9410
    None, # 0
1996 vikas 9411
    (1, TType.I64, 'userId', None, None, ), # 1
9412
    (2, TType.STRING, 'event', None, None, ), # 2
9413
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9414
  )
9415
 
1996 vikas 9416
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9417
    self.userId = userId
9418
    self.event = event
9419
    self.url = url
9420
 
9421
  def read(self, iprot):
9422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9424
      return
9425
    iprot.readStructBegin()
9426
    while True:
9427
      (fname, ftype, fid) = iprot.readFieldBegin()
9428
      if ftype == TType.STOP:
9429
        break
9430
      if fid == 1:
9431
        if ftype == TType.I64:
1996 vikas 9432
          self.userId = iprot.readI64();
1845 vikas 9433
        else:
9434
          iprot.skip(ftype)
9435
      elif fid == 2:
9436
        if ftype == TType.STRING:
9437
          self.event = iprot.readString();
9438
        else:
9439
          iprot.skip(ftype)
1996 vikas 9440
      elif fid == 3:
1845 vikas 9441
        if ftype == TType.STRING:
9442
          self.url = iprot.readString();
9443
        else:
9444
          iprot.skip(ftype)
9445
      else:
9446
        iprot.skip(ftype)
9447
      iprot.readFieldEnd()
9448
    iprot.readStructEnd()
9449
 
9450
  def write(self, oprot):
9451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9453
      return
9454
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9455
    if self.userId is not None:
1996 vikas 9456
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9457
      oprot.writeI64(self.userId)
9458
      oprot.writeFieldEnd()
3431 rajveer 9459
    if self.event is not None:
1996 vikas 9460
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9461
      oprot.writeString(self.event)
9462
      oprot.writeFieldEnd()
3431 rajveer 9463
    if self.url is not None:
1996 vikas 9464
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9465
      oprot.writeString(self.url)
9466
      oprot.writeFieldEnd()
9467
    oprot.writeFieldStop()
9468
    oprot.writeStructEnd()
9469
 
3431 rajveer 9470
  def validate(self):
9471
    return
9472
 
9473
 
1845 vikas 9474
  def __repr__(self):
9475
    L = ['%s=%r' % (key, value)
9476
      for key, value in self.__dict__.iteritems()]
9477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9478
 
9479
  def __eq__(self, other):
9480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9481
 
9482
  def __ne__(self, other):
9483
    return not (self == other)
9484
 
9485
class getTrackLogs_result:
9486
  """
9487
  Attributes:
9488
   - success
9489
   - utx
9490
  """
9491
 
9492
  thrift_spec = (
9493
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9494
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9495
  )
9496
 
9497
  def __init__(self, success=None, utx=None,):
9498
    self.success = success
9499
    self.utx = utx
9500
 
9501
  def read(self, iprot):
9502
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9503
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9504
      return
9505
    iprot.readStructBegin()
9506
    while True:
9507
      (fname, ftype, fid) = iprot.readFieldBegin()
9508
      if ftype == TType.STOP:
9509
        break
9510
      if fid == 0:
9511
        if ftype == TType.LIST:
9512
          self.success = []
3554 varun.gupt 9513
          (_etype94, _size91) = iprot.readListBegin()
9514
          for _i95 in xrange(_size91):
9515
            _elem96 = TrackLog()
9516
            _elem96.read(iprot)
9517
            self.success.append(_elem96)
1845 vikas 9518
          iprot.readListEnd()
9519
        else:
9520
          iprot.skip(ftype)
9521
      elif fid == 1:
9522
        if ftype == TType.STRUCT:
1996 vikas 9523
          self.utx = UserAffiliateException()
1845 vikas 9524
          self.utx.read(iprot)
9525
        else:
9526
          iprot.skip(ftype)
9527
      else:
9528
        iprot.skip(ftype)
9529
      iprot.readFieldEnd()
9530
    iprot.readStructEnd()
9531
 
9532
  def write(self, oprot):
9533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9535
      return
9536
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9537
    if self.success is not None:
1845 vikas 9538
      oprot.writeFieldBegin('success', TType.LIST, 0)
9539
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9540
      for iter97 in self.success:
9541
        iter97.write(oprot)
1845 vikas 9542
      oprot.writeListEnd()
9543
      oprot.writeFieldEnd()
3431 rajveer 9544
    if self.utx is not None:
1845 vikas 9545
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9546
      self.utx.write(oprot)
9547
      oprot.writeFieldEnd()
9548
    oprot.writeFieldStop()
9549
    oprot.writeStructEnd()
9550
 
3431 rajveer 9551
  def validate(self):
9552
    return
9553
 
9554
 
1845 vikas 9555
  def __repr__(self):
9556
    L = ['%s=%r' % (key, value)
9557
      for key, value in self.__dict__.iteritems()]
9558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9559
 
9560
  def __eq__(self, other):
9561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9562
 
9563
  def __ne__(self, other):
9564
    return not (self == other)
9565
 
559 chandransh 9566
class createCart_args:
94 ashish 9567
  """
9568
  Attributes:
559 chandransh 9569
   - userId
94 ashish 9570
  """
9571
 
9572
  thrift_spec = (
9573
    None, # 0
559 chandransh 9574
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9575
  )
9576
 
559 chandransh 9577
  def __init__(self, userId=None,):
9578
    self.userId = userId
94 ashish 9579
 
9580
  def read(self, iprot):
9581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9583
      return
9584
    iprot.readStructBegin()
9585
    while True:
9586
      (fname, ftype, fid) = iprot.readFieldBegin()
9587
      if ftype == TType.STOP:
9588
        break
9589
      if fid == 1:
9590
        if ftype == TType.I64:
559 chandransh 9591
          self.userId = iprot.readI64();
94 ashish 9592
        else:
9593
          iprot.skip(ftype)
559 chandransh 9594
      else:
9595
        iprot.skip(ftype)
9596
      iprot.readFieldEnd()
9597
    iprot.readStructEnd()
9598
 
9599
  def write(self, oprot):
9600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9602
      return
9603
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9604
    if self.userId is not None:
559 chandransh 9605
      oprot.writeFieldBegin('userId', TType.I64, 1)
9606
      oprot.writeI64(self.userId)
9607
      oprot.writeFieldEnd()
9608
    oprot.writeFieldStop()
9609
    oprot.writeStructEnd()
9610
 
3431 rajveer 9611
  def validate(self):
9612
    return
9613
 
9614
 
559 chandransh 9615
  def __repr__(self):
9616
    L = ['%s=%r' % (key, value)
9617
      for key, value in self.__dict__.iteritems()]
9618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9619
 
9620
  def __eq__(self, other):
9621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9622
 
9623
  def __ne__(self, other):
9624
    return not (self == other)
9625
 
9626
class createCart_result:
9627
  """
9628
  Attributes:
9629
   - success
9630
   - scx
9631
  """
9632
 
9633
  thrift_spec = (
9634
    (0, TType.I64, 'success', None, None, ), # 0
9635
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9636
  )
9637
 
9638
  def __init__(self, success=None, scx=None,):
9639
    self.success = success
9640
    self.scx = scx
9641
 
9642
  def read(self, iprot):
9643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9645
      return
9646
    iprot.readStructBegin()
9647
    while True:
9648
      (fname, ftype, fid) = iprot.readFieldBegin()
9649
      if ftype == TType.STOP:
9650
        break
9651
      if fid == 0:
94 ashish 9652
        if ftype == TType.I64:
559 chandransh 9653
          self.success = iprot.readI64();
94 ashish 9654
        else:
9655
          iprot.skip(ftype)
559 chandransh 9656
      elif fid == 1:
9657
        if ftype == TType.STRUCT:
9658
          self.scx = ShoppingCartException()
9659
          self.scx.read(iprot)
9660
        else:
9661
          iprot.skip(ftype)
94 ashish 9662
      else:
9663
        iprot.skip(ftype)
9664
      iprot.readFieldEnd()
9665
    iprot.readStructEnd()
9666
 
9667
  def write(self, oprot):
9668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9670
      return
559 chandransh 9671
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9672
    if self.success is not None:
559 chandransh 9673
      oprot.writeFieldBegin('success', TType.I64, 0)
9674
      oprot.writeI64(self.success)
94 ashish 9675
      oprot.writeFieldEnd()
3431 rajveer 9676
    if self.scx is not None:
559 chandransh 9677
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9678
      self.scx.write(oprot)
94 ashish 9679
      oprot.writeFieldEnd()
9680
    oprot.writeFieldStop()
9681
    oprot.writeStructEnd()
9682
 
3431 rajveer 9683
  def validate(self):
9684
    return
9685
 
9686
 
94 ashish 9687
  def __repr__(self):
9688
    L = ['%s=%r' % (key, value)
9689
      for key, value in self.__dict__.iteritems()]
9690
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9691
 
9692
  def __eq__(self, other):
9693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9694
 
9695
  def __ne__(self, other):
9696
    return not (self == other)
9697
 
559 chandransh 9698
class getCurrentCart_args:
94 ashish 9699
  """
9700
  Attributes:
559 chandransh 9701
   - userId
9702
  """
9703
 
9704
  thrift_spec = (
9705
    None, # 0
9706
    (1, TType.I64, 'userId', None, None, ), # 1
9707
  )
9708
 
9709
  def __init__(self, userId=None,):
9710
    self.userId = userId
9711
 
9712
  def read(self, iprot):
9713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9715
      return
9716
    iprot.readStructBegin()
9717
    while True:
9718
      (fname, ftype, fid) = iprot.readFieldBegin()
9719
      if ftype == TType.STOP:
9720
        break
9721
      if fid == 1:
9722
        if ftype == TType.I64:
9723
          self.userId = iprot.readI64();
9724
        else:
9725
          iprot.skip(ftype)
9726
      else:
9727
        iprot.skip(ftype)
9728
      iprot.readFieldEnd()
9729
    iprot.readStructEnd()
9730
 
9731
  def write(self, oprot):
9732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9734
      return
9735
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9736
    if self.userId is not None:
559 chandransh 9737
      oprot.writeFieldBegin('userId', TType.I64, 1)
9738
      oprot.writeI64(self.userId)
9739
      oprot.writeFieldEnd()
9740
    oprot.writeFieldStop()
9741
    oprot.writeStructEnd()
9742
 
3431 rajveer 9743
  def validate(self):
9744
    return
9745
 
9746
 
559 chandransh 9747
  def __repr__(self):
9748
    L = ['%s=%r' % (key, value)
9749
      for key, value in self.__dict__.iteritems()]
9750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9751
 
9752
  def __eq__(self, other):
9753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9754
 
9755
  def __ne__(self, other):
9756
    return not (self == other)
9757
 
9758
class getCurrentCart_result:
9759
  """
9760
  Attributes:
94 ashish 9761
   - success
559 chandransh 9762
   - scx
94 ashish 9763
  """
9764
 
9765
  thrift_spec = (
559 chandransh 9766
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9767
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9768
  )
9769
 
559 chandransh 9770
  def __init__(self, success=None, scx=None,):
94 ashish 9771
    self.success = success
559 chandransh 9772
    self.scx = scx
94 ashish 9773
 
9774
  def read(self, iprot):
9775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9777
      return
9778
    iprot.readStructBegin()
9779
    while True:
9780
      (fname, ftype, fid) = iprot.readFieldBegin()
9781
      if ftype == TType.STOP:
9782
        break
9783
      if fid == 0:
559 chandransh 9784
        if ftype == TType.STRUCT:
9785
          self.success = Cart()
9786
          self.success.read(iprot)
94 ashish 9787
        else:
9788
          iprot.skip(ftype)
9789
      elif fid == 1:
9790
        if ftype == TType.STRUCT:
559 chandransh 9791
          self.scx = ShoppingCartException()
9792
          self.scx.read(iprot)
94 ashish 9793
        else:
9794
          iprot.skip(ftype)
9795
      else:
9796
        iprot.skip(ftype)
9797
      iprot.readFieldEnd()
9798
    iprot.readStructEnd()
9799
 
9800
  def write(self, oprot):
9801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9803
      return
559 chandransh 9804
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9805
    if self.success is not None:
559 chandransh 9806
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9807
      self.success.write(oprot)
94 ashish 9808
      oprot.writeFieldEnd()
3431 rajveer 9809
    if self.scx is not None:
559 chandransh 9810
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9811
      self.scx.write(oprot)
94 ashish 9812
      oprot.writeFieldEnd()
9813
    oprot.writeFieldStop()
9814
    oprot.writeStructEnd()
9815
 
3431 rajveer 9816
  def validate(self):
9817
    return
9818
 
9819
 
94 ashish 9820
  def __repr__(self):
9821
    L = ['%s=%r' % (key, value)
9822
      for key, value in self.__dict__.iteritems()]
9823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9824
 
9825
  def __eq__(self, other):
9826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9827
 
9828
  def __ne__(self, other):
9829
    return not (self == other)
9830
 
559 chandransh 9831
class getCart_args:
504 rajveer 9832
  """
9833
  Attributes:
559 chandransh 9834
   - cartId
504 rajveer 9835
  """
9836
 
9837
  thrift_spec = (
9838
    None, # 0
559 chandransh 9839
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9840
  )
9841
 
559 chandransh 9842
  def __init__(self, cartId=None,):
9843
    self.cartId = cartId
504 rajveer 9844
 
9845
  def read(self, iprot):
9846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9848
      return
9849
    iprot.readStructBegin()
9850
    while True:
9851
      (fname, ftype, fid) = iprot.readFieldBegin()
9852
      if ftype == TType.STOP:
9853
        break
9854
      if fid == 1:
9855
        if ftype == TType.I64:
559 chandransh 9856
          self.cartId = iprot.readI64();
504 rajveer 9857
        else:
9858
          iprot.skip(ftype)
9859
      else:
9860
        iprot.skip(ftype)
9861
      iprot.readFieldEnd()
9862
    iprot.readStructEnd()
9863
 
9864
  def write(self, oprot):
9865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9867
      return
559 chandransh 9868
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9869
    if self.cartId is not None:
559 chandransh 9870
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9871
      oprot.writeI64(self.cartId)
504 rajveer 9872
      oprot.writeFieldEnd()
9873
    oprot.writeFieldStop()
9874
    oprot.writeStructEnd()
9875
 
3431 rajveer 9876
  def validate(self):
9877
    return
9878
 
9879
 
504 rajveer 9880
  def __repr__(self):
9881
    L = ['%s=%r' % (key, value)
9882
      for key, value in self.__dict__.iteritems()]
9883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9884
 
9885
  def __eq__(self, other):
9886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9887
 
9888
  def __ne__(self, other):
9889
    return not (self == other)
9890
 
559 chandransh 9891
class getCart_result:
504 rajveer 9892
  """
9893
  Attributes:
9894
   - success
559 chandransh 9895
   - scx
504 rajveer 9896
  """
9897
 
9898
  thrift_spec = (
559 chandransh 9899
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9900
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9901
  )
9902
 
559 chandransh 9903
  def __init__(self, success=None, scx=None,):
504 rajveer 9904
    self.success = success
559 chandransh 9905
    self.scx = scx
504 rajveer 9906
 
9907
  def read(self, iprot):
9908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9910
      return
9911
    iprot.readStructBegin()
9912
    while True:
9913
      (fname, ftype, fid) = iprot.readFieldBegin()
9914
      if ftype == TType.STOP:
9915
        break
9916
      if fid == 0:
559 chandransh 9917
        if ftype == TType.STRUCT:
9918
          self.success = Cart()
9919
          self.success.read(iprot)
504 rajveer 9920
        else:
9921
          iprot.skip(ftype)
9922
      elif fid == 1:
9923
        if ftype == TType.STRUCT:
559 chandransh 9924
          self.scx = ShoppingCartException()
9925
          self.scx.read(iprot)
504 rajveer 9926
        else:
9927
          iprot.skip(ftype)
9928
      else:
9929
        iprot.skip(ftype)
9930
      iprot.readFieldEnd()
9931
    iprot.readStructEnd()
9932
 
9933
  def write(self, oprot):
9934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9936
      return
559 chandransh 9937
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9938
    if self.success is not None:
559 chandransh 9939
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9940
      self.success.write(oprot)
504 rajveer 9941
      oprot.writeFieldEnd()
3431 rajveer 9942
    if self.scx is not None:
559 chandransh 9943
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9944
      self.scx.write(oprot)
504 rajveer 9945
      oprot.writeFieldEnd()
9946
    oprot.writeFieldStop()
9947
    oprot.writeStructEnd()
9948
 
3431 rajveer 9949
  def validate(self):
9950
    return
9951
 
9952
 
504 rajveer 9953
  def __repr__(self):
9954
    L = ['%s=%r' % (key, value)
9955
      for key, value in self.__dict__.iteritems()]
9956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9957
 
9958
  def __eq__(self, other):
9959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9960
 
9961
  def __ne__(self, other):
9962
    return not (self == other)
9963
 
559 chandransh 9964
class getCartsForUser_args:
94 ashish 9965
  """
9966
  Attributes:
559 chandransh 9967
   - userId
9968
   - status
94 ashish 9969
  """
9970
 
9971
  thrift_spec = (
9972
    None, # 0
559 chandransh 9973
    (1, TType.I64, 'userId', None, None, ), # 1
9974
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 9975
  )
9976
 
559 chandransh 9977
  def __init__(self, userId=None, status=None,):
9978
    self.userId = userId
9979
    self.status = status
94 ashish 9980
 
9981
  def read(self, iprot):
9982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9984
      return
9985
    iprot.readStructBegin()
9986
    while True:
9987
      (fname, ftype, fid) = iprot.readFieldBegin()
9988
      if ftype == TType.STOP:
9989
        break
9990
      if fid == 1:
9991
        if ftype == TType.I64:
559 chandransh 9992
          self.userId = iprot.readI64();
94 ashish 9993
        else:
9994
          iprot.skip(ftype)
9995
      elif fid == 2:
559 chandransh 9996
        if ftype == TType.I32:
9997
          self.status = iprot.readI32();
94 ashish 9998
        else:
9999
          iprot.skip(ftype)
10000
      else:
10001
        iprot.skip(ftype)
10002
      iprot.readFieldEnd()
10003
    iprot.readStructEnd()
10004
 
10005
  def write(self, oprot):
10006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10008
      return
559 chandransh 10009
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 10010
    if self.userId is not None:
559 chandransh 10011
      oprot.writeFieldBegin('userId', TType.I64, 1)
10012
      oprot.writeI64(self.userId)
94 ashish 10013
      oprot.writeFieldEnd()
3431 rajveer 10014
    if self.status is not None:
559 chandransh 10015
      oprot.writeFieldBegin('status', TType.I32, 2)
10016
      oprot.writeI32(self.status)
94 ashish 10017
      oprot.writeFieldEnd()
10018
    oprot.writeFieldStop()
10019
    oprot.writeStructEnd()
10020
 
3431 rajveer 10021
  def validate(self):
10022
    return
10023
 
10024
 
94 ashish 10025
  def __repr__(self):
10026
    L = ['%s=%r' % (key, value)
10027
      for key, value in self.__dict__.iteritems()]
10028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10029
 
10030
  def __eq__(self, other):
10031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10032
 
10033
  def __ne__(self, other):
10034
    return not (self == other)
10035
 
559 chandransh 10036
class getCartsForUser_result:
94 ashish 10037
  """
10038
  Attributes:
10039
   - success
559 chandransh 10040
   - scx
94 ashish 10041
  """
10042
 
10043
  thrift_spec = (
559 chandransh 10044
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10045
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10046
  )
10047
 
559 chandransh 10048
  def __init__(self, success=None, scx=None,):
94 ashish 10049
    self.success = success
559 chandransh 10050
    self.scx = scx
94 ashish 10051
 
10052
  def read(self, iprot):
10053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10055
      return
10056
    iprot.readStructBegin()
10057
    while True:
10058
      (fname, ftype, fid) = iprot.readFieldBegin()
10059
      if ftype == TType.STOP:
10060
        break
10061
      if fid == 0:
559 chandransh 10062
        if ftype == TType.LIST:
10063
          self.success = []
3554 varun.gupt 10064
          (_etype101, _size98) = iprot.readListBegin()
10065
          for _i102 in xrange(_size98):
10066
            _elem103 = Cart()
10067
            _elem103.read(iprot)
10068
            self.success.append(_elem103)
559 chandransh 10069
          iprot.readListEnd()
94 ashish 10070
        else:
10071
          iprot.skip(ftype)
10072
      elif fid == 1:
10073
        if ftype == TType.STRUCT:
559 chandransh 10074
          self.scx = ShoppingCartException()
10075
          self.scx.read(iprot)
94 ashish 10076
        else:
10077
          iprot.skip(ftype)
10078
      else:
10079
        iprot.skip(ftype)
10080
      iprot.readFieldEnd()
10081
    iprot.readStructEnd()
10082
 
10083
  def write(self, oprot):
10084
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10085
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10086
      return
559 chandransh 10087
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 10088
    if self.success is not None:
559 chandransh 10089
      oprot.writeFieldBegin('success', TType.LIST, 0)
10090
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10091
      for iter104 in self.success:
10092
        iter104.write(oprot)
559 chandransh 10093
      oprot.writeListEnd()
94 ashish 10094
      oprot.writeFieldEnd()
3431 rajveer 10095
    if self.scx is not None:
559 chandransh 10096
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10097
      self.scx.write(oprot)
94 ashish 10098
      oprot.writeFieldEnd()
10099
    oprot.writeFieldStop()
10100
    oprot.writeStructEnd()
10101
 
3431 rajveer 10102
  def validate(self):
10103
    return
10104
 
10105
 
94 ashish 10106
  def __repr__(self):
10107
    L = ['%s=%r' % (key, value)
10108
      for key, value in self.__dict__.iteritems()]
10109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10110
 
10111
  def __eq__(self, other):
10112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10113
 
10114
  def __ne__(self, other):
10115
    return not (self == other)
10116
 
559 chandransh 10117
class getCartsByStatus_args:
94 ashish 10118
  """
10119
  Attributes:
559 chandransh 10120
   - status
94 ashish 10121
  """
10122
 
10123
  thrift_spec = (
10124
    None, # 0
559 chandransh 10125
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10126
  )
10127
 
559 chandransh 10128
  def __init__(self, status=None,):
10129
    self.status = status
94 ashish 10130
 
10131
  def read(self, iprot):
10132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10134
      return
10135
    iprot.readStructBegin()
10136
    while True:
10137
      (fname, ftype, fid) = iprot.readFieldBegin()
10138
      if ftype == TType.STOP:
10139
        break
10140
      if fid == 1:
559 chandransh 10141
        if ftype == TType.I32:
10142
          self.status = iprot.readI32();
10143
        else:
10144
          iprot.skip(ftype)
10145
      else:
10146
        iprot.skip(ftype)
10147
      iprot.readFieldEnd()
10148
    iprot.readStructEnd()
10149
 
10150
  def write(self, oprot):
10151
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10152
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10153
      return
10154
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10155
    if self.status is not None:
559 chandransh 10156
      oprot.writeFieldBegin('status', TType.I32, 1)
10157
      oprot.writeI32(self.status)
10158
      oprot.writeFieldEnd()
10159
    oprot.writeFieldStop()
10160
    oprot.writeStructEnd()
10161
 
3431 rajveer 10162
  def validate(self):
10163
    return
10164
 
10165
 
559 chandransh 10166
  def __repr__(self):
10167
    L = ['%s=%r' % (key, value)
10168
      for key, value in self.__dict__.iteritems()]
10169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10170
 
10171
  def __eq__(self, other):
10172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10173
 
10174
  def __ne__(self, other):
10175
    return not (self == other)
10176
 
10177
class getCartsByStatus_result:
10178
  """
10179
  Attributes:
10180
   - success
10181
   - scx
10182
  """
10183
 
10184
  thrift_spec = (
10185
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10186
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10187
  )
10188
 
10189
  def __init__(self, success=None, scx=None,):
10190
    self.success = success
10191
    self.scx = scx
10192
 
10193
  def read(self, iprot):
10194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10196
      return
10197
    iprot.readStructBegin()
10198
    while True:
10199
      (fname, ftype, fid) = iprot.readFieldBegin()
10200
      if ftype == TType.STOP:
10201
        break
10202
      if fid == 0:
10203
        if ftype == TType.LIST:
10204
          self.success = []
3554 varun.gupt 10205
          (_etype108, _size105) = iprot.readListBegin()
10206
          for _i109 in xrange(_size105):
10207
            _elem110 = Cart()
10208
            _elem110.read(iprot)
10209
            self.success.append(_elem110)
559 chandransh 10210
          iprot.readListEnd()
10211
        else:
10212
          iprot.skip(ftype)
10213
      elif fid == 1:
10214
        if ftype == TType.STRUCT:
10215
          self.scx = ShoppingCartException()
10216
          self.scx.read(iprot)
10217
        else:
10218
          iprot.skip(ftype)
10219
      else:
10220
        iprot.skip(ftype)
10221
      iprot.readFieldEnd()
10222
    iprot.readStructEnd()
10223
 
10224
  def write(self, oprot):
10225
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10226
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10227
      return
10228
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10229
    if self.success is not None:
559 chandransh 10230
      oprot.writeFieldBegin('success', TType.LIST, 0)
10231
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10232
      for iter111 in self.success:
10233
        iter111.write(oprot)
559 chandransh 10234
      oprot.writeListEnd()
10235
      oprot.writeFieldEnd()
3431 rajveer 10236
    if self.scx is not None:
559 chandransh 10237
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10238
      self.scx.write(oprot)
10239
      oprot.writeFieldEnd()
10240
    oprot.writeFieldStop()
10241
    oprot.writeStructEnd()
10242
 
3431 rajveer 10243
  def validate(self):
10244
    return
10245
 
10246
 
559 chandransh 10247
  def __repr__(self):
10248
    L = ['%s=%r' % (key, value)
10249
      for key, value in self.__dict__.iteritems()]
10250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10251
 
10252
  def __eq__(self, other):
10253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10254
 
10255
  def __ne__(self, other):
10256
    return not (self == other)
10257
 
10258
class getCartsByTime_args:
10259
  """
10260
  Attributes:
10261
   - from_time
10262
   - to_time
10263
   - status
10264
  """
10265
 
10266
  thrift_spec = (
10267
    None, # 0
10268
    (1, TType.I64, 'from_time', None, None, ), # 1
10269
    (2, TType.I64, 'to_time', None, None, ), # 2
10270
    (3, TType.I32, 'status', None, None, ), # 3
10271
  )
10272
 
10273
  def __init__(self, from_time=None, to_time=None, status=None,):
10274
    self.from_time = from_time
10275
    self.to_time = to_time
10276
    self.status = status
10277
 
10278
  def read(self, iprot):
10279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10281
      return
10282
    iprot.readStructBegin()
10283
    while True:
10284
      (fname, ftype, fid) = iprot.readFieldBegin()
10285
      if ftype == TType.STOP:
10286
        break
10287
      if fid == 1:
94 ashish 10288
        if ftype == TType.I64:
559 chandransh 10289
          self.from_time = iprot.readI64();
94 ashish 10290
        else:
10291
          iprot.skip(ftype)
122 ashish 10292
      elif fid == 2:
559 chandransh 10293
        if ftype == TType.I64:
10294
          self.to_time = iprot.readI64();
122 ashish 10295
        else:
10296
          iprot.skip(ftype)
559 chandransh 10297
      elif fid == 3:
10298
        if ftype == TType.I32:
10299
          self.status = iprot.readI32();
10300
        else:
10301
          iprot.skip(ftype)
94 ashish 10302
      else:
10303
        iprot.skip(ftype)
10304
      iprot.readFieldEnd()
10305
    iprot.readStructEnd()
10306
 
10307
  def write(self, oprot):
10308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10310
      return
559 chandransh 10311
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10312
    if self.from_time is not None:
559 chandransh 10313
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10314
      oprot.writeI64(self.from_time)
94 ashish 10315
      oprot.writeFieldEnd()
3431 rajveer 10316
    if self.to_time is not None:
559 chandransh 10317
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10318
      oprot.writeI64(self.to_time)
122 ashish 10319
      oprot.writeFieldEnd()
3431 rajveer 10320
    if self.status is not None:
559 chandransh 10321
      oprot.writeFieldBegin('status', TType.I32, 3)
10322
      oprot.writeI32(self.status)
10323
      oprot.writeFieldEnd()
94 ashish 10324
    oprot.writeFieldStop()
10325
    oprot.writeStructEnd()
10326
 
3431 rajveer 10327
  def validate(self):
10328
    return
10329
 
10330
 
94 ashish 10331
  def __repr__(self):
10332
    L = ['%s=%r' % (key, value)
10333
      for key, value in self.__dict__.iteritems()]
10334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10335
 
10336
  def __eq__(self, other):
10337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10338
 
10339
  def __ne__(self, other):
10340
    return not (self == other)
10341
 
559 chandransh 10342
class getCartsByTime_result:
94 ashish 10343
  """
10344
  Attributes:
10345
   - success
559 chandransh 10346
   - scx
94 ashish 10347
  """
10348
 
10349
  thrift_spec = (
559 chandransh 10350
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10351
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10352
  )
10353
 
559 chandransh 10354
  def __init__(self, success=None, scx=None,):
94 ashish 10355
    self.success = success
559 chandransh 10356
    self.scx = scx
94 ashish 10357
 
10358
  def read(self, iprot):
10359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10361
      return
10362
    iprot.readStructBegin()
10363
    while True:
10364
      (fname, ftype, fid) = iprot.readFieldBegin()
10365
      if ftype == TType.STOP:
10366
        break
10367
      if fid == 0:
559 chandransh 10368
        if ftype == TType.LIST:
10369
          self.success = []
3554 varun.gupt 10370
          (_etype115, _size112) = iprot.readListBegin()
10371
          for _i116 in xrange(_size112):
10372
            _elem117 = Cart()
10373
            _elem117.read(iprot)
10374
            self.success.append(_elem117)
559 chandransh 10375
          iprot.readListEnd()
94 ashish 10376
        else:
10377
          iprot.skip(ftype)
10378
      elif fid == 1:
10379
        if ftype == TType.STRUCT:
559 chandransh 10380
          self.scx = ShoppingCartException()
10381
          self.scx.read(iprot)
94 ashish 10382
        else:
10383
          iprot.skip(ftype)
10384
      else:
10385
        iprot.skip(ftype)
10386
      iprot.readFieldEnd()
10387
    iprot.readStructEnd()
10388
 
10389
  def write(self, oprot):
10390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10392
      return
559 chandransh 10393
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10394
    if self.success is not None:
559 chandransh 10395
      oprot.writeFieldBegin('success', TType.LIST, 0)
10396
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10397
      for iter118 in self.success:
10398
        iter118.write(oprot)
559 chandransh 10399
      oprot.writeListEnd()
94 ashish 10400
      oprot.writeFieldEnd()
3431 rajveer 10401
    if self.scx is not None:
559 chandransh 10402
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10403
      self.scx.write(oprot)
94 ashish 10404
      oprot.writeFieldEnd()
10405
    oprot.writeFieldStop()
10406
    oprot.writeStructEnd()
10407
 
3431 rajveer 10408
  def validate(self):
10409
    return
10410
 
10411
 
94 ashish 10412
  def __repr__(self):
10413
    L = ['%s=%r' % (key, value)
10414
      for key, value in self.__dict__.iteritems()]
10415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10416
 
10417
  def __eq__(self, other):
10418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10419
 
10420
  def __ne__(self, other):
10421
    return not (self == other)
10422
 
559 chandransh 10423
class changeCartStatus_args:
94 ashish 10424
  """
10425
  Attributes:
559 chandransh 10426
   - cartId
10427
   - status
94 ashish 10428
  """
10429
 
10430
  thrift_spec = (
10431
    None, # 0
559 chandransh 10432
    (1, TType.I64, 'cartId', None, None, ), # 1
10433
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10434
  )
10435
 
559 chandransh 10436
  def __init__(self, cartId=None, status=None,):
10437
    self.cartId = cartId
10438
    self.status = status
94 ashish 10439
 
10440
  def read(self, iprot):
10441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10443
      return
10444
    iprot.readStructBegin()
10445
    while True:
10446
      (fname, ftype, fid) = iprot.readFieldBegin()
10447
      if ftype == TType.STOP:
10448
        break
10449
      if fid == 1:
10450
        if ftype == TType.I64:
559 chandransh 10451
          self.cartId = iprot.readI64();
94 ashish 10452
        else:
10453
          iprot.skip(ftype)
559 chandransh 10454
      elif fid == 2:
10455
        if ftype == TType.I32:
10456
          self.status = iprot.readI32();
10457
        else:
10458
          iprot.skip(ftype)
94 ashish 10459
      else:
10460
        iprot.skip(ftype)
10461
      iprot.readFieldEnd()
10462
    iprot.readStructEnd()
10463
 
10464
  def write(self, oprot):
10465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10467
      return
559 chandransh 10468
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10469
    if self.cartId is not None:
559 chandransh 10470
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10471
      oprot.writeI64(self.cartId)
94 ashish 10472
      oprot.writeFieldEnd()
3431 rajveer 10473
    if self.status is not None:
559 chandransh 10474
      oprot.writeFieldBegin('status', TType.I32, 2)
10475
      oprot.writeI32(self.status)
10476
      oprot.writeFieldEnd()
94 ashish 10477
    oprot.writeFieldStop()
10478
    oprot.writeStructEnd()
10479
 
3431 rajveer 10480
  def validate(self):
10481
    return
10482
 
10483
 
94 ashish 10484
  def __repr__(self):
10485
    L = ['%s=%r' % (key, value)
10486
      for key, value in self.__dict__.iteritems()]
10487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10488
 
10489
  def __eq__(self, other):
10490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10491
 
10492
  def __ne__(self, other):
10493
    return not (self == other)
10494
 
559 chandransh 10495
class changeCartStatus_result:
94 ashish 10496
  """
10497
  Attributes:
559 chandransh 10498
   - scx
10499
  """
10500
 
10501
  thrift_spec = (
10502
    None, # 0
10503
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10504
  )
10505
 
10506
  def __init__(self, scx=None,):
10507
    self.scx = scx
10508
 
10509
  def read(self, iprot):
10510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10512
      return
10513
    iprot.readStructBegin()
10514
    while True:
10515
      (fname, ftype, fid) = iprot.readFieldBegin()
10516
      if ftype == TType.STOP:
10517
        break
10518
      if fid == 1:
10519
        if ftype == TType.STRUCT:
10520
          self.scx = ShoppingCartException()
10521
          self.scx.read(iprot)
10522
        else:
10523
          iprot.skip(ftype)
10524
      else:
10525
        iprot.skip(ftype)
10526
      iprot.readFieldEnd()
10527
    iprot.readStructEnd()
10528
 
10529
  def write(self, oprot):
10530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10532
      return
10533
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10534
    if self.scx is not None:
559 chandransh 10535
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10536
      self.scx.write(oprot)
10537
      oprot.writeFieldEnd()
10538
    oprot.writeFieldStop()
10539
    oprot.writeStructEnd()
10540
 
3431 rajveer 10541
  def validate(self):
10542
    return
10543
 
10544
 
559 chandransh 10545
  def __repr__(self):
10546
    L = ['%s=%r' % (key, value)
10547
      for key, value in self.__dict__.iteritems()]
10548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10549
 
10550
  def __eq__(self, other):
10551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10552
 
10553
  def __ne__(self, other):
10554
    return not (self == other)
10555
 
10556
class addItemToCart_args:
10557
  """
10558
  Attributes:
10559
   - cartId
10560
   - itemId
10561
   - quantity
3557 rajveer 10562
   - sourceId
559 chandransh 10563
  """
10564
 
10565
  thrift_spec = (
10566
    None, # 0
10567
    (1, TType.I64, 'cartId', None, None, ), # 1
10568
    (2, TType.I64, 'itemId', None, None, ), # 2
10569
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10570
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10571
  )
10572
 
3557 rajveer 10573
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10574
    self.cartId = cartId
10575
    self.itemId = itemId
10576
    self.quantity = quantity
3557 rajveer 10577
    self.sourceId = sourceId
559 chandransh 10578
 
10579
  def read(self, iprot):
10580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10582
      return
10583
    iprot.readStructBegin()
10584
    while True:
10585
      (fname, ftype, fid) = iprot.readFieldBegin()
10586
      if ftype == TType.STOP:
10587
        break
10588
      if fid == 1:
10589
        if ftype == TType.I64:
10590
          self.cartId = iprot.readI64();
10591
        else:
10592
          iprot.skip(ftype)
10593
      elif fid == 2:
10594
        if ftype == TType.I64:
10595
          self.itemId = iprot.readI64();
10596
        else:
10597
          iprot.skip(ftype)
10598
      elif fid == 3:
10599
        if ftype == TType.I64:
10600
          self.quantity = iprot.readI64();
10601
        else:
10602
          iprot.skip(ftype)
3557 rajveer 10603
      elif fid == 4:
10604
        if ftype == TType.I64:
10605
          self.sourceId = iprot.readI64();
10606
        else:
10607
          iprot.skip(ftype)
559 chandransh 10608
      else:
10609
        iprot.skip(ftype)
10610
      iprot.readFieldEnd()
10611
    iprot.readStructEnd()
10612
 
10613
  def write(self, oprot):
10614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10616
      return
10617
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10618
    if self.cartId is not None:
559 chandransh 10619
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10620
      oprot.writeI64(self.cartId)
10621
      oprot.writeFieldEnd()
3431 rajveer 10622
    if self.itemId is not None:
559 chandransh 10623
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10624
      oprot.writeI64(self.itemId)
10625
      oprot.writeFieldEnd()
3431 rajveer 10626
    if self.quantity is not None:
559 chandransh 10627
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10628
      oprot.writeI64(self.quantity)
10629
      oprot.writeFieldEnd()
3557 rajveer 10630
    if self.sourceId is not None:
10631
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10632
      oprot.writeI64(self.sourceId)
10633
      oprot.writeFieldEnd()
559 chandransh 10634
    oprot.writeFieldStop()
10635
    oprot.writeStructEnd()
10636
 
3431 rajveer 10637
  def validate(self):
10638
    return
10639
 
10640
 
559 chandransh 10641
  def __repr__(self):
10642
    L = ['%s=%r' % (key, value)
10643
      for key, value in self.__dict__.iteritems()]
10644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10645
 
10646
  def __eq__(self, other):
10647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10648
 
10649
  def __ne__(self, other):
10650
    return not (self == other)
10651
 
10652
class addItemToCart_result:
10653
  """
10654
  Attributes:
2035 rajveer 10655
   - success
559 chandransh 10656
   - scx
10657
  """
10658
 
10659
  thrift_spec = (
2035 rajveer 10660
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10661
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10662
  )
10663
 
2035 rajveer 10664
  def __init__(self, success=None, scx=None,):
10665
    self.success = success
559 chandransh 10666
    self.scx = scx
10667
 
10668
  def read(self, iprot):
10669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10671
      return
10672
    iprot.readStructBegin()
10673
    while True:
10674
      (fname, ftype, fid) = iprot.readFieldBegin()
10675
      if ftype == TType.STOP:
10676
        break
2035 rajveer 10677
      if fid == 0:
10678
        if ftype == TType.STRING:
10679
          self.success = iprot.readString();
10680
        else:
10681
          iprot.skip(ftype)
10682
      elif fid == 1:
559 chandransh 10683
        if ftype == TType.STRUCT:
10684
          self.scx = ShoppingCartException()
10685
          self.scx.read(iprot)
10686
        else:
10687
          iprot.skip(ftype)
10688
      else:
10689
        iprot.skip(ftype)
10690
      iprot.readFieldEnd()
10691
    iprot.readStructEnd()
10692
 
10693
  def write(self, oprot):
10694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10696
      return
10697
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10698
    if self.success is not None:
2035 rajveer 10699
      oprot.writeFieldBegin('success', TType.STRING, 0)
10700
      oprot.writeString(self.success)
10701
      oprot.writeFieldEnd()
3431 rajveer 10702
    if self.scx is not None:
559 chandransh 10703
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10704
      self.scx.write(oprot)
10705
      oprot.writeFieldEnd()
10706
    oprot.writeFieldStop()
10707
    oprot.writeStructEnd()
10708
 
3431 rajveer 10709
  def validate(self):
10710
    return
10711
 
10712
 
559 chandransh 10713
  def __repr__(self):
10714
    L = ['%s=%r' % (key, value)
10715
      for key, value in self.__dict__.iteritems()]
10716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10717
 
10718
  def __eq__(self, other):
10719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10720
 
10721
  def __ne__(self, other):
10722
    return not (self == other)
10723
 
10724
class deleteItemFromCart_args:
10725
  """
10726
  Attributes:
10727
   - cartId
10728
   - itemId
10729
  """
10730
 
10731
  thrift_spec = (
10732
    None, # 0
10733
    (1, TType.I64, 'cartId', None, None, ), # 1
10734
    (2, TType.I64, 'itemId', None, None, ), # 2
10735
  )
10736
 
10737
  def __init__(self, cartId=None, itemId=None,):
10738
    self.cartId = cartId
10739
    self.itemId = itemId
10740
 
10741
  def read(self, iprot):
10742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10744
      return
10745
    iprot.readStructBegin()
10746
    while True:
10747
      (fname, ftype, fid) = iprot.readFieldBegin()
10748
      if ftype == TType.STOP:
10749
        break
10750
      if fid == 1:
10751
        if ftype == TType.I64:
10752
          self.cartId = iprot.readI64();
10753
        else:
10754
          iprot.skip(ftype)
10755
      elif fid == 2:
10756
        if ftype == TType.I64:
10757
          self.itemId = iprot.readI64();
10758
        else:
10759
          iprot.skip(ftype)
10760
      else:
10761
        iprot.skip(ftype)
10762
      iprot.readFieldEnd()
10763
    iprot.readStructEnd()
10764
 
10765
  def write(self, oprot):
10766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10768
      return
10769
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10770
    if self.cartId is not None:
559 chandransh 10771
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10772
      oprot.writeI64(self.cartId)
10773
      oprot.writeFieldEnd()
3431 rajveer 10774
    if self.itemId is not None:
559 chandransh 10775
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10776
      oprot.writeI64(self.itemId)
10777
      oprot.writeFieldEnd()
10778
    oprot.writeFieldStop()
10779
    oprot.writeStructEnd()
10780
 
3431 rajveer 10781
  def validate(self):
10782
    return
10783
 
10784
 
559 chandransh 10785
  def __repr__(self):
10786
    L = ['%s=%r' % (key, value)
10787
      for key, value in self.__dict__.iteritems()]
10788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10789
 
10790
  def __eq__(self, other):
10791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10792
 
10793
  def __ne__(self, other):
10794
    return not (self == other)
10795
 
10796
class deleteItemFromCart_result:
10797
  """
10798
  Attributes:
10799
   - scx
10800
  """
10801
 
10802
  thrift_spec = (
10803
    None, # 0
10804
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10805
  )
10806
 
10807
  def __init__(self, scx=None,):
10808
    self.scx = scx
10809
 
10810
  def read(self, iprot):
10811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10813
      return
10814
    iprot.readStructBegin()
10815
    while True:
10816
      (fname, ftype, fid) = iprot.readFieldBegin()
10817
      if ftype == TType.STOP:
10818
        break
10819
      if fid == 1:
10820
        if ftype == TType.STRUCT:
10821
          self.scx = ShoppingCartException()
10822
          self.scx.read(iprot)
10823
        else:
10824
          iprot.skip(ftype)
10825
      else:
10826
        iprot.skip(ftype)
10827
      iprot.readFieldEnd()
10828
    iprot.readStructEnd()
10829
 
10830
  def write(self, oprot):
10831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10833
      return
10834
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10835
    if self.scx is not None:
559 chandransh 10836
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10837
      self.scx.write(oprot)
10838
      oprot.writeFieldEnd()
10839
    oprot.writeFieldStop()
10840
    oprot.writeStructEnd()
10841
 
3431 rajveer 10842
  def validate(self):
10843
    return
10844
 
10845
 
559 chandransh 10846
  def __repr__(self):
10847
    L = ['%s=%r' % (key, value)
10848
      for key, value in self.__dict__.iteritems()]
10849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10850
 
10851
  def __eq__(self, other):
10852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10853
 
10854
  def __ne__(self, other):
10855
    return not (self == other)
10856
 
10857
class changeItemStatus_args:
10858
  """
10859
  Attributes:
10860
   - cartId
10861
   - itemId
10862
   - status
10863
  """
10864
 
10865
  thrift_spec = (
10866
    None, # 0
10867
    (1, TType.I64, 'cartId', None, None, ), # 1
10868
    (2, TType.I64, 'itemId', None, None, ), # 2
10869
    (3, TType.I32, 'status', None, None, ), # 3
10870
  )
10871
 
10872
  def __init__(self, cartId=None, itemId=None, status=None,):
10873
    self.cartId = cartId
10874
    self.itemId = itemId
10875
    self.status = status
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.I64:
10888
          self.cartId = iprot.readI64();
10889
        else:
10890
          iprot.skip(ftype)
10891
      elif fid == 2:
10892
        if ftype == TType.I64:
10893
          self.itemId = iprot.readI64();
10894
        else:
10895
          iprot.skip(ftype)
10896
      elif fid == 3:
10897
        if ftype == TType.I32:
10898
          self.status = iprot.readI32();
10899
        else:
10900
          iprot.skip(ftype)
10901
      else:
10902
        iprot.skip(ftype)
10903
      iprot.readFieldEnd()
10904
    iprot.readStructEnd()
10905
 
10906
  def write(self, oprot):
10907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10909
      return
10910
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 10911
    if self.cartId is not None:
559 chandransh 10912
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10913
      oprot.writeI64(self.cartId)
10914
      oprot.writeFieldEnd()
3431 rajveer 10915
    if self.itemId is not None:
559 chandransh 10916
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10917
      oprot.writeI64(self.itemId)
10918
      oprot.writeFieldEnd()
3431 rajveer 10919
    if self.status is not None:
559 chandransh 10920
      oprot.writeFieldBegin('status', TType.I32, 3)
10921
      oprot.writeI32(self.status)
10922
      oprot.writeFieldEnd()
10923
    oprot.writeFieldStop()
10924
    oprot.writeStructEnd()
10925
 
3431 rajveer 10926
  def validate(self):
10927
    return
10928
 
10929
 
559 chandransh 10930
  def __repr__(self):
10931
    L = ['%s=%r' % (key, value)
10932
      for key, value in self.__dict__.iteritems()]
10933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10934
 
10935
  def __eq__(self, other):
10936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10937
 
10938
  def __ne__(self, other):
10939
    return not (self == other)
10940
 
10941
class changeItemStatus_result:
10942
  """
10943
  Attributes:
10944
   - scx
10945
  """
10946
 
10947
  thrift_spec = (
10948
    None, # 0
10949
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10950
  )
10951
 
10952
  def __init__(self, scx=None,):
10953
    self.scx = scx
10954
 
10955
  def read(self, iprot):
10956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10958
      return
10959
    iprot.readStructBegin()
10960
    while True:
10961
      (fname, ftype, fid) = iprot.readFieldBegin()
10962
      if ftype == TType.STOP:
10963
        break
10964
      if fid == 1:
10965
        if ftype == TType.STRUCT:
10966
          self.scx = ShoppingCartException()
10967
          self.scx.read(iprot)
10968
        else:
10969
          iprot.skip(ftype)
10970
      else:
10971
        iprot.skip(ftype)
10972
      iprot.readFieldEnd()
10973
    iprot.readStructEnd()
10974
 
10975
  def write(self, oprot):
10976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10978
      return
10979
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 10980
    if self.scx is not None:
559 chandransh 10981
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10982
      self.scx.write(oprot)
10983
      oprot.writeFieldEnd()
10984
    oprot.writeFieldStop()
10985
    oprot.writeStructEnd()
10986
 
3431 rajveer 10987
  def validate(self):
10988
    return
10989
 
10990
 
559 chandransh 10991
  def __repr__(self):
10992
    L = ['%s=%r' % (key, value)
10993
      for key, value in self.__dict__.iteritems()]
10994
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10995
 
10996
  def __eq__(self, other):
10997
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10998
 
10999
  def __ne__(self, other):
11000
    return not (self == other)
11001
 
11002
class addAddressToCart_args:
11003
  """
11004
  Attributes:
11005
   - cartId
11006
   - addressId
11007
  """
11008
 
11009
  thrift_spec = (
11010
    None, # 0
11011
    (1, TType.I64, 'cartId', None, None, ), # 1
11012
    (2, TType.I64, 'addressId', None, None, ), # 2
11013
  )
11014
 
11015
  def __init__(self, cartId=None, addressId=None,):
11016
    self.cartId = cartId
11017
    self.addressId = addressId
11018
 
11019
  def read(self, iprot):
11020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11022
      return
11023
    iprot.readStructBegin()
11024
    while True:
11025
      (fname, ftype, fid) = iprot.readFieldBegin()
11026
      if ftype == TType.STOP:
11027
        break
11028
      if fid == 1:
11029
        if ftype == TType.I64:
11030
          self.cartId = iprot.readI64();
11031
        else:
11032
          iprot.skip(ftype)
11033
      elif fid == 2:
11034
        if ftype == TType.I64:
11035
          self.addressId = iprot.readI64();
11036
        else:
11037
          iprot.skip(ftype)
11038
      else:
11039
        iprot.skip(ftype)
11040
      iprot.readFieldEnd()
11041
    iprot.readStructEnd()
11042
 
11043
  def write(self, oprot):
11044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11046
      return
11047
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11048
    if self.cartId is not None:
559 chandransh 11049
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11050
      oprot.writeI64(self.cartId)
11051
      oprot.writeFieldEnd()
3431 rajveer 11052
    if self.addressId is not None:
559 chandransh 11053
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11054
      oprot.writeI64(self.addressId)
11055
      oprot.writeFieldEnd()
11056
    oprot.writeFieldStop()
11057
    oprot.writeStructEnd()
11058
 
3431 rajveer 11059
  def validate(self):
11060
    return
11061
 
11062
 
559 chandransh 11063
  def __repr__(self):
11064
    L = ['%s=%r' % (key, value)
11065
      for key, value in self.__dict__.iteritems()]
11066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11067
 
11068
  def __eq__(self, other):
11069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11070
 
11071
  def __ne__(self, other):
11072
    return not (self == other)
11073
 
11074
class addAddressToCart_result:
575 chandransh 11075
  """
11076
  Attributes:
11077
   - scx
11078
  """
559 chandransh 11079
 
11080
  thrift_spec = (
575 chandransh 11081
    None, # 0
11082
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11083
  )
11084
 
575 chandransh 11085
  def __init__(self, scx=None,):
11086
    self.scx = scx
11087
 
559 chandransh 11088
  def read(self, iprot):
11089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11091
      return
11092
    iprot.readStructBegin()
11093
    while True:
11094
      (fname, ftype, fid) = iprot.readFieldBegin()
11095
      if ftype == TType.STOP:
11096
        break
575 chandransh 11097
      if fid == 1:
11098
        if ftype == TType.STRUCT:
11099
          self.scx = ShoppingCartException()
11100
          self.scx.read(iprot)
11101
        else:
11102
          iprot.skip(ftype)
559 chandransh 11103
      else:
11104
        iprot.skip(ftype)
11105
      iprot.readFieldEnd()
11106
    iprot.readStructEnd()
11107
 
11108
  def write(self, oprot):
11109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11111
      return
11112
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11113
    if self.scx is not None:
575 chandransh 11114
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11115
      self.scx.write(oprot)
11116
      oprot.writeFieldEnd()
559 chandransh 11117
    oprot.writeFieldStop()
11118
    oprot.writeStructEnd()
11119
 
3431 rajveer 11120
  def validate(self):
11121
    return
11122
 
11123
 
559 chandransh 11124
  def __repr__(self):
11125
    L = ['%s=%r' % (key, value)
11126
      for key, value in self.__dict__.iteritems()]
11127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11128
 
11129
  def __eq__(self, other):
11130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11131
 
11132
  def __ne__(self, other):
11133
    return not (self == other)
11134
 
1976 varun.gupt 11135
class applyCouponToCart_args:
11136
  """
11137
  Attributes:
11138
   - cartId
11139
   - couponCode
11140
   - totalPrice
11141
   - discountedPrice
11142
  """
11143
 
11144
  thrift_spec = (
11145
    None, # 0
11146
    (1, TType.I64, 'cartId', None, None, ), # 1
11147
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11148
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11149
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11150
  )
11151
 
11152
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11153
    self.cartId = cartId
11154
    self.couponCode = couponCode
11155
    self.totalPrice = totalPrice
11156
    self.discountedPrice = discountedPrice
11157
 
11158
  def read(self, iprot):
11159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11161
      return
11162
    iprot.readStructBegin()
11163
    while True:
11164
      (fname, ftype, fid) = iprot.readFieldBegin()
11165
      if ftype == TType.STOP:
11166
        break
11167
      if fid == 1:
11168
        if ftype == TType.I64:
11169
          self.cartId = iprot.readI64();
11170
        else:
11171
          iprot.skip(ftype)
11172
      elif fid == 2:
11173
        if ftype == TType.STRING:
11174
          self.couponCode = iprot.readString();
11175
        else:
11176
          iprot.skip(ftype)
11177
      elif fid == 3:
11178
        if ftype == TType.DOUBLE:
11179
          self.totalPrice = iprot.readDouble();
11180
        else:
11181
          iprot.skip(ftype)
11182
      elif fid == 4:
11183
        if ftype == TType.DOUBLE:
11184
          self.discountedPrice = iprot.readDouble();
11185
        else:
11186
          iprot.skip(ftype)
11187
      else:
11188
        iprot.skip(ftype)
11189
      iprot.readFieldEnd()
11190
    iprot.readStructEnd()
11191
 
11192
  def write(self, oprot):
11193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11195
      return
11196
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11197
    if self.cartId is not None:
1976 varun.gupt 11198
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11199
      oprot.writeI64(self.cartId)
11200
      oprot.writeFieldEnd()
3431 rajveer 11201
    if self.couponCode is not None:
1976 varun.gupt 11202
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11203
      oprot.writeString(self.couponCode)
11204
      oprot.writeFieldEnd()
3431 rajveer 11205
    if self.totalPrice is not None:
1976 varun.gupt 11206
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11207
      oprot.writeDouble(self.totalPrice)
11208
      oprot.writeFieldEnd()
3431 rajveer 11209
    if self.discountedPrice is not None:
1976 varun.gupt 11210
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11211
      oprot.writeDouble(self.discountedPrice)
11212
      oprot.writeFieldEnd()
11213
    oprot.writeFieldStop()
11214
    oprot.writeStructEnd()
11215
 
3431 rajveer 11216
  def validate(self):
11217
    return
11218
 
11219
 
1976 varun.gupt 11220
  def __repr__(self):
11221
    L = ['%s=%r' % (key, value)
11222
      for key, value in self.__dict__.iteritems()]
11223
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11224
 
11225
  def __eq__(self, other):
11226
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11227
 
11228
  def __ne__(self, other):
11229
    return not (self == other)
11230
 
11231
class applyCouponToCart_result:
11232
  """
11233
  Attributes:
11234
   - scx
11235
  """
11236
 
11237
  thrift_spec = (
11238
    None, # 0
11239
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11240
  )
11241
 
11242
  def __init__(self, scx=None,):
11243
    self.scx = scx
11244
 
11245
  def read(self, iprot):
11246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11248
      return
11249
    iprot.readStructBegin()
11250
    while True:
11251
      (fname, ftype, fid) = iprot.readFieldBegin()
11252
      if ftype == TType.STOP:
11253
        break
11254
      if fid == 1:
11255
        if ftype == TType.STRUCT:
11256
          self.scx = ShoppingCartException()
11257
          self.scx.read(iprot)
11258
        else:
11259
          iprot.skip(ftype)
11260
      else:
11261
        iprot.skip(ftype)
11262
      iprot.readFieldEnd()
11263
    iprot.readStructEnd()
11264
 
11265
  def write(self, oprot):
11266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11268
      return
11269
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11270
    if self.scx is not None:
1976 varun.gupt 11271
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11272
      self.scx.write(oprot)
11273
      oprot.writeFieldEnd()
11274
    oprot.writeFieldStop()
11275
    oprot.writeStructEnd()
11276
 
3431 rajveer 11277
  def validate(self):
11278
    return
11279
 
11280
 
1976 varun.gupt 11281
  def __repr__(self):
11282
    L = ['%s=%r' % (key, value)
11283
      for key, value in self.__dict__.iteritems()]
11284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11285
 
11286
  def __eq__(self, other):
11287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11288
 
11289
  def __ne__(self, other):
11290
    return not (self == other)
11291
 
11292
class removeCoupon_args:
11293
  """
11294
  Attributes:
11295
   - cartId
11296
  """
11297
 
11298
  thrift_spec = (
11299
    None, # 0
11300
    (1, TType.I64, 'cartId', None, None, ), # 1
11301
  )
11302
 
11303
  def __init__(self, cartId=None,):
11304
    self.cartId = cartId
11305
 
11306
  def read(self, iprot):
11307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11309
      return
11310
    iprot.readStructBegin()
11311
    while True:
11312
      (fname, ftype, fid) = iprot.readFieldBegin()
11313
      if ftype == TType.STOP:
11314
        break
11315
      if fid == 1:
11316
        if ftype == TType.I64:
11317
          self.cartId = iprot.readI64();
11318
        else:
11319
          iprot.skip(ftype)
11320
      else:
11321
        iprot.skip(ftype)
11322
      iprot.readFieldEnd()
11323
    iprot.readStructEnd()
11324
 
11325
  def write(self, oprot):
11326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11328
      return
11329
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11330
    if self.cartId is not None:
1976 varun.gupt 11331
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11332
      oprot.writeI64(self.cartId)
11333
      oprot.writeFieldEnd()
11334
    oprot.writeFieldStop()
11335
    oprot.writeStructEnd()
11336
 
3431 rajveer 11337
  def validate(self):
11338
    return
11339
 
11340
 
1976 varun.gupt 11341
  def __repr__(self):
11342
    L = ['%s=%r' % (key, value)
11343
      for key, value in self.__dict__.iteritems()]
11344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11345
 
11346
  def __eq__(self, other):
11347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11348
 
11349
  def __ne__(self, other):
11350
    return not (self == other)
11351
 
11352
class removeCoupon_result:
11353
  """
11354
  Attributes:
11355
   - scx
11356
  """
11357
 
11358
  thrift_spec = (
11359
    None, # 0
11360
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11361
  )
11362
 
11363
  def __init__(self, scx=None,):
11364
    self.scx = scx
11365
 
11366
  def read(self, iprot):
11367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11369
      return
11370
    iprot.readStructBegin()
11371
    while True:
11372
      (fname, ftype, fid) = iprot.readFieldBegin()
11373
      if ftype == TType.STOP:
11374
        break
11375
      if fid == 1:
11376
        if ftype == TType.STRUCT:
11377
          self.scx = ShoppingCartException()
11378
          self.scx.read(iprot)
11379
        else:
11380
          iprot.skip(ftype)
11381
      else:
11382
        iprot.skip(ftype)
11383
      iprot.readFieldEnd()
11384
    iprot.readStructEnd()
11385
 
11386
  def write(self, oprot):
11387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11389
      return
11390
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11391
    if self.scx is not None:
1976 varun.gupt 11392
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11393
      self.scx.write(oprot)
11394
      oprot.writeFieldEnd()
11395
    oprot.writeFieldStop()
11396
    oprot.writeStructEnd()
11397
 
3431 rajveer 11398
  def validate(self):
11399
    return
11400
 
11401
 
1976 varun.gupt 11402
  def __repr__(self):
11403
    L = ['%s=%r' % (key, value)
11404
      for key, value in self.__dict__.iteritems()]
11405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11406
 
11407
  def __eq__(self, other):
11408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11409
 
11410
  def __ne__(self, other):
11411
    return not (self == other)
11412
 
3554 varun.gupt 11413
class deleteDiscountsFromCart_args:
11414
  """
11415
  Attributes:
11416
   - cartId
11417
  """
11418
 
11419
  thrift_spec = (
11420
    None, # 0
11421
    (1, TType.I64, 'cartId', None, None, ), # 1
11422
  )
11423
 
11424
  def __init__(self, cartId=None,):
11425
    self.cartId = cartId
11426
 
11427
  def read(self, iprot):
11428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11430
      return
11431
    iprot.readStructBegin()
11432
    while True:
11433
      (fname, ftype, fid) = iprot.readFieldBegin()
11434
      if ftype == TType.STOP:
11435
        break
11436
      if fid == 1:
11437
        if ftype == TType.I64:
11438
          self.cartId = iprot.readI64();
11439
        else:
11440
          iprot.skip(ftype)
11441
      else:
11442
        iprot.skip(ftype)
11443
      iprot.readFieldEnd()
11444
    iprot.readStructEnd()
11445
 
11446
  def write(self, oprot):
11447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11449
      return
11450
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
11451
    if self.cartId is not None:
11452
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11453
      oprot.writeI64(self.cartId)
11454
      oprot.writeFieldEnd()
11455
    oprot.writeFieldStop()
11456
    oprot.writeStructEnd()
11457
 
11458
  def validate(self):
11459
    return
11460
 
11461
 
11462
  def __repr__(self):
11463
    L = ['%s=%r' % (key, value)
11464
      for key, value in self.__dict__.iteritems()]
11465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11466
 
11467
  def __eq__(self, other):
11468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11469
 
11470
  def __ne__(self, other):
11471
    return not (self == other)
11472
 
11473
class deleteDiscountsFromCart_result:
11474
  """
11475
  Attributes:
11476
   - scx
11477
  """
11478
 
11479
  thrift_spec = (
11480
    None, # 0
11481
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11482
  )
11483
 
11484
  def __init__(self, scx=None,):
11485
    self.scx = scx
11486
 
11487
  def read(self, iprot):
11488
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11489
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11490
      return
11491
    iprot.readStructBegin()
11492
    while True:
11493
      (fname, ftype, fid) = iprot.readFieldBegin()
11494
      if ftype == TType.STOP:
11495
        break
11496
      if fid == 1:
11497
        if ftype == TType.STRUCT:
11498
          self.scx = ShoppingCartException()
11499
          self.scx.read(iprot)
11500
        else:
11501
          iprot.skip(ftype)
11502
      else:
11503
        iprot.skip(ftype)
11504
      iprot.readFieldEnd()
11505
    iprot.readStructEnd()
11506
 
11507
  def write(self, oprot):
11508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11510
      return
11511
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11512
    if self.scx is not None:
11513
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11514
      self.scx.write(oprot)
11515
      oprot.writeFieldEnd()
11516
    oprot.writeFieldStop()
11517
    oprot.writeStructEnd()
11518
 
11519
  def validate(self):
11520
    return
11521
 
11522
 
11523
  def __repr__(self):
11524
    L = ['%s=%r' % (key, value)
11525
      for key, value in self.__dict__.iteritems()]
11526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11527
 
11528
  def __eq__(self, other):
11529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11530
 
11531
  def __ne__(self, other):
11532
    return not (self == other)
11533
 
11534
class saveDiscounts_args:
11535
  """
11536
  Attributes:
11537
   - discounts
11538
  """
11539
 
11540
  thrift_spec = (
11541
    None, # 0
11542
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11543
  )
11544
 
11545
  def __init__(self, discounts=None,):
11546
    self.discounts = discounts
11547
 
11548
  def read(self, iprot):
11549
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11550
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11551
      return
11552
    iprot.readStructBegin()
11553
    while True:
11554
      (fname, ftype, fid) = iprot.readFieldBegin()
11555
      if ftype == TType.STOP:
11556
        break
11557
      if fid == 1:
11558
        if ftype == TType.LIST:
11559
          self.discounts = []
11560
          (_etype122, _size119) = iprot.readListBegin()
11561
          for _i123 in xrange(_size119):
11562
            _elem124 = Discount()
11563
            _elem124.read(iprot)
11564
            self.discounts.append(_elem124)
11565
          iprot.readListEnd()
11566
        else:
11567
          iprot.skip(ftype)
11568
      else:
11569
        iprot.skip(ftype)
11570
      iprot.readFieldEnd()
11571
    iprot.readStructEnd()
11572
 
11573
  def write(self, oprot):
11574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11576
      return
11577
    oprot.writeStructBegin('saveDiscounts_args')
11578
    if self.discounts is not None:
11579
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11580
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11581
      for iter125 in self.discounts:
11582
        iter125.write(oprot)
11583
      oprot.writeListEnd()
11584
      oprot.writeFieldEnd()
11585
    oprot.writeFieldStop()
11586
    oprot.writeStructEnd()
11587
 
11588
  def validate(self):
11589
    return
11590
 
11591
 
11592
  def __repr__(self):
11593
    L = ['%s=%r' % (key, value)
11594
      for key, value in self.__dict__.iteritems()]
11595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11596
 
11597
  def __eq__(self, other):
11598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11599
 
11600
  def __ne__(self, other):
11601
    return not (self == other)
11602
 
11603
class saveDiscounts_result:
11604
  """
11605
  Attributes:
11606
   - scx
11607
  """
11608
 
11609
  thrift_spec = (
11610
    None, # 0
11611
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11612
  )
11613
 
11614
  def __init__(self, scx=None,):
11615
    self.scx = scx
11616
 
11617
  def read(self, iprot):
11618
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11619
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11620
      return
11621
    iprot.readStructBegin()
11622
    while True:
11623
      (fname, ftype, fid) = iprot.readFieldBegin()
11624
      if ftype == TType.STOP:
11625
        break
11626
      if fid == 1:
11627
        if ftype == TType.STRUCT:
11628
          self.scx = ShoppingCartException()
11629
          self.scx.read(iprot)
11630
        else:
11631
          iprot.skip(ftype)
11632
      else:
11633
        iprot.skip(ftype)
11634
      iprot.readFieldEnd()
11635
    iprot.readStructEnd()
11636
 
11637
  def write(self, oprot):
11638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11640
      return
11641
    oprot.writeStructBegin('saveDiscounts_result')
11642
    if self.scx is not None:
11643
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11644
      self.scx.write(oprot)
11645
      oprot.writeFieldEnd()
11646
    oprot.writeFieldStop()
11647
    oprot.writeStructEnd()
11648
 
11649
  def validate(self):
11650
    return
11651
 
11652
 
11653
  def __repr__(self):
11654
    L = ['%s=%r' % (key, value)
11655
      for key, value in self.__dict__.iteritems()]
11656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11657
 
11658
  def __eq__(self, other):
11659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11660
 
11661
  def __ne__(self, other):
11662
    return not (self == other)
11663
 
690 chandransh 11664
class createOrders_args:
559 chandransh 11665
  """
11666
  Attributes:
11667
   - cartId
2815 vikas 11668
   - sessionSource
11669
   - sessionStartTime
3858 vikas 11670
   - firstSource
11671
   - firstSourceTime
559 chandransh 11672
  """
11673
 
11674
  thrift_spec = (
11675
    None, # 0
11676
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11677
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11678
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 11679
    (4, TType.STRING, 'firstSource', None, None, ), # 4
11680
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
559 chandransh 11681
  )
11682
 
3858 vikas 11683
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None,):
559 chandransh 11684
    self.cartId = cartId
2815 vikas 11685
    self.sessionSource = sessionSource
11686
    self.sessionStartTime = sessionStartTime
3858 vikas 11687
    self.firstSource = firstSource
11688
    self.firstSourceTime = firstSourceTime
559 chandransh 11689
 
11690
  def read(self, iprot):
11691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11693
      return
11694
    iprot.readStructBegin()
11695
    while True:
11696
      (fname, ftype, fid) = iprot.readFieldBegin()
11697
      if ftype == TType.STOP:
11698
        break
11699
      if fid == 1:
11700
        if ftype == TType.I64:
11701
          self.cartId = iprot.readI64();
11702
        else:
11703
          iprot.skip(ftype)
2815 vikas 11704
      elif fid == 2:
11705
        if ftype == TType.STRING:
11706
          self.sessionSource = iprot.readString();
11707
        else:
11708
          iprot.skip(ftype)
11709
      elif fid == 3:
11710
        if ftype == TType.I64:
11711
          self.sessionStartTime = iprot.readI64();
11712
        else:
11713
          iprot.skip(ftype)
3858 vikas 11714
      elif fid == 4:
11715
        if ftype == TType.STRING:
11716
          self.firstSource = iprot.readString();
11717
        else:
11718
          iprot.skip(ftype)
11719
      elif fid == 5:
11720
        if ftype == TType.I64:
11721
          self.firstSourceTime = iprot.readI64();
11722
        else:
11723
          iprot.skip(ftype)
559 chandransh 11724
      else:
11725
        iprot.skip(ftype)
11726
      iprot.readFieldEnd()
11727
    iprot.readStructEnd()
11728
 
11729
  def write(self, oprot):
11730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11732
      return
690 chandransh 11733
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11734
    if self.cartId is not None:
559 chandransh 11735
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11736
      oprot.writeI64(self.cartId)
11737
      oprot.writeFieldEnd()
3431 rajveer 11738
    if self.sessionSource is not None:
2815 vikas 11739
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11740
      oprot.writeString(self.sessionSource)
11741
      oprot.writeFieldEnd()
3431 rajveer 11742
    if self.sessionStartTime is not None:
2815 vikas 11743
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11744
      oprot.writeI64(self.sessionStartTime)
11745
      oprot.writeFieldEnd()
3858 vikas 11746
    if self.firstSource is not None:
11747
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
11748
      oprot.writeString(self.firstSource)
11749
      oprot.writeFieldEnd()
11750
    if self.firstSourceTime is not None:
11751
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
11752
      oprot.writeI64(self.firstSourceTime)
11753
      oprot.writeFieldEnd()
559 chandransh 11754
    oprot.writeFieldStop()
11755
    oprot.writeStructEnd()
11756
 
3431 rajveer 11757
  def validate(self):
11758
    return
11759
 
11760
 
559 chandransh 11761
  def __repr__(self):
11762
    L = ['%s=%r' % (key, value)
11763
      for key, value in self.__dict__.iteritems()]
11764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11765
 
11766
  def __eq__(self, other):
11767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11768
 
11769
  def __ne__(self, other):
11770
    return not (self == other)
11771
 
690 chandransh 11772
class createOrders_result:
559 chandransh 11773
  """
11774
  Attributes:
94 ashish 11775
   - success
559 chandransh 11776
   - scx
94 ashish 11777
  """
11778
 
11779
  thrift_spec = (
575 chandransh 11780
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11781
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11782
  )
11783
 
559 chandransh 11784
  def __init__(self, success=None, scx=None,):
94 ashish 11785
    self.success = success
559 chandransh 11786
    self.scx = scx
94 ashish 11787
 
11788
  def read(self, iprot):
11789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11791
      return
11792
    iprot.readStructBegin()
11793
    while True:
11794
      (fname, ftype, fid) = iprot.readFieldBegin()
11795
      if ftype == TType.STOP:
11796
        break
11797
      if fid == 0:
575 chandransh 11798
        if ftype == TType.I64:
11799
          self.success = iprot.readI64();
94 ashish 11800
        else:
11801
          iprot.skip(ftype)
11802
      elif fid == 1:
11803
        if ftype == TType.STRUCT:
559 chandransh 11804
          self.scx = ShoppingCartException()
11805
          self.scx.read(iprot)
94 ashish 11806
        else:
11807
          iprot.skip(ftype)
11808
      else:
11809
        iprot.skip(ftype)
11810
      iprot.readFieldEnd()
11811
    iprot.readStructEnd()
11812
 
11813
  def write(self, oprot):
11814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11816
      return
690 chandransh 11817
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11818
    if self.success is not None:
575 chandransh 11819
      oprot.writeFieldBegin('success', TType.I64, 0)
11820
      oprot.writeI64(self.success)
94 ashish 11821
      oprot.writeFieldEnd()
3431 rajveer 11822
    if self.scx is not None:
559 chandransh 11823
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11824
      self.scx.write(oprot)
94 ashish 11825
      oprot.writeFieldEnd()
11826
    oprot.writeFieldStop()
11827
    oprot.writeStructEnd()
11828
 
3431 rajveer 11829
  def validate(self):
11830
    return
11831
 
11832
 
94 ashish 11833
  def __repr__(self):
11834
    L = ['%s=%r' % (key, value)
11835
      for key, value in self.__dict__.iteritems()]
11836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11837
 
11838
  def __eq__(self, other):
11839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11840
 
11841
  def __ne__(self, other):
11842
    return not (self == other)
11843
 
559 chandransh 11844
class validateCart_args:
94 ashish 11845
  """
11846
  Attributes:
559 chandransh 11847
   - cartId
3557 rajveer 11848
   - sourceId
94 ashish 11849
  """
11850
 
11851
  thrift_spec = (
11852
    None, # 0
559 chandransh 11853
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11854
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11855
  )
11856
 
3557 rajveer 11857
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11858
    self.cartId = cartId
3557 rajveer 11859
    self.sourceId = sourceId
94 ashish 11860
 
11861
  def read(self, iprot):
11862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11864
      return
11865
    iprot.readStructBegin()
11866
    while True:
11867
      (fname, ftype, fid) = iprot.readFieldBegin()
11868
      if ftype == TType.STOP:
11869
        break
11870
      if fid == 1:
11871
        if ftype == TType.I64:
559 chandransh 11872
          self.cartId = iprot.readI64();
94 ashish 11873
        else:
11874
          iprot.skip(ftype)
3557 rajveer 11875
      elif fid == 2:
11876
        if ftype == TType.I64:
11877
          self.sourceId = iprot.readI64();
11878
        else:
11879
          iprot.skip(ftype)
94 ashish 11880
      else:
11881
        iprot.skip(ftype)
11882
      iprot.readFieldEnd()
11883
    iprot.readStructEnd()
11884
 
11885
  def write(self, oprot):
11886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11888
      return
559 chandransh 11889
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11890
    if self.cartId is not None:
559 chandransh 11891
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11892
      oprot.writeI64(self.cartId)
94 ashish 11893
      oprot.writeFieldEnd()
3557 rajveer 11894
    if self.sourceId is not None:
11895
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11896
      oprot.writeI64(self.sourceId)
11897
      oprot.writeFieldEnd()
94 ashish 11898
    oprot.writeFieldStop()
11899
    oprot.writeStructEnd()
11900
 
3431 rajveer 11901
  def validate(self):
11902
    return
11903
 
11904
 
94 ashish 11905
  def __repr__(self):
11906
    L = ['%s=%r' % (key, value)
11907
      for key, value in self.__dict__.iteritems()]
11908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11909
 
11910
  def __eq__(self, other):
11911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11912
 
11913
  def __ne__(self, other):
11914
    return not (self == other)
11915
 
559 chandransh 11916
class validateCart_result:
94 ashish 11917
  """
11918
  Attributes:
11919
   - success
575 chandransh 11920
   - scex
94 ashish 11921
  """
11922
 
11923
  thrift_spec = (
1466 ankur.sing 11924
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11925
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11926
  )
11927
 
575 chandransh 11928
  def __init__(self, success=None, scex=None,):
94 ashish 11929
    self.success = success
575 chandransh 11930
    self.scex = scex
94 ashish 11931
 
11932
  def read(self, iprot):
11933
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11934
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11935
      return
11936
    iprot.readStructBegin()
11937
    while True:
11938
      (fname, ftype, fid) = iprot.readFieldBegin()
11939
      if ftype == TType.STOP:
11940
        break
11941
      if fid == 0:
1466 ankur.sing 11942
        if ftype == TType.STRING:
11943
          self.success = iprot.readString();
94 ashish 11944
        else:
11945
          iprot.skip(ftype)
575 chandransh 11946
      elif fid == 1:
11947
        if ftype == TType.STRUCT:
11948
          self.scex = ShoppingCartException()
11949
          self.scex.read(iprot)
11950
        else:
11951
          iprot.skip(ftype)
94 ashish 11952
      else:
11953
        iprot.skip(ftype)
11954
      iprot.readFieldEnd()
11955
    iprot.readStructEnd()
11956
 
11957
  def write(self, oprot):
11958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11960
      return
559 chandransh 11961
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11962
    if self.success is not None:
1466 ankur.sing 11963
      oprot.writeFieldBegin('success', TType.STRING, 0)
11964
      oprot.writeString(self.success)
94 ashish 11965
      oprot.writeFieldEnd()
3431 rajveer 11966
    if self.scex is not None:
575 chandransh 11967
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11968
      self.scex.write(oprot)
11969
      oprot.writeFieldEnd()
559 chandransh 11970
    oprot.writeFieldStop()
11971
    oprot.writeStructEnd()
11972
 
3431 rajveer 11973
  def validate(self):
11974
    return
11975
 
11976
 
559 chandransh 11977
  def __repr__(self):
11978
    L = ['%s=%r' % (key, value)
11979
      for key, value in self.__dict__.iteritems()]
11980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11981
 
11982
  def __eq__(self, other):
11983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11984
 
11985
  def __ne__(self, other):
11986
    return not (self == other)
11987
 
690 chandransh 11988
class mergeCart_args:
575 chandransh 11989
  """
11990
  Attributes:
690 chandransh 11991
   - fromCartId
11992
   - toCartId
11993
  """
11994
 
11995
  thrift_spec = (
11996
    None, # 0
11997
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11998
    (2, TType.I64, 'toCartId', None, None, ), # 2
11999
  )
12000
 
12001
  def __init__(self, fromCartId=None, toCartId=None,):
12002
    self.fromCartId = fromCartId
12003
    self.toCartId = toCartId
12004
 
12005
  def read(self, iprot):
12006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12008
      return
12009
    iprot.readStructBegin()
12010
    while True:
12011
      (fname, ftype, fid) = iprot.readFieldBegin()
12012
      if ftype == TType.STOP:
12013
        break
12014
      if fid == 1:
12015
        if ftype == TType.I64:
12016
          self.fromCartId = iprot.readI64();
12017
        else:
12018
          iprot.skip(ftype)
12019
      elif fid == 2:
12020
        if ftype == TType.I64:
12021
          self.toCartId = iprot.readI64();
12022
        else:
12023
          iprot.skip(ftype)
12024
      else:
12025
        iprot.skip(ftype)
12026
      iprot.readFieldEnd()
12027
    iprot.readStructEnd()
12028
 
12029
  def write(self, oprot):
12030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12032
      return
12033
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 12034
    if self.fromCartId is not None:
690 chandransh 12035
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
12036
      oprot.writeI64(self.fromCartId)
12037
      oprot.writeFieldEnd()
3431 rajveer 12038
    if self.toCartId is not None:
690 chandransh 12039
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
12040
      oprot.writeI64(self.toCartId)
12041
      oprot.writeFieldEnd()
12042
    oprot.writeFieldStop()
12043
    oprot.writeStructEnd()
12044
 
3431 rajveer 12045
  def validate(self):
12046
    return
12047
 
12048
 
690 chandransh 12049
  def __repr__(self):
12050
    L = ['%s=%r' % (key, value)
12051
      for key, value in self.__dict__.iteritems()]
12052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12053
 
12054
  def __eq__(self, other):
12055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12056
 
12057
  def __ne__(self, other):
12058
    return not (self == other)
12059
 
12060
class mergeCart_result:
12061
 
12062
  thrift_spec = (
12063
  )
12064
 
12065
  def read(self, iprot):
12066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12068
      return
12069
    iprot.readStructBegin()
12070
    while True:
12071
      (fname, ftype, fid) = iprot.readFieldBegin()
12072
      if ftype == TType.STOP:
12073
        break
12074
      else:
12075
        iprot.skip(ftype)
12076
      iprot.readFieldEnd()
12077
    iprot.readStructEnd()
12078
 
12079
  def write(self, oprot):
12080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12082
      return
12083
    oprot.writeStructBegin('mergeCart_result')
12084
    oprot.writeFieldStop()
12085
    oprot.writeStructEnd()
12086
 
3431 rajveer 12087
  def validate(self):
12088
    return
12089
 
12090
 
690 chandransh 12091
  def __repr__(self):
12092
    L = ['%s=%r' % (key, value)
12093
      for key, value in self.__dict__.iteritems()]
12094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12095
 
12096
  def __eq__(self, other):
12097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12098
 
12099
  def __ne__(self, other):
12100
    return not (self == other)
12101
 
12102
class checkOut_args:
12103
  """
12104
  Attributes:
575 chandransh 12105
   - cartId
12106
  """
12107
 
12108
  thrift_spec = (
12109
    None, # 0
12110
    (1, TType.I64, 'cartId', None, None, ), # 1
12111
  )
12112
 
12113
  def __init__(self, cartId=None,):
12114
    self.cartId = cartId
12115
 
12116
  def read(self, iprot):
12117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12119
      return
12120
    iprot.readStructBegin()
12121
    while True:
12122
      (fname, ftype, fid) = iprot.readFieldBegin()
12123
      if ftype == TType.STOP:
12124
        break
12125
      if fid == 1:
12126
        if ftype == TType.I64:
12127
          self.cartId = iprot.readI64();
12128
        else:
12129
          iprot.skip(ftype)
12130
      else:
12131
        iprot.skip(ftype)
12132
      iprot.readFieldEnd()
12133
    iprot.readStructEnd()
12134
 
12135
  def write(self, oprot):
12136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12138
      return
690 chandransh 12139
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 12140
    if self.cartId is not None:
575 chandransh 12141
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12142
      oprot.writeI64(self.cartId)
12143
      oprot.writeFieldEnd()
12144
    oprot.writeFieldStop()
12145
    oprot.writeStructEnd()
12146
 
3431 rajveer 12147
  def validate(self):
12148
    return
12149
 
12150
 
575 chandransh 12151
  def __repr__(self):
12152
    L = ['%s=%r' % (key, value)
12153
      for key, value in self.__dict__.iteritems()]
12154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12155
 
12156
  def __eq__(self, other):
12157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12158
 
12159
  def __ne__(self, other):
12160
    return not (self == other)
12161
 
690 chandransh 12162
class checkOut_result:
575 chandransh 12163
  """
12164
  Attributes:
12165
   - success
12166
   - scex
12167
  """
12168
 
12169
  thrift_spec = (
12170
    (0, TType.BOOL, 'success', None, None, ), # 0
12171
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
12172
  )
12173
 
12174
  def __init__(self, success=None, scex=None,):
12175
    self.success = success
12176
    self.scex = scex
12177
 
12178
  def read(self, iprot):
12179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12181
      return
12182
    iprot.readStructBegin()
12183
    while True:
12184
      (fname, ftype, fid) = iprot.readFieldBegin()
12185
      if ftype == TType.STOP:
12186
        break
12187
      if fid == 0:
12188
        if ftype == TType.BOOL:
12189
          self.success = iprot.readBool();
12190
        else:
12191
          iprot.skip(ftype)
12192
      elif fid == 1:
12193
        if ftype == TType.STRUCT:
12194
          self.scex = ShoppingCartException()
12195
          self.scex.read(iprot)
12196
        else:
12197
          iprot.skip(ftype)
12198
      else:
12199
        iprot.skip(ftype)
12200
      iprot.readFieldEnd()
12201
    iprot.readStructEnd()
12202
 
12203
  def write(self, oprot):
12204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12206
      return
690 chandransh 12207
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 12208
    if self.success is not None:
575 chandransh 12209
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12210
      oprot.writeBool(self.success)
12211
      oprot.writeFieldEnd()
3431 rajveer 12212
    if self.scex is not None:
575 chandransh 12213
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12214
      self.scex.write(oprot)
12215
      oprot.writeFieldEnd()
12216
    oprot.writeFieldStop()
12217
    oprot.writeStructEnd()
12218
 
3431 rajveer 12219
  def validate(self):
12220
    return
12221
 
12222
 
575 chandransh 12223
  def __repr__(self):
12224
    L = ['%s=%r' % (key, value)
12225
      for key, value in self.__dict__.iteritems()]
12226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12227
 
12228
  def __eq__(self, other):
12229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12230
 
12231
  def __ne__(self, other):
12232
    return not (self == other)
12233
 
690 chandransh 12234
class resetCart_args:
559 chandransh 12235
  """
12236
  Attributes:
690 chandransh 12237
   - cartId
12238
   - items
559 chandransh 12239
  """
12240
 
12241
  thrift_spec = (
12242
    None, # 0
690 chandransh 12243
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 12244
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 12245
  )
12246
 
690 chandransh 12247
  def __init__(self, cartId=None, items=None,):
12248
    self.cartId = cartId
12249
    self.items = items
559 chandransh 12250
 
12251
  def read(self, iprot):
12252
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12253
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12254
      return
12255
    iprot.readStructBegin()
12256
    while True:
12257
      (fname, ftype, fid) = iprot.readFieldBegin()
12258
      if ftype == TType.STOP:
12259
        break
12260
      if fid == 1:
12261
        if ftype == TType.I64:
690 chandransh 12262
          self.cartId = iprot.readI64();
559 chandransh 12263
        else:
12264
          iprot.skip(ftype)
12265
      elif fid == 2:
690 chandransh 12266
        if ftype == TType.MAP:
12267
          self.items = {}
3554 varun.gupt 12268
          (_ktype127, _vtype128, _size126 ) = iprot.readMapBegin() 
12269
          for _i130 in xrange(_size126):
12270
            _key131 = iprot.readI64();
12271
            _val132 = iprot.readDouble();
12272
            self.items[_key131] = _val132
690 chandransh 12273
          iprot.readMapEnd()
559 chandransh 12274
        else:
12275
          iprot.skip(ftype)
12276
      else:
12277
        iprot.skip(ftype)
12278
      iprot.readFieldEnd()
12279
    iprot.readStructEnd()
12280
 
12281
  def write(self, oprot):
12282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12284
      return
690 chandransh 12285
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12286
    if self.cartId is not None:
690 chandransh 12287
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12288
      oprot.writeI64(self.cartId)
94 ashish 12289
      oprot.writeFieldEnd()
3431 rajveer 12290
    if self.items is not None:
690 chandransh 12291
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12292
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
3554 varun.gupt 12293
      for kiter133,viter134 in self.items.items():
12294
        oprot.writeI64(kiter133)
12295
        oprot.writeDouble(viter134)
690 chandransh 12296
      oprot.writeMapEnd()
559 chandransh 12297
      oprot.writeFieldEnd()
94 ashish 12298
    oprot.writeFieldStop()
12299
    oprot.writeStructEnd()
12300
 
3431 rajveer 12301
  def validate(self):
12302
    return
12303
 
12304
 
94 ashish 12305
  def __repr__(self):
12306
    L = ['%s=%r' % (key, value)
12307
      for key, value in self.__dict__.iteritems()]
12308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12309
 
12310
  def __eq__(self, other):
12311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12312
 
12313
  def __ne__(self, other):
12314
    return not (self == other)
12315
 
690 chandransh 12316
class resetCart_result:
12317
  """
12318
  Attributes:
12319
   - success
12320
   - scex
12321
  """
559 chandransh 12322
 
12323
  thrift_spec = (
690 chandransh 12324
    (0, TType.BOOL, 'success', None, None, ), # 0
12325
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12326
  )
12327
 
690 chandransh 12328
  def __init__(self, success=None, scex=None,):
12329
    self.success = success
12330
    self.scex = scex
12331
 
559 chandransh 12332
  def read(self, iprot):
12333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12335
      return
12336
    iprot.readStructBegin()
12337
    while True:
12338
      (fname, ftype, fid) = iprot.readFieldBegin()
12339
      if ftype == TType.STOP:
12340
        break
690 chandransh 12341
      if fid == 0:
12342
        if ftype == TType.BOOL:
12343
          self.success = iprot.readBool();
12344
        else:
12345
          iprot.skip(ftype)
12346
      elif fid == 1:
12347
        if ftype == TType.STRUCT:
12348
          self.scex = ShoppingCartException()
12349
          self.scex.read(iprot)
12350
        else:
12351
          iprot.skip(ftype)
559 chandransh 12352
      else:
12353
        iprot.skip(ftype)
12354
      iprot.readFieldEnd()
12355
    iprot.readStructEnd()
12356
 
12357
  def write(self, oprot):
12358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12360
      return
690 chandransh 12361
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12362
    if self.success is not None:
690 chandransh 12363
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12364
      oprot.writeBool(self.success)
12365
      oprot.writeFieldEnd()
3431 rajveer 12366
    if self.scex is not None:
690 chandransh 12367
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12368
      self.scex.write(oprot)
12369
      oprot.writeFieldEnd()
559 chandransh 12370
    oprot.writeFieldStop()
12371
    oprot.writeStructEnd()
12372
 
3431 rajveer 12373
  def validate(self):
12374
    return
12375
 
12376
 
559 chandransh 12377
  def __repr__(self):
12378
    L = ['%s=%r' % (key, value)
12379
      for key, value in self.__dict__.iteritems()]
12380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12381
 
12382
  def __eq__(self, other):
12383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12384
 
12385
  def __ne__(self, other):
12386
    return not (self == other)
12387
 
2981 rajveer 12388
class getUserCount_args:
94 ashish 12389
  """
12390
  Attributes:
2981 rajveer 12391
   - userType
559 chandransh 12392
  """
12393
 
12394
  thrift_spec = (
12395
    None, # 0
2981 rajveer 12396
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12397
  )
12398
 
2981 rajveer 12399
  def __init__(self, userType=None,):
12400
    self.userType = userType
559 chandransh 12401
 
12402
  def read(self, iprot):
12403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12405
      return
12406
    iprot.readStructBegin()
12407
    while True:
12408
      (fname, ftype, fid) = iprot.readFieldBegin()
12409
      if ftype == TType.STOP:
12410
        break
12411
      if fid == 1:
2981 rajveer 12412
        if ftype == TType.I32:
12413
          self.userType = iprot.readI32();
559 chandransh 12414
        else:
12415
          iprot.skip(ftype)
12416
      else:
12417
        iprot.skip(ftype)
12418
      iprot.readFieldEnd()
12419
    iprot.readStructEnd()
12420
 
12421
  def write(self, oprot):
12422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12424
      return
2981 rajveer 12425
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12426
    if self.userType is not None:
2981 rajveer 12427
      oprot.writeFieldBegin('userType', TType.I32, 1)
12428
      oprot.writeI32(self.userType)
559 chandransh 12429
      oprot.writeFieldEnd()
12430
    oprot.writeFieldStop()
12431
    oprot.writeStructEnd()
12432
 
3431 rajveer 12433
  def validate(self):
12434
    return
12435
 
12436
 
559 chandransh 12437
  def __repr__(self):
12438
    L = ['%s=%r' % (key, value)
12439
      for key, value in self.__dict__.iteritems()]
12440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12441
 
12442
  def __eq__(self, other):
12443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12444
 
12445
  def __ne__(self, other):
12446
    return not (self == other)
12447
 
2981 rajveer 12448
class getUserCount_result:
94 ashish 12449
  """
12450
  Attributes:
12451
   - success
12452
  """
12453
 
12454
  thrift_spec = (
2981 rajveer 12455
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12456
  )
12457
 
2981 rajveer 12458
  def __init__(self, success=None,):
94 ashish 12459
    self.success = success
12460
 
12461
  def read(self, iprot):
12462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12464
      return
12465
    iprot.readStructBegin()
12466
    while True:
12467
      (fname, ftype, fid) = iprot.readFieldBegin()
12468
      if ftype == TType.STOP:
12469
        break
12470
      if fid == 0:
2981 rajveer 12471
        if ftype == TType.I64:
12472
          self.success = iprot.readI64();
94 ashish 12473
        else:
12474
          iprot.skip(ftype)
12475
      else:
12476
        iprot.skip(ftype)
12477
      iprot.readFieldEnd()
12478
    iprot.readStructEnd()
12479
 
12480
  def write(self, oprot):
12481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12483
      return
2981 rajveer 12484
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12485
    if self.success is not None:
2981 rajveer 12486
      oprot.writeFieldBegin('success', TType.I64, 0)
12487
      oprot.writeI64(self.success)
94 ashish 12488
      oprot.writeFieldEnd()
12489
    oprot.writeFieldStop()
12490
    oprot.writeStructEnd()
12491
 
3431 rajveer 12492
  def validate(self):
12493
    return
12494
 
12495
 
94 ashish 12496
  def __repr__(self):
12497
    L = ['%s=%r' % (key, value)
12498
      for key, value in self.__dict__.iteritems()]
12499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12500
 
12501
  def __eq__(self, other):
12502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12503
 
12504
  def __ne__(self, other):
12505
    return not (self == other)
12506
 
2981 rajveer 12507
class getAllUsers_args:
94 ashish 12508
  """
12509
  Attributes:
2981 rajveer 12510
   - userType
12511
   - startDate
12512
   - endDate
94 ashish 12513
  """
12514
 
12515
  thrift_spec = (
12516
    None, # 0
2981 rajveer 12517
    (1, TType.I32, 'userType', None, None, ), # 1
12518
    (2, TType.I64, 'startDate', None, None, ), # 2
12519
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12520
  )
12521
 
2981 rajveer 12522
  def __init__(self, userType=None, startDate=None, endDate=None,):
12523
    self.userType = userType
12524
    self.startDate = startDate
12525
    self.endDate = endDate
94 ashish 12526
 
12527
  def read(self, iprot):
12528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12530
      return
12531
    iprot.readStructBegin()
12532
    while True:
12533
      (fname, ftype, fid) = iprot.readFieldBegin()
12534
      if ftype == TType.STOP:
12535
        break
12536
      if fid == 1:
2981 rajveer 12537
        if ftype == TType.I32:
12538
          self.userType = iprot.readI32();
94 ashish 12539
        else:
12540
          iprot.skip(ftype)
12541
      elif fid == 2:
559 chandransh 12542
        if ftype == TType.I64:
2981 rajveer 12543
          self.startDate = iprot.readI64();
94 ashish 12544
        else:
12545
          iprot.skip(ftype)
2981 rajveer 12546
      elif fid == 3:
12547
        if ftype == TType.I64:
12548
          self.endDate = iprot.readI64();
12549
        else:
12550
          iprot.skip(ftype)
94 ashish 12551
      else:
12552
        iprot.skip(ftype)
12553
      iprot.readFieldEnd()
12554
    iprot.readStructEnd()
12555
 
12556
  def write(self, oprot):
12557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12559
      return
2981 rajveer 12560
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12561
    if self.userType is not None:
2981 rajveer 12562
      oprot.writeFieldBegin('userType', TType.I32, 1)
12563
      oprot.writeI32(self.userType)
94 ashish 12564
      oprot.writeFieldEnd()
3431 rajveer 12565
    if self.startDate is not None:
2981 rajveer 12566
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12567
      oprot.writeI64(self.startDate)
94 ashish 12568
      oprot.writeFieldEnd()
3431 rajveer 12569
    if self.endDate is not None:
2981 rajveer 12570
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12571
      oprot.writeI64(self.endDate)
12572
      oprot.writeFieldEnd()
94 ashish 12573
    oprot.writeFieldStop()
12574
    oprot.writeStructEnd()
12575
 
3431 rajveer 12576
  def validate(self):
12577
    return
12578
 
12579
 
94 ashish 12580
  def __repr__(self):
12581
    L = ['%s=%r' % (key, value)
12582
      for key, value in self.__dict__.iteritems()]
12583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12584
 
12585
  def __eq__(self, other):
12586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12587
 
12588
  def __ne__(self, other):
12589
    return not (self == other)
12590
 
2981 rajveer 12591
class getAllUsers_result:
94 ashish 12592
  """
12593
  Attributes:
12594
   - success
12595
  """
12596
 
12597
  thrift_spec = (
2981 rajveer 12598
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12599
  )
12600
 
2981 rajveer 12601
  def __init__(self, success=None,):
94 ashish 12602
    self.success = success
12603
 
12604
  def read(self, iprot):
12605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12607
      return
12608
    iprot.readStructBegin()
12609
    while True:
12610
      (fname, ftype, fid) = iprot.readFieldBegin()
12611
      if ftype == TType.STOP:
12612
        break
12613
      if fid == 0:
2981 rajveer 12614
        if ftype == TType.LIST:
12615
          self.success = []
3554 varun.gupt 12616
          (_etype138, _size135) = iprot.readListBegin()
12617
          for _i139 in xrange(_size135):
12618
            _elem140 = User()
12619
            _elem140.read(iprot)
12620
            self.success.append(_elem140)
2981 rajveer 12621
          iprot.readListEnd()
94 ashish 12622
        else:
12623
          iprot.skip(ftype)
12624
      else:
12625
        iprot.skip(ftype)
12626
      iprot.readFieldEnd()
12627
    iprot.readStructEnd()
12628
 
12629
  def write(self, oprot):
12630
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12631
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12632
      return
2981 rajveer 12633
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12634
    if self.success is not None:
2981 rajveer 12635
      oprot.writeFieldBegin('success', TType.LIST, 0)
12636
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 12637
      for iter141 in self.success:
12638
        iter141.write(oprot)
2981 rajveer 12639
      oprot.writeListEnd()
94 ashish 12640
      oprot.writeFieldEnd()
12641
    oprot.writeFieldStop()
12642
    oprot.writeStructEnd()
12643
 
3431 rajveer 12644
  def validate(self):
12645
    return
12646
 
12647
 
94 ashish 12648
  def __repr__(self):
12649
    L = ['%s=%r' % (key, value)
12650
      for key, value in self.__dict__.iteritems()]
12651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12652
 
12653
  def __eq__(self, other):
12654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12655
 
12656
  def __ne__(self, other):
12657
    return not (self == other)
12658
 
2981 rajveer 12659
class putUserNote_args:
130 ashish 12660
  """
12661
  Attributes:
2981 rajveer 12662
   - user_id
12663
   - entity_id
12664
   - slide
12665
   - note
130 ashish 12666
  """
94 ashish 12667
 
130 ashish 12668
  thrift_spec = (
12669
    None, # 0
2981 rajveer 12670
    (1, TType.I64, 'user_id', None, None, ), # 1
12671
    (2, TType.I64, 'entity_id', None, None, ), # 2
12672
    (3, TType.STRING, 'slide', None, None, ), # 3
12673
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12674
  )
12675
 
2981 rajveer 12676
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12677
    self.user_id = user_id
12678
    self.entity_id = entity_id
12679
    self.slide = slide
12680
    self.note = note
130 ashish 12681
 
12682
  def read(self, iprot):
12683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12685
      return
12686
    iprot.readStructBegin()
12687
    while True:
12688
      (fname, ftype, fid) = iprot.readFieldBegin()
12689
      if ftype == TType.STOP:
12690
        break
12691
      if fid == 1:
12692
        if ftype == TType.I64:
2981 rajveer 12693
          self.user_id = iprot.readI64();
130 ashish 12694
        else:
12695
          iprot.skip(ftype)
559 chandransh 12696
      elif fid == 2:
12697
        if ftype == TType.I64:
2981 rajveer 12698
          self.entity_id = iprot.readI64();
559 chandransh 12699
        else:
12700
          iprot.skip(ftype)
2981 rajveer 12701
      elif fid == 3:
12702
        if ftype == TType.STRING:
12703
          self.slide = iprot.readString();
12704
        else:
12705
          iprot.skip(ftype)
12706
      elif fid == 4:
12707
        if ftype == TType.STRING:
12708
          self.note = iprot.readString();
12709
        else:
12710
          iprot.skip(ftype)
130 ashish 12711
      else:
12712
        iprot.skip(ftype)
12713
      iprot.readFieldEnd()
12714
    iprot.readStructEnd()
12715
 
12716
  def write(self, oprot):
12717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12719
      return
2981 rajveer 12720
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12721
    if self.user_id is not None:
2981 rajveer 12722
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12723
      oprot.writeI64(self.user_id)
130 ashish 12724
      oprot.writeFieldEnd()
3431 rajveer 12725
    if self.entity_id is not None:
2981 rajveer 12726
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12727
      oprot.writeI64(self.entity_id)
559 chandransh 12728
      oprot.writeFieldEnd()
3431 rajveer 12729
    if self.slide is not None:
2981 rajveer 12730
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12731
      oprot.writeString(self.slide)
12732
      oprot.writeFieldEnd()
3431 rajveer 12733
    if self.note is not None:
2981 rajveer 12734
      oprot.writeFieldBegin('note', TType.STRING, 4)
12735
      oprot.writeString(self.note)
12736
      oprot.writeFieldEnd()
130 ashish 12737
    oprot.writeFieldStop()
12738
    oprot.writeStructEnd()
12739
 
3431 rajveer 12740
  def validate(self):
12741
    return
12742
 
12743
 
130 ashish 12744
  def __repr__(self):
12745
    L = ['%s=%r' % (key, value)
12746
      for key, value in self.__dict__.iteritems()]
12747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12748
 
12749
  def __eq__(self, other):
12750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12751
 
12752
  def __ne__(self, other):
12753
    return not (self == other)
12754
 
2981 rajveer 12755
class putUserNote_result:
559 chandransh 12756
 
12757
  thrift_spec = (
12758
  )
12759
 
12760
  def read(self, iprot):
12761
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12762
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12763
      return
12764
    iprot.readStructBegin()
12765
    while True:
12766
      (fname, ftype, fid) = iprot.readFieldBegin()
12767
      if ftype == TType.STOP:
12768
        break
12769
      else:
12770
        iprot.skip(ftype)
12771
      iprot.readFieldEnd()
12772
    iprot.readStructEnd()
12773
 
12774
  def write(self, oprot):
12775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12777
      return
2981 rajveer 12778
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12779
    oprot.writeFieldStop()
12780
    oprot.writeStructEnd()
12781
 
3431 rajveer 12782
  def validate(self):
12783
    return
12784
 
12785
 
559 chandransh 12786
  def __repr__(self):
12787
    L = ['%s=%r' % (key, value)
12788
      for key, value in self.__dict__.iteritems()]
12789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12790
 
12791
  def __eq__(self, other):
12792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12793
 
12794
  def __ne__(self, other):
12795
    return not (self == other)
12796
 
2981 rajveer 12797
class getUserNotes_args:
559 chandransh 12798
  """
12799
  Attributes:
2981 rajveer 12800
   - user_id
12801
   - entity_id
559 chandransh 12802
  """
12803
 
12804
  thrift_spec = (
12805
    None, # 0
2981 rajveer 12806
    (1, TType.I64, 'user_id', None, None, ), # 1
12807
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12808
  )
12809
 
2981 rajveer 12810
  def __init__(self, user_id=None, entity_id=None,):
12811
    self.user_id = user_id
12812
    self.entity_id = entity_id
559 chandransh 12813
 
12814
  def read(self, iprot):
12815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12817
      return
12818
    iprot.readStructBegin()
12819
    while True:
12820
      (fname, ftype, fid) = iprot.readFieldBegin()
12821
      if ftype == TType.STOP:
12822
        break
12823
      if fid == 1:
12824
        if ftype == TType.I64:
2981 rajveer 12825
          self.user_id = iprot.readI64();
559 chandransh 12826
        else:
12827
          iprot.skip(ftype)
12828
      elif fid == 2:
12829
        if ftype == TType.I64:
2981 rajveer 12830
          self.entity_id = iprot.readI64();
559 chandransh 12831
        else:
12832
          iprot.skip(ftype)
12833
      else:
12834
        iprot.skip(ftype)
12835
      iprot.readFieldEnd()
12836
    iprot.readStructEnd()
12837
 
12838
  def write(self, oprot):
12839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12841
      return
2981 rajveer 12842
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12843
    if self.user_id is not None:
2981 rajveer 12844
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12845
      oprot.writeI64(self.user_id)
559 chandransh 12846
      oprot.writeFieldEnd()
3431 rajveer 12847
    if self.entity_id is not None:
2981 rajveer 12848
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12849
      oprot.writeI64(self.entity_id)
559 chandransh 12850
      oprot.writeFieldEnd()
12851
    oprot.writeFieldStop()
12852
    oprot.writeStructEnd()
12853
 
3431 rajveer 12854
  def validate(self):
12855
    return
12856
 
12857
 
559 chandransh 12858
  def __repr__(self):
12859
    L = ['%s=%r' % (key, value)
12860
      for key, value in self.__dict__.iteritems()]
12861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12862
 
12863
  def __eq__(self, other):
12864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12865
 
12866
  def __ne__(self, other):
12867
    return not (self == other)
12868
 
2981 rajveer 12869
class getUserNotes_result:
12870
  """
12871
  Attributes:
12872
   - success
12873
  """
559 chandransh 12874
 
12875
  thrift_spec = (
2981 rajveer 12876
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12877
  )
12878
 
2981 rajveer 12879
  def __init__(self, success=None,):
12880
    self.success = success
12881
 
559 chandransh 12882
  def read(self, iprot):
12883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12885
      return
12886
    iprot.readStructBegin()
12887
    while True:
12888
      (fname, ftype, fid) = iprot.readFieldBegin()
12889
      if ftype == TType.STOP:
12890
        break
2981 rajveer 12891
      if fid == 0:
12892
        if ftype == TType.LIST:
12893
          self.success = []
3554 varun.gupt 12894
          (_etype145, _size142) = iprot.readListBegin()
12895
          for _i146 in xrange(_size142):
12896
            _elem147 = UserNote()
12897
            _elem147.read(iprot)
12898
            self.success.append(_elem147)
2981 rajveer 12899
          iprot.readListEnd()
12900
        else:
12901
          iprot.skip(ftype)
559 chandransh 12902
      else:
12903
        iprot.skip(ftype)
12904
      iprot.readFieldEnd()
12905
    iprot.readStructEnd()
12906
 
12907
  def write(self, oprot):
12908
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12909
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12910
      return
2981 rajveer 12911
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12912
    if self.success is not None:
2981 rajveer 12913
      oprot.writeFieldBegin('success', TType.LIST, 0)
12914
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 12915
      for iter148 in self.success:
12916
        iter148.write(oprot)
2981 rajveer 12917
      oprot.writeListEnd()
12918
      oprot.writeFieldEnd()
559 chandransh 12919
    oprot.writeFieldStop()
12920
    oprot.writeStructEnd()
12921
 
3431 rajveer 12922
  def validate(self):
12923
    return
12924
 
12925
 
559 chandransh 12926
  def __repr__(self):
12927
    L = ['%s=%r' % (key, value)
12928
      for key, value in self.__dict__.iteritems()]
12929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12930
 
12931
  def __eq__(self, other):
12932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12933
 
12934
  def __ne__(self, other):
12935
    return not (self == other)
12936
 
2981 rajveer 12937
class getMyResearchItems_args:
559 chandransh 12938
  """
12939
  Attributes:
772 rajveer 12940
   - userId
559 chandransh 12941
  """
12942
 
12943
  thrift_spec = (
12944
    None, # 0
772 rajveer 12945
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12946
  )
12947
 
772 rajveer 12948
  def __init__(self, userId=None,):
12949
    self.userId = userId
559 chandransh 12950
 
12951
  def read(self, iprot):
12952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12954
      return
12955
    iprot.readStructBegin()
12956
    while True:
12957
      (fname, ftype, fid) = iprot.readFieldBegin()
12958
      if ftype == TType.STOP:
12959
        break
12960
      if fid == 1:
12961
        if ftype == TType.I64:
772 rajveer 12962
          self.userId = iprot.readI64();
559 chandransh 12963
        else:
12964
          iprot.skip(ftype)
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('getMyResearchItems_args')
3431 rajveer 12975
    if self.userId is not None:
772 rajveer 12976
      oprot.writeFieldBegin('userId', TType.I64, 1)
12977
      oprot.writeI64(self.userId)
559 chandransh 12978
      oprot.writeFieldEnd()
12979
    oprot.writeFieldStop()
12980
    oprot.writeStructEnd()
12981
 
3431 rajveer 12982
  def validate(self):
12983
    return
12984
 
12985
 
559 chandransh 12986
  def __repr__(self):
12987
    L = ['%s=%r' % (key, value)
12988
      for key, value in self.__dict__.iteritems()]
12989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12990
 
12991
  def __eq__(self, other):
12992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12993
 
12994
  def __ne__(self, other):
12995
    return not (self == other)
12996
 
2981 rajveer 12997
class getMyResearchItems_result:
559 chandransh 12998
  """
12999
  Attributes:
130 ashish 13000
   - success
559 chandransh 13001
   - scx
130 ashish 13002
  """
13003
 
13004
  thrift_spec = (
2981 rajveer 13005
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 13006
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 13007
  )
13008
 
559 chandransh 13009
  def __init__(self, success=None, scx=None,):
130 ashish 13010
    self.success = success
559 chandransh 13011
    self.scx = scx
130 ashish 13012
 
13013
  def read(self, iprot):
13014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13016
      return
13017
    iprot.readStructBegin()
13018
    while True:
13019
      (fname, ftype, fid) = iprot.readFieldBegin()
13020
      if ftype == TType.STOP:
13021
        break
13022
      if fid == 0:
2981 rajveer 13023
        if ftype == TType.LIST:
13024
          self.success = []
3554 varun.gupt 13025
          (_etype152, _size149) = iprot.readListBegin()
13026
          for _i153 in xrange(_size149):
13027
            _elem154 = iprot.readI64();
13028
            self.success.append(_elem154)
2981 rajveer 13029
          iprot.readListEnd()
130 ashish 13030
        else:
13031
          iprot.skip(ftype)
13032
      elif fid == 1:
13033
        if ftype == TType.STRUCT:
559 chandransh 13034
          self.scx = WidgetException()
13035
          self.scx.read(iprot)
130 ashish 13036
        else:
13037
          iprot.skip(ftype)
13038
      else:
13039
        iprot.skip(ftype)
13040
      iprot.readFieldEnd()
13041
    iprot.readStructEnd()
13042
 
13043
  def write(self, oprot):
13044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13046
      return
2981 rajveer 13047
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 13048
    if self.success is not None:
2981 rajveer 13049
      oprot.writeFieldBegin('success', TType.LIST, 0)
13050
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13051
      for iter155 in self.success:
13052
        oprot.writeI64(iter155)
2981 rajveer 13053
      oprot.writeListEnd()
130 ashish 13054
      oprot.writeFieldEnd()
3431 rajveer 13055
    if self.scx is not None:
559 chandransh 13056
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13057
      self.scx.write(oprot)
130 ashish 13058
      oprot.writeFieldEnd()
13059
    oprot.writeFieldStop()
13060
    oprot.writeStructEnd()
13061
 
3431 rajveer 13062
  def validate(self):
13063
    return
13064
 
13065
 
130 ashish 13066
  def __repr__(self):
13067
    L = ['%s=%r' % (key, value)
13068
      for key, value in self.__dict__.iteritems()]
13069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13070
 
13071
  def __eq__(self, other):
13072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13073
 
13074
  def __ne__(self, other):
13075
    return not (self == other)
13076
 
2981 rajveer 13077
class updateMyResearch_args:
130 ashish 13078
  """
13079
  Attributes:
2981 rajveer 13080
   - userId
13081
   - itemId
130 ashish 13082
  """
13083
 
13084
  thrift_spec = (
13085
    None, # 0
2981 rajveer 13086
    (1, TType.I64, 'userId', None, None, ), # 1
13087
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 13088
  )
13089
 
2981 rajveer 13090
  def __init__(self, userId=None, itemId=None,):
13091
    self.userId = userId
13092
    self.itemId = itemId
130 ashish 13093
 
13094
  def read(self, iprot):
13095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13097
      return
13098
    iprot.readStructBegin()
13099
    while True:
13100
      (fname, ftype, fid) = iprot.readFieldBegin()
13101
      if ftype == TType.STOP:
13102
        break
13103
      if fid == 1:
559 chandransh 13104
        if ftype == TType.I64:
2981 rajveer 13105
          self.userId = iprot.readI64();
130 ashish 13106
        else:
13107
          iprot.skip(ftype)
13108
      elif fid == 2:
559 chandransh 13109
        if ftype == TType.I64:
2981 rajveer 13110
          self.itemId = iprot.readI64();
559 chandransh 13111
        else:
13112
          iprot.skip(ftype)
130 ashish 13113
      else:
13114
        iprot.skip(ftype)
13115
      iprot.readFieldEnd()
13116
    iprot.readStructEnd()
13117
 
13118
  def write(self, oprot):
13119
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13120
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13121
      return
2981 rajveer 13122
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 13123
    if self.userId is not None:
2981 rajveer 13124
      oprot.writeFieldBegin('userId', TType.I64, 1)
13125
      oprot.writeI64(self.userId)
130 ashish 13126
      oprot.writeFieldEnd()
3431 rajveer 13127
    if self.itemId is not None:
2981 rajveer 13128
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13129
      oprot.writeI64(self.itemId)
130 ashish 13130
      oprot.writeFieldEnd()
13131
    oprot.writeFieldStop()
13132
    oprot.writeStructEnd()
13133
 
3431 rajveer 13134
  def validate(self):
13135
    return
13136
 
13137
 
130 ashish 13138
  def __repr__(self):
13139
    L = ['%s=%r' % (key, value)
13140
      for key, value in self.__dict__.iteritems()]
13141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13142
 
13143
  def __eq__(self, other):
13144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13145
 
13146
  def __ne__(self, other):
13147
    return not (self == other)
13148
 
2981 rajveer 13149
class updateMyResearch_result:
13150
  """
13151
  Attributes:
13152
   - success
13153
   - scx
13154
  """
559 chandransh 13155
 
13156
  thrift_spec = (
2981 rajveer 13157
    (0, TType.BOOL, 'success', None, None, ), # 0
13158
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 13159
  )
13160
 
2981 rajveer 13161
  def __init__(self, success=None, scx=None,):
13162
    self.success = success
13163
    self.scx = scx
13164
 
559 chandransh 13165
  def read(self, iprot):
13166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13168
      return
13169
    iprot.readStructBegin()
13170
    while True:
13171
      (fname, ftype, fid) = iprot.readFieldBegin()
13172
      if ftype == TType.STOP:
13173
        break
2981 rajveer 13174
      if fid == 0:
13175
        if ftype == TType.BOOL:
13176
          self.success = iprot.readBool();
13177
        else:
13178
          iprot.skip(ftype)
13179
      elif fid == 1:
13180
        if ftype == TType.STRUCT:
13181
          self.scx = WidgetException()
13182
          self.scx.read(iprot)
13183
        else:
13184
          iprot.skip(ftype)
559 chandransh 13185
      else:
13186
        iprot.skip(ftype)
13187
      iprot.readFieldEnd()
13188
    iprot.readStructEnd()
13189
 
13190
  def write(self, oprot):
13191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13193
      return
2981 rajveer 13194
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 13195
    if self.success is not None:
2981 rajveer 13196
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13197
      oprot.writeBool(self.success)
13198
      oprot.writeFieldEnd()
3431 rajveer 13199
    if self.scx is not None:
2981 rajveer 13200
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13201
      self.scx.write(oprot)
13202
      oprot.writeFieldEnd()
559 chandransh 13203
    oprot.writeFieldStop()
13204
    oprot.writeStructEnd()
13205
 
3431 rajveer 13206
  def validate(self):
13207
    return
13208
 
13209
 
559 chandransh 13210
  def __repr__(self):
13211
    L = ['%s=%r' % (key, value)
13212
      for key, value in self.__dict__.iteritems()]
13213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13214
 
13215
  def __eq__(self, other):
13216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13217
 
13218
  def __ne__(self, other):
13219
    return not (self == other)
13220
 
2981 rajveer 13221
class deleteItemFromMyResearch_args:
1596 ankur.sing 13222
  """
13223
  Attributes:
2981 rajveer 13224
   - userId
13225
   - itemId
1596 ankur.sing 13226
  """
559 chandransh 13227
 
1596 ankur.sing 13228
  thrift_spec = (
13229
    None, # 0
2981 rajveer 13230
    (1, TType.I64, 'userId', None, None, ), # 1
13231
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 13232
  )
13233
 
2981 rajveer 13234
  def __init__(self, userId=None, itemId=None,):
13235
    self.userId = userId
13236
    self.itemId = itemId
1596 ankur.sing 13237
 
13238
  def read(self, iprot):
13239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13241
      return
13242
    iprot.readStructBegin()
13243
    while True:
13244
      (fname, ftype, fid) = iprot.readFieldBegin()
13245
      if ftype == TType.STOP:
13246
        break
13247
      if fid == 1:
2981 rajveer 13248
        if ftype == TType.I64:
13249
          self.userId = iprot.readI64();
1596 ankur.sing 13250
        else:
13251
          iprot.skip(ftype)
2981 rajveer 13252
      elif fid == 2:
13253
        if ftype == TType.I64:
13254
          self.itemId = iprot.readI64();
13255
        else:
13256
          iprot.skip(ftype)
1596 ankur.sing 13257
      else:
13258
        iprot.skip(ftype)
13259
      iprot.readFieldEnd()
13260
    iprot.readStructEnd()
13261
 
13262
  def write(self, oprot):
13263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13265
      return
2981 rajveer 13266
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13267
    if self.userId is not None:
2981 rajveer 13268
      oprot.writeFieldBegin('userId', TType.I64, 1)
13269
      oprot.writeI64(self.userId)
1596 ankur.sing 13270
      oprot.writeFieldEnd()
3431 rajveer 13271
    if self.itemId is not None:
2981 rajveer 13272
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13273
      oprot.writeI64(self.itemId)
13274
      oprot.writeFieldEnd()
1596 ankur.sing 13275
    oprot.writeFieldStop()
13276
    oprot.writeStructEnd()
13277
 
3431 rajveer 13278
  def validate(self):
13279
    return
13280
 
13281
 
1596 ankur.sing 13282
  def __repr__(self):
13283
    L = ['%s=%r' % (key, value)
13284
      for key, value in self.__dict__.iteritems()]
13285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13286
 
13287
  def __eq__(self, other):
13288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13289
 
13290
  def __ne__(self, other):
13291
    return not (self == other)
13292
 
2981 rajveer 13293
class deleteItemFromMyResearch_result:
1596 ankur.sing 13294
  """
13295
  Attributes:
2981 rajveer 13296
   - scx
1596 ankur.sing 13297
  """
13298
 
13299
  thrift_spec = (
2981 rajveer 13300
    None, # 0
13301
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13302
  )
13303
 
2981 rajveer 13304
  def __init__(self, scx=None,):
13305
    self.scx = scx
1596 ankur.sing 13306
 
13307
  def read(self, iprot):
13308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13310
      return
13311
    iprot.readStructBegin()
13312
    while True:
13313
      (fname, ftype, fid) = iprot.readFieldBegin()
13314
      if ftype == TType.STOP:
13315
        break
2981 rajveer 13316
      if fid == 1:
13317
        if ftype == TType.STRUCT:
13318
          self.scx = WidgetException()
13319
          self.scx.read(iprot)
1596 ankur.sing 13320
        else:
13321
          iprot.skip(ftype)
13322
      else:
13323
        iprot.skip(ftype)
13324
      iprot.readFieldEnd()
13325
    iprot.readStructEnd()
13326
 
13327
  def write(self, oprot):
13328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13330
      return
2981 rajveer 13331
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13332
    if self.scx is not None:
2981 rajveer 13333
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13334
      self.scx.write(oprot)
1596 ankur.sing 13335
      oprot.writeFieldEnd()
13336
    oprot.writeFieldStop()
13337
    oprot.writeStructEnd()
13338
 
3431 rajveer 13339
  def validate(self):
13340
    return
13341
 
13342
 
1596 ankur.sing 13343
  def __repr__(self):
13344
    L = ['%s=%r' % (key, value)
13345
      for key, value in self.__dict__.iteritems()]
13346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13347
 
13348
  def __eq__(self, other):
13349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13350
 
13351
  def __ne__(self, other):
13352
    return not (self == other)
13353
 
2981 rajveer 13354
class getBrowseHistoryItems_args:
1673 ankur.sing 13355
  """
13356
  Attributes:
2981 rajveer 13357
   - userId
1673 ankur.sing 13358
  """
1596 ankur.sing 13359
 
1673 ankur.sing 13360
  thrift_spec = (
13361
    None, # 0
2981 rajveer 13362
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13363
  )
13364
 
2981 rajveer 13365
  def __init__(self, userId=None,):
13366
    self.userId = userId
1673 ankur.sing 13367
 
13368
  def read(self, iprot):
13369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13371
      return
13372
    iprot.readStructBegin()
13373
    while True:
13374
      (fname, ftype, fid) = iprot.readFieldBegin()
13375
      if ftype == TType.STOP:
13376
        break
13377
      if fid == 1:
1891 ankur.sing 13378
        if ftype == TType.I64:
2981 rajveer 13379
          self.userId = iprot.readI64();
1891 ankur.sing 13380
        else:
13381
          iprot.skip(ftype)
1673 ankur.sing 13382
      else:
13383
        iprot.skip(ftype)
13384
      iprot.readFieldEnd()
13385
    iprot.readStructEnd()
13386
 
13387
  def write(self, oprot):
13388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13390
      return
2981 rajveer 13391
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13392
    if self.userId is not None:
2981 rajveer 13393
      oprot.writeFieldBegin('userId', TType.I64, 1)
13394
      oprot.writeI64(self.userId)
1673 ankur.sing 13395
      oprot.writeFieldEnd()
13396
    oprot.writeFieldStop()
13397
    oprot.writeStructEnd()
13398
 
3431 rajveer 13399
  def validate(self):
13400
    return
13401
 
13402
 
1673 ankur.sing 13403
  def __repr__(self):
13404
    L = ['%s=%r' % (key, value)
13405
      for key, value in self.__dict__.iteritems()]
13406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13407
 
13408
  def __eq__(self, other):
13409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13410
 
13411
  def __ne__(self, other):
13412
    return not (self == other)
13413
 
2981 rajveer 13414
class getBrowseHistoryItems_result:
1673 ankur.sing 13415
  """
13416
  Attributes:
13417
   - success
2981 rajveer 13418
   - scx
1673 ankur.sing 13419
  """
13420
 
13421
  thrift_spec = (
2981 rajveer 13422
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13423
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13424
  )
13425
 
2981 rajveer 13426
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13427
    self.success = success
2981 rajveer 13428
    self.scx = scx
1673 ankur.sing 13429
 
13430
  def read(self, iprot):
13431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13433
      return
13434
    iprot.readStructBegin()
13435
    while True:
13436
      (fname, ftype, fid) = iprot.readFieldBegin()
13437
      if ftype == TType.STOP:
13438
        break
13439
      if fid == 0:
13440
        if ftype == TType.LIST:
13441
          self.success = []
3554 varun.gupt 13442
          (_etype159, _size156) = iprot.readListBegin()
13443
          for _i160 in xrange(_size156):
13444
            _elem161 = iprot.readI64();
13445
            self.success.append(_elem161)
1673 ankur.sing 13446
          iprot.readListEnd()
13447
        else:
13448
          iprot.skip(ftype)
2981 rajveer 13449
      elif fid == 1:
13450
        if ftype == TType.STRUCT:
13451
          self.scx = WidgetException()
13452
          self.scx.read(iprot)
13453
        else:
13454
          iprot.skip(ftype)
1673 ankur.sing 13455
      else:
13456
        iprot.skip(ftype)
13457
      iprot.readFieldEnd()
13458
    iprot.readStructEnd()
13459
 
13460
  def write(self, oprot):
13461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13463
      return
2981 rajveer 13464
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13465
    if self.success is not None:
1673 ankur.sing 13466
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13467
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13468
      for iter162 in self.success:
13469
        oprot.writeI64(iter162)
1673 ankur.sing 13470
      oprot.writeListEnd()
13471
      oprot.writeFieldEnd()
3431 rajveer 13472
    if self.scx is not None:
2981 rajveer 13473
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13474
      self.scx.write(oprot)
2642 varun.gupt 13475
      oprot.writeFieldEnd()
13476
    oprot.writeFieldStop()
13477
    oprot.writeStructEnd()
13478
 
3431 rajveer 13479
  def validate(self):
13480
    return
13481
 
13482
 
2642 varun.gupt 13483
  def __repr__(self):
13484
    L = ['%s=%r' % (key, value)
13485
      for key, value in self.__dict__.iteritems()]
13486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13487
 
13488
  def __eq__(self, other):
13489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13490
 
13491
  def __ne__(self, other):
13492
    return not (self == other)
13493
 
2981 rajveer 13494
class updateBrowseHistory_args:
2642 varun.gupt 13495
  """
13496
  Attributes:
2981 rajveer 13497
   - userId
13498
   - itemId
2642 varun.gupt 13499
  """
13500
 
13501
  thrift_spec = (
13502
    None, # 0
2981 rajveer 13503
    (1, TType.I64, 'userId', None, None, ), # 1
13504
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13505
  )
13506
 
2981 rajveer 13507
  def __init__(self, userId=None, itemId=None,):
13508
    self.userId = userId
13509
    self.itemId = itemId
2642 varun.gupt 13510
 
13511
  def read(self, iprot):
13512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13514
      return
13515
    iprot.readStructBegin()
13516
    while True:
13517
      (fname, ftype, fid) = iprot.readFieldBegin()
13518
      if ftype == TType.STOP:
13519
        break
13520
      if fid == 1:
13521
        if ftype == TType.I64:
2981 rajveer 13522
          self.userId = iprot.readI64();
2642 varun.gupt 13523
        else:
13524
          iprot.skip(ftype)
13525
      elif fid == 2:
13526
        if ftype == TType.I64:
2981 rajveer 13527
          self.itemId = iprot.readI64();
2642 varun.gupt 13528
        else:
13529
          iprot.skip(ftype)
13530
      else:
13531
        iprot.skip(ftype)
13532
      iprot.readFieldEnd()
13533
    iprot.readStructEnd()
13534
 
13535
  def write(self, oprot):
13536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13538
      return
2981 rajveer 13539
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13540
    if self.userId is not None:
2981 rajveer 13541
      oprot.writeFieldBegin('userId', TType.I64, 1)
13542
      oprot.writeI64(self.userId)
2642 varun.gupt 13543
      oprot.writeFieldEnd()
3431 rajveer 13544
    if self.itemId is not None:
2981 rajveer 13545
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13546
      oprot.writeI64(self.itemId)
2642 varun.gupt 13547
      oprot.writeFieldEnd()
13548
    oprot.writeFieldStop()
13549
    oprot.writeStructEnd()
13550
 
3431 rajveer 13551
  def validate(self):
13552
    return
13553
 
13554
 
2642 varun.gupt 13555
  def __repr__(self):
13556
    L = ['%s=%r' % (key, value)
13557
      for key, value in self.__dict__.iteritems()]
13558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13559
 
13560
  def __eq__(self, other):
13561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13562
 
13563
  def __ne__(self, other):
13564
    return not (self == other)
13565
 
2981 rajveer 13566
class updateBrowseHistory_result:
2642 varun.gupt 13567
 
13568
  thrift_spec = (
13569
  )
13570
 
13571
  def read(self, iprot):
13572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13574
      return
13575
    iprot.readStructBegin()
13576
    while True:
13577
      (fname, ftype, fid) = iprot.readFieldBegin()
13578
      if ftype == TType.STOP:
13579
        break
13580
      else:
13581
        iprot.skip(ftype)
13582
      iprot.readFieldEnd()
13583
    iprot.readStructEnd()
13584
 
13585
  def write(self, oprot):
13586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13588
      return
2981 rajveer 13589
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13590
    oprot.writeFieldStop()
13591
    oprot.writeStructEnd()
13592
 
3431 rajveer 13593
  def validate(self):
13594
    return
13595
 
13596
 
2642 varun.gupt 13597
  def __repr__(self):
13598
    L = ['%s=%r' % (key, value)
13599
      for key, value in self.__dict__.iteritems()]
13600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13601
 
13602
  def __eq__(self, other):
13603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13604
 
13605
  def __ne__(self, other):
13606
    return not (self == other)
13607
 
3385 varun.gupt 13608
class getCartsWithCouponCount_args:
13609
  """
13610
  Attributes:
13611
   - couponCode
13612
  """
2642 varun.gupt 13613
 
3385 varun.gupt 13614
  thrift_spec = (
13615
    None, # 0
13616
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13617
  )
13618
 
13619
  def __init__(self, couponCode=None,):
13620
    self.couponCode = couponCode
13621
 
13622
  def read(self, iprot):
13623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13625
      return
13626
    iprot.readStructBegin()
13627
    while True:
13628
      (fname, ftype, fid) = iprot.readFieldBegin()
13629
      if ftype == TType.STOP:
13630
        break
13631
      if fid == 1:
13632
        if ftype == TType.STRING:
13633
          self.couponCode = iprot.readString();
13634
        else:
13635
          iprot.skip(ftype)
13636
      else:
13637
        iprot.skip(ftype)
13638
      iprot.readFieldEnd()
13639
    iprot.readStructEnd()
13640
 
13641
  def write(self, oprot):
13642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13644
      return
13645
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13646
    if self.couponCode is not None:
3385 varun.gupt 13647
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13648
      oprot.writeString(self.couponCode)
13649
      oprot.writeFieldEnd()
13650
    oprot.writeFieldStop()
13651
    oprot.writeStructEnd()
13652
 
3431 rajveer 13653
  def validate(self):
13654
    return
13655
 
13656
 
3385 varun.gupt 13657
  def __repr__(self):
13658
    L = ['%s=%r' % (key, value)
13659
      for key, value in self.__dict__.iteritems()]
13660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13661
 
13662
  def __eq__(self, other):
13663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13664
 
13665
  def __ne__(self, other):
13666
    return not (self == other)
13667
 
13668
class getCartsWithCouponCount_result:
13669
  """
13670
  Attributes:
13671
   - success
13672
  """
13673
 
13674
  thrift_spec = (
13675
    (0, TType.I64, 'success', None, None, ), # 0
13676
  )
13677
 
13678
  def __init__(self, success=None,):
13679
    self.success = success
13680
 
13681
  def read(self, iprot):
13682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13684
      return
13685
    iprot.readStructBegin()
13686
    while True:
13687
      (fname, ftype, fid) = iprot.readFieldBegin()
13688
      if ftype == TType.STOP:
13689
        break
13690
      if fid == 0:
13691
        if ftype == TType.I64:
13692
          self.success = iprot.readI64();
13693
        else:
13694
          iprot.skip(ftype)
13695
      else:
13696
        iprot.skip(ftype)
13697
      iprot.readFieldEnd()
13698
    iprot.readStructEnd()
13699
 
13700
  def write(self, oprot):
13701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13703
      return
13704
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13705
    if self.success is not None:
3385 varun.gupt 13706
      oprot.writeFieldBegin('success', TType.I64, 0)
13707
      oprot.writeI64(self.success)
13708
      oprot.writeFieldEnd()
13709
    oprot.writeFieldStop()
13710
    oprot.writeStructEnd()
13711
 
3431 rajveer 13712
  def validate(self):
13713
    return
13714
 
13715
 
3385 varun.gupt 13716
  def __repr__(self):
13717
    L = ['%s=%r' % (key, value)
13718
      for key, value in self.__dict__.iteritems()]
13719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13720
 
13721
  def __eq__(self, other):
13722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13723
 
13724
  def __ne__(self, other):
13725
    return not (self == other)
3499 mandeep.dh 13726
 
13727
class increaseTrustLevel_args:
13728
  """
13729
  Attributes:
13730
   - userId
13731
   - trustLevelDelta
13732
  """
13733
 
13734
  thrift_spec = (
13735
    None, # 0
13736
    (1, TType.I64, 'userId', None, None, ), # 1
13737
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13738
  )
13739
 
13740
  def __init__(self, userId=None, trustLevelDelta=None,):
13741
    self.userId = userId
13742
    self.trustLevelDelta = trustLevelDelta
13743
 
13744
  def read(self, iprot):
13745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13747
      return
13748
    iprot.readStructBegin()
13749
    while True:
13750
      (fname, ftype, fid) = iprot.readFieldBegin()
13751
      if ftype == TType.STOP:
13752
        break
13753
      if fid == 1:
13754
        if ftype == TType.I64:
13755
          self.userId = iprot.readI64();
13756
        else:
13757
          iprot.skip(ftype)
13758
      elif fid == 2:
13759
        if ftype == TType.DOUBLE:
13760
          self.trustLevelDelta = iprot.readDouble();
13761
        else:
13762
          iprot.skip(ftype)
13763
      else:
13764
        iprot.skip(ftype)
13765
      iprot.readFieldEnd()
13766
    iprot.readStructEnd()
13767
 
13768
  def write(self, oprot):
13769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13771
      return
13772
    oprot.writeStructBegin('increaseTrustLevel_args')
13773
    if self.userId is not None:
13774
      oprot.writeFieldBegin('userId', TType.I64, 1)
13775
      oprot.writeI64(self.userId)
13776
      oprot.writeFieldEnd()
13777
    if self.trustLevelDelta is not None:
13778
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13779
      oprot.writeDouble(self.trustLevelDelta)
13780
      oprot.writeFieldEnd()
13781
    oprot.writeFieldStop()
13782
    oprot.writeStructEnd()
13783
 
13784
  def validate(self):
13785
    return
13786
 
13787
 
13788
  def __repr__(self):
13789
    L = ['%s=%r' % (key, value)
13790
      for key, value in self.__dict__.iteritems()]
13791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13792
 
13793
  def __eq__(self, other):
13794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13795
 
13796
  def __ne__(self, other):
13797
    return not (self == other)