Subversion Repositories SmartDukaan

Rev

Rev 3557 | Rev 3858 | 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
 
2815 vikas 441
  def createOrders(self, cartId, sessionSource, sessionStartTime):
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
559 chandransh 449
    """
450
    pass
451
 
3557 rajveer 452
  def validateCart(self, cartId, sourceId):
559 chandransh 453
    """
690 chandransh 454
    Validates that:
455
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 456
    2. All of the lines in the cart are active items.
690 chandransh 457
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 458
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 459
 
559 chandransh 460
    Parameters:
461
     - cartId
3557 rajveer 462
     - sourceId
559 chandransh 463
    """
464
    pass
465
 
690 chandransh 466
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 467
    """
690 chandransh 468
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 469
 
575 chandransh 470
    Parameters:
690 chandransh 471
     - fromCartId
472
     - toCartId
473
    """
474
    pass
475
 
476
  def checkOut(self, cartId):
477
    """
478
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 479
 
690 chandransh 480
    Parameters:
575 chandransh 481
     - cartId
482
    """
483
    pass
484
 
690 chandransh 485
  def resetCart(self, cartId, items):
559 chandransh 486
    """
690 chandransh 487
    The second parameter is a map of item ids and their quantities which have been successfully processed.
488
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 489
 
559 chandransh 490
    Parameters:
690 chandransh 491
     - cartId
492
     - items
559 chandransh 493
    """
494
    pass
495
 
2981 rajveer 496
  def getUserCount(self, userType):
559 chandransh 497
    """
2981 rajveer 498
    Returns number of registered users.
499
    If userType = null, then it returns count of all users, including anonymous
500
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
501
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 502
 
559 chandransh 503
    Parameters:
2981 rajveer 504
     - userType
559 chandransh 505
    """
506
    pass
507
 
2981 rajveer 508
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 509
    """
2981 rajveer 510
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
511
    If any of startDate or endDate is -1, then that filter is ignored.
512
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 513
 
514
 
559 chandransh 515
    Parameters:
2981 rajveer 516
     - userType
517
     - startDate
518
     - endDate
559 chandransh 519
    """
520
    pass
521
 
2981 rajveer 522
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 523
    """
524
    Parameters:
2981 rajveer 525
     - user_id
526
     - entity_id
527
     - slide
528
     - note
559 chandransh 529
    """
530
    pass
531
 
2981 rajveer 532
  def getUserNotes(self, user_id, entity_id):
559 chandransh 533
    """
534
    Parameters:
2981 rajveer 535
     - user_id
536
     - entity_id
559 chandransh 537
    """
538
    pass
539
 
2981 rajveer 540
  def getMyResearchItems(self, userId):
559 chandransh 541
    """
2981 rajveer 542
    Returns list of item ids in myresearch for the user
3431 rajveer 543
 
559 chandransh 544
    Parameters:
545
     - userId
546
    """
547
    pass
548
 
2981 rajveer 549
  def updateMyResearch(self, userId, itemId):
559 chandransh 550
    """
2981 rajveer 551
    add item to my research for a user
3431 rajveer 552
 
559 chandransh 553
    Parameters:
2981 rajveer 554
     - userId
555
     - itemId
559 chandransh 556
    """
557
    pass
558
 
2981 rajveer 559
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 560
    """
2981 rajveer 561
    delete item from my research for a user
3431 rajveer 562
 
1596 ankur.sing 563
    Parameters:
2981 rajveer 564
     - userId
565
     - itemId
1596 ankur.sing 566
    """
567
    pass
559 chandransh 568
 
2981 rajveer 569
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 570
    """
2981 rajveer 571
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 572
 
1673 ankur.sing 573
    Parameters:
2981 rajveer 574
     - userId
1673 ankur.sing 575
    """
576
    pass
1596 ankur.sing 577
 
2981 rajveer 578
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 579
    """
2981 rajveer 580
    add item to browse history for a user
3431 rajveer 581
 
2642 varun.gupt 582
    Parameters:
2981 rajveer 583
     - userId
584
     - itemId
2642 varun.gupt 585
    """
586
    pass
1673 ankur.sing 587
 
3385 varun.gupt 588
  def getCartsWithCouponCount(self, couponCode):
589
    """
590
    Returns count of Carts with given coupon applied
3431 rajveer 591
 
3385 varun.gupt 592
    Parameters:
593
     - couponCode
594
    """
595
    pass
2642 varun.gupt 596
 
3499 mandeep.dh 597
  def increaseTrustLevel(self, userId, trustLevelDelta):
598
    """
599
    Updates COD trust level of a user
3385 varun.gupt 600
 
3499 mandeep.dh 601
    Parameters:
602
     - userId
603
     - trustLevelDelta
604
    """
605
    pass
606
 
607
 
3376 rajveer 608
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 609
  """
610
  service
611
  """
612
  def __init__(self, iprot, oprot=None):
3376 rajveer 613
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 614
 
559 chandransh 615
  def createAnonymousUser(self, jsessionId):
94 ashish 616
    """
617
    Parameters:
559 chandransh 618
     - jsessionId
94 ashish 619
    """
559 chandransh 620
    self.send_createAnonymousUser(jsessionId)
621
    return self.recv_createAnonymousUser()
94 ashish 622
 
559 chandransh 623
  def send_createAnonymousUser(self, jsessionId):
624
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
625
    args = createAnonymousUser_args()
626
    args.jsessionId = jsessionId
94 ashish 627
    args.write(self._oprot)
628
    self._oprot.writeMessageEnd()
629
    self._oprot.trans.flush()
630
 
559 chandransh 631
  def recv_createAnonymousUser(self, ):
94 ashish 632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
633
    if mtype == TMessageType.EXCEPTION:
634
      x = TApplicationException()
635
      x.read(self._iprot)
636
      self._iprot.readMessageEnd()
637
      raise x
559 chandransh 638
    result = createAnonymousUser_result()
94 ashish 639
    result.read(self._iprot)
640
    self._iprot.readMessageEnd()
3431 rajveer 641
    if result.success is not None:
94 ashish 642
      return result.success
3431 rajveer 643
    if result.ucex is not None:
559 chandransh 644
      raise result.ucex
645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 646
 
559 chandransh 647
  def getUserById(self, userId):
94 ashish 648
    """
649
    Parameters:
650
     - userId
651
    """
559 chandransh 652
    self.send_getUserById(userId)
653
    return self.recv_getUserById()
94 ashish 654
 
559 chandransh 655
  def send_getUserById(self, userId):
656
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
657
    args = getUserById_args()
94 ashish 658
    args.userId = userId
659
    args.write(self._oprot)
660
    self._oprot.writeMessageEnd()
661
    self._oprot.trans.flush()
662
 
559 chandransh 663
  def recv_getUserById(self, ):
94 ashish 664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
665
    if mtype == TMessageType.EXCEPTION:
666
      x = TApplicationException()
667
      x.read(self._iprot)
668
      self._iprot.readMessageEnd()
669
      raise x
559 chandransh 670
    result = getUserById_result()
94 ashish 671
    result.read(self._iprot)
672
    self._iprot.readMessageEnd()
3431 rajveer 673
    if result.success is not None:
94 ashish 674
      return result.success
3431 rajveer 675
    if result.ucex is not None:
559 chandransh 676
      raise result.ucex
677
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 678
 
1491 vikas 679
  def getUserByEmail(self, email):
680
    """
681
    Parameters:
682
     - email
683
    """
684
    self.send_getUserByEmail(email)
685
    return self.recv_getUserByEmail()
686
 
687
  def send_getUserByEmail(self, email):
688
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
689
    args = getUserByEmail_args()
690
    args.email = email
691
    args.write(self._oprot)
692
    self._oprot.writeMessageEnd()
693
    self._oprot.trans.flush()
694
 
695
  def recv_getUserByEmail(self, ):
696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
697
    if mtype == TMessageType.EXCEPTION:
698
      x = TApplicationException()
699
      x.read(self._iprot)
700
      self._iprot.readMessageEnd()
701
      raise x
702
    result = getUserByEmail_result()
703
    result.read(self._iprot)
704
    self._iprot.readMessageEnd()
3431 rajveer 705
    if result.success is not None:
1491 vikas 706
      return result.success
3431 rajveer 707
    if result.ucex is not None:
1491 vikas 708
      raise result.ucex
709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
710
 
3032 mandeep.dh 711
  def getUserByMobileNumber(self, mobileNumber):
712
    """
713
    Parameters:
714
     - mobileNumber
715
    """
716
    self.send_getUserByMobileNumber(mobileNumber)
717
    return self.recv_getUserByMobileNumber()
718
 
719
  def send_getUserByMobileNumber(self, mobileNumber):
720
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
721
    args = getUserByMobileNumber_args()
722
    args.mobileNumber = mobileNumber
723
    args.write(self._oprot)
724
    self._oprot.writeMessageEnd()
725
    self._oprot.trans.flush()
726
 
727
  def recv_getUserByMobileNumber(self, ):
728
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
729
    if mtype == TMessageType.EXCEPTION:
730
      x = TApplicationException()
731
      x.read(self._iprot)
732
      self._iprot.readMessageEnd()
733
      raise x
734
    result = getUserByMobileNumber_result()
735
    result.read(self._iprot)
736
    self._iprot.readMessageEnd()
3431 rajveer 737
    if result.success is not None:
3032 mandeep.dh 738
      return result.success
3431 rajveer 739
    if result.ucex is not None:
3032 mandeep.dh 740
      raise result.ucex
741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
742
 
559 chandransh 743
  def createUser(self, user):
94 ashish 744
    """
745
    Parameters:
559 chandransh 746
     - user
94 ashish 747
    """
559 chandransh 748
    self.send_createUser(user)
749
    return self.recv_createUser()
94 ashish 750
 
559 chandransh 751
  def send_createUser(self, user):
752
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
753
    args = createUser_args()
754
    args.user = user
94 ashish 755
    args.write(self._oprot)
756
    self._oprot.writeMessageEnd()
757
    self._oprot.trans.flush()
758
 
559 chandransh 759
  def recv_createUser(self, ):
94 ashish 760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
761
    if mtype == TMessageType.EXCEPTION:
762
      x = TApplicationException()
763
      x.read(self._iprot)
764
      self._iprot.readMessageEnd()
765
      raise x
559 chandransh 766
    result = createUser_result()
94 ashish 767
    result.read(self._iprot)
768
    self._iprot.readMessageEnd()
3431 rajveer 769
    if result.success is not None:
94 ashish 770
      return result.success
3431 rajveer 771
    if result.ucex is not None:
559 chandransh 772
      raise result.ucex
773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 774
 
559 chandransh 775
  def updateUser(self, user):
94 ashish 776
    """
777
    Parameters:
559 chandransh 778
     - user
94 ashish 779
    """
559 chandransh 780
    self.send_updateUser(user)
781
    return self.recv_updateUser()
94 ashish 782
 
559 chandransh 783
  def send_updateUser(self, user):
784
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
785
    args = updateUser_args()
786
    args.user = user
94 ashish 787
    args.write(self._oprot)
788
    self._oprot.writeMessageEnd()
789
    self._oprot.trans.flush()
790
 
559 chandransh 791
  def recv_updateUser(self, ):
94 ashish 792
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
793
    if mtype == TMessageType.EXCEPTION:
794
      x = TApplicationException()
795
      x.read(self._iprot)
796
      self._iprot.readMessageEnd()
797
      raise x
559 chandransh 798
    result = updateUser_result()
94 ashish 799
    result.read(self._iprot)
800
    self._iprot.readMessageEnd()
3431 rajveer 801
    if result.success is not None:
94 ashish 802
      return result.success
3431 rajveer 803
    if result.ucex is not None:
559 chandransh 804
      raise result.ucex
805
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 806
 
559 chandransh 807
  def deleteUser(self, userId):
94 ashish 808
    """
809
    Parameters:
810
     - userId
811
    """
559 chandransh 812
    self.send_deleteUser(userId)
813
    return self.recv_deleteUser()
94 ashish 814
 
559 chandransh 815
  def send_deleteUser(self, userId):
816
    self._oprot.writeMessageBegin('deleteUser', TMessageType.CALL, self._seqid)
817
    args = deleteUser_args()
94 ashish 818
    args.userId = userId
819
    args.write(self._oprot)
820
    self._oprot.writeMessageEnd()
821
    self._oprot.trans.flush()
822
 
559 chandransh 823
  def recv_deleteUser(self, ):
94 ashish 824
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
825
    if mtype == TMessageType.EXCEPTION:
826
      x = TApplicationException()
827
      x.read(self._iprot)
828
      self._iprot.readMessageEnd()
829
      raise x
559 chandransh 830
    result = deleteUser_result()
94 ashish 831
    result.read(self._iprot)
832
    self._iprot.readMessageEnd()
3431 rajveer 833
    if result.success is not None:
94 ashish 834
      return result.success
3431 rajveer 835
    if result.ucex is not None:
559 chandransh 836
      raise result.ucex
837
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
94 ashish 838
 
559 chandransh 839
  def getUserState(self, userId):
94 ashish 840
    """
841
    Parameters:
842
     - userId
843
    """
559 chandransh 844
    self.send_getUserState(userId)
845
    return self.recv_getUserState()
94 ashish 846
 
559 chandransh 847
  def send_getUserState(self, userId):
848
    self._oprot.writeMessageBegin('getUserState', TMessageType.CALL, self._seqid)
849
    args = getUserState_args()
94 ashish 850
    args.userId = userId
851
    args.write(self._oprot)
852
    self._oprot.writeMessageEnd()
853
    self._oprot.trans.flush()
854
 
559 chandransh 855
  def recv_getUserState(self, ):
94 ashish 856
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
857
    if mtype == TMessageType.EXCEPTION:
858
      x = TApplicationException()
859
      x.read(self._iprot)
860
      self._iprot.readMessageEnd()
861
      raise x
559 chandransh 862
    result = getUserState_result()
94 ashish 863
    result.read(self._iprot)
864
    self._iprot.readMessageEnd()
3431 rajveer 865
    if result.success is not None:
94 ashish 866
      return result.success
3431 rajveer 867
    if result.ucex is not None:
559 chandransh 868
      raise result.ucex
869
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserState failed: unknown result");
94 ashish 870
 
559 chandransh 871
  def authenticateUser(self, email, password):
94 ashish 872
    """
873
    Parameters:
874
     - email
875
     - password
876
    """
559 chandransh 877
    self.send_authenticateUser(email, password)
122 ashish 878
    return self.recv_authenticateUser()
879
 
559 chandransh 880
  def send_authenticateUser(self, email, password):
122 ashish 881
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
882
    args = authenticateUser_args()
559 chandransh 883
    args.email = email
122 ashish 884
    args.password = password
885
    args.write(self._oprot)
886
    self._oprot.writeMessageEnd()
887
    self._oprot.trans.flush()
888
 
889
  def recv_authenticateUser(self, ):
890
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
891
    if mtype == TMessageType.EXCEPTION:
892
      x = TApplicationException()
893
      x.read(self._iprot)
894
      self._iprot.readMessageEnd()
895
      raise x
896
    result = authenticateUser_result()
897
    result.read(self._iprot)
898
    self._iprot.readMessageEnd()
3431 rajveer 899
    if result.success is not None:
122 ashish 900
      return result.success
3431 rajveer 901
    if result.auex is not None:
559 chandransh 902
      raise result.auex
122 ashish 903
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
904
 
94 ashish 905
  def userExists(self, email):
906
    """
907
    Parameters:
908
     - email
909
    """
910
    self.send_userExists(email)
911
    return self.recv_userExists()
912
 
913
  def send_userExists(self, email):
914
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
915
    args = userExists_args()
916
    args.email = email
917
    args.write(self._oprot)
918
    self._oprot.writeMessageEnd()
919
    self._oprot.trans.flush()
920
 
921
  def recv_userExists(self, ):
922
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
923
    if mtype == TMessageType.EXCEPTION:
924
      x = TApplicationException()
925
      x.read(self._iprot)
926
      self._iprot.readMessageEnd()
927
      raise x
928
    result = userExists_result()
929
    result.read(self._iprot)
930
    self._iprot.readMessageEnd()
3431 rajveer 931
    if result.success is not None:
94 ashish 932
      return result.success
3431 rajveer 933
    if result.ucx is not None:
94 ashish 934
      raise result.ucx
935
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
936
 
567 rajveer 937
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 938
    """
939
    Parameters:
940
     - userId
941
     - address
513 rajveer 942
     - setDefault
94 ashish 943
    """
567 rajveer 944
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 945
    return self.recv_addAddressForUser()
946
 
567 rajveer 947
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 948
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
949
    args = addAddressForUser_args()
559 chandransh 950
    args.userId = userId
94 ashish 951
    args.address = address
513 rajveer 952
    args.setDefault = setDefault
94 ashish 953
    args.write(self._oprot)
954
    self._oprot.writeMessageEnd()
955
    self._oprot.trans.flush()
956
 
957
  def recv_addAddressForUser(self, ):
958
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
959
    if mtype == TMessageType.EXCEPTION:
960
      x = TApplicationException()
961
      x.read(self._iprot)
962
      self._iprot.readMessageEnd()
963
      raise x
964
    result = addAddressForUser_result()
965
    result.read(self._iprot)
966
    self._iprot.readMessageEnd()
3431 rajveer 967
    if result.success is not None:
94 ashish 968
      return result.success
3431 rajveer 969
    if result.ucx is not None:
94 ashish 970
      raise result.ucx
971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
972
 
973
  def removeAddressForUser(self, userid, addressId):
974
    """
975
    Parameters:
976
     - userid
977
     - addressId
978
    """
979
    self.send_removeAddressForUser(userid, addressId)
980
    return self.recv_removeAddressForUser()
981
 
982
  def send_removeAddressForUser(self, userid, addressId):
983
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
984
    args = removeAddressForUser_args()
985
    args.userid = userid
986
    args.addressId = addressId
987
    args.write(self._oprot)
988
    self._oprot.writeMessageEnd()
989
    self._oprot.trans.flush()
990
 
991
  def recv_removeAddressForUser(self, ):
992
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
993
    if mtype == TMessageType.EXCEPTION:
994
      x = TApplicationException()
995
      x.read(self._iprot)
996
      self._iprot.readMessageEnd()
997
      raise x
998
    result = removeAddressForUser_result()
999
    result.read(self._iprot)
1000
    self._iprot.readMessageEnd()
3431 rajveer 1001
    if result.success is not None:
94 ashish 1002
      return result.success
3431 rajveer 1003
    if result.ucx is not None:
94 ashish 1004
      raise result.ucx
1005
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
1006
 
1007
  def setUserAsLoggedIn(self, userId, timestamp):
1008
    """
1009
    Parameters:
1010
     - userId
1011
     - timestamp
1012
    """
1013
    self.send_setUserAsLoggedIn(userId, timestamp)
1014
    return self.recv_setUserAsLoggedIn()
1015
 
1016
  def send_setUserAsLoggedIn(self, userId, timestamp):
1017
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
1018
    args = setUserAsLoggedIn_args()
1019
    args.userId = userId
1020
    args.timestamp = timestamp
1021
    args.write(self._oprot)
1022
    self._oprot.writeMessageEnd()
1023
    self._oprot.trans.flush()
1024
 
1025
  def recv_setUserAsLoggedIn(self, ):
1026
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1027
    if mtype == TMessageType.EXCEPTION:
1028
      x = TApplicationException()
1029
      x.read(self._iprot)
1030
      self._iprot.readMessageEnd()
1031
      raise x
1032
    result = setUserAsLoggedIn_result()
1033
    result.read(self._iprot)
1034
    self._iprot.readMessageEnd()
3431 rajveer 1035
    if result.success is not None:
94 ashish 1036
      return result.success
3431 rajveer 1037
    if result.ucx is not None:
94 ashish 1038
      raise result.ucx
1039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
1040
 
1041
  def setUserAsLoggedOut(self, userid, timestamp):
1042
    """
1043
    Parameters:
1044
     - userid
1045
     - timestamp
1046
    """
1047
    self.send_setUserAsLoggedOut(userid, timestamp)
1048
    return self.recv_setUserAsLoggedOut()
1049
 
1050
  def send_setUserAsLoggedOut(self, userid, timestamp):
1051
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
1052
    args = setUserAsLoggedOut_args()
1053
    args.userid = userid
1054
    args.timestamp = timestamp
1055
    args.write(self._oprot)
1056
    self._oprot.writeMessageEnd()
1057
    self._oprot.trans.flush()
1058
 
1059
  def recv_setUserAsLoggedOut(self, ):
1060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1061
    if mtype == TMessageType.EXCEPTION:
1062
      x = TApplicationException()
1063
      x.read(self._iprot)
1064
      self._iprot.readMessageEnd()
1065
      raise x
1066
    result = setUserAsLoggedOut_result()
1067
    result.read(self._iprot)
1068
    self._iprot.readMessageEnd()
3431 rajveer 1069
    if result.success is not None:
94 ashish 1070
      return result.success
3431 rajveer 1071
    if result.ucx is not None:
94 ashish 1072
      raise result.ucx
1073
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1074
 
504 rajveer 1075
  def setDefaultAddress(self, userid, addressId):
1076
    """
1077
    Parameters:
1078
     - userid
1079
     - addressId
1080
    """
1081
    self.send_setDefaultAddress(userid, addressId)
1082
    return self.recv_setDefaultAddress()
1083
 
1084
  def send_setDefaultAddress(self, userid, addressId):
1085
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1086
    args = setDefaultAddress_args()
1087
    args.userid = userid
1088
    args.addressId = addressId
1089
    args.write(self._oprot)
1090
    self._oprot.writeMessageEnd()
1091
    self._oprot.trans.flush()
1092
 
1093
  def recv_setDefaultAddress(self, ):
1094
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1095
    if mtype == TMessageType.EXCEPTION:
1096
      x = TApplicationException()
1097
      x.read(self._iprot)
1098
      self._iprot.readMessageEnd()
1099
      raise x
1100
    result = setDefaultAddress_result()
1101
    result.read(self._iprot)
1102
    self._iprot.readMessageEnd()
3431 rajveer 1103
    if result.success is not None:
504 rajveer 1104
      return result.success
3431 rajveer 1105
    if result.ucx is not None:
504 rajveer 1106
      raise result.ucx
1107
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1108
 
594 rajveer 1109
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1110
    """
1111
    Parameters:
1112
     - userid
594 rajveer 1113
     - oldPassword
1114
     - newPassword
94 ashish 1115
    """
594 rajveer 1116
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1117
    return self.recv_updatePassword()
1118
 
594 rajveer 1119
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1120
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1121
    args = updatePassword_args()
1122
    args.userid = userid
594 rajveer 1123
    args.oldPassword = oldPassword
1124
    args.newPassword = newPassword
94 ashish 1125
    args.write(self._oprot)
1126
    self._oprot.writeMessageEnd()
1127
    self._oprot.trans.flush()
1128
 
1129
  def recv_updatePassword(self, ):
1130
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1131
    if mtype == TMessageType.EXCEPTION:
1132
      x = TApplicationException()
1133
      x.read(self._iprot)
1134
      self._iprot.readMessageEnd()
1135
      raise x
1136
    result = updatePassword_result()
1137
    result.read(self._iprot)
1138
    self._iprot.readMessageEnd()
3431 rajveer 1139
    if result.success is not None:
94 ashish 1140
      return result.success
3431 rajveer 1141
    if result.ucx is not None:
94 ashish 1142
      raise result.ucx
1143
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1144
 
884 rajveer 1145
  def forgotPassword(self, email, newPassword):
581 rajveer 1146
    """
1147
    Parameters:
1148
     - email
884 rajveer 1149
     - newPassword
581 rajveer 1150
    """
884 rajveer 1151
    self.send_forgotPassword(email, newPassword)
581 rajveer 1152
    return self.recv_forgotPassword()
1153
 
884 rajveer 1154
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1155
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1156
    args = forgotPassword_args()
1157
    args.email = email
884 rajveer 1158
    args.newPassword = newPassword
581 rajveer 1159
    args.write(self._oprot)
1160
    self._oprot.writeMessageEnd()
1161
    self._oprot.trans.flush()
1162
 
1163
  def recv_forgotPassword(self, ):
1164
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1165
    if mtype == TMessageType.EXCEPTION:
1166
      x = TApplicationException()
1167
      x.read(self._iprot)
1168
      self._iprot.readMessageEnd()
1169
      raise x
1170
    result = forgotPassword_result()
1171
    result.read(self._iprot)
1172
    self._iprot.readMessageEnd()
3431 rajveer 1173
    if result.success is not None:
581 rajveer 1174
      return result.success
3431 rajveer 1175
    if result.ucx is not None:
581 rajveer 1176
      raise result.ucx
1177
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1178
 
594 rajveer 1179
  def getAllAddressesForUser(self, userId):
1180
    """
1181
    Parameters:
1182
     - userId
1183
    """
1184
    self.send_getAllAddressesForUser(userId)
1185
    return self.recv_getAllAddressesForUser()
1186
 
1187
  def send_getAllAddressesForUser(self, userId):
1188
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1189
    args = getAllAddressesForUser_args()
1190
    args.userId = userId
1191
    args.write(self._oprot)
1192
    self._oprot.writeMessageEnd()
1193
    self._oprot.trans.flush()
1194
 
1195
  def recv_getAllAddressesForUser(self, ):
1196
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1197
    if mtype == TMessageType.EXCEPTION:
1198
      x = TApplicationException()
1199
      x.read(self._iprot)
1200
      self._iprot.readMessageEnd()
1201
      raise x
1202
    result = getAllAddressesForUser_result()
1203
    result.read(self._iprot)
1204
    self._iprot.readMessageEnd()
3431 rajveer 1205
    if result.success is not None:
594 rajveer 1206
      return result.success
3431 rajveer 1207
    if result.ucx is not None:
594 rajveer 1208
      raise result.ucx
1209
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1210
 
1894 vikas 1211
  def getAddressById(self, addressId):
1212
    """
1213
    Parameters:
1214
     - addressId
1215
    """
1216
    self.send_getAddressById(addressId)
1217
    return self.recv_getAddressById()
1218
 
1219
  def send_getAddressById(self, addressId):
1220
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1221
    args = getAddressById_args()
1222
    args.addressId = addressId
1223
    args.write(self._oprot)
1224
    self._oprot.writeMessageEnd()
1225
    self._oprot.trans.flush()
1226
 
1227
  def recv_getAddressById(self, ):
1228
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1229
    if mtype == TMessageType.EXCEPTION:
1230
      x = TApplicationException()
1231
      x.read(self._iprot)
1232
      self._iprot.readMessageEnd()
1233
      raise x
1234
    result = getAddressById_result()
1235
    result.read(self._iprot)
1236
    self._iprot.readMessageEnd()
3431 rajveer 1237
    if result.success is not None:
1894 vikas 1238
      return result.success
3431 rajveer 1239
    if result.ucx is not None:
1894 vikas 1240
      raise result.ucx
1241
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1242
 
594 rajveer 1243
  def getDefaultAddressId(self, userId):
1244
    """
1245
    Parameters:
1246
     - userId
1247
    """
1248
    self.send_getDefaultAddressId(userId)
1249
    return self.recv_getDefaultAddressId()
1250
 
1251
  def send_getDefaultAddressId(self, userId):
1252
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1253
    args = getDefaultAddressId_args()
1254
    args.userId = userId
1255
    args.write(self._oprot)
1256
    self._oprot.writeMessageEnd()
1257
    self._oprot.trans.flush()
1258
 
1259
  def recv_getDefaultAddressId(self, ):
1260
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1261
    if mtype == TMessageType.EXCEPTION:
1262
      x = TApplicationException()
1263
      x.read(self._iprot)
1264
      self._iprot.readMessageEnd()
1265
      raise x
1266
    result = getDefaultAddressId_result()
1267
    result.read(self._iprot)
1268
    self._iprot.readMessageEnd()
3431 rajveer 1269
    if result.success is not None:
594 rajveer 1270
      return result.success
3431 rajveer 1271
    if result.ucx is not None:
594 rajveer 1272
      raise result.ucx
1273
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1274
 
785 rajveer 1275
  def getDefaultPincode(self, userId):
1276
    """
1277
    Parameters:
1278
     - userId
1279
    """
1280
    self.send_getDefaultPincode(userId)
1281
    return self.recv_getDefaultPincode()
1282
 
1283
  def send_getDefaultPincode(self, userId):
1284
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1285
    args = getDefaultPincode_args()
1286
    args.userId = userId
1287
    args.write(self._oprot)
1288
    self._oprot.writeMessageEnd()
1289
    self._oprot.trans.flush()
1290
 
1291
  def recv_getDefaultPincode(self, ):
1292
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1293
    if mtype == TMessageType.EXCEPTION:
1294
      x = TApplicationException()
1295
      x.read(self._iprot)
1296
      self._iprot.readMessageEnd()
1297
      raise x
1298
    result = getDefaultPincode_result()
1299
    result.read(self._iprot)
1300
    self._iprot.readMessageEnd()
3431 rajveer 1301
    if result.success is not None:
785 rajveer 1302
      return result.success
3431 rajveer 1303
    if result.ucx is not None:
785 rajveer 1304
      raise result.ucx
1305
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1306
 
1274 varun.gupt 1307
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1308
    """
1309
    Parameters:
1310
     - userId
1311
     - replyTo
1312
     - communicationType
1313
     - orderId
1314
     - airwaybillNo
1315
     - productName
1316
     - subject
1317
     - message
1318
    """
1319
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1320
    return self.recv_saveUserCommunication()
1321
 
1322
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1323
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1324
    args = saveUserCommunication_args()
1325
    args.userId = userId
1326
    args.replyTo = replyTo
1327
    args.communicationType = communicationType
1328
    args.orderId = orderId
1329
    args.airwaybillNo = airwaybillNo
1330
    args.productName = productName
1331
    args.subject = subject
1332
    args.message = message
1333
    args.write(self._oprot)
1334
    self._oprot.writeMessageEnd()
1335
    self._oprot.trans.flush()
1336
 
1337
  def recv_saveUserCommunication(self, ):
1338
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1339
    if mtype == TMessageType.EXCEPTION:
1340
      x = TApplicationException()
1341
      x.read(self._iprot)
1342
      self._iprot.readMessageEnd()
1343
      raise x
1344
    result = saveUserCommunication_result()
1345
    result.read(self._iprot)
1346
    self._iprot.readMessageEnd()
3431 rajveer 1347
    if result.success is not None:
1274 varun.gupt 1348
      return result.success
3431 rajveer 1349
    if result.ucx is not None:
1274 varun.gupt 1350
      raise result.ucx
1351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1352
 
1590 varun.gupt 1353
  def getUserCommunicationById(self, id):
1354
    """
1355
    Parameters:
1356
     - id
1357
    """
1358
    self.send_getUserCommunicationById(id)
1359
    return self.recv_getUserCommunicationById()
1360
 
1361
  def send_getUserCommunicationById(self, id):
1362
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1363
    args = getUserCommunicationById_args()
1364
    args.id = id
1365
    args.write(self._oprot)
1366
    self._oprot.writeMessageEnd()
1367
    self._oprot.trans.flush()
1368
 
1369
  def recv_getUserCommunicationById(self, ):
1370
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1371
    if mtype == TMessageType.EXCEPTION:
1372
      x = TApplicationException()
1373
      x.read(self._iprot)
1374
      self._iprot.readMessageEnd()
1375
      raise x
1376
    result = getUserCommunicationById_result()
1377
    result.read(self._iprot)
1378
    self._iprot.readMessageEnd()
3431 rajveer 1379
    if result.success is not None:
1590 varun.gupt 1380
      return result.success
3431 rajveer 1381
    if result.ucx is not None:
1590 varun.gupt 1382
      raise result.ucx
1383
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1384
 
1385
  def getUserCommunicationByUser(self, userId):
1386
    """
1387
    Parameters:
1388
     - userId
1389
    """
1390
    self.send_getUserCommunicationByUser(userId)
1391
    return self.recv_getUserCommunicationByUser()
1392
 
1393
  def send_getUserCommunicationByUser(self, userId):
1394
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1395
    args = getUserCommunicationByUser_args()
1396
    args.userId = userId
1397
    args.write(self._oprot)
1398
    self._oprot.writeMessageEnd()
1399
    self._oprot.trans.flush()
1400
 
1401
  def recv_getUserCommunicationByUser(self, ):
1402
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1403
    if mtype == TMessageType.EXCEPTION:
1404
      x = TApplicationException()
1405
      x.read(self._iprot)
1406
      self._iprot.readMessageEnd()
1407
      raise x
1408
    result = getUserCommunicationByUser_result()
1409
    result.read(self._iprot)
1410
    self._iprot.readMessageEnd()
3431 rajveer 1411
    if result.success is not None:
1590 varun.gupt 1412
      return result.success
3431 rajveer 1413
    if result.ucx is not None:
1590 varun.gupt 1414
      raise result.ucx
1415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1416
 
1417
  def getAllUserCommunications(self, ):
1418
    self.send_getAllUserCommunications()
1419
    return self.recv_getAllUserCommunications()
1420
 
1421
  def send_getAllUserCommunications(self, ):
1422
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1423
    args = getAllUserCommunications_args()
1424
    args.write(self._oprot)
1425
    self._oprot.writeMessageEnd()
1426
    self._oprot.trans.flush()
1427
 
1428
  def recv_getAllUserCommunications(self, ):
1429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1430
    if mtype == TMessageType.EXCEPTION:
1431
      x = TApplicationException()
1432
      x.read(self._iprot)
1433
      self._iprot.readMessageEnd()
1434
      raise x
1435
    result = getAllUserCommunications_result()
1436
    result.read(self._iprot)
1437
    self._iprot.readMessageEnd()
3431 rajveer 1438
    if result.success is not None:
1590 varun.gupt 1439
      return result.success
3431 rajveer 1440
    if result.ucx is not None:
1590 varun.gupt 1441
      raise result.ucx
1442
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1443
 
1859 vikas 1444
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1445
    """
1446
    Parameters:
1447
     - name
1859 vikas 1448
     - addedOn
1845 vikas 1449
    """
1859 vikas 1450
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1451
    return self.recv_createMasterAffiliate()
1452
 
1859 vikas 1453
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1454
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1455
    args = createMasterAffiliate_args()
1456
    args.name = name
1859 vikas 1457
    args.addedOn = addedOn
1845 vikas 1458
    args.write(self._oprot)
1459
    self._oprot.writeMessageEnd()
1460
    self._oprot.trans.flush()
1461
 
1462
  def recv_createMasterAffiliate(self, ):
1463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1464
    if mtype == TMessageType.EXCEPTION:
1465
      x = TApplicationException()
1466
      x.read(self._iprot)
1467
      self._iprot.readMessageEnd()
1468
      raise x
1469
    result = createMasterAffiliate_result()
1470
    result.read(self._iprot)
1471
    self._iprot.readMessageEnd()
3431 rajveer 1472
    if result.success is not None:
1845 vikas 1473
      return result.success
3431 rajveer 1474
    if result.utx is not None:
1845 vikas 1475
      raise result.utx
1476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1477
 
1899 vikas 1478
  def getAllMasterAffiliates(self, ):
1479
    self.send_getAllMasterAffiliates()
1480
    return self.recv_getAllMasterAffiliates()
1481
 
1482
  def send_getAllMasterAffiliates(self, ):
1483
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1484
    args = getAllMasterAffiliates_args()
1485
    args.write(self._oprot)
1486
    self._oprot.writeMessageEnd()
1487
    self._oprot.trans.flush()
1488
 
1489
  def recv_getAllMasterAffiliates(self, ):
1490
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1491
    if mtype == TMessageType.EXCEPTION:
1492
      x = TApplicationException()
1493
      x.read(self._iprot)
1494
      self._iprot.readMessageEnd()
1495
      raise x
1496
    result = getAllMasterAffiliates_result()
1497
    result.read(self._iprot)
1498
    self._iprot.readMessageEnd()
3431 rajveer 1499
    if result.success is not None:
1899 vikas 1500
      return result.success
3431 rajveer 1501
    if result.utx is not None:
1899 vikas 1502
      raise result.utx
1503
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1504
 
1845 vikas 1505
  def getMasterAffiliateById(self, id):
1506
    """
1507
    Parameters:
1508
     - id
1509
    """
1510
    self.send_getMasterAffiliateById(id)
1511
    return self.recv_getMasterAffiliateById()
1512
 
1513
  def send_getMasterAffiliateById(self, id):
1514
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1515
    args = getMasterAffiliateById_args()
1516
    args.id = id
1517
    args.write(self._oprot)
1518
    self._oprot.writeMessageEnd()
1519
    self._oprot.trans.flush()
1520
 
1521
  def recv_getMasterAffiliateById(self, ):
1522
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1523
    if mtype == TMessageType.EXCEPTION:
1524
      x = TApplicationException()
1525
      x.read(self._iprot)
1526
      self._iprot.readMessageEnd()
1527
      raise x
1528
    result = getMasterAffiliateById_result()
1529
    result.read(self._iprot)
1530
    self._iprot.readMessageEnd()
3431 rajveer 1531
    if result.success is not None:
1845 vikas 1532
      return result.success
3431 rajveer 1533
    if result.utx is not None:
1845 vikas 1534
      raise result.utx
1535
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1536
 
1537
  def getMasterAffiliateByName(self, name):
1538
    """
1539
    Parameters:
1540
     - name
1541
    """
1542
    self.send_getMasterAffiliateByName(name)
1543
    return self.recv_getMasterAffiliateByName()
1544
 
1545
  def send_getMasterAffiliateByName(self, name):
1546
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1547
    args = getMasterAffiliateByName_args()
1548
    args.name = name
1549
    args.write(self._oprot)
1550
    self._oprot.writeMessageEnd()
1551
    self._oprot.trans.flush()
1552
 
1553
  def recv_getMasterAffiliateByName(self, ):
1554
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1555
    if mtype == TMessageType.EXCEPTION:
1556
      x = TApplicationException()
1557
      x.read(self._iprot)
1558
      self._iprot.readMessageEnd()
1559
      raise x
1560
    result = getMasterAffiliateByName_result()
1561
    result.read(self._iprot)
1562
    self._iprot.readMessageEnd()
3431 rajveer 1563
    if result.success is not None:
1845 vikas 1564
      return result.success
3431 rajveer 1565
    if result.utx is not None:
1845 vikas 1566
      raise result.utx
1567
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1568
 
1859 vikas 1569
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1570
    """
1571
    Parameters:
1572
     - name
1573
     - url
1574
     - masterAffiliateId
1859 vikas 1575
     - addedOn
1845 vikas 1576
    """
1859 vikas 1577
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1578
    return self.recv_createAffiliate()
1579
 
1859 vikas 1580
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1581
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1582
    args = createAffiliate_args()
1583
    args.name = name
1584
    args.url = url
1585
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1586
    args.addedOn = addedOn
1845 vikas 1587
    args.write(self._oprot)
1588
    self._oprot.writeMessageEnd()
1589
    self._oprot.trans.flush()
1590
 
1591
  def recv_createAffiliate(self, ):
1592
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1593
    if mtype == TMessageType.EXCEPTION:
1594
      x = TApplicationException()
1595
      x.read(self._iprot)
1596
      self._iprot.readMessageEnd()
1597
      raise x
1598
    result = createAffiliate_result()
1599
    result.read(self._iprot)
1600
    self._iprot.readMessageEnd()
3431 rajveer 1601
    if result.success is not None:
1845 vikas 1602
      return result.success
3431 rajveer 1603
    if result.utx is not None:
1845 vikas 1604
      raise result.utx
1605
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1606
 
1607
  def getAffiliateById(self, id):
1608
    """
1609
    Parameters:
1610
     - id
1611
    """
1612
    self.send_getAffiliateById(id)
1613
    return self.recv_getAffiliateById()
1614
 
1615
  def send_getAffiliateById(self, id):
1616
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1617
    args = getAffiliateById_args()
1618
    args.id = id
1619
    args.write(self._oprot)
1620
    self._oprot.writeMessageEnd()
1621
    self._oprot.trans.flush()
1622
 
1623
  def recv_getAffiliateById(self, ):
1624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1625
    if mtype == TMessageType.EXCEPTION:
1626
      x = TApplicationException()
1627
      x.read(self._iprot)
1628
      self._iprot.readMessageEnd()
1629
      raise x
1630
    result = getAffiliateById_result()
1631
    result.read(self._iprot)
1632
    self._iprot.readMessageEnd()
3431 rajveer 1633
    if result.success is not None:
1845 vikas 1634
      return result.success
3431 rajveer 1635
    if result.utx is not None:
1845 vikas 1636
      raise result.utx
1637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1638
 
1639
  def getAffiliateByName(self, name):
1640
    """
1641
    Parameters:
1642
     - name
1643
    """
1644
    self.send_getAffiliateByName(name)
1645
    return self.recv_getAffiliateByName()
1646
 
1647
  def send_getAffiliateByName(self, name):
1648
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1649
    args = getAffiliateByName_args()
1650
    args.name = name
1651
    args.write(self._oprot)
1652
    self._oprot.writeMessageEnd()
1653
    self._oprot.trans.flush()
1654
 
1655
  def recv_getAffiliateByName(self, ):
1656
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1657
    if mtype == TMessageType.EXCEPTION:
1658
      x = TApplicationException()
1659
      x.read(self._iprot)
1660
      self._iprot.readMessageEnd()
1661
      raise x
1662
    result = getAffiliateByName_result()
1663
    result.read(self._iprot)
1664
    self._iprot.readMessageEnd()
3431 rajveer 1665
    if result.success is not None:
1845 vikas 1666
      return result.success
3431 rajveer 1667
    if result.utx is not None:
1845 vikas 1668
      raise result.utx
1669
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1670
 
1996 vikas 1671
  def getTrackerById(self, id):
1845 vikas 1672
    """
1673
    Parameters:
1674
     - id
1675
    """
1996 vikas 1676
    self.send_getTrackerById(id)
1845 vikas 1677
    return self.recv_getTrackerById()
1678
 
1996 vikas 1679
  def send_getTrackerById(self, id):
1845 vikas 1680
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1681
    args = getTrackerById_args()
1996 vikas 1682
    args.id = id
1845 vikas 1683
    args.write(self._oprot)
1684
    self._oprot.writeMessageEnd()
1685
    self._oprot.trans.flush()
1686
 
1687
  def recv_getTrackerById(self, ):
1688
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1689
    if mtype == TMessageType.EXCEPTION:
1690
      x = TApplicationException()
1691
      x.read(self._iprot)
1692
      self._iprot.readMessageEnd()
1693
      raise x
1694
    result = getTrackerById_result()
1695
    result.read(self._iprot)
1696
    self._iprot.readMessageEnd()
3431 rajveer 1697
    if result.success is not None:
1845 vikas 1698
      return result.success
3431 rajveer 1699
    if result.utx is not None:
1845 vikas 1700
      raise result.utx
1701
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1702
 
1996 vikas 1703
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1704
    """
1705
    Parameters:
1996 vikas 1706
     - id
1845 vikas 1707
    """
1996 vikas 1708
    self.send_getAffiliatesByMasterAffiliate(id)
1709
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1710
 
1996 vikas 1711
  def send_getAffiliatesByMasterAffiliate(self, id):
1712
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1713
    args = getAffiliatesByMasterAffiliate_args()
1714
    args.id = id
1845 vikas 1715
    args.write(self._oprot)
1716
    self._oprot.writeMessageEnd()
1717
    self._oprot.trans.flush()
1718
 
1996 vikas 1719
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1720
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1721
    if mtype == TMessageType.EXCEPTION:
1722
      x = TApplicationException()
1723
      x.read(self._iprot)
1724
      self._iprot.readMessageEnd()
1725
      raise x
1996 vikas 1726
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1727
    result.read(self._iprot)
1728
    self._iprot.readMessageEnd()
3431 rajveer 1729
    if result.success is not None:
1845 vikas 1730
      return result.success
3431 rajveer 1731
    if result.utx is not None:
1845 vikas 1732
      raise result.utx
1996 vikas 1733
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1734
 
1996 vikas 1735
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1736
    """
1737
    Parameters:
1996 vikas 1738
     - affiliateId
1845 vikas 1739
     - userId
1740
     - event
1741
     - url
1742
     - data
1859 vikas 1743
     - addedOn
1845 vikas 1744
    """
1996 vikas 1745
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1746
    return self.recv_addTrackLog()
1747
 
1996 vikas 1748
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1749
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1750
    args = addTrackLog_args()
1996 vikas 1751
    args.affiliateId = affiliateId
1845 vikas 1752
    args.userId = userId
1753
    args.event = event
1754
    args.url = url
1755
    args.data = data
1859 vikas 1756
    args.addedOn = addedOn
1845 vikas 1757
    args.write(self._oprot)
1758
    self._oprot.writeMessageEnd()
1759
    self._oprot.trans.flush()
1760
 
1761
  def recv_addTrackLog(self, ):
1762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1763
    if mtype == TMessageType.EXCEPTION:
1764
      x = TApplicationException()
1765
      x.read(self._iprot)
1766
      self._iprot.readMessageEnd()
1767
      raise x
1768
    result = addTrackLog_result()
1769
    result.read(self._iprot)
1770
    self._iprot.readMessageEnd()
3431 rajveer 1771
    if result.success is not None:
1845 vikas 1772
      return result.success
3431 rajveer 1773
    if result.utx is not None:
1845 vikas 1774
      raise result.utx
1775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1776
 
1777
  def getTrackLogById(self, id):
1778
    """
1779
    Parameters:
1780
     - id
1781
    """
1782
    self.send_getTrackLogById(id)
1783
    return self.recv_getTrackLogById()
1784
 
1785
  def send_getTrackLogById(self, id):
1786
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1787
    args = getTrackLogById_args()
1788
    args.id = id
1789
    args.write(self._oprot)
1790
    self._oprot.writeMessageEnd()
1791
    self._oprot.trans.flush()
1792
 
1793
  def recv_getTrackLogById(self, ):
1794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1795
    if mtype == TMessageType.EXCEPTION:
1796
      x = TApplicationException()
1797
      x.read(self._iprot)
1798
      self._iprot.readMessageEnd()
1799
      raise x
1800
    result = getTrackLogById_result()
1801
    result.read(self._iprot)
1802
    self._iprot.readMessageEnd()
3431 rajveer 1803
    if result.success is not None:
1845 vikas 1804
      return result.success
3431 rajveer 1805
    if result.utx is not None:
1845 vikas 1806
      raise result.utx
1807
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1808
 
3293 vikas 1809
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1810
    """
1811
    Parameters:
1996 vikas 1812
     - affiliateId
3293 vikas 1813
     - startDate
1814
     - endDate
1845 vikas 1815
    """
3293 vikas 1816
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1817
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1818
 
3293 vikas 1819
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1820
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1821
    args = getTrackLogsByAffiliate_args()
1822
    args.affiliateId = affiliateId
3293 vikas 1823
    args.startDate = startDate
1824
    args.endDate = endDate
1845 vikas 1825
    args.write(self._oprot)
1826
    self._oprot.writeMessageEnd()
1827
    self._oprot.trans.flush()
1828
 
1996 vikas 1829
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1830
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1831
    if mtype == TMessageType.EXCEPTION:
1832
      x = TApplicationException()
1833
      x.read(self._iprot)
1834
      self._iprot.readMessageEnd()
1835
      raise x
1996 vikas 1836
    result = getTrackLogsByAffiliate_result()
1845 vikas 1837
    result.read(self._iprot)
1838
    self._iprot.readMessageEnd()
3431 rajveer 1839
    if result.success is not None:
1845 vikas 1840
      return result.success
3431 rajveer 1841
    if result.utx is not None:
1845 vikas 1842
      raise result.utx
1996 vikas 1843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1844
 
1845
  def getTrackLogsByUser(self, userId):
1846
    """
1847
    Parameters:
1848
     - userId
1849
    """
1850
    self.send_getTrackLogsByUser(userId)
1851
    return self.recv_getTrackLogsByUser()
1852
 
1853
  def send_getTrackLogsByUser(self, userId):
1854
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1855
    args = getTrackLogsByUser_args()
1856
    args.userId = userId
1857
    args.write(self._oprot)
1858
    self._oprot.writeMessageEnd()
1859
    self._oprot.trans.flush()
1860
 
1861
  def recv_getTrackLogsByUser(self, ):
1862
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1863
    if mtype == TMessageType.EXCEPTION:
1864
      x = TApplicationException()
1865
      x.read(self._iprot)
1866
      self._iprot.readMessageEnd()
1867
      raise x
1868
    result = getTrackLogsByUser_result()
1869
    result.read(self._iprot)
1870
    self._iprot.readMessageEnd()
3431 rajveer 1871
    if result.success is not None:
1845 vikas 1872
      return result.success
3431 rajveer 1873
    if result.utx is not None:
1845 vikas 1874
      raise result.utx
1875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1876
 
1996 vikas 1877
  def getTrackLogs(self, userId, event, url):
1845 vikas 1878
    """
1879
    Parameters:
1880
     - userId
1881
     - event
1882
     - url
1883
    """
1996 vikas 1884
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1885
    return self.recv_getTrackLogs()
1886
 
1996 vikas 1887
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1888
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1889
    args = getTrackLogs_args()
1890
    args.userId = userId
1891
    args.event = event
1892
    args.url = url
1893
    args.write(self._oprot)
1894
    self._oprot.writeMessageEnd()
1895
    self._oprot.trans.flush()
1896
 
1897
  def recv_getTrackLogs(self, ):
1898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1899
    if mtype == TMessageType.EXCEPTION:
1900
      x = TApplicationException()
1901
      x.read(self._iprot)
1902
      self._iprot.readMessageEnd()
1903
      raise x
1904
    result = getTrackLogs_result()
1905
    result.read(self._iprot)
1906
    self._iprot.readMessageEnd()
3431 rajveer 1907
    if result.success is not None:
1845 vikas 1908
      return result.success
3431 rajveer 1909
    if result.utx is not None:
1845 vikas 1910
      raise result.utx
1911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1912
 
559 chandransh 1913
  def createCart(self, userId):
94 ashish 1914
    """
1915
    Parameters:
559 chandransh 1916
     - userId
94 ashish 1917
    """
559 chandransh 1918
    self.send_createCart(userId)
1919
    return self.recv_createCart()
94 ashish 1920
 
559 chandransh 1921
  def send_createCart(self, userId):
1922
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1923
    args = createCart_args()
1924
    args.userId = userId
94 ashish 1925
    args.write(self._oprot)
1926
    self._oprot.writeMessageEnd()
1927
    self._oprot.trans.flush()
1928
 
559 chandransh 1929
  def recv_createCart(self, ):
94 ashish 1930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1931
    if mtype == TMessageType.EXCEPTION:
1932
      x = TApplicationException()
1933
      x.read(self._iprot)
1934
      self._iprot.readMessageEnd()
1935
      raise x
559 chandransh 1936
    result = createCart_result()
94 ashish 1937
    result.read(self._iprot)
1938
    self._iprot.readMessageEnd()
3431 rajveer 1939
    if result.success is not None:
94 ashish 1940
      return result.success
3431 rajveer 1941
    if result.scx is not None:
559 chandransh 1942
      raise result.scx
1943
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1944
 
559 chandransh 1945
  def getCurrentCart(self, userId):
94 ashish 1946
    """
1947
    Parameters:
559 chandransh 1948
     - userId
94 ashish 1949
    """
559 chandransh 1950
    self.send_getCurrentCart(userId)
1951
    return self.recv_getCurrentCart()
94 ashish 1952
 
559 chandransh 1953
  def send_getCurrentCart(self, userId):
1954
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1955
    args = getCurrentCart_args()
1956
    args.userId = userId
94 ashish 1957
    args.write(self._oprot)
1958
    self._oprot.writeMessageEnd()
1959
    self._oprot.trans.flush()
1960
 
559 chandransh 1961
  def recv_getCurrentCart(self, ):
94 ashish 1962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1963
    if mtype == TMessageType.EXCEPTION:
1964
      x = TApplicationException()
1965
      x.read(self._iprot)
1966
      self._iprot.readMessageEnd()
1967
      raise x
559 chandransh 1968
    result = getCurrentCart_result()
94 ashish 1969
    result.read(self._iprot)
1970
    self._iprot.readMessageEnd()
3431 rajveer 1971
    if result.success is not None:
94 ashish 1972
      return result.success
3431 rajveer 1973
    if result.scx is not None:
559 chandransh 1974
      raise result.scx
1975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1976
 
559 chandransh 1977
  def getCart(self, cartId):
94 ashish 1978
    """
1979
    Parameters:
559 chandransh 1980
     - cartId
94 ashish 1981
    """
559 chandransh 1982
    self.send_getCart(cartId)
1983
    return self.recv_getCart()
94 ashish 1984
 
559 chandransh 1985
  def send_getCart(self, cartId):
1986
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1987
    args = getCart_args()
1988
    args.cartId = cartId
94 ashish 1989
    args.write(self._oprot)
1990
    self._oprot.writeMessageEnd()
1991
    self._oprot.trans.flush()
1992
 
559 chandransh 1993
  def recv_getCart(self, ):
94 ashish 1994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1995
    if mtype == TMessageType.EXCEPTION:
1996
      x = TApplicationException()
1997
      x.read(self._iprot)
1998
      self._iprot.readMessageEnd()
1999
      raise x
559 chandransh 2000
    result = getCart_result()
94 ashish 2001
    result.read(self._iprot)
2002
    self._iprot.readMessageEnd()
3431 rajveer 2003
    if result.success is not None:
94 ashish 2004
      return result.success
3431 rajveer 2005
    if result.scx is not None:
559 chandransh 2006
      raise result.scx
2007
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 2008
 
559 chandransh 2009
  def getCartsForUser(self, userId, status):
94 ashish 2010
    """
2011
    Parameters:
559 chandransh 2012
     - userId
2013
     - status
94 ashish 2014
    """
559 chandransh 2015
    self.send_getCartsForUser(userId, status)
2016
    return self.recv_getCartsForUser()
94 ashish 2017
 
559 chandransh 2018
  def send_getCartsForUser(self, userId, status):
2019
    self._oprot.writeMessageBegin('getCartsForUser', TMessageType.CALL, self._seqid)
2020
    args = getCartsForUser_args()
2021
    args.userId = userId
2022
    args.status = status
94 ashish 2023
    args.write(self._oprot)
2024
    self._oprot.writeMessageEnd()
2025
    self._oprot.trans.flush()
2026
 
559 chandransh 2027
  def recv_getCartsForUser(self, ):
94 ashish 2028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2029
    if mtype == TMessageType.EXCEPTION:
2030
      x = TApplicationException()
2031
      x.read(self._iprot)
2032
      self._iprot.readMessageEnd()
2033
      raise x
559 chandransh 2034
    result = getCartsForUser_result()
94 ashish 2035
    result.read(self._iprot)
2036
    self._iprot.readMessageEnd()
3431 rajveer 2037
    if result.success is not None:
94 ashish 2038
      return result.success
3431 rajveer 2039
    if result.scx is not None:
559 chandransh 2040
      raise result.scx
2041
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsForUser failed: unknown result");
94 ashish 2042
 
559 chandransh 2043
  def getCartsByStatus(self, status):
94 ashish 2044
    """
2045
    Parameters:
559 chandransh 2046
     - status
94 ashish 2047
    """
559 chandransh 2048
    self.send_getCartsByStatus(status)
2049
    return self.recv_getCartsByStatus()
94 ashish 2050
 
559 chandransh 2051
  def send_getCartsByStatus(self, status):
2052
    self._oprot.writeMessageBegin('getCartsByStatus', TMessageType.CALL, self._seqid)
2053
    args = getCartsByStatus_args()
2054
    args.status = status
94 ashish 2055
    args.write(self._oprot)
2056
    self._oprot.writeMessageEnd()
2057
    self._oprot.trans.flush()
2058
 
559 chandransh 2059
  def recv_getCartsByStatus(self, ):
94 ashish 2060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2061
    if mtype == TMessageType.EXCEPTION:
2062
      x = TApplicationException()
2063
      x.read(self._iprot)
2064
      self._iprot.readMessageEnd()
2065
      raise x
559 chandransh 2066
    result = getCartsByStatus_result()
94 ashish 2067
    result.read(self._iprot)
2068
    self._iprot.readMessageEnd()
3431 rajveer 2069
    if result.success is not None:
94 ashish 2070
      return result.success
3431 rajveer 2071
    if result.scx is not None:
559 chandransh 2072
      raise result.scx
2073
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByStatus failed: unknown result");
94 ashish 2074
 
559 chandransh 2075
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 2076
    """
2077
    Parameters:
559 chandransh 2078
     - from_time
2079
     - to_time
2080
     - status
94 ashish 2081
    """
559 chandransh 2082
    self.send_getCartsByTime(from_time, to_time, status)
2083
    return self.recv_getCartsByTime()
94 ashish 2084
 
559 chandransh 2085
  def send_getCartsByTime(self, from_time, to_time, status):
2086
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
2087
    args = getCartsByTime_args()
2088
    args.from_time = from_time
2089
    args.to_time = to_time
2090
    args.status = status
94 ashish 2091
    args.write(self._oprot)
2092
    self._oprot.writeMessageEnd()
2093
    self._oprot.trans.flush()
2094
 
559 chandransh 2095
  def recv_getCartsByTime(self, ):
94 ashish 2096
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2097
    if mtype == TMessageType.EXCEPTION:
2098
      x = TApplicationException()
2099
      x.read(self._iprot)
2100
      self._iprot.readMessageEnd()
2101
      raise x
559 chandransh 2102
    result = getCartsByTime_result()
94 ashish 2103
    result.read(self._iprot)
2104
    self._iprot.readMessageEnd()
3431 rajveer 2105
    if result.success is not None:
94 ashish 2106
      return result.success
3431 rajveer 2107
    if result.scx is not None:
559 chandransh 2108
      raise result.scx
2109
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 2110
 
559 chandransh 2111
  def changeCartStatus(self, cartId, status):
130 ashish 2112
    """
2113
    Parameters:
559 chandransh 2114
     - cartId
2115
     - status
130 ashish 2116
    """
559 chandransh 2117
    self.send_changeCartStatus(cartId, status)
2118
    self.recv_changeCartStatus()
94 ashish 2119
 
559 chandransh 2120
  def send_changeCartStatus(self, cartId, status):
2121
    self._oprot.writeMessageBegin('changeCartStatus', TMessageType.CALL, self._seqid)
2122
    args = changeCartStatus_args()
2123
    args.cartId = cartId
2124
    args.status = status
130 ashish 2125
    args.write(self._oprot)
2126
    self._oprot.writeMessageEnd()
2127
    self._oprot.trans.flush()
2128
 
559 chandransh 2129
  def recv_changeCartStatus(self, ):
130 ashish 2130
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2131
    if mtype == TMessageType.EXCEPTION:
2132
      x = TApplicationException()
2133
      x.read(self._iprot)
2134
      self._iprot.readMessageEnd()
2135
      raise x
559 chandransh 2136
    result = changeCartStatus_result()
130 ashish 2137
    result.read(self._iprot)
2138
    self._iprot.readMessageEnd()
3431 rajveer 2139
    if result.scx is not None:
559 chandransh 2140
      raise result.scx
2141
    return
2142
 
3557 rajveer 2143
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2144
    """
2145
    Parameters:
2146
     - cartId
2147
     - itemId
2148
     - quantity
3557 rajveer 2149
     - sourceId
559 chandransh 2150
    """
3557 rajveer 2151
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 2152
    return self.recv_addItemToCart()
559 chandransh 2153
 
3557 rajveer 2154
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2155
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2156
    args = addItemToCart_args()
2157
    args.cartId = cartId
2158
    args.itemId = itemId
2159
    args.quantity = quantity
3557 rajveer 2160
    args.sourceId = sourceId
559 chandransh 2161
    args.write(self._oprot)
2162
    self._oprot.writeMessageEnd()
2163
    self._oprot.trans.flush()
2164
 
2165
  def recv_addItemToCart(self, ):
2166
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2167
    if mtype == TMessageType.EXCEPTION:
2168
      x = TApplicationException()
2169
      x.read(self._iprot)
2170
      self._iprot.readMessageEnd()
2171
      raise x
2172
    result = addItemToCart_result()
2173
    result.read(self._iprot)
2174
    self._iprot.readMessageEnd()
3431 rajveer 2175
    if result.success is not None:
2035 rajveer 2176
      return result.success
3431 rajveer 2177
    if result.scx is not None:
559 chandransh 2178
      raise result.scx
2035 rajveer 2179
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2180
 
2181
  def deleteItemFromCart(self, cartId, itemId):
2182
    """
2183
    Parameters:
2184
     - cartId
2185
     - itemId
2186
    """
2187
    self.send_deleteItemFromCart(cartId, itemId)
2188
    self.recv_deleteItemFromCart()
2189
 
2190
  def send_deleteItemFromCart(self, cartId, itemId):
2191
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2192
    args = deleteItemFromCart_args()
2193
    args.cartId = cartId
2194
    args.itemId = itemId
2195
    args.write(self._oprot)
2196
    self._oprot.writeMessageEnd()
2197
    self._oprot.trans.flush()
2198
 
2199
  def recv_deleteItemFromCart(self, ):
2200
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2201
    if mtype == TMessageType.EXCEPTION:
2202
      x = TApplicationException()
2203
      x.read(self._iprot)
2204
      self._iprot.readMessageEnd()
2205
      raise x
2206
    result = deleteItemFromCart_result()
2207
    result.read(self._iprot)
2208
    self._iprot.readMessageEnd()
3431 rajveer 2209
    if result.scx is not None:
559 chandransh 2210
      raise result.scx
2211
    return
2212
 
2213
  def changeItemStatus(self, cartId, itemId, status):
2214
    """
2215
    Parameters:
2216
     - cartId
2217
     - itemId
2218
     - status
2219
    """
2220
    self.send_changeItemStatus(cartId, itemId, status)
2221
    self.recv_changeItemStatus()
2222
 
2223
  def send_changeItemStatus(self, cartId, itemId, status):
2224
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
2225
    args = changeItemStatus_args()
2226
    args.cartId = cartId
2227
    args.itemId = itemId
2228
    args.status = status
2229
    args.write(self._oprot)
2230
    self._oprot.writeMessageEnd()
2231
    self._oprot.trans.flush()
2232
 
2233
  def recv_changeItemStatus(self, ):
2234
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2235
    if mtype == TMessageType.EXCEPTION:
2236
      x = TApplicationException()
2237
      x.read(self._iprot)
2238
      self._iprot.readMessageEnd()
2239
      raise x
2240
    result = changeItemStatus_result()
2241
    result.read(self._iprot)
2242
    self._iprot.readMessageEnd()
3431 rajveer 2243
    if result.scx is not None:
559 chandransh 2244
      raise result.scx
2245
    return
2246
 
2247
  def addAddressToCart(self, cartId, addressId):
2248
    """
2249
    Parameters:
2250
     - cartId
2251
     - addressId
2252
    """
2253
    self.send_addAddressToCart(cartId, addressId)
2254
    self.recv_addAddressToCart()
2255
 
2256
  def send_addAddressToCart(self, cartId, addressId):
2257
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2258
    args = addAddressToCart_args()
2259
    args.cartId = cartId
2260
    args.addressId = addressId
2261
    args.write(self._oprot)
2262
    self._oprot.writeMessageEnd()
2263
    self._oprot.trans.flush()
2264
 
2265
  def recv_addAddressToCart(self, ):
2266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2267
    if mtype == TMessageType.EXCEPTION:
2268
      x = TApplicationException()
2269
      x.read(self._iprot)
2270
      self._iprot.readMessageEnd()
2271
      raise x
2272
    result = addAddressToCart_result()
2273
    result.read(self._iprot)
2274
    self._iprot.readMessageEnd()
3431 rajveer 2275
    if result.scx is not None:
575 chandransh 2276
      raise result.scx
559 chandransh 2277
    return
2278
 
1976 varun.gupt 2279
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2280
    """
2281
    Parameters:
2282
     - cartId
2283
     - couponCode
2284
     - totalPrice
2285
     - discountedPrice
2286
    """
2287
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2288
    self.recv_applyCouponToCart()
2289
 
2290
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2291
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2292
    args = applyCouponToCart_args()
2293
    args.cartId = cartId
2294
    args.couponCode = couponCode
2295
    args.totalPrice = totalPrice
2296
    args.discountedPrice = discountedPrice
2297
    args.write(self._oprot)
2298
    self._oprot.writeMessageEnd()
2299
    self._oprot.trans.flush()
2300
 
2301
  def recv_applyCouponToCart(self, ):
2302
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2303
    if mtype == TMessageType.EXCEPTION:
2304
      x = TApplicationException()
2305
      x.read(self._iprot)
2306
      self._iprot.readMessageEnd()
2307
      raise x
2308
    result = applyCouponToCart_result()
2309
    result.read(self._iprot)
2310
    self._iprot.readMessageEnd()
3431 rajveer 2311
    if result.scx is not None:
1976 varun.gupt 2312
      raise result.scx
2313
    return
2314
 
2315
  def removeCoupon(self, cartId):
2316
    """
2317
    Parameters:
2318
     - cartId
2319
    """
2320
    self.send_removeCoupon(cartId)
2321
    self.recv_removeCoupon()
2322
 
2323
  def send_removeCoupon(self, cartId):
2324
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2325
    args = removeCoupon_args()
2326
    args.cartId = cartId
2327
    args.write(self._oprot)
2328
    self._oprot.writeMessageEnd()
2329
    self._oprot.trans.flush()
2330
 
2331
  def recv_removeCoupon(self, ):
2332
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2333
    if mtype == TMessageType.EXCEPTION:
2334
      x = TApplicationException()
2335
      x.read(self._iprot)
2336
      self._iprot.readMessageEnd()
2337
      raise x
2338
    result = removeCoupon_result()
2339
    result.read(self._iprot)
2340
    self._iprot.readMessageEnd()
3431 rajveer 2341
    if result.scx is not None:
1976 varun.gupt 2342
      raise result.scx
2343
    return
2344
 
3554 varun.gupt 2345
  def deleteDiscountsFromCart(self, cartId):
2346
    """
2347
    Deletes all the discounts associated with the cart
2348
 
2349
    Parameters:
2350
     - cartId
2351
    """
2352
    self.send_deleteDiscountsFromCart(cartId)
2353
    self.recv_deleteDiscountsFromCart()
2354
 
2355
  def send_deleteDiscountsFromCart(self, cartId):
2356
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2357
    args = deleteDiscountsFromCart_args()
2358
    args.cartId = cartId
2359
    args.write(self._oprot)
2360
    self._oprot.writeMessageEnd()
2361
    self._oprot.trans.flush()
2362
 
2363
  def recv_deleteDiscountsFromCart(self, ):
2364
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2365
    if mtype == TMessageType.EXCEPTION:
2366
      x = TApplicationException()
2367
      x.read(self._iprot)
2368
      self._iprot.readMessageEnd()
2369
      raise x
2370
    result = deleteDiscountsFromCart_result()
2371
    result.read(self._iprot)
2372
    self._iprot.readMessageEnd()
2373
    if result.scx is not None:
2374
      raise result.scx
2375
    return
2376
 
2377
  def saveDiscounts(self, discounts):
2378
    """
2379
    Accepts a list of thrift objects of Discount type and saves them
2380
 
2381
    Parameters:
2382
     - discounts
2383
    """
2384
    self.send_saveDiscounts(discounts)
2385
    self.recv_saveDiscounts()
2386
 
2387
  def send_saveDiscounts(self, discounts):
2388
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2389
    args = saveDiscounts_args()
2390
    args.discounts = discounts
2391
    args.write(self._oprot)
2392
    self._oprot.writeMessageEnd()
2393
    self._oprot.trans.flush()
2394
 
2395
  def recv_saveDiscounts(self, ):
2396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2397
    if mtype == TMessageType.EXCEPTION:
2398
      x = TApplicationException()
2399
      x.read(self._iprot)
2400
      self._iprot.readMessageEnd()
2401
      raise x
2402
    result = saveDiscounts_result()
2403
    result.read(self._iprot)
2404
    self._iprot.readMessageEnd()
2405
    if result.scx is not None:
2406
      raise result.scx
2407
    return
2408
 
2815 vikas 2409
  def createOrders(self, cartId, sessionSource, sessionStartTime):
559 chandransh 2410
    """
690 chandransh 2411
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2412
 
559 chandransh 2413
    Parameters:
2414
     - cartId
2815 vikas 2415
     - sessionSource
2416
     - sessionStartTime
559 chandransh 2417
    """
2815 vikas 2418
    self.send_createOrders(cartId, sessionSource, sessionStartTime)
690 chandransh 2419
    return self.recv_createOrders()
559 chandransh 2420
 
2815 vikas 2421
  def send_createOrders(self, cartId, sessionSource, sessionStartTime):
690 chandransh 2422
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2423
    args = createOrders_args()
559 chandransh 2424
    args.cartId = cartId
2815 vikas 2425
    args.sessionSource = sessionSource
2426
    args.sessionStartTime = sessionStartTime
559 chandransh 2427
    args.write(self._oprot)
2428
    self._oprot.writeMessageEnd()
2429
    self._oprot.trans.flush()
2430
 
690 chandransh 2431
  def recv_createOrders(self, ):
559 chandransh 2432
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2433
    if mtype == TMessageType.EXCEPTION:
2434
      x = TApplicationException()
2435
      x.read(self._iprot)
2436
      self._iprot.readMessageEnd()
2437
      raise x
690 chandransh 2438
    result = createOrders_result()
559 chandransh 2439
    result.read(self._iprot)
2440
    self._iprot.readMessageEnd()
3431 rajveer 2441
    if result.success is not None:
130 ashish 2442
      return result.success
3431 rajveer 2443
    if result.scx is not None:
559 chandransh 2444
      raise result.scx
690 chandransh 2445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2446
 
3557 rajveer 2447
  def validateCart(self, cartId, sourceId):
130 ashish 2448
    """
690 chandransh 2449
    Validates that:
2450
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2451
    2. All of the lines in the cart are active items.
690 chandransh 2452
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2453
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2454
 
130 ashish 2455
    Parameters:
559 chandransh 2456
     - cartId
3557 rajveer 2457
     - sourceId
130 ashish 2458
    """
3557 rajveer 2459
    self.send_validateCart(cartId, sourceId)
559 chandransh 2460
    return self.recv_validateCart()
130 ashish 2461
 
3557 rajveer 2462
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2463
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2464
    args = validateCart_args()
2465
    args.cartId = cartId
3557 rajveer 2466
    args.sourceId = sourceId
130 ashish 2467
    args.write(self._oprot)
2468
    self._oprot.writeMessageEnd()
2469
    self._oprot.trans.flush()
2470
 
559 chandransh 2471
  def recv_validateCart(self, ):
130 ashish 2472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2473
    if mtype == TMessageType.EXCEPTION:
2474
      x = TApplicationException()
2475
      x.read(self._iprot)
2476
      self._iprot.readMessageEnd()
2477
      raise x
559 chandransh 2478
    result = validateCart_result()
130 ashish 2479
    result.read(self._iprot)
2480
    self._iprot.readMessageEnd()
3431 rajveer 2481
    if result.success is not None:
130 ashish 2482
      return result.success
3431 rajveer 2483
    if result.scex is not None:
575 chandransh 2484
      raise result.scex
559 chandransh 2485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2486
 
690 chandransh 2487
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2488
    """
690 chandransh 2489
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2490
 
575 chandransh 2491
    Parameters:
690 chandransh 2492
     - fromCartId
2493
     - toCartId
2494
    """
2495
    self.send_mergeCart(fromCartId, toCartId)
2496
    self.recv_mergeCart()
2497
 
2498
  def send_mergeCart(self, fromCartId, toCartId):
2499
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2500
    args = mergeCart_args()
2501
    args.fromCartId = fromCartId
2502
    args.toCartId = toCartId
2503
    args.write(self._oprot)
2504
    self._oprot.writeMessageEnd()
2505
    self._oprot.trans.flush()
2506
 
2507
  def recv_mergeCart(self, ):
2508
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2509
    if mtype == TMessageType.EXCEPTION:
2510
      x = TApplicationException()
2511
      x.read(self._iprot)
2512
      self._iprot.readMessageEnd()
2513
      raise x
2514
    result = mergeCart_result()
2515
    result.read(self._iprot)
2516
    self._iprot.readMessageEnd()
2517
    return
2518
 
2519
  def checkOut(self, cartId):
2520
    """
2521
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2522
 
690 chandransh 2523
    Parameters:
575 chandransh 2524
     - cartId
2525
    """
690 chandransh 2526
    self.send_checkOut(cartId)
2527
    return self.recv_checkOut()
575 chandransh 2528
 
690 chandransh 2529
  def send_checkOut(self, cartId):
2530
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2531
    args = checkOut_args()
575 chandransh 2532
    args.cartId = cartId
2533
    args.write(self._oprot)
2534
    self._oprot.writeMessageEnd()
2535
    self._oprot.trans.flush()
2536
 
690 chandransh 2537
  def recv_checkOut(self, ):
575 chandransh 2538
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2539
    if mtype == TMessageType.EXCEPTION:
2540
      x = TApplicationException()
2541
      x.read(self._iprot)
2542
      self._iprot.readMessageEnd()
2543
      raise x
690 chandransh 2544
    result = checkOut_result()
575 chandransh 2545
    result.read(self._iprot)
2546
    self._iprot.readMessageEnd()
3431 rajveer 2547
    if result.success is not None:
575 chandransh 2548
      return result.success
3431 rajveer 2549
    if result.scex is not None:
575 chandransh 2550
      raise result.scex
690 chandransh 2551
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2552
 
690 chandransh 2553
  def resetCart(self, cartId, items):
559 chandransh 2554
    """
690 chandransh 2555
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2556
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2557
 
559 chandransh 2558
    Parameters:
690 chandransh 2559
     - cartId
2560
     - items
559 chandransh 2561
    """
690 chandransh 2562
    self.send_resetCart(cartId, items)
2563
    return self.recv_resetCart()
130 ashish 2564
 
690 chandransh 2565
  def send_resetCart(self, cartId, items):
2566
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2567
    args = resetCart_args()
2568
    args.cartId = cartId
2569
    args.items = items
559 chandransh 2570
    args.write(self._oprot)
2571
    self._oprot.writeMessageEnd()
2572
    self._oprot.trans.flush()
2573
 
690 chandransh 2574
  def recv_resetCart(self, ):
559 chandransh 2575
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2576
    if mtype == TMessageType.EXCEPTION:
2577
      x = TApplicationException()
2578
      x.read(self._iprot)
2579
      self._iprot.readMessageEnd()
2580
      raise x
690 chandransh 2581
    result = resetCart_result()
559 chandransh 2582
    result.read(self._iprot)
2583
    self._iprot.readMessageEnd()
3431 rajveer 2584
    if result.success is not None:
690 chandransh 2585
      return result.success
3431 rajveer 2586
    if result.scex is not None:
690 chandransh 2587
      raise result.scex
2588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2589
 
2981 rajveer 2590
  def getUserCount(self, userType):
559 chandransh 2591
    """
2981 rajveer 2592
    Returns number of registered users.
2593
    If userType = null, then it returns count of all users, including anonymous
2594
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2595
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2596
 
559 chandransh 2597
    Parameters:
2981 rajveer 2598
     - userType
559 chandransh 2599
    """
2981 rajveer 2600
    self.send_getUserCount(userType)
2601
    return self.recv_getUserCount()
559 chandransh 2602
 
2981 rajveer 2603
  def send_getUserCount(self, userType):
2604
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2605
    args = getUserCount_args()
2606
    args.userType = userType
559 chandransh 2607
    args.write(self._oprot)
2608
    self._oprot.writeMessageEnd()
2609
    self._oprot.trans.flush()
2610
 
2981 rajveer 2611
  def recv_getUserCount(self, ):
559 chandransh 2612
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2613
    if mtype == TMessageType.EXCEPTION:
2614
      x = TApplicationException()
2615
      x.read(self._iprot)
2616
      self._iprot.readMessageEnd()
2617
      raise x
2981 rajveer 2618
    result = getUserCount_result()
559 chandransh 2619
    result.read(self._iprot)
2620
    self._iprot.readMessageEnd()
3431 rajveer 2621
    if result.success is not None:
559 chandransh 2622
      return result.success
2981 rajveer 2623
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2624
 
2981 rajveer 2625
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2626
    """
2981 rajveer 2627
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2628
    If any of startDate or endDate is -1, then that filter is ignored.
2629
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2630
 
2631
 
559 chandransh 2632
    Parameters:
2981 rajveer 2633
     - userType
2634
     - startDate
2635
     - endDate
559 chandransh 2636
    """
2981 rajveer 2637
    self.send_getAllUsers(userType, startDate, endDate)
2638
    return self.recv_getAllUsers()
559 chandransh 2639
 
2981 rajveer 2640
  def send_getAllUsers(self, userType, startDate, endDate):
2641
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2642
    args = getAllUsers_args()
2643
    args.userType = userType
2644
    args.startDate = startDate
2645
    args.endDate = endDate
559 chandransh 2646
    args.write(self._oprot)
2647
    self._oprot.writeMessageEnd()
2648
    self._oprot.trans.flush()
2649
 
2981 rajveer 2650
  def recv_getAllUsers(self, ):
559 chandransh 2651
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2652
    if mtype == TMessageType.EXCEPTION:
2653
      x = TApplicationException()
2654
      x.read(self._iprot)
2655
      self._iprot.readMessageEnd()
2656
      raise x
2981 rajveer 2657
    result = getAllUsers_result()
559 chandransh 2658
    result.read(self._iprot)
2659
    self._iprot.readMessageEnd()
3431 rajveer 2660
    if result.success is not None:
559 chandransh 2661
      return result.success
2981 rajveer 2662
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2663
 
2981 rajveer 2664
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2665
    """
2666
    Parameters:
2981 rajveer 2667
     - user_id
2668
     - entity_id
2669
     - slide
2670
     - note
559 chandransh 2671
    """
2981 rajveer 2672
    self.send_putUserNote(user_id, entity_id, slide, note)
2673
    self.recv_putUserNote()
559 chandransh 2674
 
2981 rajveer 2675
  def send_putUserNote(self, user_id, entity_id, slide, note):
2676
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2677
    args = putUserNote_args()
2678
    args.user_id = user_id
2679
    args.entity_id = entity_id
2680
    args.slide = slide
2681
    args.note = note
559 chandransh 2682
    args.write(self._oprot)
2683
    self._oprot.writeMessageEnd()
2684
    self._oprot.trans.flush()
2685
 
2981 rajveer 2686
  def recv_putUserNote(self, ):
559 chandransh 2687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2688
    if mtype == TMessageType.EXCEPTION:
2689
      x = TApplicationException()
2690
      x.read(self._iprot)
2691
      self._iprot.readMessageEnd()
2692
      raise x
2981 rajveer 2693
    result = putUserNote_result()
559 chandransh 2694
    result.read(self._iprot)
2695
    self._iprot.readMessageEnd()
2696
    return
2697
 
2981 rajveer 2698
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2699
    """
2700
    Parameters:
2981 rajveer 2701
     - user_id
2702
     - entity_id
559 chandransh 2703
    """
2981 rajveer 2704
    self.send_getUserNotes(user_id, entity_id)
2705
    return self.recv_getUserNotes()
559 chandransh 2706
 
2981 rajveer 2707
  def send_getUserNotes(self, user_id, entity_id):
2708
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2709
    args = getUserNotes_args()
2710
    args.user_id = user_id
2711
    args.entity_id = entity_id
559 chandransh 2712
    args.write(self._oprot)
2713
    self._oprot.writeMessageEnd()
2714
    self._oprot.trans.flush()
2715
 
2981 rajveer 2716
  def recv_getUserNotes(self, ):
559 chandransh 2717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2718
    if mtype == TMessageType.EXCEPTION:
2719
      x = TApplicationException()
2720
      x.read(self._iprot)
2721
      self._iprot.readMessageEnd()
2722
      raise x
2981 rajveer 2723
    result = getUserNotes_result()
559 chandransh 2724
    result.read(self._iprot)
2725
    self._iprot.readMessageEnd()
3431 rajveer 2726
    if result.success is not None:
2981 rajveer 2727
      return result.success
2728
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2729
 
2981 rajveer 2730
  def getMyResearchItems(self, userId):
559 chandransh 2731
    """
2981 rajveer 2732
    Returns list of item ids in myresearch for the user
3431 rajveer 2733
 
559 chandransh 2734
    Parameters:
772 rajveer 2735
     - userId
559 chandransh 2736
    """
2981 rajveer 2737
    self.send_getMyResearchItems(userId)
2738
    return self.recv_getMyResearchItems()
559 chandransh 2739
 
2981 rajveer 2740
  def send_getMyResearchItems(self, userId):
2741
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2742
    args = getMyResearchItems_args()
772 rajveer 2743
    args.userId = userId
559 chandransh 2744
    args.write(self._oprot)
2745
    self._oprot.writeMessageEnd()
2746
    self._oprot.trans.flush()
2747
 
2981 rajveer 2748
  def recv_getMyResearchItems(self, ):
559 chandransh 2749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2750
    if mtype == TMessageType.EXCEPTION:
2751
      x = TApplicationException()
2752
      x.read(self._iprot)
2753
      self._iprot.readMessageEnd()
2754
      raise x
2981 rajveer 2755
    result = getMyResearchItems_result()
559 chandransh 2756
    result.read(self._iprot)
2757
    self._iprot.readMessageEnd()
3431 rajveer 2758
    if result.success is not None:
559 chandransh 2759
      return result.success
3431 rajveer 2760
    if result.scx is not None:
559 chandransh 2761
      raise result.scx
2981 rajveer 2762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2763
 
2981 rajveer 2764
  def updateMyResearch(self, userId, itemId):
559 chandransh 2765
    """
2981 rajveer 2766
    add item to my research for a user
3431 rajveer 2767
 
559 chandransh 2768
    Parameters:
2981 rajveer 2769
     - userId
2770
     - itemId
559 chandransh 2771
    """
2981 rajveer 2772
    self.send_updateMyResearch(userId, itemId)
2773
    return self.recv_updateMyResearch()
559 chandransh 2774
 
2981 rajveer 2775
  def send_updateMyResearch(self, userId, itemId):
2776
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2777
    args = updateMyResearch_args()
2778
    args.userId = userId
2779
    args.itemId = itemId
559 chandransh 2780
    args.write(self._oprot)
2781
    self._oprot.writeMessageEnd()
2782
    self._oprot.trans.flush()
2783
 
2981 rajveer 2784
  def recv_updateMyResearch(self, ):
559 chandransh 2785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2786
    if mtype == TMessageType.EXCEPTION:
2787
      x = TApplicationException()
2788
      x.read(self._iprot)
2789
      self._iprot.readMessageEnd()
2790
      raise x
2981 rajveer 2791
    result = updateMyResearch_result()
559 chandransh 2792
    result.read(self._iprot)
2793
    self._iprot.readMessageEnd()
3431 rajveer 2794
    if result.success is not None:
2981 rajveer 2795
      return result.success
3431 rajveer 2796
    if result.scx is not None:
2981 rajveer 2797
      raise result.scx
2798
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2799
 
2981 rajveer 2800
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2801
    """
2981 rajveer 2802
    delete item from my research for a user
3431 rajveer 2803
 
1596 ankur.sing 2804
    Parameters:
2981 rajveer 2805
     - userId
2806
     - itemId
1596 ankur.sing 2807
    """
2981 rajveer 2808
    self.send_deleteItemFromMyResearch(userId, itemId)
2809
    self.recv_deleteItemFromMyResearch()
559 chandransh 2810
 
2981 rajveer 2811
  def send_deleteItemFromMyResearch(self, userId, itemId):
2812
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2813
    args = deleteItemFromMyResearch_args()
2814
    args.userId = userId
2815
    args.itemId = itemId
1596 ankur.sing 2816
    args.write(self._oprot)
2817
    self._oprot.writeMessageEnd()
2818
    self._oprot.trans.flush()
2819
 
2981 rajveer 2820
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2821
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2822
    if mtype == TMessageType.EXCEPTION:
2823
      x = TApplicationException()
2824
      x.read(self._iprot)
2825
      self._iprot.readMessageEnd()
2826
      raise x
2981 rajveer 2827
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2828
    result.read(self._iprot)
2829
    self._iprot.readMessageEnd()
3431 rajveer 2830
    if result.scx is not None:
2981 rajveer 2831
      raise result.scx
2832
    return
1596 ankur.sing 2833
 
2981 rajveer 2834
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2835
    """
2981 rajveer 2836
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2837
 
1673 ankur.sing 2838
    Parameters:
2981 rajveer 2839
     - userId
1673 ankur.sing 2840
    """
2981 rajveer 2841
    self.send_getBrowseHistoryItems(userId)
2842
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2843
 
2981 rajveer 2844
  def send_getBrowseHistoryItems(self, userId):
2845
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2846
    args = getBrowseHistoryItems_args()
2847
    args.userId = userId
1673 ankur.sing 2848
    args.write(self._oprot)
2849
    self._oprot.writeMessageEnd()
2850
    self._oprot.trans.flush()
2851
 
2981 rajveer 2852
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2854
    if mtype == TMessageType.EXCEPTION:
2855
      x = TApplicationException()
2856
      x.read(self._iprot)
2857
      self._iprot.readMessageEnd()
2858
      raise x
2981 rajveer 2859
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2860
    result.read(self._iprot)
2861
    self._iprot.readMessageEnd()
3431 rajveer 2862
    if result.success is not None:
1673 ankur.sing 2863
      return result.success
3431 rajveer 2864
    if result.scx is not None:
2981 rajveer 2865
      raise result.scx
2866
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2867
 
2981 rajveer 2868
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2869
    """
2981 rajveer 2870
    add item to browse history for a user
3431 rajveer 2871
 
2642 varun.gupt 2872
    Parameters:
2981 rajveer 2873
     - userId
2874
     - itemId
2642 varun.gupt 2875
    """
2981 rajveer 2876
    self.send_updateBrowseHistory(userId, itemId)
2877
    self.recv_updateBrowseHistory()
1673 ankur.sing 2878
 
2981 rajveer 2879
  def send_updateBrowseHistory(self, userId, itemId):
2880
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2881
    args = updateBrowseHistory_args()
2882
    args.userId = userId
2883
    args.itemId = itemId
2642 varun.gupt 2884
    args.write(self._oprot)
2885
    self._oprot.writeMessageEnd()
2886
    self._oprot.trans.flush()
2887
 
2981 rajveer 2888
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2889
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2890
    if mtype == TMessageType.EXCEPTION:
2891
      x = TApplicationException()
2892
      x.read(self._iprot)
2893
      self._iprot.readMessageEnd()
2894
      raise x
2981 rajveer 2895
    result = updateBrowseHistory_result()
2642 varun.gupt 2896
    result.read(self._iprot)
2897
    self._iprot.readMessageEnd()
2898
    return
2899
 
3385 varun.gupt 2900
  def getCartsWithCouponCount(self, couponCode):
2901
    """
2902
    Returns count of Carts with given coupon applied
3431 rajveer 2903
 
3385 varun.gupt 2904
    Parameters:
2905
     - couponCode
2906
    """
2907
    self.send_getCartsWithCouponCount(couponCode)
2908
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2909
 
3385 varun.gupt 2910
  def send_getCartsWithCouponCount(self, couponCode):
2911
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2912
    args = getCartsWithCouponCount_args()
2913
    args.couponCode = couponCode
2914
    args.write(self._oprot)
2915
    self._oprot.writeMessageEnd()
2916
    self._oprot.trans.flush()
2917
 
2918
  def recv_getCartsWithCouponCount(self, ):
2919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2920
    if mtype == TMessageType.EXCEPTION:
2921
      x = TApplicationException()
2922
      x.read(self._iprot)
2923
      self._iprot.readMessageEnd()
2924
      raise x
2925
    result = getCartsWithCouponCount_result()
2926
    result.read(self._iprot)
2927
    self._iprot.readMessageEnd()
3431 rajveer 2928
    if result.success is not None:
3385 varun.gupt 2929
      return result.success
2930
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2931
 
3499 mandeep.dh 2932
  def increaseTrustLevel(self, userId, trustLevelDelta):
2933
    """
2934
    Updates COD trust level of a user
3385 varun.gupt 2935
 
3499 mandeep.dh 2936
    Parameters:
2937
     - userId
2938
     - trustLevelDelta
2939
    """
2940
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2941
 
2942
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2943
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2944
    args = increaseTrustLevel_args()
2945
    args.userId = userId
2946
    args.trustLevelDelta = trustLevelDelta
2947
    args.write(self._oprot)
2948
    self._oprot.writeMessageEnd()
2949
    self._oprot.trans.flush()
2950
 
3376 rajveer 2951
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2952
  def __init__(self, handler):
3376 rajveer 2953
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2954
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2955
    self._processMap["getUserById"] = Processor.process_getUserById
1491 vikas 2956
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2957
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2958
    self._processMap["createUser"] = Processor.process_createUser
2959
    self._processMap["updateUser"] = Processor.process_updateUser
2960
    self._processMap["deleteUser"] = Processor.process_deleteUser
2961
    self._processMap["getUserState"] = Processor.process_getUserState
122 ashish 2962
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2963
    self._processMap["userExists"] = Processor.process_userExists
2964
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2965
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2966
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2967
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2968
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2969
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2970
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2971
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2972
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2973
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2974
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2975
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2976
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2977
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2978
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2979
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2980
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2981
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2982
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2983
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2984
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2985
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2986
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2987
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2988
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2989
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2990
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2991
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2992
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2993
    self._processMap["createCart"] = Processor.process_createCart
2994
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2995
    self._processMap["getCart"] = Processor.process_getCart
2996
    self._processMap["getCartsForUser"] = Processor.process_getCartsForUser
2997
    self._processMap["getCartsByStatus"] = Processor.process_getCartsByStatus
2998
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2999
    self._processMap["changeCartStatus"] = Processor.process_changeCartStatus
3000
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
3001
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
3002
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
3003
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 3004
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
3005
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 3006
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
3007
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 3008
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 3009
    self._processMap["validateCart"] = Processor.process_validateCart
3010
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 3011
    self._processMap["checkOut"] = Processor.process_checkOut
3012
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 3013
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 3014
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 3015
    self._processMap["putUserNote"] = Processor.process_putUserNote
3016
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 3017
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
3018
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
3019
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
3020
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
3021
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 3022
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 3023
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
94 ashish 3024
 
3025
  def process(self, iprot, oprot):
3026
    (name, type, seqid) = iprot.readMessageBegin()
3027
    if name not in self._processMap:
3028
      iprot.skip(TType.STRUCT)
3029
      iprot.readMessageEnd()
3030
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3031
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3032
      x.write(oprot)
3033
      oprot.writeMessageEnd()
3034
      oprot.trans.flush()
3035
      return
3036
    else:
3037
      self._processMap[name](self, seqid, iprot, oprot)
3038
    return True
3039
 
559 chandransh 3040
  def process_createAnonymousUser(self, seqid, iprot, oprot):
3041
    args = createAnonymousUser_args()
94 ashish 3042
    args.read(iprot)
3043
    iprot.readMessageEnd()
559 chandransh 3044
    result = createAnonymousUser_result()
94 ashish 3045
    try:
559 chandransh 3046
      result.success = self._handler.createAnonymousUser(args.jsessionId)
3047
    except UserContextException, ucex:
3048
      result.ucex = ucex
3049
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 3050
    result.write(oprot)
3051
    oprot.writeMessageEnd()
3052
    oprot.trans.flush()
3053
 
559 chandransh 3054
  def process_getUserById(self, seqid, iprot, oprot):
3055
    args = getUserById_args()
94 ashish 3056
    args.read(iprot)
3057
    iprot.readMessageEnd()
559 chandransh 3058
    result = getUserById_result()
94 ashish 3059
    try:
559 chandransh 3060
      result.success = self._handler.getUserById(args.userId)
3061
    except UserContextException, ucex:
3062
      result.ucex = ucex
3063
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 3064
    result.write(oprot)
3065
    oprot.writeMessageEnd()
3066
    oprot.trans.flush()
3067
 
1491 vikas 3068
  def process_getUserByEmail(self, seqid, iprot, oprot):
3069
    args = getUserByEmail_args()
3070
    args.read(iprot)
3071
    iprot.readMessageEnd()
3072
    result = getUserByEmail_result()
3073
    try:
3074
      result.success = self._handler.getUserByEmail(args.email)
3075
    except UserContextException, ucex:
3076
      result.ucex = ucex
3077
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
3078
    result.write(oprot)
3079
    oprot.writeMessageEnd()
3080
    oprot.trans.flush()
3081
 
3032 mandeep.dh 3082
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
3083
    args = getUserByMobileNumber_args()
3084
    args.read(iprot)
3085
    iprot.readMessageEnd()
3086
    result = getUserByMobileNumber_result()
3087
    try:
3088
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
3089
    except UserContextException, ucex:
3090
      result.ucex = ucex
3091
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
3092
    result.write(oprot)
3093
    oprot.writeMessageEnd()
3094
    oprot.trans.flush()
3095
 
559 chandransh 3096
  def process_createUser(self, seqid, iprot, oprot):
3097
    args = createUser_args()
94 ashish 3098
    args.read(iprot)
3099
    iprot.readMessageEnd()
559 chandransh 3100
    result = createUser_result()
94 ashish 3101
    try:
559 chandransh 3102
      result.success = self._handler.createUser(args.user)
3103
    except UserContextException, ucex:
3104
      result.ucex = ucex
3105
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 3106
    result.write(oprot)
3107
    oprot.writeMessageEnd()
3108
    oprot.trans.flush()
3109
 
559 chandransh 3110
  def process_updateUser(self, seqid, iprot, oprot):
3111
    args = updateUser_args()
94 ashish 3112
    args.read(iprot)
3113
    iprot.readMessageEnd()
559 chandransh 3114
    result = updateUser_result()
94 ashish 3115
    try:
559 chandransh 3116
      result.success = self._handler.updateUser(args.user)
3117
    except UserContextException, ucex:
3118
      result.ucex = ucex
3119
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 3120
    result.write(oprot)
3121
    oprot.writeMessageEnd()
3122
    oprot.trans.flush()
3123
 
559 chandransh 3124
  def process_deleteUser(self, seqid, iprot, oprot):
3125
    args = deleteUser_args()
94 ashish 3126
    args.read(iprot)
3127
    iprot.readMessageEnd()
559 chandransh 3128
    result = deleteUser_result()
94 ashish 3129
    try:
559 chandransh 3130
      result.success = self._handler.deleteUser(args.userId)
3131
    except UserContextException, ucex:
3132
      result.ucex = ucex
3133
    oprot.writeMessageBegin("deleteUser", TMessageType.REPLY, seqid)
94 ashish 3134
    result.write(oprot)
3135
    oprot.writeMessageEnd()
3136
    oprot.trans.flush()
3137
 
559 chandransh 3138
  def process_getUserState(self, seqid, iprot, oprot):
3139
    args = getUserState_args()
94 ashish 3140
    args.read(iprot)
3141
    iprot.readMessageEnd()
559 chandransh 3142
    result = getUserState_result()
94 ashish 3143
    try:
559 chandransh 3144
      result.success = self._handler.getUserState(args.userId)
3145
    except UserContextException, ucex:
3146
      result.ucex = ucex
3147
    oprot.writeMessageBegin("getUserState", TMessageType.REPLY, seqid)
94 ashish 3148
    result.write(oprot)
3149
    oprot.writeMessageEnd()
3150
    oprot.trans.flush()
3151
 
122 ashish 3152
  def process_authenticateUser(self, seqid, iprot, oprot):
3153
    args = authenticateUser_args()
3154
    args.read(iprot)
3155
    iprot.readMessageEnd()
3156
    result = authenticateUser_result()
3157
    try:
559 chandransh 3158
      result.success = self._handler.authenticateUser(args.email, args.password)
3159
    except AuthenticationException, auex:
3160
      result.auex = auex
122 ashish 3161
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
3162
    result.write(oprot)
3163
    oprot.writeMessageEnd()
3164
    oprot.trans.flush()
3165
 
94 ashish 3166
  def process_userExists(self, seqid, iprot, oprot):
3167
    args = userExists_args()
3168
    args.read(iprot)
3169
    iprot.readMessageEnd()
3170
    result = userExists_result()
3171
    try:
3172
      result.success = self._handler.userExists(args.email)
3173
    except UserContextException, ucx:
3174
      result.ucx = ucx
3175
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3176
    result.write(oprot)
3177
    oprot.writeMessageEnd()
3178
    oprot.trans.flush()
3179
 
3180
  def process_addAddressForUser(self, seqid, iprot, oprot):
3181
    args = addAddressForUser_args()
3182
    args.read(iprot)
3183
    iprot.readMessageEnd()
3184
    result = addAddressForUser_result()
3185
    try:
567 rajveer 3186
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3187
    except UserContextException, ucx:
3188
      result.ucx = ucx
3189
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3190
    result.write(oprot)
3191
    oprot.writeMessageEnd()
3192
    oprot.trans.flush()
3193
 
3194
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3195
    args = removeAddressForUser_args()
3196
    args.read(iprot)
3197
    iprot.readMessageEnd()
3198
    result = removeAddressForUser_result()
3199
    try:
3200
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3201
    except UserContextException, ucx:
3202
      result.ucx = ucx
3203
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3204
    result.write(oprot)
3205
    oprot.writeMessageEnd()
3206
    oprot.trans.flush()
3207
 
3208
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3209
    args = setUserAsLoggedIn_args()
3210
    args.read(iprot)
3211
    iprot.readMessageEnd()
3212
    result = setUserAsLoggedIn_result()
3213
    try:
3214
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3215
    except UserContextException, ucx:
3216
      result.ucx = ucx
3217
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3218
    result.write(oprot)
3219
    oprot.writeMessageEnd()
3220
    oprot.trans.flush()
3221
 
3222
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3223
    args = setUserAsLoggedOut_args()
3224
    args.read(iprot)
3225
    iprot.readMessageEnd()
3226
    result = setUserAsLoggedOut_result()
3227
    try:
3228
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3229
    except UserContextException, ucx:
3230
      result.ucx = ucx
3231
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3232
    result.write(oprot)
3233
    oprot.writeMessageEnd()
3234
    oprot.trans.flush()
3235
 
504 rajveer 3236
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3237
    args = setDefaultAddress_args()
3238
    args.read(iprot)
3239
    iprot.readMessageEnd()
3240
    result = setDefaultAddress_result()
3241
    try:
3242
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3243
    except UserContextException, ucx:
3244
      result.ucx = ucx
3245
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3246
    result.write(oprot)
3247
    oprot.writeMessageEnd()
3248
    oprot.trans.flush()
3249
 
94 ashish 3250
  def process_updatePassword(self, seqid, iprot, oprot):
3251
    args = updatePassword_args()
3252
    args.read(iprot)
3253
    iprot.readMessageEnd()
3254
    result = updatePassword_result()
3255
    try:
594 rajveer 3256
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3257
    except UserContextException, ucx:
3258
      result.ucx = ucx
3259
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3260
    result.write(oprot)
3261
    oprot.writeMessageEnd()
3262
    oprot.trans.flush()
3263
 
581 rajveer 3264
  def process_forgotPassword(self, seqid, iprot, oprot):
3265
    args = forgotPassword_args()
3266
    args.read(iprot)
3267
    iprot.readMessageEnd()
3268
    result = forgotPassword_result()
3269
    try:
884 rajveer 3270
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3271
    except UserContextException, ucx:
3272
      result.ucx = ucx
3273
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3274
    result.write(oprot)
3275
    oprot.writeMessageEnd()
3276
    oprot.trans.flush()
3277
 
594 rajveer 3278
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3279
    args = getAllAddressesForUser_args()
3280
    args.read(iprot)
3281
    iprot.readMessageEnd()
3282
    result = getAllAddressesForUser_result()
3283
    try:
3284
      result.success = self._handler.getAllAddressesForUser(args.userId)
3285
    except UserContextException, ucx:
3286
      result.ucx = ucx
3287
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3288
    result.write(oprot)
3289
    oprot.writeMessageEnd()
3290
    oprot.trans.flush()
3291
 
1894 vikas 3292
  def process_getAddressById(self, seqid, iprot, oprot):
3293
    args = getAddressById_args()
3294
    args.read(iprot)
3295
    iprot.readMessageEnd()
3296
    result = getAddressById_result()
3297
    try:
3298
      result.success = self._handler.getAddressById(args.addressId)
3299
    except UserContextException, ucx:
3300
      result.ucx = ucx
3301
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3302
    result.write(oprot)
3303
    oprot.writeMessageEnd()
3304
    oprot.trans.flush()
3305
 
594 rajveer 3306
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3307
    args = getDefaultAddressId_args()
3308
    args.read(iprot)
3309
    iprot.readMessageEnd()
3310
    result = getDefaultAddressId_result()
3311
    try:
3312
      result.success = self._handler.getDefaultAddressId(args.userId)
3313
    except UserContextException, ucx:
3314
      result.ucx = ucx
3315
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3316
    result.write(oprot)
3317
    oprot.writeMessageEnd()
3318
    oprot.trans.flush()
3319
 
785 rajveer 3320
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3321
    args = getDefaultPincode_args()
3322
    args.read(iprot)
3323
    iprot.readMessageEnd()
3324
    result = getDefaultPincode_result()
3325
    try:
3326
      result.success = self._handler.getDefaultPincode(args.userId)
3327
    except UserContextException, ucx:
3328
      result.ucx = ucx
3329
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3330
    result.write(oprot)
3331
    oprot.writeMessageEnd()
3332
    oprot.trans.flush()
3333
 
1274 varun.gupt 3334
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3335
    args = saveUserCommunication_args()
3336
    args.read(iprot)
3337
    iprot.readMessageEnd()
3338
    result = saveUserCommunication_result()
3339
    try:
3340
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3341
    except UserCommunicationException, ucx:
3342
      result.ucx = ucx
3343
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3344
    result.write(oprot)
3345
    oprot.writeMessageEnd()
3346
    oprot.trans.flush()
3347
 
1590 varun.gupt 3348
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3349
    args = getUserCommunicationById_args()
3350
    args.read(iprot)
3351
    iprot.readMessageEnd()
3352
    result = getUserCommunicationById_result()
3353
    try:
3354
      result.success = self._handler.getUserCommunicationById(args.id)
3355
    except UserCommunicationException, ucx:
3356
      result.ucx = ucx
3357
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3358
    result.write(oprot)
3359
    oprot.writeMessageEnd()
3360
    oprot.trans.flush()
3361
 
3362
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3363
    args = getUserCommunicationByUser_args()
3364
    args.read(iprot)
3365
    iprot.readMessageEnd()
3366
    result = getUserCommunicationByUser_result()
3367
    try:
3368
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3369
    except UserCommunicationException, ucx:
3370
      result.ucx = ucx
3371
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3372
    result.write(oprot)
3373
    oprot.writeMessageEnd()
3374
    oprot.trans.flush()
3375
 
3376
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3377
    args = getAllUserCommunications_args()
3378
    args.read(iprot)
3379
    iprot.readMessageEnd()
3380
    result = getAllUserCommunications_result()
3381
    try:
3382
      result.success = self._handler.getAllUserCommunications()
3383
    except UserCommunicationException, ucx:
3384
      result.ucx = ucx
3385
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3386
    result.write(oprot)
3387
    oprot.writeMessageEnd()
3388
    oprot.trans.flush()
3389
 
1845 vikas 3390
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3391
    args = createMasterAffiliate_args()
3392
    args.read(iprot)
3393
    iprot.readMessageEnd()
3394
    result = createMasterAffiliate_result()
3395
    try:
1859 vikas 3396
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3397
    except UserAffiliateException, utx:
1845 vikas 3398
      result.utx = utx
3399
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3400
    result.write(oprot)
3401
    oprot.writeMessageEnd()
3402
    oprot.trans.flush()
3403
 
1899 vikas 3404
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3405
    args = getAllMasterAffiliates_args()
3406
    args.read(iprot)
3407
    iprot.readMessageEnd()
3408
    result = getAllMasterAffiliates_result()
3409
    try:
3410
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3411
    except UserAffiliateException, utx:
1899 vikas 3412
      result.utx = utx
3413
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3414
    result.write(oprot)
3415
    oprot.writeMessageEnd()
3416
    oprot.trans.flush()
3417
 
1845 vikas 3418
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3419
    args = getMasterAffiliateById_args()
3420
    args.read(iprot)
3421
    iprot.readMessageEnd()
3422
    result = getMasterAffiliateById_result()
3423
    try:
3424
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3425
    except UserAffiliateException, utx:
1845 vikas 3426
      result.utx = utx
3427
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3428
    result.write(oprot)
3429
    oprot.writeMessageEnd()
3430
    oprot.trans.flush()
3431
 
3432
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3433
    args = getMasterAffiliateByName_args()
3434
    args.read(iprot)
3435
    iprot.readMessageEnd()
3436
    result = getMasterAffiliateByName_result()
3437
    try:
3438
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3439
    except UserAffiliateException, utx:
1845 vikas 3440
      result.utx = utx
3441
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3442
    result.write(oprot)
3443
    oprot.writeMessageEnd()
3444
    oprot.trans.flush()
3445
 
3446
  def process_createAffiliate(self, seqid, iprot, oprot):
3447
    args = createAffiliate_args()
3448
    args.read(iprot)
3449
    iprot.readMessageEnd()
3450
    result = createAffiliate_result()
3451
    try:
1859 vikas 3452
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3453
    except UserAffiliateException, utx:
1845 vikas 3454
      result.utx = utx
3455
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3456
    result.write(oprot)
3457
    oprot.writeMessageEnd()
3458
    oprot.trans.flush()
3459
 
3460
  def process_getAffiliateById(self, seqid, iprot, oprot):
3461
    args = getAffiliateById_args()
3462
    args.read(iprot)
3463
    iprot.readMessageEnd()
3464
    result = getAffiliateById_result()
3465
    try:
3466
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3467
    except UserAffiliateException, utx:
1845 vikas 3468
      result.utx = utx
3469
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3470
    result.write(oprot)
3471
    oprot.writeMessageEnd()
3472
    oprot.trans.flush()
3473
 
3474
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3475
    args = getAffiliateByName_args()
3476
    args.read(iprot)
3477
    iprot.readMessageEnd()
3478
    result = getAffiliateByName_result()
3479
    try:
3480
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3481
    except UserAffiliateException, utx:
1845 vikas 3482
      result.utx = utx
3483
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3484
    result.write(oprot)
3485
    oprot.writeMessageEnd()
3486
    oprot.trans.flush()
3487
 
3488
  def process_getTrackerById(self, seqid, iprot, oprot):
3489
    args = getTrackerById_args()
3490
    args.read(iprot)
3491
    iprot.readMessageEnd()
3492
    result = getTrackerById_result()
3493
    try:
1996 vikas 3494
      result.success = self._handler.getTrackerById(args.id)
3495
    except UserAffiliateException, utx:
1845 vikas 3496
      result.utx = utx
3497
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3498
    result.write(oprot)
3499
    oprot.writeMessageEnd()
3500
    oprot.trans.flush()
3501
 
1996 vikas 3502
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3503
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3504
    args.read(iprot)
3505
    iprot.readMessageEnd()
1996 vikas 3506
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3507
    try:
1996 vikas 3508
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3509
    except UserAffiliateException, utx:
1845 vikas 3510
      result.utx = utx
1996 vikas 3511
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3512
    result.write(oprot)
3513
    oprot.writeMessageEnd()
3514
    oprot.trans.flush()
3515
 
3516
  def process_addTrackLog(self, seqid, iprot, oprot):
3517
    args = addTrackLog_args()
3518
    args.read(iprot)
3519
    iprot.readMessageEnd()
3520
    result = addTrackLog_result()
3521
    try:
1996 vikas 3522
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3523
    except UserAffiliateException, utx:
1845 vikas 3524
      result.utx = utx
3525
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3526
    result.write(oprot)
3527
    oprot.writeMessageEnd()
3528
    oprot.trans.flush()
3529
 
3530
  def process_getTrackLogById(self, seqid, iprot, oprot):
3531
    args = getTrackLogById_args()
3532
    args.read(iprot)
3533
    iprot.readMessageEnd()
3534
    result = getTrackLogById_result()
3535
    try:
3536
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3537
    except UserAffiliateException, utx:
1845 vikas 3538
      result.utx = utx
3539
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3540
    result.write(oprot)
3541
    oprot.writeMessageEnd()
3542
    oprot.trans.flush()
3543
 
1996 vikas 3544
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3545
    args = getTrackLogsByAffiliate_args()
1845 vikas 3546
    args.read(iprot)
3547
    iprot.readMessageEnd()
1996 vikas 3548
    result = getTrackLogsByAffiliate_result()
1845 vikas 3549
    try:
3293 vikas 3550
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3551
    except UserAffiliateException, utx:
1845 vikas 3552
      result.utx = utx
1996 vikas 3553
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3554
    result.write(oprot)
3555
    oprot.writeMessageEnd()
3556
    oprot.trans.flush()
3557
 
3558
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3559
    args = getTrackLogsByUser_args()
3560
    args.read(iprot)
3561
    iprot.readMessageEnd()
3562
    result = getTrackLogsByUser_result()
3563
    try:
3564
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3565
    except UserAffiliateException, utx:
1845 vikas 3566
      result.utx = utx
3567
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3568
    result.write(oprot)
3569
    oprot.writeMessageEnd()
3570
    oprot.trans.flush()
3571
 
3572
  def process_getTrackLogs(self, seqid, iprot, oprot):
3573
    args = getTrackLogs_args()
3574
    args.read(iprot)
3575
    iprot.readMessageEnd()
3576
    result = getTrackLogs_result()
3577
    try:
1996 vikas 3578
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3579
    except UserAffiliateException, utx:
1845 vikas 3580
      result.utx = utx
3581
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3582
    result.write(oprot)
3583
    oprot.writeMessageEnd()
3584
    oprot.trans.flush()
3585
 
559 chandransh 3586
  def process_createCart(self, seqid, iprot, oprot):
3587
    args = createCart_args()
94 ashish 3588
    args.read(iprot)
3589
    iprot.readMessageEnd()
559 chandransh 3590
    result = createCart_result()
94 ashish 3591
    try:
559 chandransh 3592
      result.success = self._handler.createCart(args.userId)
3593
    except ShoppingCartException, scx:
3594
      result.scx = scx
3595
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3596
    result.write(oprot)
3597
    oprot.writeMessageEnd()
3598
    oprot.trans.flush()
3599
 
559 chandransh 3600
  def process_getCurrentCart(self, seqid, iprot, oprot):
3601
    args = getCurrentCart_args()
94 ashish 3602
    args.read(iprot)
3603
    iprot.readMessageEnd()
559 chandransh 3604
    result = getCurrentCart_result()
94 ashish 3605
    try:
559 chandransh 3606
      result.success = self._handler.getCurrentCart(args.userId)
3607
    except ShoppingCartException, scx:
3608
      result.scx = scx
3609
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3610
    result.write(oprot)
3611
    oprot.writeMessageEnd()
3612
    oprot.trans.flush()
3613
 
559 chandransh 3614
  def process_getCart(self, seqid, iprot, oprot):
3615
    args = getCart_args()
94 ashish 3616
    args.read(iprot)
3617
    iprot.readMessageEnd()
559 chandransh 3618
    result = getCart_result()
94 ashish 3619
    try:
559 chandransh 3620
      result.success = self._handler.getCart(args.cartId)
3621
    except ShoppingCartException, scx:
3622
      result.scx = scx
3623
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3624
    result.write(oprot)
3625
    oprot.writeMessageEnd()
3626
    oprot.trans.flush()
3627
 
559 chandransh 3628
  def process_getCartsForUser(self, seqid, iprot, oprot):
3629
    args = getCartsForUser_args()
94 ashish 3630
    args.read(iprot)
3631
    iprot.readMessageEnd()
559 chandransh 3632
    result = getCartsForUser_result()
94 ashish 3633
    try:
559 chandransh 3634
      result.success = self._handler.getCartsForUser(args.userId, args.status)
3635
    except ShoppingCartException, scx:
3636
      result.scx = scx
3637
    oprot.writeMessageBegin("getCartsForUser", TMessageType.REPLY, seqid)
94 ashish 3638
    result.write(oprot)
3639
    oprot.writeMessageEnd()
3640
    oprot.trans.flush()
3641
 
559 chandransh 3642
  def process_getCartsByStatus(self, seqid, iprot, oprot):
3643
    args = getCartsByStatus_args()
94 ashish 3644
    args.read(iprot)
3645
    iprot.readMessageEnd()
559 chandransh 3646
    result = getCartsByStatus_result()
94 ashish 3647
    try:
559 chandransh 3648
      result.success = self._handler.getCartsByStatus(args.status)
3649
    except ShoppingCartException, scx:
3650
      result.scx = scx
3651
    oprot.writeMessageBegin("getCartsByStatus", TMessageType.REPLY, seqid)
94 ashish 3652
    result.write(oprot)
3653
    oprot.writeMessageEnd()
3654
    oprot.trans.flush()
3655
 
559 chandransh 3656
  def process_getCartsByTime(self, seqid, iprot, oprot):
3657
    args = getCartsByTime_args()
94 ashish 3658
    args.read(iprot)
3659
    iprot.readMessageEnd()
559 chandransh 3660
    result = getCartsByTime_result()
94 ashish 3661
    try:
559 chandransh 3662
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3663
    except ShoppingCartException, scx:
3664
      result.scx = scx
3665
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3666
    result.write(oprot)
3667
    oprot.writeMessageEnd()
3668
    oprot.trans.flush()
3669
 
559 chandransh 3670
  def process_changeCartStatus(self, seqid, iprot, oprot):
3671
    args = changeCartStatus_args()
130 ashish 3672
    args.read(iprot)
3673
    iprot.readMessageEnd()
559 chandransh 3674
    result = changeCartStatus_result()
130 ashish 3675
    try:
559 chandransh 3676
      self._handler.changeCartStatus(args.cartId, args.status)
3677
    except ShoppingCartException, scx:
3678
      result.scx = scx
3679
    oprot.writeMessageBegin("changeCartStatus", TMessageType.REPLY, seqid)
130 ashish 3680
    result.write(oprot)
3681
    oprot.writeMessageEnd()
3682
    oprot.trans.flush()
94 ashish 3683
 
559 chandransh 3684
  def process_addItemToCart(self, seqid, iprot, oprot):
3685
    args = addItemToCart_args()
130 ashish 3686
    args.read(iprot)
3687
    iprot.readMessageEnd()
559 chandransh 3688
    result = addItemToCart_result()
130 ashish 3689
    try:
3557 rajveer 3690
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3691
    except ShoppingCartException, scx:
3692
      result.scx = scx
3693
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3694
    result.write(oprot)
3695
    oprot.writeMessageEnd()
3696
    oprot.trans.flush()
3697
 
559 chandransh 3698
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3699
    args = deleteItemFromCart_args()
3700
    args.read(iprot)
3701
    iprot.readMessageEnd()
3702
    result = deleteItemFromCart_result()
3703
    try:
3704
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3705
    except ShoppingCartException, scx:
3706
      result.scx = scx
3707
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3708
    result.write(oprot)
3709
    oprot.writeMessageEnd()
3710
    oprot.trans.flush()
130 ashish 3711
 
559 chandransh 3712
  def process_changeItemStatus(self, seqid, iprot, oprot):
3713
    args = changeItemStatus_args()
3714
    args.read(iprot)
3715
    iprot.readMessageEnd()
3716
    result = changeItemStatus_result()
3717
    try:
3718
      self._handler.changeItemStatus(args.cartId, args.itemId, args.status)
3719
    except ShoppingCartException, scx:
3720
      result.scx = scx
3721
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
3722
    result.write(oprot)
3723
    oprot.writeMessageEnd()
3724
    oprot.trans.flush()
3725
 
3726
  def process_addAddressToCart(self, seqid, iprot, oprot):
3727
    args = addAddressToCart_args()
3728
    args.read(iprot)
3729
    iprot.readMessageEnd()
3730
    result = addAddressToCart_result()
575 chandransh 3731
    try:
3732
      self._handler.addAddressToCart(args.cartId, args.addressId)
3733
    except ShoppingCartException, scx:
3734
      result.scx = scx
559 chandransh 3735
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3736
    result.write(oprot)
3737
    oprot.writeMessageEnd()
3738
    oprot.trans.flush()
3739
 
1976 varun.gupt 3740
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3741
    args = applyCouponToCart_args()
3742
    args.read(iprot)
3743
    iprot.readMessageEnd()
3744
    result = applyCouponToCart_result()
3745
    try:
3746
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3747
    except ShoppingCartException, scx:
3748
      result.scx = scx
3749
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3750
    result.write(oprot)
3751
    oprot.writeMessageEnd()
3752
    oprot.trans.flush()
3753
 
3754
  def process_removeCoupon(self, seqid, iprot, oprot):
3755
    args = removeCoupon_args()
3756
    args.read(iprot)
3757
    iprot.readMessageEnd()
3758
    result = removeCoupon_result()
3759
    try:
3760
      self._handler.removeCoupon(args.cartId)
3761
    except ShoppingCartException, scx:
3762
      result.scx = scx
3763
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3764
    result.write(oprot)
3765
    oprot.writeMessageEnd()
3766
    oprot.trans.flush()
3767
 
3554 varun.gupt 3768
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3769
    args = deleteDiscountsFromCart_args()
3770
    args.read(iprot)
3771
    iprot.readMessageEnd()
3772
    result = deleteDiscountsFromCart_result()
3773
    try:
3774
      self._handler.deleteDiscountsFromCart(args.cartId)
3775
    except ShoppingCartException, scx:
3776
      result.scx = scx
3777
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3778
    result.write(oprot)
3779
    oprot.writeMessageEnd()
3780
    oprot.trans.flush()
3781
 
3782
  def process_saveDiscounts(self, seqid, iprot, oprot):
3783
    args = saveDiscounts_args()
3784
    args.read(iprot)
3785
    iprot.readMessageEnd()
3786
    result = saveDiscounts_result()
3787
    try:
3788
      self._handler.saveDiscounts(args.discounts)
3789
    except ShoppingCartException, scx:
3790
      result.scx = scx
3791
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3792
    result.write(oprot)
3793
    oprot.writeMessageEnd()
3794
    oprot.trans.flush()
3795
 
690 chandransh 3796
  def process_createOrders(self, seqid, iprot, oprot):
3797
    args = createOrders_args()
559 chandransh 3798
    args.read(iprot)
3799
    iprot.readMessageEnd()
690 chandransh 3800
    result = createOrders_result()
559 chandransh 3801
    try:
2815 vikas 3802
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime)
559 chandransh 3803
    except ShoppingCartException, scx:
3804
      result.scx = scx
690 chandransh 3805
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3806
    result.write(oprot)
3807
    oprot.writeMessageEnd()
3808
    oprot.trans.flush()
3809
 
3810
  def process_validateCart(self, seqid, iprot, oprot):
3811
    args = validateCart_args()
3812
    args.read(iprot)
3813
    iprot.readMessageEnd()
3814
    result = validateCart_result()
575 chandransh 3815
    try:
3557 rajveer 3816
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3817
    except ShoppingCartException, scex:
3818
      result.scex = scex
559 chandransh 3819
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3820
    result.write(oprot)
3821
    oprot.writeMessageEnd()
3822
    oprot.trans.flush()
3823
 
690 chandransh 3824
  def process_mergeCart(self, seqid, iprot, oprot):
3825
    args = mergeCart_args()
575 chandransh 3826
    args.read(iprot)
3827
    iprot.readMessageEnd()
690 chandransh 3828
    result = mergeCart_result()
3829
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3830
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3831
    result.write(oprot)
3832
    oprot.writeMessageEnd()
3833
    oprot.trans.flush()
3834
 
3835
  def process_checkOut(self, seqid, iprot, oprot):
3836
    args = checkOut_args()
3837
    args.read(iprot)
3838
    iprot.readMessageEnd()
3839
    result = checkOut_result()
575 chandransh 3840
    try:
690 chandransh 3841
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3842
    except ShoppingCartException, scex:
3843
      result.scex = scex
690 chandransh 3844
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3845
    result.write(oprot)
3846
    oprot.writeMessageEnd()
3847
    oprot.trans.flush()
3848
 
690 chandransh 3849
  def process_resetCart(self, seqid, iprot, oprot):
3850
    args = resetCart_args()
559 chandransh 3851
    args.read(iprot)
3852
    iprot.readMessageEnd()
690 chandransh 3853
    result = resetCart_result()
3854
    try:
3855
      result.success = self._handler.resetCart(args.cartId, args.items)
3856
    except ShoppingCartException, scex:
3857
      result.scex = scex
3858
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3859
    result.write(oprot)
3860
    oprot.writeMessageEnd()
3861
    oprot.trans.flush()
3862
 
2981 rajveer 3863
  def process_getUserCount(self, seqid, iprot, oprot):
3864
    args = getUserCount_args()
559 chandransh 3865
    args.read(iprot)
3866
    iprot.readMessageEnd()
2981 rajveer 3867
    result = getUserCount_result()
3868
    result.success = self._handler.getUserCount(args.userType)
3869
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3870
    result.write(oprot)
3871
    oprot.writeMessageEnd()
3872
    oprot.trans.flush()
3873
 
2981 rajveer 3874
  def process_getAllUsers(self, seqid, iprot, oprot):
3875
    args = getAllUsers_args()
559 chandransh 3876
    args.read(iprot)
3877
    iprot.readMessageEnd()
2981 rajveer 3878
    result = getAllUsers_result()
3879
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3880
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3881
    result.write(oprot)
3882
    oprot.writeMessageEnd()
3883
    oprot.trans.flush()
3884
 
2981 rajveer 3885
  def process_putUserNote(self, seqid, iprot, oprot):
3886
    args = putUserNote_args()
559 chandransh 3887
    args.read(iprot)
3888
    iprot.readMessageEnd()
2981 rajveer 3889
    result = putUserNote_result()
3890
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3891
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3892
    result.write(oprot)
3893
    oprot.writeMessageEnd()
3894
    oprot.trans.flush()
3895
 
2981 rajveer 3896
  def process_getUserNotes(self, seqid, iprot, oprot):
3897
    args = getUserNotes_args()
559 chandransh 3898
    args.read(iprot)
3899
    iprot.readMessageEnd()
2981 rajveer 3900
    result = getUserNotes_result()
3901
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3902
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3903
    result.write(oprot)
3904
    oprot.writeMessageEnd()
3905
    oprot.trans.flush()
3906
 
2981 rajveer 3907
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3908
    args = getMyResearchItems_args()
559 chandransh 3909
    args.read(iprot)
3910
    iprot.readMessageEnd()
2981 rajveer 3911
    result = getMyResearchItems_result()
559 chandransh 3912
    try:
2981 rajveer 3913
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3914
    except WidgetException, scx:
3915
      result.scx = scx
2981 rajveer 3916
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3917
    result.write(oprot)
3918
    oprot.writeMessageEnd()
3919
    oprot.trans.flush()
3920
 
2981 rajveer 3921
  def process_updateMyResearch(self, seqid, iprot, oprot):
3922
    args = updateMyResearch_args()
772 rajveer 3923
    args.read(iprot)
3924
    iprot.readMessageEnd()
2981 rajveer 3925
    result = updateMyResearch_result()
3926
    try:
3927
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3928
    except WidgetException, scx:
3929
      result.scx = scx
3930
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3931
    result.write(oprot)
3932
    oprot.writeMessageEnd()
3933
    oprot.trans.flush()
559 chandransh 3934
 
2981 rajveer 3935
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3936
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3937
    args.read(iprot)
3938
    iprot.readMessageEnd()
2981 rajveer 3939
    result = deleteItemFromMyResearch_result()
3940
    try:
3941
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3942
    except WidgetException, scx:
3943
      result.scx = scx
3944
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3945
    result.write(oprot)
3946
    oprot.writeMessageEnd()
3947
    oprot.trans.flush()
772 rajveer 3948
 
2981 rajveer 3949
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3950
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3951
    args.read(iprot)
3952
    iprot.readMessageEnd()
2981 rajveer 3953
    result = getBrowseHistoryItems_result()
3954
    try:
3955
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3956
    except WidgetException, scx:
3957
      result.scx = scx
3958
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3959
    result.write(oprot)
3960
    oprot.writeMessageEnd()
3961
    oprot.trans.flush()
1596 ankur.sing 3962
 
2981 rajveer 3963
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3964
    args = updateBrowseHistory_args()
2642 varun.gupt 3965
    args.read(iprot)
3966
    iprot.readMessageEnd()
2981 rajveer 3967
    result = updateBrowseHistory_result()
3968
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3969
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3970
    result.write(oprot)
3971
    oprot.writeMessageEnd()
3972
    oprot.trans.flush()
1673 ankur.sing 3973
 
3385 varun.gupt 3974
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3975
    args = getCartsWithCouponCount_args()
3976
    args.read(iprot)
3977
    iprot.readMessageEnd()
3978
    result = getCartsWithCouponCount_result()
3979
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3980
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3981
    result.write(oprot)
3982
    oprot.writeMessageEnd()
3983
    oprot.trans.flush()
2642 varun.gupt 3984
 
3499 mandeep.dh 3985
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3986
    args = increaseTrustLevel_args()
3987
    args.read(iprot)
3988
    iprot.readMessageEnd()
3989
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3990
    return
3385 varun.gupt 3991
 
3499 mandeep.dh 3992
 
94 ashish 3993
# HELPER FUNCTIONS AND STRUCTURES
3994
 
559 chandransh 3995
class createAnonymousUser_args:
94 ashish 3996
  """
3997
  Attributes:
559 chandransh 3998
   - jsessionId
94 ashish 3999
  """
4000
 
4001
  thrift_spec = (
4002
    None, # 0
559 chandransh 4003
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 4004
  )
4005
 
559 chandransh 4006
  def __init__(self, jsessionId=None,):
4007
    self.jsessionId = jsessionId
94 ashish 4008
 
4009
  def read(self, iprot):
4010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4012
      return
4013
    iprot.readStructBegin()
4014
    while True:
4015
      (fname, ftype, fid) = iprot.readFieldBegin()
4016
      if ftype == TType.STOP:
4017
        break
4018
      if fid == 1:
559 chandransh 4019
        if ftype == TType.STRING:
4020
          self.jsessionId = iprot.readString();
94 ashish 4021
        else:
4022
          iprot.skip(ftype)
4023
      else:
4024
        iprot.skip(ftype)
4025
      iprot.readFieldEnd()
4026
    iprot.readStructEnd()
4027
 
4028
  def write(self, oprot):
4029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4031
      return
559 chandransh 4032
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 4033
    if self.jsessionId is not None:
559 chandransh 4034
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
4035
      oprot.writeString(self.jsessionId)
94 ashish 4036
      oprot.writeFieldEnd()
4037
    oprot.writeFieldStop()
4038
    oprot.writeStructEnd()
4039
 
3431 rajveer 4040
  def validate(self):
4041
    return
4042
 
4043
 
94 ashish 4044
  def __repr__(self):
4045
    L = ['%s=%r' % (key, value)
4046
      for key, value in self.__dict__.iteritems()]
4047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4048
 
4049
  def __eq__(self, other):
4050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4051
 
4052
  def __ne__(self, other):
4053
    return not (self == other)
4054
 
559 chandransh 4055
class createAnonymousUser_result:
94 ashish 4056
  """
4057
  Attributes:
4058
   - success
559 chandransh 4059
   - ucex
94 ashish 4060
  """
4061
 
4062
  thrift_spec = (
559 chandransh 4063
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4064
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4065
  )
4066
 
559 chandransh 4067
  def __init__(self, success=None, ucex=None,):
94 ashish 4068
    self.success = success
559 chandransh 4069
    self.ucex = ucex
94 ashish 4070
 
4071
  def read(self, iprot):
4072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4074
      return
4075
    iprot.readStructBegin()
4076
    while True:
4077
      (fname, ftype, fid) = iprot.readFieldBegin()
4078
      if ftype == TType.STOP:
4079
        break
4080
      if fid == 0:
4081
        if ftype == TType.STRUCT:
559 chandransh 4082
          self.success = User()
94 ashish 4083
          self.success.read(iprot)
4084
        else:
4085
          iprot.skip(ftype)
4086
      elif fid == 1:
4087
        if ftype == TType.STRUCT:
559 chandransh 4088
          self.ucex = UserContextException()
4089
          self.ucex.read(iprot)
94 ashish 4090
        else:
4091
          iprot.skip(ftype)
4092
      else:
4093
        iprot.skip(ftype)
4094
      iprot.readFieldEnd()
4095
    iprot.readStructEnd()
4096
 
4097
  def write(self, oprot):
4098
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4099
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4100
      return
559 chandransh 4101
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 4102
    if self.success is not None:
94 ashish 4103
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4104
      self.success.write(oprot)
4105
      oprot.writeFieldEnd()
3431 rajveer 4106
    if self.ucex is not None:
559 chandransh 4107
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4108
      self.ucex.write(oprot)
94 ashish 4109
      oprot.writeFieldEnd()
4110
    oprot.writeFieldStop()
4111
    oprot.writeStructEnd()
4112
 
3431 rajveer 4113
  def validate(self):
4114
    return
4115
 
4116
 
94 ashish 4117
  def __repr__(self):
4118
    L = ['%s=%r' % (key, value)
4119
      for key, value in self.__dict__.iteritems()]
4120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4121
 
4122
  def __eq__(self, other):
4123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4124
 
4125
  def __ne__(self, other):
4126
    return not (self == other)
4127
 
559 chandransh 4128
class getUserById_args:
94 ashish 4129
  """
4130
  Attributes:
4131
   - userId
4132
  """
4133
 
4134
  thrift_spec = (
4135
    None, # 0
4136
    (1, TType.I64, 'userId', None, None, ), # 1
4137
  )
4138
 
559 chandransh 4139
  def __init__(self, userId=None,):
94 ashish 4140
    self.userId = userId
4141
 
4142
  def read(self, iprot):
4143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4145
      return
4146
    iprot.readStructBegin()
4147
    while True:
4148
      (fname, ftype, fid) = iprot.readFieldBegin()
4149
      if ftype == TType.STOP:
4150
        break
4151
      if fid == 1:
4152
        if ftype == TType.I64:
4153
          self.userId = iprot.readI64();
4154
        else:
4155
          iprot.skip(ftype)
4156
      else:
4157
        iprot.skip(ftype)
4158
      iprot.readFieldEnd()
4159
    iprot.readStructEnd()
4160
 
4161
  def write(self, oprot):
4162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4164
      return
559 chandransh 4165
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 4166
    if self.userId is not None:
94 ashish 4167
      oprot.writeFieldBegin('userId', TType.I64, 1)
4168
      oprot.writeI64(self.userId)
4169
      oprot.writeFieldEnd()
4170
    oprot.writeFieldStop()
4171
    oprot.writeStructEnd()
4172
 
3431 rajveer 4173
  def validate(self):
4174
    return
4175
 
4176
 
94 ashish 4177
  def __repr__(self):
4178
    L = ['%s=%r' % (key, value)
4179
      for key, value in self.__dict__.iteritems()]
4180
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4181
 
4182
  def __eq__(self, other):
4183
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4184
 
4185
  def __ne__(self, other):
4186
    return not (self == other)
4187
 
559 chandransh 4188
class getUserById_result:
94 ashish 4189
  """
4190
  Attributes:
4191
   - success
559 chandransh 4192
   - ucex
94 ashish 4193
  """
4194
 
4195
  thrift_spec = (
559 chandransh 4196
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4197
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4198
  )
4199
 
559 chandransh 4200
  def __init__(self, success=None, ucex=None,):
94 ashish 4201
    self.success = success
559 chandransh 4202
    self.ucex = ucex
94 ashish 4203
 
4204
  def read(self, iprot):
4205
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4206
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4207
      return
4208
    iprot.readStructBegin()
4209
    while True:
4210
      (fname, ftype, fid) = iprot.readFieldBegin()
4211
      if ftype == TType.STOP:
4212
        break
4213
      if fid == 0:
4214
        if ftype == TType.STRUCT:
559 chandransh 4215
          self.success = User()
94 ashish 4216
          self.success.read(iprot)
4217
        else:
4218
          iprot.skip(ftype)
4219
      elif fid == 1:
4220
        if ftype == TType.STRUCT:
559 chandransh 4221
          self.ucex = UserContextException()
4222
          self.ucex.read(iprot)
94 ashish 4223
        else:
4224
          iprot.skip(ftype)
4225
      else:
4226
        iprot.skip(ftype)
4227
      iprot.readFieldEnd()
4228
    iprot.readStructEnd()
4229
 
4230
  def write(self, oprot):
4231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4233
      return
559 chandransh 4234
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4235
    if self.success is not None:
94 ashish 4236
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4237
      self.success.write(oprot)
4238
      oprot.writeFieldEnd()
3431 rajveer 4239
    if self.ucex is not None:
559 chandransh 4240
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4241
      self.ucex.write(oprot)
94 ashish 4242
      oprot.writeFieldEnd()
4243
    oprot.writeFieldStop()
4244
    oprot.writeStructEnd()
4245
 
3431 rajveer 4246
  def validate(self):
4247
    return
4248
 
4249
 
94 ashish 4250
  def __repr__(self):
4251
    L = ['%s=%r' % (key, value)
4252
      for key, value in self.__dict__.iteritems()]
4253
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4254
 
4255
  def __eq__(self, other):
4256
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4257
 
4258
  def __ne__(self, other):
4259
    return not (self == other)
4260
 
1491 vikas 4261
class getUserByEmail_args:
4262
  """
4263
  Attributes:
4264
   - email
4265
  """
4266
 
4267
  thrift_spec = (
4268
    None, # 0
4269
    (1, TType.STRING, 'email', None, None, ), # 1
4270
  )
4271
 
4272
  def __init__(self, email=None,):
4273
    self.email = email
4274
 
4275
  def read(self, iprot):
4276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4278
      return
4279
    iprot.readStructBegin()
4280
    while True:
4281
      (fname, ftype, fid) = iprot.readFieldBegin()
4282
      if ftype == TType.STOP:
4283
        break
4284
      if fid == 1:
4285
        if ftype == TType.STRING:
4286
          self.email = iprot.readString();
4287
        else:
4288
          iprot.skip(ftype)
4289
      else:
4290
        iprot.skip(ftype)
4291
      iprot.readFieldEnd()
4292
    iprot.readStructEnd()
4293
 
4294
  def write(self, oprot):
4295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4297
      return
4298
    oprot.writeStructBegin('getUserByEmail_args')
3431 rajveer 4299
    if self.email is not None:
1491 vikas 4300
      oprot.writeFieldBegin('email', TType.STRING, 1)
4301
      oprot.writeString(self.email)
4302
      oprot.writeFieldEnd()
4303
    oprot.writeFieldStop()
4304
    oprot.writeStructEnd()
4305
 
3431 rajveer 4306
  def validate(self):
4307
    return
4308
 
4309
 
1491 vikas 4310
  def __repr__(self):
4311
    L = ['%s=%r' % (key, value)
4312
      for key, value in self.__dict__.iteritems()]
4313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4314
 
4315
  def __eq__(self, other):
4316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4317
 
4318
  def __ne__(self, other):
4319
    return not (self == other)
4320
 
4321
class getUserByEmail_result:
4322
  """
4323
  Attributes:
4324
   - success
4325
   - ucex
4326
  """
4327
 
4328
  thrift_spec = (
4329
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4330
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4331
  )
4332
 
4333
  def __init__(self, success=None, ucex=None,):
4334
    self.success = success
4335
    self.ucex = ucex
4336
 
4337
  def read(self, iprot):
4338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4340
      return
4341
    iprot.readStructBegin()
4342
    while True:
4343
      (fname, ftype, fid) = iprot.readFieldBegin()
4344
      if ftype == TType.STOP:
4345
        break
4346
      if fid == 0:
4347
        if ftype == TType.STRUCT:
4348
          self.success = User()
4349
          self.success.read(iprot)
4350
        else:
4351
          iprot.skip(ftype)
4352
      elif fid == 1:
4353
        if ftype == TType.STRUCT:
4354
          self.ucex = UserContextException()
4355
          self.ucex.read(iprot)
4356
        else:
4357
          iprot.skip(ftype)
4358
      else:
4359
        iprot.skip(ftype)
4360
      iprot.readFieldEnd()
4361
    iprot.readStructEnd()
4362
 
4363
  def write(self, oprot):
4364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4366
      return
4367
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4368
    if self.success is not None:
1491 vikas 4369
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4370
      self.success.write(oprot)
4371
      oprot.writeFieldEnd()
3431 rajveer 4372
    if self.ucex is not None:
1491 vikas 4373
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4374
      self.ucex.write(oprot)
4375
      oprot.writeFieldEnd()
4376
    oprot.writeFieldStop()
4377
    oprot.writeStructEnd()
4378
 
3431 rajveer 4379
  def validate(self):
4380
    return
4381
 
4382
 
1491 vikas 4383
  def __repr__(self):
4384
    L = ['%s=%r' % (key, value)
4385
      for key, value in self.__dict__.iteritems()]
4386
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4387
 
4388
  def __eq__(self, other):
4389
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4390
 
4391
  def __ne__(self, other):
4392
    return not (self == other)
4393
 
3032 mandeep.dh 4394
class getUserByMobileNumber_args:
4395
  """
4396
  Attributes:
4397
   - mobileNumber
4398
  """
4399
 
4400
  thrift_spec = (
4401
    None, # 0
4402
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
4403
  )
4404
 
4405
  def __init__(self, mobileNumber=None,):
4406
    self.mobileNumber = mobileNumber
4407
 
4408
  def read(self, iprot):
4409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4411
      return
4412
    iprot.readStructBegin()
4413
    while True:
4414
      (fname, ftype, fid) = iprot.readFieldBegin()
4415
      if ftype == TType.STOP:
4416
        break
4417
      if fid == 1:
4418
        if ftype == TType.I64:
4419
          self.mobileNumber = iprot.readI64();
4420
        else:
4421
          iprot.skip(ftype)
4422
      else:
4423
        iprot.skip(ftype)
4424
      iprot.readFieldEnd()
4425
    iprot.readStructEnd()
4426
 
4427
  def write(self, oprot):
4428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4430
      return
4431
    oprot.writeStructBegin('getUserByMobileNumber_args')
3431 rajveer 4432
    if self.mobileNumber is not None:
3032 mandeep.dh 4433
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4434
      oprot.writeI64(self.mobileNumber)
4435
      oprot.writeFieldEnd()
4436
    oprot.writeFieldStop()
4437
    oprot.writeStructEnd()
4438
 
3431 rajveer 4439
  def validate(self):
4440
    return
4441
 
4442
 
3032 mandeep.dh 4443
  def __repr__(self):
4444
    L = ['%s=%r' % (key, value)
4445
      for key, value in self.__dict__.iteritems()]
4446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4447
 
4448
  def __eq__(self, other):
4449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4450
 
4451
  def __ne__(self, other):
4452
    return not (self == other)
4453
 
4454
class getUserByMobileNumber_result:
4455
  """
4456
  Attributes:
4457
   - success
4458
   - ucex
4459
  """
4460
 
4461
  thrift_spec = (
4462
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4463
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4464
  )
4465
 
4466
  def __init__(self, success=None, ucex=None,):
4467
    self.success = success
4468
    self.ucex = ucex
4469
 
4470
  def read(self, iprot):
4471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4473
      return
4474
    iprot.readStructBegin()
4475
    while True:
4476
      (fname, ftype, fid) = iprot.readFieldBegin()
4477
      if ftype == TType.STOP:
4478
        break
4479
      if fid == 0:
4480
        if ftype == TType.STRUCT:
4481
          self.success = User()
4482
          self.success.read(iprot)
4483
        else:
4484
          iprot.skip(ftype)
4485
      elif fid == 1:
4486
        if ftype == TType.STRUCT:
4487
          self.ucex = UserContextException()
4488
          self.ucex.read(iprot)
4489
        else:
4490
          iprot.skip(ftype)
4491
      else:
4492
        iprot.skip(ftype)
4493
      iprot.readFieldEnd()
4494
    iprot.readStructEnd()
4495
 
4496
  def write(self, oprot):
4497
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4498
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4499
      return
4500
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4501
    if self.success is not None:
3032 mandeep.dh 4502
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4503
      self.success.write(oprot)
4504
      oprot.writeFieldEnd()
3431 rajveer 4505
    if self.ucex is not None:
3032 mandeep.dh 4506
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4507
      self.ucex.write(oprot)
4508
      oprot.writeFieldEnd()
4509
    oprot.writeFieldStop()
4510
    oprot.writeStructEnd()
4511
 
3431 rajveer 4512
  def validate(self):
4513
    return
4514
 
4515
 
3032 mandeep.dh 4516
  def __repr__(self):
4517
    L = ['%s=%r' % (key, value)
4518
      for key, value in self.__dict__.iteritems()]
4519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4520
 
4521
  def __eq__(self, other):
4522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4523
 
4524
  def __ne__(self, other):
4525
    return not (self == other)
4526
 
559 chandransh 4527
class createUser_args:
94 ashish 4528
  """
4529
  Attributes:
559 chandransh 4530
   - user
94 ashish 4531
  """
4532
 
4533
  thrift_spec = (
4534
    None, # 0
559 chandransh 4535
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4536
  )
4537
 
559 chandransh 4538
  def __init__(self, user=None,):
4539
    self.user = user
94 ashish 4540
 
4541
  def read(self, iprot):
4542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4544
      return
4545
    iprot.readStructBegin()
4546
    while True:
4547
      (fname, ftype, fid) = iprot.readFieldBegin()
4548
      if ftype == TType.STOP:
4549
        break
4550
      if fid == 1:
559 chandransh 4551
        if ftype == TType.STRUCT:
4552
          self.user = User()
4553
          self.user.read(iprot)
94 ashish 4554
        else:
4555
          iprot.skip(ftype)
4556
      else:
4557
        iprot.skip(ftype)
4558
      iprot.readFieldEnd()
4559
    iprot.readStructEnd()
4560
 
4561
  def write(self, oprot):
4562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4564
      return
559 chandransh 4565
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4566
    if self.user is not None:
559 chandransh 4567
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4568
      self.user.write(oprot)
94 ashish 4569
      oprot.writeFieldEnd()
4570
    oprot.writeFieldStop()
4571
    oprot.writeStructEnd()
4572
 
3431 rajveer 4573
  def validate(self):
4574
    return
4575
 
4576
 
94 ashish 4577
  def __repr__(self):
4578
    L = ['%s=%r' % (key, value)
4579
      for key, value in self.__dict__.iteritems()]
4580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4581
 
4582
  def __eq__(self, other):
4583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4584
 
4585
  def __ne__(self, other):
4586
    return not (self == other)
4587
 
559 chandransh 4588
class createUser_result:
94 ashish 4589
  """
4590
  Attributes:
4591
   - success
559 chandransh 4592
   - ucex
94 ashish 4593
  """
4594
 
4595
  thrift_spec = (
559 chandransh 4596
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4597
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4598
  )
4599
 
559 chandransh 4600
  def __init__(self, success=None, ucex=None,):
94 ashish 4601
    self.success = success
559 chandransh 4602
    self.ucex = ucex
94 ashish 4603
 
4604
  def read(self, iprot):
4605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4607
      return
4608
    iprot.readStructBegin()
4609
    while True:
4610
      (fname, ftype, fid) = iprot.readFieldBegin()
4611
      if ftype == TType.STOP:
4612
        break
4613
      if fid == 0:
4614
        if ftype == TType.STRUCT:
559 chandransh 4615
          self.success = User()
94 ashish 4616
          self.success.read(iprot)
4617
        else:
4618
          iprot.skip(ftype)
4619
      elif fid == 1:
4620
        if ftype == TType.STRUCT:
559 chandransh 4621
          self.ucex = UserContextException()
4622
          self.ucex.read(iprot)
94 ashish 4623
        else:
4624
          iprot.skip(ftype)
4625
      else:
4626
        iprot.skip(ftype)
4627
      iprot.readFieldEnd()
4628
    iprot.readStructEnd()
4629
 
4630
  def write(self, oprot):
4631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4633
      return
559 chandransh 4634
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4635
    if self.success is not None:
94 ashish 4636
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4637
      self.success.write(oprot)
4638
      oprot.writeFieldEnd()
3431 rajveer 4639
    if self.ucex is not None:
559 chandransh 4640
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4641
      self.ucex.write(oprot)
94 ashish 4642
      oprot.writeFieldEnd()
4643
    oprot.writeFieldStop()
4644
    oprot.writeStructEnd()
4645
 
3431 rajveer 4646
  def validate(self):
4647
    return
4648
 
4649
 
94 ashish 4650
  def __repr__(self):
4651
    L = ['%s=%r' % (key, value)
4652
      for key, value in self.__dict__.iteritems()]
4653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4654
 
4655
  def __eq__(self, other):
4656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4657
 
4658
  def __ne__(self, other):
4659
    return not (self == other)
4660
 
559 chandransh 4661
class updateUser_args:
94 ashish 4662
  """
4663
  Attributes:
559 chandransh 4664
   - user
94 ashish 4665
  """
4666
 
4667
  thrift_spec = (
4668
    None, # 0
559 chandransh 4669
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4670
  )
4671
 
559 chandransh 4672
  def __init__(self, user=None,):
4673
    self.user = user
94 ashish 4674
 
4675
  def read(self, iprot):
4676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4678
      return
4679
    iprot.readStructBegin()
4680
    while True:
4681
      (fname, ftype, fid) = iprot.readFieldBegin()
4682
      if ftype == TType.STOP:
4683
        break
4684
      if fid == 1:
559 chandransh 4685
        if ftype == TType.STRUCT:
4686
          self.user = User()
4687
          self.user.read(iprot)
94 ashish 4688
        else:
4689
          iprot.skip(ftype)
4690
      else:
4691
        iprot.skip(ftype)
4692
      iprot.readFieldEnd()
4693
    iprot.readStructEnd()
4694
 
4695
  def write(self, oprot):
4696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4698
      return
559 chandransh 4699
    oprot.writeStructBegin('updateUser_args')
3431 rajveer 4700
    if self.user is not None:
559 chandransh 4701
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4702
      self.user.write(oprot)
94 ashish 4703
      oprot.writeFieldEnd()
4704
    oprot.writeFieldStop()
4705
    oprot.writeStructEnd()
4706
 
3431 rajveer 4707
  def validate(self):
4708
    return
4709
 
4710
 
94 ashish 4711
  def __repr__(self):
4712
    L = ['%s=%r' % (key, value)
4713
      for key, value in self.__dict__.iteritems()]
4714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4715
 
4716
  def __eq__(self, other):
4717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4718
 
4719
  def __ne__(self, other):
4720
    return not (self == other)
4721
 
559 chandransh 4722
class updateUser_result:
94 ashish 4723
  """
4724
  Attributes:
4725
   - success
559 chandransh 4726
   - ucex
94 ashish 4727
  """
4728
 
4729
  thrift_spec = (
559 chandransh 4730
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4731
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4732
  )
4733
 
559 chandransh 4734
  def __init__(self, success=None, ucex=None,):
94 ashish 4735
    self.success = success
559 chandransh 4736
    self.ucex = ucex
94 ashish 4737
 
4738
  def read(self, iprot):
4739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4741
      return
4742
    iprot.readStructBegin()
4743
    while True:
4744
      (fname, ftype, fid) = iprot.readFieldBegin()
4745
      if ftype == TType.STOP:
4746
        break
4747
      if fid == 0:
4748
        if ftype == TType.STRUCT:
559 chandransh 4749
          self.success = User()
94 ashish 4750
          self.success.read(iprot)
4751
        else:
4752
          iprot.skip(ftype)
4753
      elif fid == 1:
4754
        if ftype == TType.STRUCT:
559 chandransh 4755
          self.ucex = UserContextException()
4756
          self.ucex.read(iprot)
94 ashish 4757
        else:
4758
          iprot.skip(ftype)
4759
      else:
4760
        iprot.skip(ftype)
4761
      iprot.readFieldEnd()
4762
    iprot.readStructEnd()
4763
 
4764
  def write(self, oprot):
4765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4767
      return
559 chandransh 4768
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4769
    if self.success is not None:
94 ashish 4770
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4771
      self.success.write(oprot)
4772
      oprot.writeFieldEnd()
3431 rajveer 4773
    if self.ucex is not None:
559 chandransh 4774
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4775
      self.ucex.write(oprot)
94 ashish 4776
      oprot.writeFieldEnd()
4777
    oprot.writeFieldStop()
4778
    oprot.writeStructEnd()
4779
 
3431 rajveer 4780
  def validate(self):
4781
    return
4782
 
4783
 
94 ashish 4784
  def __repr__(self):
4785
    L = ['%s=%r' % (key, value)
4786
      for key, value in self.__dict__.iteritems()]
4787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4788
 
4789
  def __eq__(self, other):
4790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4791
 
4792
  def __ne__(self, other):
4793
    return not (self == other)
4794
 
559 chandransh 4795
class deleteUser_args:
94 ashish 4796
  """
4797
  Attributes:
4798
   - userId
4799
  """
4800
 
4801
  thrift_spec = (
4802
    None, # 0
4803
    (1, TType.I64, 'userId', None, None, ), # 1
4804
  )
4805
 
559 chandransh 4806
  def __init__(self, userId=None,):
94 ashish 4807
    self.userId = userId
4808
 
4809
  def read(self, iprot):
4810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4812
      return
4813
    iprot.readStructBegin()
4814
    while True:
4815
      (fname, ftype, fid) = iprot.readFieldBegin()
4816
      if ftype == TType.STOP:
4817
        break
4818
      if fid == 1:
4819
        if ftype == TType.I64:
4820
          self.userId = iprot.readI64();
4821
        else:
4822
          iprot.skip(ftype)
4823
      else:
4824
        iprot.skip(ftype)
4825
      iprot.readFieldEnd()
4826
    iprot.readStructEnd()
4827
 
4828
  def write(self, oprot):
4829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4831
      return
559 chandransh 4832
    oprot.writeStructBegin('deleteUser_args')
3431 rajveer 4833
    if self.userId is not None:
94 ashish 4834
      oprot.writeFieldBegin('userId', TType.I64, 1)
4835
      oprot.writeI64(self.userId)
4836
      oprot.writeFieldEnd()
4837
    oprot.writeFieldStop()
4838
    oprot.writeStructEnd()
4839
 
3431 rajveer 4840
  def validate(self):
4841
    return
4842
 
4843
 
94 ashish 4844
  def __repr__(self):
4845
    L = ['%s=%r' % (key, value)
4846
      for key, value in self.__dict__.iteritems()]
4847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4848
 
4849
  def __eq__(self, other):
4850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4851
 
4852
  def __ne__(self, other):
4853
    return not (self == other)
4854
 
559 chandransh 4855
class deleteUser_result:
94 ashish 4856
  """
4857
  Attributes:
4858
   - success
559 chandransh 4859
   - ucex
94 ashish 4860
  """
4861
 
4862
  thrift_spec = (
559 chandransh 4863
    (0, TType.BOOL, 'success', None, None, ), # 0
4864
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4865
  )
4866
 
559 chandransh 4867
  def __init__(self, success=None, ucex=None,):
94 ashish 4868
    self.success = success
559 chandransh 4869
    self.ucex = ucex
94 ashish 4870
 
4871
  def read(self, iprot):
4872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4874
      return
4875
    iprot.readStructBegin()
4876
    while True:
4877
      (fname, ftype, fid) = iprot.readFieldBegin()
4878
      if ftype == TType.STOP:
4879
        break
4880
      if fid == 0:
559 chandransh 4881
        if ftype == TType.BOOL:
4882
          self.success = iprot.readBool();
94 ashish 4883
        else:
4884
          iprot.skip(ftype)
4885
      elif fid == 1:
4886
        if ftype == TType.STRUCT:
559 chandransh 4887
          self.ucex = UserContextException()
4888
          self.ucex.read(iprot)
94 ashish 4889
        else:
4890
          iprot.skip(ftype)
4891
      else:
4892
        iprot.skip(ftype)
4893
      iprot.readFieldEnd()
4894
    iprot.readStructEnd()
4895
 
4896
  def write(self, oprot):
4897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4899
      return
559 chandransh 4900
    oprot.writeStructBegin('deleteUser_result')
3431 rajveer 4901
    if self.success is not None:
559 chandransh 4902
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4903
      oprot.writeBool(self.success)
94 ashish 4904
      oprot.writeFieldEnd()
3431 rajveer 4905
    if self.ucex is not None:
559 chandransh 4906
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4907
      self.ucex.write(oprot)
94 ashish 4908
      oprot.writeFieldEnd()
4909
    oprot.writeFieldStop()
4910
    oprot.writeStructEnd()
4911
 
3431 rajveer 4912
  def validate(self):
4913
    return
4914
 
4915
 
94 ashish 4916
  def __repr__(self):
4917
    L = ['%s=%r' % (key, value)
4918
      for key, value in self.__dict__.iteritems()]
4919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4920
 
4921
  def __eq__(self, other):
4922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4923
 
4924
  def __ne__(self, other):
4925
    return not (self == other)
4926
 
559 chandransh 4927
class getUserState_args:
94 ashish 4928
  """
4929
  Attributes:
4930
   - userId
4931
  """
4932
 
4933
  thrift_spec = (
4934
    None, # 0
4935
    (1, TType.I64, 'userId', None, None, ), # 1
4936
  )
4937
 
559 chandransh 4938
  def __init__(self, userId=None,):
94 ashish 4939
    self.userId = userId
4940
 
4941
  def read(self, iprot):
4942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4944
      return
4945
    iprot.readStructBegin()
4946
    while True:
4947
      (fname, ftype, fid) = iprot.readFieldBegin()
4948
      if ftype == TType.STOP:
4949
        break
4950
      if fid == 1:
4951
        if ftype == TType.I64:
4952
          self.userId = iprot.readI64();
4953
        else:
4954
          iprot.skip(ftype)
4955
      else:
4956
        iprot.skip(ftype)
4957
      iprot.readFieldEnd()
4958
    iprot.readStructEnd()
4959
 
4960
  def write(self, oprot):
4961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4963
      return
559 chandransh 4964
    oprot.writeStructBegin('getUserState_args')
3431 rajveer 4965
    if self.userId is not None:
94 ashish 4966
      oprot.writeFieldBegin('userId', TType.I64, 1)
4967
      oprot.writeI64(self.userId)
4968
      oprot.writeFieldEnd()
4969
    oprot.writeFieldStop()
4970
    oprot.writeStructEnd()
4971
 
3431 rajveer 4972
  def validate(self):
4973
    return
4974
 
4975
 
94 ashish 4976
  def __repr__(self):
4977
    L = ['%s=%r' % (key, value)
4978
      for key, value in self.__dict__.iteritems()]
4979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4980
 
4981
  def __eq__(self, other):
4982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4983
 
4984
  def __ne__(self, other):
4985
    return not (self == other)
4986
 
559 chandransh 4987
class getUserState_result:
94 ashish 4988
  """
4989
  Attributes:
4990
   - success
559 chandransh 4991
   - ucex
94 ashish 4992
  """
4993
 
4994
  thrift_spec = (
559 chandransh 4995
    (0, TType.STRUCT, 'success', (UserState, UserState.thrift_spec), None, ), # 0
4996
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4997
  )
4998
 
559 chandransh 4999
  def __init__(self, success=None, ucex=None,):
94 ashish 5000
    self.success = success
559 chandransh 5001
    self.ucex = ucex
94 ashish 5002
 
5003
  def read(self, iprot):
5004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5006
      return
5007
    iprot.readStructBegin()
5008
    while True:
5009
      (fname, ftype, fid) = iprot.readFieldBegin()
5010
      if ftype == TType.STOP:
5011
        break
5012
      if fid == 0:
5013
        if ftype == TType.STRUCT:
559 chandransh 5014
          self.success = UserState()
94 ashish 5015
          self.success.read(iprot)
5016
        else:
5017
          iprot.skip(ftype)
5018
      elif fid == 1:
5019
        if ftype == TType.STRUCT:
559 chandransh 5020
          self.ucex = UserContextException()
5021
          self.ucex.read(iprot)
94 ashish 5022
        else:
5023
          iprot.skip(ftype)
5024
      else:
5025
        iprot.skip(ftype)
5026
      iprot.readFieldEnd()
5027
    iprot.readStructEnd()
5028
 
5029
  def write(self, oprot):
5030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5032
      return
559 chandransh 5033
    oprot.writeStructBegin('getUserState_result')
3431 rajveer 5034
    if self.success is not None:
94 ashish 5035
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5036
      self.success.write(oprot)
5037
      oprot.writeFieldEnd()
3431 rajveer 5038
    if self.ucex is not None:
559 chandransh 5039
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
5040
      self.ucex.write(oprot)
94 ashish 5041
      oprot.writeFieldEnd()
5042
    oprot.writeFieldStop()
5043
    oprot.writeStructEnd()
5044
 
3431 rajveer 5045
  def validate(self):
5046
    return
5047
 
5048
 
94 ashish 5049
  def __repr__(self):
5050
    L = ['%s=%r' % (key, value)
5051
      for key, value in self.__dict__.iteritems()]
5052
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5053
 
5054
  def __eq__(self, other):
5055
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5056
 
5057
  def __ne__(self, other):
5058
    return not (self == other)
5059
 
559 chandransh 5060
class authenticateUser_args:
94 ashish 5061
  """
5062
  Attributes:
5063
   - email
5064
   - password
5065
  """
5066
 
5067
  thrift_spec = (
5068
    None, # 0
5069
    (1, TType.STRING, 'email', None, None, ), # 1
5070
    (2, TType.STRING, 'password', None, None, ), # 2
5071
  )
5072
 
5073
  def __init__(self, email=None, password=None,):
5074
    self.email = email
5075
    self.password = password
5076
 
5077
  def read(self, iprot):
5078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5080
      return
5081
    iprot.readStructBegin()
5082
    while True:
5083
      (fname, ftype, fid) = iprot.readFieldBegin()
5084
      if ftype == TType.STOP:
5085
        break
5086
      if fid == 1:
5087
        if ftype == TType.STRING:
5088
          self.email = iprot.readString();
5089
        else:
5090
          iprot.skip(ftype)
5091
      elif fid == 2:
5092
        if ftype == TType.STRING:
5093
          self.password = iprot.readString();
5094
        else:
5095
          iprot.skip(ftype)
5096
      else:
5097
        iprot.skip(ftype)
5098
      iprot.readFieldEnd()
5099
    iprot.readStructEnd()
5100
 
5101
  def write(self, oprot):
5102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5104
      return
559 chandransh 5105
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 5106
    if self.email is not None:
94 ashish 5107
      oprot.writeFieldBegin('email', TType.STRING, 1)
5108
      oprot.writeString(self.email)
5109
      oprot.writeFieldEnd()
3431 rajveer 5110
    if self.password is not None:
94 ashish 5111
      oprot.writeFieldBegin('password', TType.STRING, 2)
5112
      oprot.writeString(self.password)
5113
      oprot.writeFieldEnd()
5114
    oprot.writeFieldStop()
5115
    oprot.writeStructEnd()
5116
 
3431 rajveer 5117
  def validate(self):
5118
    return
5119
 
5120
 
94 ashish 5121
  def __repr__(self):
5122
    L = ['%s=%r' % (key, value)
5123
      for key, value in self.__dict__.iteritems()]
5124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5125
 
5126
  def __eq__(self, other):
5127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5128
 
5129
  def __ne__(self, other):
5130
    return not (self == other)
5131
 
559 chandransh 5132
class authenticateUser_result:
94 ashish 5133
  """
5134
  Attributes:
5135
   - success
559 chandransh 5136
   - auex
94 ashish 5137
  """
5138
 
5139
  thrift_spec = (
559 chandransh 5140
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
5141
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 5142
  )
5143
 
559 chandransh 5144
  def __init__(self, success=None, auex=None,):
94 ashish 5145
    self.success = success
559 chandransh 5146
    self.auex = auex
94 ashish 5147
 
5148
  def read(self, iprot):
5149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5151
      return
5152
    iprot.readStructBegin()
5153
    while True:
5154
      (fname, ftype, fid) = iprot.readFieldBegin()
5155
      if ftype == TType.STOP:
5156
        break
5157
      if fid == 0:
5158
        if ftype == TType.STRUCT:
559 chandransh 5159
          self.success = User()
94 ashish 5160
          self.success.read(iprot)
5161
        else:
5162
          iprot.skip(ftype)
5163
      elif fid == 1:
5164
        if ftype == TType.STRUCT:
559 chandransh 5165
          self.auex = AuthenticationException()
5166
          self.auex.read(iprot)
94 ashish 5167
        else:
5168
          iprot.skip(ftype)
5169
      else:
5170
        iprot.skip(ftype)
5171
      iprot.readFieldEnd()
5172
    iprot.readStructEnd()
5173
 
5174
  def write(self, oprot):
5175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5177
      return
559 chandransh 5178
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 5179
    if self.success is not None:
94 ashish 5180
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5181
      self.success.write(oprot)
5182
      oprot.writeFieldEnd()
3431 rajveer 5183
    if self.auex is not None:
559 chandransh 5184
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
5185
      self.auex.write(oprot)
94 ashish 5186
      oprot.writeFieldEnd()
5187
    oprot.writeFieldStop()
5188
    oprot.writeStructEnd()
5189
 
3431 rajveer 5190
  def validate(self):
5191
    return
5192
 
5193
 
94 ashish 5194
  def __repr__(self):
5195
    L = ['%s=%r' % (key, value)
5196
      for key, value in self.__dict__.iteritems()]
5197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5198
 
5199
  def __eq__(self, other):
5200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5201
 
5202
  def __ne__(self, other):
5203
    return not (self == other)
5204
 
559 chandransh 5205
class userExists_args:
122 ashish 5206
  """
5207
  Attributes:
559 chandransh 5208
   - email
122 ashish 5209
  """
5210
 
5211
  thrift_spec = (
5212
    None, # 0
559 chandransh 5213
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 5214
  )
5215
 
559 chandransh 5216
  def __init__(self, email=None,):
5217
    self.email = email
122 ashish 5218
 
5219
  def read(self, iprot):
5220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5222
      return
5223
    iprot.readStructBegin()
5224
    while True:
5225
      (fname, ftype, fid) = iprot.readFieldBegin()
5226
      if ftype == TType.STOP:
5227
        break
5228
      if fid == 1:
5229
        if ftype == TType.STRING:
559 chandransh 5230
          self.email = iprot.readString();
122 ashish 5231
        else:
5232
          iprot.skip(ftype)
559 chandransh 5233
      else:
5234
        iprot.skip(ftype)
5235
      iprot.readFieldEnd()
5236
    iprot.readStructEnd()
5237
 
5238
  def write(self, oprot):
5239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5241
      return
5242
    oprot.writeStructBegin('userExists_args')
3431 rajveer 5243
    if self.email is not None:
559 chandransh 5244
      oprot.writeFieldBegin('email', TType.STRING, 1)
5245
      oprot.writeString(self.email)
5246
      oprot.writeFieldEnd()
5247
    oprot.writeFieldStop()
5248
    oprot.writeStructEnd()
5249
 
3431 rajveer 5250
  def validate(self):
5251
    return
5252
 
5253
 
559 chandransh 5254
  def __repr__(self):
5255
    L = ['%s=%r' % (key, value)
5256
      for key, value in self.__dict__.iteritems()]
5257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5258
 
5259
  def __eq__(self, other):
5260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5261
 
5262
  def __ne__(self, other):
5263
    return not (self == other)
5264
 
5265
class userExists_result:
5266
  """
5267
  Attributes:
5268
   - success
5269
   - ucx
5270
  """
5271
 
5272
  thrift_spec = (
5273
    (0, TType.BOOL, 'success', None, None, ), # 0
5274
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5275
  )
5276
 
5277
  def __init__(self, success=None, ucx=None,):
5278
    self.success = success
5279
    self.ucx = ucx
5280
 
5281
  def read(self, iprot):
5282
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5283
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5284
      return
5285
    iprot.readStructBegin()
5286
    while True:
5287
      (fname, ftype, fid) = iprot.readFieldBegin()
5288
      if ftype == TType.STOP:
5289
        break
5290
      if fid == 0:
5291
        if ftype == TType.BOOL:
5292
          self.success = iprot.readBool();
5293
        else:
5294
          iprot.skip(ftype)
5295
      elif fid == 1:
5296
        if ftype == TType.STRUCT:
5297
          self.ucx = UserContextException()
5298
          self.ucx.read(iprot)
5299
        else:
5300
          iprot.skip(ftype)
5301
      else:
5302
        iprot.skip(ftype)
5303
      iprot.readFieldEnd()
5304
    iprot.readStructEnd()
5305
 
5306
  def write(self, oprot):
5307
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5308
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5309
      return
5310
    oprot.writeStructBegin('userExists_result')
3431 rajveer 5311
    if self.success is not None:
559 chandransh 5312
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5313
      oprot.writeBool(self.success)
5314
      oprot.writeFieldEnd()
3431 rajveer 5315
    if self.ucx is not None:
559 chandransh 5316
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5317
      self.ucx.write(oprot)
5318
      oprot.writeFieldEnd()
5319
    oprot.writeFieldStop()
5320
    oprot.writeStructEnd()
5321
 
3431 rajveer 5322
  def validate(self):
5323
    return
5324
 
5325
 
559 chandransh 5326
  def __repr__(self):
5327
    L = ['%s=%r' % (key, value)
5328
      for key, value in self.__dict__.iteritems()]
5329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5330
 
5331
  def __eq__(self, other):
5332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5333
 
5334
  def __ne__(self, other):
5335
    return not (self == other)
5336
 
5337
class addAddressForUser_args:
5338
  """
5339
  Attributes:
5340
   - userId
5341
   - address
5342
   - setDefault
5343
  """
5344
 
5345
  thrift_spec = (
5346
    None, # 0
5347
    (1, TType.I64, 'userId', None, None, ), # 1
5348
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5349
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5350
  )
5351
 
567 rajveer 5352
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5353
    self.userId = userId
5354
    self.address = address
5355
    self.setDefault = setDefault
5356
 
5357
  def read(self, iprot):
5358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5360
      return
5361
    iprot.readStructBegin()
5362
    while True:
5363
      (fname, ftype, fid) = iprot.readFieldBegin()
5364
      if ftype == TType.STOP:
5365
        break
5366
      if fid == 1:
5367
        if ftype == TType.I64:
5368
          self.userId = iprot.readI64();
5369
        else:
5370
          iprot.skip(ftype)
122 ashish 5371
      elif fid == 2:
559 chandransh 5372
        if ftype == TType.STRUCT:
5373
          self.address = Address()
5374
          self.address.read(iprot)
122 ashish 5375
        else:
5376
          iprot.skip(ftype)
5377
      elif fid == 3:
5378
        if ftype == TType.BOOL:
559 chandransh 5379
          self.setDefault = iprot.readBool();
122 ashish 5380
        else:
5381
          iprot.skip(ftype)
5382
      else:
5383
        iprot.skip(ftype)
5384
      iprot.readFieldEnd()
5385
    iprot.readStructEnd()
5386
 
5387
  def write(self, oprot):
5388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5390
      return
559 chandransh 5391
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5392
    if self.userId is not None:
559 chandransh 5393
      oprot.writeFieldBegin('userId', TType.I64, 1)
5394
      oprot.writeI64(self.userId)
122 ashish 5395
      oprot.writeFieldEnd()
3431 rajveer 5396
    if self.address is not None:
559 chandransh 5397
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5398
      self.address.write(oprot)
122 ashish 5399
      oprot.writeFieldEnd()
3431 rajveer 5400
    if self.setDefault is not None:
567 rajveer 5401
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5402
      oprot.writeBool(self.setDefault)
5403
      oprot.writeFieldEnd()
122 ashish 5404
    oprot.writeFieldStop()
5405
    oprot.writeStructEnd()
5406
 
3431 rajveer 5407
  def validate(self):
5408
    return
5409
 
5410
 
122 ashish 5411
  def __repr__(self):
5412
    L = ['%s=%r' % (key, value)
5413
      for key, value in self.__dict__.iteritems()]
5414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5415
 
5416
  def __eq__(self, other):
5417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5418
 
5419
  def __ne__(self, other):
5420
    return not (self == other)
5421
 
559 chandransh 5422
class addAddressForUser_result:
122 ashish 5423
  """
5424
  Attributes:
5425
   - success
559 chandransh 5426
   - ucx
122 ashish 5427
  """
5428
 
5429
  thrift_spec = (
567 rajveer 5430
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5431
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5432
  )
5433
 
559 chandransh 5434
  def __init__(self, success=None, ucx=None,):
122 ashish 5435
    self.success = success
559 chandransh 5436
    self.ucx = ucx
122 ashish 5437
 
5438
  def read(self, iprot):
5439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5441
      return
5442
    iprot.readStructBegin()
5443
    while True:
5444
      (fname, ftype, fid) = iprot.readFieldBegin()
5445
      if ftype == TType.STOP:
5446
        break
5447
      if fid == 0:
567 rajveer 5448
        if ftype == TType.I64:
5449
          self.success = iprot.readI64();
122 ashish 5450
        else:
5451
          iprot.skip(ftype)
5452
      elif fid == 1:
5453
        if ftype == TType.STRUCT:
559 chandransh 5454
          self.ucx = UserContextException()
5455
          self.ucx.read(iprot)
122 ashish 5456
        else:
5457
          iprot.skip(ftype)
5458
      else:
5459
        iprot.skip(ftype)
5460
      iprot.readFieldEnd()
5461
    iprot.readStructEnd()
5462
 
5463
  def write(self, oprot):
5464
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5465
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5466
      return
559 chandransh 5467
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5468
    if self.success is not None:
567 rajveer 5469
      oprot.writeFieldBegin('success', TType.I64, 0)
5470
      oprot.writeI64(self.success)
122 ashish 5471
      oprot.writeFieldEnd()
3431 rajveer 5472
    if self.ucx is not None:
559 chandransh 5473
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5474
      self.ucx.write(oprot)
122 ashish 5475
      oprot.writeFieldEnd()
5476
    oprot.writeFieldStop()
5477
    oprot.writeStructEnd()
5478
 
3431 rajveer 5479
  def validate(self):
5480
    return
5481
 
5482
 
122 ashish 5483
  def __repr__(self):
5484
    L = ['%s=%r' % (key, value)
5485
      for key, value in self.__dict__.iteritems()]
5486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5487
 
5488
  def __eq__(self, other):
5489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5490
 
5491
  def __ne__(self, other):
5492
    return not (self == other)
5493
 
559 chandransh 5494
class removeAddressForUser_args:
94 ashish 5495
  """
5496
  Attributes:
559 chandransh 5497
   - userid
5498
   - addressId
94 ashish 5499
  """
5500
 
5501
  thrift_spec = (
5502
    None, # 0
559 chandransh 5503
    (1, TType.I64, 'userid', None, None, ), # 1
5504
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5505
  )
5506
 
559 chandransh 5507
  def __init__(self, userid=None, addressId=None,):
5508
    self.userid = userid
5509
    self.addressId = addressId
94 ashish 5510
 
5511
  def read(self, iprot):
5512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5514
      return
5515
    iprot.readStructBegin()
5516
    while True:
5517
      (fname, ftype, fid) = iprot.readFieldBegin()
5518
      if ftype == TType.STOP:
5519
        break
5520
      if fid == 1:
559 chandransh 5521
        if ftype == TType.I64:
5522
          self.userid = iprot.readI64();
94 ashish 5523
        else:
5524
          iprot.skip(ftype)
559 chandransh 5525
      elif fid == 2:
5526
        if ftype == TType.I64:
5527
          self.addressId = iprot.readI64();
5528
        else:
5529
          iprot.skip(ftype)
94 ashish 5530
      else:
5531
        iprot.skip(ftype)
5532
      iprot.readFieldEnd()
5533
    iprot.readStructEnd()
5534
 
5535
  def write(self, oprot):
5536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5538
      return
559 chandransh 5539
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5540
    if self.userid is not None:
559 chandransh 5541
      oprot.writeFieldBegin('userid', TType.I64, 1)
5542
      oprot.writeI64(self.userid)
94 ashish 5543
      oprot.writeFieldEnd()
3431 rajveer 5544
    if self.addressId is not None:
559 chandransh 5545
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5546
      oprot.writeI64(self.addressId)
5547
      oprot.writeFieldEnd()
94 ashish 5548
    oprot.writeFieldStop()
5549
    oprot.writeStructEnd()
5550
 
3431 rajveer 5551
  def validate(self):
5552
    return
5553
 
5554
 
94 ashish 5555
  def __repr__(self):
5556
    L = ['%s=%r' % (key, value)
5557
      for key, value in self.__dict__.iteritems()]
5558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5559
 
5560
  def __eq__(self, other):
5561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5562
 
5563
  def __ne__(self, other):
5564
    return not (self == other)
5565
 
559 chandransh 5566
class removeAddressForUser_result:
94 ashish 5567
  """
5568
  Attributes:
5569
   - success
5570
   - ucx
5571
  """
5572
 
5573
  thrift_spec = (
5574
    (0, TType.BOOL, 'success', None, None, ), # 0
5575
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5576
  )
5577
 
5578
  def __init__(self, success=None, ucx=None,):
5579
    self.success = success
5580
    self.ucx = ucx
5581
 
5582
  def read(self, iprot):
5583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5585
      return
5586
    iprot.readStructBegin()
5587
    while True:
5588
      (fname, ftype, fid) = iprot.readFieldBegin()
5589
      if ftype == TType.STOP:
5590
        break
5591
      if fid == 0:
5592
        if ftype == TType.BOOL:
5593
          self.success = iprot.readBool();
5594
        else:
5595
          iprot.skip(ftype)
5596
      elif fid == 1:
5597
        if ftype == TType.STRUCT:
5598
          self.ucx = UserContextException()
5599
          self.ucx.read(iprot)
5600
        else:
5601
          iprot.skip(ftype)
5602
      else:
5603
        iprot.skip(ftype)
5604
      iprot.readFieldEnd()
5605
    iprot.readStructEnd()
5606
 
5607
  def write(self, oprot):
5608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5610
      return
559 chandransh 5611
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5612
    if self.success is not None:
94 ashish 5613
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5614
      oprot.writeBool(self.success)
5615
      oprot.writeFieldEnd()
3431 rajveer 5616
    if self.ucx is not None:
94 ashish 5617
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5618
      self.ucx.write(oprot)
5619
      oprot.writeFieldEnd()
5620
    oprot.writeFieldStop()
5621
    oprot.writeStructEnd()
5622
 
3431 rajveer 5623
  def validate(self):
5624
    return
5625
 
5626
 
94 ashish 5627
  def __repr__(self):
5628
    L = ['%s=%r' % (key, value)
5629
      for key, value in self.__dict__.iteritems()]
5630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5631
 
5632
  def __eq__(self, other):
5633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5634
 
5635
  def __ne__(self, other):
5636
    return not (self == other)
5637
 
559 chandransh 5638
class setUserAsLoggedIn_args:
94 ashish 5639
  """
5640
  Attributes:
559 chandransh 5641
   - userId
94 ashish 5642
   - timestamp
5643
  """
5644
 
5645
  thrift_spec = (
5646
    None, # 0
559 chandransh 5647
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5648
    (2, TType.I64, 'timestamp', None, None, ), # 2
5649
  )
5650
 
559 chandransh 5651
  def __init__(self, userId=None, timestamp=None,):
5652
    self.userId = userId
94 ashish 5653
    self.timestamp = timestamp
5654
 
5655
  def read(self, iprot):
5656
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5657
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5658
      return
5659
    iprot.readStructBegin()
5660
    while True:
5661
      (fname, ftype, fid) = iprot.readFieldBegin()
5662
      if ftype == TType.STOP:
5663
        break
5664
      if fid == 1:
559 chandransh 5665
        if ftype == TType.I64:
5666
          self.userId = iprot.readI64();
94 ashish 5667
        else:
5668
          iprot.skip(ftype)
5669
      elif fid == 2:
5670
        if ftype == TType.I64:
5671
          self.timestamp = iprot.readI64();
5672
        else:
5673
          iprot.skip(ftype)
5674
      else:
5675
        iprot.skip(ftype)
5676
      iprot.readFieldEnd()
5677
    iprot.readStructEnd()
5678
 
5679
  def write(self, oprot):
5680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5682
      return
559 chandransh 5683
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5684
    if self.userId is not None:
559 chandransh 5685
      oprot.writeFieldBegin('userId', TType.I64, 1)
5686
      oprot.writeI64(self.userId)
94 ashish 5687
      oprot.writeFieldEnd()
3431 rajveer 5688
    if self.timestamp is not None:
94 ashish 5689
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5690
      oprot.writeI64(self.timestamp)
5691
      oprot.writeFieldEnd()
5692
    oprot.writeFieldStop()
5693
    oprot.writeStructEnd()
5694
 
3431 rajveer 5695
  def validate(self):
5696
    return
5697
 
5698
 
94 ashish 5699
  def __repr__(self):
5700
    L = ['%s=%r' % (key, value)
5701
      for key, value in self.__dict__.iteritems()]
5702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5703
 
5704
  def __eq__(self, other):
5705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5706
 
5707
  def __ne__(self, other):
5708
    return not (self == other)
5709
 
559 chandransh 5710
class setUserAsLoggedIn_result:
94 ashish 5711
  """
5712
  Attributes:
5713
   - success
5714
   - ucx
5715
  """
5716
 
5717
  thrift_spec = (
5718
    (0, TType.BOOL, 'success', None, None, ), # 0
5719
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5720
  )
5721
 
5722
  def __init__(self, success=None, ucx=None,):
5723
    self.success = success
5724
    self.ucx = ucx
5725
 
5726
  def read(self, iprot):
5727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5729
      return
5730
    iprot.readStructBegin()
5731
    while True:
5732
      (fname, ftype, fid) = iprot.readFieldBegin()
5733
      if ftype == TType.STOP:
5734
        break
5735
      if fid == 0:
5736
        if ftype == TType.BOOL:
5737
          self.success = iprot.readBool();
5738
        else:
5739
          iprot.skip(ftype)
5740
      elif fid == 1:
5741
        if ftype == TType.STRUCT:
5742
          self.ucx = UserContextException()
5743
          self.ucx.read(iprot)
5744
        else:
5745
          iprot.skip(ftype)
5746
      else:
5747
        iprot.skip(ftype)
5748
      iprot.readFieldEnd()
5749
    iprot.readStructEnd()
5750
 
5751
  def write(self, oprot):
5752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5754
      return
559 chandransh 5755
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5756
    if self.success is not None:
94 ashish 5757
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5758
      oprot.writeBool(self.success)
5759
      oprot.writeFieldEnd()
3431 rajveer 5760
    if self.ucx is not None:
94 ashish 5761
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5762
      self.ucx.write(oprot)
5763
      oprot.writeFieldEnd()
5764
    oprot.writeFieldStop()
5765
    oprot.writeStructEnd()
5766
 
3431 rajveer 5767
  def validate(self):
5768
    return
5769
 
5770
 
94 ashish 5771
  def __repr__(self):
5772
    L = ['%s=%r' % (key, value)
5773
      for key, value in self.__dict__.iteritems()]
5774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5775
 
5776
  def __eq__(self, other):
5777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5778
 
5779
  def __ne__(self, other):
5780
    return not (self == other)
5781
 
559 chandransh 5782
class setUserAsLoggedOut_args:
94 ashish 5783
  """
5784
  Attributes:
5785
   - userid
5786
   - timestamp
5787
  """
5788
 
5789
  thrift_spec = (
5790
    None, # 0
559 chandransh 5791
    (1, TType.I64, 'userid', None, None, ), # 1
5792
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5793
  )
5794
 
559 chandransh 5795
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5796
    self.userid = userid
5797
    self.timestamp = timestamp
5798
 
5799
  def read(self, iprot):
5800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5802
      return
5803
    iprot.readStructBegin()
5804
    while True:
5805
      (fname, ftype, fid) = iprot.readFieldBegin()
5806
      if ftype == TType.STOP:
5807
        break
5808
      if fid == 1:
5809
        if ftype == TType.I64:
5810
          self.userid = iprot.readI64();
5811
        else:
5812
          iprot.skip(ftype)
559 chandransh 5813
      elif fid == 2:
94 ashish 5814
        if ftype == TType.I64:
5815
          self.timestamp = iprot.readI64();
5816
        else:
5817
          iprot.skip(ftype)
5818
      else:
5819
        iprot.skip(ftype)
5820
      iprot.readFieldEnd()
5821
    iprot.readStructEnd()
5822
 
5823
  def write(self, oprot):
5824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5826
      return
559 chandransh 5827
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5828
    if self.userid is not None:
559 chandransh 5829
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5830
      oprot.writeI64(self.userid)
5831
      oprot.writeFieldEnd()
3431 rajveer 5832
    if self.timestamp is not None:
559 chandransh 5833
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5834
      oprot.writeI64(self.timestamp)
5835
      oprot.writeFieldEnd()
5836
    oprot.writeFieldStop()
5837
    oprot.writeStructEnd()
5838
 
3431 rajveer 5839
  def validate(self):
5840
    return
5841
 
5842
 
94 ashish 5843
  def __repr__(self):
5844
    L = ['%s=%r' % (key, value)
5845
      for key, value in self.__dict__.iteritems()]
5846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5847
 
5848
  def __eq__(self, other):
5849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5850
 
5851
  def __ne__(self, other):
5852
    return not (self == other)
5853
 
559 chandransh 5854
class setUserAsLoggedOut_result:
94 ashish 5855
  """
5856
  Attributes:
5857
   - success
5858
   - ucx
5859
  """
5860
 
5861
  thrift_spec = (
5862
    (0, TType.BOOL, 'success', None, None, ), # 0
5863
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5864
  )
5865
 
5866
  def __init__(self, success=None, ucx=None,):
5867
    self.success = success
5868
    self.ucx = ucx
5869
 
5870
  def read(self, iprot):
5871
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5872
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5873
      return
5874
    iprot.readStructBegin()
5875
    while True:
5876
      (fname, ftype, fid) = iprot.readFieldBegin()
5877
      if ftype == TType.STOP:
5878
        break
5879
      if fid == 0:
5880
        if ftype == TType.BOOL:
5881
          self.success = iprot.readBool();
5882
        else:
5883
          iprot.skip(ftype)
5884
      elif fid == 1:
5885
        if ftype == TType.STRUCT:
5886
          self.ucx = UserContextException()
5887
          self.ucx.read(iprot)
5888
        else:
5889
          iprot.skip(ftype)
5890
      else:
5891
        iprot.skip(ftype)
5892
      iprot.readFieldEnd()
5893
    iprot.readStructEnd()
5894
 
5895
  def write(self, oprot):
5896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5898
      return
559 chandransh 5899
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5900
    if self.success is not None:
94 ashish 5901
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5902
      oprot.writeBool(self.success)
5903
      oprot.writeFieldEnd()
3431 rajveer 5904
    if self.ucx is not None:
94 ashish 5905
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5906
      self.ucx.write(oprot)
5907
      oprot.writeFieldEnd()
5908
    oprot.writeFieldStop()
5909
    oprot.writeStructEnd()
5910
 
3431 rajveer 5911
  def validate(self):
5912
    return
5913
 
5914
 
94 ashish 5915
  def __repr__(self):
5916
    L = ['%s=%r' % (key, value)
5917
      for key, value in self.__dict__.iteritems()]
5918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5919
 
5920
  def __eq__(self, other):
5921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5922
 
5923
  def __ne__(self, other):
5924
    return not (self == other)
5925
 
559 chandransh 5926
class setDefaultAddress_args:
94 ashish 5927
  """
5928
  Attributes:
5929
   - userid
5930
   - addressId
5931
  """
5932
 
5933
  thrift_spec = (
5934
    None, # 0
5935
    (1, TType.I64, 'userid', None, None, ), # 1
5936
    (2, TType.I64, 'addressId', None, None, ), # 2
5937
  )
5938
 
5939
  def __init__(self, userid=None, addressId=None,):
5940
    self.userid = userid
5941
    self.addressId = addressId
5942
 
5943
  def read(self, iprot):
5944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5946
      return
5947
    iprot.readStructBegin()
5948
    while True:
5949
      (fname, ftype, fid) = iprot.readFieldBegin()
5950
      if ftype == TType.STOP:
5951
        break
5952
      if fid == 1:
5953
        if ftype == TType.I64:
5954
          self.userid = iprot.readI64();
5955
        else:
5956
          iprot.skip(ftype)
5957
      elif fid == 2:
5958
        if ftype == TType.I64:
5959
          self.addressId = iprot.readI64();
5960
        else:
5961
          iprot.skip(ftype)
5962
      else:
5963
        iprot.skip(ftype)
5964
      iprot.readFieldEnd()
5965
    iprot.readStructEnd()
5966
 
5967
  def write(self, oprot):
5968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5970
      return
559 chandransh 5971
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5972
    if self.userid is not None:
94 ashish 5973
      oprot.writeFieldBegin('userid', TType.I64, 1)
5974
      oprot.writeI64(self.userid)
5975
      oprot.writeFieldEnd()
3431 rajveer 5976
    if self.addressId is not None:
94 ashish 5977
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5978
      oprot.writeI64(self.addressId)
5979
      oprot.writeFieldEnd()
5980
    oprot.writeFieldStop()
5981
    oprot.writeStructEnd()
5982
 
3431 rajveer 5983
  def validate(self):
5984
    return
5985
 
5986
 
94 ashish 5987
  def __repr__(self):
5988
    L = ['%s=%r' % (key, value)
5989
      for key, value in self.__dict__.iteritems()]
5990
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5991
 
5992
  def __eq__(self, other):
5993
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5994
 
5995
  def __ne__(self, other):
5996
    return not (self == other)
5997
 
559 chandransh 5998
class setDefaultAddress_result:
94 ashish 5999
  """
6000
  Attributes:
6001
   - success
6002
   - ucx
6003
  """
6004
 
6005
  thrift_spec = (
6006
    (0, TType.BOOL, 'success', None, None, ), # 0
6007
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6008
  )
6009
 
6010
  def __init__(self, success=None, ucx=None,):
6011
    self.success = success
6012
    self.ucx = ucx
6013
 
6014
  def read(self, iprot):
6015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6017
      return
6018
    iprot.readStructBegin()
6019
    while True:
6020
      (fname, ftype, fid) = iprot.readFieldBegin()
6021
      if ftype == TType.STOP:
6022
        break
6023
      if fid == 0:
6024
        if ftype == TType.BOOL:
6025
          self.success = iprot.readBool();
6026
        else:
6027
          iprot.skip(ftype)
6028
      elif fid == 1:
6029
        if ftype == TType.STRUCT:
6030
          self.ucx = UserContextException()
6031
          self.ucx.read(iprot)
6032
        else:
6033
          iprot.skip(ftype)
6034
      else:
6035
        iprot.skip(ftype)
6036
      iprot.readFieldEnd()
6037
    iprot.readStructEnd()
6038
 
6039
  def write(self, oprot):
6040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6042
      return
559 chandransh 6043
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 6044
    if self.success is not None:
94 ashish 6045
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6046
      oprot.writeBool(self.success)
6047
      oprot.writeFieldEnd()
3431 rajveer 6048
    if self.ucx is not None:
94 ashish 6049
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6050
      self.ucx.write(oprot)
6051
      oprot.writeFieldEnd()
6052
    oprot.writeFieldStop()
6053
    oprot.writeStructEnd()
6054
 
3431 rajveer 6055
  def validate(self):
6056
    return
6057
 
6058
 
94 ashish 6059
  def __repr__(self):
6060
    L = ['%s=%r' % (key, value)
6061
      for key, value in self.__dict__.iteritems()]
6062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6063
 
6064
  def __eq__(self, other):
6065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6066
 
6067
  def __ne__(self, other):
6068
    return not (self == other)
6069
 
559 chandransh 6070
class updatePassword_args:
94 ashish 6071
  """
6072
  Attributes:
559 chandransh 6073
   - userid
594 rajveer 6074
   - oldPassword
6075
   - newPassword
94 ashish 6076
  """
6077
 
6078
  thrift_spec = (
6079
    None, # 0
559 chandransh 6080
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 6081
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
6082
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 6083
  )
6084
 
594 rajveer 6085
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 6086
    self.userid = userid
594 rajveer 6087
    self.oldPassword = oldPassword
6088
    self.newPassword = newPassword
94 ashish 6089
 
6090
  def read(self, iprot):
6091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6093
      return
6094
    iprot.readStructBegin()
6095
    while True:
6096
      (fname, ftype, fid) = iprot.readFieldBegin()
6097
      if ftype == TType.STOP:
6098
        break
6099
      if fid == 1:
6100
        if ftype == TType.I64:
559 chandransh 6101
          self.userid = iprot.readI64();
94 ashish 6102
        else:
6103
          iprot.skip(ftype)
6104
      elif fid == 2:
559 chandransh 6105
        if ftype == TType.STRING:
594 rajveer 6106
          self.oldPassword = iprot.readString();
94 ashish 6107
        else:
6108
          iprot.skip(ftype)
594 rajveer 6109
      elif fid == 3:
6110
        if ftype == TType.STRING:
6111
          self.newPassword = iprot.readString();
6112
        else:
6113
          iprot.skip(ftype)
94 ashish 6114
      else:
6115
        iprot.skip(ftype)
6116
      iprot.readFieldEnd()
6117
    iprot.readStructEnd()
6118
 
6119
  def write(self, oprot):
6120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6122
      return
559 chandransh 6123
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 6124
    if self.userid is not None:
559 chandransh 6125
      oprot.writeFieldBegin('userid', TType.I64, 1)
6126
      oprot.writeI64(self.userid)
94 ashish 6127
      oprot.writeFieldEnd()
3431 rajveer 6128
    if self.oldPassword is not None:
594 rajveer 6129
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
6130
      oprot.writeString(self.oldPassword)
94 ashish 6131
      oprot.writeFieldEnd()
3431 rajveer 6132
    if self.newPassword is not None:
594 rajveer 6133
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
6134
      oprot.writeString(self.newPassword)
6135
      oprot.writeFieldEnd()
94 ashish 6136
    oprot.writeFieldStop()
6137
    oprot.writeStructEnd()
6138
 
3431 rajveer 6139
  def validate(self):
6140
    return
6141
 
6142
 
94 ashish 6143
  def __repr__(self):
6144
    L = ['%s=%r' % (key, value)
6145
      for key, value in self.__dict__.iteritems()]
6146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6147
 
6148
  def __eq__(self, other):
6149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6150
 
6151
  def __ne__(self, other):
6152
    return not (self == other)
6153
 
559 chandransh 6154
class updatePassword_result:
94 ashish 6155
  """
6156
  Attributes:
6157
   - success
6158
   - ucx
6159
  """
6160
 
6161
  thrift_spec = (
6162
    (0, TType.BOOL, 'success', None, None, ), # 0
6163
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6164
  )
6165
 
6166
  def __init__(self, success=None, ucx=None,):
6167
    self.success = success
6168
    self.ucx = ucx
6169
 
6170
  def read(self, iprot):
6171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6173
      return
6174
    iprot.readStructBegin()
6175
    while True:
6176
      (fname, ftype, fid) = iprot.readFieldBegin()
6177
      if ftype == TType.STOP:
6178
        break
6179
      if fid == 0:
6180
        if ftype == TType.BOOL:
6181
          self.success = iprot.readBool();
6182
        else:
6183
          iprot.skip(ftype)
6184
      elif fid == 1:
6185
        if ftype == TType.STRUCT:
6186
          self.ucx = UserContextException()
6187
          self.ucx.read(iprot)
6188
        else:
6189
          iprot.skip(ftype)
6190
      else:
6191
        iprot.skip(ftype)
6192
      iprot.readFieldEnd()
6193
    iprot.readStructEnd()
6194
 
6195
  def write(self, oprot):
6196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6198
      return
559 chandransh 6199
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 6200
    if self.success is not None:
94 ashish 6201
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6202
      oprot.writeBool(self.success)
6203
      oprot.writeFieldEnd()
3431 rajveer 6204
    if self.ucx is not None:
94 ashish 6205
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6206
      self.ucx.write(oprot)
6207
      oprot.writeFieldEnd()
6208
    oprot.writeFieldStop()
6209
    oprot.writeStructEnd()
6210
 
3431 rajveer 6211
  def validate(self):
6212
    return
6213
 
6214
 
94 ashish 6215
  def __repr__(self):
6216
    L = ['%s=%r' % (key, value)
6217
      for key, value in self.__dict__.iteritems()]
6218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6219
 
6220
  def __eq__(self, other):
6221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6222
 
6223
  def __ne__(self, other):
6224
    return not (self == other)
6225
 
581 rajveer 6226
class forgotPassword_args:
6227
  """
6228
  Attributes:
6229
   - email
884 rajveer 6230
   - newPassword
581 rajveer 6231
  """
6232
 
6233
  thrift_spec = (
6234
    None, # 0
6235
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 6236
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 6237
  )
6238
 
884 rajveer 6239
  def __init__(self, email=None, newPassword=None,):
581 rajveer 6240
    self.email = email
884 rajveer 6241
    self.newPassword = newPassword
581 rajveer 6242
 
6243
  def read(self, iprot):
6244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6246
      return
6247
    iprot.readStructBegin()
6248
    while True:
6249
      (fname, ftype, fid) = iprot.readFieldBegin()
6250
      if ftype == TType.STOP:
6251
        break
6252
      if fid == 1:
6253
        if ftype == TType.STRING:
6254
          self.email = iprot.readString();
6255
        else:
6256
          iprot.skip(ftype)
884 rajveer 6257
      elif fid == 2:
6258
        if ftype == TType.STRING:
6259
          self.newPassword = iprot.readString();
6260
        else:
6261
          iprot.skip(ftype)
581 rajveer 6262
      else:
6263
        iprot.skip(ftype)
6264
      iprot.readFieldEnd()
6265
    iprot.readStructEnd()
6266
 
6267
  def write(self, oprot):
6268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6270
      return
6271
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 6272
    if self.email is not None:
581 rajveer 6273
      oprot.writeFieldBegin('email', TType.STRING, 1)
6274
      oprot.writeString(self.email)
6275
      oprot.writeFieldEnd()
3431 rajveer 6276
    if self.newPassword is not None:
884 rajveer 6277
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
6278
      oprot.writeString(self.newPassword)
6279
      oprot.writeFieldEnd()
581 rajveer 6280
    oprot.writeFieldStop()
6281
    oprot.writeStructEnd()
6282
 
3431 rajveer 6283
  def validate(self):
6284
    return
6285
 
6286
 
581 rajveer 6287
  def __repr__(self):
6288
    L = ['%s=%r' % (key, value)
6289
      for key, value in self.__dict__.iteritems()]
6290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6291
 
6292
  def __eq__(self, other):
6293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6294
 
6295
  def __ne__(self, other):
6296
    return not (self == other)
6297
 
6298
class forgotPassword_result:
6299
  """
6300
  Attributes:
6301
   - success
6302
   - ucx
6303
  """
6304
 
6305
  thrift_spec = (
6306
    (0, TType.BOOL, 'success', None, None, ), # 0
6307
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6308
  )
6309
 
6310
  def __init__(self, success=None, ucx=None,):
6311
    self.success = success
6312
    self.ucx = ucx
6313
 
6314
  def read(self, iprot):
6315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6317
      return
6318
    iprot.readStructBegin()
6319
    while True:
6320
      (fname, ftype, fid) = iprot.readFieldBegin()
6321
      if ftype == TType.STOP:
6322
        break
6323
      if fid == 0:
6324
        if ftype == TType.BOOL:
6325
          self.success = iprot.readBool();
6326
        else:
6327
          iprot.skip(ftype)
6328
      elif fid == 1:
6329
        if ftype == TType.STRUCT:
6330
          self.ucx = UserContextException()
6331
          self.ucx.read(iprot)
6332
        else:
6333
          iprot.skip(ftype)
6334
      else:
6335
        iprot.skip(ftype)
6336
      iprot.readFieldEnd()
6337
    iprot.readStructEnd()
6338
 
6339
  def write(self, oprot):
6340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6342
      return
6343
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6344
    if self.success is not None:
581 rajveer 6345
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6346
      oprot.writeBool(self.success)
6347
      oprot.writeFieldEnd()
3431 rajveer 6348
    if self.ucx is not None:
581 rajveer 6349
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6350
      self.ucx.write(oprot)
6351
      oprot.writeFieldEnd()
6352
    oprot.writeFieldStop()
6353
    oprot.writeStructEnd()
6354
 
3431 rajveer 6355
  def validate(self):
6356
    return
6357
 
6358
 
581 rajveer 6359
  def __repr__(self):
6360
    L = ['%s=%r' % (key, value)
6361
      for key, value in self.__dict__.iteritems()]
6362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6363
 
6364
  def __eq__(self, other):
6365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6366
 
6367
  def __ne__(self, other):
6368
    return not (self == other)
6369
 
594 rajveer 6370
class getAllAddressesForUser_args:
6371
  """
6372
  Attributes:
6373
   - userId
6374
  """
6375
 
6376
  thrift_spec = (
6377
    None, # 0
6378
    (1, TType.I64, 'userId', None, None, ), # 1
6379
  )
6380
 
6381
  def __init__(self, userId=None,):
6382
    self.userId = userId
6383
 
6384
  def read(self, iprot):
6385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6387
      return
6388
    iprot.readStructBegin()
6389
    while True:
6390
      (fname, ftype, fid) = iprot.readFieldBegin()
6391
      if ftype == TType.STOP:
6392
        break
6393
      if fid == 1:
6394
        if ftype == TType.I64:
6395
          self.userId = iprot.readI64();
6396
        else:
6397
          iprot.skip(ftype)
6398
      else:
6399
        iprot.skip(ftype)
6400
      iprot.readFieldEnd()
6401
    iprot.readStructEnd()
6402
 
6403
  def write(self, oprot):
6404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6406
      return
6407
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6408
    if self.userId is not None:
594 rajveer 6409
      oprot.writeFieldBegin('userId', TType.I64, 1)
6410
      oprot.writeI64(self.userId)
6411
      oprot.writeFieldEnd()
6412
    oprot.writeFieldStop()
6413
    oprot.writeStructEnd()
6414
 
3431 rajveer 6415
  def validate(self):
6416
    return
6417
 
6418
 
594 rajveer 6419
  def __repr__(self):
6420
    L = ['%s=%r' % (key, value)
6421
      for key, value in self.__dict__.iteritems()]
6422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6423
 
6424
  def __eq__(self, other):
6425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6426
 
6427
  def __ne__(self, other):
6428
    return not (self == other)
6429
 
6430
class getAllAddressesForUser_result:
6431
  """
6432
  Attributes:
6433
   - success
6434
   - ucx
6435
  """
6436
 
6437
  thrift_spec = (
6438
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6439
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6440
  )
6441
 
6442
  def __init__(self, success=None, ucx=None,):
6443
    self.success = success
6444
    self.ucx = ucx
6445
 
6446
  def read(self, iprot):
6447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6449
      return
6450
    iprot.readStructBegin()
6451
    while True:
6452
      (fname, ftype, fid) = iprot.readFieldBegin()
6453
      if ftype == TType.STOP:
6454
        break
6455
      if fid == 0:
6456
        if ftype == TType.LIST:
6457
          self.success = []
3554 varun.gupt 6458
          (_etype45, _size42) = iprot.readListBegin()
6459
          for _i46 in xrange(_size42):
6460
            _elem47 = Address()
6461
            _elem47.read(iprot)
6462
            self.success.append(_elem47)
594 rajveer 6463
          iprot.readListEnd()
6464
        else:
6465
          iprot.skip(ftype)
6466
      elif fid == 1:
6467
        if ftype == TType.STRUCT:
6468
          self.ucx = UserContextException()
6469
          self.ucx.read(iprot)
6470
        else:
6471
          iprot.skip(ftype)
6472
      else:
6473
        iprot.skip(ftype)
6474
      iprot.readFieldEnd()
6475
    iprot.readStructEnd()
6476
 
6477
  def write(self, oprot):
6478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6480
      return
6481
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6482
    if self.success is not None:
594 rajveer 6483
      oprot.writeFieldBegin('success', TType.LIST, 0)
6484
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 6485
      for iter48 in self.success:
6486
        iter48.write(oprot)
594 rajveer 6487
      oprot.writeListEnd()
6488
      oprot.writeFieldEnd()
3431 rajveer 6489
    if self.ucx is not None:
594 rajveer 6490
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6491
      self.ucx.write(oprot)
6492
      oprot.writeFieldEnd()
6493
    oprot.writeFieldStop()
6494
    oprot.writeStructEnd()
6495
 
3431 rajveer 6496
  def validate(self):
6497
    return
6498
 
6499
 
594 rajveer 6500
  def __repr__(self):
6501
    L = ['%s=%r' % (key, value)
6502
      for key, value in self.__dict__.iteritems()]
6503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6504
 
6505
  def __eq__(self, other):
6506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6507
 
6508
  def __ne__(self, other):
6509
    return not (self == other)
6510
 
1894 vikas 6511
class getAddressById_args:
6512
  """
6513
  Attributes:
6514
   - addressId
6515
  """
6516
 
6517
  thrift_spec = (
6518
    None, # 0
6519
    (1, TType.I64, 'addressId', None, None, ), # 1
6520
  )
6521
 
6522
  def __init__(self, addressId=None,):
6523
    self.addressId = addressId
6524
 
6525
  def read(self, iprot):
6526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6528
      return
6529
    iprot.readStructBegin()
6530
    while True:
6531
      (fname, ftype, fid) = iprot.readFieldBegin()
6532
      if ftype == TType.STOP:
6533
        break
6534
      if fid == 1:
6535
        if ftype == TType.I64:
6536
          self.addressId = iprot.readI64();
6537
        else:
6538
          iprot.skip(ftype)
6539
      else:
6540
        iprot.skip(ftype)
6541
      iprot.readFieldEnd()
6542
    iprot.readStructEnd()
6543
 
6544
  def write(self, oprot):
6545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6547
      return
6548
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6549
    if self.addressId is not None:
1894 vikas 6550
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6551
      oprot.writeI64(self.addressId)
6552
      oprot.writeFieldEnd()
6553
    oprot.writeFieldStop()
6554
    oprot.writeStructEnd()
6555
 
3431 rajveer 6556
  def validate(self):
6557
    return
6558
 
6559
 
1894 vikas 6560
  def __repr__(self):
6561
    L = ['%s=%r' % (key, value)
6562
      for key, value in self.__dict__.iteritems()]
6563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6564
 
6565
  def __eq__(self, other):
6566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6567
 
6568
  def __ne__(self, other):
6569
    return not (self == other)
6570
 
6571
class getAddressById_result:
6572
  """
6573
  Attributes:
6574
   - success
6575
   - ucx
6576
  """
6577
 
6578
  thrift_spec = (
6579
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6580
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6581
  )
6582
 
6583
  def __init__(self, success=None, ucx=None,):
6584
    self.success = success
6585
    self.ucx = ucx
6586
 
6587
  def read(self, iprot):
6588
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6589
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6590
      return
6591
    iprot.readStructBegin()
6592
    while True:
6593
      (fname, ftype, fid) = iprot.readFieldBegin()
6594
      if ftype == TType.STOP:
6595
        break
6596
      if fid == 0:
6597
        if ftype == TType.STRUCT:
6598
          self.success = Address()
6599
          self.success.read(iprot)
6600
        else:
6601
          iprot.skip(ftype)
6602
      elif fid == 1:
6603
        if ftype == TType.STRUCT:
6604
          self.ucx = UserContextException()
6605
          self.ucx.read(iprot)
6606
        else:
6607
          iprot.skip(ftype)
6608
      else:
6609
        iprot.skip(ftype)
6610
      iprot.readFieldEnd()
6611
    iprot.readStructEnd()
6612
 
6613
  def write(self, oprot):
6614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6616
      return
6617
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6618
    if self.success is not None:
1894 vikas 6619
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6620
      self.success.write(oprot)
6621
      oprot.writeFieldEnd()
3431 rajveer 6622
    if self.ucx is not None:
1894 vikas 6623
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6624
      self.ucx.write(oprot)
6625
      oprot.writeFieldEnd()
6626
    oprot.writeFieldStop()
6627
    oprot.writeStructEnd()
6628
 
3431 rajveer 6629
  def validate(self):
6630
    return
6631
 
6632
 
1894 vikas 6633
  def __repr__(self):
6634
    L = ['%s=%r' % (key, value)
6635
      for key, value in self.__dict__.iteritems()]
6636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6637
 
6638
  def __eq__(self, other):
6639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6640
 
6641
  def __ne__(self, other):
6642
    return not (self == other)
6643
 
594 rajveer 6644
class getDefaultAddressId_args:
6645
  """
6646
  Attributes:
6647
   - userId
6648
  """
6649
 
6650
  thrift_spec = (
6651
    None, # 0
6652
    (1, TType.I64, 'userId', None, None, ), # 1
6653
  )
6654
 
6655
  def __init__(self, userId=None,):
6656
    self.userId = userId
6657
 
6658
  def read(self, iprot):
6659
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6660
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6661
      return
6662
    iprot.readStructBegin()
6663
    while True:
6664
      (fname, ftype, fid) = iprot.readFieldBegin()
6665
      if ftype == TType.STOP:
6666
        break
6667
      if fid == 1:
6668
        if ftype == TType.I64:
6669
          self.userId = iprot.readI64();
6670
        else:
6671
          iprot.skip(ftype)
6672
      else:
6673
        iprot.skip(ftype)
6674
      iprot.readFieldEnd()
6675
    iprot.readStructEnd()
6676
 
6677
  def write(self, oprot):
6678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6680
      return
6681
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6682
    if self.userId is not None:
594 rajveer 6683
      oprot.writeFieldBegin('userId', TType.I64, 1)
6684
      oprot.writeI64(self.userId)
6685
      oprot.writeFieldEnd()
6686
    oprot.writeFieldStop()
6687
    oprot.writeStructEnd()
6688
 
3431 rajveer 6689
  def validate(self):
6690
    return
6691
 
6692
 
594 rajveer 6693
  def __repr__(self):
6694
    L = ['%s=%r' % (key, value)
6695
      for key, value in self.__dict__.iteritems()]
6696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6697
 
6698
  def __eq__(self, other):
6699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6700
 
6701
  def __ne__(self, other):
6702
    return not (self == other)
6703
 
6704
class getDefaultAddressId_result:
6705
  """
6706
  Attributes:
6707
   - success
6708
   - ucx
6709
  """
6710
 
6711
  thrift_spec = (
6712
    (0, TType.I64, 'success', None, None, ), # 0
6713
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6714
  )
6715
 
6716
  def __init__(self, success=None, ucx=None,):
6717
    self.success = success
6718
    self.ucx = ucx
6719
 
6720
  def read(self, iprot):
6721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6723
      return
6724
    iprot.readStructBegin()
6725
    while True:
6726
      (fname, ftype, fid) = iprot.readFieldBegin()
6727
      if ftype == TType.STOP:
6728
        break
6729
      if fid == 0:
6730
        if ftype == TType.I64:
6731
          self.success = iprot.readI64();
6732
        else:
6733
          iprot.skip(ftype)
6734
      elif fid == 1:
6735
        if ftype == TType.STRUCT:
6736
          self.ucx = UserContextException()
6737
          self.ucx.read(iprot)
6738
        else:
6739
          iprot.skip(ftype)
6740
      else:
6741
        iprot.skip(ftype)
6742
      iprot.readFieldEnd()
6743
    iprot.readStructEnd()
6744
 
6745
  def write(self, oprot):
6746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6748
      return
6749
    oprot.writeStructBegin('getDefaultAddressId_result')
3431 rajveer 6750
    if self.success is not None:
594 rajveer 6751
      oprot.writeFieldBegin('success', TType.I64, 0)
6752
      oprot.writeI64(self.success)
6753
      oprot.writeFieldEnd()
3431 rajveer 6754
    if self.ucx is not None:
594 rajveer 6755
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6756
      self.ucx.write(oprot)
6757
      oprot.writeFieldEnd()
6758
    oprot.writeFieldStop()
6759
    oprot.writeStructEnd()
6760
 
3431 rajveer 6761
  def validate(self):
6762
    return
6763
 
6764
 
594 rajveer 6765
  def __repr__(self):
6766
    L = ['%s=%r' % (key, value)
6767
      for key, value in self.__dict__.iteritems()]
6768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6769
 
6770
  def __eq__(self, other):
6771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6772
 
6773
  def __ne__(self, other):
6774
    return not (self == other)
6775
 
785 rajveer 6776
class getDefaultPincode_args:
6777
  """
6778
  Attributes:
6779
   - userId
6780
  """
6781
 
6782
  thrift_spec = (
6783
    None, # 0
6784
    (1, TType.I64, 'userId', None, None, ), # 1
6785
  )
6786
 
6787
  def __init__(self, userId=None,):
6788
    self.userId = userId
6789
 
6790
  def read(self, iprot):
6791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6793
      return
6794
    iprot.readStructBegin()
6795
    while True:
6796
      (fname, ftype, fid) = iprot.readFieldBegin()
6797
      if ftype == TType.STOP:
6798
        break
6799
      if fid == 1:
6800
        if ftype == TType.I64:
6801
          self.userId = iprot.readI64();
6802
        else:
6803
          iprot.skip(ftype)
6804
      else:
6805
        iprot.skip(ftype)
6806
      iprot.readFieldEnd()
6807
    iprot.readStructEnd()
6808
 
6809
  def write(self, oprot):
6810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6812
      return
6813
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6814
    if self.userId is not None:
785 rajveer 6815
      oprot.writeFieldBegin('userId', TType.I64, 1)
6816
      oprot.writeI64(self.userId)
6817
      oprot.writeFieldEnd()
6818
    oprot.writeFieldStop()
6819
    oprot.writeStructEnd()
6820
 
3431 rajveer 6821
  def validate(self):
6822
    return
6823
 
6824
 
785 rajveer 6825
  def __repr__(self):
6826
    L = ['%s=%r' % (key, value)
6827
      for key, value in self.__dict__.iteritems()]
6828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6829
 
6830
  def __eq__(self, other):
6831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6832
 
6833
  def __ne__(self, other):
6834
    return not (self == other)
6835
 
6836
class getDefaultPincode_result:
6837
  """
6838
  Attributes:
6839
   - success
6840
   - ucx
6841
  """
6842
 
6843
  thrift_spec = (
6844
    (0, TType.STRING, 'success', None, None, ), # 0
6845
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6846
  )
6847
 
6848
  def __init__(self, success=None, ucx=None,):
6849
    self.success = success
6850
    self.ucx = ucx
6851
 
6852
  def read(self, iprot):
6853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6855
      return
6856
    iprot.readStructBegin()
6857
    while True:
6858
      (fname, ftype, fid) = iprot.readFieldBegin()
6859
      if ftype == TType.STOP:
6860
        break
6861
      if fid == 0:
6862
        if ftype == TType.STRING:
6863
          self.success = iprot.readString();
6864
        else:
6865
          iprot.skip(ftype)
6866
      elif fid == 1:
6867
        if ftype == TType.STRUCT:
6868
          self.ucx = UserContextException()
6869
          self.ucx.read(iprot)
6870
        else:
6871
          iprot.skip(ftype)
6872
      else:
6873
        iprot.skip(ftype)
6874
      iprot.readFieldEnd()
6875
    iprot.readStructEnd()
6876
 
6877
  def write(self, oprot):
6878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6880
      return
6881
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6882
    if self.success is not None:
785 rajveer 6883
      oprot.writeFieldBegin('success', TType.STRING, 0)
6884
      oprot.writeString(self.success)
6885
      oprot.writeFieldEnd()
3431 rajveer 6886
    if self.ucx is not None:
785 rajveer 6887
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6888
      self.ucx.write(oprot)
6889
      oprot.writeFieldEnd()
6890
    oprot.writeFieldStop()
6891
    oprot.writeStructEnd()
6892
 
3431 rajveer 6893
  def validate(self):
6894
    return
6895
 
6896
 
785 rajveer 6897
  def __repr__(self):
6898
    L = ['%s=%r' % (key, value)
6899
      for key, value in self.__dict__.iteritems()]
6900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6901
 
6902
  def __eq__(self, other):
6903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6904
 
6905
  def __ne__(self, other):
6906
    return not (self == other)
6907
 
1274 varun.gupt 6908
class saveUserCommunication_args:
6909
  """
6910
  Attributes:
6911
   - userId
6912
   - replyTo
6913
   - communicationType
6914
   - orderId
6915
   - airwaybillNo
6916
   - productName
6917
   - subject
6918
   - message
6919
  """
6920
 
6921
  thrift_spec = (
6922
    None, # 0
6923
    (1, TType.I64, 'userId', None, None, ), # 1
6924
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6925
    (3, TType.I64, 'communicationType', None, None, ), # 3
6926
    (4, TType.I64, 'orderId', None, None, ), # 4
6927
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6928
    (6, TType.STRING, 'productName', None, None, ), # 6
6929
    (7, TType.STRING, 'subject', None, None, ), # 7
6930
    (8, TType.STRING, 'message', None, None, ), # 8
6931
  )
6932
 
6933
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6934
    self.userId = userId
6935
    self.replyTo = replyTo
6936
    self.communicationType = communicationType
6937
    self.orderId = orderId
6938
    self.airwaybillNo = airwaybillNo
6939
    self.productName = productName
6940
    self.subject = subject
6941
    self.message = message
6942
 
6943
  def read(self, iprot):
6944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6946
      return
6947
    iprot.readStructBegin()
6948
    while True:
6949
      (fname, ftype, fid) = iprot.readFieldBegin()
6950
      if ftype == TType.STOP:
6951
        break
6952
      if fid == 1:
6953
        if ftype == TType.I64:
6954
          self.userId = iprot.readI64();
6955
        else:
6956
          iprot.skip(ftype)
6957
      elif fid == 2:
6958
        if ftype == TType.STRING:
6959
          self.replyTo = iprot.readString();
6960
        else:
6961
          iprot.skip(ftype)
6962
      elif fid == 3:
6963
        if ftype == TType.I64:
6964
          self.communicationType = iprot.readI64();
6965
        else:
6966
          iprot.skip(ftype)
6967
      elif fid == 4:
6968
        if ftype == TType.I64:
6969
          self.orderId = iprot.readI64();
6970
        else:
6971
          iprot.skip(ftype)
6972
      elif fid == 5:
6973
        if ftype == TType.STRING:
6974
          self.airwaybillNo = iprot.readString();
6975
        else:
6976
          iprot.skip(ftype)
6977
      elif fid == 6:
6978
        if ftype == TType.STRING:
6979
          self.productName = iprot.readString();
6980
        else:
6981
          iprot.skip(ftype)
6982
      elif fid == 7:
6983
        if ftype == TType.STRING:
6984
          self.subject = iprot.readString();
6985
        else:
6986
          iprot.skip(ftype)
6987
      elif fid == 8:
6988
        if ftype == TType.STRING:
6989
          self.message = iprot.readString();
6990
        else:
6991
          iprot.skip(ftype)
6992
      else:
6993
        iprot.skip(ftype)
6994
      iprot.readFieldEnd()
6995
    iprot.readStructEnd()
6996
 
6997
  def write(self, oprot):
6998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7000
      return
7001
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 7002
    if self.userId is not None:
1274 varun.gupt 7003
      oprot.writeFieldBegin('userId', TType.I64, 1)
7004
      oprot.writeI64(self.userId)
7005
      oprot.writeFieldEnd()
3431 rajveer 7006
    if self.replyTo is not None:
1274 varun.gupt 7007
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
7008
      oprot.writeString(self.replyTo)
7009
      oprot.writeFieldEnd()
3431 rajveer 7010
    if self.communicationType is not None:
1274 varun.gupt 7011
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
7012
      oprot.writeI64(self.communicationType)
7013
      oprot.writeFieldEnd()
3431 rajveer 7014
    if self.orderId is not None:
1274 varun.gupt 7015
      oprot.writeFieldBegin('orderId', TType.I64, 4)
7016
      oprot.writeI64(self.orderId)
7017
      oprot.writeFieldEnd()
3431 rajveer 7018
    if self.airwaybillNo is not None:
1274 varun.gupt 7019
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
7020
      oprot.writeString(self.airwaybillNo)
7021
      oprot.writeFieldEnd()
3431 rajveer 7022
    if self.productName is not None:
1274 varun.gupt 7023
      oprot.writeFieldBegin('productName', TType.STRING, 6)
7024
      oprot.writeString(self.productName)
7025
      oprot.writeFieldEnd()
3431 rajveer 7026
    if self.subject is not None:
1274 varun.gupt 7027
      oprot.writeFieldBegin('subject', TType.STRING, 7)
7028
      oprot.writeString(self.subject)
7029
      oprot.writeFieldEnd()
3431 rajveer 7030
    if self.message is not None:
1274 varun.gupt 7031
      oprot.writeFieldBegin('message', TType.STRING, 8)
7032
      oprot.writeString(self.message)
7033
      oprot.writeFieldEnd()
7034
    oprot.writeFieldStop()
7035
    oprot.writeStructEnd()
7036
 
3431 rajveer 7037
  def validate(self):
7038
    return
7039
 
7040
 
1274 varun.gupt 7041
  def __repr__(self):
7042
    L = ['%s=%r' % (key, value)
7043
      for key, value in self.__dict__.iteritems()]
7044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7045
 
7046
  def __eq__(self, other):
7047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7048
 
7049
  def __ne__(self, other):
7050
    return not (self == other)
7051
 
7052
class saveUserCommunication_result:
7053
  """
7054
  Attributes:
7055
   - success
7056
   - ucx
7057
  """
7058
 
7059
  thrift_spec = (
7060
    (0, TType.BOOL, 'success', None, None, ), # 0
7061
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7062
  )
7063
 
7064
  def __init__(self, success=None, ucx=None,):
7065
    self.success = success
7066
    self.ucx = ucx
7067
 
7068
  def read(self, iprot):
7069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7071
      return
7072
    iprot.readStructBegin()
7073
    while True:
7074
      (fname, ftype, fid) = iprot.readFieldBegin()
7075
      if ftype == TType.STOP:
7076
        break
7077
      if fid == 0:
7078
        if ftype == TType.BOOL:
7079
          self.success = iprot.readBool();
7080
        else:
7081
          iprot.skip(ftype)
7082
      elif fid == 1:
7083
        if ftype == TType.STRUCT:
7084
          self.ucx = UserCommunicationException()
7085
          self.ucx.read(iprot)
7086
        else:
7087
          iprot.skip(ftype)
7088
      else:
7089
        iprot.skip(ftype)
7090
      iprot.readFieldEnd()
7091
    iprot.readStructEnd()
7092
 
7093
  def write(self, oprot):
7094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7096
      return
7097
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 7098
    if self.success is not None:
1274 varun.gupt 7099
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7100
      oprot.writeBool(self.success)
7101
      oprot.writeFieldEnd()
3431 rajveer 7102
    if self.ucx is not None:
1274 varun.gupt 7103
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7104
      self.ucx.write(oprot)
7105
      oprot.writeFieldEnd()
7106
    oprot.writeFieldStop()
7107
    oprot.writeStructEnd()
7108
 
3431 rajveer 7109
  def validate(self):
7110
    return
7111
 
7112
 
1274 varun.gupt 7113
  def __repr__(self):
7114
    L = ['%s=%r' % (key, value)
7115
      for key, value in self.__dict__.iteritems()]
7116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7117
 
7118
  def __eq__(self, other):
7119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7120
 
7121
  def __ne__(self, other):
7122
    return not (self == other)
7123
 
1590 varun.gupt 7124
class getUserCommunicationById_args:
7125
  """
7126
  Attributes:
7127
   - id
7128
  """
7129
 
7130
  thrift_spec = (
7131
    None, # 0
7132
    (1, TType.I64, 'id', None, None, ), # 1
7133
  )
7134
 
7135
  def __init__(self, id=None,):
7136
    self.id = id
7137
 
7138
  def read(self, iprot):
7139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7141
      return
7142
    iprot.readStructBegin()
7143
    while True:
7144
      (fname, ftype, fid) = iprot.readFieldBegin()
7145
      if ftype == TType.STOP:
7146
        break
7147
      if fid == 1:
7148
        if ftype == TType.I64:
7149
          self.id = iprot.readI64();
7150
        else:
7151
          iprot.skip(ftype)
7152
      else:
7153
        iprot.skip(ftype)
7154
      iprot.readFieldEnd()
7155
    iprot.readStructEnd()
7156
 
7157
  def write(self, oprot):
7158
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7159
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7160
      return
7161
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 7162
    if self.id is not None:
1590 varun.gupt 7163
      oprot.writeFieldBegin('id', TType.I64, 1)
7164
      oprot.writeI64(self.id)
7165
      oprot.writeFieldEnd()
7166
    oprot.writeFieldStop()
7167
    oprot.writeStructEnd()
7168
 
3431 rajveer 7169
  def validate(self):
7170
    return
7171
 
7172
 
1590 varun.gupt 7173
  def __repr__(self):
7174
    L = ['%s=%r' % (key, value)
7175
      for key, value in self.__dict__.iteritems()]
7176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7177
 
7178
  def __eq__(self, other):
7179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7180
 
7181
  def __ne__(self, other):
7182
    return not (self == other)
7183
 
7184
class getUserCommunicationById_result:
7185
  """
7186
  Attributes:
7187
   - success
7188
   - ucx
7189
  """
7190
 
7191
  thrift_spec = (
7192
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
7193
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7194
  )
7195
 
7196
  def __init__(self, success=None, ucx=None,):
7197
    self.success = success
7198
    self.ucx = ucx
7199
 
7200
  def read(self, iprot):
7201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7203
      return
7204
    iprot.readStructBegin()
7205
    while True:
7206
      (fname, ftype, fid) = iprot.readFieldBegin()
7207
      if ftype == TType.STOP:
7208
        break
7209
      if fid == 0:
7210
        if ftype == TType.STRUCT:
7211
          self.success = UserCommunication()
7212
          self.success.read(iprot)
7213
        else:
7214
          iprot.skip(ftype)
7215
      elif fid == 1:
7216
        if ftype == TType.STRUCT:
7217
          self.ucx = UserCommunicationException()
7218
          self.ucx.read(iprot)
7219
        else:
7220
          iprot.skip(ftype)
7221
      else:
7222
        iprot.skip(ftype)
7223
      iprot.readFieldEnd()
7224
    iprot.readStructEnd()
7225
 
7226
  def write(self, oprot):
7227
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7228
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7229
      return
7230
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 7231
    if self.success is not None:
1590 varun.gupt 7232
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7233
      self.success.write(oprot)
7234
      oprot.writeFieldEnd()
3431 rajveer 7235
    if self.ucx is not None:
1590 varun.gupt 7236
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7237
      self.ucx.write(oprot)
7238
      oprot.writeFieldEnd()
7239
    oprot.writeFieldStop()
7240
    oprot.writeStructEnd()
7241
 
3431 rajveer 7242
  def validate(self):
7243
    return
7244
 
7245
 
1590 varun.gupt 7246
  def __repr__(self):
7247
    L = ['%s=%r' % (key, value)
7248
      for key, value in self.__dict__.iteritems()]
7249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7250
 
7251
  def __eq__(self, other):
7252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7253
 
7254
  def __ne__(self, other):
7255
    return not (self == other)
7256
 
7257
class getUserCommunicationByUser_args:
7258
  """
7259
  Attributes:
7260
   - userId
7261
  """
7262
 
7263
  thrift_spec = (
7264
    None, # 0
7265
    (1, TType.I64, 'userId', None, None, ), # 1
7266
  )
7267
 
7268
  def __init__(self, userId=None,):
7269
    self.userId = userId
7270
 
7271
  def read(self, iprot):
7272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7274
      return
7275
    iprot.readStructBegin()
7276
    while True:
7277
      (fname, ftype, fid) = iprot.readFieldBegin()
7278
      if ftype == TType.STOP:
7279
        break
7280
      if fid == 1:
7281
        if ftype == TType.I64:
7282
          self.userId = iprot.readI64();
7283
        else:
7284
          iprot.skip(ftype)
7285
      else:
7286
        iprot.skip(ftype)
7287
      iprot.readFieldEnd()
7288
    iprot.readStructEnd()
7289
 
7290
  def write(self, oprot):
7291
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7292
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7293
      return
7294
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 7295
    if self.userId is not None:
1590 varun.gupt 7296
      oprot.writeFieldBegin('userId', TType.I64, 1)
7297
      oprot.writeI64(self.userId)
7298
      oprot.writeFieldEnd()
7299
    oprot.writeFieldStop()
7300
    oprot.writeStructEnd()
7301
 
3431 rajveer 7302
  def validate(self):
7303
    return
7304
 
7305
 
1590 varun.gupt 7306
  def __repr__(self):
7307
    L = ['%s=%r' % (key, value)
7308
      for key, value in self.__dict__.iteritems()]
7309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7310
 
7311
  def __eq__(self, other):
7312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7313
 
7314
  def __ne__(self, other):
7315
    return not (self == other)
7316
 
7317
class getUserCommunicationByUser_result:
7318
  """
7319
  Attributes:
7320
   - success
7321
   - ucx
7322
  """
7323
 
7324
  thrift_spec = (
7325
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7326
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7327
  )
7328
 
7329
  def __init__(self, success=None, ucx=None,):
7330
    self.success = success
7331
    self.ucx = ucx
7332
 
7333
  def read(self, iprot):
7334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7336
      return
7337
    iprot.readStructBegin()
7338
    while True:
7339
      (fname, ftype, fid) = iprot.readFieldBegin()
7340
      if ftype == TType.STOP:
7341
        break
7342
      if fid == 0:
7343
        if ftype == TType.LIST:
7344
          self.success = []
3554 varun.gupt 7345
          (_etype52, _size49) = iprot.readListBegin()
7346
          for _i53 in xrange(_size49):
7347
            _elem54 = UserCommunication()
7348
            _elem54.read(iprot)
7349
            self.success.append(_elem54)
1590 varun.gupt 7350
          iprot.readListEnd()
7351
        else:
7352
          iprot.skip(ftype)
7353
      elif fid == 1:
7354
        if ftype == TType.STRUCT:
7355
          self.ucx = UserCommunicationException()
7356
          self.ucx.read(iprot)
7357
        else:
7358
          iprot.skip(ftype)
7359
      else:
7360
        iprot.skip(ftype)
7361
      iprot.readFieldEnd()
7362
    iprot.readStructEnd()
7363
 
7364
  def write(self, oprot):
7365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7367
      return
7368
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7369
    if self.success is not None:
1590 varun.gupt 7370
      oprot.writeFieldBegin('success', TType.LIST, 0)
7371
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7372
      for iter55 in self.success:
7373
        iter55.write(oprot)
1590 varun.gupt 7374
      oprot.writeListEnd()
7375
      oprot.writeFieldEnd()
3431 rajveer 7376
    if self.ucx is not None:
1590 varun.gupt 7377
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7378
      self.ucx.write(oprot)
7379
      oprot.writeFieldEnd()
7380
    oprot.writeFieldStop()
7381
    oprot.writeStructEnd()
7382
 
3431 rajveer 7383
  def validate(self):
7384
    return
7385
 
7386
 
1590 varun.gupt 7387
  def __repr__(self):
7388
    L = ['%s=%r' % (key, value)
7389
      for key, value in self.__dict__.iteritems()]
7390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7391
 
7392
  def __eq__(self, other):
7393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7394
 
7395
  def __ne__(self, other):
7396
    return not (self == other)
7397
 
7398
class getAllUserCommunications_args:
7399
 
7400
  thrift_spec = (
7401
  )
7402
 
7403
  def read(self, iprot):
7404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7406
      return
7407
    iprot.readStructBegin()
7408
    while True:
7409
      (fname, ftype, fid) = iprot.readFieldBegin()
7410
      if ftype == TType.STOP:
7411
        break
7412
      else:
7413
        iprot.skip(ftype)
7414
      iprot.readFieldEnd()
7415
    iprot.readStructEnd()
7416
 
7417
  def write(self, oprot):
7418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7420
      return
7421
    oprot.writeStructBegin('getAllUserCommunications_args')
7422
    oprot.writeFieldStop()
7423
    oprot.writeStructEnd()
7424
 
3431 rajveer 7425
  def validate(self):
7426
    return
7427
 
7428
 
1590 varun.gupt 7429
  def __repr__(self):
7430
    L = ['%s=%r' % (key, value)
7431
      for key, value in self.__dict__.iteritems()]
7432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7433
 
7434
  def __eq__(self, other):
7435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7436
 
7437
  def __ne__(self, other):
7438
    return not (self == other)
7439
 
7440
class getAllUserCommunications_result:
7441
  """
7442
  Attributes:
7443
   - success
7444
   - ucx
7445
  """
7446
 
7447
  thrift_spec = (
7448
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7449
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7450
  )
7451
 
7452
  def __init__(self, success=None, ucx=None,):
7453
    self.success = success
7454
    self.ucx = ucx
7455
 
7456
  def read(self, iprot):
7457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7459
      return
7460
    iprot.readStructBegin()
7461
    while True:
7462
      (fname, ftype, fid) = iprot.readFieldBegin()
7463
      if ftype == TType.STOP:
7464
        break
7465
      if fid == 0:
7466
        if ftype == TType.LIST:
7467
          self.success = []
3554 varun.gupt 7468
          (_etype59, _size56) = iprot.readListBegin()
7469
          for _i60 in xrange(_size56):
7470
            _elem61 = UserCommunication()
7471
            _elem61.read(iprot)
7472
            self.success.append(_elem61)
1590 varun.gupt 7473
          iprot.readListEnd()
7474
        else:
7475
          iprot.skip(ftype)
7476
      elif fid == 1:
7477
        if ftype == TType.STRUCT:
7478
          self.ucx = UserCommunicationException()
7479
          self.ucx.read(iprot)
7480
        else:
7481
          iprot.skip(ftype)
7482
      else:
7483
        iprot.skip(ftype)
7484
      iprot.readFieldEnd()
7485
    iprot.readStructEnd()
7486
 
7487
  def write(self, oprot):
7488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7490
      return
7491
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7492
    if self.success is not None:
1590 varun.gupt 7493
      oprot.writeFieldBegin('success', TType.LIST, 0)
7494
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7495
      for iter62 in self.success:
7496
        iter62.write(oprot)
1590 varun.gupt 7497
      oprot.writeListEnd()
7498
      oprot.writeFieldEnd()
3431 rajveer 7499
    if self.ucx is not None:
1590 varun.gupt 7500
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7501
      self.ucx.write(oprot)
7502
      oprot.writeFieldEnd()
7503
    oprot.writeFieldStop()
7504
    oprot.writeStructEnd()
7505
 
3431 rajveer 7506
  def validate(self):
7507
    return
7508
 
7509
 
1590 varun.gupt 7510
  def __repr__(self):
7511
    L = ['%s=%r' % (key, value)
7512
      for key, value in self.__dict__.iteritems()]
7513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7514
 
7515
  def __eq__(self, other):
7516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7517
 
7518
  def __ne__(self, other):
7519
    return not (self == other)
7520
 
1845 vikas 7521
class createMasterAffiliate_args:
7522
  """
7523
  Attributes:
7524
   - name
1859 vikas 7525
   - addedOn
1845 vikas 7526
  """
7527
 
7528
  thrift_spec = (
7529
    None, # 0
7530
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7531
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7532
  )
7533
 
1859 vikas 7534
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7535
    self.name = name
1859 vikas 7536
    self.addedOn = addedOn
1845 vikas 7537
 
7538
  def read(self, iprot):
7539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7541
      return
7542
    iprot.readStructBegin()
7543
    while True:
7544
      (fname, ftype, fid) = iprot.readFieldBegin()
7545
      if ftype == TType.STOP:
7546
        break
7547
      if fid == 1:
7548
        if ftype == TType.STRING:
7549
          self.name = iprot.readString();
7550
        else:
7551
          iprot.skip(ftype)
1859 vikas 7552
      elif fid == 2:
7553
        if ftype == TType.I64:
7554
          self.addedOn = iprot.readI64();
7555
        else:
7556
          iprot.skip(ftype)
1845 vikas 7557
      else:
7558
        iprot.skip(ftype)
7559
      iprot.readFieldEnd()
7560
    iprot.readStructEnd()
7561
 
7562
  def write(self, oprot):
7563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7565
      return
7566
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7567
    if self.name is not None:
1845 vikas 7568
      oprot.writeFieldBegin('name', TType.STRING, 1)
7569
      oprot.writeString(self.name)
7570
      oprot.writeFieldEnd()
3431 rajveer 7571
    if self.addedOn is not None:
1859 vikas 7572
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7573
      oprot.writeI64(self.addedOn)
7574
      oprot.writeFieldEnd()
1845 vikas 7575
    oprot.writeFieldStop()
7576
    oprot.writeStructEnd()
7577
 
3431 rajveer 7578
  def validate(self):
7579
    return
7580
 
7581
 
1845 vikas 7582
  def __repr__(self):
7583
    L = ['%s=%r' % (key, value)
7584
      for key, value in self.__dict__.iteritems()]
7585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7586
 
7587
  def __eq__(self, other):
7588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7589
 
7590
  def __ne__(self, other):
7591
    return not (self == other)
7592
 
7593
class createMasterAffiliate_result:
7594
  """
7595
  Attributes:
7596
   - success
7597
   - utx
7598
  """
7599
 
7600
  thrift_spec = (
7601
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7602
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7603
  )
7604
 
7605
  def __init__(self, success=None, utx=None,):
7606
    self.success = success
7607
    self.utx = utx
7608
 
7609
  def read(self, iprot):
7610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7612
      return
7613
    iprot.readStructBegin()
7614
    while True:
7615
      (fname, ftype, fid) = iprot.readFieldBegin()
7616
      if ftype == TType.STOP:
7617
        break
7618
      if fid == 0:
7619
        if ftype == TType.STRUCT:
7620
          self.success = MasterAffiliate()
7621
          self.success.read(iprot)
7622
        else:
7623
          iprot.skip(ftype)
7624
      elif fid == 1:
7625
        if ftype == TType.STRUCT:
1996 vikas 7626
          self.utx = UserAffiliateException()
1845 vikas 7627
          self.utx.read(iprot)
7628
        else:
7629
          iprot.skip(ftype)
7630
      else:
7631
        iprot.skip(ftype)
7632
      iprot.readFieldEnd()
7633
    iprot.readStructEnd()
7634
 
7635
  def write(self, oprot):
7636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7638
      return
7639
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7640
    if self.success is not None:
1845 vikas 7641
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7642
      self.success.write(oprot)
7643
      oprot.writeFieldEnd()
3431 rajveer 7644
    if self.utx is not None:
1845 vikas 7645
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7646
      self.utx.write(oprot)
7647
      oprot.writeFieldEnd()
7648
    oprot.writeFieldStop()
7649
    oprot.writeStructEnd()
7650
 
3431 rajveer 7651
  def validate(self):
7652
    return
7653
 
7654
 
1845 vikas 7655
  def __repr__(self):
7656
    L = ['%s=%r' % (key, value)
7657
      for key, value in self.__dict__.iteritems()]
7658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7659
 
7660
  def __eq__(self, other):
7661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7662
 
7663
  def __ne__(self, other):
7664
    return not (self == other)
7665
 
1899 vikas 7666
class getAllMasterAffiliates_args:
7667
 
7668
  thrift_spec = (
7669
  )
7670
 
7671
  def read(self, iprot):
7672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7674
      return
7675
    iprot.readStructBegin()
7676
    while True:
7677
      (fname, ftype, fid) = iprot.readFieldBegin()
7678
      if ftype == TType.STOP:
7679
        break
7680
      else:
7681
        iprot.skip(ftype)
7682
      iprot.readFieldEnd()
7683
    iprot.readStructEnd()
7684
 
7685
  def write(self, oprot):
7686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7688
      return
7689
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7690
    oprot.writeFieldStop()
7691
    oprot.writeStructEnd()
7692
 
3431 rajveer 7693
  def validate(self):
7694
    return
7695
 
7696
 
1899 vikas 7697
  def __repr__(self):
7698
    L = ['%s=%r' % (key, value)
7699
      for key, value in self.__dict__.iteritems()]
7700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7701
 
7702
  def __eq__(self, other):
7703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7704
 
7705
  def __ne__(self, other):
7706
    return not (self == other)
7707
 
7708
class getAllMasterAffiliates_result:
7709
  """
7710
  Attributes:
7711
   - success
7712
   - utx
7713
  """
7714
 
7715
  thrift_spec = (
7716
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7717
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7718
  )
7719
 
7720
  def __init__(self, success=None, utx=None,):
7721
    self.success = success
7722
    self.utx = utx
7723
 
7724
  def read(self, iprot):
7725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7727
      return
7728
    iprot.readStructBegin()
7729
    while True:
7730
      (fname, ftype, fid) = iprot.readFieldBegin()
7731
      if ftype == TType.STOP:
7732
        break
7733
      if fid == 0:
7734
        if ftype == TType.LIST:
7735
          self.success = []
3554 varun.gupt 7736
          (_etype66, _size63) = iprot.readListBegin()
7737
          for _i67 in xrange(_size63):
7738
            _elem68 = MasterAffiliate()
7739
            _elem68.read(iprot)
7740
            self.success.append(_elem68)
1899 vikas 7741
          iprot.readListEnd()
7742
        else:
7743
          iprot.skip(ftype)
7744
      elif fid == 1:
7745
        if ftype == TType.STRUCT:
1996 vikas 7746
          self.utx = UserAffiliateException()
1899 vikas 7747
          self.utx.read(iprot)
7748
        else:
7749
          iprot.skip(ftype)
7750
      else:
7751
        iprot.skip(ftype)
7752
      iprot.readFieldEnd()
7753
    iprot.readStructEnd()
7754
 
7755
  def write(self, oprot):
7756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7758
      return
7759
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7760
    if self.success is not None:
1899 vikas 7761
      oprot.writeFieldBegin('success', TType.LIST, 0)
7762
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 7763
      for iter69 in self.success:
7764
        iter69.write(oprot)
1899 vikas 7765
      oprot.writeListEnd()
7766
      oprot.writeFieldEnd()
3431 rajveer 7767
    if self.utx is not None:
1899 vikas 7768
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7769
      self.utx.write(oprot)
7770
      oprot.writeFieldEnd()
7771
    oprot.writeFieldStop()
7772
    oprot.writeStructEnd()
7773
 
3431 rajveer 7774
  def validate(self):
7775
    return
7776
 
7777
 
1899 vikas 7778
  def __repr__(self):
7779
    L = ['%s=%r' % (key, value)
7780
      for key, value in self.__dict__.iteritems()]
7781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7782
 
7783
  def __eq__(self, other):
7784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7785
 
7786
  def __ne__(self, other):
7787
    return not (self == other)
7788
 
1845 vikas 7789
class getMasterAffiliateById_args:
7790
  """
7791
  Attributes:
7792
   - id
7793
  """
7794
 
7795
  thrift_spec = (
7796
    None, # 0
7797
    (1, TType.I64, 'id', None, None, ), # 1
7798
  )
7799
 
7800
  def __init__(self, id=None,):
7801
    self.id = id
7802
 
7803
  def read(self, iprot):
7804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7806
      return
7807
    iprot.readStructBegin()
7808
    while True:
7809
      (fname, ftype, fid) = iprot.readFieldBegin()
7810
      if ftype == TType.STOP:
7811
        break
7812
      if fid == 1:
7813
        if ftype == TType.I64:
7814
          self.id = iprot.readI64();
7815
        else:
7816
          iprot.skip(ftype)
7817
      else:
7818
        iprot.skip(ftype)
7819
      iprot.readFieldEnd()
7820
    iprot.readStructEnd()
7821
 
7822
  def write(self, oprot):
7823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7825
      return
7826
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7827
    if self.id is not None:
1845 vikas 7828
      oprot.writeFieldBegin('id', TType.I64, 1)
7829
      oprot.writeI64(self.id)
7830
      oprot.writeFieldEnd()
7831
    oprot.writeFieldStop()
7832
    oprot.writeStructEnd()
7833
 
3431 rajveer 7834
  def validate(self):
7835
    return
7836
 
7837
 
1845 vikas 7838
  def __repr__(self):
7839
    L = ['%s=%r' % (key, value)
7840
      for key, value in self.__dict__.iteritems()]
7841
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7842
 
7843
  def __eq__(self, other):
7844
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7845
 
7846
  def __ne__(self, other):
7847
    return not (self == other)
7848
 
7849
class getMasterAffiliateById_result:
7850
  """
7851
  Attributes:
7852
   - success
7853
   - utx
7854
  """
7855
 
7856
  thrift_spec = (
7857
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7858
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7859
  )
7860
 
7861
  def __init__(self, success=None, utx=None,):
7862
    self.success = success
7863
    self.utx = utx
7864
 
7865
  def read(self, iprot):
7866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7868
      return
7869
    iprot.readStructBegin()
7870
    while True:
7871
      (fname, ftype, fid) = iprot.readFieldBegin()
7872
      if ftype == TType.STOP:
7873
        break
7874
      if fid == 0:
7875
        if ftype == TType.STRUCT:
7876
          self.success = MasterAffiliate()
7877
          self.success.read(iprot)
7878
        else:
7879
          iprot.skip(ftype)
7880
      elif fid == 1:
7881
        if ftype == TType.STRUCT:
1996 vikas 7882
          self.utx = UserAffiliateException()
1845 vikas 7883
          self.utx.read(iprot)
7884
        else:
7885
          iprot.skip(ftype)
7886
      else:
7887
        iprot.skip(ftype)
7888
      iprot.readFieldEnd()
7889
    iprot.readStructEnd()
7890
 
7891
  def write(self, oprot):
7892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7894
      return
7895
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7896
    if self.success is not None:
1845 vikas 7897
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7898
      self.success.write(oprot)
7899
      oprot.writeFieldEnd()
3431 rajveer 7900
    if self.utx is not None:
1845 vikas 7901
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7902
      self.utx.write(oprot)
7903
      oprot.writeFieldEnd()
7904
    oprot.writeFieldStop()
7905
    oprot.writeStructEnd()
7906
 
3431 rajveer 7907
  def validate(self):
7908
    return
7909
 
7910
 
1845 vikas 7911
  def __repr__(self):
7912
    L = ['%s=%r' % (key, value)
7913
      for key, value in self.__dict__.iteritems()]
7914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7915
 
7916
  def __eq__(self, other):
7917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7918
 
7919
  def __ne__(self, other):
7920
    return not (self == other)
7921
 
7922
class getMasterAffiliateByName_args:
7923
  """
7924
  Attributes:
7925
   - name
7926
  """
7927
 
7928
  thrift_spec = (
7929
    None, # 0
7930
    (1, TType.STRING, 'name', None, None, ), # 1
7931
  )
7932
 
7933
  def __init__(self, name=None,):
7934
    self.name = name
7935
 
7936
  def read(self, iprot):
7937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7939
      return
7940
    iprot.readStructBegin()
7941
    while True:
7942
      (fname, ftype, fid) = iprot.readFieldBegin()
7943
      if ftype == TType.STOP:
7944
        break
7945
      if fid == 1:
7946
        if ftype == TType.STRING:
7947
          self.name = iprot.readString();
7948
        else:
7949
          iprot.skip(ftype)
7950
      else:
7951
        iprot.skip(ftype)
7952
      iprot.readFieldEnd()
7953
    iprot.readStructEnd()
7954
 
7955
  def write(self, oprot):
7956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7958
      return
7959
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7960
    if self.name is not None:
1845 vikas 7961
      oprot.writeFieldBegin('name', TType.STRING, 1)
7962
      oprot.writeString(self.name)
7963
      oprot.writeFieldEnd()
7964
    oprot.writeFieldStop()
7965
    oprot.writeStructEnd()
7966
 
3431 rajveer 7967
  def validate(self):
7968
    return
7969
 
7970
 
1845 vikas 7971
  def __repr__(self):
7972
    L = ['%s=%r' % (key, value)
7973
      for key, value in self.__dict__.iteritems()]
7974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7975
 
7976
  def __eq__(self, other):
7977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7978
 
7979
  def __ne__(self, other):
7980
    return not (self == other)
7981
 
7982
class getMasterAffiliateByName_result:
7983
  """
7984
  Attributes:
7985
   - success
7986
   - utx
7987
  """
7988
 
7989
  thrift_spec = (
7990
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7991
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7992
  )
7993
 
7994
  def __init__(self, success=None, utx=None,):
7995
    self.success = success
7996
    self.utx = utx
7997
 
7998
  def read(self, iprot):
7999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8001
      return
8002
    iprot.readStructBegin()
8003
    while True:
8004
      (fname, ftype, fid) = iprot.readFieldBegin()
8005
      if ftype == TType.STOP:
8006
        break
8007
      if fid == 0:
8008
        if ftype == TType.STRUCT:
8009
          self.success = MasterAffiliate()
8010
          self.success.read(iprot)
8011
        else:
8012
          iprot.skip(ftype)
8013
      elif fid == 1:
8014
        if ftype == TType.STRUCT:
1996 vikas 8015
          self.utx = UserAffiliateException()
1845 vikas 8016
          self.utx.read(iprot)
8017
        else:
8018
          iprot.skip(ftype)
8019
      else:
8020
        iprot.skip(ftype)
8021
      iprot.readFieldEnd()
8022
    iprot.readStructEnd()
8023
 
8024
  def write(self, oprot):
8025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8027
      return
8028
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 8029
    if self.success is not None:
1845 vikas 8030
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8031
      self.success.write(oprot)
8032
      oprot.writeFieldEnd()
3431 rajveer 8033
    if self.utx is not None:
1845 vikas 8034
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8035
      self.utx.write(oprot)
8036
      oprot.writeFieldEnd()
8037
    oprot.writeFieldStop()
8038
    oprot.writeStructEnd()
8039
 
3431 rajveer 8040
  def validate(self):
8041
    return
8042
 
8043
 
1845 vikas 8044
  def __repr__(self):
8045
    L = ['%s=%r' % (key, value)
8046
      for key, value in self.__dict__.iteritems()]
8047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8048
 
8049
  def __eq__(self, other):
8050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8051
 
8052
  def __ne__(self, other):
8053
    return not (self == other)
8054
 
8055
class createAffiliate_args:
8056
  """
8057
  Attributes:
8058
   - name
8059
   - url
8060
   - masterAffiliateId
1859 vikas 8061
   - addedOn
1845 vikas 8062
  """
8063
 
8064
  thrift_spec = (
8065
    None, # 0
8066
    (1, TType.STRING, 'name', None, None, ), # 1
8067
    (2, TType.STRING, 'url', None, None, ), # 2
8068
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 8069
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 8070
  )
8071
 
1859 vikas 8072
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 8073
    self.name = name
8074
    self.url = url
8075
    self.masterAffiliateId = masterAffiliateId
1859 vikas 8076
    self.addedOn = addedOn
1845 vikas 8077
 
8078
  def read(self, iprot):
8079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8081
      return
8082
    iprot.readStructBegin()
8083
    while True:
8084
      (fname, ftype, fid) = iprot.readFieldBegin()
8085
      if ftype == TType.STOP:
8086
        break
8087
      if fid == 1:
8088
        if ftype == TType.STRING:
8089
          self.name = iprot.readString();
8090
        else:
8091
          iprot.skip(ftype)
8092
      elif fid == 2:
8093
        if ftype == TType.STRING:
8094
          self.url = iprot.readString();
8095
        else:
8096
          iprot.skip(ftype)
8097
      elif fid == 3:
8098
        if ftype == TType.I64:
8099
          self.masterAffiliateId = iprot.readI64();
8100
        else:
8101
          iprot.skip(ftype)
1859 vikas 8102
      elif fid == 4:
8103
        if ftype == TType.I64:
8104
          self.addedOn = iprot.readI64();
8105
        else:
8106
          iprot.skip(ftype)
1845 vikas 8107
      else:
8108
        iprot.skip(ftype)
8109
      iprot.readFieldEnd()
8110
    iprot.readStructEnd()
8111
 
8112
  def write(self, oprot):
8113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8115
      return
8116
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 8117
    if self.name is not None:
1845 vikas 8118
      oprot.writeFieldBegin('name', TType.STRING, 1)
8119
      oprot.writeString(self.name)
8120
      oprot.writeFieldEnd()
3431 rajveer 8121
    if self.url is not None:
1845 vikas 8122
      oprot.writeFieldBegin('url', TType.STRING, 2)
8123
      oprot.writeString(self.url)
8124
      oprot.writeFieldEnd()
3431 rajveer 8125
    if self.masterAffiliateId is not None:
1845 vikas 8126
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
8127
      oprot.writeI64(self.masterAffiliateId)
8128
      oprot.writeFieldEnd()
3431 rajveer 8129
    if self.addedOn is not None:
1859 vikas 8130
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
8131
      oprot.writeI64(self.addedOn)
8132
      oprot.writeFieldEnd()
1845 vikas 8133
    oprot.writeFieldStop()
8134
    oprot.writeStructEnd()
8135
 
3431 rajveer 8136
  def validate(self):
8137
    return
8138
 
8139
 
1845 vikas 8140
  def __repr__(self):
8141
    L = ['%s=%r' % (key, value)
8142
      for key, value in self.__dict__.iteritems()]
8143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8144
 
8145
  def __eq__(self, other):
8146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8147
 
8148
  def __ne__(self, other):
8149
    return not (self == other)
8150
 
8151
class createAffiliate_result:
8152
  """
8153
  Attributes:
8154
   - success
8155
   - utx
8156
  """
8157
 
8158
  thrift_spec = (
8159
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8160
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8161
  )
8162
 
8163
  def __init__(self, success=None, utx=None,):
8164
    self.success = success
8165
    self.utx = utx
8166
 
8167
  def read(self, iprot):
8168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8170
      return
8171
    iprot.readStructBegin()
8172
    while True:
8173
      (fname, ftype, fid) = iprot.readFieldBegin()
8174
      if ftype == TType.STOP:
8175
        break
8176
      if fid == 0:
8177
        if ftype == TType.STRUCT:
8178
          self.success = Affiliate()
8179
          self.success.read(iprot)
8180
        else:
8181
          iprot.skip(ftype)
8182
      elif fid == 1:
8183
        if ftype == TType.STRUCT:
1996 vikas 8184
          self.utx = UserAffiliateException()
1845 vikas 8185
          self.utx.read(iprot)
8186
        else:
8187
          iprot.skip(ftype)
8188
      else:
8189
        iprot.skip(ftype)
8190
      iprot.readFieldEnd()
8191
    iprot.readStructEnd()
8192
 
8193
  def write(self, oprot):
8194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8196
      return
8197
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 8198
    if self.success is not None:
1845 vikas 8199
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8200
      self.success.write(oprot)
8201
      oprot.writeFieldEnd()
3431 rajveer 8202
    if self.utx is not None:
1845 vikas 8203
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8204
      self.utx.write(oprot)
8205
      oprot.writeFieldEnd()
8206
    oprot.writeFieldStop()
8207
    oprot.writeStructEnd()
8208
 
3431 rajveer 8209
  def validate(self):
8210
    return
8211
 
8212
 
1845 vikas 8213
  def __repr__(self):
8214
    L = ['%s=%r' % (key, value)
8215
      for key, value in self.__dict__.iteritems()]
8216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8217
 
8218
  def __eq__(self, other):
8219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8220
 
8221
  def __ne__(self, other):
8222
    return not (self == other)
8223
 
8224
class getAffiliateById_args:
8225
  """
8226
  Attributes:
8227
   - id
8228
  """
8229
 
8230
  thrift_spec = (
8231
    None, # 0
8232
    (1, TType.I64, 'id', None, None, ), # 1
8233
  )
8234
 
8235
  def __init__(self, id=None,):
8236
    self.id = id
8237
 
8238
  def read(self, iprot):
8239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8241
      return
8242
    iprot.readStructBegin()
8243
    while True:
8244
      (fname, ftype, fid) = iprot.readFieldBegin()
8245
      if ftype == TType.STOP:
8246
        break
8247
      if fid == 1:
8248
        if ftype == TType.I64:
8249
          self.id = iprot.readI64();
8250
        else:
8251
          iprot.skip(ftype)
8252
      else:
8253
        iprot.skip(ftype)
8254
      iprot.readFieldEnd()
8255
    iprot.readStructEnd()
8256
 
8257
  def write(self, oprot):
8258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8260
      return
8261
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 8262
    if self.id is not None:
1845 vikas 8263
      oprot.writeFieldBegin('id', TType.I64, 1)
8264
      oprot.writeI64(self.id)
8265
      oprot.writeFieldEnd()
8266
    oprot.writeFieldStop()
8267
    oprot.writeStructEnd()
8268
 
3431 rajveer 8269
  def validate(self):
8270
    return
8271
 
8272
 
1845 vikas 8273
  def __repr__(self):
8274
    L = ['%s=%r' % (key, value)
8275
      for key, value in self.__dict__.iteritems()]
8276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8277
 
8278
  def __eq__(self, other):
8279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8280
 
8281
  def __ne__(self, other):
8282
    return not (self == other)
8283
 
8284
class getAffiliateById_result:
8285
  """
8286
  Attributes:
8287
   - success
8288
   - utx
8289
  """
8290
 
8291
  thrift_spec = (
8292
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8293
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8294
  )
8295
 
8296
  def __init__(self, success=None, utx=None,):
8297
    self.success = success
8298
    self.utx = utx
8299
 
8300
  def read(self, iprot):
8301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8303
      return
8304
    iprot.readStructBegin()
8305
    while True:
8306
      (fname, ftype, fid) = iprot.readFieldBegin()
8307
      if ftype == TType.STOP:
8308
        break
8309
      if fid == 0:
8310
        if ftype == TType.STRUCT:
8311
          self.success = Affiliate()
8312
          self.success.read(iprot)
8313
        else:
8314
          iprot.skip(ftype)
8315
      elif fid == 1:
8316
        if ftype == TType.STRUCT:
1996 vikas 8317
          self.utx = UserAffiliateException()
1845 vikas 8318
          self.utx.read(iprot)
8319
        else:
8320
          iprot.skip(ftype)
8321
      else:
8322
        iprot.skip(ftype)
8323
      iprot.readFieldEnd()
8324
    iprot.readStructEnd()
8325
 
8326
  def write(self, oprot):
8327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8329
      return
8330
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 8331
    if self.success is not None:
1845 vikas 8332
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8333
      self.success.write(oprot)
8334
      oprot.writeFieldEnd()
3431 rajveer 8335
    if self.utx is not None:
1845 vikas 8336
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8337
      self.utx.write(oprot)
8338
      oprot.writeFieldEnd()
8339
    oprot.writeFieldStop()
8340
    oprot.writeStructEnd()
8341
 
3431 rajveer 8342
  def validate(self):
8343
    return
8344
 
8345
 
1845 vikas 8346
  def __repr__(self):
8347
    L = ['%s=%r' % (key, value)
8348
      for key, value in self.__dict__.iteritems()]
8349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8350
 
8351
  def __eq__(self, other):
8352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8353
 
8354
  def __ne__(self, other):
8355
    return not (self == other)
8356
 
8357
class getAffiliateByName_args:
8358
  """
8359
  Attributes:
8360
   - name
8361
  """
8362
 
8363
  thrift_spec = (
8364
    None, # 0
8365
    (1, TType.STRING, 'name', None, None, ), # 1
8366
  )
8367
 
8368
  def __init__(self, name=None,):
8369
    self.name = name
8370
 
8371
  def read(self, iprot):
8372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8374
      return
8375
    iprot.readStructBegin()
8376
    while True:
8377
      (fname, ftype, fid) = iprot.readFieldBegin()
8378
      if ftype == TType.STOP:
8379
        break
8380
      if fid == 1:
8381
        if ftype == TType.STRING:
8382
          self.name = iprot.readString();
8383
        else:
8384
          iprot.skip(ftype)
8385
      else:
8386
        iprot.skip(ftype)
8387
      iprot.readFieldEnd()
8388
    iprot.readStructEnd()
8389
 
8390
  def write(self, oprot):
8391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8393
      return
8394
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8395
    if self.name is not None:
1845 vikas 8396
      oprot.writeFieldBegin('name', TType.STRING, 1)
8397
      oprot.writeString(self.name)
8398
      oprot.writeFieldEnd()
8399
    oprot.writeFieldStop()
8400
    oprot.writeStructEnd()
8401
 
3431 rajveer 8402
  def validate(self):
8403
    return
8404
 
8405
 
1845 vikas 8406
  def __repr__(self):
8407
    L = ['%s=%r' % (key, value)
8408
      for key, value in self.__dict__.iteritems()]
8409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8410
 
8411
  def __eq__(self, other):
8412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8413
 
8414
  def __ne__(self, other):
8415
    return not (self == other)
8416
 
8417
class getAffiliateByName_result:
8418
  """
8419
  Attributes:
8420
   - success
8421
   - utx
8422
  """
8423
 
8424
  thrift_spec = (
8425
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8426
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8427
  )
8428
 
8429
  def __init__(self, success=None, utx=None,):
8430
    self.success = success
8431
    self.utx = utx
8432
 
8433
  def read(self, iprot):
8434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8436
      return
8437
    iprot.readStructBegin()
8438
    while True:
8439
      (fname, ftype, fid) = iprot.readFieldBegin()
8440
      if ftype == TType.STOP:
8441
        break
8442
      if fid == 0:
8443
        if ftype == TType.STRUCT:
8444
          self.success = Affiliate()
8445
          self.success.read(iprot)
8446
        else:
8447
          iprot.skip(ftype)
8448
      elif fid == 1:
8449
        if ftype == TType.STRUCT:
1996 vikas 8450
          self.utx = UserAffiliateException()
1845 vikas 8451
          self.utx.read(iprot)
8452
        else:
8453
          iprot.skip(ftype)
8454
      else:
8455
        iprot.skip(ftype)
8456
      iprot.readFieldEnd()
8457
    iprot.readStructEnd()
8458
 
8459
  def write(self, oprot):
8460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8462
      return
8463
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8464
    if self.success is not None:
1845 vikas 8465
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8466
      self.success.write(oprot)
8467
      oprot.writeFieldEnd()
3431 rajveer 8468
    if self.utx is not None:
1845 vikas 8469
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8470
      self.utx.write(oprot)
8471
      oprot.writeFieldEnd()
8472
    oprot.writeFieldStop()
8473
    oprot.writeStructEnd()
8474
 
3431 rajveer 8475
  def validate(self):
8476
    return
8477
 
8478
 
1845 vikas 8479
  def __repr__(self):
8480
    L = ['%s=%r' % (key, value)
8481
      for key, value in self.__dict__.iteritems()]
8482
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8483
 
8484
  def __eq__(self, other):
8485
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8486
 
8487
  def __ne__(self, other):
8488
    return not (self == other)
8489
 
1996 vikas 8490
class getTrackerById_args:
1845 vikas 8491
  """
8492
  Attributes:
8493
   - id
8494
  """
8495
 
8496
  thrift_spec = (
8497
    None, # 0
8498
    (1, TType.I64, 'id', None, None, ), # 1
8499
  )
8500
 
8501
  def __init__(self, id=None,):
8502
    self.id = id
8503
 
8504
  def read(self, iprot):
8505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8507
      return
8508
    iprot.readStructBegin()
8509
    while True:
8510
      (fname, ftype, fid) = iprot.readFieldBegin()
8511
      if ftype == TType.STOP:
8512
        break
8513
      if fid == 1:
8514
        if ftype == TType.I64:
8515
          self.id = iprot.readI64();
8516
        else:
8517
          iprot.skip(ftype)
8518
      else:
8519
        iprot.skip(ftype)
8520
      iprot.readFieldEnd()
8521
    iprot.readStructEnd()
8522
 
8523
  def write(self, oprot):
8524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8526
      return
1996 vikas 8527
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8528
    if self.id is not None:
1845 vikas 8529
      oprot.writeFieldBegin('id', TType.I64, 1)
8530
      oprot.writeI64(self.id)
8531
      oprot.writeFieldEnd()
8532
    oprot.writeFieldStop()
8533
    oprot.writeStructEnd()
8534
 
3431 rajveer 8535
  def validate(self):
8536
    return
8537
 
8538
 
1845 vikas 8539
  def __repr__(self):
8540
    L = ['%s=%r' % (key, value)
8541
      for key, value in self.__dict__.iteritems()]
8542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8543
 
8544
  def __eq__(self, other):
8545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8546
 
8547
  def __ne__(self, other):
8548
    return not (self == other)
8549
 
8550
class getTrackerById_result:
8551
  """
8552
  Attributes:
8553
   - success
8554
   - utx
8555
  """
8556
 
8557
  thrift_spec = (
8558
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8559
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8560
  )
8561
 
8562
  def __init__(self, success=None, utx=None,):
8563
    self.success = success
8564
    self.utx = utx
8565
 
8566
  def read(self, iprot):
8567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8569
      return
8570
    iprot.readStructBegin()
8571
    while True:
8572
      (fname, ftype, fid) = iprot.readFieldBegin()
8573
      if ftype == TType.STOP:
8574
        break
8575
      if fid == 0:
8576
        if ftype == TType.STRUCT:
8577
          self.success = Tracker()
8578
          self.success.read(iprot)
8579
        else:
8580
          iprot.skip(ftype)
8581
      elif fid == 1:
8582
        if ftype == TType.STRUCT:
1996 vikas 8583
          self.utx = UserAffiliateException()
1845 vikas 8584
          self.utx.read(iprot)
8585
        else:
8586
          iprot.skip(ftype)
8587
      else:
8588
        iprot.skip(ftype)
8589
      iprot.readFieldEnd()
8590
    iprot.readStructEnd()
8591
 
8592
  def write(self, oprot):
8593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8595
      return
8596
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8597
    if self.success is not None:
1845 vikas 8598
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8599
      self.success.write(oprot)
8600
      oprot.writeFieldEnd()
3431 rajveer 8601
    if self.utx is not None:
1845 vikas 8602
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8603
      self.utx.write(oprot)
8604
      oprot.writeFieldEnd()
8605
    oprot.writeFieldStop()
8606
    oprot.writeStructEnd()
8607
 
3431 rajveer 8608
  def validate(self):
8609
    return
8610
 
8611
 
1845 vikas 8612
  def __repr__(self):
8613
    L = ['%s=%r' % (key, value)
8614
      for key, value in self.__dict__.iteritems()]
8615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8616
 
8617
  def __eq__(self, other):
8618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8619
 
8620
  def __ne__(self, other):
8621
    return not (self == other)
8622
 
1996 vikas 8623
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8624
  """
8625
  Attributes:
1996 vikas 8626
   - id
1845 vikas 8627
  """
8628
 
8629
  thrift_spec = (
8630
    None, # 0
1996 vikas 8631
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8632
  )
8633
 
1996 vikas 8634
  def __init__(self, id=None,):
8635
    self.id = id
1845 vikas 8636
 
8637
  def read(self, iprot):
8638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8640
      return
8641
    iprot.readStructBegin()
8642
    while True:
8643
      (fname, ftype, fid) = iprot.readFieldBegin()
8644
      if ftype == TType.STOP:
8645
        break
8646
      if fid == 1:
8647
        if ftype == TType.I64:
1996 vikas 8648
          self.id = iprot.readI64();
1845 vikas 8649
        else:
8650
          iprot.skip(ftype)
8651
      else:
8652
        iprot.skip(ftype)
8653
      iprot.readFieldEnd()
8654
    iprot.readStructEnd()
8655
 
8656
  def write(self, oprot):
8657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8659
      return
1996 vikas 8660
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8661
    if self.id is not None:
1996 vikas 8662
      oprot.writeFieldBegin('id', TType.I64, 1)
8663
      oprot.writeI64(self.id)
1845 vikas 8664
      oprot.writeFieldEnd()
8665
    oprot.writeFieldStop()
8666
    oprot.writeStructEnd()
8667
 
3431 rajveer 8668
  def validate(self):
8669
    return
8670
 
8671
 
1845 vikas 8672
  def __repr__(self):
8673
    L = ['%s=%r' % (key, value)
8674
      for key, value in self.__dict__.iteritems()]
8675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8676
 
8677
  def __eq__(self, other):
8678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8679
 
8680
  def __ne__(self, other):
8681
    return not (self == other)
8682
 
1996 vikas 8683
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8684
  """
8685
  Attributes:
8686
   - success
8687
   - utx
8688
  """
8689
 
8690
  thrift_spec = (
1996 vikas 8691
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8692
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8693
  )
8694
 
8695
  def __init__(self, success=None, utx=None,):
8696
    self.success = success
8697
    self.utx = utx
8698
 
8699
  def read(self, iprot):
8700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8702
      return
8703
    iprot.readStructBegin()
8704
    while True:
8705
      (fname, ftype, fid) = iprot.readFieldBegin()
8706
      if ftype == TType.STOP:
8707
        break
8708
      if fid == 0:
8709
        if ftype == TType.LIST:
8710
          self.success = []
3554 varun.gupt 8711
          (_etype73, _size70) = iprot.readListBegin()
8712
          for _i74 in xrange(_size70):
8713
            _elem75 = Affiliate()
8714
            _elem75.read(iprot)
8715
            self.success.append(_elem75)
1845 vikas 8716
          iprot.readListEnd()
8717
        else:
8718
          iprot.skip(ftype)
8719
      elif fid == 1:
8720
        if ftype == TType.STRUCT:
1996 vikas 8721
          self.utx = UserAffiliateException()
1845 vikas 8722
          self.utx.read(iprot)
8723
        else:
8724
          iprot.skip(ftype)
8725
      else:
8726
        iprot.skip(ftype)
8727
      iprot.readFieldEnd()
8728
    iprot.readStructEnd()
8729
 
8730
  def write(self, oprot):
8731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8733
      return
1996 vikas 8734
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8735
    if self.success is not None:
1845 vikas 8736
      oprot.writeFieldBegin('success', TType.LIST, 0)
8737
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 8738
      for iter76 in self.success:
8739
        iter76.write(oprot)
1845 vikas 8740
      oprot.writeListEnd()
8741
      oprot.writeFieldEnd()
3431 rajveer 8742
    if self.utx is not None:
1845 vikas 8743
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8744
      self.utx.write(oprot)
8745
      oprot.writeFieldEnd()
8746
    oprot.writeFieldStop()
8747
    oprot.writeStructEnd()
8748
 
3431 rajveer 8749
  def validate(self):
8750
    return
8751
 
8752
 
1845 vikas 8753
  def __repr__(self):
8754
    L = ['%s=%r' % (key, value)
8755
      for key, value in self.__dict__.iteritems()]
8756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8757
 
8758
  def __eq__(self, other):
8759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8760
 
8761
  def __ne__(self, other):
8762
    return not (self == other)
8763
 
8764
class addTrackLog_args:
8765
  """
8766
  Attributes:
1996 vikas 8767
   - affiliateId
1845 vikas 8768
   - userId
8769
   - event
8770
   - url
8771
   - data
1859 vikas 8772
   - addedOn
1845 vikas 8773
  """
8774
 
8775
  thrift_spec = (
8776
    None, # 0
1996 vikas 8777
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8778
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8779
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8780
    (4, TType.STRING, 'url', None, None, ), # 4
8781
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8782
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8783
  )
8784
 
1996 vikas 8785
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8786
    self.affiliateId = affiliateId
1845 vikas 8787
    self.userId = userId
8788
    self.event = event
8789
    self.url = url
8790
    self.data = data
1859 vikas 8791
    self.addedOn = addedOn
1845 vikas 8792
 
8793
  def read(self, iprot):
8794
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8795
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8796
      return
8797
    iprot.readStructBegin()
8798
    while True:
8799
      (fname, ftype, fid) = iprot.readFieldBegin()
8800
      if ftype == TType.STOP:
8801
        break
8802
      if fid == 1:
8803
        if ftype == TType.I64:
1996 vikas 8804
          self.affiliateId = iprot.readI64();
1845 vikas 8805
        else:
8806
          iprot.skip(ftype)
8807
      elif fid == 2:
8808
        if ftype == TType.I64:
8809
          self.userId = iprot.readI64();
8810
        else:
8811
          iprot.skip(ftype)
8812
      elif fid == 3:
3378 vikas 8813
        if ftype == TType.I32:
8814
          self.event = iprot.readI32();
1845 vikas 8815
        else:
8816
          iprot.skip(ftype)
8817
      elif fid == 4:
8818
        if ftype == TType.STRING:
8819
          self.url = iprot.readString();
8820
        else:
8821
          iprot.skip(ftype)
8822
      elif fid == 5:
8823
        if ftype == TType.STRING:
8824
          self.data = iprot.readString();
8825
        else:
8826
          iprot.skip(ftype)
1859 vikas 8827
      elif fid == 6:
8828
        if ftype == TType.I64:
8829
          self.addedOn = iprot.readI64();
8830
        else:
8831
          iprot.skip(ftype)
1845 vikas 8832
      else:
8833
        iprot.skip(ftype)
8834
      iprot.readFieldEnd()
8835
    iprot.readStructEnd()
8836
 
8837
  def write(self, oprot):
8838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8840
      return
8841
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8842
    if self.affiliateId is not None:
1996 vikas 8843
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8844
      oprot.writeI64(self.affiliateId)
1845 vikas 8845
      oprot.writeFieldEnd()
3431 rajveer 8846
    if self.userId is not None:
1845 vikas 8847
      oprot.writeFieldBegin('userId', TType.I64, 2)
8848
      oprot.writeI64(self.userId)
8849
      oprot.writeFieldEnd()
3431 rajveer 8850
    if self.event is not None:
3378 vikas 8851
      oprot.writeFieldBegin('event', TType.I32, 3)
8852
      oprot.writeI32(self.event)
1845 vikas 8853
      oprot.writeFieldEnd()
3431 rajveer 8854
    if self.url is not None:
1845 vikas 8855
      oprot.writeFieldBegin('url', TType.STRING, 4)
8856
      oprot.writeString(self.url)
8857
      oprot.writeFieldEnd()
3431 rajveer 8858
    if self.data is not None:
1845 vikas 8859
      oprot.writeFieldBegin('data', TType.STRING, 5)
8860
      oprot.writeString(self.data)
8861
      oprot.writeFieldEnd()
3431 rajveer 8862
    if self.addedOn is not None:
1859 vikas 8863
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8864
      oprot.writeI64(self.addedOn)
8865
      oprot.writeFieldEnd()
1845 vikas 8866
    oprot.writeFieldStop()
8867
    oprot.writeStructEnd()
8868
 
3431 rajveer 8869
  def validate(self):
8870
    return
8871
 
8872
 
1845 vikas 8873
  def __repr__(self):
8874
    L = ['%s=%r' % (key, value)
8875
      for key, value in self.__dict__.iteritems()]
8876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8877
 
8878
  def __eq__(self, other):
8879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8880
 
8881
  def __ne__(self, other):
8882
    return not (self == other)
8883
 
8884
class addTrackLog_result:
8885
  """
8886
  Attributes:
8887
   - success
8888
   - utx
8889
  """
8890
 
8891
  thrift_spec = (
8892
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8893
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8894
  )
8895
 
8896
  def __init__(self, success=None, utx=None,):
8897
    self.success = success
8898
    self.utx = utx
8899
 
8900
  def read(self, iprot):
8901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8903
      return
8904
    iprot.readStructBegin()
8905
    while True:
8906
      (fname, ftype, fid) = iprot.readFieldBegin()
8907
      if ftype == TType.STOP:
8908
        break
8909
      if fid == 0:
8910
        if ftype == TType.I64:
8911
          self.success = iprot.readI64();
8912
        else:
8913
          iprot.skip(ftype)
8914
      elif fid == 1:
8915
        if ftype == TType.STRUCT:
1996 vikas 8916
          self.utx = UserAffiliateException()
1845 vikas 8917
          self.utx.read(iprot)
8918
        else:
8919
          iprot.skip(ftype)
8920
      else:
8921
        iprot.skip(ftype)
8922
      iprot.readFieldEnd()
8923
    iprot.readStructEnd()
8924
 
8925
  def write(self, oprot):
8926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8928
      return
8929
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8930
    if self.success is not None:
1845 vikas 8931
      oprot.writeFieldBegin('success', TType.I64, 0)
8932
      oprot.writeI64(self.success)
8933
      oprot.writeFieldEnd()
3431 rajveer 8934
    if self.utx is not None:
1845 vikas 8935
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8936
      self.utx.write(oprot)
8937
      oprot.writeFieldEnd()
8938
    oprot.writeFieldStop()
8939
    oprot.writeStructEnd()
8940
 
3431 rajveer 8941
  def validate(self):
8942
    return
8943
 
8944
 
1845 vikas 8945
  def __repr__(self):
8946
    L = ['%s=%r' % (key, value)
8947
      for key, value in self.__dict__.iteritems()]
8948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8949
 
8950
  def __eq__(self, other):
8951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8952
 
8953
  def __ne__(self, other):
8954
    return not (self == other)
8955
 
8956
class getTrackLogById_args:
8957
  """
8958
  Attributes:
8959
   - id
8960
  """
8961
 
8962
  thrift_spec = (
8963
    None, # 0
8964
    (1, TType.I64, 'id', None, None, ), # 1
8965
  )
8966
 
8967
  def __init__(self, id=None,):
8968
    self.id = id
8969
 
8970
  def read(self, iprot):
8971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8973
      return
8974
    iprot.readStructBegin()
8975
    while True:
8976
      (fname, ftype, fid) = iprot.readFieldBegin()
8977
      if ftype == TType.STOP:
8978
        break
8979
      if fid == 1:
8980
        if ftype == TType.I64:
8981
          self.id = iprot.readI64();
8982
        else:
8983
          iprot.skip(ftype)
8984
      else:
8985
        iprot.skip(ftype)
8986
      iprot.readFieldEnd()
8987
    iprot.readStructEnd()
8988
 
8989
  def write(self, oprot):
8990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8992
      return
8993
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8994
    if self.id is not None:
1845 vikas 8995
      oprot.writeFieldBegin('id', TType.I64, 1)
8996
      oprot.writeI64(self.id)
8997
      oprot.writeFieldEnd()
8998
    oprot.writeFieldStop()
8999
    oprot.writeStructEnd()
9000
 
3431 rajveer 9001
  def validate(self):
9002
    return
9003
 
9004
 
1845 vikas 9005
  def __repr__(self):
9006
    L = ['%s=%r' % (key, value)
9007
      for key, value in self.__dict__.iteritems()]
9008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9009
 
9010
  def __eq__(self, other):
9011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9012
 
9013
  def __ne__(self, other):
9014
    return not (self == other)
9015
 
9016
class getTrackLogById_result:
9017
  """
9018
  Attributes:
9019
   - success
9020
   - utx
9021
  """
9022
 
9023
  thrift_spec = (
9024
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 9025
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9026
  )
9027
 
9028
  def __init__(self, success=None, utx=None,):
9029
    self.success = success
9030
    self.utx = utx
9031
 
9032
  def read(self, iprot):
9033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9035
      return
9036
    iprot.readStructBegin()
9037
    while True:
9038
      (fname, ftype, fid) = iprot.readFieldBegin()
9039
      if ftype == TType.STOP:
9040
        break
9041
      if fid == 0:
9042
        if ftype == TType.STRUCT:
9043
          self.success = TrackLog()
9044
          self.success.read(iprot)
9045
        else:
9046
          iprot.skip(ftype)
9047
      elif fid == 1:
9048
        if ftype == TType.STRUCT:
1996 vikas 9049
          self.utx = UserAffiliateException()
1845 vikas 9050
          self.utx.read(iprot)
9051
        else:
9052
          iprot.skip(ftype)
9053
      else:
9054
        iprot.skip(ftype)
9055
      iprot.readFieldEnd()
9056
    iprot.readStructEnd()
9057
 
9058
  def write(self, oprot):
9059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9061
      return
9062
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 9063
    if self.success is not None:
1845 vikas 9064
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9065
      self.success.write(oprot)
9066
      oprot.writeFieldEnd()
3431 rajveer 9067
    if self.utx is not None:
1845 vikas 9068
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9069
      self.utx.write(oprot)
9070
      oprot.writeFieldEnd()
9071
    oprot.writeFieldStop()
9072
    oprot.writeStructEnd()
9073
 
3431 rajveer 9074
  def validate(self):
9075
    return
9076
 
9077
 
1845 vikas 9078
  def __repr__(self):
9079
    L = ['%s=%r' % (key, value)
9080
      for key, value in self.__dict__.iteritems()]
9081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9082
 
9083
  def __eq__(self, other):
9084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9085
 
9086
  def __ne__(self, other):
9087
    return not (self == other)
9088
 
1996 vikas 9089
class getTrackLogsByAffiliate_args:
1845 vikas 9090
  """
9091
  Attributes:
1996 vikas 9092
   - affiliateId
3293 vikas 9093
   - startDate
9094
   - endDate
1845 vikas 9095
  """
9096
 
9097
  thrift_spec = (
9098
    None, # 0
1996 vikas 9099
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 9100
    (2, TType.I64, 'startDate', None, None, ), # 2
9101
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 9102
  )
9103
 
3293 vikas 9104
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 9105
    self.affiliateId = affiliateId
3293 vikas 9106
    self.startDate = startDate
9107
    self.endDate = endDate
1845 vikas 9108
 
9109
  def read(self, iprot):
9110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9112
      return
9113
    iprot.readStructBegin()
9114
    while True:
9115
      (fname, ftype, fid) = iprot.readFieldBegin()
9116
      if ftype == TType.STOP:
9117
        break
9118
      if fid == 1:
9119
        if ftype == TType.I64:
1996 vikas 9120
          self.affiliateId = iprot.readI64();
1845 vikas 9121
        else:
9122
          iprot.skip(ftype)
3293 vikas 9123
      elif fid == 2:
9124
        if ftype == TType.I64:
9125
          self.startDate = iprot.readI64();
9126
        else:
9127
          iprot.skip(ftype)
9128
      elif fid == 3:
9129
        if ftype == TType.I64:
9130
          self.endDate = iprot.readI64();
9131
        else:
9132
          iprot.skip(ftype)
1845 vikas 9133
      else:
9134
        iprot.skip(ftype)
9135
      iprot.readFieldEnd()
9136
    iprot.readStructEnd()
9137
 
9138
  def write(self, oprot):
9139
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9140
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9141
      return
1996 vikas 9142
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 9143
    if self.affiliateId is not None:
1996 vikas 9144
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
9145
      oprot.writeI64(self.affiliateId)
1845 vikas 9146
      oprot.writeFieldEnd()
3431 rajveer 9147
    if self.startDate is not None:
3293 vikas 9148
      oprot.writeFieldBegin('startDate', TType.I64, 2)
9149
      oprot.writeI64(self.startDate)
9150
      oprot.writeFieldEnd()
3431 rajveer 9151
    if self.endDate is not None:
3293 vikas 9152
      oprot.writeFieldBegin('endDate', TType.I64, 3)
9153
      oprot.writeI64(self.endDate)
9154
      oprot.writeFieldEnd()
1845 vikas 9155
    oprot.writeFieldStop()
9156
    oprot.writeStructEnd()
9157
 
3431 rajveer 9158
  def validate(self):
9159
    return
9160
 
9161
 
1845 vikas 9162
  def __repr__(self):
9163
    L = ['%s=%r' % (key, value)
9164
      for key, value in self.__dict__.iteritems()]
9165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9166
 
9167
  def __eq__(self, other):
9168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9169
 
9170
  def __ne__(self, other):
9171
    return not (self == other)
9172
 
1996 vikas 9173
class getTrackLogsByAffiliate_result:
1845 vikas 9174
  """
9175
  Attributes:
9176
   - success
9177
   - utx
9178
  """
9179
 
9180
  thrift_spec = (
9181
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9182
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9183
  )
9184
 
9185
  def __init__(self, success=None, utx=None,):
9186
    self.success = success
9187
    self.utx = utx
9188
 
9189
  def read(self, iprot):
9190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9192
      return
9193
    iprot.readStructBegin()
9194
    while True:
9195
      (fname, ftype, fid) = iprot.readFieldBegin()
9196
      if ftype == TType.STOP:
9197
        break
9198
      if fid == 0:
9199
        if ftype == TType.LIST:
9200
          self.success = []
3554 varun.gupt 9201
          (_etype80, _size77) = iprot.readListBegin()
9202
          for _i81 in xrange(_size77):
9203
            _elem82 = TrackLog()
9204
            _elem82.read(iprot)
9205
            self.success.append(_elem82)
1845 vikas 9206
          iprot.readListEnd()
9207
        else:
9208
          iprot.skip(ftype)
9209
      elif fid == 1:
9210
        if ftype == TType.STRUCT:
1996 vikas 9211
          self.utx = UserAffiliateException()
1845 vikas 9212
          self.utx.read(iprot)
9213
        else:
9214
          iprot.skip(ftype)
9215
      else:
9216
        iprot.skip(ftype)
9217
      iprot.readFieldEnd()
9218
    iprot.readStructEnd()
9219
 
9220
  def write(self, oprot):
9221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9223
      return
1996 vikas 9224
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 9225
    if self.success is not None:
1845 vikas 9226
      oprot.writeFieldBegin('success', TType.LIST, 0)
9227
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9228
      for iter83 in self.success:
9229
        iter83.write(oprot)
1845 vikas 9230
      oprot.writeListEnd()
9231
      oprot.writeFieldEnd()
3431 rajveer 9232
    if self.utx is not None:
1845 vikas 9233
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9234
      self.utx.write(oprot)
9235
      oprot.writeFieldEnd()
9236
    oprot.writeFieldStop()
9237
    oprot.writeStructEnd()
9238
 
3431 rajveer 9239
  def validate(self):
9240
    return
9241
 
9242
 
1845 vikas 9243
  def __repr__(self):
9244
    L = ['%s=%r' % (key, value)
9245
      for key, value in self.__dict__.iteritems()]
9246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9247
 
9248
  def __eq__(self, other):
9249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9250
 
9251
  def __ne__(self, other):
9252
    return not (self == other)
9253
 
9254
class getTrackLogsByUser_args:
9255
  """
9256
  Attributes:
9257
   - userId
9258
  """
9259
 
9260
  thrift_spec = (
9261
    None, # 0
9262
    (1, TType.I64, 'userId', None, None, ), # 1
9263
  )
9264
 
9265
  def __init__(self, userId=None,):
9266
    self.userId = userId
9267
 
9268
  def read(self, iprot):
9269
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9270
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9271
      return
9272
    iprot.readStructBegin()
9273
    while True:
9274
      (fname, ftype, fid) = iprot.readFieldBegin()
9275
      if ftype == TType.STOP:
9276
        break
9277
      if fid == 1:
9278
        if ftype == TType.I64:
9279
          self.userId = iprot.readI64();
9280
        else:
9281
          iprot.skip(ftype)
9282
      else:
9283
        iprot.skip(ftype)
9284
      iprot.readFieldEnd()
9285
    iprot.readStructEnd()
9286
 
9287
  def write(self, oprot):
9288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9290
      return
9291
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 9292
    if self.userId is not None:
1845 vikas 9293
      oprot.writeFieldBegin('userId', TType.I64, 1)
9294
      oprot.writeI64(self.userId)
9295
      oprot.writeFieldEnd()
9296
    oprot.writeFieldStop()
9297
    oprot.writeStructEnd()
9298
 
3431 rajveer 9299
  def validate(self):
9300
    return
9301
 
9302
 
1845 vikas 9303
  def __repr__(self):
9304
    L = ['%s=%r' % (key, value)
9305
      for key, value in self.__dict__.iteritems()]
9306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9307
 
9308
  def __eq__(self, other):
9309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9310
 
9311
  def __ne__(self, other):
9312
    return not (self == other)
9313
 
9314
class getTrackLogsByUser_result:
9315
  """
9316
  Attributes:
9317
   - success
9318
   - utx
9319
  """
9320
 
9321
  thrift_spec = (
9322
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9323
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9324
  )
9325
 
9326
  def __init__(self, success=None, utx=None,):
9327
    self.success = success
9328
    self.utx = utx
9329
 
9330
  def read(self, iprot):
9331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9333
      return
9334
    iprot.readStructBegin()
9335
    while True:
9336
      (fname, ftype, fid) = iprot.readFieldBegin()
9337
      if ftype == TType.STOP:
9338
        break
9339
      if fid == 0:
9340
        if ftype == TType.LIST:
9341
          self.success = []
3554 varun.gupt 9342
          (_etype87, _size84) = iprot.readListBegin()
9343
          for _i88 in xrange(_size84):
9344
            _elem89 = TrackLog()
9345
            _elem89.read(iprot)
9346
            self.success.append(_elem89)
1845 vikas 9347
          iprot.readListEnd()
9348
        else:
9349
          iprot.skip(ftype)
9350
      elif fid == 1:
9351
        if ftype == TType.STRUCT:
1996 vikas 9352
          self.utx = UserAffiliateException()
1845 vikas 9353
          self.utx.read(iprot)
9354
        else:
9355
          iprot.skip(ftype)
9356
      else:
9357
        iprot.skip(ftype)
9358
      iprot.readFieldEnd()
9359
    iprot.readStructEnd()
9360
 
9361
  def write(self, oprot):
9362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9364
      return
9365
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9366
    if self.success is not None:
1845 vikas 9367
      oprot.writeFieldBegin('success', TType.LIST, 0)
9368
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9369
      for iter90 in self.success:
9370
        iter90.write(oprot)
1845 vikas 9371
      oprot.writeListEnd()
9372
      oprot.writeFieldEnd()
3431 rajveer 9373
    if self.utx is not None:
1845 vikas 9374
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9375
      self.utx.write(oprot)
9376
      oprot.writeFieldEnd()
9377
    oprot.writeFieldStop()
9378
    oprot.writeStructEnd()
9379
 
3431 rajveer 9380
  def validate(self):
9381
    return
9382
 
9383
 
1845 vikas 9384
  def __repr__(self):
9385
    L = ['%s=%r' % (key, value)
9386
      for key, value in self.__dict__.iteritems()]
9387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9388
 
9389
  def __eq__(self, other):
9390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9391
 
9392
  def __ne__(self, other):
9393
    return not (self == other)
9394
 
9395
class getTrackLogs_args:
9396
  """
9397
  Attributes:
9398
   - userId
9399
   - event
9400
   - url
9401
  """
9402
 
9403
  thrift_spec = (
9404
    None, # 0
1996 vikas 9405
    (1, TType.I64, 'userId', None, None, ), # 1
9406
    (2, TType.STRING, 'event', None, None, ), # 2
9407
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9408
  )
9409
 
1996 vikas 9410
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9411
    self.userId = userId
9412
    self.event = event
9413
    self.url = url
9414
 
9415
  def read(self, iprot):
9416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9418
      return
9419
    iprot.readStructBegin()
9420
    while True:
9421
      (fname, ftype, fid) = iprot.readFieldBegin()
9422
      if ftype == TType.STOP:
9423
        break
9424
      if fid == 1:
9425
        if ftype == TType.I64:
1996 vikas 9426
          self.userId = iprot.readI64();
1845 vikas 9427
        else:
9428
          iprot.skip(ftype)
9429
      elif fid == 2:
9430
        if ftype == TType.STRING:
9431
          self.event = iprot.readString();
9432
        else:
9433
          iprot.skip(ftype)
1996 vikas 9434
      elif fid == 3:
1845 vikas 9435
        if ftype == TType.STRING:
9436
          self.url = iprot.readString();
9437
        else:
9438
          iprot.skip(ftype)
9439
      else:
9440
        iprot.skip(ftype)
9441
      iprot.readFieldEnd()
9442
    iprot.readStructEnd()
9443
 
9444
  def write(self, oprot):
9445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9447
      return
9448
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9449
    if self.userId is not None:
1996 vikas 9450
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9451
      oprot.writeI64(self.userId)
9452
      oprot.writeFieldEnd()
3431 rajveer 9453
    if self.event is not None:
1996 vikas 9454
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9455
      oprot.writeString(self.event)
9456
      oprot.writeFieldEnd()
3431 rajveer 9457
    if self.url is not None:
1996 vikas 9458
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9459
      oprot.writeString(self.url)
9460
      oprot.writeFieldEnd()
9461
    oprot.writeFieldStop()
9462
    oprot.writeStructEnd()
9463
 
3431 rajveer 9464
  def validate(self):
9465
    return
9466
 
9467
 
1845 vikas 9468
  def __repr__(self):
9469
    L = ['%s=%r' % (key, value)
9470
      for key, value in self.__dict__.iteritems()]
9471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9472
 
9473
  def __eq__(self, other):
9474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9475
 
9476
  def __ne__(self, other):
9477
    return not (self == other)
9478
 
9479
class getTrackLogs_result:
9480
  """
9481
  Attributes:
9482
   - success
9483
   - utx
9484
  """
9485
 
9486
  thrift_spec = (
9487
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9488
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9489
  )
9490
 
9491
  def __init__(self, success=None, utx=None,):
9492
    self.success = success
9493
    self.utx = utx
9494
 
9495
  def read(self, iprot):
9496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9498
      return
9499
    iprot.readStructBegin()
9500
    while True:
9501
      (fname, ftype, fid) = iprot.readFieldBegin()
9502
      if ftype == TType.STOP:
9503
        break
9504
      if fid == 0:
9505
        if ftype == TType.LIST:
9506
          self.success = []
3554 varun.gupt 9507
          (_etype94, _size91) = iprot.readListBegin()
9508
          for _i95 in xrange(_size91):
9509
            _elem96 = TrackLog()
9510
            _elem96.read(iprot)
9511
            self.success.append(_elem96)
1845 vikas 9512
          iprot.readListEnd()
9513
        else:
9514
          iprot.skip(ftype)
9515
      elif fid == 1:
9516
        if ftype == TType.STRUCT:
1996 vikas 9517
          self.utx = UserAffiliateException()
1845 vikas 9518
          self.utx.read(iprot)
9519
        else:
9520
          iprot.skip(ftype)
9521
      else:
9522
        iprot.skip(ftype)
9523
      iprot.readFieldEnd()
9524
    iprot.readStructEnd()
9525
 
9526
  def write(self, oprot):
9527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9529
      return
9530
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9531
    if self.success is not None:
1845 vikas 9532
      oprot.writeFieldBegin('success', TType.LIST, 0)
9533
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 9534
      for iter97 in self.success:
9535
        iter97.write(oprot)
1845 vikas 9536
      oprot.writeListEnd()
9537
      oprot.writeFieldEnd()
3431 rajveer 9538
    if self.utx is not None:
1845 vikas 9539
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9540
      self.utx.write(oprot)
9541
      oprot.writeFieldEnd()
9542
    oprot.writeFieldStop()
9543
    oprot.writeStructEnd()
9544
 
3431 rajveer 9545
  def validate(self):
9546
    return
9547
 
9548
 
1845 vikas 9549
  def __repr__(self):
9550
    L = ['%s=%r' % (key, value)
9551
      for key, value in self.__dict__.iteritems()]
9552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9553
 
9554
  def __eq__(self, other):
9555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9556
 
9557
  def __ne__(self, other):
9558
    return not (self == other)
9559
 
559 chandransh 9560
class createCart_args:
94 ashish 9561
  """
9562
  Attributes:
559 chandransh 9563
   - userId
94 ashish 9564
  """
9565
 
9566
  thrift_spec = (
9567
    None, # 0
559 chandransh 9568
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9569
  )
9570
 
559 chandransh 9571
  def __init__(self, userId=None,):
9572
    self.userId = userId
94 ashish 9573
 
9574
  def read(self, iprot):
9575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9577
      return
9578
    iprot.readStructBegin()
9579
    while True:
9580
      (fname, ftype, fid) = iprot.readFieldBegin()
9581
      if ftype == TType.STOP:
9582
        break
9583
      if fid == 1:
9584
        if ftype == TType.I64:
559 chandransh 9585
          self.userId = iprot.readI64();
94 ashish 9586
        else:
9587
          iprot.skip(ftype)
559 chandransh 9588
      else:
9589
        iprot.skip(ftype)
9590
      iprot.readFieldEnd()
9591
    iprot.readStructEnd()
9592
 
9593
  def write(self, oprot):
9594
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9595
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9596
      return
9597
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9598
    if self.userId is not None:
559 chandransh 9599
      oprot.writeFieldBegin('userId', TType.I64, 1)
9600
      oprot.writeI64(self.userId)
9601
      oprot.writeFieldEnd()
9602
    oprot.writeFieldStop()
9603
    oprot.writeStructEnd()
9604
 
3431 rajveer 9605
  def validate(self):
9606
    return
9607
 
9608
 
559 chandransh 9609
  def __repr__(self):
9610
    L = ['%s=%r' % (key, value)
9611
      for key, value in self.__dict__.iteritems()]
9612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9613
 
9614
  def __eq__(self, other):
9615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9616
 
9617
  def __ne__(self, other):
9618
    return not (self == other)
9619
 
9620
class createCart_result:
9621
  """
9622
  Attributes:
9623
   - success
9624
   - scx
9625
  """
9626
 
9627
  thrift_spec = (
9628
    (0, TType.I64, 'success', None, None, ), # 0
9629
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9630
  )
9631
 
9632
  def __init__(self, success=None, scx=None,):
9633
    self.success = success
9634
    self.scx = scx
9635
 
9636
  def read(self, iprot):
9637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9639
      return
9640
    iprot.readStructBegin()
9641
    while True:
9642
      (fname, ftype, fid) = iprot.readFieldBegin()
9643
      if ftype == TType.STOP:
9644
        break
9645
      if fid == 0:
94 ashish 9646
        if ftype == TType.I64:
559 chandransh 9647
          self.success = iprot.readI64();
94 ashish 9648
        else:
9649
          iprot.skip(ftype)
559 chandransh 9650
      elif fid == 1:
9651
        if ftype == TType.STRUCT:
9652
          self.scx = ShoppingCartException()
9653
          self.scx.read(iprot)
9654
        else:
9655
          iprot.skip(ftype)
94 ashish 9656
      else:
9657
        iprot.skip(ftype)
9658
      iprot.readFieldEnd()
9659
    iprot.readStructEnd()
9660
 
9661
  def write(self, oprot):
9662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9664
      return
559 chandransh 9665
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9666
    if self.success is not None:
559 chandransh 9667
      oprot.writeFieldBegin('success', TType.I64, 0)
9668
      oprot.writeI64(self.success)
94 ashish 9669
      oprot.writeFieldEnd()
3431 rajveer 9670
    if self.scx is not None:
559 chandransh 9671
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9672
      self.scx.write(oprot)
94 ashish 9673
      oprot.writeFieldEnd()
9674
    oprot.writeFieldStop()
9675
    oprot.writeStructEnd()
9676
 
3431 rajveer 9677
  def validate(self):
9678
    return
9679
 
9680
 
94 ashish 9681
  def __repr__(self):
9682
    L = ['%s=%r' % (key, value)
9683
      for key, value in self.__dict__.iteritems()]
9684
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9685
 
9686
  def __eq__(self, other):
9687
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9688
 
9689
  def __ne__(self, other):
9690
    return not (self == other)
9691
 
559 chandransh 9692
class getCurrentCart_args:
94 ashish 9693
  """
9694
  Attributes:
559 chandransh 9695
   - userId
9696
  """
9697
 
9698
  thrift_spec = (
9699
    None, # 0
9700
    (1, TType.I64, 'userId', None, None, ), # 1
9701
  )
9702
 
9703
  def __init__(self, userId=None,):
9704
    self.userId = userId
9705
 
9706
  def read(self, iprot):
9707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9709
      return
9710
    iprot.readStructBegin()
9711
    while True:
9712
      (fname, ftype, fid) = iprot.readFieldBegin()
9713
      if ftype == TType.STOP:
9714
        break
9715
      if fid == 1:
9716
        if ftype == TType.I64:
9717
          self.userId = iprot.readI64();
9718
        else:
9719
          iprot.skip(ftype)
9720
      else:
9721
        iprot.skip(ftype)
9722
      iprot.readFieldEnd()
9723
    iprot.readStructEnd()
9724
 
9725
  def write(self, oprot):
9726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9728
      return
9729
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9730
    if self.userId is not None:
559 chandransh 9731
      oprot.writeFieldBegin('userId', TType.I64, 1)
9732
      oprot.writeI64(self.userId)
9733
      oprot.writeFieldEnd()
9734
    oprot.writeFieldStop()
9735
    oprot.writeStructEnd()
9736
 
3431 rajveer 9737
  def validate(self):
9738
    return
9739
 
9740
 
559 chandransh 9741
  def __repr__(self):
9742
    L = ['%s=%r' % (key, value)
9743
      for key, value in self.__dict__.iteritems()]
9744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9745
 
9746
  def __eq__(self, other):
9747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9748
 
9749
  def __ne__(self, other):
9750
    return not (self == other)
9751
 
9752
class getCurrentCart_result:
9753
  """
9754
  Attributes:
94 ashish 9755
   - success
559 chandransh 9756
   - scx
94 ashish 9757
  """
9758
 
9759
  thrift_spec = (
559 chandransh 9760
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9761
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9762
  )
9763
 
559 chandransh 9764
  def __init__(self, success=None, scx=None,):
94 ashish 9765
    self.success = success
559 chandransh 9766
    self.scx = scx
94 ashish 9767
 
9768
  def read(self, iprot):
9769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9771
      return
9772
    iprot.readStructBegin()
9773
    while True:
9774
      (fname, ftype, fid) = iprot.readFieldBegin()
9775
      if ftype == TType.STOP:
9776
        break
9777
      if fid == 0:
559 chandransh 9778
        if ftype == TType.STRUCT:
9779
          self.success = Cart()
9780
          self.success.read(iprot)
94 ashish 9781
        else:
9782
          iprot.skip(ftype)
9783
      elif fid == 1:
9784
        if ftype == TType.STRUCT:
559 chandransh 9785
          self.scx = ShoppingCartException()
9786
          self.scx.read(iprot)
94 ashish 9787
        else:
9788
          iprot.skip(ftype)
9789
      else:
9790
        iprot.skip(ftype)
9791
      iprot.readFieldEnd()
9792
    iprot.readStructEnd()
9793
 
9794
  def write(self, oprot):
9795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9797
      return
559 chandransh 9798
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9799
    if self.success is not None:
559 chandransh 9800
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9801
      self.success.write(oprot)
94 ashish 9802
      oprot.writeFieldEnd()
3431 rajveer 9803
    if self.scx is not None:
559 chandransh 9804
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9805
      self.scx.write(oprot)
94 ashish 9806
      oprot.writeFieldEnd()
9807
    oprot.writeFieldStop()
9808
    oprot.writeStructEnd()
9809
 
3431 rajveer 9810
  def validate(self):
9811
    return
9812
 
9813
 
94 ashish 9814
  def __repr__(self):
9815
    L = ['%s=%r' % (key, value)
9816
      for key, value in self.__dict__.iteritems()]
9817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9818
 
9819
  def __eq__(self, other):
9820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9821
 
9822
  def __ne__(self, other):
9823
    return not (self == other)
9824
 
559 chandransh 9825
class getCart_args:
504 rajveer 9826
  """
9827
  Attributes:
559 chandransh 9828
   - cartId
504 rajveer 9829
  """
9830
 
9831
  thrift_spec = (
9832
    None, # 0
559 chandransh 9833
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9834
  )
9835
 
559 chandransh 9836
  def __init__(self, cartId=None,):
9837
    self.cartId = cartId
504 rajveer 9838
 
9839
  def read(self, iprot):
9840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9842
      return
9843
    iprot.readStructBegin()
9844
    while True:
9845
      (fname, ftype, fid) = iprot.readFieldBegin()
9846
      if ftype == TType.STOP:
9847
        break
9848
      if fid == 1:
9849
        if ftype == TType.I64:
559 chandransh 9850
          self.cartId = iprot.readI64();
504 rajveer 9851
        else:
9852
          iprot.skip(ftype)
9853
      else:
9854
        iprot.skip(ftype)
9855
      iprot.readFieldEnd()
9856
    iprot.readStructEnd()
9857
 
9858
  def write(self, oprot):
9859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9861
      return
559 chandransh 9862
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9863
    if self.cartId is not None:
559 chandransh 9864
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9865
      oprot.writeI64(self.cartId)
504 rajveer 9866
      oprot.writeFieldEnd()
9867
    oprot.writeFieldStop()
9868
    oprot.writeStructEnd()
9869
 
3431 rajveer 9870
  def validate(self):
9871
    return
9872
 
9873
 
504 rajveer 9874
  def __repr__(self):
9875
    L = ['%s=%r' % (key, value)
9876
      for key, value in self.__dict__.iteritems()]
9877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9878
 
9879
  def __eq__(self, other):
9880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9881
 
9882
  def __ne__(self, other):
9883
    return not (self == other)
9884
 
559 chandransh 9885
class getCart_result:
504 rajveer 9886
  """
9887
  Attributes:
9888
   - success
559 chandransh 9889
   - scx
504 rajveer 9890
  """
9891
 
9892
  thrift_spec = (
559 chandransh 9893
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9894
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9895
  )
9896
 
559 chandransh 9897
  def __init__(self, success=None, scx=None,):
504 rajveer 9898
    self.success = success
559 chandransh 9899
    self.scx = scx
504 rajveer 9900
 
9901
  def read(self, iprot):
9902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9904
      return
9905
    iprot.readStructBegin()
9906
    while True:
9907
      (fname, ftype, fid) = iprot.readFieldBegin()
9908
      if ftype == TType.STOP:
9909
        break
9910
      if fid == 0:
559 chandransh 9911
        if ftype == TType.STRUCT:
9912
          self.success = Cart()
9913
          self.success.read(iprot)
504 rajveer 9914
        else:
9915
          iprot.skip(ftype)
9916
      elif fid == 1:
9917
        if ftype == TType.STRUCT:
559 chandransh 9918
          self.scx = ShoppingCartException()
9919
          self.scx.read(iprot)
504 rajveer 9920
        else:
9921
          iprot.skip(ftype)
9922
      else:
9923
        iprot.skip(ftype)
9924
      iprot.readFieldEnd()
9925
    iprot.readStructEnd()
9926
 
9927
  def write(self, oprot):
9928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9930
      return
559 chandransh 9931
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9932
    if self.success is not None:
559 chandransh 9933
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9934
      self.success.write(oprot)
504 rajveer 9935
      oprot.writeFieldEnd()
3431 rajveer 9936
    if self.scx is not None:
559 chandransh 9937
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9938
      self.scx.write(oprot)
504 rajveer 9939
      oprot.writeFieldEnd()
9940
    oprot.writeFieldStop()
9941
    oprot.writeStructEnd()
9942
 
3431 rajveer 9943
  def validate(self):
9944
    return
9945
 
9946
 
504 rajveer 9947
  def __repr__(self):
9948
    L = ['%s=%r' % (key, value)
9949
      for key, value in self.__dict__.iteritems()]
9950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9951
 
9952
  def __eq__(self, other):
9953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9954
 
9955
  def __ne__(self, other):
9956
    return not (self == other)
9957
 
559 chandransh 9958
class getCartsForUser_args:
94 ashish 9959
  """
9960
  Attributes:
559 chandransh 9961
   - userId
9962
   - status
94 ashish 9963
  """
9964
 
9965
  thrift_spec = (
9966
    None, # 0
559 chandransh 9967
    (1, TType.I64, 'userId', None, None, ), # 1
9968
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 9969
  )
9970
 
559 chandransh 9971
  def __init__(self, userId=None, status=None,):
9972
    self.userId = userId
9973
    self.status = status
94 ashish 9974
 
9975
  def read(self, iprot):
9976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9978
      return
9979
    iprot.readStructBegin()
9980
    while True:
9981
      (fname, ftype, fid) = iprot.readFieldBegin()
9982
      if ftype == TType.STOP:
9983
        break
9984
      if fid == 1:
9985
        if ftype == TType.I64:
559 chandransh 9986
          self.userId = iprot.readI64();
94 ashish 9987
        else:
9988
          iprot.skip(ftype)
9989
      elif fid == 2:
559 chandransh 9990
        if ftype == TType.I32:
9991
          self.status = iprot.readI32();
94 ashish 9992
        else:
9993
          iprot.skip(ftype)
9994
      else:
9995
        iprot.skip(ftype)
9996
      iprot.readFieldEnd()
9997
    iprot.readStructEnd()
9998
 
9999
  def write(self, oprot):
10000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10002
      return
559 chandransh 10003
    oprot.writeStructBegin('getCartsForUser_args')
3431 rajveer 10004
    if self.userId is not None:
559 chandransh 10005
      oprot.writeFieldBegin('userId', TType.I64, 1)
10006
      oprot.writeI64(self.userId)
94 ashish 10007
      oprot.writeFieldEnd()
3431 rajveer 10008
    if self.status is not None:
559 chandransh 10009
      oprot.writeFieldBegin('status', TType.I32, 2)
10010
      oprot.writeI32(self.status)
94 ashish 10011
      oprot.writeFieldEnd()
10012
    oprot.writeFieldStop()
10013
    oprot.writeStructEnd()
10014
 
3431 rajveer 10015
  def validate(self):
10016
    return
10017
 
10018
 
94 ashish 10019
  def __repr__(self):
10020
    L = ['%s=%r' % (key, value)
10021
      for key, value in self.__dict__.iteritems()]
10022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10023
 
10024
  def __eq__(self, other):
10025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10026
 
10027
  def __ne__(self, other):
10028
    return not (self == other)
10029
 
559 chandransh 10030
class getCartsForUser_result:
94 ashish 10031
  """
10032
  Attributes:
10033
   - success
559 chandransh 10034
   - scx
94 ashish 10035
  """
10036
 
10037
  thrift_spec = (
559 chandransh 10038
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10039
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10040
  )
10041
 
559 chandransh 10042
  def __init__(self, success=None, scx=None,):
94 ashish 10043
    self.success = success
559 chandransh 10044
    self.scx = scx
94 ashish 10045
 
10046
  def read(self, iprot):
10047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10049
      return
10050
    iprot.readStructBegin()
10051
    while True:
10052
      (fname, ftype, fid) = iprot.readFieldBegin()
10053
      if ftype == TType.STOP:
10054
        break
10055
      if fid == 0:
559 chandransh 10056
        if ftype == TType.LIST:
10057
          self.success = []
3554 varun.gupt 10058
          (_etype101, _size98) = iprot.readListBegin()
10059
          for _i102 in xrange(_size98):
10060
            _elem103 = Cart()
10061
            _elem103.read(iprot)
10062
            self.success.append(_elem103)
559 chandransh 10063
          iprot.readListEnd()
94 ashish 10064
        else:
10065
          iprot.skip(ftype)
10066
      elif fid == 1:
10067
        if ftype == TType.STRUCT:
559 chandransh 10068
          self.scx = ShoppingCartException()
10069
          self.scx.read(iprot)
94 ashish 10070
        else:
10071
          iprot.skip(ftype)
10072
      else:
10073
        iprot.skip(ftype)
10074
      iprot.readFieldEnd()
10075
    iprot.readStructEnd()
10076
 
10077
  def write(self, oprot):
10078
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10079
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10080
      return
559 chandransh 10081
    oprot.writeStructBegin('getCartsForUser_result')
3431 rajveer 10082
    if self.success is not None:
559 chandransh 10083
      oprot.writeFieldBegin('success', TType.LIST, 0)
10084
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10085
      for iter104 in self.success:
10086
        iter104.write(oprot)
559 chandransh 10087
      oprot.writeListEnd()
94 ashish 10088
      oprot.writeFieldEnd()
3431 rajveer 10089
    if self.scx is not None:
559 chandransh 10090
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10091
      self.scx.write(oprot)
94 ashish 10092
      oprot.writeFieldEnd()
10093
    oprot.writeFieldStop()
10094
    oprot.writeStructEnd()
10095
 
3431 rajveer 10096
  def validate(self):
10097
    return
10098
 
10099
 
94 ashish 10100
  def __repr__(self):
10101
    L = ['%s=%r' % (key, value)
10102
      for key, value in self.__dict__.iteritems()]
10103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10104
 
10105
  def __eq__(self, other):
10106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10107
 
10108
  def __ne__(self, other):
10109
    return not (self == other)
10110
 
559 chandransh 10111
class getCartsByStatus_args:
94 ashish 10112
  """
10113
  Attributes:
559 chandransh 10114
   - status
94 ashish 10115
  """
10116
 
10117
  thrift_spec = (
10118
    None, # 0
559 chandransh 10119
    (1, TType.I32, 'status', None, None, ), # 1
94 ashish 10120
  )
10121
 
559 chandransh 10122
  def __init__(self, status=None,):
10123
    self.status = status
94 ashish 10124
 
10125
  def read(self, iprot):
10126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10128
      return
10129
    iprot.readStructBegin()
10130
    while True:
10131
      (fname, ftype, fid) = iprot.readFieldBegin()
10132
      if ftype == TType.STOP:
10133
        break
10134
      if fid == 1:
559 chandransh 10135
        if ftype == TType.I32:
10136
          self.status = iprot.readI32();
10137
        else:
10138
          iprot.skip(ftype)
10139
      else:
10140
        iprot.skip(ftype)
10141
      iprot.readFieldEnd()
10142
    iprot.readStructEnd()
10143
 
10144
  def write(self, oprot):
10145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10147
      return
10148
    oprot.writeStructBegin('getCartsByStatus_args')
3431 rajveer 10149
    if self.status is not None:
559 chandransh 10150
      oprot.writeFieldBegin('status', TType.I32, 1)
10151
      oprot.writeI32(self.status)
10152
      oprot.writeFieldEnd()
10153
    oprot.writeFieldStop()
10154
    oprot.writeStructEnd()
10155
 
3431 rajveer 10156
  def validate(self):
10157
    return
10158
 
10159
 
559 chandransh 10160
  def __repr__(self):
10161
    L = ['%s=%r' % (key, value)
10162
      for key, value in self.__dict__.iteritems()]
10163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10164
 
10165
  def __eq__(self, other):
10166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10167
 
10168
  def __ne__(self, other):
10169
    return not (self == other)
10170
 
10171
class getCartsByStatus_result:
10172
  """
10173
  Attributes:
10174
   - success
10175
   - scx
10176
  """
10177
 
10178
  thrift_spec = (
10179
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10180
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10181
  )
10182
 
10183
  def __init__(self, success=None, scx=None,):
10184
    self.success = success
10185
    self.scx = scx
10186
 
10187
  def read(self, iprot):
10188
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10189
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10190
      return
10191
    iprot.readStructBegin()
10192
    while True:
10193
      (fname, ftype, fid) = iprot.readFieldBegin()
10194
      if ftype == TType.STOP:
10195
        break
10196
      if fid == 0:
10197
        if ftype == TType.LIST:
10198
          self.success = []
3554 varun.gupt 10199
          (_etype108, _size105) = iprot.readListBegin()
10200
          for _i109 in xrange(_size105):
10201
            _elem110 = Cart()
10202
            _elem110.read(iprot)
10203
            self.success.append(_elem110)
559 chandransh 10204
          iprot.readListEnd()
10205
        else:
10206
          iprot.skip(ftype)
10207
      elif fid == 1:
10208
        if ftype == TType.STRUCT:
10209
          self.scx = ShoppingCartException()
10210
          self.scx.read(iprot)
10211
        else:
10212
          iprot.skip(ftype)
10213
      else:
10214
        iprot.skip(ftype)
10215
      iprot.readFieldEnd()
10216
    iprot.readStructEnd()
10217
 
10218
  def write(self, oprot):
10219
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10220
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10221
      return
10222
    oprot.writeStructBegin('getCartsByStatus_result')
3431 rajveer 10223
    if self.success is not None:
559 chandransh 10224
      oprot.writeFieldBegin('success', TType.LIST, 0)
10225
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10226
      for iter111 in self.success:
10227
        iter111.write(oprot)
559 chandransh 10228
      oprot.writeListEnd()
10229
      oprot.writeFieldEnd()
3431 rajveer 10230
    if self.scx is not None:
559 chandransh 10231
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10232
      self.scx.write(oprot)
10233
      oprot.writeFieldEnd()
10234
    oprot.writeFieldStop()
10235
    oprot.writeStructEnd()
10236
 
3431 rajveer 10237
  def validate(self):
10238
    return
10239
 
10240
 
559 chandransh 10241
  def __repr__(self):
10242
    L = ['%s=%r' % (key, value)
10243
      for key, value in self.__dict__.iteritems()]
10244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10245
 
10246
  def __eq__(self, other):
10247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10248
 
10249
  def __ne__(self, other):
10250
    return not (self == other)
10251
 
10252
class getCartsByTime_args:
10253
  """
10254
  Attributes:
10255
   - from_time
10256
   - to_time
10257
   - status
10258
  """
10259
 
10260
  thrift_spec = (
10261
    None, # 0
10262
    (1, TType.I64, 'from_time', None, None, ), # 1
10263
    (2, TType.I64, 'to_time', None, None, ), # 2
10264
    (3, TType.I32, 'status', None, None, ), # 3
10265
  )
10266
 
10267
  def __init__(self, from_time=None, to_time=None, status=None,):
10268
    self.from_time = from_time
10269
    self.to_time = to_time
10270
    self.status = status
10271
 
10272
  def read(self, iprot):
10273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10275
      return
10276
    iprot.readStructBegin()
10277
    while True:
10278
      (fname, ftype, fid) = iprot.readFieldBegin()
10279
      if ftype == TType.STOP:
10280
        break
10281
      if fid == 1:
94 ashish 10282
        if ftype == TType.I64:
559 chandransh 10283
          self.from_time = iprot.readI64();
94 ashish 10284
        else:
10285
          iprot.skip(ftype)
122 ashish 10286
      elif fid == 2:
559 chandransh 10287
        if ftype == TType.I64:
10288
          self.to_time = iprot.readI64();
122 ashish 10289
        else:
10290
          iprot.skip(ftype)
559 chandransh 10291
      elif fid == 3:
10292
        if ftype == TType.I32:
10293
          self.status = iprot.readI32();
10294
        else:
10295
          iprot.skip(ftype)
94 ashish 10296
      else:
10297
        iprot.skip(ftype)
10298
      iprot.readFieldEnd()
10299
    iprot.readStructEnd()
10300
 
10301
  def write(self, oprot):
10302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10304
      return
559 chandransh 10305
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 10306
    if self.from_time is not None:
559 chandransh 10307
      oprot.writeFieldBegin('from_time', TType.I64, 1)
10308
      oprot.writeI64(self.from_time)
94 ashish 10309
      oprot.writeFieldEnd()
3431 rajveer 10310
    if self.to_time is not None:
559 chandransh 10311
      oprot.writeFieldBegin('to_time', TType.I64, 2)
10312
      oprot.writeI64(self.to_time)
122 ashish 10313
      oprot.writeFieldEnd()
3431 rajveer 10314
    if self.status is not None:
559 chandransh 10315
      oprot.writeFieldBegin('status', TType.I32, 3)
10316
      oprot.writeI32(self.status)
10317
      oprot.writeFieldEnd()
94 ashish 10318
    oprot.writeFieldStop()
10319
    oprot.writeStructEnd()
10320
 
3431 rajveer 10321
  def validate(self):
10322
    return
10323
 
10324
 
94 ashish 10325
  def __repr__(self):
10326
    L = ['%s=%r' % (key, value)
10327
      for key, value in self.__dict__.iteritems()]
10328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10329
 
10330
  def __eq__(self, other):
10331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10332
 
10333
  def __ne__(self, other):
10334
    return not (self == other)
10335
 
559 chandransh 10336
class getCartsByTime_result:
94 ashish 10337
  """
10338
  Attributes:
10339
   - success
559 chandransh 10340
   - scx
94 ashish 10341
  """
10342
 
10343
  thrift_spec = (
559 chandransh 10344
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
10345
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10346
  )
10347
 
559 chandransh 10348
  def __init__(self, success=None, scx=None,):
94 ashish 10349
    self.success = success
559 chandransh 10350
    self.scx = scx
94 ashish 10351
 
10352
  def read(self, iprot):
10353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10355
      return
10356
    iprot.readStructBegin()
10357
    while True:
10358
      (fname, ftype, fid) = iprot.readFieldBegin()
10359
      if ftype == TType.STOP:
10360
        break
10361
      if fid == 0:
559 chandransh 10362
        if ftype == TType.LIST:
10363
          self.success = []
3554 varun.gupt 10364
          (_etype115, _size112) = iprot.readListBegin()
10365
          for _i116 in xrange(_size112):
10366
            _elem117 = Cart()
10367
            _elem117.read(iprot)
10368
            self.success.append(_elem117)
559 chandransh 10369
          iprot.readListEnd()
94 ashish 10370
        else:
10371
          iprot.skip(ftype)
10372
      elif fid == 1:
10373
        if ftype == TType.STRUCT:
559 chandransh 10374
          self.scx = ShoppingCartException()
10375
          self.scx.read(iprot)
94 ashish 10376
        else:
10377
          iprot.skip(ftype)
10378
      else:
10379
        iprot.skip(ftype)
10380
      iprot.readFieldEnd()
10381
    iprot.readStructEnd()
10382
 
10383
  def write(self, oprot):
10384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10386
      return
559 chandransh 10387
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 10388
    if self.success is not None:
559 chandransh 10389
      oprot.writeFieldBegin('success', TType.LIST, 0)
10390
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 10391
      for iter118 in self.success:
10392
        iter118.write(oprot)
559 chandransh 10393
      oprot.writeListEnd()
94 ashish 10394
      oprot.writeFieldEnd()
3431 rajveer 10395
    if self.scx is not None:
559 chandransh 10396
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10397
      self.scx.write(oprot)
94 ashish 10398
      oprot.writeFieldEnd()
10399
    oprot.writeFieldStop()
10400
    oprot.writeStructEnd()
10401
 
3431 rajveer 10402
  def validate(self):
10403
    return
10404
 
10405
 
94 ashish 10406
  def __repr__(self):
10407
    L = ['%s=%r' % (key, value)
10408
      for key, value in self.__dict__.iteritems()]
10409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10410
 
10411
  def __eq__(self, other):
10412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10413
 
10414
  def __ne__(self, other):
10415
    return not (self == other)
10416
 
559 chandransh 10417
class changeCartStatus_args:
94 ashish 10418
  """
10419
  Attributes:
559 chandransh 10420
   - cartId
10421
   - status
94 ashish 10422
  """
10423
 
10424
  thrift_spec = (
10425
    None, # 0
559 chandransh 10426
    (1, TType.I64, 'cartId', None, None, ), # 1
10427
    (2, TType.I32, 'status', None, None, ), # 2
94 ashish 10428
  )
10429
 
559 chandransh 10430
  def __init__(self, cartId=None, status=None,):
10431
    self.cartId = cartId
10432
    self.status = status
94 ashish 10433
 
10434
  def read(self, iprot):
10435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10437
      return
10438
    iprot.readStructBegin()
10439
    while True:
10440
      (fname, ftype, fid) = iprot.readFieldBegin()
10441
      if ftype == TType.STOP:
10442
        break
10443
      if fid == 1:
10444
        if ftype == TType.I64:
559 chandransh 10445
          self.cartId = iprot.readI64();
94 ashish 10446
        else:
10447
          iprot.skip(ftype)
559 chandransh 10448
      elif fid == 2:
10449
        if ftype == TType.I32:
10450
          self.status = iprot.readI32();
10451
        else:
10452
          iprot.skip(ftype)
94 ashish 10453
      else:
10454
        iprot.skip(ftype)
10455
      iprot.readFieldEnd()
10456
    iprot.readStructEnd()
10457
 
10458
  def write(self, oprot):
10459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10461
      return
559 chandransh 10462
    oprot.writeStructBegin('changeCartStatus_args')
3431 rajveer 10463
    if self.cartId is not None:
559 chandransh 10464
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10465
      oprot.writeI64(self.cartId)
94 ashish 10466
      oprot.writeFieldEnd()
3431 rajveer 10467
    if self.status is not None:
559 chandransh 10468
      oprot.writeFieldBegin('status', TType.I32, 2)
10469
      oprot.writeI32(self.status)
10470
      oprot.writeFieldEnd()
94 ashish 10471
    oprot.writeFieldStop()
10472
    oprot.writeStructEnd()
10473
 
3431 rajveer 10474
  def validate(self):
10475
    return
10476
 
10477
 
94 ashish 10478
  def __repr__(self):
10479
    L = ['%s=%r' % (key, value)
10480
      for key, value in self.__dict__.iteritems()]
10481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10482
 
10483
  def __eq__(self, other):
10484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10485
 
10486
  def __ne__(self, other):
10487
    return not (self == other)
10488
 
559 chandransh 10489
class changeCartStatus_result:
94 ashish 10490
  """
10491
  Attributes:
559 chandransh 10492
   - scx
10493
  """
10494
 
10495
  thrift_spec = (
10496
    None, # 0
10497
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10498
  )
10499
 
10500
  def __init__(self, scx=None,):
10501
    self.scx = scx
10502
 
10503
  def read(self, iprot):
10504
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10505
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10506
      return
10507
    iprot.readStructBegin()
10508
    while True:
10509
      (fname, ftype, fid) = iprot.readFieldBegin()
10510
      if ftype == TType.STOP:
10511
        break
10512
      if fid == 1:
10513
        if ftype == TType.STRUCT:
10514
          self.scx = ShoppingCartException()
10515
          self.scx.read(iprot)
10516
        else:
10517
          iprot.skip(ftype)
10518
      else:
10519
        iprot.skip(ftype)
10520
      iprot.readFieldEnd()
10521
    iprot.readStructEnd()
10522
 
10523
  def write(self, oprot):
10524
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10525
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10526
      return
10527
    oprot.writeStructBegin('changeCartStatus_result')
3431 rajveer 10528
    if self.scx is not None:
559 chandransh 10529
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10530
      self.scx.write(oprot)
10531
      oprot.writeFieldEnd()
10532
    oprot.writeFieldStop()
10533
    oprot.writeStructEnd()
10534
 
3431 rajveer 10535
  def validate(self):
10536
    return
10537
 
10538
 
559 chandransh 10539
  def __repr__(self):
10540
    L = ['%s=%r' % (key, value)
10541
      for key, value in self.__dict__.iteritems()]
10542
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10543
 
10544
  def __eq__(self, other):
10545
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10546
 
10547
  def __ne__(self, other):
10548
    return not (self == other)
10549
 
10550
class addItemToCart_args:
10551
  """
10552
  Attributes:
10553
   - cartId
10554
   - itemId
10555
   - quantity
3557 rajveer 10556
   - sourceId
559 chandransh 10557
  """
10558
 
10559
  thrift_spec = (
10560
    None, # 0
10561
    (1, TType.I64, 'cartId', None, None, ), # 1
10562
    (2, TType.I64, 'itemId', None, None, ), # 2
10563
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 10564
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 10565
  )
10566
 
3557 rajveer 10567
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 10568
    self.cartId = cartId
10569
    self.itemId = itemId
10570
    self.quantity = quantity
3557 rajveer 10571
    self.sourceId = sourceId
559 chandransh 10572
 
10573
  def read(self, iprot):
10574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10576
      return
10577
    iprot.readStructBegin()
10578
    while True:
10579
      (fname, ftype, fid) = iprot.readFieldBegin()
10580
      if ftype == TType.STOP:
10581
        break
10582
      if fid == 1:
10583
        if ftype == TType.I64:
10584
          self.cartId = iprot.readI64();
10585
        else:
10586
          iprot.skip(ftype)
10587
      elif fid == 2:
10588
        if ftype == TType.I64:
10589
          self.itemId = iprot.readI64();
10590
        else:
10591
          iprot.skip(ftype)
10592
      elif fid == 3:
10593
        if ftype == TType.I64:
10594
          self.quantity = iprot.readI64();
10595
        else:
10596
          iprot.skip(ftype)
3557 rajveer 10597
      elif fid == 4:
10598
        if ftype == TType.I64:
10599
          self.sourceId = iprot.readI64();
10600
        else:
10601
          iprot.skip(ftype)
559 chandransh 10602
      else:
10603
        iprot.skip(ftype)
10604
      iprot.readFieldEnd()
10605
    iprot.readStructEnd()
10606
 
10607
  def write(self, oprot):
10608
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10609
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10610
      return
10611
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 10612
    if self.cartId is not None:
559 chandransh 10613
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10614
      oprot.writeI64(self.cartId)
10615
      oprot.writeFieldEnd()
3431 rajveer 10616
    if self.itemId is not None:
559 chandransh 10617
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10618
      oprot.writeI64(self.itemId)
10619
      oprot.writeFieldEnd()
3431 rajveer 10620
    if self.quantity is not None:
559 chandransh 10621
      oprot.writeFieldBegin('quantity', TType.I64, 3)
10622
      oprot.writeI64(self.quantity)
10623
      oprot.writeFieldEnd()
3557 rajveer 10624
    if self.sourceId is not None:
10625
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
10626
      oprot.writeI64(self.sourceId)
10627
      oprot.writeFieldEnd()
559 chandransh 10628
    oprot.writeFieldStop()
10629
    oprot.writeStructEnd()
10630
 
3431 rajveer 10631
  def validate(self):
10632
    return
10633
 
10634
 
559 chandransh 10635
  def __repr__(self):
10636
    L = ['%s=%r' % (key, value)
10637
      for key, value in self.__dict__.iteritems()]
10638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10639
 
10640
  def __eq__(self, other):
10641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10642
 
10643
  def __ne__(self, other):
10644
    return not (self == other)
10645
 
10646
class addItemToCart_result:
10647
  """
10648
  Attributes:
2035 rajveer 10649
   - success
559 chandransh 10650
   - scx
10651
  """
10652
 
10653
  thrift_spec = (
2035 rajveer 10654
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 10655
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10656
  )
10657
 
2035 rajveer 10658
  def __init__(self, success=None, scx=None,):
10659
    self.success = success
559 chandransh 10660
    self.scx = scx
10661
 
10662
  def read(self, iprot):
10663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10665
      return
10666
    iprot.readStructBegin()
10667
    while True:
10668
      (fname, ftype, fid) = iprot.readFieldBegin()
10669
      if ftype == TType.STOP:
10670
        break
2035 rajveer 10671
      if fid == 0:
10672
        if ftype == TType.STRING:
10673
          self.success = iprot.readString();
10674
        else:
10675
          iprot.skip(ftype)
10676
      elif fid == 1:
559 chandransh 10677
        if ftype == TType.STRUCT:
10678
          self.scx = ShoppingCartException()
10679
          self.scx.read(iprot)
10680
        else:
10681
          iprot.skip(ftype)
10682
      else:
10683
        iprot.skip(ftype)
10684
      iprot.readFieldEnd()
10685
    iprot.readStructEnd()
10686
 
10687
  def write(self, oprot):
10688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10690
      return
10691
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 10692
    if self.success is not None:
2035 rajveer 10693
      oprot.writeFieldBegin('success', TType.STRING, 0)
10694
      oprot.writeString(self.success)
10695
      oprot.writeFieldEnd()
3431 rajveer 10696
    if self.scx is not None:
559 chandransh 10697
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10698
      self.scx.write(oprot)
10699
      oprot.writeFieldEnd()
10700
    oprot.writeFieldStop()
10701
    oprot.writeStructEnd()
10702
 
3431 rajveer 10703
  def validate(self):
10704
    return
10705
 
10706
 
559 chandransh 10707
  def __repr__(self):
10708
    L = ['%s=%r' % (key, value)
10709
      for key, value in self.__dict__.iteritems()]
10710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10711
 
10712
  def __eq__(self, other):
10713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10714
 
10715
  def __ne__(self, other):
10716
    return not (self == other)
10717
 
10718
class deleteItemFromCart_args:
10719
  """
10720
  Attributes:
10721
   - cartId
10722
   - itemId
10723
  """
10724
 
10725
  thrift_spec = (
10726
    None, # 0
10727
    (1, TType.I64, 'cartId', None, None, ), # 1
10728
    (2, TType.I64, 'itemId', None, None, ), # 2
10729
  )
10730
 
10731
  def __init__(self, cartId=None, itemId=None,):
10732
    self.cartId = cartId
10733
    self.itemId = itemId
10734
 
10735
  def read(self, iprot):
10736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10738
      return
10739
    iprot.readStructBegin()
10740
    while True:
10741
      (fname, ftype, fid) = iprot.readFieldBegin()
10742
      if ftype == TType.STOP:
10743
        break
10744
      if fid == 1:
10745
        if ftype == TType.I64:
10746
          self.cartId = iprot.readI64();
10747
        else:
10748
          iprot.skip(ftype)
10749
      elif fid == 2:
10750
        if ftype == TType.I64:
10751
          self.itemId = iprot.readI64();
10752
        else:
10753
          iprot.skip(ftype)
10754
      else:
10755
        iprot.skip(ftype)
10756
      iprot.readFieldEnd()
10757
    iprot.readStructEnd()
10758
 
10759
  def write(self, oprot):
10760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10762
      return
10763
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 10764
    if self.cartId is not None:
559 chandransh 10765
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10766
      oprot.writeI64(self.cartId)
10767
      oprot.writeFieldEnd()
3431 rajveer 10768
    if self.itemId is not None:
559 chandransh 10769
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10770
      oprot.writeI64(self.itemId)
10771
      oprot.writeFieldEnd()
10772
    oprot.writeFieldStop()
10773
    oprot.writeStructEnd()
10774
 
3431 rajveer 10775
  def validate(self):
10776
    return
10777
 
10778
 
559 chandransh 10779
  def __repr__(self):
10780
    L = ['%s=%r' % (key, value)
10781
      for key, value in self.__dict__.iteritems()]
10782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10783
 
10784
  def __eq__(self, other):
10785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10786
 
10787
  def __ne__(self, other):
10788
    return not (self == other)
10789
 
10790
class deleteItemFromCart_result:
10791
  """
10792
  Attributes:
10793
   - scx
10794
  """
10795
 
10796
  thrift_spec = (
10797
    None, # 0
10798
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10799
  )
10800
 
10801
  def __init__(self, scx=None,):
10802
    self.scx = scx
10803
 
10804
  def read(self, iprot):
10805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10807
      return
10808
    iprot.readStructBegin()
10809
    while True:
10810
      (fname, ftype, fid) = iprot.readFieldBegin()
10811
      if ftype == TType.STOP:
10812
        break
10813
      if fid == 1:
10814
        if ftype == TType.STRUCT:
10815
          self.scx = ShoppingCartException()
10816
          self.scx.read(iprot)
10817
        else:
10818
          iprot.skip(ftype)
10819
      else:
10820
        iprot.skip(ftype)
10821
      iprot.readFieldEnd()
10822
    iprot.readStructEnd()
10823
 
10824
  def write(self, oprot):
10825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10827
      return
10828
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10829
    if self.scx is not None:
559 chandransh 10830
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10831
      self.scx.write(oprot)
10832
      oprot.writeFieldEnd()
10833
    oprot.writeFieldStop()
10834
    oprot.writeStructEnd()
10835
 
3431 rajveer 10836
  def validate(self):
10837
    return
10838
 
10839
 
559 chandransh 10840
  def __repr__(self):
10841
    L = ['%s=%r' % (key, value)
10842
      for key, value in self.__dict__.iteritems()]
10843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10844
 
10845
  def __eq__(self, other):
10846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10847
 
10848
  def __ne__(self, other):
10849
    return not (self == other)
10850
 
10851
class changeItemStatus_args:
10852
  """
10853
  Attributes:
10854
   - cartId
10855
   - itemId
10856
   - status
10857
  """
10858
 
10859
  thrift_spec = (
10860
    None, # 0
10861
    (1, TType.I64, 'cartId', None, None, ), # 1
10862
    (2, TType.I64, 'itemId', None, None, ), # 2
10863
    (3, TType.I32, 'status', None, None, ), # 3
10864
  )
10865
 
10866
  def __init__(self, cartId=None, itemId=None, status=None,):
10867
    self.cartId = cartId
10868
    self.itemId = itemId
10869
    self.status = status
10870
 
10871
  def read(self, iprot):
10872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10874
      return
10875
    iprot.readStructBegin()
10876
    while True:
10877
      (fname, ftype, fid) = iprot.readFieldBegin()
10878
      if ftype == TType.STOP:
10879
        break
10880
      if fid == 1:
10881
        if ftype == TType.I64:
10882
          self.cartId = iprot.readI64();
10883
        else:
10884
          iprot.skip(ftype)
10885
      elif fid == 2:
10886
        if ftype == TType.I64:
10887
          self.itemId = iprot.readI64();
10888
        else:
10889
          iprot.skip(ftype)
10890
      elif fid == 3:
10891
        if ftype == TType.I32:
10892
          self.status = iprot.readI32();
10893
        else:
10894
          iprot.skip(ftype)
10895
      else:
10896
        iprot.skip(ftype)
10897
      iprot.readFieldEnd()
10898
    iprot.readStructEnd()
10899
 
10900
  def write(self, oprot):
10901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10903
      return
10904
    oprot.writeStructBegin('changeItemStatus_args')
3431 rajveer 10905
    if self.cartId is not None:
559 chandransh 10906
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10907
      oprot.writeI64(self.cartId)
10908
      oprot.writeFieldEnd()
3431 rajveer 10909
    if self.itemId is not None:
559 chandransh 10910
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10911
      oprot.writeI64(self.itemId)
10912
      oprot.writeFieldEnd()
3431 rajveer 10913
    if self.status is not None:
559 chandransh 10914
      oprot.writeFieldBegin('status', TType.I32, 3)
10915
      oprot.writeI32(self.status)
10916
      oprot.writeFieldEnd()
10917
    oprot.writeFieldStop()
10918
    oprot.writeStructEnd()
10919
 
3431 rajveer 10920
  def validate(self):
10921
    return
10922
 
10923
 
559 chandransh 10924
  def __repr__(self):
10925
    L = ['%s=%r' % (key, value)
10926
      for key, value in self.__dict__.iteritems()]
10927
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10928
 
10929
  def __eq__(self, other):
10930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10931
 
10932
  def __ne__(self, other):
10933
    return not (self == other)
10934
 
10935
class changeItemStatus_result:
10936
  """
10937
  Attributes:
10938
   - scx
10939
  """
10940
 
10941
  thrift_spec = (
10942
    None, # 0
10943
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10944
  )
10945
 
10946
  def __init__(self, scx=None,):
10947
    self.scx = scx
10948
 
10949
  def read(self, iprot):
10950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10952
      return
10953
    iprot.readStructBegin()
10954
    while True:
10955
      (fname, ftype, fid) = iprot.readFieldBegin()
10956
      if ftype == TType.STOP:
10957
        break
10958
      if fid == 1:
10959
        if ftype == TType.STRUCT:
10960
          self.scx = ShoppingCartException()
10961
          self.scx.read(iprot)
10962
        else:
10963
          iprot.skip(ftype)
10964
      else:
10965
        iprot.skip(ftype)
10966
      iprot.readFieldEnd()
10967
    iprot.readStructEnd()
10968
 
10969
  def write(self, oprot):
10970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10972
      return
10973
    oprot.writeStructBegin('changeItemStatus_result')
3431 rajveer 10974
    if self.scx is not None:
559 chandransh 10975
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10976
      self.scx.write(oprot)
10977
      oprot.writeFieldEnd()
10978
    oprot.writeFieldStop()
10979
    oprot.writeStructEnd()
10980
 
3431 rajveer 10981
  def validate(self):
10982
    return
10983
 
10984
 
559 chandransh 10985
  def __repr__(self):
10986
    L = ['%s=%r' % (key, value)
10987
      for key, value in self.__dict__.iteritems()]
10988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10989
 
10990
  def __eq__(self, other):
10991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10992
 
10993
  def __ne__(self, other):
10994
    return not (self == other)
10995
 
10996
class addAddressToCart_args:
10997
  """
10998
  Attributes:
10999
   - cartId
11000
   - addressId
11001
  """
11002
 
11003
  thrift_spec = (
11004
    None, # 0
11005
    (1, TType.I64, 'cartId', None, None, ), # 1
11006
    (2, TType.I64, 'addressId', None, None, ), # 2
11007
  )
11008
 
11009
  def __init__(self, cartId=None, addressId=None,):
11010
    self.cartId = cartId
11011
    self.addressId = addressId
11012
 
11013
  def read(self, iprot):
11014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11016
      return
11017
    iprot.readStructBegin()
11018
    while True:
11019
      (fname, ftype, fid) = iprot.readFieldBegin()
11020
      if ftype == TType.STOP:
11021
        break
11022
      if fid == 1:
11023
        if ftype == TType.I64:
11024
          self.cartId = iprot.readI64();
11025
        else:
11026
          iprot.skip(ftype)
11027
      elif fid == 2:
11028
        if ftype == TType.I64:
11029
          self.addressId = iprot.readI64();
11030
        else:
11031
          iprot.skip(ftype)
11032
      else:
11033
        iprot.skip(ftype)
11034
      iprot.readFieldEnd()
11035
    iprot.readStructEnd()
11036
 
11037
  def write(self, oprot):
11038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11040
      return
11041
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 11042
    if self.cartId is not None:
559 chandransh 11043
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11044
      oprot.writeI64(self.cartId)
11045
      oprot.writeFieldEnd()
3431 rajveer 11046
    if self.addressId is not None:
559 chandransh 11047
      oprot.writeFieldBegin('addressId', TType.I64, 2)
11048
      oprot.writeI64(self.addressId)
11049
      oprot.writeFieldEnd()
11050
    oprot.writeFieldStop()
11051
    oprot.writeStructEnd()
11052
 
3431 rajveer 11053
  def validate(self):
11054
    return
11055
 
11056
 
559 chandransh 11057
  def __repr__(self):
11058
    L = ['%s=%r' % (key, value)
11059
      for key, value in self.__dict__.iteritems()]
11060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11061
 
11062
  def __eq__(self, other):
11063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11064
 
11065
  def __ne__(self, other):
11066
    return not (self == other)
11067
 
11068
class addAddressToCart_result:
575 chandransh 11069
  """
11070
  Attributes:
11071
   - scx
11072
  """
559 chandransh 11073
 
11074
  thrift_spec = (
575 chandransh 11075
    None, # 0
11076
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11077
  )
11078
 
575 chandransh 11079
  def __init__(self, scx=None,):
11080
    self.scx = scx
11081
 
559 chandransh 11082
  def read(self, iprot):
11083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11085
      return
11086
    iprot.readStructBegin()
11087
    while True:
11088
      (fname, ftype, fid) = iprot.readFieldBegin()
11089
      if ftype == TType.STOP:
11090
        break
575 chandransh 11091
      if fid == 1:
11092
        if ftype == TType.STRUCT:
11093
          self.scx = ShoppingCartException()
11094
          self.scx.read(iprot)
11095
        else:
11096
          iprot.skip(ftype)
559 chandransh 11097
      else:
11098
        iprot.skip(ftype)
11099
      iprot.readFieldEnd()
11100
    iprot.readStructEnd()
11101
 
11102
  def write(self, oprot):
11103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11105
      return
11106
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 11107
    if self.scx is not None:
575 chandransh 11108
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11109
      self.scx.write(oprot)
11110
      oprot.writeFieldEnd()
559 chandransh 11111
    oprot.writeFieldStop()
11112
    oprot.writeStructEnd()
11113
 
3431 rajveer 11114
  def validate(self):
11115
    return
11116
 
11117
 
559 chandransh 11118
  def __repr__(self):
11119
    L = ['%s=%r' % (key, value)
11120
      for key, value in self.__dict__.iteritems()]
11121
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11122
 
11123
  def __eq__(self, other):
11124
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11125
 
11126
  def __ne__(self, other):
11127
    return not (self == other)
11128
 
1976 varun.gupt 11129
class applyCouponToCart_args:
11130
  """
11131
  Attributes:
11132
   - cartId
11133
   - couponCode
11134
   - totalPrice
11135
   - discountedPrice
11136
  """
11137
 
11138
  thrift_spec = (
11139
    None, # 0
11140
    (1, TType.I64, 'cartId', None, None, ), # 1
11141
    (2, TType.STRING, 'couponCode', None, None, ), # 2
11142
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
11143
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
11144
  )
11145
 
11146
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
11147
    self.cartId = cartId
11148
    self.couponCode = couponCode
11149
    self.totalPrice = totalPrice
11150
    self.discountedPrice = discountedPrice
11151
 
11152
  def read(self, iprot):
11153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11155
      return
11156
    iprot.readStructBegin()
11157
    while True:
11158
      (fname, ftype, fid) = iprot.readFieldBegin()
11159
      if ftype == TType.STOP:
11160
        break
11161
      if fid == 1:
11162
        if ftype == TType.I64:
11163
          self.cartId = iprot.readI64();
11164
        else:
11165
          iprot.skip(ftype)
11166
      elif fid == 2:
11167
        if ftype == TType.STRING:
11168
          self.couponCode = iprot.readString();
11169
        else:
11170
          iprot.skip(ftype)
11171
      elif fid == 3:
11172
        if ftype == TType.DOUBLE:
11173
          self.totalPrice = iprot.readDouble();
11174
        else:
11175
          iprot.skip(ftype)
11176
      elif fid == 4:
11177
        if ftype == TType.DOUBLE:
11178
          self.discountedPrice = iprot.readDouble();
11179
        else:
11180
          iprot.skip(ftype)
11181
      else:
11182
        iprot.skip(ftype)
11183
      iprot.readFieldEnd()
11184
    iprot.readStructEnd()
11185
 
11186
  def write(self, oprot):
11187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11189
      return
11190
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 11191
    if self.cartId is not None:
1976 varun.gupt 11192
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11193
      oprot.writeI64(self.cartId)
11194
      oprot.writeFieldEnd()
3431 rajveer 11195
    if self.couponCode is not None:
1976 varun.gupt 11196
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
11197
      oprot.writeString(self.couponCode)
11198
      oprot.writeFieldEnd()
3431 rajveer 11199
    if self.totalPrice is not None:
1976 varun.gupt 11200
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
11201
      oprot.writeDouble(self.totalPrice)
11202
      oprot.writeFieldEnd()
3431 rajveer 11203
    if self.discountedPrice is not None:
1976 varun.gupt 11204
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
11205
      oprot.writeDouble(self.discountedPrice)
11206
      oprot.writeFieldEnd()
11207
    oprot.writeFieldStop()
11208
    oprot.writeStructEnd()
11209
 
3431 rajveer 11210
  def validate(self):
11211
    return
11212
 
11213
 
1976 varun.gupt 11214
  def __repr__(self):
11215
    L = ['%s=%r' % (key, value)
11216
      for key, value in self.__dict__.iteritems()]
11217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11218
 
11219
  def __eq__(self, other):
11220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11221
 
11222
  def __ne__(self, other):
11223
    return not (self == other)
11224
 
11225
class applyCouponToCart_result:
11226
  """
11227
  Attributes:
11228
   - scx
11229
  """
11230
 
11231
  thrift_spec = (
11232
    None, # 0
11233
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11234
  )
11235
 
11236
  def __init__(self, scx=None,):
11237
    self.scx = scx
11238
 
11239
  def read(self, iprot):
11240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11242
      return
11243
    iprot.readStructBegin()
11244
    while True:
11245
      (fname, ftype, fid) = iprot.readFieldBegin()
11246
      if ftype == TType.STOP:
11247
        break
11248
      if fid == 1:
11249
        if ftype == TType.STRUCT:
11250
          self.scx = ShoppingCartException()
11251
          self.scx.read(iprot)
11252
        else:
11253
          iprot.skip(ftype)
11254
      else:
11255
        iprot.skip(ftype)
11256
      iprot.readFieldEnd()
11257
    iprot.readStructEnd()
11258
 
11259
  def write(self, oprot):
11260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11262
      return
11263
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 11264
    if self.scx is not None:
1976 varun.gupt 11265
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11266
      self.scx.write(oprot)
11267
      oprot.writeFieldEnd()
11268
    oprot.writeFieldStop()
11269
    oprot.writeStructEnd()
11270
 
3431 rajveer 11271
  def validate(self):
11272
    return
11273
 
11274
 
1976 varun.gupt 11275
  def __repr__(self):
11276
    L = ['%s=%r' % (key, value)
11277
      for key, value in self.__dict__.iteritems()]
11278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11279
 
11280
  def __eq__(self, other):
11281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11282
 
11283
  def __ne__(self, other):
11284
    return not (self == other)
11285
 
11286
class removeCoupon_args:
11287
  """
11288
  Attributes:
11289
   - cartId
11290
  """
11291
 
11292
  thrift_spec = (
11293
    None, # 0
11294
    (1, TType.I64, 'cartId', None, None, ), # 1
11295
  )
11296
 
11297
  def __init__(self, cartId=None,):
11298
    self.cartId = cartId
11299
 
11300
  def read(self, iprot):
11301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11303
      return
11304
    iprot.readStructBegin()
11305
    while True:
11306
      (fname, ftype, fid) = iprot.readFieldBegin()
11307
      if ftype == TType.STOP:
11308
        break
11309
      if fid == 1:
11310
        if ftype == TType.I64:
11311
          self.cartId = iprot.readI64();
11312
        else:
11313
          iprot.skip(ftype)
11314
      else:
11315
        iprot.skip(ftype)
11316
      iprot.readFieldEnd()
11317
    iprot.readStructEnd()
11318
 
11319
  def write(self, oprot):
11320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11322
      return
11323
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 11324
    if self.cartId is not None:
1976 varun.gupt 11325
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11326
      oprot.writeI64(self.cartId)
11327
      oprot.writeFieldEnd()
11328
    oprot.writeFieldStop()
11329
    oprot.writeStructEnd()
11330
 
3431 rajveer 11331
  def validate(self):
11332
    return
11333
 
11334
 
1976 varun.gupt 11335
  def __repr__(self):
11336
    L = ['%s=%r' % (key, value)
11337
      for key, value in self.__dict__.iteritems()]
11338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11339
 
11340
  def __eq__(self, other):
11341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11342
 
11343
  def __ne__(self, other):
11344
    return not (self == other)
11345
 
11346
class removeCoupon_result:
11347
  """
11348
  Attributes:
11349
   - scx
11350
  """
11351
 
11352
  thrift_spec = (
11353
    None, # 0
11354
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11355
  )
11356
 
11357
  def __init__(self, scx=None,):
11358
    self.scx = scx
11359
 
11360
  def read(self, iprot):
11361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11363
      return
11364
    iprot.readStructBegin()
11365
    while True:
11366
      (fname, ftype, fid) = iprot.readFieldBegin()
11367
      if ftype == TType.STOP:
11368
        break
11369
      if fid == 1:
11370
        if ftype == TType.STRUCT:
11371
          self.scx = ShoppingCartException()
11372
          self.scx.read(iprot)
11373
        else:
11374
          iprot.skip(ftype)
11375
      else:
11376
        iprot.skip(ftype)
11377
      iprot.readFieldEnd()
11378
    iprot.readStructEnd()
11379
 
11380
  def write(self, oprot):
11381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11383
      return
11384
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 11385
    if self.scx is not None:
1976 varun.gupt 11386
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11387
      self.scx.write(oprot)
11388
      oprot.writeFieldEnd()
11389
    oprot.writeFieldStop()
11390
    oprot.writeStructEnd()
11391
 
3431 rajveer 11392
  def validate(self):
11393
    return
11394
 
11395
 
1976 varun.gupt 11396
  def __repr__(self):
11397
    L = ['%s=%r' % (key, value)
11398
      for key, value in self.__dict__.iteritems()]
11399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11400
 
11401
  def __eq__(self, other):
11402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11403
 
11404
  def __ne__(self, other):
11405
    return not (self == other)
11406
 
3554 varun.gupt 11407
class deleteDiscountsFromCart_args:
11408
  """
11409
  Attributes:
11410
   - cartId
11411
  """
11412
 
11413
  thrift_spec = (
11414
    None, # 0
11415
    (1, TType.I64, 'cartId', None, None, ), # 1
11416
  )
11417
 
11418
  def __init__(self, cartId=None,):
11419
    self.cartId = cartId
11420
 
11421
  def read(self, iprot):
11422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11424
      return
11425
    iprot.readStructBegin()
11426
    while True:
11427
      (fname, ftype, fid) = iprot.readFieldBegin()
11428
      if ftype == TType.STOP:
11429
        break
11430
      if fid == 1:
11431
        if ftype == TType.I64:
11432
          self.cartId = iprot.readI64();
11433
        else:
11434
          iprot.skip(ftype)
11435
      else:
11436
        iprot.skip(ftype)
11437
      iprot.readFieldEnd()
11438
    iprot.readStructEnd()
11439
 
11440
  def write(self, oprot):
11441
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11442
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11443
      return
11444
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
11445
    if self.cartId is not None:
11446
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11447
      oprot.writeI64(self.cartId)
11448
      oprot.writeFieldEnd()
11449
    oprot.writeFieldStop()
11450
    oprot.writeStructEnd()
11451
 
11452
  def validate(self):
11453
    return
11454
 
11455
 
11456
  def __repr__(self):
11457
    L = ['%s=%r' % (key, value)
11458
      for key, value in self.__dict__.iteritems()]
11459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11460
 
11461
  def __eq__(self, other):
11462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11463
 
11464
  def __ne__(self, other):
11465
    return not (self == other)
11466
 
11467
class deleteDiscountsFromCart_result:
11468
  """
11469
  Attributes:
11470
   - scx
11471
  """
11472
 
11473
  thrift_spec = (
11474
    None, # 0
11475
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11476
  )
11477
 
11478
  def __init__(self, scx=None,):
11479
    self.scx = scx
11480
 
11481
  def read(self, iprot):
11482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11484
      return
11485
    iprot.readStructBegin()
11486
    while True:
11487
      (fname, ftype, fid) = iprot.readFieldBegin()
11488
      if ftype == TType.STOP:
11489
        break
11490
      if fid == 1:
11491
        if ftype == TType.STRUCT:
11492
          self.scx = ShoppingCartException()
11493
          self.scx.read(iprot)
11494
        else:
11495
          iprot.skip(ftype)
11496
      else:
11497
        iprot.skip(ftype)
11498
      iprot.readFieldEnd()
11499
    iprot.readStructEnd()
11500
 
11501
  def write(self, oprot):
11502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11504
      return
11505
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
11506
    if self.scx is not None:
11507
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11508
      self.scx.write(oprot)
11509
      oprot.writeFieldEnd()
11510
    oprot.writeFieldStop()
11511
    oprot.writeStructEnd()
11512
 
11513
  def validate(self):
11514
    return
11515
 
11516
 
11517
  def __repr__(self):
11518
    L = ['%s=%r' % (key, value)
11519
      for key, value in self.__dict__.iteritems()]
11520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11521
 
11522
  def __eq__(self, other):
11523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11524
 
11525
  def __ne__(self, other):
11526
    return not (self == other)
11527
 
11528
class saveDiscounts_args:
11529
  """
11530
  Attributes:
11531
   - discounts
11532
  """
11533
 
11534
  thrift_spec = (
11535
    None, # 0
11536
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
11537
  )
11538
 
11539
  def __init__(self, discounts=None,):
11540
    self.discounts = discounts
11541
 
11542
  def read(self, iprot):
11543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11545
      return
11546
    iprot.readStructBegin()
11547
    while True:
11548
      (fname, ftype, fid) = iprot.readFieldBegin()
11549
      if ftype == TType.STOP:
11550
        break
11551
      if fid == 1:
11552
        if ftype == TType.LIST:
11553
          self.discounts = []
11554
          (_etype122, _size119) = iprot.readListBegin()
11555
          for _i123 in xrange(_size119):
11556
            _elem124 = Discount()
11557
            _elem124.read(iprot)
11558
            self.discounts.append(_elem124)
11559
          iprot.readListEnd()
11560
        else:
11561
          iprot.skip(ftype)
11562
      else:
11563
        iprot.skip(ftype)
11564
      iprot.readFieldEnd()
11565
    iprot.readStructEnd()
11566
 
11567
  def write(self, oprot):
11568
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11569
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11570
      return
11571
    oprot.writeStructBegin('saveDiscounts_args')
11572
    if self.discounts is not None:
11573
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
11574
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
11575
      for iter125 in self.discounts:
11576
        iter125.write(oprot)
11577
      oprot.writeListEnd()
11578
      oprot.writeFieldEnd()
11579
    oprot.writeFieldStop()
11580
    oprot.writeStructEnd()
11581
 
11582
  def validate(self):
11583
    return
11584
 
11585
 
11586
  def __repr__(self):
11587
    L = ['%s=%r' % (key, value)
11588
      for key, value in self.__dict__.iteritems()]
11589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11590
 
11591
  def __eq__(self, other):
11592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11593
 
11594
  def __ne__(self, other):
11595
    return not (self == other)
11596
 
11597
class saveDiscounts_result:
11598
  """
11599
  Attributes:
11600
   - scx
11601
  """
11602
 
11603
  thrift_spec = (
11604
    None, # 0
11605
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11606
  )
11607
 
11608
  def __init__(self, scx=None,):
11609
    self.scx = scx
11610
 
11611
  def read(self, iprot):
11612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11614
      return
11615
    iprot.readStructBegin()
11616
    while True:
11617
      (fname, ftype, fid) = iprot.readFieldBegin()
11618
      if ftype == TType.STOP:
11619
        break
11620
      if fid == 1:
11621
        if ftype == TType.STRUCT:
11622
          self.scx = ShoppingCartException()
11623
          self.scx.read(iprot)
11624
        else:
11625
          iprot.skip(ftype)
11626
      else:
11627
        iprot.skip(ftype)
11628
      iprot.readFieldEnd()
11629
    iprot.readStructEnd()
11630
 
11631
  def write(self, oprot):
11632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11634
      return
11635
    oprot.writeStructBegin('saveDiscounts_result')
11636
    if self.scx is not None:
11637
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11638
      self.scx.write(oprot)
11639
      oprot.writeFieldEnd()
11640
    oprot.writeFieldStop()
11641
    oprot.writeStructEnd()
11642
 
11643
  def validate(self):
11644
    return
11645
 
11646
 
11647
  def __repr__(self):
11648
    L = ['%s=%r' % (key, value)
11649
      for key, value in self.__dict__.iteritems()]
11650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11651
 
11652
  def __eq__(self, other):
11653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11654
 
11655
  def __ne__(self, other):
11656
    return not (self == other)
11657
 
690 chandransh 11658
class createOrders_args:
559 chandransh 11659
  """
11660
  Attributes:
11661
   - cartId
2815 vikas 11662
   - sessionSource
11663
   - sessionStartTime
559 chandransh 11664
  """
11665
 
11666
  thrift_spec = (
11667
    None, # 0
11668
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 11669
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
11670
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
559 chandransh 11671
  )
11672
 
2815 vikas 11673
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None,):
559 chandransh 11674
    self.cartId = cartId
2815 vikas 11675
    self.sessionSource = sessionSource
11676
    self.sessionStartTime = sessionStartTime
559 chandransh 11677
 
11678
  def read(self, iprot):
11679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11681
      return
11682
    iprot.readStructBegin()
11683
    while True:
11684
      (fname, ftype, fid) = iprot.readFieldBegin()
11685
      if ftype == TType.STOP:
11686
        break
11687
      if fid == 1:
11688
        if ftype == TType.I64:
11689
          self.cartId = iprot.readI64();
11690
        else:
11691
          iprot.skip(ftype)
2815 vikas 11692
      elif fid == 2:
11693
        if ftype == TType.STRING:
11694
          self.sessionSource = iprot.readString();
11695
        else:
11696
          iprot.skip(ftype)
11697
      elif fid == 3:
11698
        if ftype == TType.I64:
11699
          self.sessionStartTime = iprot.readI64();
11700
        else:
11701
          iprot.skip(ftype)
559 chandransh 11702
      else:
11703
        iprot.skip(ftype)
11704
      iprot.readFieldEnd()
11705
    iprot.readStructEnd()
11706
 
11707
  def write(self, oprot):
11708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11710
      return
690 chandransh 11711
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 11712
    if self.cartId is not None:
559 chandransh 11713
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11714
      oprot.writeI64(self.cartId)
11715
      oprot.writeFieldEnd()
3431 rajveer 11716
    if self.sessionSource is not None:
2815 vikas 11717
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
11718
      oprot.writeString(self.sessionSource)
11719
      oprot.writeFieldEnd()
3431 rajveer 11720
    if self.sessionStartTime is not None:
2815 vikas 11721
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
11722
      oprot.writeI64(self.sessionStartTime)
11723
      oprot.writeFieldEnd()
559 chandransh 11724
    oprot.writeFieldStop()
11725
    oprot.writeStructEnd()
11726
 
3431 rajveer 11727
  def validate(self):
11728
    return
11729
 
11730
 
559 chandransh 11731
  def __repr__(self):
11732
    L = ['%s=%r' % (key, value)
11733
      for key, value in self.__dict__.iteritems()]
11734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11735
 
11736
  def __eq__(self, other):
11737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11738
 
11739
  def __ne__(self, other):
11740
    return not (self == other)
11741
 
690 chandransh 11742
class createOrders_result:
559 chandransh 11743
  """
11744
  Attributes:
94 ashish 11745
   - success
559 chandransh 11746
   - scx
94 ashish 11747
  """
11748
 
11749
  thrift_spec = (
575 chandransh 11750
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 11751
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11752
  )
11753
 
559 chandransh 11754
  def __init__(self, success=None, scx=None,):
94 ashish 11755
    self.success = success
559 chandransh 11756
    self.scx = scx
94 ashish 11757
 
11758
  def read(self, iprot):
11759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11761
      return
11762
    iprot.readStructBegin()
11763
    while True:
11764
      (fname, ftype, fid) = iprot.readFieldBegin()
11765
      if ftype == TType.STOP:
11766
        break
11767
      if fid == 0:
575 chandransh 11768
        if ftype == TType.I64:
11769
          self.success = iprot.readI64();
94 ashish 11770
        else:
11771
          iprot.skip(ftype)
11772
      elif fid == 1:
11773
        if ftype == TType.STRUCT:
559 chandransh 11774
          self.scx = ShoppingCartException()
11775
          self.scx.read(iprot)
94 ashish 11776
        else:
11777
          iprot.skip(ftype)
11778
      else:
11779
        iprot.skip(ftype)
11780
      iprot.readFieldEnd()
11781
    iprot.readStructEnd()
11782
 
11783
  def write(self, oprot):
11784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11786
      return
690 chandransh 11787
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 11788
    if self.success is not None:
575 chandransh 11789
      oprot.writeFieldBegin('success', TType.I64, 0)
11790
      oprot.writeI64(self.success)
94 ashish 11791
      oprot.writeFieldEnd()
3431 rajveer 11792
    if self.scx is not None:
559 chandransh 11793
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
11794
      self.scx.write(oprot)
94 ashish 11795
      oprot.writeFieldEnd()
11796
    oprot.writeFieldStop()
11797
    oprot.writeStructEnd()
11798
 
3431 rajveer 11799
  def validate(self):
11800
    return
11801
 
11802
 
94 ashish 11803
  def __repr__(self):
11804
    L = ['%s=%r' % (key, value)
11805
      for key, value in self.__dict__.iteritems()]
11806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11807
 
11808
  def __eq__(self, other):
11809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11810
 
11811
  def __ne__(self, other):
11812
    return not (self == other)
11813
 
559 chandransh 11814
class validateCart_args:
94 ashish 11815
  """
11816
  Attributes:
559 chandransh 11817
   - cartId
3557 rajveer 11818
   - sourceId
94 ashish 11819
  """
11820
 
11821
  thrift_spec = (
11822
    None, # 0
559 chandransh 11823
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 11824
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 11825
  )
11826
 
3557 rajveer 11827
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 11828
    self.cartId = cartId
3557 rajveer 11829
    self.sourceId = sourceId
94 ashish 11830
 
11831
  def read(self, iprot):
11832
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11833
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11834
      return
11835
    iprot.readStructBegin()
11836
    while True:
11837
      (fname, ftype, fid) = iprot.readFieldBegin()
11838
      if ftype == TType.STOP:
11839
        break
11840
      if fid == 1:
11841
        if ftype == TType.I64:
559 chandransh 11842
          self.cartId = iprot.readI64();
94 ashish 11843
        else:
11844
          iprot.skip(ftype)
3557 rajveer 11845
      elif fid == 2:
11846
        if ftype == TType.I64:
11847
          self.sourceId = iprot.readI64();
11848
        else:
11849
          iprot.skip(ftype)
94 ashish 11850
      else:
11851
        iprot.skip(ftype)
11852
      iprot.readFieldEnd()
11853
    iprot.readStructEnd()
11854
 
11855
  def write(self, oprot):
11856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11858
      return
559 chandransh 11859
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 11860
    if self.cartId is not None:
559 chandransh 11861
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11862
      oprot.writeI64(self.cartId)
94 ashish 11863
      oprot.writeFieldEnd()
3557 rajveer 11864
    if self.sourceId is not None:
11865
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
11866
      oprot.writeI64(self.sourceId)
11867
      oprot.writeFieldEnd()
94 ashish 11868
    oprot.writeFieldStop()
11869
    oprot.writeStructEnd()
11870
 
3431 rajveer 11871
  def validate(self):
11872
    return
11873
 
11874
 
94 ashish 11875
  def __repr__(self):
11876
    L = ['%s=%r' % (key, value)
11877
      for key, value in self.__dict__.iteritems()]
11878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11879
 
11880
  def __eq__(self, other):
11881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11882
 
11883
  def __ne__(self, other):
11884
    return not (self == other)
11885
 
559 chandransh 11886
class validateCart_result:
94 ashish 11887
  """
11888
  Attributes:
11889
   - success
575 chandransh 11890
   - scex
94 ashish 11891
  """
11892
 
11893
  thrift_spec = (
1466 ankur.sing 11894
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11895
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11896
  )
11897
 
575 chandransh 11898
  def __init__(self, success=None, scex=None,):
94 ashish 11899
    self.success = success
575 chandransh 11900
    self.scex = scex
94 ashish 11901
 
11902
  def read(self, iprot):
11903
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11904
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11905
      return
11906
    iprot.readStructBegin()
11907
    while True:
11908
      (fname, ftype, fid) = iprot.readFieldBegin()
11909
      if ftype == TType.STOP:
11910
        break
11911
      if fid == 0:
1466 ankur.sing 11912
        if ftype == TType.STRING:
11913
          self.success = iprot.readString();
94 ashish 11914
        else:
11915
          iprot.skip(ftype)
575 chandransh 11916
      elif fid == 1:
11917
        if ftype == TType.STRUCT:
11918
          self.scex = ShoppingCartException()
11919
          self.scex.read(iprot)
11920
        else:
11921
          iprot.skip(ftype)
94 ashish 11922
      else:
11923
        iprot.skip(ftype)
11924
      iprot.readFieldEnd()
11925
    iprot.readStructEnd()
11926
 
11927
  def write(self, oprot):
11928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11930
      return
559 chandransh 11931
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11932
    if self.success is not None:
1466 ankur.sing 11933
      oprot.writeFieldBegin('success', TType.STRING, 0)
11934
      oprot.writeString(self.success)
94 ashish 11935
      oprot.writeFieldEnd()
3431 rajveer 11936
    if self.scex is not None:
575 chandransh 11937
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11938
      self.scex.write(oprot)
11939
      oprot.writeFieldEnd()
559 chandransh 11940
    oprot.writeFieldStop()
11941
    oprot.writeStructEnd()
11942
 
3431 rajveer 11943
  def validate(self):
11944
    return
11945
 
11946
 
559 chandransh 11947
  def __repr__(self):
11948
    L = ['%s=%r' % (key, value)
11949
      for key, value in self.__dict__.iteritems()]
11950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11951
 
11952
  def __eq__(self, other):
11953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11954
 
11955
  def __ne__(self, other):
11956
    return not (self == other)
11957
 
690 chandransh 11958
class mergeCart_args:
575 chandransh 11959
  """
11960
  Attributes:
690 chandransh 11961
   - fromCartId
11962
   - toCartId
11963
  """
11964
 
11965
  thrift_spec = (
11966
    None, # 0
11967
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11968
    (2, TType.I64, 'toCartId', None, None, ), # 2
11969
  )
11970
 
11971
  def __init__(self, fromCartId=None, toCartId=None,):
11972
    self.fromCartId = fromCartId
11973
    self.toCartId = toCartId
11974
 
11975
  def read(self, iprot):
11976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11978
      return
11979
    iprot.readStructBegin()
11980
    while True:
11981
      (fname, ftype, fid) = iprot.readFieldBegin()
11982
      if ftype == TType.STOP:
11983
        break
11984
      if fid == 1:
11985
        if ftype == TType.I64:
11986
          self.fromCartId = iprot.readI64();
11987
        else:
11988
          iprot.skip(ftype)
11989
      elif fid == 2:
11990
        if ftype == TType.I64:
11991
          self.toCartId = iprot.readI64();
11992
        else:
11993
          iprot.skip(ftype)
11994
      else:
11995
        iprot.skip(ftype)
11996
      iprot.readFieldEnd()
11997
    iprot.readStructEnd()
11998
 
11999
  def write(self, oprot):
12000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12002
      return
12003
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 12004
    if self.fromCartId is not None:
690 chandransh 12005
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
12006
      oprot.writeI64(self.fromCartId)
12007
      oprot.writeFieldEnd()
3431 rajveer 12008
    if self.toCartId is not None:
690 chandransh 12009
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
12010
      oprot.writeI64(self.toCartId)
12011
      oprot.writeFieldEnd()
12012
    oprot.writeFieldStop()
12013
    oprot.writeStructEnd()
12014
 
3431 rajveer 12015
  def validate(self):
12016
    return
12017
 
12018
 
690 chandransh 12019
  def __repr__(self):
12020
    L = ['%s=%r' % (key, value)
12021
      for key, value in self.__dict__.iteritems()]
12022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12023
 
12024
  def __eq__(self, other):
12025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12026
 
12027
  def __ne__(self, other):
12028
    return not (self == other)
12029
 
12030
class mergeCart_result:
12031
 
12032
  thrift_spec = (
12033
  )
12034
 
12035
  def read(self, iprot):
12036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12038
      return
12039
    iprot.readStructBegin()
12040
    while True:
12041
      (fname, ftype, fid) = iprot.readFieldBegin()
12042
      if ftype == TType.STOP:
12043
        break
12044
      else:
12045
        iprot.skip(ftype)
12046
      iprot.readFieldEnd()
12047
    iprot.readStructEnd()
12048
 
12049
  def write(self, oprot):
12050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12052
      return
12053
    oprot.writeStructBegin('mergeCart_result')
12054
    oprot.writeFieldStop()
12055
    oprot.writeStructEnd()
12056
 
3431 rajveer 12057
  def validate(self):
12058
    return
12059
 
12060
 
690 chandransh 12061
  def __repr__(self):
12062
    L = ['%s=%r' % (key, value)
12063
      for key, value in self.__dict__.iteritems()]
12064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12065
 
12066
  def __eq__(self, other):
12067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12068
 
12069
  def __ne__(self, other):
12070
    return not (self == other)
12071
 
12072
class checkOut_args:
12073
  """
12074
  Attributes:
575 chandransh 12075
   - cartId
12076
  """
12077
 
12078
  thrift_spec = (
12079
    None, # 0
12080
    (1, TType.I64, 'cartId', None, None, ), # 1
12081
  )
12082
 
12083
  def __init__(self, cartId=None,):
12084
    self.cartId = cartId
12085
 
12086
  def read(self, iprot):
12087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12089
      return
12090
    iprot.readStructBegin()
12091
    while True:
12092
      (fname, ftype, fid) = iprot.readFieldBegin()
12093
      if ftype == TType.STOP:
12094
        break
12095
      if fid == 1:
12096
        if ftype == TType.I64:
12097
          self.cartId = iprot.readI64();
12098
        else:
12099
          iprot.skip(ftype)
12100
      else:
12101
        iprot.skip(ftype)
12102
      iprot.readFieldEnd()
12103
    iprot.readStructEnd()
12104
 
12105
  def write(self, oprot):
12106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12108
      return
690 chandransh 12109
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 12110
    if self.cartId is not None:
575 chandransh 12111
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12112
      oprot.writeI64(self.cartId)
12113
      oprot.writeFieldEnd()
12114
    oprot.writeFieldStop()
12115
    oprot.writeStructEnd()
12116
 
3431 rajveer 12117
  def validate(self):
12118
    return
12119
 
12120
 
575 chandransh 12121
  def __repr__(self):
12122
    L = ['%s=%r' % (key, value)
12123
      for key, value in self.__dict__.iteritems()]
12124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12125
 
12126
  def __eq__(self, other):
12127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12128
 
12129
  def __ne__(self, other):
12130
    return not (self == other)
12131
 
690 chandransh 12132
class checkOut_result:
575 chandransh 12133
  """
12134
  Attributes:
12135
   - success
12136
   - scex
12137
  """
12138
 
12139
  thrift_spec = (
12140
    (0, TType.BOOL, 'success', None, None, ), # 0
12141
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
12142
  )
12143
 
12144
  def __init__(self, success=None, scex=None,):
12145
    self.success = success
12146
    self.scex = scex
12147
 
12148
  def read(self, iprot):
12149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12151
      return
12152
    iprot.readStructBegin()
12153
    while True:
12154
      (fname, ftype, fid) = iprot.readFieldBegin()
12155
      if ftype == TType.STOP:
12156
        break
12157
      if fid == 0:
12158
        if ftype == TType.BOOL:
12159
          self.success = iprot.readBool();
12160
        else:
12161
          iprot.skip(ftype)
12162
      elif fid == 1:
12163
        if ftype == TType.STRUCT:
12164
          self.scex = ShoppingCartException()
12165
          self.scex.read(iprot)
12166
        else:
12167
          iprot.skip(ftype)
12168
      else:
12169
        iprot.skip(ftype)
12170
      iprot.readFieldEnd()
12171
    iprot.readStructEnd()
12172
 
12173
  def write(self, oprot):
12174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12176
      return
690 chandransh 12177
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 12178
    if self.success is not None:
575 chandransh 12179
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12180
      oprot.writeBool(self.success)
12181
      oprot.writeFieldEnd()
3431 rajveer 12182
    if self.scex is not None:
575 chandransh 12183
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12184
      self.scex.write(oprot)
12185
      oprot.writeFieldEnd()
12186
    oprot.writeFieldStop()
12187
    oprot.writeStructEnd()
12188
 
3431 rajveer 12189
  def validate(self):
12190
    return
12191
 
12192
 
575 chandransh 12193
  def __repr__(self):
12194
    L = ['%s=%r' % (key, value)
12195
      for key, value in self.__dict__.iteritems()]
12196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12197
 
12198
  def __eq__(self, other):
12199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12200
 
12201
  def __ne__(self, other):
12202
    return not (self == other)
12203
 
690 chandransh 12204
class resetCart_args:
559 chandransh 12205
  """
12206
  Attributes:
690 chandransh 12207
   - cartId
12208
   - items
559 chandransh 12209
  """
12210
 
12211
  thrift_spec = (
12212
    None, # 0
690 chandransh 12213
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 12214
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 12215
  )
12216
 
690 chandransh 12217
  def __init__(self, cartId=None, items=None,):
12218
    self.cartId = cartId
12219
    self.items = items
559 chandransh 12220
 
12221
  def read(self, iprot):
12222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12224
      return
12225
    iprot.readStructBegin()
12226
    while True:
12227
      (fname, ftype, fid) = iprot.readFieldBegin()
12228
      if ftype == TType.STOP:
12229
        break
12230
      if fid == 1:
12231
        if ftype == TType.I64:
690 chandransh 12232
          self.cartId = iprot.readI64();
559 chandransh 12233
        else:
12234
          iprot.skip(ftype)
12235
      elif fid == 2:
690 chandransh 12236
        if ftype == TType.MAP:
12237
          self.items = {}
3554 varun.gupt 12238
          (_ktype127, _vtype128, _size126 ) = iprot.readMapBegin() 
12239
          for _i130 in xrange(_size126):
12240
            _key131 = iprot.readI64();
12241
            _val132 = iprot.readDouble();
12242
            self.items[_key131] = _val132
690 chandransh 12243
          iprot.readMapEnd()
559 chandransh 12244
        else:
12245
          iprot.skip(ftype)
12246
      else:
12247
        iprot.skip(ftype)
12248
      iprot.readFieldEnd()
12249
    iprot.readStructEnd()
12250
 
12251
  def write(self, oprot):
12252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12254
      return
690 chandransh 12255
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 12256
    if self.cartId is not None:
690 chandransh 12257
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12258
      oprot.writeI64(self.cartId)
94 ashish 12259
      oprot.writeFieldEnd()
3431 rajveer 12260
    if self.items is not None:
690 chandransh 12261
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 12262
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
3554 varun.gupt 12263
      for kiter133,viter134 in self.items.items():
12264
        oprot.writeI64(kiter133)
12265
        oprot.writeDouble(viter134)
690 chandransh 12266
      oprot.writeMapEnd()
559 chandransh 12267
      oprot.writeFieldEnd()
94 ashish 12268
    oprot.writeFieldStop()
12269
    oprot.writeStructEnd()
12270
 
3431 rajveer 12271
  def validate(self):
12272
    return
12273
 
12274
 
94 ashish 12275
  def __repr__(self):
12276
    L = ['%s=%r' % (key, value)
12277
      for key, value in self.__dict__.iteritems()]
12278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12279
 
12280
  def __eq__(self, other):
12281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12282
 
12283
  def __ne__(self, other):
12284
    return not (self == other)
12285
 
690 chandransh 12286
class resetCart_result:
12287
  """
12288
  Attributes:
12289
   - success
12290
   - scex
12291
  """
559 chandransh 12292
 
12293
  thrift_spec = (
690 chandransh 12294
    (0, TType.BOOL, 'success', None, None, ), # 0
12295
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 12296
  )
12297
 
690 chandransh 12298
  def __init__(self, success=None, scex=None,):
12299
    self.success = success
12300
    self.scex = scex
12301
 
559 chandransh 12302
  def read(self, iprot):
12303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12305
      return
12306
    iprot.readStructBegin()
12307
    while True:
12308
      (fname, ftype, fid) = iprot.readFieldBegin()
12309
      if ftype == TType.STOP:
12310
        break
690 chandransh 12311
      if fid == 0:
12312
        if ftype == TType.BOOL:
12313
          self.success = iprot.readBool();
12314
        else:
12315
          iprot.skip(ftype)
12316
      elif fid == 1:
12317
        if ftype == TType.STRUCT:
12318
          self.scex = ShoppingCartException()
12319
          self.scex.read(iprot)
12320
        else:
12321
          iprot.skip(ftype)
559 chandransh 12322
      else:
12323
        iprot.skip(ftype)
12324
      iprot.readFieldEnd()
12325
    iprot.readStructEnd()
12326
 
12327
  def write(self, oprot):
12328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12330
      return
690 chandransh 12331
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 12332
    if self.success is not None:
690 chandransh 12333
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12334
      oprot.writeBool(self.success)
12335
      oprot.writeFieldEnd()
3431 rajveer 12336
    if self.scex is not None:
690 chandransh 12337
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
12338
      self.scex.write(oprot)
12339
      oprot.writeFieldEnd()
559 chandransh 12340
    oprot.writeFieldStop()
12341
    oprot.writeStructEnd()
12342
 
3431 rajveer 12343
  def validate(self):
12344
    return
12345
 
12346
 
559 chandransh 12347
  def __repr__(self):
12348
    L = ['%s=%r' % (key, value)
12349
      for key, value in self.__dict__.iteritems()]
12350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12351
 
12352
  def __eq__(self, other):
12353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12354
 
12355
  def __ne__(self, other):
12356
    return not (self == other)
12357
 
2981 rajveer 12358
class getUserCount_args:
94 ashish 12359
  """
12360
  Attributes:
2981 rajveer 12361
   - userType
559 chandransh 12362
  """
12363
 
12364
  thrift_spec = (
12365
    None, # 0
2981 rajveer 12366
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 12367
  )
12368
 
2981 rajveer 12369
  def __init__(self, userType=None,):
12370
    self.userType = userType
559 chandransh 12371
 
12372
  def read(self, iprot):
12373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12375
      return
12376
    iprot.readStructBegin()
12377
    while True:
12378
      (fname, ftype, fid) = iprot.readFieldBegin()
12379
      if ftype == TType.STOP:
12380
        break
12381
      if fid == 1:
2981 rajveer 12382
        if ftype == TType.I32:
12383
          self.userType = iprot.readI32();
559 chandransh 12384
        else:
12385
          iprot.skip(ftype)
12386
      else:
12387
        iprot.skip(ftype)
12388
      iprot.readFieldEnd()
12389
    iprot.readStructEnd()
12390
 
12391
  def write(self, oprot):
12392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12394
      return
2981 rajveer 12395
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 12396
    if self.userType is not None:
2981 rajveer 12397
      oprot.writeFieldBegin('userType', TType.I32, 1)
12398
      oprot.writeI32(self.userType)
559 chandransh 12399
      oprot.writeFieldEnd()
12400
    oprot.writeFieldStop()
12401
    oprot.writeStructEnd()
12402
 
3431 rajveer 12403
  def validate(self):
12404
    return
12405
 
12406
 
559 chandransh 12407
  def __repr__(self):
12408
    L = ['%s=%r' % (key, value)
12409
      for key, value in self.__dict__.iteritems()]
12410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12411
 
12412
  def __eq__(self, other):
12413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12414
 
12415
  def __ne__(self, other):
12416
    return not (self == other)
12417
 
2981 rajveer 12418
class getUserCount_result:
94 ashish 12419
  """
12420
  Attributes:
12421
   - success
12422
  """
12423
 
12424
  thrift_spec = (
2981 rajveer 12425
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 12426
  )
12427
 
2981 rajveer 12428
  def __init__(self, success=None,):
94 ashish 12429
    self.success = success
12430
 
12431
  def read(self, iprot):
12432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12434
      return
12435
    iprot.readStructBegin()
12436
    while True:
12437
      (fname, ftype, fid) = iprot.readFieldBegin()
12438
      if ftype == TType.STOP:
12439
        break
12440
      if fid == 0:
2981 rajveer 12441
        if ftype == TType.I64:
12442
          self.success = iprot.readI64();
94 ashish 12443
        else:
12444
          iprot.skip(ftype)
12445
      else:
12446
        iprot.skip(ftype)
12447
      iprot.readFieldEnd()
12448
    iprot.readStructEnd()
12449
 
12450
  def write(self, oprot):
12451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12453
      return
2981 rajveer 12454
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 12455
    if self.success is not None:
2981 rajveer 12456
      oprot.writeFieldBegin('success', TType.I64, 0)
12457
      oprot.writeI64(self.success)
94 ashish 12458
      oprot.writeFieldEnd()
12459
    oprot.writeFieldStop()
12460
    oprot.writeStructEnd()
12461
 
3431 rajveer 12462
  def validate(self):
12463
    return
12464
 
12465
 
94 ashish 12466
  def __repr__(self):
12467
    L = ['%s=%r' % (key, value)
12468
      for key, value in self.__dict__.iteritems()]
12469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12470
 
12471
  def __eq__(self, other):
12472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12473
 
12474
  def __ne__(self, other):
12475
    return not (self == other)
12476
 
2981 rajveer 12477
class getAllUsers_args:
94 ashish 12478
  """
12479
  Attributes:
2981 rajveer 12480
   - userType
12481
   - startDate
12482
   - endDate
94 ashish 12483
  """
12484
 
12485
  thrift_spec = (
12486
    None, # 0
2981 rajveer 12487
    (1, TType.I32, 'userType', None, None, ), # 1
12488
    (2, TType.I64, 'startDate', None, None, ), # 2
12489
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 12490
  )
12491
 
2981 rajveer 12492
  def __init__(self, userType=None, startDate=None, endDate=None,):
12493
    self.userType = userType
12494
    self.startDate = startDate
12495
    self.endDate = endDate
94 ashish 12496
 
12497
  def read(self, iprot):
12498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12500
      return
12501
    iprot.readStructBegin()
12502
    while True:
12503
      (fname, ftype, fid) = iprot.readFieldBegin()
12504
      if ftype == TType.STOP:
12505
        break
12506
      if fid == 1:
2981 rajveer 12507
        if ftype == TType.I32:
12508
          self.userType = iprot.readI32();
94 ashish 12509
        else:
12510
          iprot.skip(ftype)
12511
      elif fid == 2:
559 chandransh 12512
        if ftype == TType.I64:
2981 rajveer 12513
          self.startDate = iprot.readI64();
94 ashish 12514
        else:
12515
          iprot.skip(ftype)
2981 rajveer 12516
      elif fid == 3:
12517
        if ftype == TType.I64:
12518
          self.endDate = iprot.readI64();
12519
        else:
12520
          iprot.skip(ftype)
94 ashish 12521
      else:
12522
        iprot.skip(ftype)
12523
      iprot.readFieldEnd()
12524
    iprot.readStructEnd()
12525
 
12526
  def write(self, oprot):
12527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12529
      return
2981 rajveer 12530
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 12531
    if self.userType is not None:
2981 rajveer 12532
      oprot.writeFieldBegin('userType', TType.I32, 1)
12533
      oprot.writeI32(self.userType)
94 ashish 12534
      oprot.writeFieldEnd()
3431 rajveer 12535
    if self.startDate is not None:
2981 rajveer 12536
      oprot.writeFieldBegin('startDate', TType.I64, 2)
12537
      oprot.writeI64(self.startDate)
94 ashish 12538
      oprot.writeFieldEnd()
3431 rajveer 12539
    if self.endDate is not None:
2981 rajveer 12540
      oprot.writeFieldBegin('endDate', TType.I64, 3)
12541
      oprot.writeI64(self.endDate)
12542
      oprot.writeFieldEnd()
94 ashish 12543
    oprot.writeFieldStop()
12544
    oprot.writeStructEnd()
12545
 
3431 rajveer 12546
  def validate(self):
12547
    return
12548
 
12549
 
94 ashish 12550
  def __repr__(self):
12551
    L = ['%s=%r' % (key, value)
12552
      for key, value in self.__dict__.iteritems()]
12553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12554
 
12555
  def __eq__(self, other):
12556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12557
 
12558
  def __ne__(self, other):
12559
    return not (self == other)
12560
 
2981 rajveer 12561
class getAllUsers_result:
94 ashish 12562
  """
12563
  Attributes:
12564
   - success
12565
  """
12566
 
12567
  thrift_spec = (
2981 rajveer 12568
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 12569
  )
12570
 
2981 rajveer 12571
  def __init__(self, success=None,):
94 ashish 12572
    self.success = success
12573
 
12574
  def read(self, iprot):
12575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12577
      return
12578
    iprot.readStructBegin()
12579
    while True:
12580
      (fname, ftype, fid) = iprot.readFieldBegin()
12581
      if ftype == TType.STOP:
12582
        break
12583
      if fid == 0:
2981 rajveer 12584
        if ftype == TType.LIST:
12585
          self.success = []
3554 varun.gupt 12586
          (_etype138, _size135) = iprot.readListBegin()
12587
          for _i139 in xrange(_size135):
12588
            _elem140 = User()
12589
            _elem140.read(iprot)
12590
            self.success.append(_elem140)
2981 rajveer 12591
          iprot.readListEnd()
94 ashish 12592
        else:
12593
          iprot.skip(ftype)
12594
      else:
12595
        iprot.skip(ftype)
12596
      iprot.readFieldEnd()
12597
    iprot.readStructEnd()
12598
 
12599
  def write(self, oprot):
12600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12602
      return
2981 rajveer 12603
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 12604
    if self.success is not None:
2981 rajveer 12605
      oprot.writeFieldBegin('success', TType.LIST, 0)
12606
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 12607
      for iter141 in self.success:
12608
        iter141.write(oprot)
2981 rajveer 12609
      oprot.writeListEnd()
94 ashish 12610
      oprot.writeFieldEnd()
12611
    oprot.writeFieldStop()
12612
    oprot.writeStructEnd()
12613
 
3431 rajveer 12614
  def validate(self):
12615
    return
12616
 
12617
 
94 ashish 12618
  def __repr__(self):
12619
    L = ['%s=%r' % (key, value)
12620
      for key, value in self.__dict__.iteritems()]
12621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12622
 
12623
  def __eq__(self, other):
12624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12625
 
12626
  def __ne__(self, other):
12627
    return not (self == other)
12628
 
2981 rajveer 12629
class putUserNote_args:
130 ashish 12630
  """
12631
  Attributes:
2981 rajveer 12632
   - user_id
12633
   - entity_id
12634
   - slide
12635
   - note
130 ashish 12636
  """
94 ashish 12637
 
130 ashish 12638
  thrift_spec = (
12639
    None, # 0
2981 rajveer 12640
    (1, TType.I64, 'user_id', None, None, ), # 1
12641
    (2, TType.I64, 'entity_id', None, None, ), # 2
12642
    (3, TType.STRING, 'slide', None, None, ), # 3
12643
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 12644
  )
12645
 
2981 rajveer 12646
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
12647
    self.user_id = user_id
12648
    self.entity_id = entity_id
12649
    self.slide = slide
12650
    self.note = note
130 ashish 12651
 
12652
  def read(self, iprot):
12653
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12654
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12655
      return
12656
    iprot.readStructBegin()
12657
    while True:
12658
      (fname, ftype, fid) = iprot.readFieldBegin()
12659
      if ftype == TType.STOP:
12660
        break
12661
      if fid == 1:
12662
        if ftype == TType.I64:
2981 rajveer 12663
          self.user_id = iprot.readI64();
130 ashish 12664
        else:
12665
          iprot.skip(ftype)
559 chandransh 12666
      elif fid == 2:
12667
        if ftype == TType.I64:
2981 rajveer 12668
          self.entity_id = iprot.readI64();
559 chandransh 12669
        else:
12670
          iprot.skip(ftype)
2981 rajveer 12671
      elif fid == 3:
12672
        if ftype == TType.STRING:
12673
          self.slide = iprot.readString();
12674
        else:
12675
          iprot.skip(ftype)
12676
      elif fid == 4:
12677
        if ftype == TType.STRING:
12678
          self.note = iprot.readString();
12679
        else:
12680
          iprot.skip(ftype)
130 ashish 12681
      else:
12682
        iprot.skip(ftype)
12683
      iprot.readFieldEnd()
12684
    iprot.readStructEnd()
12685
 
12686
  def write(self, oprot):
12687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12689
      return
2981 rajveer 12690
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 12691
    if self.user_id is not None:
2981 rajveer 12692
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12693
      oprot.writeI64(self.user_id)
130 ashish 12694
      oprot.writeFieldEnd()
3431 rajveer 12695
    if self.entity_id is not None:
2981 rajveer 12696
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12697
      oprot.writeI64(self.entity_id)
559 chandransh 12698
      oprot.writeFieldEnd()
3431 rajveer 12699
    if self.slide is not None:
2981 rajveer 12700
      oprot.writeFieldBegin('slide', TType.STRING, 3)
12701
      oprot.writeString(self.slide)
12702
      oprot.writeFieldEnd()
3431 rajveer 12703
    if self.note is not None:
2981 rajveer 12704
      oprot.writeFieldBegin('note', TType.STRING, 4)
12705
      oprot.writeString(self.note)
12706
      oprot.writeFieldEnd()
130 ashish 12707
    oprot.writeFieldStop()
12708
    oprot.writeStructEnd()
12709
 
3431 rajveer 12710
  def validate(self):
12711
    return
12712
 
12713
 
130 ashish 12714
  def __repr__(self):
12715
    L = ['%s=%r' % (key, value)
12716
      for key, value in self.__dict__.iteritems()]
12717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12718
 
12719
  def __eq__(self, other):
12720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12721
 
12722
  def __ne__(self, other):
12723
    return not (self == other)
12724
 
2981 rajveer 12725
class putUserNote_result:
559 chandransh 12726
 
12727
  thrift_spec = (
12728
  )
12729
 
12730
  def read(self, iprot):
12731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12733
      return
12734
    iprot.readStructBegin()
12735
    while True:
12736
      (fname, ftype, fid) = iprot.readFieldBegin()
12737
      if ftype == TType.STOP:
12738
        break
12739
      else:
12740
        iprot.skip(ftype)
12741
      iprot.readFieldEnd()
12742
    iprot.readStructEnd()
12743
 
12744
  def write(self, oprot):
12745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12747
      return
2981 rajveer 12748
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 12749
    oprot.writeFieldStop()
12750
    oprot.writeStructEnd()
12751
 
3431 rajveer 12752
  def validate(self):
12753
    return
12754
 
12755
 
559 chandransh 12756
  def __repr__(self):
12757
    L = ['%s=%r' % (key, value)
12758
      for key, value in self.__dict__.iteritems()]
12759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12760
 
12761
  def __eq__(self, other):
12762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12763
 
12764
  def __ne__(self, other):
12765
    return not (self == other)
12766
 
2981 rajveer 12767
class getUserNotes_args:
559 chandransh 12768
  """
12769
  Attributes:
2981 rajveer 12770
   - user_id
12771
   - entity_id
559 chandransh 12772
  """
12773
 
12774
  thrift_spec = (
12775
    None, # 0
2981 rajveer 12776
    (1, TType.I64, 'user_id', None, None, ), # 1
12777
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 12778
  )
12779
 
2981 rajveer 12780
  def __init__(self, user_id=None, entity_id=None,):
12781
    self.user_id = user_id
12782
    self.entity_id = entity_id
559 chandransh 12783
 
12784
  def read(self, iprot):
12785
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12786
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12787
      return
12788
    iprot.readStructBegin()
12789
    while True:
12790
      (fname, ftype, fid) = iprot.readFieldBegin()
12791
      if ftype == TType.STOP:
12792
        break
12793
      if fid == 1:
12794
        if ftype == TType.I64:
2981 rajveer 12795
          self.user_id = iprot.readI64();
559 chandransh 12796
        else:
12797
          iprot.skip(ftype)
12798
      elif fid == 2:
12799
        if ftype == TType.I64:
2981 rajveer 12800
          self.entity_id = iprot.readI64();
559 chandransh 12801
        else:
12802
          iprot.skip(ftype)
12803
      else:
12804
        iprot.skip(ftype)
12805
      iprot.readFieldEnd()
12806
    iprot.readStructEnd()
12807
 
12808
  def write(self, oprot):
12809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12811
      return
2981 rajveer 12812
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 12813
    if self.user_id is not None:
2981 rajveer 12814
      oprot.writeFieldBegin('user_id', TType.I64, 1)
12815
      oprot.writeI64(self.user_id)
559 chandransh 12816
      oprot.writeFieldEnd()
3431 rajveer 12817
    if self.entity_id is not None:
2981 rajveer 12818
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
12819
      oprot.writeI64(self.entity_id)
559 chandransh 12820
      oprot.writeFieldEnd()
12821
    oprot.writeFieldStop()
12822
    oprot.writeStructEnd()
12823
 
3431 rajveer 12824
  def validate(self):
12825
    return
12826
 
12827
 
559 chandransh 12828
  def __repr__(self):
12829
    L = ['%s=%r' % (key, value)
12830
      for key, value in self.__dict__.iteritems()]
12831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12832
 
12833
  def __eq__(self, other):
12834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12835
 
12836
  def __ne__(self, other):
12837
    return not (self == other)
12838
 
2981 rajveer 12839
class getUserNotes_result:
12840
  """
12841
  Attributes:
12842
   - success
12843
  """
559 chandransh 12844
 
12845
  thrift_spec = (
2981 rajveer 12846
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 12847
  )
12848
 
2981 rajveer 12849
  def __init__(self, success=None,):
12850
    self.success = success
12851
 
559 chandransh 12852
  def read(self, iprot):
12853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12855
      return
12856
    iprot.readStructBegin()
12857
    while True:
12858
      (fname, ftype, fid) = iprot.readFieldBegin()
12859
      if ftype == TType.STOP:
12860
        break
2981 rajveer 12861
      if fid == 0:
12862
        if ftype == TType.LIST:
12863
          self.success = []
3554 varun.gupt 12864
          (_etype145, _size142) = iprot.readListBegin()
12865
          for _i146 in xrange(_size142):
12866
            _elem147 = UserNote()
12867
            _elem147.read(iprot)
12868
            self.success.append(_elem147)
2981 rajveer 12869
          iprot.readListEnd()
12870
        else:
12871
          iprot.skip(ftype)
559 chandransh 12872
      else:
12873
        iprot.skip(ftype)
12874
      iprot.readFieldEnd()
12875
    iprot.readStructEnd()
12876
 
12877
  def write(self, oprot):
12878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12880
      return
2981 rajveer 12881
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12882
    if self.success is not None:
2981 rajveer 12883
      oprot.writeFieldBegin('success', TType.LIST, 0)
12884
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3554 varun.gupt 12885
      for iter148 in self.success:
12886
        iter148.write(oprot)
2981 rajveer 12887
      oprot.writeListEnd()
12888
      oprot.writeFieldEnd()
559 chandransh 12889
    oprot.writeFieldStop()
12890
    oprot.writeStructEnd()
12891
 
3431 rajveer 12892
  def validate(self):
12893
    return
12894
 
12895
 
559 chandransh 12896
  def __repr__(self):
12897
    L = ['%s=%r' % (key, value)
12898
      for key, value in self.__dict__.iteritems()]
12899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12900
 
12901
  def __eq__(self, other):
12902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12903
 
12904
  def __ne__(self, other):
12905
    return not (self == other)
12906
 
2981 rajveer 12907
class getMyResearchItems_args:
559 chandransh 12908
  """
12909
  Attributes:
772 rajveer 12910
   - userId
559 chandransh 12911
  """
12912
 
12913
  thrift_spec = (
12914
    None, # 0
772 rajveer 12915
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12916
  )
12917
 
772 rajveer 12918
  def __init__(self, userId=None,):
12919
    self.userId = userId
559 chandransh 12920
 
12921
  def read(self, iprot):
12922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12924
      return
12925
    iprot.readStructBegin()
12926
    while True:
12927
      (fname, ftype, fid) = iprot.readFieldBegin()
12928
      if ftype == TType.STOP:
12929
        break
12930
      if fid == 1:
12931
        if ftype == TType.I64:
772 rajveer 12932
          self.userId = iprot.readI64();
559 chandransh 12933
        else:
12934
          iprot.skip(ftype)
12935
      else:
12936
        iprot.skip(ftype)
12937
      iprot.readFieldEnd()
12938
    iprot.readStructEnd()
12939
 
12940
  def write(self, oprot):
12941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12943
      return
2981 rajveer 12944
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12945
    if self.userId is not None:
772 rajveer 12946
      oprot.writeFieldBegin('userId', TType.I64, 1)
12947
      oprot.writeI64(self.userId)
559 chandransh 12948
      oprot.writeFieldEnd()
12949
    oprot.writeFieldStop()
12950
    oprot.writeStructEnd()
12951
 
3431 rajveer 12952
  def validate(self):
12953
    return
12954
 
12955
 
559 chandransh 12956
  def __repr__(self):
12957
    L = ['%s=%r' % (key, value)
12958
      for key, value in self.__dict__.iteritems()]
12959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12960
 
12961
  def __eq__(self, other):
12962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12963
 
12964
  def __ne__(self, other):
12965
    return not (self == other)
12966
 
2981 rajveer 12967
class getMyResearchItems_result:
559 chandransh 12968
  """
12969
  Attributes:
130 ashish 12970
   - success
559 chandransh 12971
   - scx
130 ashish 12972
  """
12973
 
12974
  thrift_spec = (
2981 rajveer 12975
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12976
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12977
  )
12978
 
559 chandransh 12979
  def __init__(self, success=None, scx=None,):
130 ashish 12980
    self.success = success
559 chandransh 12981
    self.scx = scx
130 ashish 12982
 
12983
  def read(self, iprot):
12984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12986
      return
12987
    iprot.readStructBegin()
12988
    while True:
12989
      (fname, ftype, fid) = iprot.readFieldBegin()
12990
      if ftype == TType.STOP:
12991
        break
12992
      if fid == 0:
2981 rajveer 12993
        if ftype == TType.LIST:
12994
          self.success = []
3554 varun.gupt 12995
          (_etype152, _size149) = iprot.readListBegin()
12996
          for _i153 in xrange(_size149):
12997
            _elem154 = iprot.readI64();
12998
            self.success.append(_elem154)
2981 rajveer 12999
          iprot.readListEnd()
130 ashish 13000
        else:
13001
          iprot.skip(ftype)
13002
      elif fid == 1:
13003
        if ftype == TType.STRUCT:
559 chandransh 13004
          self.scx = WidgetException()
13005
          self.scx.read(iprot)
130 ashish 13006
        else:
13007
          iprot.skip(ftype)
13008
      else:
13009
        iprot.skip(ftype)
13010
      iprot.readFieldEnd()
13011
    iprot.readStructEnd()
13012
 
13013
  def write(self, oprot):
13014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13016
      return
2981 rajveer 13017
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 13018
    if self.success is not None:
2981 rajveer 13019
      oprot.writeFieldBegin('success', TType.LIST, 0)
13020
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13021
      for iter155 in self.success:
13022
        oprot.writeI64(iter155)
2981 rajveer 13023
      oprot.writeListEnd()
130 ashish 13024
      oprot.writeFieldEnd()
3431 rajveer 13025
    if self.scx is not None:
559 chandransh 13026
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13027
      self.scx.write(oprot)
130 ashish 13028
      oprot.writeFieldEnd()
13029
    oprot.writeFieldStop()
13030
    oprot.writeStructEnd()
13031
 
3431 rajveer 13032
  def validate(self):
13033
    return
13034
 
13035
 
130 ashish 13036
  def __repr__(self):
13037
    L = ['%s=%r' % (key, value)
13038
      for key, value in self.__dict__.iteritems()]
13039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13040
 
13041
  def __eq__(self, other):
13042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13043
 
13044
  def __ne__(self, other):
13045
    return not (self == other)
13046
 
2981 rajveer 13047
class updateMyResearch_args:
130 ashish 13048
  """
13049
  Attributes:
2981 rajveer 13050
   - userId
13051
   - itemId
130 ashish 13052
  """
13053
 
13054
  thrift_spec = (
13055
    None, # 0
2981 rajveer 13056
    (1, TType.I64, 'userId', None, None, ), # 1
13057
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 13058
  )
13059
 
2981 rajveer 13060
  def __init__(self, userId=None, itemId=None,):
13061
    self.userId = userId
13062
    self.itemId = itemId
130 ashish 13063
 
13064
  def read(self, iprot):
13065
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13066
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13067
      return
13068
    iprot.readStructBegin()
13069
    while True:
13070
      (fname, ftype, fid) = iprot.readFieldBegin()
13071
      if ftype == TType.STOP:
13072
        break
13073
      if fid == 1:
559 chandransh 13074
        if ftype == TType.I64:
2981 rajveer 13075
          self.userId = iprot.readI64();
130 ashish 13076
        else:
13077
          iprot.skip(ftype)
13078
      elif fid == 2:
559 chandransh 13079
        if ftype == TType.I64:
2981 rajveer 13080
          self.itemId = iprot.readI64();
559 chandransh 13081
        else:
13082
          iprot.skip(ftype)
130 ashish 13083
      else:
13084
        iprot.skip(ftype)
13085
      iprot.readFieldEnd()
13086
    iprot.readStructEnd()
13087
 
13088
  def write(self, oprot):
13089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13091
      return
2981 rajveer 13092
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 13093
    if self.userId is not None:
2981 rajveer 13094
      oprot.writeFieldBegin('userId', TType.I64, 1)
13095
      oprot.writeI64(self.userId)
130 ashish 13096
      oprot.writeFieldEnd()
3431 rajveer 13097
    if self.itemId is not None:
2981 rajveer 13098
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13099
      oprot.writeI64(self.itemId)
130 ashish 13100
      oprot.writeFieldEnd()
13101
    oprot.writeFieldStop()
13102
    oprot.writeStructEnd()
13103
 
3431 rajveer 13104
  def validate(self):
13105
    return
13106
 
13107
 
130 ashish 13108
  def __repr__(self):
13109
    L = ['%s=%r' % (key, value)
13110
      for key, value in self.__dict__.iteritems()]
13111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13112
 
13113
  def __eq__(self, other):
13114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13115
 
13116
  def __ne__(self, other):
13117
    return not (self == other)
13118
 
2981 rajveer 13119
class updateMyResearch_result:
13120
  """
13121
  Attributes:
13122
   - success
13123
   - scx
13124
  """
559 chandransh 13125
 
13126
  thrift_spec = (
2981 rajveer 13127
    (0, TType.BOOL, 'success', None, None, ), # 0
13128
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 13129
  )
13130
 
2981 rajveer 13131
  def __init__(self, success=None, scx=None,):
13132
    self.success = success
13133
    self.scx = scx
13134
 
559 chandransh 13135
  def read(self, iprot):
13136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13138
      return
13139
    iprot.readStructBegin()
13140
    while True:
13141
      (fname, ftype, fid) = iprot.readFieldBegin()
13142
      if ftype == TType.STOP:
13143
        break
2981 rajveer 13144
      if fid == 0:
13145
        if ftype == TType.BOOL:
13146
          self.success = iprot.readBool();
13147
        else:
13148
          iprot.skip(ftype)
13149
      elif fid == 1:
13150
        if ftype == TType.STRUCT:
13151
          self.scx = WidgetException()
13152
          self.scx.read(iprot)
13153
        else:
13154
          iprot.skip(ftype)
559 chandransh 13155
      else:
13156
        iprot.skip(ftype)
13157
      iprot.readFieldEnd()
13158
    iprot.readStructEnd()
13159
 
13160
  def write(self, oprot):
13161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13163
      return
2981 rajveer 13164
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 13165
    if self.success is not None:
2981 rajveer 13166
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13167
      oprot.writeBool(self.success)
13168
      oprot.writeFieldEnd()
3431 rajveer 13169
    if self.scx is not None:
2981 rajveer 13170
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13171
      self.scx.write(oprot)
13172
      oprot.writeFieldEnd()
559 chandransh 13173
    oprot.writeFieldStop()
13174
    oprot.writeStructEnd()
13175
 
3431 rajveer 13176
  def validate(self):
13177
    return
13178
 
13179
 
559 chandransh 13180
  def __repr__(self):
13181
    L = ['%s=%r' % (key, value)
13182
      for key, value in self.__dict__.iteritems()]
13183
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13184
 
13185
  def __eq__(self, other):
13186
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13187
 
13188
  def __ne__(self, other):
13189
    return not (self == other)
13190
 
2981 rajveer 13191
class deleteItemFromMyResearch_args:
1596 ankur.sing 13192
  """
13193
  Attributes:
2981 rajveer 13194
   - userId
13195
   - itemId
1596 ankur.sing 13196
  """
559 chandransh 13197
 
1596 ankur.sing 13198
  thrift_spec = (
13199
    None, # 0
2981 rajveer 13200
    (1, TType.I64, 'userId', None, None, ), # 1
13201
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 13202
  )
13203
 
2981 rajveer 13204
  def __init__(self, userId=None, itemId=None,):
13205
    self.userId = userId
13206
    self.itemId = itemId
1596 ankur.sing 13207
 
13208
  def read(self, iprot):
13209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13211
      return
13212
    iprot.readStructBegin()
13213
    while True:
13214
      (fname, ftype, fid) = iprot.readFieldBegin()
13215
      if ftype == TType.STOP:
13216
        break
13217
      if fid == 1:
2981 rajveer 13218
        if ftype == TType.I64:
13219
          self.userId = iprot.readI64();
1596 ankur.sing 13220
        else:
13221
          iprot.skip(ftype)
2981 rajveer 13222
      elif fid == 2:
13223
        if ftype == TType.I64:
13224
          self.itemId = iprot.readI64();
13225
        else:
13226
          iprot.skip(ftype)
1596 ankur.sing 13227
      else:
13228
        iprot.skip(ftype)
13229
      iprot.readFieldEnd()
13230
    iprot.readStructEnd()
13231
 
13232
  def write(self, oprot):
13233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13235
      return
2981 rajveer 13236
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 13237
    if self.userId is not None:
2981 rajveer 13238
      oprot.writeFieldBegin('userId', TType.I64, 1)
13239
      oprot.writeI64(self.userId)
1596 ankur.sing 13240
      oprot.writeFieldEnd()
3431 rajveer 13241
    if self.itemId is not None:
2981 rajveer 13242
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13243
      oprot.writeI64(self.itemId)
13244
      oprot.writeFieldEnd()
1596 ankur.sing 13245
    oprot.writeFieldStop()
13246
    oprot.writeStructEnd()
13247
 
3431 rajveer 13248
  def validate(self):
13249
    return
13250
 
13251
 
1596 ankur.sing 13252
  def __repr__(self):
13253
    L = ['%s=%r' % (key, value)
13254
      for key, value in self.__dict__.iteritems()]
13255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13256
 
13257
  def __eq__(self, other):
13258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13259
 
13260
  def __ne__(self, other):
13261
    return not (self == other)
13262
 
2981 rajveer 13263
class deleteItemFromMyResearch_result:
1596 ankur.sing 13264
  """
13265
  Attributes:
2981 rajveer 13266
   - scx
1596 ankur.sing 13267
  """
13268
 
13269
  thrift_spec = (
2981 rajveer 13270
    None, # 0
13271
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 13272
  )
13273
 
2981 rajveer 13274
  def __init__(self, scx=None,):
13275
    self.scx = scx
1596 ankur.sing 13276
 
13277
  def read(self, iprot):
13278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13280
      return
13281
    iprot.readStructBegin()
13282
    while True:
13283
      (fname, ftype, fid) = iprot.readFieldBegin()
13284
      if ftype == TType.STOP:
13285
        break
2981 rajveer 13286
      if fid == 1:
13287
        if ftype == TType.STRUCT:
13288
          self.scx = WidgetException()
13289
          self.scx.read(iprot)
1596 ankur.sing 13290
        else:
13291
          iprot.skip(ftype)
13292
      else:
13293
        iprot.skip(ftype)
13294
      iprot.readFieldEnd()
13295
    iprot.readStructEnd()
13296
 
13297
  def write(self, oprot):
13298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13300
      return
2981 rajveer 13301
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 13302
    if self.scx is not None:
2981 rajveer 13303
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13304
      self.scx.write(oprot)
1596 ankur.sing 13305
      oprot.writeFieldEnd()
13306
    oprot.writeFieldStop()
13307
    oprot.writeStructEnd()
13308
 
3431 rajveer 13309
  def validate(self):
13310
    return
13311
 
13312
 
1596 ankur.sing 13313
  def __repr__(self):
13314
    L = ['%s=%r' % (key, value)
13315
      for key, value in self.__dict__.iteritems()]
13316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13317
 
13318
  def __eq__(self, other):
13319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13320
 
13321
  def __ne__(self, other):
13322
    return not (self == other)
13323
 
2981 rajveer 13324
class getBrowseHistoryItems_args:
1673 ankur.sing 13325
  """
13326
  Attributes:
2981 rajveer 13327
   - userId
1673 ankur.sing 13328
  """
1596 ankur.sing 13329
 
1673 ankur.sing 13330
  thrift_spec = (
13331
    None, # 0
2981 rajveer 13332
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 13333
  )
13334
 
2981 rajveer 13335
  def __init__(self, userId=None,):
13336
    self.userId = userId
1673 ankur.sing 13337
 
13338
  def read(self, iprot):
13339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13341
      return
13342
    iprot.readStructBegin()
13343
    while True:
13344
      (fname, ftype, fid) = iprot.readFieldBegin()
13345
      if ftype == TType.STOP:
13346
        break
13347
      if fid == 1:
1891 ankur.sing 13348
        if ftype == TType.I64:
2981 rajveer 13349
          self.userId = iprot.readI64();
1891 ankur.sing 13350
        else:
13351
          iprot.skip(ftype)
1673 ankur.sing 13352
      else:
13353
        iprot.skip(ftype)
13354
      iprot.readFieldEnd()
13355
    iprot.readStructEnd()
13356
 
13357
  def write(self, oprot):
13358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13360
      return
2981 rajveer 13361
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 13362
    if self.userId is not None:
2981 rajveer 13363
      oprot.writeFieldBegin('userId', TType.I64, 1)
13364
      oprot.writeI64(self.userId)
1673 ankur.sing 13365
      oprot.writeFieldEnd()
13366
    oprot.writeFieldStop()
13367
    oprot.writeStructEnd()
13368
 
3431 rajveer 13369
  def validate(self):
13370
    return
13371
 
13372
 
1673 ankur.sing 13373
  def __repr__(self):
13374
    L = ['%s=%r' % (key, value)
13375
      for key, value in self.__dict__.iteritems()]
13376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13377
 
13378
  def __eq__(self, other):
13379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13380
 
13381
  def __ne__(self, other):
13382
    return not (self == other)
13383
 
2981 rajveer 13384
class getBrowseHistoryItems_result:
1673 ankur.sing 13385
  """
13386
  Attributes:
13387
   - success
2981 rajveer 13388
   - scx
1673 ankur.sing 13389
  """
13390
 
13391
  thrift_spec = (
2981 rajveer 13392
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13393
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 13394
  )
13395
 
2981 rajveer 13396
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 13397
    self.success = success
2981 rajveer 13398
    self.scx = scx
1673 ankur.sing 13399
 
13400
  def read(self, iprot):
13401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13403
      return
13404
    iprot.readStructBegin()
13405
    while True:
13406
      (fname, ftype, fid) = iprot.readFieldBegin()
13407
      if ftype == TType.STOP:
13408
        break
13409
      if fid == 0:
13410
        if ftype == TType.LIST:
13411
          self.success = []
3554 varun.gupt 13412
          (_etype159, _size156) = iprot.readListBegin()
13413
          for _i160 in xrange(_size156):
13414
            _elem161 = iprot.readI64();
13415
            self.success.append(_elem161)
1673 ankur.sing 13416
          iprot.readListEnd()
13417
        else:
13418
          iprot.skip(ftype)
2981 rajveer 13419
      elif fid == 1:
13420
        if ftype == TType.STRUCT:
13421
          self.scx = WidgetException()
13422
          self.scx.read(iprot)
13423
        else:
13424
          iprot.skip(ftype)
1673 ankur.sing 13425
      else:
13426
        iprot.skip(ftype)
13427
      iprot.readFieldEnd()
13428
    iprot.readStructEnd()
13429
 
13430
  def write(self, oprot):
13431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13433
      return
2981 rajveer 13434
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 13435
    if self.success is not None:
1673 ankur.sing 13436
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 13437
      oprot.writeListBegin(TType.I64, len(self.success))
3554 varun.gupt 13438
      for iter162 in self.success:
13439
        oprot.writeI64(iter162)
1673 ankur.sing 13440
      oprot.writeListEnd()
13441
      oprot.writeFieldEnd()
3431 rajveer 13442
    if self.scx is not None:
2981 rajveer 13443
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
13444
      self.scx.write(oprot)
2642 varun.gupt 13445
      oprot.writeFieldEnd()
13446
    oprot.writeFieldStop()
13447
    oprot.writeStructEnd()
13448
 
3431 rajveer 13449
  def validate(self):
13450
    return
13451
 
13452
 
2642 varun.gupt 13453
  def __repr__(self):
13454
    L = ['%s=%r' % (key, value)
13455
      for key, value in self.__dict__.iteritems()]
13456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13457
 
13458
  def __eq__(self, other):
13459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13460
 
13461
  def __ne__(self, other):
13462
    return not (self == other)
13463
 
2981 rajveer 13464
class updateBrowseHistory_args:
2642 varun.gupt 13465
  """
13466
  Attributes:
2981 rajveer 13467
   - userId
13468
   - itemId
2642 varun.gupt 13469
  """
13470
 
13471
  thrift_spec = (
13472
    None, # 0
2981 rajveer 13473
    (1, TType.I64, 'userId', None, None, ), # 1
13474
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 13475
  )
13476
 
2981 rajveer 13477
  def __init__(self, userId=None, itemId=None,):
13478
    self.userId = userId
13479
    self.itemId = itemId
2642 varun.gupt 13480
 
13481
  def read(self, iprot):
13482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13484
      return
13485
    iprot.readStructBegin()
13486
    while True:
13487
      (fname, ftype, fid) = iprot.readFieldBegin()
13488
      if ftype == TType.STOP:
13489
        break
13490
      if fid == 1:
13491
        if ftype == TType.I64:
2981 rajveer 13492
          self.userId = iprot.readI64();
2642 varun.gupt 13493
        else:
13494
          iprot.skip(ftype)
13495
      elif fid == 2:
13496
        if ftype == TType.I64:
2981 rajveer 13497
          self.itemId = iprot.readI64();
2642 varun.gupt 13498
        else:
13499
          iprot.skip(ftype)
13500
      else:
13501
        iprot.skip(ftype)
13502
      iprot.readFieldEnd()
13503
    iprot.readStructEnd()
13504
 
13505
  def write(self, oprot):
13506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13508
      return
2981 rajveer 13509
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 13510
    if self.userId is not None:
2981 rajveer 13511
      oprot.writeFieldBegin('userId', TType.I64, 1)
13512
      oprot.writeI64(self.userId)
2642 varun.gupt 13513
      oprot.writeFieldEnd()
3431 rajveer 13514
    if self.itemId is not None:
2981 rajveer 13515
      oprot.writeFieldBegin('itemId', TType.I64, 2)
13516
      oprot.writeI64(self.itemId)
2642 varun.gupt 13517
      oprot.writeFieldEnd()
13518
    oprot.writeFieldStop()
13519
    oprot.writeStructEnd()
13520
 
3431 rajveer 13521
  def validate(self):
13522
    return
13523
 
13524
 
2642 varun.gupt 13525
  def __repr__(self):
13526
    L = ['%s=%r' % (key, value)
13527
      for key, value in self.__dict__.iteritems()]
13528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13529
 
13530
  def __eq__(self, other):
13531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13532
 
13533
  def __ne__(self, other):
13534
    return not (self == other)
13535
 
2981 rajveer 13536
class updateBrowseHistory_result:
2642 varun.gupt 13537
 
13538
  thrift_spec = (
13539
  )
13540
 
13541
  def read(self, iprot):
13542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13544
      return
13545
    iprot.readStructBegin()
13546
    while True:
13547
      (fname, ftype, fid) = iprot.readFieldBegin()
13548
      if ftype == TType.STOP:
13549
        break
13550
      else:
13551
        iprot.skip(ftype)
13552
      iprot.readFieldEnd()
13553
    iprot.readStructEnd()
13554
 
13555
  def write(self, oprot):
13556
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13557
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13558
      return
2981 rajveer 13559
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 13560
    oprot.writeFieldStop()
13561
    oprot.writeStructEnd()
13562
 
3431 rajveer 13563
  def validate(self):
13564
    return
13565
 
13566
 
2642 varun.gupt 13567
  def __repr__(self):
13568
    L = ['%s=%r' % (key, value)
13569
      for key, value in self.__dict__.iteritems()]
13570
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13571
 
13572
  def __eq__(self, other):
13573
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13574
 
13575
  def __ne__(self, other):
13576
    return not (self == other)
13577
 
3385 varun.gupt 13578
class getCartsWithCouponCount_args:
13579
  """
13580
  Attributes:
13581
   - couponCode
13582
  """
2642 varun.gupt 13583
 
3385 varun.gupt 13584
  thrift_spec = (
13585
    None, # 0
13586
    (1, TType.STRING, 'couponCode', None, None, ), # 1
13587
  )
13588
 
13589
  def __init__(self, couponCode=None,):
13590
    self.couponCode = couponCode
13591
 
13592
  def read(self, iprot):
13593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13595
      return
13596
    iprot.readStructBegin()
13597
    while True:
13598
      (fname, ftype, fid) = iprot.readFieldBegin()
13599
      if ftype == TType.STOP:
13600
        break
13601
      if fid == 1:
13602
        if ftype == TType.STRING:
13603
          self.couponCode = iprot.readString();
13604
        else:
13605
          iprot.skip(ftype)
13606
      else:
13607
        iprot.skip(ftype)
13608
      iprot.readFieldEnd()
13609
    iprot.readStructEnd()
13610
 
13611
  def write(self, oprot):
13612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13614
      return
13615
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 13616
    if self.couponCode is not None:
3385 varun.gupt 13617
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
13618
      oprot.writeString(self.couponCode)
13619
      oprot.writeFieldEnd()
13620
    oprot.writeFieldStop()
13621
    oprot.writeStructEnd()
13622
 
3431 rajveer 13623
  def validate(self):
13624
    return
13625
 
13626
 
3385 varun.gupt 13627
  def __repr__(self):
13628
    L = ['%s=%r' % (key, value)
13629
      for key, value in self.__dict__.iteritems()]
13630
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13631
 
13632
  def __eq__(self, other):
13633
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13634
 
13635
  def __ne__(self, other):
13636
    return not (self == other)
13637
 
13638
class getCartsWithCouponCount_result:
13639
  """
13640
  Attributes:
13641
   - success
13642
  """
13643
 
13644
  thrift_spec = (
13645
    (0, TType.I64, 'success', None, None, ), # 0
13646
  )
13647
 
13648
  def __init__(self, success=None,):
13649
    self.success = success
13650
 
13651
  def read(self, iprot):
13652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13654
      return
13655
    iprot.readStructBegin()
13656
    while True:
13657
      (fname, ftype, fid) = iprot.readFieldBegin()
13658
      if ftype == TType.STOP:
13659
        break
13660
      if fid == 0:
13661
        if ftype == TType.I64:
13662
          self.success = iprot.readI64();
13663
        else:
13664
          iprot.skip(ftype)
13665
      else:
13666
        iprot.skip(ftype)
13667
      iprot.readFieldEnd()
13668
    iprot.readStructEnd()
13669
 
13670
  def write(self, oprot):
13671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13673
      return
13674
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 13675
    if self.success is not None:
3385 varun.gupt 13676
      oprot.writeFieldBegin('success', TType.I64, 0)
13677
      oprot.writeI64(self.success)
13678
      oprot.writeFieldEnd()
13679
    oprot.writeFieldStop()
13680
    oprot.writeStructEnd()
13681
 
3431 rajveer 13682
  def validate(self):
13683
    return
13684
 
13685
 
3385 varun.gupt 13686
  def __repr__(self):
13687
    L = ['%s=%r' % (key, value)
13688
      for key, value in self.__dict__.iteritems()]
13689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13690
 
13691
  def __eq__(self, other):
13692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13693
 
13694
  def __ne__(self, other):
13695
    return not (self == other)
3499 mandeep.dh 13696
 
13697
class increaseTrustLevel_args:
13698
  """
13699
  Attributes:
13700
   - userId
13701
   - trustLevelDelta
13702
  """
13703
 
13704
  thrift_spec = (
13705
    None, # 0
13706
    (1, TType.I64, 'userId', None, None, ), # 1
13707
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
13708
  )
13709
 
13710
  def __init__(self, userId=None, trustLevelDelta=None,):
13711
    self.userId = userId
13712
    self.trustLevelDelta = trustLevelDelta
13713
 
13714
  def read(self, iprot):
13715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13717
      return
13718
    iprot.readStructBegin()
13719
    while True:
13720
      (fname, ftype, fid) = iprot.readFieldBegin()
13721
      if ftype == TType.STOP:
13722
        break
13723
      if fid == 1:
13724
        if ftype == TType.I64:
13725
          self.userId = iprot.readI64();
13726
        else:
13727
          iprot.skip(ftype)
13728
      elif fid == 2:
13729
        if ftype == TType.DOUBLE:
13730
          self.trustLevelDelta = iprot.readDouble();
13731
        else:
13732
          iprot.skip(ftype)
13733
      else:
13734
        iprot.skip(ftype)
13735
      iprot.readFieldEnd()
13736
    iprot.readStructEnd()
13737
 
13738
  def write(self, oprot):
13739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13741
      return
13742
    oprot.writeStructBegin('increaseTrustLevel_args')
13743
    if self.userId is not None:
13744
      oprot.writeFieldBegin('userId', TType.I64, 1)
13745
      oprot.writeI64(self.userId)
13746
      oprot.writeFieldEnd()
13747
    if self.trustLevelDelta is not None:
13748
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
13749
      oprot.writeDouble(self.trustLevelDelta)
13750
      oprot.writeFieldEnd()
13751
    oprot.writeFieldStop()
13752
    oprot.writeStructEnd()
13753
 
13754
  def validate(self):
13755
    return
13756
 
13757
 
13758
  def __repr__(self):
13759
    L = ['%s=%r' % (key, value)
13760
      for key, value in self.__dict__.iteritems()]
13761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13762
 
13763
  def __eq__(self, other):
13764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13765
 
13766
  def __ne__(self, other):
13767
    return not (self == other)