Subversion Repositories SmartDukaan

Rev

Rev 5326 | Rev 5342 | 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
 
5326 rajveer 37
  def getUserByCartId(self, cartId):
38
    """
39
    Parameters:
40
     - cartId
41
    """
42
    pass
43
 
1491 vikas 44
  def getUserByEmail(self, email):
45
    """
46
    Parameters:
47
     - email
48
    """
49
    pass
50
 
3032 mandeep.dh 51
  def getUserByMobileNumber(self, mobileNumber):
52
    """
53
    Parameters:
54
     - mobileNumber
55
    """
56
    pass
57
 
559 chandransh 58
  def createUser(self, user):
94 ashish 59
    """
60
    Parameters:
559 chandransh 61
     - user
94 ashish 62
    """
63
    pass
64
 
559 chandransh 65
  def updateUser(self, user):
94 ashish 66
    """
67
    Parameters:
559 chandransh 68
     - user
94 ashish 69
    """
70
    pass
71
 
559 chandransh 72
  def authenticateUser(self, email, password):
94 ashish 73
    """
74
    Parameters:
75
     - email
76
     - password
77
    """
78
    pass
79
 
80
  def userExists(self, email):
81
    """
82
    Parameters:
83
     - email
84
    """
85
    pass
86
 
567 rajveer 87
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 88
    """
89
    Parameters:
90
     - userId
91
     - address
513 rajveer 92
     - setDefault
94 ashish 93
    """
94
    pass
95
 
96
  def removeAddressForUser(self, userid, addressId):
97
    """
98
    Parameters:
99
     - userid
100
     - addressId
101
    """
102
    pass
103
 
104
  def setUserAsLoggedIn(self, userId, timestamp):
105
    """
106
    Parameters:
107
     - userId
108
     - timestamp
109
    """
110
    pass
111
 
112
  def setUserAsLoggedOut(self, userid, timestamp):
113
    """
114
    Parameters:
115
     - userid
116
     - timestamp
117
    """
118
    pass
119
 
504 rajveer 120
  def setDefaultAddress(self, userid, addressId):
121
    """
122
    Parameters:
123
     - userid
124
     - addressId
125
    """
126
    pass
127
 
594 rajveer 128
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 129
    """
130
    Parameters:
131
     - userid
594 rajveer 132
     - oldPassword
133
     - newPassword
94 ashish 134
    """
135
    pass
136
 
884 rajveer 137
  def forgotPassword(self, email, newPassword):
581 rajveer 138
    """
139
    Parameters:
140
     - email
884 rajveer 141
     - newPassword
581 rajveer 142
    """
143
    pass
144
 
594 rajveer 145
  def getAllAddressesForUser(self, userId):
146
    """
147
    Parameters:
148
     - userId
149
    """
150
    pass
151
 
1894 vikas 152
  def getAddressById(self, addressId):
153
    """
154
    Parameters:
155
     - addressId
156
    """
157
    pass
158
 
594 rajveer 159
  def getDefaultAddressId(self, userId):
160
    """
161
    Parameters:
162
     - userId
163
    """
164
    pass
165
 
785 rajveer 166
  def getDefaultPincode(self, userId):
167
    """
168
    Parameters:
169
     - userId
170
    """
171
    pass
172
 
1274 varun.gupt 173
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
174
    """
175
    Parameters:
176
     - userId
177
     - replyTo
178
     - communicationType
179
     - orderId
180
     - airwaybillNo
181
     - productName
182
     - subject
183
     - message
184
    """
185
    pass
186
 
1590 varun.gupt 187
  def getUserCommunicationById(self, id):
188
    """
189
    Parameters:
190
     - id
191
    """
192
    pass
193
 
194
  def getUserCommunicationByUser(self, userId):
195
    """
196
    Parameters:
197
     - userId
198
    """
199
    pass
200
 
201
  def getAllUserCommunications(self, ):
202
    pass
203
 
1859 vikas 204
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 205
    """
206
    Parameters:
207
     - name
1859 vikas 208
     - addedOn
1845 vikas 209
    """
210
    pass
211
 
1899 vikas 212
  def getAllMasterAffiliates(self, ):
213
    pass
214
 
1845 vikas 215
  def getMasterAffiliateById(self, id):
216
    """
217
    Parameters:
218
     - id
219
    """
220
    pass
221
 
222
  def getMasterAffiliateByName(self, name):
223
    """
224
    Parameters:
225
     - name
226
    """
227
    pass
228
 
1859 vikas 229
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 230
    """
231
    Parameters:
232
     - name
233
     - url
234
     - masterAffiliateId
1859 vikas 235
     - addedOn
1845 vikas 236
    """
237
    pass
238
 
239
  def getAffiliateById(self, id):
240
    """
241
    Parameters:
242
     - id
243
    """
244
    pass
245
 
246
  def getAffiliateByName(self, name):
247
    """
248
    Parameters:
249
     - name
250
    """
251
    pass
252
 
1996 vikas 253
  def getTrackerById(self, id):
1845 vikas 254
    """
255
    Parameters:
256
     - id
257
    """
258
    pass
259
 
1996 vikas 260
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 261
    """
262
    Parameters:
1996 vikas 263
     - id
1845 vikas 264
    """
265
    pass
266
 
1996 vikas 267
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 268
    """
269
    Parameters:
270
     - affiliateId
271
     - userId
272
     - event
273
     - url
274
     - data
1859 vikas 275
     - addedOn
1845 vikas 276
    """
277
    pass
278
 
279
  def getTrackLogById(self, id):
280
    """
281
    Parameters:
282
     - id
283
    """
284
    pass
285
 
3293 vikas 286
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 287
    """
288
    Parameters:
1996 vikas 289
     - affiliateId
3293 vikas 290
     - startDate
291
     - endDate
1845 vikas 292
    """
293
    pass
294
 
295
  def getTrackLogsByUser(self, userId):
296
    """
297
    Parameters:
298
     - userId
299
    """
300
    pass
301
 
1996 vikas 302
  def getTrackLogs(self, userId, event, url):
1845 vikas 303
    """
304
    Parameters:
305
     - userId
306
     - event
307
     - url
308
    """
309
    pass
310
 
559 chandransh 311
  def createCart(self, userId):
94 ashish 312
    """
313
    Parameters:
559 chandransh 314
     - userId
94 ashish 315
    """
316
    pass
317
 
559 chandransh 318
  def getCurrentCart(self, userId):
94 ashish 319
    """
320
    Parameters:
559 chandransh 321
     - userId
94 ashish 322
    """
323
    pass
324
 
559 chandransh 325
  def getCart(self, cartId):
94 ashish 326
    """
327
    Parameters:
559 chandransh 328
     - cartId
94 ashish 329
    """
330
    pass
331
 
559 chandransh 332
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 333
    """
334
    Parameters:
559 chandransh 335
     - from_time
336
     - to_time
337
     - status
94 ashish 338
    """
339
    pass
340
 
3557 rajveer 341
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
130 ashish 342
    """
343
    Parameters:
559 chandransh 344
     - cartId
345
     - itemId
346
     - quantity
3557 rajveer 347
     - sourceId
130 ashish 348
    """
349
    pass
350
 
559 chandransh 351
  def deleteItemFromCart(self, cartId, itemId):
352
    """
353
    Parameters:
354
     - cartId
355
     - itemId
356
    """
357
    pass
130 ashish 358
 
559 chandransh 359
  def addAddressToCart(self, cartId, addressId):
360
    """
361
    Parameters:
362
     - cartId
363
     - addressId
364
    """
365
    pass
366
 
1976 varun.gupt 367
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
368
    """
369
    Parameters:
370
     - cartId
371
     - couponCode
372
     - totalPrice
373
     - discountedPrice
374
    """
375
    pass
376
 
377
  def removeCoupon(self, cartId):
378
    """
379
    Parameters:
380
     - cartId
381
    """
382
    pass
383
 
3554 varun.gupt 384
  def deleteDiscountsFromCart(self, cartId):
385
    """
386
    Deletes all the discounts associated with the cart
387
 
388
    Parameters:
389
     - cartId
390
    """
391
    pass
392
 
393
  def saveDiscounts(self, discounts):
394
    """
395
    Accepts a list of thrift objects of Discount type and saves them
396
 
397
    Parameters:
398
     - discounts
399
    """
400
    pass
401
 
5326 rajveer 402
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 403
    """
690 chandransh 404
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 405
 
559 chandransh 406
    Parameters:
407
     - cartId
2815 vikas 408
     - sessionSource
409
     - sessionStartTime
3858 vikas 410
     - firstSource
411
     - firstSourceTime
5326 rajveer 412
     - userId
559 chandransh 413
    """
414
    pass
415
 
3557 rajveer 416
  def validateCart(self, cartId, sourceId):
559 chandransh 417
    """
690 chandransh 418
    Validates that:
419
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 420
    2. All of the lines in the cart are active items.
690 chandransh 421
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 422
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 423
 
559 chandransh 424
    Parameters:
425
     - cartId
3557 rajveer 426
     - sourceId
559 chandransh 427
    """
428
    pass
429
 
690 chandransh 430
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 431
    """
690 chandransh 432
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 433
 
575 chandransh 434
    Parameters:
690 chandransh 435
     - fromCartId
436
     - toCartId
437
    """
438
    pass
439
 
440
  def checkOut(self, cartId):
441
    """
442
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 443
 
690 chandransh 444
    Parameters:
575 chandransh 445
     - cartId
446
    """
447
    pass
448
 
690 chandransh 449
  def resetCart(self, cartId, items):
559 chandransh 450
    """
690 chandransh 451
    The second parameter is a map of item ids and their quantities which have been successfully processed.
452
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 453
 
559 chandransh 454
    Parameters:
690 chandransh 455
     - cartId
456
     - items
559 chandransh 457
    """
458
    pass
459
 
2981 rajveer 460
  def getUserCount(self, userType):
559 chandransh 461
    """
2981 rajveer 462
    Returns number of registered users.
463
    If userType = null, then it returns count of all users, including anonymous
464
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
465
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 466
 
559 chandransh 467
    Parameters:
2981 rajveer 468
     - userType
559 chandransh 469
    """
470
    pass
471
 
2981 rajveer 472
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 473
    """
2981 rajveer 474
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
475
    If any of startDate or endDate is -1, then that filter is ignored.
476
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 477
 
478
 
559 chandransh 479
    Parameters:
2981 rajveer 480
     - userType
481
     - startDate
482
     - endDate
559 chandransh 483
    """
484
    pass
485
 
2981 rajveer 486
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 487
    """
488
    Parameters:
2981 rajveer 489
     - user_id
490
     - entity_id
491
     - slide
492
     - note
559 chandransh 493
    """
494
    pass
495
 
2981 rajveer 496
  def getUserNotes(self, user_id, entity_id):
559 chandransh 497
    """
498
    Parameters:
2981 rajveer 499
     - user_id
500
     - entity_id
559 chandransh 501
    """
502
    pass
503
 
2981 rajveer 504
  def getMyResearchItems(self, userId):
559 chandransh 505
    """
2981 rajveer 506
    Returns list of item ids in myresearch for the user
3431 rajveer 507
 
559 chandransh 508
    Parameters:
509
     - userId
510
    """
511
    pass
512
 
2981 rajveer 513
  def updateMyResearch(self, userId, itemId):
559 chandransh 514
    """
2981 rajveer 515
    add item to my research for a user
3431 rajveer 516
 
559 chandransh 517
    Parameters:
2981 rajveer 518
     - userId
519
     - itemId
559 chandransh 520
    """
521
    pass
522
 
2981 rajveer 523
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 524
    """
2981 rajveer 525
    delete item from my research for a user
3431 rajveer 526
 
1596 ankur.sing 527
    Parameters:
2981 rajveer 528
     - userId
529
     - itemId
1596 ankur.sing 530
    """
531
    pass
559 chandransh 532
 
2981 rajveer 533
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 534
    """
2981 rajveer 535
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 536
 
1673 ankur.sing 537
    Parameters:
2981 rajveer 538
     - userId
1673 ankur.sing 539
    """
540
    pass
1596 ankur.sing 541
 
2981 rajveer 542
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 543
    """
2981 rajveer 544
    add item to browse history for a user
3431 rajveer 545
 
2642 varun.gupt 546
    Parameters:
2981 rajveer 547
     - userId
548
     - itemId
2642 varun.gupt 549
    """
550
    pass
1673 ankur.sing 551
 
3385 varun.gupt 552
  def getCartsWithCouponCount(self, couponCode):
553
    """
554
    Returns count of Carts with given coupon applied
3431 rajveer 555
 
3385 varun.gupt 556
    Parameters:
557
     - couponCode
558
    """
559
    pass
2642 varun.gupt 560
 
3499 mandeep.dh 561
  def increaseTrustLevel(self, userId, trustLevelDelta):
562
    """
563
    Updates COD trust level of a user
3385 varun.gupt 564
 
3499 mandeep.dh 565
    Parameters:
566
     - userId
567
     - trustLevelDelta
568
    """
569
    pass
570
 
4668 varun.gupt 571
  def showCODOption(self, cartId, sourceId, pincode):
572
    """
573
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 574
 
4668 varun.gupt 575
    Parameters:
576
     - cartId
577
     - sourceId
578
     - pincode
579
    """
580
    pass
581
 
582
 
3376 rajveer 583
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 584
  """
585
  service
586
  """
587
  def __init__(self, iprot, oprot=None):
3376 rajveer 588
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 589
 
559 chandransh 590
  def createAnonymousUser(self, jsessionId):
94 ashish 591
    """
592
    Parameters:
559 chandransh 593
     - jsessionId
94 ashish 594
    """
559 chandransh 595
    self.send_createAnonymousUser(jsessionId)
596
    return self.recv_createAnonymousUser()
94 ashish 597
 
559 chandransh 598
  def send_createAnonymousUser(self, jsessionId):
599
    self._oprot.writeMessageBegin('createAnonymousUser', TMessageType.CALL, self._seqid)
600
    args = createAnonymousUser_args()
601
    args.jsessionId = jsessionId
94 ashish 602
    args.write(self._oprot)
603
    self._oprot.writeMessageEnd()
604
    self._oprot.trans.flush()
605
 
559 chandransh 606
  def recv_createAnonymousUser(self, ):
94 ashish 607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
608
    if mtype == TMessageType.EXCEPTION:
609
      x = TApplicationException()
610
      x.read(self._iprot)
611
      self._iprot.readMessageEnd()
612
      raise x
559 chandransh 613
    result = createAnonymousUser_result()
94 ashish 614
    result.read(self._iprot)
615
    self._iprot.readMessageEnd()
3431 rajveer 616
    if result.success is not None:
94 ashish 617
      return result.success
3431 rajveer 618
    if result.ucex is not None:
559 chandransh 619
      raise result.ucex
620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAnonymousUser failed: unknown result");
94 ashish 621
 
559 chandransh 622
  def getUserById(self, userId):
94 ashish 623
    """
624
    Parameters:
625
     - userId
626
    """
559 chandransh 627
    self.send_getUserById(userId)
628
    return self.recv_getUserById()
94 ashish 629
 
559 chandransh 630
  def send_getUserById(self, userId):
631
    self._oprot.writeMessageBegin('getUserById', TMessageType.CALL, self._seqid)
632
    args = getUserById_args()
94 ashish 633
    args.userId = userId
634
    args.write(self._oprot)
635
    self._oprot.writeMessageEnd()
636
    self._oprot.trans.flush()
637
 
559 chandransh 638
  def recv_getUserById(self, ):
94 ashish 639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
640
    if mtype == TMessageType.EXCEPTION:
641
      x = TApplicationException()
642
      x.read(self._iprot)
643
      self._iprot.readMessageEnd()
644
      raise x
559 chandransh 645
    result = getUserById_result()
94 ashish 646
    result.read(self._iprot)
647
    self._iprot.readMessageEnd()
3431 rajveer 648
    if result.success is not None:
94 ashish 649
      return result.success
3431 rajveer 650
    if result.ucex is not None:
559 chandransh 651
      raise result.ucex
652
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserById failed: unknown result");
94 ashish 653
 
5326 rajveer 654
  def getUserByCartId(self, cartId):
655
    """
656
    Parameters:
657
     - cartId
658
    """
659
    self.send_getUserByCartId(cartId)
660
    return self.recv_getUserByCartId()
661
 
662
  def send_getUserByCartId(self, cartId):
663
    self._oprot.writeMessageBegin('getUserByCartId', TMessageType.CALL, self._seqid)
664
    args = getUserByCartId_args()
665
    args.cartId = cartId
666
    args.write(self._oprot)
667
    self._oprot.writeMessageEnd()
668
    self._oprot.trans.flush()
669
 
670
  def recv_getUserByCartId(self, ):
671
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
672
    if mtype == TMessageType.EXCEPTION:
673
      x = TApplicationException()
674
      x.read(self._iprot)
675
      self._iprot.readMessageEnd()
676
      raise x
677
    result = getUserByCartId_result()
678
    result.read(self._iprot)
679
    self._iprot.readMessageEnd()
680
    if result.success is not None:
681
      return result.success
682
    if result.ucex is not None:
683
      raise result.ucex
684
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByCartId failed: unknown result");
685
 
1491 vikas 686
  def getUserByEmail(self, email):
687
    """
688
    Parameters:
689
     - email
690
    """
691
    self.send_getUserByEmail(email)
692
    return self.recv_getUserByEmail()
693
 
694
  def send_getUserByEmail(self, email):
695
    self._oprot.writeMessageBegin('getUserByEmail', TMessageType.CALL, self._seqid)
696
    args = getUserByEmail_args()
697
    args.email = email
698
    args.write(self._oprot)
699
    self._oprot.writeMessageEnd()
700
    self._oprot.trans.flush()
701
 
702
  def recv_getUserByEmail(self, ):
703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
704
    if mtype == TMessageType.EXCEPTION:
705
      x = TApplicationException()
706
      x.read(self._iprot)
707
      self._iprot.readMessageEnd()
708
      raise x
709
    result = getUserByEmail_result()
710
    result.read(self._iprot)
711
    self._iprot.readMessageEnd()
3431 rajveer 712
    if result.success is not None:
1491 vikas 713
      return result.success
3431 rajveer 714
    if result.ucex is not None:
1491 vikas 715
      raise result.ucex
716
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByEmail failed: unknown result");
717
 
3032 mandeep.dh 718
  def getUserByMobileNumber(self, mobileNumber):
719
    """
720
    Parameters:
721
     - mobileNumber
722
    """
723
    self.send_getUserByMobileNumber(mobileNumber)
724
    return self.recv_getUserByMobileNumber()
725
 
726
  def send_getUserByMobileNumber(self, mobileNumber):
727
    self._oprot.writeMessageBegin('getUserByMobileNumber', TMessageType.CALL, self._seqid)
728
    args = getUserByMobileNumber_args()
729
    args.mobileNumber = mobileNumber
730
    args.write(self._oprot)
731
    self._oprot.writeMessageEnd()
732
    self._oprot.trans.flush()
733
 
734
  def recv_getUserByMobileNumber(self, ):
735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
736
    if mtype == TMessageType.EXCEPTION:
737
      x = TApplicationException()
738
      x.read(self._iprot)
739
      self._iprot.readMessageEnd()
740
      raise x
741
    result = getUserByMobileNumber_result()
742
    result.read(self._iprot)
743
    self._iprot.readMessageEnd()
3431 rajveer 744
    if result.success is not None:
3032 mandeep.dh 745
      return result.success
3431 rajveer 746
    if result.ucex is not None:
3032 mandeep.dh 747
      raise result.ucex
748
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserByMobileNumber failed: unknown result");
749
 
559 chandransh 750
  def createUser(self, user):
94 ashish 751
    """
752
    Parameters:
559 chandransh 753
     - user
94 ashish 754
    """
559 chandransh 755
    self.send_createUser(user)
756
    return self.recv_createUser()
94 ashish 757
 
559 chandransh 758
  def send_createUser(self, user):
759
    self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
760
    args = createUser_args()
761
    args.user = user
94 ashish 762
    args.write(self._oprot)
763
    self._oprot.writeMessageEnd()
764
    self._oprot.trans.flush()
765
 
559 chandransh 766
  def recv_createUser(self, ):
94 ashish 767
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
768
    if mtype == TMessageType.EXCEPTION:
769
      x = TApplicationException()
770
      x.read(self._iprot)
771
      self._iprot.readMessageEnd()
772
      raise x
559 chandransh 773
    result = createUser_result()
94 ashish 774
    result.read(self._iprot)
775
    self._iprot.readMessageEnd()
3431 rajveer 776
    if result.success is not None:
94 ashish 777
      return result.success
3431 rajveer 778
    if result.ucex is not None:
559 chandransh 779
      raise result.ucex
780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createUser failed: unknown result");
94 ashish 781
 
559 chandransh 782
  def updateUser(self, user):
94 ashish 783
    """
784
    Parameters:
559 chandransh 785
     - user
94 ashish 786
    """
559 chandransh 787
    self.send_updateUser(user)
788
    return self.recv_updateUser()
94 ashish 789
 
559 chandransh 790
  def send_updateUser(self, user):
791
    self._oprot.writeMessageBegin('updateUser', TMessageType.CALL, self._seqid)
792
    args = updateUser_args()
793
    args.user = user
94 ashish 794
    args.write(self._oprot)
795
    self._oprot.writeMessageEnd()
796
    self._oprot.trans.flush()
797
 
559 chandransh 798
  def recv_updateUser(self, ):
94 ashish 799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
800
    if mtype == TMessageType.EXCEPTION:
801
      x = TApplicationException()
802
      x.read(self._iprot)
803
      self._iprot.readMessageEnd()
804
      raise x
559 chandransh 805
    result = updateUser_result()
94 ashish 806
    result.read(self._iprot)
807
    self._iprot.readMessageEnd()
3431 rajveer 808
    if result.success is not None:
94 ashish 809
      return result.success
3431 rajveer 810
    if result.ucex is not None:
559 chandransh 811
      raise result.ucex
812
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateUser failed: unknown result");
94 ashish 813
 
559 chandransh 814
  def authenticateUser(self, email, password):
94 ashish 815
    """
816
    Parameters:
817
     - email
818
     - password
819
    """
559 chandransh 820
    self.send_authenticateUser(email, password)
122 ashish 821
    return self.recv_authenticateUser()
822
 
559 chandransh 823
  def send_authenticateUser(self, email, password):
122 ashish 824
    self._oprot.writeMessageBegin('authenticateUser', TMessageType.CALL, self._seqid)
825
    args = authenticateUser_args()
559 chandransh 826
    args.email = email
122 ashish 827
    args.password = password
828
    args.write(self._oprot)
829
    self._oprot.writeMessageEnd()
830
    self._oprot.trans.flush()
831
 
832
  def recv_authenticateUser(self, ):
833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
834
    if mtype == TMessageType.EXCEPTION:
835
      x = TApplicationException()
836
      x.read(self._iprot)
837
      self._iprot.readMessageEnd()
838
      raise x
839
    result = authenticateUser_result()
840
    result.read(self._iprot)
841
    self._iprot.readMessageEnd()
3431 rajveer 842
    if result.success is not None:
122 ashish 843
      return result.success
3431 rajveer 844
    if result.auex is not None:
559 chandransh 845
      raise result.auex
122 ashish 846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authenticateUser failed: unknown result");
847
 
94 ashish 848
  def userExists(self, email):
849
    """
850
    Parameters:
851
     - email
852
    """
853
    self.send_userExists(email)
854
    return self.recv_userExists()
855
 
856
  def send_userExists(self, email):
857
    self._oprot.writeMessageBegin('userExists', TMessageType.CALL, self._seqid)
858
    args = userExists_args()
859
    args.email = email
860
    args.write(self._oprot)
861
    self._oprot.writeMessageEnd()
862
    self._oprot.trans.flush()
863
 
864
  def recv_userExists(self, ):
865
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
866
    if mtype == TMessageType.EXCEPTION:
867
      x = TApplicationException()
868
      x.read(self._iprot)
869
      self._iprot.readMessageEnd()
870
      raise x
871
    result = userExists_result()
872
    result.read(self._iprot)
873
    self._iprot.readMessageEnd()
3431 rajveer 874
    if result.success is not None:
94 ashish 875
      return result.success
3431 rajveer 876
    if result.ucx is not None:
94 ashish 877
      raise result.ucx
878
    raise TApplicationException(TApplicationException.MISSING_RESULT, "userExists failed: unknown result");
879
 
567 rajveer 880
  def addAddressForUser(self, userId, address, setDefault):
94 ashish 881
    """
882
    Parameters:
883
     - userId
884
     - address
513 rajveer 885
     - setDefault
94 ashish 886
    """
567 rajveer 887
    self.send_addAddressForUser(userId, address, setDefault)
94 ashish 888
    return self.recv_addAddressForUser()
889
 
567 rajveer 890
  def send_addAddressForUser(self, userId, address, setDefault):
94 ashish 891
    self._oprot.writeMessageBegin('addAddressForUser', TMessageType.CALL, self._seqid)
892
    args = addAddressForUser_args()
559 chandransh 893
    args.userId = userId
94 ashish 894
    args.address = address
513 rajveer 895
    args.setDefault = setDefault
94 ashish 896
    args.write(self._oprot)
897
    self._oprot.writeMessageEnd()
898
    self._oprot.trans.flush()
899
 
900
  def recv_addAddressForUser(self, ):
901
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
902
    if mtype == TMessageType.EXCEPTION:
903
      x = TApplicationException()
904
      x.read(self._iprot)
905
      self._iprot.readMessageEnd()
906
      raise x
907
    result = addAddressForUser_result()
908
    result.read(self._iprot)
909
    self._iprot.readMessageEnd()
3431 rajveer 910
    if result.success is not None:
94 ashish 911
      return result.success
3431 rajveer 912
    if result.ucx is not None:
94 ashish 913
      raise result.ucx
914
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAddressForUser failed: unknown result");
915
 
916
  def removeAddressForUser(self, userid, addressId):
917
    """
918
    Parameters:
919
     - userid
920
     - addressId
921
    """
922
    self.send_removeAddressForUser(userid, addressId)
923
    return self.recv_removeAddressForUser()
924
 
925
  def send_removeAddressForUser(self, userid, addressId):
926
    self._oprot.writeMessageBegin('removeAddressForUser', TMessageType.CALL, self._seqid)
927
    args = removeAddressForUser_args()
928
    args.userid = userid
929
    args.addressId = addressId
930
    args.write(self._oprot)
931
    self._oprot.writeMessageEnd()
932
    self._oprot.trans.flush()
933
 
934
  def recv_removeAddressForUser(self, ):
935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
936
    if mtype == TMessageType.EXCEPTION:
937
      x = TApplicationException()
938
      x.read(self._iprot)
939
      self._iprot.readMessageEnd()
940
      raise x
941
    result = removeAddressForUser_result()
942
    result.read(self._iprot)
943
    self._iprot.readMessageEnd()
3431 rajveer 944
    if result.success is not None:
94 ashish 945
      return result.success
3431 rajveer 946
    if result.ucx is not None:
94 ashish 947
      raise result.ucx
948
    raise TApplicationException(TApplicationException.MISSING_RESULT, "removeAddressForUser failed: unknown result");
949
 
950
  def setUserAsLoggedIn(self, userId, timestamp):
951
    """
952
    Parameters:
953
     - userId
954
     - timestamp
955
    """
956
    self.send_setUserAsLoggedIn(userId, timestamp)
957
    return self.recv_setUserAsLoggedIn()
958
 
959
  def send_setUserAsLoggedIn(self, userId, timestamp):
960
    self._oprot.writeMessageBegin('setUserAsLoggedIn', TMessageType.CALL, self._seqid)
961
    args = setUserAsLoggedIn_args()
962
    args.userId = userId
963
    args.timestamp = timestamp
964
    args.write(self._oprot)
965
    self._oprot.writeMessageEnd()
966
    self._oprot.trans.flush()
967
 
968
  def recv_setUserAsLoggedIn(self, ):
969
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
970
    if mtype == TMessageType.EXCEPTION:
971
      x = TApplicationException()
972
      x.read(self._iprot)
973
      self._iprot.readMessageEnd()
974
      raise x
975
    result = setUserAsLoggedIn_result()
976
    result.read(self._iprot)
977
    self._iprot.readMessageEnd()
3431 rajveer 978
    if result.success is not None:
94 ashish 979
      return result.success
3431 rajveer 980
    if result.ucx is not None:
94 ashish 981
      raise result.ucx
982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedIn failed: unknown result");
983
 
984
  def setUserAsLoggedOut(self, userid, timestamp):
985
    """
986
    Parameters:
987
     - userid
988
     - timestamp
989
    """
990
    self.send_setUserAsLoggedOut(userid, timestamp)
991
    return self.recv_setUserAsLoggedOut()
992
 
993
  def send_setUserAsLoggedOut(self, userid, timestamp):
994
    self._oprot.writeMessageBegin('setUserAsLoggedOut', TMessageType.CALL, self._seqid)
995
    args = setUserAsLoggedOut_args()
996
    args.userid = userid
997
    args.timestamp = timestamp
998
    args.write(self._oprot)
999
    self._oprot.writeMessageEnd()
1000
    self._oprot.trans.flush()
1001
 
1002
  def recv_setUserAsLoggedOut(self, ):
1003
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1004
    if mtype == TMessageType.EXCEPTION:
1005
      x = TApplicationException()
1006
      x.read(self._iprot)
1007
      self._iprot.readMessageEnd()
1008
      raise x
1009
    result = setUserAsLoggedOut_result()
1010
    result.read(self._iprot)
1011
    self._iprot.readMessageEnd()
3431 rajveer 1012
    if result.success is not None:
94 ashish 1013
      return result.success
3431 rajveer 1014
    if result.ucx is not None:
94 ashish 1015
      raise result.ucx
1016
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setUserAsLoggedOut failed: unknown result");
1017
 
504 rajveer 1018
  def setDefaultAddress(self, userid, addressId):
1019
    """
1020
    Parameters:
1021
     - userid
1022
     - addressId
1023
    """
1024
    self.send_setDefaultAddress(userid, addressId)
1025
    return self.recv_setDefaultAddress()
1026
 
1027
  def send_setDefaultAddress(self, userid, addressId):
1028
    self._oprot.writeMessageBegin('setDefaultAddress', TMessageType.CALL, self._seqid)
1029
    args = setDefaultAddress_args()
1030
    args.userid = userid
1031
    args.addressId = addressId
1032
    args.write(self._oprot)
1033
    self._oprot.writeMessageEnd()
1034
    self._oprot.trans.flush()
1035
 
1036
  def recv_setDefaultAddress(self, ):
1037
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1038
    if mtype == TMessageType.EXCEPTION:
1039
      x = TApplicationException()
1040
      x.read(self._iprot)
1041
      self._iprot.readMessageEnd()
1042
      raise x
1043
    result = setDefaultAddress_result()
1044
    result.read(self._iprot)
1045
    self._iprot.readMessageEnd()
3431 rajveer 1046
    if result.success is not None:
504 rajveer 1047
      return result.success
3431 rajveer 1048
    if result.ucx is not None:
504 rajveer 1049
      raise result.ucx
1050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
1051
 
594 rajveer 1052
  def updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1053
    """
1054
    Parameters:
1055
     - userid
594 rajveer 1056
     - oldPassword
1057
     - newPassword
94 ashish 1058
    """
594 rajveer 1059
    self.send_updatePassword(userid, oldPassword, newPassword)
94 ashish 1060
    return self.recv_updatePassword()
1061
 
594 rajveer 1062
  def send_updatePassword(self, userid, oldPassword, newPassword):
94 ashish 1063
    self._oprot.writeMessageBegin('updatePassword', TMessageType.CALL, self._seqid)
1064
    args = updatePassword_args()
1065
    args.userid = userid
594 rajveer 1066
    args.oldPassword = oldPassword
1067
    args.newPassword = newPassword
94 ashish 1068
    args.write(self._oprot)
1069
    self._oprot.writeMessageEnd()
1070
    self._oprot.trans.flush()
1071
 
1072
  def recv_updatePassword(self, ):
1073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1074
    if mtype == TMessageType.EXCEPTION:
1075
      x = TApplicationException()
1076
      x.read(self._iprot)
1077
      self._iprot.readMessageEnd()
1078
      raise x
1079
    result = updatePassword_result()
1080
    result.read(self._iprot)
1081
    self._iprot.readMessageEnd()
3431 rajveer 1082
    if result.success is not None:
94 ashish 1083
      return result.success
3431 rajveer 1084
    if result.ucx is not None:
94 ashish 1085
      raise result.ucx
1086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
1087
 
884 rajveer 1088
  def forgotPassword(self, email, newPassword):
581 rajveer 1089
    """
1090
    Parameters:
1091
     - email
884 rajveer 1092
     - newPassword
581 rajveer 1093
    """
884 rajveer 1094
    self.send_forgotPassword(email, newPassword)
581 rajveer 1095
    return self.recv_forgotPassword()
1096
 
884 rajveer 1097
  def send_forgotPassword(self, email, newPassword):
581 rajveer 1098
    self._oprot.writeMessageBegin('forgotPassword', TMessageType.CALL, self._seqid)
1099
    args = forgotPassword_args()
1100
    args.email = email
884 rajveer 1101
    args.newPassword = newPassword
581 rajveer 1102
    args.write(self._oprot)
1103
    self._oprot.writeMessageEnd()
1104
    self._oprot.trans.flush()
1105
 
1106
  def recv_forgotPassword(self, ):
1107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1108
    if mtype == TMessageType.EXCEPTION:
1109
      x = TApplicationException()
1110
      x.read(self._iprot)
1111
      self._iprot.readMessageEnd()
1112
      raise x
1113
    result = forgotPassword_result()
1114
    result.read(self._iprot)
1115
    self._iprot.readMessageEnd()
3431 rajveer 1116
    if result.success is not None:
581 rajveer 1117
      return result.success
3431 rajveer 1118
    if result.ucx is not None:
581 rajveer 1119
      raise result.ucx
1120
    raise TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
1121
 
594 rajveer 1122
  def getAllAddressesForUser(self, userId):
1123
    """
1124
    Parameters:
1125
     - userId
1126
    """
1127
    self.send_getAllAddressesForUser(userId)
1128
    return self.recv_getAllAddressesForUser()
1129
 
1130
  def send_getAllAddressesForUser(self, userId):
1131
    self._oprot.writeMessageBegin('getAllAddressesForUser', TMessageType.CALL, self._seqid)
1132
    args = getAllAddressesForUser_args()
1133
    args.userId = userId
1134
    args.write(self._oprot)
1135
    self._oprot.writeMessageEnd()
1136
    self._oprot.trans.flush()
1137
 
1138
  def recv_getAllAddressesForUser(self, ):
1139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1140
    if mtype == TMessageType.EXCEPTION:
1141
      x = TApplicationException()
1142
      x.read(self._iprot)
1143
      self._iprot.readMessageEnd()
1144
      raise x
1145
    result = getAllAddressesForUser_result()
1146
    result.read(self._iprot)
1147
    self._iprot.readMessageEnd()
3431 rajveer 1148
    if result.success is not None:
594 rajveer 1149
      return result.success
3431 rajveer 1150
    if result.ucx is not None:
594 rajveer 1151
      raise result.ucx
1152
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
1153
 
1894 vikas 1154
  def getAddressById(self, addressId):
1155
    """
1156
    Parameters:
1157
     - addressId
1158
    """
1159
    self.send_getAddressById(addressId)
1160
    return self.recv_getAddressById()
1161
 
1162
  def send_getAddressById(self, addressId):
1163
    self._oprot.writeMessageBegin('getAddressById', TMessageType.CALL, self._seqid)
1164
    args = getAddressById_args()
1165
    args.addressId = addressId
1166
    args.write(self._oprot)
1167
    self._oprot.writeMessageEnd()
1168
    self._oprot.trans.flush()
1169
 
1170
  def recv_getAddressById(self, ):
1171
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1172
    if mtype == TMessageType.EXCEPTION:
1173
      x = TApplicationException()
1174
      x.read(self._iprot)
1175
      self._iprot.readMessageEnd()
1176
      raise x
1177
    result = getAddressById_result()
1178
    result.read(self._iprot)
1179
    self._iprot.readMessageEnd()
3431 rajveer 1180
    if result.success is not None:
1894 vikas 1181
      return result.success
3431 rajveer 1182
    if result.ucx is not None:
1894 vikas 1183
      raise result.ucx
1184
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressById failed: unknown result");
1185
 
594 rajveer 1186
  def getDefaultAddressId(self, userId):
1187
    """
1188
    Parameters:
1189
     - userId
1190
    """
1191
    self.send_getDefaultAddressId(userId)
1192
    return self.recv_getDefaultAddressId()
1193
 
1194
  def send_getDefaultAddressId(self, userId):
1195
    self._oprot.writeMessageBegin('getDefaultAddressId', TMessageType.CALL, self._seqid)
1196
    args = getDefaultAddressId_args()
1197
    args.userId = userId
1198
    args.write(self._oprot)
1199
    self._oprot.writeMessageEnd()
1200
    self._oprot.trans.flush()
1201
 
1202
  def recv_getDefaultAddressId(self, ):
1203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1204
    if mtype == TMessageType.EXCEPTION:
1205
      x = TApplicationException()
1206
      x.read(self._iprot)
1207
      self._iprot.readMessageEnd()
1208
      raise x
1209
    result = getDefaultAddressId_result()
1210
    result.read(self._iprot)
1211
    self._iprot.readMessageEnd()
3431 rajveer 1212
    if result.success is not None:
594 rajveer 1213
      return result.success
3431 rajveer 1214
    if result.ucx is not None:
594 rajveer 1215
      raise result.ucx
1216
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
1217
 
785 rajveer 1218
  def getDefaultPincode(self, userId):
1219
    """
1220
    Parameters:
1221
     - userId
1222
    """
1223
    self.send_getDefaultPincode(userId)
1224
    return self.recv_getDefaultPincode()
1225
 
1226
  def send_getDefaultPincode(self, userId):
1227
    self._oprot.writeMessageBegin('getDefaultPincode', TMessageType.CALL, self._seqid)
1228
    args = getDefaultPincode_args()
1229
    args.userId = userId
1230
    args.write(self._oprot)
1231
    self._oprot.writeMessageEnd()
1232
    self._oprot.trans.flush()
1233
 
1234
  def recv_getDefaultPincode(self, ):
1235
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1236
    if mtype == TMessageType.EXCEPTION:
1237
      x = TApplicationException()
1238
      x.read(self._iprot)
1239
      self._iprot.readMessageEnd()
1240
      raise x
1241
    result = getDefaultPincode_result()
1242
    result.read(self._iprot)
1243
    self._iprot.readMessageEnd()
3431 rajveer 1244
    if result.success is not None:
785 rajveer 1245
      return result.success
3431 rajveer 1246
    if result.ucx is not None:
785 rajveer 1247
      raise result.ucx
1248
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultPincode failed: unknown result");
1249
 
1274 varun.gupt 1250
  def saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1251
    """
1252
    Parameters:
1253
     - userId
1254
     - replyTo
1255
     - communicationType
1256
     - orderId
1257
     - airwaybillNo
1258
     - productName
1259
     - subject
1260
     - message
1261
    """
1262
    self.send_saveUserCommunication(userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message)
1263
    return self.recv_saveUserCommunication()
1264
 
1265
  def send_saveUserCommunication(self, userId, replyTo, communicationType, orderId, airwaybillNo, productName, subject, message):
1266
    self._oprot.writeMessageBegin('saveUserCommunication', TMessageType.CALL, self._seqid)
1267
    args = saveUserCommunication_args()
1268
    args.userId = userId
1269
    args.replyTo = replyTo
1270
    args.communicationType = communicationType
1271
    args.orderId = orderId
1272
    args.airwaybillNo = airwaybillNo
1273
    args.productName = productName
1274
    args.subject = subject
1275
    args.message = message
1276
    args.write(self._oprot)
1277
    self._oprot.writeMessageEnd()
1278
    self._oprot.trans.flush()
1279
 
1280
  def recv_saveUserCommunication(self, ):
1281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1282
    if mtype == TMessageType.EXCEPTION:
1283
      x = TApplicationException()
1284
      x.read(self._iprot)
1285
      self._iprot.readMessageEnd()
1286
      raise x
1287
    result = saveUserCommunication_result()
1288
    result.read(self._iprot)
1289
    self._iprot.readMessageEnd()
3431 rajveer 1290
    if result.success is not None:
1274 varun.gupt 1291
      return result.success
3431 rajveer 1292
    if result.ucx is not None:
1274 varun.gupt 1293
      raise result.ucx
1294
    raise TApplicationException(TApplicationException.MISSING_RESULT, "saveUserCommunication failed: unknown result");
1295
 
1590 varun.gupt 1296
  def getUserCommunicationById(self, id):
1297
    """
1298
    Parameters:
1299
     - id
1300
    """
1301
    self.send_getUserCommunicationById(id)
1302
    return self.recv_getUserCommunicationById()
1303
 
1304
  def send_getUserCommunicationById(self, id):
1305
    self._oprot.writeMessageBegin('getUserCommunicationById', TMessageType.CALL, self._seqid)
1306
    args = getUserCommunicationById_args()
1307
    args.id = id
1308
    args.write(self._oprot)
1309
    self._oprot.writeMessageEnd()
1310
    self._oprot.trans.flush()
1311
 
1312
  def recv_getUserCommunicationById(self, ):
1313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1314
    if mtype == TMessageType.EXCEPTION:
1315
      x = TApplicationException()
1316
      x.read(self._iprot)
1317
      self._iprot.readMessageEnd()
1318
      raise x
1319
    result = getUserCommunicationById_result()
1320
    result.read(self._iprot)
1321
    self._iprot.readMessageEnd()
3431 rajveer 1322
    if result.success is not None:
1590 varun.gupt 1323
      return result.success
3431 rajveer 1324
    if result.ucx is not None:
1590 varun.gupt 1325
      raise result.ucx
1326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationById failed: unknown result");
1327
 
1328
  def getUserCommunicationByUser(self, userId):
1329
    """
1330
    Parameters:
1331
     - userId
1332
    """
1333
    self.send_getUserCommunicationByUser(userId)
1334
    return self.recv_getUserCommunicationByUser()
1335
 
1336
  def send_getUserCommunicationByUser(self, userId):
1337
    self._oprot.writeMessageBegin('getUserCommunicationByUser', TMessageType.CALL, self._seqid)
1338
    args = getUserCommunicationByUser_args()
1339
    args.userId = userId
1340
    args.write(self._oprot)
1341
    self._oprot.writeMessageEnd()
1342
    self._oprot.trans.flush()
1343
 
1344
  def recv_getUserCommunicationByUser(self, ):
1345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1346
    if mtype == TMessageType.EXCEPTION:
1347
      x = TApplicationException()
1348
      x.read(self._iprot)
1349
      self._iprot.readMessageEnd()
1350
      raise x
1351
    result = getUserCommunicationByUser_result()
1352
    result.read(self._iprot)
1353
    self._iprot.readMessageEnd()
3431 rajveer 1354
    if result.success is not None:
1590 varun.gupt 1355
      return result.success
3431 rajveer 1356
    if result.ucx is not None:
1590 varun.gupt 1357
      raise result.ucx
1358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCommunicationByUser failed: unknown result");
1359
 
1360
  def getAllUserCommunications(self, ):
1361
    self.send_getAllUserCommunications()
1362
    return self.recv_getAllUserCommunications()
1363
 
1364
  def send_getAllUserCommunications(self, ):
1365
    self._oprot.writeMessageBegin('getAllUserCommunications', TMessageType.CALL, self._seqid)
1366
    args = getAllUserCommunications_args()
1367
    args.write(self._oprot)
1368
    self._oprot.writeMessageEnd()
1369
    self._oprot.trans.flush()
1370
 
1371
  def recv_getAllUserCommunications(self, ):
1372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1373
    if mtype == TMessageType.EXCEPTION:
1374
      x = TApplicationException()
1375
      x.read(self._iprot)
1376
      self._iprot.readMessageEnd()
1377
      raise x
1378
    result = getAllUserCommunications_result()
1379
    result.read(self._iprot)
1380
    self._iprot.readMessageEnd()
3431 rajveer 1381
    if result.success is not None:
1590 varun.gupt 1382
      return result.success
3431 rajveer 1383
    if result.ucx is not None:
1590 varun.gupt 1384
      raise result.ucx
1385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserCommunications failed: unknown result");
1386
 
1859 vikas 1387
  def createMasterAffiliate(self, name, addedOn):
1845 vikas 1388
    """
1389
    Parameters:
1390
     - name
1859 vikas 1391
     - addedOn
1845 vikas 1392
    """
1859 vikas 1393
    self.send_createMasterAffiliate(name, addedOn)
1845 vikas 1394
    return self.recv_createMasterAffiliate()
1395
 
1859 vikas 1396
  def send_createMasterAffiliate(self, name, addedOn):
1845 vikas 1397
    self._oprot.writeMessageBegin('createMasterAffiliate', TMessageType.CALL, self._seqid)
1398
    args = createMasterAffiliate_args()
1399
    args.name = name
1859 vikas 1400
    args.addedOn = addedOn
1845 vikas 1401
    args.write(self._oprot)
1402
    self._oprot.writeMessageEnd()
1403
    self._oprot.trans.flush()
1404
 
1405
  def recv_createMasterAffiliate(self, ):
1406
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1407
    if mtype == TMessageType.EXCEPTION:
1408
      x = TApplicationException()
1409
      x.read(self._iprot)
1410
      self._iprot.readMessageEnd()
1411
      raise x
1412
    result = createMasterAffiliate_result()
1413
    result.read(self._iprot)
1414
    self._iprot.readMessageEnd()
3431 rajveer 1415
    if result.success is not None:
1845 vikas 1416
      return result.success
3431 rajveer 1417
    if result.utx is not None:
1845 vikas 1418
      raise result.utx
1419
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createMasterAffiliate failed: unknown result");
1420
 
1899 vikas 1421
  def getAllMasterAffiliates(self, ):
1422
    self.send_getAllMasterAffiliates()
1423
    return self.recv_getAllMasterAffiliates()
1424
 
1425
  def send_getAllMasterAffiliates(self, ):
1426
    self._oprot.writeMessageBegin('getAllMasterAffiliates', TMessageType.CALL, self._seqid)
1427
    args = getAllMasterAffiliates_args()
1428
    args.write(self._oprot)
1429
    self._oprot.writeMessageEnd()
1430
    self._oprot.trans.flush()
1431
 
1432
  def recv_getAllMasterAffiliates(self, ):
1433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1434
    if mtype == TMessageType.EXCEPTION:
1435
      x = TApplicationException()
1436
      x.read(self._iprot)
1437
      self._iprot.readMessageEnd()
1438
      raise x
1439
    result = getAllMasterAffiliates_result()
1440
    result.read(self._iprot)
1441
    self._iprot.readMessageEnd()
3431 rajveer 1442
    if result.success is not None:
1899 vikas 1443
      return result.success
3431 rajveer 1444
    if result.utx is not None:
1899 vikas 1445
      raise result.utx
1446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllMasterAffiliates failed: unknown result");
1447
 
1845 vikas 1448
  def getMasterAffiliateById(self, id):
1449
    """
1450
    Parameters:
1451
     - id
1452
    """
1453
    self.send_getMasterAffiliateById(id)
1454
    return self.recv_getMasterAffiliateById()
1455
 
1456
  def send_getMasterAffiliateById(self, id):
1457
    self._oprot.writeMessageBegin('getMasterAffiliateById', TMessageType.CALL, self._seqid)
1458
    args = getMasterAffiliateById_args()
1459
    args.id = id
1460
    args.write(self._oprot)
1461
    self._oprot.writeMessageEnd()
1462
    self._oprot.trans.flush()
1463
 
1464
  def recv_getMasterAffiliateById(self, ):
1465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1466
    if mtype == TMessageType.EXCEPTION:
1467
      x = TApplicationException()
1468
      x.read(self._iprot)
1469
      self._iprot.readMessageEnd()
1470
      raise x
1471
    result = getMasterAffiliateById_result()
1472
    result.read(self._iprot)
1473
    self._iprot.readMessageEnd()
3431 rajveer 1474
    if result.success is not None:
1845 vikas 1475
      return result.success
3431 rajveer 1476
    if result.utx is not None:
1845 vikas 1477
      raise result.utx
1478
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateById failed: unknown result");
1479
 
1480
  def getMasterAffiliateByName(self, name):
1481
    """
1482
    Parameters:
1483
     - name
1484
    """
1485
    self.send_getMasterAffiliateByName(name)
1486
    return self.recv_getMasterAffiliateByName()
1487
 
1488
  def send_getMasterAffiliateByName(self, name):
1489
    self._oprot.writeMessageBegin('getMasterAffiliateByName', TMessageType.CALL, self._seqid)
1490
    args = getMasterAffiliateByName_args()
1491
    args.name = name
1492
    args.write(self._oprot)
1493
    self._oprot.writeMessageEnd()
1494
    self._oprot.trans.flush()
1495
 
1496
  def recv_getMasterAffiliateByName(self, ):
1497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1498
    if mtype == TMessageType.EXCEPTION:
1499
      x = TApplicationException()
1500
      x.read(self._iprot)
1501
      self._iprot.readMessageEnd()
1502
      raise x
1503
    result = getMasterAffiliateByName_result()
1504
    result.read(self._iprot)
1505
    self._iprot.readMessageEnd()
3431 rajveer 1506
    if result.success is not None:
1845 vikas 1507
      return result.success
3431 rajveer 1508
    if result.utx is not None:
1845 vikas 1509
      raise result.utx
1510
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMasterAffiliateByName failed: unknown result");
1511
 
1859 vikas 1512
  def createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1513
    """
1514
    Parameters:
1515
     - name
1516
     - url
1517
     - masterAffiliateId
1859 vikas 1518
     - addedOn
1845 vikas 1519
    """
1859 vikas 1520
    self.send_createAffiliate(name, url, masterAffiliateId, addedOn)
1845 vikas 1521
    return self.recv_createAffiliate()
1522
 
1859 vikas 1523
  def send_createAffiliate(self, name, url, masterAffiliateId, addedOn):
1845 vikas 1524
    self._oprot.writeMessageBegin('createAffiliate', TMessageType.CALL, self._seqid)
1525
    args = createAffiliate_args()
1526
    args.name = name
1527
    args.url = url
1528
    args.masterAffiliateId = masterAffiliateId
1859 vikas 1529
    args.addedOn = addedOn
1845 vikas 1530
    args.write(self._oprot)
1531
    self._oprot.writeMessageEnd()
1532
    self._oprot.trans.flush()
1533
 
1534
  def recv_createAffiliate(self, ):
1535
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1536
    if mtype == TMessageType.EXCEPTION:
1537
      x = TApplicationException()
1538
      x.read(self._iprot)
1539
      self._iprot.readMessageEnd()
1540
      raise x
1541
    result = createAffiliate_result()
1542
    result.read(self._iprot)
1543
    self._iprot.readMessageEnd()
3431 rajveer 1544
    if result.success is not None:
1845 vikas 1545
      return result.success
3431 rajveer 1546
    if result.utx is not None:
1845 vikas 1547
      raise result.utx
1548
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createAffiliate failed: unknown result");
1549
 
1550
  def getAffiliateById(self, id):
1551
    """
1552
    Parameters:
1553
     - id
1554
    """
1555
    self.send_getAffiliateById(id)
1556
    return self.recv_getAffiliateById()
1557
 
1558
  def send_getAffiliateById(self, id):
1559
    self._oprot.writeMessageBegin('getAffiliateById', TMessageType.CALL, self._seqid)
1560
    args = getAffiliateById_args()
1561
    args.id = id
1562
    args.write(self._oprot)
1563
    self._oprot.writeMessageEnd()
1564
    self._oprot.trans.flush()
1565
 
1566
  def recv_getAffiliateById(self, ):
1567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1568
    if mtype == TMessageType.EXCEPTION:
1569
      x = TApplicationException()
1570
      x.read(self._iprot)
1571
      self._iprot.readMessageEnd()
1572
      raise x
1573
    result = getAffiliateById_result()
1574
    result.read(self._iprot)
1575
    self._iprot.readMessageEnd()
3431 rajveer 1576
    if result.success is not None:
1845 vikas 1577
      return result.success
3431 rajveer 1578
    if result.utx is not None:
1845 vikas 1579
      raise result.utx
1580
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateById failed: unknown result");
1581
 
1582
  def getAffiliateByName(self, name):
1583
    """
1584
    Parameters:
1585
     - name
1586
    """
1587
    self.send_getAffiliateByName(name)
1588
    return self.recv_getAffiliateByName()
1589
 
1590
  def send_getAffiliateByName(self, name):
1591
    self._oprot.writeMessageBegin('getAffiliateByName', TMessageType.CALL, self._seqid)
1592
    args = getAffiliateByName_args()
1593
    args.name = name
1594
    args.write(self._oprot)
1595
    self._oprot.writeMessageEnd()
1596
    self._oprot.trans.flush()
1597
 
1598
  def recv_getAffiliateByName(self, ):
1599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1600
    if mtype == TMessageType.EXCEPTION:
1601
      x = TApplicationException()
1602
      x.read(self._iprot)
1603
      self._iprot.readMessageEnd()
1604
      raise x
1605
    result = getAffiliateByName_result()
1606
    result.read(self._iprot)
1607
    self._iprot.readMessageEnd()
3431 rajveer 1608
    if result.success is not None:
1845 vikas 1609
      return result.success
3431 rajveer 1610
    if result.utx is not None:
1845 vikas 1611
      raise result.utx
1612
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliateByName failed: unknown result");
1613
 
1996 vikas 1614
  def getTrackerById(self, id):
1845 vikas 1615
    """
1616
    Parameters:
1617
     - id
1618
    """
1996 vikas 1619
    self.send_getTrackerById(id)
1845 vikas 1620
    return self.recv_getTrackerById()
1621
 
1996 vikas 1622
  def send_getTrackerById(self, id):
1845 vikas 1623
    self._oprot.writeMessageBegin('getTrackerById', TMessageType.CALL, self._seqid)
1624
    args = getTrackerById_args()
1996 vikas 1625
    args.id = id
1845 vikas 1626
    args.write(self._oprot)
1627
    self._oprot.writeMessageEnd()
1628
    self._oprot.trans.flush()
1629
 
1630
  def recv_getTrackerById(self, ):
1631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1632
    if mtype == TMessageType.EXCEPTION:
1633
      x = TApplicationException()
1634
      x.read(self._iprot)
1635
      self._iprot.readMessageEnd()
1636
      raise x
1637
    result = getTrackerById_result()
1638
    result.read(self._iprot)
1639
    self._iprot.readMessageEnd()
3431 rajveer 1640
    if result.success is not None:
1845 vikas 1641
      return result.success
3431 rajveer 1642
    if result.utx is not None:
1845 vikas 1643
      raise result.utx
1644
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackerById failed: unknown result");
1645
 
1996 vikas 1646
  def getAffiliatesByMasterAffiliate(self, id):
1845 vikas 1647
    """
1648
    Parameters:
1996 vikas 1649
     - id
1845 vikas 1650
    """
1996 vikas 1651
    self.send_getAffiliatesByMasterAffiliate(id)
1652
    return self.recv_getAffiliatesByMasterAffiliate()
1845 vikas 1653
 
1996 vikas 1654
  def send_getAffiliatesByMasterAffiliate(self, id):
1655
    self._oprot.writeMessageBegin('getAffiliatesByMasterAffiliate', TMessageType.CALL, self._seqid)
1656
    args = getAffiliatesByMasterAffiliate_args()
1657
    args.id = id
1845 vikas 1658
    args.write(self._oprot)
1659
    self._oprot.writeMessageEnd()
1660
    self._oprot.trans.flush()
1661
 
1996 vikas 1662
  def recv_getAffiliatesByMasterAffiliate(self, ):
1845 vikas 1663
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1664
    if mtype == TMessageType.EXCEPTION:
1665
      x = TApplicationException()
1666
      x.read(self._iprot)
1667
      self._iprot.readMessageEnd()
1668
      raise x
1996 vikas 1669
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 1670
    result.read(self._iprot)
1671
    self._iprot.readMessageEnd()
3431 rajveer 1672
    if result.success is not None:
1845 vikas 1673
      return result.success
3431 rajveer 1674
    if result.utx is not None:
1845 vikas 1675
      raise result.utx
1996 vikas 1676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1845 vikas 1677
 
1996 vikas 1678
  def addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1679
    """
1680
    Parameters:
1996 vikas 1681
     - affiliateId
1845 vikas 1682
     - userId
1683
     - event
1684
     - url
1685
     - data
1859 vikas 1686
     - addedOn
1845 vikas 1687
    """
1996 vikas 1688
    self.send_addTrackLog(affiliateId, userId, event, url, data, addedOn)
1845 vikas 1689
    return self.recv_addTrackLog()
1690
 
1996 vikas 1691
  def send_addTrackLog(self, affiliateId, userId, event, url, data, addedOn):
1845 vikas 1692
    self._oprot.writeMessageBegin('addTrackLog', TMessageType.CALL, self._seqid)
1693
    args = addTrackLog_args()
1996 vikas 1694
    args.affiliateId = affiliateId
1845 vikas 1695
    args.userId = userId
1696
    args.event = event
1697
    args.url = url
1698
    args.data = data
1859 vikas 1699
    args.addedOn = addedOn
1845 vikas 1700
    args.write(self._oprot)
1701
    self._oprot.writeMessageEnd()
1702
    self._oprot.trans.flush()
1703
 
1704
  def recv_addTrackLog(self, ):
1705
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1706
    if mtype == TMessageType.EXCEPTION:
1707
      x = TApplicationException()
1708
      x.read(self._iprot)
1709
      self._iprot.readMessageEnd()
1710
      raise x
1711
    result = addTrackLog_result()
1712
    result.read(self._iprot)
1713
    self._iprot.readMessageEnd()
3431 rajveer 1714
    if result.success is not None:
1845 vikas 1715
      return result.success
3431 rajveer 1716
    if result.utx is not None:
1845 vikas 1717
      raise result.utx
1718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrackLog failed: unknown result");
1719
 
1720
  def getTrackLogById(self, id):
1721
    """
1722
    Parameters:
1723
     - id
1724
    """
1725
    self.send_getTrackLogById(id)
1726
    return self.recv_getTrackLogById()
1727
 
1728
  def send_getTrackLogById(self, id):
1729
    self._oprot.writeMessageBegin('getTrackLogById', TMessageType.CALL, self._seqid)
1730
    args = getTrackLogById_args()
1731
    args.id = id
1732
    args.write(self._oprot)
1733
    self._oprot.writeMessageEnd()
1734
    self._oprot.trans.flush()
1735
 
1736
  def recv_getTrackLogById(self, ):
1737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1738
    if mtype == TMessageType.EXCEPTION:
1739
      x = TApplicationException()
1740
      x.read(self._iprot)
1741
      self._iprot.readMessageEnd()
1742
      raise x
1743
    result = getTrackLogById_result()
1744
    result.read(self._iprot)
1745
    self._iprot.readMessageEnd()
3431 rajveer 1746
    if result.success is not None:
1845 vikas 1747
      return result.success
3431 rajveer 1748
    if result.utx is not None:
1845 vikas 1749
      raise result.utx
1750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogById failed: unknown result");
1751
 
3293 vikas 1752
  def getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1845 vikas 1753
    """
1754
    Parameters:
1996 vikas 1755
     - affiliateId
3293 vikas 1756
     - startDate
1757
     - endDate
1845 vikas 1758
    """
3293 vikas 1759
    self.send_getTrackLogsByAffiliate(affiliateId, startDate, endDate)
1996 vikas 1760
    return self.recv_getTrackLogsByAffiliate()
1845 vikas 1761
 
3293 vikas 1762
  def send_getTrackLogsByAffiliate(self, affiliateId, startDate, endDate):
1996 vikas 1763
    self._oprot.writeMessageBegin('getTrackLogsByAffiliate', TMessageType.CALL, self._seqid)
1764
    args = getTrackLogsByAffiliate_args()
1765
    args.affiliateId = affiliateId
3293 vikas 1766
    args.startDate = startDate
1767
    args.endDate = endDate
1845 vikas 1768
    args.write(self._oprot)
1769
    self._oprot.writeMessageEnd()
1770
    self._oprot.trans.flush()
1771
 
1996 vikas 1772
  def recv_getTrackLogsByAffiliate(self, ):
1845 vikas 1773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1774
    if mtype == TMessageType.EXCEPTION:
1775
      x = TApplicationException()
1776
      x.read(self._iprot)
1777
      self._iprot.readMessageEnd()
1778
      raise x
1996 vikas 1779
    result = getTrackLogsByAffiliate_result()
1845 vikas 1780
    result.read(self._iprot)
1781
    self._iprot.readMessageEnd()
3431 rajveer 1782
    if result.success is not None:
1845 vikas 1783
      return result.success
3431 rajveer 1784
    if result.utx is not None:
1845 vikas 1785
      raise result.utx
1996 vikas 1786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByAffiliate failed: unknown result");
1845 vikas 1787
 
1788
  def getTrackLogsByUser(self, userId):
1789
    """
1790
    Parameters:
1791
     - userId
1792
    """
1793
    self.send_getTrackLogsByUser(userId)
1794
    return self.recv_getTrackLogsByUser()
1795
 
1796
  def send_getTrackLogsByUser(self, userId):
1797
    self._oprot.writeMessageBegin('getTrackLogsByUser', TMessageType.CALL, self._seqid)
1798
    args = getTrackLogsByUser_args()
1799
    args.userId = userId
1800
    args.write(self._oprot)
1801
    self._oprot.writeMessageEnd()
1802
    self._oprot.trans.flush()
1803
 
1804
  def recv_getTrackLogsByUser(self, ):
1805
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1806
    if mtype == TMessageType.EXCEPTION:
1807
      x = TApplicationException()
1808
      x.read(self._iprot)
1809
      self._iprot.readMessageEnd()
1810
      raise x
1811
    result = getTrackLogsByUser_result()
1812
    result.read(self._iprot)
1813
    self._iprot.readMessageEnd()
3431 rajveer 1814
    if result.success is not None:
1845 vikas 1815
      return result.success
3431 rajveer 1816
    if result.utx is not None:
1845 vikas 1817
      raise result.utx
1818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogsByUser failed: unknown result");
1819
 
1996 vikas 1820
  def getTrackLogs(self, userId, event, url):
1845 vikas 1821
    """
1822
    Parameters:
1823
     - userId
1824
     - event
1825
     - url
1826
    """
1996 vikas 1827
    self.send_getTrackLogs(userId, event, url)
1845 vikas 1828
    return self.recv_getTrackLogs()
1829
 
1996 vikas 1830
  def send_getTrackLogs(self, userId, event, url):
1845 vikas 1831
    self._oprot.writeMessageBegin('getTrackLogs', TMessageType.CALL, self._seqid)
1832
    args = getTrackLogs_args()
1833
    args.userId = userId
1834
    args.event = event
1835
    args.url = url
1836
    args.write(self._oprot)
1837
    self._oprot.writeMessageEnd()
1838
    self._oprot.trans.flush()
1839
 
1840
  def recv_getTrackLogs(self, ):
1841
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1842
    if mtype == TMessageType.EXCEPTION:
1843
      x = TApplicationException()
1844
      x.read(self._iprot)
1845
      self._iprot.readMessageEnd()
1846
      raise x
1847
    result = getTrackLogs_result()
1848
    result.read(self._iprot)
1849
    self._iprot.readMessageEnd()
3431 rajveer 1850
    if result.success is not None:
1845 vikas 1851
      return result.success
3431 rajveer 1852
    if result.utx is not None:
1845 vikas 1853
      raise result.utx
1854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTrackLogs failed: unknown result");
1855
 
559 chandransh 1856
  def createCart(self, userId):
94 ashish 1857
    """
1858
    Parameters:
559 chandransh 1859
     - userId
94 ashish 1860
    """
559 chandransh 1861
    self.send_createCart(userId)
1862
    return self.recv_createCart()
94 ashish 1863
 
559 chandransh 1864
  def send_createCart(self, userId):
1865
    self._oprot.writeMessageBegin('createCart', TMessageType.CALL, self._seqid)
1866
    args = createCart_args()
1867
    args.userId = userId
94 ashish 1868
    args.write(self._oprot)
1869
    self._oprot.writeMessageEnd()
1870
    self._oprot.trans.flush()
1871
 
559 chandransh 1872
  def recv_createCart(self, ):
94 ashish 1873
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1874
    if mtype == TMessageType.EXCEPTION:
1875
      x = TApplicationException()
1876
      x.read(self._iprot)
1877
      self._iprot.readMessageEnd()
1878
      raise x
559 chandransh 1879
    result = createCart_result()
94 ashish 1880
    result.read(self._iprot)
1881
    self._iprot.readMessageEnd()
3431 rajveer 1882
    if result.success is not None:
94 ashish 1883
      return result.success
3431 rajveer 1884
    if result.scx is not None:
559 chandransh 1885
      raise result.scx
1886
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createCart failed: unknown result");
94 ashish 1887
 
559 chandransh 1888
  def getCurrentCart(self, userId):
94 ashish 1889
    """
1890
    Parameters:
559 chandransh 1891
     - userId
94 ashish 1892
    """
559 chandransh 1893
    self.send_getCurrentCart(userId)
1894
    return self.recv_getCurrentCart()
94 ashish 1895
 
559 chandransh 1896
  def send_getCurrentCart(self, userId):
1897
    self._oprot.writeMessageBegin('getCurrentCart', TMessageType.CALL, self._seqid)
1898
    args = getCurrentCart_args()
1899
    args.userId = userId
94 ashish 1900
    args.write(self._oprot)
1901
    self._oprot.writeMessageEnd()
1902
    self._oprot.trans.flush()
1903
 
559 chandransh 1904
  def recv_getCurrentCart(self, ):
94 ashish 1905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1906
    if mtype == TMessageType.EXCEPTION:
1907
      x = TApplicationException()
1908
      x.read(self._iprot)
1909
      self._iprot.readMessageEnd()
1910
      raise x
559 chandransh 1911
    result = getCurrentCart_result()
94 ashish 1912
    result.read(self._iprot)
1913
    self._iprot.readMessageEnd()
3431 rajveer 1914
    if result.success is not None:
94 ashish 1915
      return result.success
3431 rajveer 1916
    if result.scx is not None:
559 chandransh 1917
      raise result.scx
1918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCurrentCart failed: unknown result");
94 ashish 1919
 
559 chandransh 1920
  def getCart(self, cartId):
94 ashish 1921
    """
1922
    Parameters:
559 chandransh 1923
     - cartId
94 ashish 1924
    """
559 chandransh 1925
    self.send_getCart(cartId)
1926
    return self.recv_getCart()
94 ashish 1927
 
559 chandransh 1928
  def send_getCart(self, cartId):
1929
    self._oprot.writeMessageBegin('getCart', TMessageType.CALL, self._seqid)
1930
    args = getCart_args()
1931
    args.cartId = cartId
94 ashish 1932
    args.write(self._oprot)
1933
    self._oprot.writeMessageEnd()
1934
    self._oprot.trans.flush()
1935
 
559 chandransh 1936
  def recv_getCart(self, ):
94 ashish 1937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1938
    if mtype == TMessageType.EXCEPTION:
1939
      x = TApplicationException()
1940
      x.read(self._iprot)
1941
      self._iprot.readMessageEnd()
1942
      raise x
559 chandransh 1943
    result = getCart_result()
94 ashish 1944
    result.read(self._iprot)
1945
    self._iprot.readMessageEnd()
3431 rajveer 1946
    if result.success is not None:
94 ashish 1947
      return result.success
3431 rajveer 1948
    if result.scx is not None:
559 chandransh 1949
      raise result.scx
1950
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCart failed: unknown result");
94 ashish 1951
 
559 chandransh 1952
  def getCartsByTime(self, from_time, to_time, status):
94 ashish 1953
    """
1954
    Parameters:
559 chandransh 1955
     - from_time
1956
     - to_time
1957
     - status
94 ashish 1958
    """
559 chandransh 1959
    self.send_getCartsByTime(from_time, to_time, status)
1960
    return self.recv_getCartsByTime()
94 ashish 1961
 
559 chandransh 1962
  def send_getCartsByTime(self, from_time, to_time, status):
1963
    self._oprot.writeMessageBegin('getCartsByTime', TMessageType.CALL, self._seqid)
1964
    args = getCartsByTime_args()
1965
    args.from_time = from_time
1966
    args.to_time = to_time
1967
    args.status = status
94 ashish 1968
    args.write(self._oprot)
1969
    self._oprot.writeMessageEnd()
1970
    self._oprot.trans.flush()
1971
 
559 chandransh 1972
  def recv_getCartsByTime(self, ):
94 ashish 1973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1974
    if mtype == TMessageType.EXCEPTION:
1975
      x = TApplicationException()
1976
      x.read(self._iprot)
1977
      self._iprot.readMessageEnd()
1978
      raise x
559 chandransh 1979
    result = getCartsByTime_result()
94 ashish 1980
    result.read(self._iprot)
1981
    self._iprot.readMessageEnd()
3431 rajveer 1982
    if result.success is not None:
94 ashish 1983
      return result.success
3431 rajveer 1984
    if result.scx is not None:
559 chandransh 1985
      raise result.scx
1986
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsByTime failed: unknown result");
94 ashish 1987
 
3557 rajveer 1988
  def addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 1989
    """
1990
    Parameters:
1991
     - cartId
1992
     - itemId
1993
     - quantity
3557 rajveer 1994
     - sourceId
559 chandransh 1995
    """
3557 rajveer 1996
    self.send_addItemToCart(cartId, itemId, quantity, sourceId)
2035 rajveer 1997
    return self.recv_addItemToCart()
559 chandransh 1998
 
3557 rajveer 1999
  def send_addItemToCart(self, cartId, itemId, quantity, sourceId):
559 chandransh 2000
    self._oprot.writeMessageBegin('addItemToCart', TMessageType.CALL, self._seqid)
2001
    args = addItemToCart_args()
2002
    args.cartId = cartId
2003
    args.itemId = itemId
2004
    args.quantity = quantity
3557 rajveer 2005
    args.sourceId = sourceId
559 chandransh 2006
    args.write(self._oprot)
2007
    self._oprot.writeMessageEnd()
2008
    self._oprot.trans.flush()
2009
 
2010
  def recv_addItemToCart(self, ):
2011
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2012
    if mtype == TMessageType.EXCEPTION:
2013
      x = TApplicationException()
2014
      x.read(self._iprot)
2015
      self._iprot.readMessageEnd()
2016
      raise x
2017
    result = addItemToCart_result()
2018
    result.read(self._iprot)
2019
    self._iprot.readMessageEnd()
3431 rajveer 2020
    if result.success is not None:
2035 rajveer 2021
      return result.success
3431 rajveer 2022
    if result.scx is not None:
559 chandransh 2023
      raise result.scx
2035 rajveer 2024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemToCart failed: unknown result");
559 chandransh 2025
 
2026
  def deleteItemFromCart(self, cartId, itemId):
2027
    """
2028
    Parameters:
2029
     - cartId
2030
     - itemId
2031
    """
2032
    self.send_deleteItemFromCart(cartId, itemId)
2033
    self.recv_deleteItemFromCart()
2034
 
2035
  def send_deleteItemFromCart(self, cartId, itemId):
2036
    self._oprot.writeMessageBegin('deleteItemFromCart', TMessageType.CALL, self._seqid)
2037
    args = deleteItemFromCart_args()
2038
    args.cartId = cartId
2039
    args.itemId = itemId
2040
    args.write(self._oprot)
2041
    self._oprot.writeMessageEnd()
2042
    self._oprot.trans.flush()
2043
 
2044
  def recv_deleteItemFromCart(self, ):
2045
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2046
    if mtype == TMessageType.EXCEPTION:
2047
      x = TApplicationException()
2048
      x.read(self._iprot)
2049
      self._iprot.readMessageEnd()
2050
      raise x
2051
    result = deleteItemFromCart_result()
2052
    result.read(self._iprot)
2053
    self._iprot.readMessageEnd()
3431 rajveer 2054
    if result.scx is not None:
559 chandransh 2055
      raise result.scx
2056
    return
2057
 
2058
  def addAddressToCart(self, cartId, addressId):
2059
    """
2060
    Parameters:
2061
     - cartId
2062
     - addressId
2063
    """
2064
    self.send_addAddressToCart(cartId, addressId)
2065
    self.recv_addAddressToCart()
2066
 
2067
  def send_addAddressToCart(self, cartId, addressId):
2068
    self._oprot.writeMessageBegin('addAddressToCart', TMessageType.CALL, self._seqid)
2069
    args = addAddressToCart_args()
2070
    args.cartId = cartId
2071
    args.addressId = addressId
2072
    args.write(self._oprot)
2073
    self._oprot.writeMessageEnd()
2074
    self._oprot.trans.flush()
2075
 
2076
  def recv_addAddressToCart(self, ):
2077
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2078
    if mtype == TMessageType.EXCEPTION:
2079
      x = TApplicationException()
2080
      x.read(self._iprot)
2081
      self._iprot.readMessageEnd()
2082
      raise x
2083
    result = addAddressToCart_result()
2084
    result.read(self._iprot)
2085
    self._iprot.readMessageEnd()
3431 rajveer 2086
    if result.scx is not None:
575 chandransh 2087
      raise result.scx
559 chandransh 2088
    return
2089
 
1976 varun.gupt 2090
  def applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2091
    """
2092
    Parameters:
2093
     - cartId
2094
     - couponCode
2095
     - totalPrice
2096
     - discountedPrice
2097
    """
2098
    self.send_applyCouponToCart(cartId, couponCode, totalPrice, discountedPrice)
2099
    self.recv_applyCouponToCart()
2100
 
2101
  def send_applyCouponToCart(self, cartId, couponCode, totalPrice, discountedPrice):
2102
    self._oprot.writeMessageBegin('applyCouponToCart', TMessageType.CALL, self._seqid)
2103
    args = applyCouponToCart_args()
2104
    args.cartId = cartId
2105
    args.couponCode = couponCode
2106
    args.totalPrice = totalPrice
2107
    args.discountedPrice = discountedPrice
2108
    args.write(self._oprot)
2109
    self._oprot.writeMessageEnd()
2110
    self._oprot.trans.flush()
2111
 
2112
  def recv_applyCouponToCart(self, ):
2113
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2114
    if mtype == TMessageType.EXCEPTION:
2115
      x = TApplicationException()
2116
      x.read(self._iprot)
2117
      self._iprot.readMessageEnd()
2118
      raise x
2119
    result = applyCouponToCart_result()
2120
    result.read(self._iprot)
2121
    self._iprot.readMessageEnd()
3431 rajveer 2122
    if result.scx is not None:
1976 varun.gupt 2123
      raise result.scx
2124
    return
2125
 
2126
  def removeCoupon(self, cartId):
2127
    """
2128
    Parameters:
2129
     - cartId
2130
    """
2131
    self.send_removeCoupon(cartId)
2132
    self.recv_removeCoupon()
2133
 
2134
  def send_removeCoupon(self, cartId):
2135
    self._oprot.writeMessageBegin('removeCoupon', TMessageType.CALL, self._seqid)
2136
    args = removeCoupon_args()
2137
    args.cartId = cartId
2138
    args.write(self._oprot)
2139
    self._oprot.writeMessageEnd()
2140
    self._oprot.trans.flush()
2141
 
2142
  def recv_removeCoupon(self, ):
2143
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2144
    if mtype == TMessageType.EXCEPTION:
2145
      x = TApplicationException()
2146
      x.read(self._iprot)
2147
      self._iprot.readMessageEnd()
2148
      raise x
2149
    result = removeCoupon_result()
2150
    result.read(self._iprot)
2151
    self._iprot.readMessageEnd()
3431 rajveer 2152
    if result.scx is not None:
1976 varun.gupt 2153
      raise result.scx
2154
    return
2155
 
3554 varun.gupt 2156
  def deleteDiscountsFromCart(self, cartId):
2157
    """
2158
    Deletes all the discounts associated with the cart
2159
 
2160
    Parameters:
2161
     - cartId
2162
    """
2163
    self.send_deleteDiscountsFromCart(cartId)
2164
    self.recv_deleteDiscountsFromCart()
2165
 
2166
  def send_deleteDiscountsFromCart(self, cartId):
2167
    self._oprot.writeMessageBegin('deleteDiscountsFromCart', TMessageType.CALL, self._seqid)
2168
    args = deleteDiscountsFromCart_args()
2169
    args.cartId = cartId
2170
    args.write(self._oprot)
2171
    self._oprot.writeMessageEnd()
2172
    self._oprot.trans.flush()
2173
 
2174
  def recv_deleteDiscountsFromCart(self, ):
2175
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2176
    if mtype == TMessageType.EXCEPTION:
2177
      x = TApplicationException()
2178
      x.read(self._iprot)
2179
      self._iprot.readMessageEnd()
2180
      raise x
2181
    result = deleteDiscountsFromCart_result()
2182
    result.read(self._iprot)
2183
    self._iprot.readMessageEnd()
2184
    if result.scx is not None:
2185
      raise result.scx
2186
    return
2187
 
2188
  def saveDiscounts(self, discounts):
2189
    """
2190
    Accepts a list of thrift objects of Discount type and saves them
2191
 
2192
    Parameters:
2193
     - discounts
2194
    """
2195
    self.send_saveDiscounts(discounts)
2196
    self.recv_saveDiscounts()
2197
 
2198
  def send_saveDiscounts(self, discounts):
2199
    self._oprot.writeMessageBegin('saveDiscounts', TMessageType.CALL, self._seqid)
2200
    args = saveDiscounts_args()
2201
    args.discounts = discounts
2202
    args.write(self._oprot)
2203
    self._oprot.writeMessageEnd()
2204
    self._oprot.trans.flush()
2205
 
2206
  def recv_saveDiscounts(self, ):
2207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2208
    if mtype == TMessageType.EXCEPTION:
2209
      x = TApplicationException()
2210
      x.read(self._iprot)
2211
      self._iprot.readMessageEnd()
2212
      raise x
2213
    result = saveDiscounts_result()
2214
    result.read(self._iprot)
2215
    self._iprot.readMessageEnd()
2216
    if result.scx is not None:
2217
      raise result.scx
2218
    return
2219
 
5326 rajveer 2220
  def createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
559 chandransh 2221
    """
690 chandransh 2222
    Creates a transaction and multiple orders for the given cart. Returns the transaction ID created.
3431 rajveer 2223
 
559 chandransh 2224
    Parameters:
2225
     - cartId
2815 vikas 2226
     - sessionSource
2227
     - sessionStartTime
3858 vikas 2228
     - firstSource
2229
     - firstSourceTime
5326 rajveer 2230
     - userId
559 chandransh 2231
    """
5326 rajveer 2232
    self.send_createOrders(cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId)
690 chandransh 2233
    return self.recv_createOrders()
559 chandransh 2234
 
5326 rajveer 2235
  def send_createOrders(self, cartId, sessionSource, sessionStartTime, firstSource, firstSourceTime, userId):
690 chandransh 2236
    self._oprot.writeMessageBegin('createOrders', TMessageType.CALL, self._seqid)
2237
    args = createOrders_args()
559 chandransh 2238
    args.cartId = cartId
2815 vikas 2239
    args.sessionSource = sessionSource
2240
    args.sessionStartTime = sessionStartTime
3858 vikas 2241
    args.firstSource = firstSource
2242
    args.firstSourceTime = firstSourceTime
5326 rajveer 2243
    args.userId = userId
559 chandransh 2244
    args.write(self._oprot)
2245
    self._oprot.writeMessageEnd()
2246
    self._oprot.trans.flush()
2247
 
690 chandransh 2248
  def recv_createOrders(self, ):
559 chandransh 2249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2250
    if mtype == TMessageType.EXCEPTION:
2251
      x = TApplicationException()
2252
      x.read(self._iprot)
2253
      self._iprot.readMessageEnd()
2254
      raise x
690 chandransh 2255
    result = createOrders_result()
559 chandransh 2256
    result.read(self._iprot)
2257
    self._iprot.readMessageEnd()
3431 rajveer 2258
    if result.success is not None:
130 ashish 2259
      return result.success
3431 rajveer 2260
    if result.scx is not None:
559 chandransh 2261
      raise result.scx
690 chandransh 2262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrders failed: unknown result");
130 ashish 2263
 
3557 rajveer 2264
  def validateCart(self, cartId, sourceId):
130 ashish 2265
    """
690 chandransh 2266
    Validates that:
2267
    1. The checkout timestamp is greater than the updatedOn timestamp.
1466 ankur.sing 2268
    2. All of the lines in the cart are active items.
690 chandransh 2269
    3. The estimate for any of the lines in cart doesn't change.
1466 ankur.sing 2270
    If all three are true, returns empty string; else returns appropriate message.
3431 rajveer 2271
 
130 ashish 2272
    Parameters:
559 chandransh 2273
     - cartId
3557 rajveer 2274
     - sourceId
130 ashish 2275
    """
3557 rajveer 2276
    self.send_validateCart(cartId, sourceId)
559 chandransh 2277
    return self.recv_validateCart()
130 ashish 2278
 
3557 rajveer 2279
  def send_validateCart(self, cartId, sourceId):
559 chandransh 2280
    self._oprot.writeMessageBegin('validateCart', TMessageType.CALL, self._seqid)
2281
    args = validateCart_args()
2282
    args.cartId = cartId
3557 rajveer 2283
    args.sourceId = sourceId
130 ashish 2284
    args.write(self._oprot)
2285
    self._oprot.writeMessageEnd()
2286
    self._oprot.trans.flush()
2287
 
559 chandransh 2288
  def recv_validateCart(self, ):
130 ashish 2289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2290
    if mtype == TMessageType.EXCEPTION:
2291
      x = TApplicationException()
2292
      x.read(self._iprot)
2293
      self._iprot.readMessageEnd()
2294
      raise x
559 chandransh 2295
    result = validateCart_result()
130 ashish 2296
    result.read(self._iprot)
2297
    self._iprot.readMessageEnd()
3431 rajveer 2298
    if result.success is not None:
130 ashish 2299
      return result.success
3431 rajveer 2300
    if result.scex is not None:
575 chandransh 2301
      raise result.scex
559 chandransh 2302
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCart failed: unknown result");
130 ashish 2303
 
690 chandransh 2304
  def mergeCart(self, fromCartId, toCartId):
575 chandransh 2305
    """
690 chandransh 2306
    Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
3431 rajveer 2307
 
575 chandransh 2308
    Parameters:
690 chandransh 2309
     - fromCartId
2310
     - toCartId
2311
    """
2312
    self.send_mergeCart(fromCartId, toCartId)
2313
    self.recv_mergeCart()
2314
 
2315
  def send_mergeCart(self, fromCartId, toCartId):
2316
    self._oprot.writeMessageBegin('mergeCart', TMessageType.CALL, self._seqid)
2317
    args = mergeCart_args()
2318
    args.fromCartId = fromCartId
2319
    args.toCartId = toCartId
2320
    args.write(self._oprot)
2321
    self._oprot.writeMessageEnd()
2322
    self._oprot.trans.flush()
2323
 
2324
  def recv_mergeCart(self, ):
2325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2326
    if mtype == TMessageType.EXCEPTION:
2327
      x = TApplicationException()
2328
      x.read(self._iprot)
2329
      self._iprot.readMessageEnd()
2330
      raise x
2331
    result = mergeCart_result()
2332
    result.read(self._iprot)
2333
    self._iprot.readMessageEnd()
2334
    return
2335
 
2336
  def checkOut(self, cartId):
2337
    """
2338
    Sets the checkedOutOn timestamp of the cart. Raises an exception if the specified cart can't be found.
3431 rajveer 2339
 
690 chandransh 2340
    Parameters:
575 chandransh 2341
     - cartId
2342
    """
690 chandransh 2343
    self.send_checkOut(cartId)
2344
    return self.recv_checkOut()
575 chandransh 2345
 
690 chandransh 2346
  def send_checkOut(self, cartId):
2347
    self._oprot.writeMessageBegin('checkOut', TMessageType.CALL, self._seqid)
2348
    args = checkOut_args()
575 chandransh 2349
    args.cartId = cartId
2350
    args.write(self._oprot)
2351
    self._oprot.writeMessageEnd()
2352
    self._oprot.trans.flush()
2353
 
690 chandransh 2354
  def recv_checkOut(self, ):
575 chandransh 2355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2356
    if mtype == TMessageType.EXCEPTION:
2357
      x = TApplicationException()
2358
      x.read(self._iprot)
2359
      self._iprot.readMessageEnd()
2360
      raise x
690 chandransh 2361
    result = checkOut_result()
575 chandransh 2362
    result.read(self._iprot)
2363
    self._iprot.readMessageEnd()
3431 rajveer 2364
    if result.success is not None:
575 chandransh 2365
      return result.success
3431 rajveer 2366
    if result.scex is not None:
575 chandransh 2367
      raise result.scex
690 chandransh 2368
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkOut failed: unknown result");
575 chandransh 2369
 
690 chandransh 2370
  def resetCart(self, cartId, items):
559 chandransh 2371
    """
690 chandransh 2372
    The second parameter is a map of item ids and their quantities which have been successfully processed.
2373
    This methods removes the specified quantiry of the specified item from the cart.
3431 rajveer 2374
 
559 chandransh 2375
    Parameters:
690 chandransh 2376
     - cartId
2377
     - items
559 chandransh 2378
    """
690 chandransh 2379
    self.send_resetCart(cartId, items)
2380
    return self.recv_resetCart()
130 ashish 2381
 
690 chandransh 2382
  def send_resetCart(self, cartId, items):
2383
    self._oprot.writeMessageBegin('resetCart', TMessageType.CALL, self._seqid)
2384
    args = resetCart_args()
2385
    args.cartId = cartId
2386
    args.items = items
559 chandransh 2387
    args.write(self._oprot)
2388
    self._oprot.writeMessageEnd()
2389
    self._oprot.trans.flush()
2390
 
690 chandransh 2391
  def recv_resetCart(self, ):
559 chandransh 2392
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2393
    if mtype == TMessageType.EXCEPTION:
2394
      x = TApplicationException()
2395
      x.read(self._iprot)
2396
      self._iprot.readMessageEnd()
2397
      raise x
690 chandransh 2398
    result = resetCart_result()
559 chandransh 2399
    result.read(self._iprot)
2400
    self._iprot.readMessageEnd()
3431 rajveer 2401
    if result.success is not None:
690 chandransh 2402
      return result.success
3431 rajveer 2403
    if result.scex is not None:
690 chandransh 2404
      raise result.scex
2405
    raise TApplicationException(TApplicationException.MISSING_RESULT, "resetCart failed: unknown result");
559 chandransh 2406
 
2981 rajveer 2407
  def getUserCount(self, userType):
559 chandransh 2408
    """
2981 rajveer 2409
    Returns number of registered users.
2410
    If userType = null, then it returns count of all users, including anonymous
2411
    If userType = UserType.ANONYMOUS, then it returns count of anonymous users only
2412
    If userType = UserType.USER, then it returns count of non-anonymous users only
3431 rajveer 2413
 
559 chandransh 2414
    Parameters:
2981 rajveer 2415
     - userType
559 chandransh 2416
    """
2981 rajveer 2417
    self.send_getUserCount(userType)
2418
    return self.recv_getUserCount()
559 chandransh 2419
 
2981 rajveer 2420
  def send_getUserCount(self, userType):
2421
    self._oprot.writeMessageBegin('getUserCount', TMessageType.CALL, self._seqid)
2422
    args = getUserCount_args()
2423
    args.userType = userType
559 chandransh 2424
    args.write(self._oprot)
2425
    self._oprot.writeMessageEnd()
2426
    self._oprot.trans.flush()
2427
 
2981 rajveer 2428
  def recv_getUserCount(self, ):
559 chandransh 2429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2430
    if mtype == TMessageType.EXCEPTION:
2431
      x = TApplicationException()
2432
      x.read(self._iprot)
2433
      self._iprot.readMessageEnd()
2434
      raise x
2981 rajveer 2435
    result = getUserCount_result()
559 chandransh 2436
    result.read(self._iprot)
2437
    self._iprot.readMessageEnd()
3431 rajveer 2438
    if result.success is not None:
559 chandransh 2439
      return result.success
2981 rajveer 2440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserCount failed: unknown result");
559 chandransh 2441
 
2981 rajveer 2442
  def getAllUsers(self, userType, startDate, endDate):
559 chandransh 2443
    """
2981 rajveer 2444
    Returns list of users of type userType who registered between startDate and endDate (both inclusive).
2445
    If any of startDate or endDate is -1, then that filter is ignored.
2446
    If userType is null, then returns all the users, irrespective of anonymous flag
3431 rajveer 2447
 
2448
 
559 chandransh 2449
    Parameters:
2981 rajveer 2450
     - userType
2451
     - startDate
2452
     - endDate
559 chandransh 2453
    """
2981 rajveer 2454
    self.send_getAllUsers(userType, startDate, endDate)
2455
    return self.recv_getAllUsers()
559 chandransh 2456
 
2981 rajveer 2457
  def send_getAllUsers(self, userType, startDate, endDate):
2458
    self._oprot.writeMessageBegin('getAllUsers', TMessageType.CALL, self._seqid)
2459
    args = getAllUsers_args()
2460
    args.userType = userType
2461
    args.startDate = startDate
2462
    args.endDate = endDate
559 chandransh 2463
    args.write(self._oprot)
2464
    self._oprot.writeMessageEnd()
2465
    self._oprot.trans.flush()
2466
 
2981 rajveer 2467
  def recv_getAllUsers(self, ):
559 chandransh 2468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2469
    if mtype == TMessageType.EXCEPTION:
2470
      x = TApplicationException()
2471
      x.read(self._iprot)
2472
      self._iprot.readMessageEnd()
2473
      raise x
2981 rajveer 2474
    result = getAllUsers_result()
559 chandransh 2475
    result.read(self._iprot)
2476
    self._iprot.readMessageEnd()
3431 rajveer 2477
    if result.success is not None:
559 chandransh 2478
      return result.success
2981 rajveer 2479
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUsers failed: unknown result");
559 chandransh 2480
 
2981 rajveer 2481
  def putUserNote(self, user_id, entity_id, slide, note):
559 chandransh 2482
    """
2483
    Parameters:
2981 rajveer 2484
     - user_id
2485
     - entity_id
2486
     - slide
2487
     - note
559 chandransh 2488
    """
2981 rajveer 2489
    self.send_putUserNote(user_id, entity_id, slide, note)
2490
    self.recv_putUserNote()
559 chandransh 2491
 
2981 rajveer 2492
  def send_putUserNote(self, user_id, entity_id, slide, note):
2493
    self._oprot.writeMessageBegin('putUserNote', TMessageType.CALL, self._seqid)
2494
    args = putUserNote_args()
2495
    args.user_id = user_id
2496
    args.entity_id = entity_id
2497
    args.slide = slide
2498
    args.note = note
559 chandransh 2499
    args.write(self._oprot)
2500
    self._oprot.writeMessageEnd()
2501
    self._oprot.trans.flush()
2502
 
2981 rajveer 2503
  def recv_putUserNote(self, ):
559 chandransh 2504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2505
    if mtype == TMessageType.EXCEPTION:
2506
      x = TApplicationException()
2507
      x.read(self._iprot)
2508
      self._iprot.readMessageEnd()
2509
      raise x
2981 rajveer 2510
    result = putUserNote_result()
559 chandransh 2511
    result.read(self._iprot)
2512
    self._iprot.readMessageEnd()
2513
    return
2514
 
2981 rajveer 2515
  def getUserNotes(self, user_id, entity_id):
559 chandransh 2516
    """
2517
    Parameters:
2981 rajveer 2518
     - user_id
2519
     - entity_id
559 chandransh 2520
    """
2981 rajveer 2521
    self.send_getUserNotes(user_id, entity_id)
2522
    return self.recv_getUserNotes()
559 chandransh 2523
 
2981 rajveer 2524
  def send_getUserNotes(self, user_id, entity_id):
2525
    self._oprot.writeMessageBegin('getUserNotes', TMessageType.CALL, self._seqid)
2526
    args = getUserNotes_args()
2527
    args.user_id = user_id
2528
    args.entity_id = entity_id
559 chandransh 2529
    args.write(self._oprot)
2530
    self._oprot.writeMessageEnd()
2531
    self._oprot.trans.flush()
2532
 
2981 rajveer 2533
  def recv_getUserNotes(self, ):
559 chandransh 2534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2535
    if mtype == TMessageType.EXCEPTION:
2536
      x = TApplicationException()
2537
      x.read(self._iprot)
2538
      self._iprot.readMessageEnd()
2539
      raise x
2981 rajveer 2540
    result = getUserNotes_result()
559 chandransh 2541
    result.read(self._iprot)
2542
    self._iprot.readMessageEnd()
3431 rajveer 2543
    if result.success is not None:
2981 rajveer 2544
      return result.success
2545
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserNotes failed: unknown result");
559 chandransh 2546
 
2981 rajveer 2547
  def getMyResearchItems(self, userId):
559 chandransh 2548
    """
2981 rajveer 2549
    Returns list of item ids in myresearch for the user
3431 rajveer 2550
 
559 chandransh 2551
    Parameters:
772 rajveer 2552
     - userId
559 chandransh 2553
    """
2981 rajveer 2554
    self.send_getMyResearchItems(userId)
2555
    return self.recv_getMyResearchItems()
559 chandransh 2556
 
2981 rajveer 2557
  def send_getMyResearchItems(self, userId):
2558
    self._oprot.writeMessageBegin('getMyResearchItems', TMessageType.CALL, self._seqid)
2559
    args = getMyResearchItems_args()
772 rajveer 2560
    args.userId = userId
559 chandransh 2561
    args.write(self._oprot)
2562
    self._oprot.writeMessageEnd()
2563
    self._oprot.trans.flush()
2564
 
2981 rajveer 2565
  def recv_getMyResearchItems(self, ):
559 chandransh 2566
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2567
    if mtype == TMessageType.EXCEPTION:
2568
      x = TApplicationException()
2569
      x.read(self._iprot)
2570
      self._iprot.readMessageEnd()
2571
      raise x
2981 rajveer 2572
    result = getMyResearchItems_result()
559 chandransh 2573
    result.read(self._iprot)
2574
    self._iprot.readMessageEnd()
3431 rajveer 2575
    if result.success is not None:
559 chandransh 2576
      return result.success
3431 rajveer 2577
    if result.scx is not None:
559 chandransh 2578
      raise result.scx
2981 rajveer 2579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMyResearchItems failed: unknown result");
559 chandransh 2580
 
2981 rajveer 2581
  def updateMyResearch(self, userId, itemId):
559 chandransh 2582
    """
2981 rajveer 2583
    add item to my research for a user
3431 rajveer 2584
 
559 chandransh 2585
    Parameters:
2981 rajveer 2586
     - userId
2587
     - itemId
559 chandransh 2588
    """
2981 rajveer 2589
    self.send_updateMyResearch(userId, itemId)
2590
    return self.recv_updateMyResearch()
559 chandransh 2591
 
2981 rajveer 2592
  def send_updateMyResearch(self, userId, itemId):
2593
    self._oprot.writeMessageBegin('updateMyResearch', TMessageType.CALL, self._seqid)
2594
    args = updateMyResearch_args()
2595
    args.userId = userId
2596
    args.itemId = itemId
559 chandransh 2597
    args.write(self._oprot)
2598
    self._oprot.writeMessageEnd()
2599
    self._oprot.trans.flush()
2600
 
2981 rajveer 2601
  def recv_updateMyResearch(self, ):
559 chandransh 2602
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2603
    if mtype == TMessageType.EXCEPTION:
2604
      x = TApplicationException()
2605
      x.read(self._iprot)
2606
      self._iprot.readMessageEnd()
2607
      raise x
2981 rajveer 2608
    result = updateMyResearch_result()
559 chandransh 2609
    result.read(self._iprot)
2610
    self._iprot.readMessageEnd()
3431 rajveer 2611
    if result.success is not None:
2981 rajveer 2612
      return result.success
3431 rajveer 2613
    if result.scx is not None:
2981 rajveer 2614
      raise result.scx
2615
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMyResearch failed: unknown result");
559 chandransh 2616
 
2981 rajveer 2617
  def deleteItemFromMyResearch(self, userId, itemId):
1596 ankur.sing 2618
    """
2981 rajveer 2619
    delete item from my research for a user
3431 rajveer 2620
 
1596 ankur.sing 2621
    Parameters:
2981 rajveer 2622
     - userId
2623
     - itemId
1596 ankur.sing 2624
    """
2981 rajveer 2625
    self.send_deleteItemFromMyResearch(userId, itemId)
2626
    self.recv_deleteItemFromMyResearch()
559 chandransh 2627
 
2981 rajveer 2628
  def send_deleteItemFromMyResearch(self, userId, itemId):
2629
    self._oprot.writeMessageBegin('deleteItemFromMyResearch', TMessageType.CALL, self._seqid)
2630
    args = deleteItemFromMyResearch_args()
2631
    args.userId = userId
2632
    args.itemId = itemId
1596 ankur.sing 2633
    args.write(self._oprot)
2634
    self._oprot.writeMessageEnd()
2635
    self._oprot.trans.flush()
2636
 
2981 rajveer 2637
  def recv_deleteItemFromMyResearch(self, ):
1596 ankur.sing 2638
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2639
    if mtype == TMessageType.EXCEPTION:
2640
      x = TApplicationException()
2641
      x.read(self._iprot)
2642
      self._iprot.readMessageEnd()
2643
      raise x
2981 rajveer 2644
    result = deleteItemFromMyResearch_result()
1596 ankur.sing 2645
    result.read(self._iprot)
2646
    self._iprot.readMessageEnd()
3431 rajveer 2647
    if result.scx is not None:
2981 rajveer 2648
      raise result.scx
2649
    return
1596 ankur.sing 2650
 
2981 rajveer 2651
  def getBrowseHistoryItems(self, userId):
1673 ankur.sing 2652
    """
2981 rajveer 2653
    Returns list of item ids in browse history for the user. It will return maximum 10 items.
3431 rajveer 2654
 
1673 ankur.sing 2655
    Parameters:
2981 rajveer 2656
     - userId
1673 ankur.sing 2657
    """
2981 rajveer 2658
    self.send_getBrowseHistoryItems(userId)
2659
    return self.recv_getBrowseHistoryItems()
1596 ankur.sing 2660
 
2981 rajveer 2661
  def send_getBrowseHistoryItems(self, userId):
2662
    self._oprot.writeMessageBegin('getBrowseHistoryItems', TMessageType.CALL, self._seqid)
2663
    args = getBrowseHistoryItems_args()
2664
    args.userId = userId
1673 ankur.sing 2665
    args.write(self._oprot)
2666
    self._oprot.writeMessageEnd()
2667
    self._oprot.trans.flush()
2668
 
2981 rajveer 2669
  def recv_getBrowseHistoryItems(self, ):
1673 ankur.sing 2670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2671
    if mtype == TMessageType.EXCEPTION:
2672
      x = TApplicationException()
2673
      x.read(self._iprot)
2674
      self._iprot.readMessageEnd()
2675
      raise x
2981 rajveer 2676
    result = getBrowseHistoryItems_result()
1673 ankur.sing 2677
    result.read(self._iprot)
2678
    self._iprot.readMessageEnd()
3431 rajveer 2679
    if result.success is not None:
1673 ankur.sing 2680
      return result.success
3431 rajveer 2681
    if result.scx is not None:
2981 rajveer 2682
      raise result.scx
2683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrowseHistoryItems failed: unknown result");
1673 ankur.sing 2684
 
2981 rajveer 2685
  def updateBrowseHistory(self, userId, itemId):
2642 varun.gupt 2686
    """
2981 rajveer 2687
    add item to browse history for a user
3431 rajveer 2688
 
2642 varun.gupt 2689
    Parameters:
2981 rajveer 2690
     - userId
2691
     - itemId
2642 varun.gupt 2692
    """
2981 rajveer 2693
    self.send_updateBrowseHistory(userId, itemId)
2694
    self.recv_updateBrowseHistory()
1673 ankur.sing 2695
 
2981 rajveer 2696
  def send_updateBrowseHistory(self, userId, itemId):
2697
    self._oprot.writeMessageBegin('updateBrowseHistory', TMessageType.CALL, self._seqid)
2698
    args = updateBrowseHistory_args()
2699
    args.userId = userId
2700
    args.itemId = itemId
2642 varun.gupt 2701
    args.write(self._oprot)
2702
    self._oprot.writeMessageEnd()
2703
    self._oprot.trans.flush()
2704
 
2981 rajveer 2705
  def recv_updateBrowseHistory(self, ):
2642 varun.gupt 2706
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2707
    if mtype == TMessageType.EXCEPTION:
2708
      x = TApplicationException()
2709
      x.read(self._iprot)
2710
      self._iprot.readMessageEnd()
2711
      raise x
2981 rajveer 2712
    result = updateBrowseHistory_result()
2642 varun.gupt 2713
    result.read(self._iprot)
2714
    self._iprot.readMessageEnd()
2715
    return
2716
 
3385 varun.gupt 2717
  def getCartsWithCouponCount(self, couponCode):
2718
    """
2719
    Returns count of Carts with given coupon applied
3431 rajveer 2720
 
3385 varun.gupt 2721
    Parameters:
2722
     - couponCode
2723
    """
2724
    self.send_getCartsWithCouponCount(couponCode)
2725
    return self.recv_getCartsWithCouponCount()
2642 varun.gupt 2726
 
3385 varun.gupt 2727
  def send_getCartsWithCouponCount(self, couponCode):
2728
    self._oprot.writeMessageBegin('getCartsWithCouponCount', TMessageType.CALL, self._seqid)
2729
    args = getCartsWithCouponCount_args()
2730
    args.couponCode = couponCode
2731
    args.write(self._oprot)
2732
    self._oprot.writeMessageEnd()
2733
    self._oprot.trans.flush()
2734
 
2735
  def recv_getCartsWithCouponCount(self, ):
2736
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2737
    if mtype == TMessageType.EXCEPTION:
2738
      x = TApplicationException()
2739
      x.read(self._iprot)
2740
      self._iprot.readMessageEnd()
2741
      raise x
2742
    result = getCartsWithCouponCount_result()
2743
    result.read(self._iprot)
2744
    self._iprot.readMessageEnd()
3431 rajveer 2745
    if result.success is not None:
3385 varun.gupt 2746
      return result.success
2747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCartsWithCouponCount failed: unknown result");
2748
 
3499 mandeep.dh 2749
  def increaseTrustLevel(self, userId, trustLevelDelta):
2750
    """
2751
    Updates COD trust level of a user
3385 varun.gupt 2752
 
3499 mandeep.dh 2753
    Parameters:
2754
     - userId
2755
     - trustLevelDelta
2756
    """
2757
    self.send_increaseTrustLevel(userId, trustLevelDelta)
2758
 
2759
  def send_increaseTrustLevel(self, userId, trustLevelDelta):
2760
    self._oprot.writeMessageBegin('increaseTrustLevel', TMessageType.CALL, self._seqid)
2761
    args = increaseTrustLevel_args()
2762
    args.userId = userId
2763
    args.trustLevelDelta = trustLevelDelta
2764
    args.write(self._oprot)
2765
    self._oprot.writeMessageEnd()
2766
    self._oprot.trans.flush()
4668 varun.gupt 2767
  def showCODOption(self, cartId, sourceId, pincode):
2768
    """
2769
    Returns true/false depending on wether COD is allowed for a cart or not
3499 mandeep.dh 2770
 
4668 varun.gupt 2771
    Parameters:
2772
     - cartId
2773
     - sourceId
2774
     - pincode
2775
    """
2776
    self.send_showCODOption(cartId, sourceId, pincode)
2777
    return self.recv_showCODOption()
2778
 
2779
  def send_showCODOption(self, cartId, sourceId, pincode):
2780
    self._oprot.writeMessageBegin('showCODOption', TMessageType.CALL, self._seqid)
2781
    args = showCODOption_args()
2782
    args.cartId = cartId
2783
    args.sourceId = sourceId
2784
    args.pincode = pincode
2785
    args.write(self._oprot)
2786
    self._oprot.writeMessageEnd()
2787
    self._oprot.trans.flush()
2788
 
2789
  def recv_showCODOption(self, ):
2790
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2791
    if mtype == TMessageType.EXCEPTION:
2792
      x = TApplicationException()
2793
      x.read(self._iprot)
2794
      self._iprot.readMessageEnd()
2795
      raise x
2796
    result = showCODOption_result()
2797
    result.read(self._iprot)
2798
    self._iprot.readMessageEnd()
2799
    if result.success is not None:
2800
      return result.success
2801
    raise TApplicationException(TApplicationException.MISSING_RESULT, "showCODOption failed: unknown result");
2802
 
2803
 
3376 rajveer 2804
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 2805
  def __init__(self, handler):
3376 rajveer 2806
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
559 chandransh 2807
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
2808
    self._processMap["getUserById"] = Processor.process_getUserById
5326 rajveer 2809
    self._processMap["getUserByCartId"] = Processor.process_getUserByCartId
1491 vikas 2810
    self._processMap["getUserByEmail"] = Processor.process_getUserByEmail
3032 mandeep.dh 2811
    self._processMap["getUserByMobileNumber"] = Processor.process_getUserByMobileNumber
559 chandransh 2812
    self._processMap["createUser"] = Processor.process_createUser
2813
    self._processMap["updateUser"] = Processor.process_updateUser
122 ashish 2814
    self._processMap["authenticateUser"] = Processor.process_authenticateUser
94 ashish 2815
    self._processMap["userExists"] = Processor.process_userExists
2816
    self._processMap["addAddressForUser"] = Processor.process_addAddressForUser
2817
    self._processMap["removeAddressForUser"] = Processor.process_removeAddressForUser
2818
    self._processMap["setUserAsLoggedIn"] = Processor.process_setUserAsLoggedIn
2819
    self._processMap["setUserAsLoggedOut"] = Processor.process_setUserAsLoggedOut
504 rajveer 2820
    self._processMap["setDefaultAddress"] = Processor.process_setDefaultAddress
94 ashish 2821
    self._processMap["updatePassword"] = Processor.process_updatePassword
581 rajveer 2822
    self._processMap["forgotPassword"] = Processor.process_forgotPassword
594 rajveer 2823
    self._processMap["getAllAddressesForUser"] = Processor.process_getAllAddressesForUser
1894 vikas 2824
    self._processMap["getAddressById"] = Processor.process_getAddressById
594 rajveer 2825
    self._processMap["getDefaultAddressId"] = Processor.process_getDefaultAddressId
785 rajveer 2826
    self._processMap["getDefaultPincode"] = Processor.process_getDefaultPincode
1274 varun.gupt 2827
    self._processMap["saveUserCommunication"] = Processor.process_saveUserCommunication
1590 varun.gupt 2828
    self._processMap["getUserCommunicationById"] = Processor.process_getUserCommunicationById
2829
    self._processMap["getUserCommunicationByUser"] = Processor.process_getUserCommunicationByUser
2830
    self._processMap["getAllUserCommunications"] = Processor.process_getAllUserCommunications
1845 vikas 2831
    self._processMap["createMasterAffiliate"] = Processor.process_createMasterAffiliate
1899 vikas 2832
    self._processMap["getAllMasterAffiliates"] = Processor.process_getAllMasterAffiliates
1845 vikas 2833
    self._processMap["getMasterAffiliateById"] = Processor.process_getMasterAffiliateById
2834
    self._processMap["getMasterAffiliateByName"] = Processor.process_getMasterAffiliateByName
2835
    self._processMap["createAffiliate"] = Processor.process_createAffiliate
2836
    self._processMap["getAffiliateById"] = Processor.process_getAffiliateById
2837
    self._processMap["getAffiliateByName"] = Processor.process_getAffiliateByName
1996 vikas 2838
    self._processMap["getTrackerById"] = Processor.process_getTrackerById
1845 vikas 2839
    self._processMap["getAffiliatesByMasterAffiliate"] = Processor.process_getAffiliatesByMasterAffiliate
2840
    self._processMap["addTrackLog"] = Processor.process_addTrackLog
2841
    self._processMap["getTrackLogById"] = Processor.process_getTrackLogById
1996 vikas 2842
    self._processMap["getTrackLogsByAffiliate"] = Processor.process_getTrackLogsByAffiliate
1845 vikas 2843
    self._processMap["getTrackLogsByUser"] = Processor.process_getTrackLogsByUser
2844
    self._processMap["getTrackLogs"] = Processor.process_getTrackLogs
559 chandransh 2845
    self._processMap["createCart"] = Processor.process_createCart
2846
    self._processMap["getCurrentCart"] = Processor.process_getCurrentCart
2847
    self._processMap["getCart"] = Processor.process_getCart
2848
    self._processMap["getCartsByTime"] = Processor.process_getCartsByTime
2849
    self._processMap["addItemToCart"] = Processor.process_addItemToCart
2850
    self._processMap["deleteItemFromCart"] = Processor.process_deleteItemFromCart
2851
    self._processMap["addAddressToCart"] = Processor.process_addAddressToCart
1976 varun.gupt 2852
    self._processMap["applyCouponToCart"] = Processor.process_applyCouponToCart
2853
    self._processMap["removeCoupon"] = Processor.process_removeCoupon
3554 varun.gupt 2854
    self._processMap["deleteDiscountsFromCart"] = Processor.process_deleteDiscountsFromCart
2855
    self._processMap["saveDiscounts"] = Processor.process_saveDiscounts
690 chandransh 2856
    self._processMap["createOrders"] = Processor.process_createOrders
559 chandransh 2857
    self._processMap["validateCart"] = Processor.process_validateCart
2858
    self._processMap["mergeCart"] = Processor.process_mergeCart
690 chandransh 2859
    self._processMap["checkOut"] = Processor.process_checkOut
2860
    self._processMap["resetCart"] = Processor.process_resetCart
1596 ankur.sing 2861
    self._processMap["getUserCount"] = Processor.process_getUserCount
1673 ankur.sing 2862
    self._processMap["getAllUsers"] = Processor.process_getAllUsers
2642 varun.gupt 2863
    self._processMap["putUserNote"] = Processor.process_putUserNote
2864
    self._processMap["getUserNotes"] = Processor.process_getUserNotes
2981 rajveer 2865
    self._processMap["getMyResearchItems"] = Processor.process_getMyResearchItems
2866
    self._processMap["updateMyResearch"] = Processor.process_updateMyResearch
2867
    self._processMap["deleteItemFromMyResearch"] = Processor.process_deleteItemFromMyResearch
2868
    self._processMap["getBrowseHistoryItems"] = Processor.process_getBrowseHistoryItems
2869
    self._processMap["updateBrowseHistory"] = Processor.process_updateBrowseHistory
3385 varun.gupt 2870
    self._processMap["getCartsWithCouponCount"] = Processor.process_getCartsWithCouponCount
3499 mandeep.dh 2871
    self._processMap["increaseTrustLevel"] = Processor.process_increaseTrustLevel
4668 varun.gupt 2872
    self._processMap["showCODOption"] = Processor.process_showCODOption
94 ashish 2873
 
2874
  def process(self, iprot, oprot):
2875
    (name, type, seqid) = iprot.readMessageBegin()
2876
    if name not in self._processMap:
2877
      iprot.skip(TType.STRUCT)
2878
      iprot.readMessageEnd()
2879
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2880
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2881
      x.write(oprot)
2882
      oprot.writeMessageEnd()
2883
      oprot.trans.flush()
2884
      return
2885
    else:
2886
      self._processMap[name](self, seqid, iprot, oprot)
2887
    return True
2888
 
559 chandransh 2889
  def process_createAnonymousUser(self, seqid, iprot, oprot):
2890
    args = createAnonymousUser_args()
94 ashish 2891
    args.read(iprot)
2892
    iprot.readMessageEnd()
559 chandransh 2893
    result = createAnonymousUser_result()
94 ashish 2894
    try:
559 chandransh 2895
      result.success = self._handler.createAnonymousUser(args.jsessionId)
2896
    except UserContextException, ucex:
2897
      result.ucex = ucex
2898
    oprot.writeMessageBegin("createAnonymousUser", TMessageType.REPLY, seqid)
94 ashish 2899
    result.write(oprot)
2900
    oprot.writeMessageEnd()
2901
    oprot.trans.flush()
2902
 
559 chandransh 2903
  def process_getUserById(self, seqid, iprot, oprot):
2904
    args = getUserById_args()
94 ashish 2905
    args.read(iprot)
2906
    iprot.readMessageEnd()
559 chandransh 2907
    result = getUserById_result()
94 ashish 2908
    try:
559 chandransh 2909
      result.success = self._handler.getUserById(args.userId)
2910
    except UserContextException, ucex:
2911
      result.ucex = ucex
2912
    oprot.writeMessageBegin("getUserById", TMessageType.REPLY, seqid)
94 ashish 2913
    result.write(oprot)
2914
    oprot.writeMessageEnd()
2915
    oprot.trans.flush()
2916
 
5326 rajveer 2917
  def process_getUserByCartId(self, seqid, iprot, oprot):
2918
    args = getUserByCartId_args()
2919
    args.read(iprot)
2920
    iprot.readMessageEnd()
2921
    result = getUserByCartId_result()
2922
    try:
2923
      result.success = self._handler.getUserByCartId(args.cartId)
2924
    except UserContextException, ucex:
2925
      result.ucex = ucex
2926
    oprot.writeMessageBegin("getUserByCartId", TMessageType.REPLY, seqid)
2927
    result.write(oprot)
2928
    oprot.writeMessageEnd()
2929
    oprot.trans.flush()
2930
 
1491 vikas 2931
  def process_getUserByEmail(self, seqid, iprot, oprot):
2932
    args = getUserByEmail_args()
2933
    args.read(iprot)
2934
    iprot.readMessageEnd()
2935
    result = getUserByEmail_result()
2936
    try:
2937
      result.success = self._handler.getUserByEmail(args.email)
2938
    except UserContextException, ucex:
2939
      result.ucex = ucex
2940
    oprot.writeMessageBegin("getUserByEmail", TMessageType.REPLY, seqid)
2941
    result.write(oprot)
2942
    oprot.writeMessageEnd()
2943
    oprot.trans.flush()
2944
 
3032 mandeep.dh 2945
  def process_getUserByMobileNumber(self, seqid, iprot, oprot):
2946
    args = getUserByMobileNumber_args()
2947
    args.read(iprot)
2948
    iprot.readMessageEnd()
2949
    result = getUserByMobileNumber_result()
2950
    try:
2951
      result.success = self._handler.getUserByMobileNumber(args.mobileNumber)
2952
    except UserContextException, ucex:
2953
      result.ucex = ucex
2954
    oprot.writeMessageBegin("getUserByMobileNumber", TMessageType.REPLY, seqid)
2955
    result.write(oprot)
2956
    oprot.writeMessageEnd()
2957
    oprot.trans.flush()
2958
 
559 chandransh 2959
  def process_createUser(self, seqid, iprot, oprot):
2960
    args = createUser_args()
94 ashish 2961
    args.read(iprot)
2962
    iprot.readMessageEnd()
559 chandransh 2963
    result = createUser_result()
94 ashish 2964
    try:
559 chandransh 2965
      result.success = self._handler.createUser(args.user)
2966
    except UserContextException, ucex:
2967
      result.ucex = ucex
2968
    oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
94 ashish 2969
    result.write(oprot)
2970
    oprot.writeMessageEnd()
2971
    oprot.trans.flush()
2972
 
559 chandransh 2973
  def process_updateUser(self, seqid, iprot, oprot):
2974
    args = updateUser_args()
94 ashish 2975
    args.read(iprot)
2976
    iprot.readMessageEnd()
559 chandransh 2977
    result = updateUser_result()
94 ashish 2978
    try:
559 chandransh 2979
      result.success = self._handler.updateUser(args.user)
2980
    except UserContextException, ucex:
2981
      result.ucex = ucex
2982
    oprot.writeMessageBegin("updateUser", TMessageType.REPLY, seqid)
94 ashish 2983
    result.write(oprot)
2984
    oprot.writeMessageEnd()
2985
    oprot.trans.flush()
2986
 
122 ashish 2987
  def process_authenticateUser(self, seqid, iprot, oprot):
2988
    args = authenticateUser_args()
2989
    args.read(iprot)
2990
    iprot.readMessageEnd()
2991
    result = authenticateUser_result()
2992
    try:
559 chandransh 2993
      result.success = self._handler.authenticateUser(args.email, args.password)
2994
    except AuthenticationException, auex:
2995
      result.auex = auex
122 ashish 2996
    oprot.writeMessageBegin("authenticateUser", TMessageType.REPLY, seqid)
2997
    result.write(oprot)
2998
    oprot.writeMessageEnd()
2999
    oprot.trans.flush()
3000
 
94 ashish 3001
  def process_userExists(self, seqid, iprot, oprot):
3002
    args = userExists_args()
3003
    args.read(iprot)
3004
    iprot.readMessageEnd()
3005
    result = userExists_result()
3006
    try:
3007
      result.success = self._handler.userExists(args.email)
3008
    except UserContextException, ucx:
3009
      result.ucx = ucx
3010
    oprot.writeMessageBegin("userExists", TMessageType.REPLY, seqid)
3011
    result.write(oprot)
3012
    oprot.writeMessageEnd()
3013
    oprot.trans.flush()
3014
 
3015
  def process_addAddressForUser(self, seqid, iprot, oprot):
3016
    args = addAddressForUser_args()
3017
    args.read(iprot)
3018
    iprot.readMessageEnd()
3019
    result = addAddressForUser_result()
3020
    try:
567 rajveer 3021
      result.success = self._handler.addAddressForUser(args.userId, args.address, args.setDefault)
94 ashish 3022
    except UserContextException, ucx:
3023
      result.ucx = ucx
3024
    oprot.writeMessageBegin("addAddressForUser", TMessageType.REPLY, seqid)
3025
    result.write(oprot)
3026
    oprot.writeMessageEnd()
3027
    oprot.trans.flush()
3028
 
3029
  def process_removeAddressForUser(self, seqid, iprot, oprot):
3030
    args = removeAddressForUser_args()
3031
    args.read(iprot)
3032
    iprot.readMessageEnd()
3033
    result = removeAddressForUser_result()
3034
    try:
3035
      result.success = self._handler.removeAddressForUser(args.userid, args.addressId)
3036
    except UserContextException, ucx:
3037
      result.ucx = ucx
3038
    oprot.writeMessageBegin("removeAddressForUser", TMessageType.REPLY, seqid)
3039
    result.write(oprot)
3040
    oprot.writeMessageEnd()
3041
    oprot.trans.flush()
3042
 
3043
  def process_setUserAsLoggedIn(self, seqid, iprot, oprot):
3044
    args = setUserAsLoggedIn_args()
3045
    args.read(iprot)
3046
    iprot.readMessageEnd()
3047
    result = setUserAsLoggedIn_result()
3048
    try:
3049
      result.success = self._handler.setUserAsLoggedIn(args.userId, args.timestamp)
3050
    except UserContextException, ucx:
3051
      result.ucx = ucx
3052
    oprot.writeMessageBegin("setUserAsLoggedIn", TMessageType.REPLY, seqid)
3053
    result.write(oprot)
3054
    oprot.writeMessageEnd()
3055
    oprot.trans.flush()
3056
 
3057
  def process_setUserAsLoggedOut(self, seqid, iprot, oprot):
3058
    args = setUserAsLoggedOut_args()
3059
    args.read(iprot)
3060
    iprot.readMessageEnd()
3061
    result = setUserAsLoggedOut_result()
3062
    try:
3063
      result.success = self._handler.setUserAsLoggedOut(args.userid, args.timestamp)
3064
    except UserContextException, ucx:
3065
      result.ucx = ucx
3066
    oprot.writeMessageBegin("setUserAsLoggedOut", TMessageType.REPLY, seqid)
3067
    result.write(oprot)
3068
    oprot.writeMessageEnd()
3069
    oprot.trans.flush()
3070
 
504 rajveer 3071
  def process_setDefaultAddress(self, seqid, iprot, oprot):
3072
    args = setDefaultAddress_args()
3073
    args.read(iprot)
3074
    iprot.readMessageEnd()
3075
    result = setDefaultAddress_result()
3076
    try:
3077
      result.success = self._handler.setDefaultAddress(args.userid, args.addressId)
3078
    except UserContextException, ucx:
3079
      result.ucx = ucx
3080
    oprot.writeMessageBegin("setDefaultAddress", TMessageType.REPLY, seqid)
3081
    result.write(oprot)
3082
    oprot.writeMessageEnd()
3083
    oprot.trans.flush()
3084
 
94 ashish 3085
  def process_updatePassword(self, seqid, iprot, oprot):
3086
    args = updatePassword_args()
3087
    args.read(iprot)
3088
    iprot.readMessageEnd()
3089
    result = updatePassword_result()
3090
    try:
594 rajveer 3091
      result.success = self._handler.updatePassword(args.userid, args.oldPassword, args.newPassword)
94 ashish 3092
    except UserContextException, ucx:
3093
      result.ucx = ucx
3094
    oprot.writeMessageBegin("updatePassword", TMessageType.REPLY, seqid)
3095
    result.write(oprot)
3096
    oprot.writeMessageEnd()
3097
    oprot.trans.flush()
3098
 
581 rajveer 3099
  def process_forgotPassword(self, seqid, iprot, oprot):
3100
    args = forgotPassword_args()
3101
    args.read(iprot)
3102
    iprot.readMessageEnd()
3103
    result = forgotPassword_result()
3104
    try:
884 rajveer 3105
      result.success = self._handler.forgotPassword(args.email, args.newPassword)
581 rajveer 3106
    except UserContextException, ucx:
3107
      result.ucx = ucx
3108
    oprot.writeMessageBegin("forgotPassword", TMessageType.REPLY, seqid)
3109
    result.write(oprot)
3110
    oprot.writeMessageEnd()
3111
    oprot.trans.flush()
3112
 
594 rajveer 3113
  def process_getAllAddressesForUser(self, seqid, iprot, oprot):
3114
    args = getAllAddressesForUser_args()
3115
    args.read(iprot)
3116
    iprot.readMessageEnd()
3117
    result = getAllAddressesForUser_result()
3118
    try:
3119
      result.success = self._handler.getAllAddressesForUser(args.userId)
3120
    except UserContextException, ucx:
3121
      result.ucx = ucx
3122
    oprot.writeMessageBegin("getAllAddressesForUser", TMessageType.REPLY, seqid)
3123
    result.write(oprot)
3124
    oprot.writeMessageEnd()
3125
    oprot.trans.flush()
3126
 
1894 vikas 3127
  def process_getAddressById(self, seqid, iprot, oprot):
3128
    args = getAddressById_args()
3129
    args.read(iprot)
3130
    iprot.readMessageEnd()
3131
    result = getAddressById_result()
3132
    try:
3133
      result.success = self._handler.getAddressById(args.addressId)
3134
    except UserContextException, ucx:
3135
      result.ucx = ucx
3136
    oprot.writeMessageBegin("getAddressById", TMessageType.REPLY, seqid)
3137
    result.write(oprot)
3138
    oprot.writeMessageEnd()
3139
    oprot.trans.flush()
3140
 
594 rajveer 3141
  def process_getDefaultAddressId(self, seqid, iprot, oprot):
3142
    args = getDefaultAddressId_args()
3143
    args.read(iprot)
3144
    iprot.readMessageEnd()
3145
    result = getDefaultAddressId_result()
3146
    try:
3147
      result.success = self._handler.getDefaultAddressId(args.userId)
3148
    except UserContextException, ucx:
3149
      result.ucx = ucx
3150
    oprot.writeMessageBegin("getDefaultAddressId", TMessageType.REPLY, seqid)
3151
    result.write(oprot)
3152
    oprot.writeMessageEnd()
3153
    oprot.trans.flush()
3154
 
785 rajveer 3155
  def process_getDefaultPincode(self, seqid, iprot, oprot):
3156
    args = getDefaultPincode_args()
3157
    args.read(iprot)
3158
    iprot.readMessageEnd()
3159
    result = getDefaultPincode_result()
3160
    try:
3161
      result.success = self._handler.getDefaultPincode(args.userId)
3162
    except UserContextException, ucx:
3163
      result.ucx = ucx
3164
    oprot.writeMessageBegin("getDefaultPincode", TMessageType.REPLY, seqid)
3165
    result.write(oprot)
3166
    oprot.writeMessageEnd()
3167
    oprot.trans.flush()
3168
 
1274 varun.gupt 3169
  def process_saveUserCommunication(self, seqid, iprot, oprot):
3170
    args = saveUserCommunication_args()
3171
    args.read(iprot)
3172
    iprot.readMessageEnd()
3173
    result = saveUserCommunication_result()
3174
    try:
3175
      result.success = self._handler.saveUserCommunication(args.userId, args.replyTo, args.communicationType, args.orderId, args.airwaybillNo, args.productName, args.subject, args.message)
3176
    except UserCommunicationException, ucx:
3177
      result.ucx = ucx
3178
    oprot.writeMessageBegin("saveUserCommunication", TMessageType.REPLY, seqid)
3179
    result.write(oprot)
3180
    oprot.writeMessageEnd()
3181
    oprot.trans.flush()
3182
 
1590 varun.gupt 3183
  def process_getUserCommunicationById(self, seqid, iprot, oprot):
3184
    args = getUserCommunicationById_args()
3185
    args.read(iprot)
3186
    iprot.readMessageEnd()
3187
    result = getUserCommunicationById_result()
3188
    try:
3189
      result.success = self._handler.getUserCommunicationById(args.id)
3190
    except UserCommunicationException, ucx:
3191
      result.ucx = ucx
3192
    oprot.writeMessageBegin("getUserCommunicationById", TMessageType.REPLY, seqid)
3193
    result.write(oprot)
3194
    oprot.writeMessageEnd()
3195
    oprot.trans.flush()
3196
 
3197
  def process_getUserCommunicationByUser(self, seqid, iprot, oprot):
3198
    args = getUserCommunicationByUser_args()
3199
    args.read(iprot)
3200
    iprot.readMessageEnd()
3201
    result = getUserCommunicationByUser_result()
3202
    try:
3203
      result.success = self._handler.getUserCommunicationByUser(args.userId)
3204
    except UserCommunicationException, ucx:
3205
      result.ucx = ucx
3206
    oprot.writeMessageBegin("getUserCommunicationByUser", TMessageType.REPLY, seqid)
3207
    result.write(oprot)
3208
    oprot.writeMessageEnd()
3209
    oprot.trans.flush()
3210
 
3211
  def process_getAllUserCommunications(self, seqid, iprot, oprot):
3212
    args = getAllUserCommunications_args()
3213
    args.read(iprot)
3214
    iprot.readMessageEnd()
3215
    result = getAllUserCommunications_result()
3216
    try:
3217
      result.success = self._handler.getAllUserCommunications()
3218
    except UserCommunicationException, ucx:
3219
      result.ucx = ucx
3220
    oprot.writeMessageBegin("getAllUserCommunications", TMessageType.REPLY, seqid)
3221
    result.write(oprot)
3222
    oprot.writeMessageEnd()
3223
    oprot.trans.flush()
3224
 
1845 vikas 3225
  def process_createMasterAffiliate(self, seqid, iprot, oprot):
3226
    args = createMasterAffiliate_args()
3227
    args.read(iprot)
3228
    iprot.readMessageEnd()
3229
    result = createMasterAffiliate_result()
3230
    try:
1859 vikas 3231
      result.success = self._handler.createMasterAffiliate(args.name, args.addedOn)
1996 vikas 3232
    except UserAffiliateException, utx:
1845 vikas 3233
      result.utx = utx
3234
    oprot.writeMessageBegin("createMasterAffiliate", TMessageType.REPLY, seqid)
3235
    result.write(oprot)
3236
    oprot.writeMessageEnd()
3237
    oprot.trans.flush()
3238
 
1899 vikas 3239
  def process_getAllMasterAffiliates(self, seqid, iprot, oprot):
3240
    args = getAllMasterAffiliates_args()
3241
    args.read(iprot)
3242
    iprot.readMessageEnd()
3243
    result = getAllMasterAffiliates_result()
3244
    try:
3245
      result.success = self._handler.getAllMasterAffiliates()
1996 vikas 3246
    except UserAffiliateException, utx:
1899 vikas 3247
      result.utx = utx
3248
    oprot.writeMessageBegin("getAllMasterAffiliates", TMessageType.REPLY, seqid)
3249
    result.write(oprot)
3250
    oprot.writeMessageEnd()
3251
    oprot.trans.flush()
3252
 
1845 vikas 3253
  def process_getMasterAffiliateById(self, seqid, iprot, oprot):
3254
    args = getMasterAffiliateById_args()
3255
    args.read(iprot)
3256
    iprot.readMessageEnd()
3257
    result = getMasterAffiliateById_result()
3258
    try:
3259
      result.success = self._handler.getMasterAffiliateById(args.id)
1996 vikas 3260
    except UserAffiliateException, utx:
1845 vikas 3261
      result.utx = utx
3262
    oprot.writeMessageBegin("getMasterAffiliateById", TMessageType.REPLY, seqid)
3263
    result.write(oprot)
3264
    oprot.writeMessageEnd()
3265
    oprot.trans.flush()
3266
 
3267
  def process_getMasterAffiliateByName(self, seqid, iprot, oprot):
3268
    args = getMasterAffiliateByName_args()
3269
    args.read(iprot)
3270
    iprot.readMessageEnd()
3271
    result = getMasterAffiliateByName_result()
3272
    try:
3273
      result.success = self._handler.getMasterAffiliateByName(args.name)
1996 vikas 3274
    except UserAffiliateException, utx:
1845 vikas 3275
      result.utx = utx
3276
    oprot.writeMessageBegin("getMasterAffiliateByName", TMessageType.REPLY, seqid)
3277
    result.write(oprot)
3278
    oprot.writeMessageEnd()
3279
    oprot.trans.flush()
3280
 
3281
  def process_createAffiliate(self, seqid, iprot, oprot):
3282
    args = createAffiliate_args()
3283
    args.read(iprot)
3284
    iprot.readMessageEnd()
3285
    result = createAffiliate_result()
3286
    try:
1859 vikas 3287
      result.success = self._handler.createAffiliate(args.name, args.url, args.masterAffiliateId, args.addedOn)
1996 vikas 3288
    except UserAffiliateException, utx:
1845 vikas 3289
      result.utx = utx
3290
    oprot.writeMessageBegin("createAffiliate", TMessageType.REPLY, seqid)
3291
    result.write(oprot)
3292
    oprot.writeMessageEnd()
3293
    oprot.trans.flush()
3294
 
3295
  def process_getAffiliateById(self, seqid, iprot, oprot):
3296
    args = getAffiliateById_args()
3297
    args.read(iprot)
3298
    iprot.readMessageEnd()
3299
    result = getAffiliateById_result()
3300
    try:
3301
      result.success = self._handler.getAffiliateById(args.id)
1996 vikas 3302
    except UserAffiliateException, utx:
1845 vikas 3303
      result.utx = utx
3304
    oprot.writeMessageBegin("getAffiliateById", TMessageType.REPLY, seqid)
3305
    result.write(oprot)
3306
    oprot.writeMessageEnd()
3307
    oprot.trans.flush()
3308
 
3309
  def process_getAffiliateByName(self, seqid, iprot, oprot):
3310
    args = getAffiliateByName_args()
3311
    args.read(iprot)
3312
    iprot.readMessageEnd()
3313
    result = getAffiliateByName_result()
3314
    try:
3315
      result.success = self._handler.getAffiliateByName(args.name)
1996 vikas 3316
    except UserAffiliateException, utx:
1845 vikas 3317
      result.utx = utx
3318
    oprot.writeMessageBegin("getAffiliateByName", TMessageType.REPLY, seqid)
3319
    result.write(oprot)
3320
    oprot.writeMessageEnd()
3321
    oprot.trans.flush()
3322
 
3323
  def process_getTrackerById(self, seqid, iprot, oprot):
3324
    args = getTrackerById_args()
3325
    args.read(iprot)
3326
    iprot.readMessageEnd()
3327
    result = getTrackerById_result()
3328
    try:
1996 vikas 3329
      result.success = self._handler.getTrackerById(args.id)
3330
    except UserAffiliateException, utx:
1845 vikas 3331
      result.utx = utx
3332
    oprot.writeMessageBegin("getTrackerById", TMessageType.REPLY, seqid)
3333
    result.write(oprot)
3334
    oprot.writeMessageEnd()
3335
    oprot.trans.flush()
3336
 
1996 vikas 3337
  def process_getAffiliatesByMasterAffiliate(self, seqid, iprot, oprot):
3338
    args = getAffiliatesByMasterAffiliate_args()
1845 vikas 3339
    args.read(iprot)
3340
    iprot.readMessageEnd()
1996 vikas 3341
    result = getAffiliatesByMasterAffiliate_result()
1845 vikas 3342
    try:
1996 vikas 3343
      result.success = self._handler.getAffiliatesByMasterAffiliate(args.id)
3344
    except UserAffiliateException, utx:
1845 vikas 3345
      result.utx = utx
1996 vikas 3346
    oprot.writeMessageBegin("getAffiliatesByMasterAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
3350
 
3351
  def process_addTrackLog(self, seqid, iprot, oprot):
3352
    args = addTrackLog_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = addTrackLog_result()
3356
    try:
1996 vikas 3357
      result.success = self._handler.addTrackLog(args.affiliateId, args.userId, args.event, args.url, args.data, args.addedOn)
3358
    except UserAffiliateException, utx:
1845 vikas 3359
      result.utx = utx
3360
    oprot.writeMessageBegin("addTrackLog", TMessageType.REPLY, seqid)
3361
    result.write(oprot)
3362
    oprot.writeMessageEnd()
3363
    oprot.trans.flush()
3364
 
3365
  def process_getTrackLogById(self, seqid, iprot, oprot):
3366
    args = getTrackLogById_args()
3367
    args.read(iprot)
3368
    iprot.readMessageEnd()
3369
    result = getTrackLogById_result()
3370
    try:
3371
      result.success = self._handler.getTrackLogById(args.id)
1996 vikas 3372
    except UserAffiliateException, utx:
1845 vikas 3373
      result.utx = utx
3374
    oprot.writeMessageBegin("getTrackLogById", TMessageType.REPLY, seqid)
3375
    result.write(oprot)
3376
    oprot.writeMessageEnd()
3377
    oprot.trans.flush()
3378
 
1996 vikas 3379
  def process_getTrackLogsByAffiliate(self, seqid, iprot, oprot):
3380
    args = getTrackLogsByAffiliate_args()
1845 vikas 3381
    args.read(iprot)
3382
    iprot.readMessageEnd()
1996 vikas 3383
    result = getTrackLogsByAffiliate_result()
1845 vikas 3384
    try:
3293 vikas 3385
      result.success = self._handler.getTrackLogsByAffiliate(args.affiliateId, args.startDate, args.endDate)
1996 vikas 3386
    except UserAffiliateException, utx:
1845 vikas 3387
      result.utx = utx
1996 vikas 3388
    oprot.writeMessageBegin("getTrackLogsByAffiliate", TMessageType.REPLY, seqid)
1845 vikas 3389
    result.write(oprot)
3390
    oprot.writeMessageEnd()
3391
    oprot.trans.flush()
3392
 
3393
  def process_getTrackLogsByUser(self, seqid, iprot, oprot):
3394
    args = getTrackLogsByUser_args()
3395
    args.read(iprot)
3396
    iprot.readMessageEnd()
3397
    result = getTrackLogsByUser_result()
3398
    try:
3399
      result.success = self._handler.getTrackLogsByUser(args.userId)
1996 vikas 3400
    except UserAffiliateException, utx:
1845 vikas 3401
      result.utx = utx
3402
    oprot.writeMessageBegin("getTrackLogsByUser", TMessageType.REPLY, seqid)
3403
    result.write(oprot)
3404
    oprot.writeMessageEnd()
3405
    oprot.trans.flush()
3406
 
3407
  def process_getTrackLogs(self, seqid, iprot, oprot):
3408
    args = getTrackLogs_args()
3409
    args.read(iprot)
3410
    iprot.readMessageEnd()
3411
    result = getTrackLogs_result()
3412
    try:
1996 vikas 3413
      result.success = self._handler.getTrackLogs(args.userId, args.event, args.url)
3414
    except UserAffiliateException, utx:
1845 vikas 3415
      result.utx = utx
3416
    oprot.writeMessageBegin("getTrackLogs", TMessageType.REPLY, seqid)
3417
    result.write(oprot)
3418
    oprot.writeMessageEnd()
3419
    oprot.trans.flush()
3420
 
559 chandransh 3421
  def process_createCart(self, seqid, iprot, oprot):
3422
    args = createCart_args()
94 ashish 3423
    args.read(iprot)
3424
    iprot.readMessageEnd()
559 chandransh 3425
    result = createCart_result()
94 ashish 3426
    try:
559 chandransh 3427
      result.success = self._handler.createCart(args.userId)
3428
    except ShoppingCartException, scx:
3429
      result.scx = scx
3430
    oprot.writeMessageBegin("createCart", TMessageType.REPLY, seqid)
94 ashish 3431
    result.write(oprot)
3432
    oprot.writeMessageEnd()
3433
    oprot.trans.flush()
3434
 
559 chandransh 3435
  def process_getCurrentCart(self, seqid, iprot, oprot):
3436
    args = getCurrentCart_args()
94 ashish 3437
    args.read(iprot)
3438
    iprot.readMessageEnd()
559 chandransh 3439
    result = getCurrentCart_result()
94 ashish 3440
    try:
559 chandransh 3441
      result.success = self._handler.getCurrentCart(args.userId)
3442
    except ShoppingCartException, scx:
3443
      result.scx = scx
3444
    oprot.writeMessageBegin("getCurrentCart", TMessageType.REPLY, seqid)
94 ashish 3445
    result.write(oprot)
3446
    oprot.writeMessageEnd()
3447
    oprot.trans.flush()
3448
 
559 chandransh 3449
  def process_getCart(self, seqid, iprot, oprot):
3450
    args = getCart_args()
94 ashish 3451
    args.read(iprot)
3452
    iprot.readMessageEnd()
559 chandransh 3453
    result = getCart_result()
94 ashish 3454
    try:
559 chandransh 3455
      result.success = self._handler.getCart(args.cartId)
3456
    except ShoppingCartException, scx:
3457
      result.scx = scx
3458
    oprot.writeMessageBegin("getCart", TMessageType.REPLY, seqid)
94 ashish 3459
    result.write(oprot)
3460
    oprot.writeMessageEnd()
3461
    oprot.trans.flush()
3462
 
559 chandransh 3463
  def process_getCartsByTime(self, seqid, iprot, oprot):
3464
    args = getCartsByTime_args()
94 ashish 3465
    args.read(iprot)
3466
    iprot.readMessageEnd()
559 chandransh 3467
    result = getCartsByTime_result()
94 ashish 3468
    try:
559 chandransh 3469
      result.success = self._handler.getCartsByTime(args.from_time, args.to_time, args.status)
3470
    except ShoppingCartException, scx:
3471
      result.scx = scx
3472
    oprot.writeMessageBegin("getCartsByTime", TMessageType.REPLY, seqid)
94 ashish 3473
    result.write(oprot)
3474
    oprot.writeMessageEnd()
3475
    oprot.trans.flush()
3476
 
559 chandransh 3477
  def process_addItemToCart(self, seqid, iprot, oprot):
3478
    args = addItemToCart_args()
130 ashish 3479
    args.read(iprot)
3480
    iprot.readMessageEnd()
559 chandransh 3481
    result = addItemToCart_result()
130 ashish 3482
    try:
3557 rajveer 3483
      result.success = self._handler.addItemToCart(args.cartId, args.itemId, args.quantity, args.sourceId)
559 chandransh 3484
    except ShoppingCartException, scx:
3485
      result.scx = scx
3486
    oprot.writeMessageBegin("addItemToCart", TMessageType.REPLY, seqid)
130 ashish 3487
    result.write(oprot)
3488
    oprot.writeMessageEnd()
3489
    oprot.trans.flush()
3490
 
559 chandransh 3491
  def process_deleteItemFromCart(self, seqid, iprot, oprot):
3492
    args = deleteItemFromCart_args()
3493
    args.read(iprot)
3494
    iprot.readMessageEnd()
3495
    result = deleteItemFromCart_result()
3496
    try:
3497
      self._handler.deleteItemFromCart(args.cartId, args.itemId)
3498
    except ShoppingCartException, scx:
3499
      result.scx = scx
3500
    oprot.writeMessageBegin("deleteItemFromCart", TMessageType.REPLY, seqid)
3501
    result.write(oprot)
3502
    oprot.writeMessageEnd()
3503
    oprot.trans.flush()
130 ashish 3504
 
559 chandransh 3505
  def process_addAddressToCart(self, seqid, iprot, oprot):
3506
    args = addAddressToCart_args()
3507
    args.read(iprot)
3508
    iprot.readMessageEnd()
3509
    result = addAddressToCart_result()
575 chandransh 3510
    try:
3511
      self._handler.addAddressToCart(args.cartId, args.addressId)
3512
    except ShoppingCartException, scx:
3513
      result.scx = scx
559 chandransh 3514
    oprot.writeMessageBegin("addAddressToCart", TMessageType.REPLY, seqid)
3515
    result.write(oprot)
3516
    oprot.writeMessageEnd()
3517
    oprot.trans.flush()
3518
 
1976 varun.gupt 3519
  def process_applyCouponToCart(self, seqid, iprot, oprot):
3520
    args = applyCouponToCart_args()
3521
    args.read(iprot)
3522
    iprot.readMessageEnd()
3523
    result = applyCouponToCart_result()
3524
    try:
3525
      self._handler.applyCouponToCart(args.cartId, args.couponCode, args.totalPrice, args.discountedPrice)
3526
    except ShoppingCartException, scx:
3527
      result.scx = scx
3528
    oprot.writeMessageBegin("applyCouponToCart", TMessageType.REPLY, seqid)
3529
    result.write(oprot)
3530
    oprot.writeMessageEnd()
3531
    oprot.trans.flush()
3532
 
3533
  def process_removeCoupon(self, seqid, iprot, oprot):
3534
    args = removeCoupon_args()
3535
    args.read(iprot)
3536
    iprot.readMessageEnd()
3537
    result = removeCoupon_result()
3538
    try:
3539
      self._handler.removeCoupon(args.cartId)
3540
    except ShoppingCartException, scx:
3541
      result.scx = scx
3542
    oprot.writeMessageBegin("removeCoupon", TMessageType.REPLY, seqid)
3543
    result.write(oprot)
3544
    oprot.writeMessageEnd()
3545
    oprot.trans.flush()
3546
 
3554 varun.gupt 3547
  def process_deleteDiscountsFromCart(self, seqid, iprot, oprot):
3548
    args = deleteDiscountsFromCart_args()
3549
    args.read(iprot)
3550
    iprot.readMessageEnd()
3551
    result = deleteDiscountsFromCart_result()
3552
    try:
3553
      self._handler.deleteDiscountsFromCart(args.cartId)
3554
    except ShoppingCartException, scx:
3555
      result.scx = scx
3556
    oprot.writeMessageBegin("deleteDiscountsFromCart", TMessageType.REPLY, seqid)
3557
    result.write(oprot)
3558
    oprot.writeMessageEnd()
3559
    oprot.trans.flush()
3560
 
3561
  def process_saveDiscounts(self, seqid, iprot, oprot):
3562
    args = saveDiscounts_args()
3563
    args.read(iprot)
3564
    iprot.readMessageEnd()
3565
    result = saveDiscounts_result()
3566
    try:
3567
      self._handler.saveDiscounts(args.discounts)
3568
    except ShoppingCartException, scx:
3569
      result.scx = scx
3570
    oprot.writeMessageBegin("saveDiscounts", TMessageType.REPLY, seqid)
3571
    result.write(oprot)
3572
    oprot.writeMessageEnd()
3573
    oprot.trans.flush()
3574
 
690 chandransh 3575
  def process_createOrders(self, seqid, iprot, oprot):
3576
    args = createOrders_args()
559 chandransh 3577
    args.read(iprot)
3578
    iprot.readMessageEnd()
690 chandransh 3579
    result = createOrders_result()
559 chandransh 3580
    try:
5326 rajveer 3581
      result.success = self._handler.createOrders(args.cartId, args.sessionSource, args.sessionStartTime, args.firstSource, args.firstSourceTime, args.userId)
559 chandransh 3582
    except ShoppingCartException, scx:
3583
      result.scx = scx
690 chandransh 3584
    oprot.writeMessageBegin("createOrders", TMessageType.REPLY, seqid)
559 chandransh 3585
    result.write(oprot)
3586
    oprot.writeMessageEnd()
3587
    oprot.trans.flush()
3588
 
3589
  def process_validateCart(self, seqid, iprot, oprot):
3590
    args = validateCart_args()
3591
    args.read(iprot)
3592
    iprot.readMessageEnd()
3593
    result = validateCart_result()
575 chandransh 3594
    try:
3557 rajveer 3595
      result.success = self._handler.validateCart(args.cartId, args.sourceId)
575 chandransh 3596
    except ShoppingCartException, scex:
3597
      result.scex = scex
559 chandransh 3598
    oprot.writeMessageBegin("validateCart", TMessageType.REPLY, seqid)
3599
    result.write(oprot)
3600
    oprot.writeMessageEnd()
3601
    oprot.trans.flush()
3602
 
690 chandransh 3603
  def process_mergeCart(self, seqid, iprot, oprot):
3604
    args = mergeCart_args()
575 chandransh 3605
    args.read(iprot)
3606
    iprot.readMessageEnd()
690 chandransh 3607
    result = mergeCart_result()
3608
    self._handler.mergeCart(args.fromCartId, args.toCartId)
3609
    oprot.writeMessageBegin("mergeCart", TMessageType.REPLY, seqid)
3610
    result.write(oprot)
3611
    oprot.writeMessageEnd()
3612
    oprot.trans.flush()
3613
 
3614
  def process_checkOut(self, seqid, iprot, oprot):
3615
    args = checkOut_args()
3616
    args.read(iprot)
3617
    iprot.readMessageEnd()
3618
    result = checkOut_result()
575 chandransh 3619
    try:
690 chandransh 3620
      result.success = self._handler.checkOut(args.cartId)
575 chandransh 3621
    except ShoppingCartException, scex:
3622
      result.scex = scex
690 chandransh 3623
    oprot.writeMessageBegin("checkOut", TMessageType.REPLY, seqid)
575 chandransh 3624
    result.write(oprot)
3625
    oprot.writeMessageEnd()
3626
    oprot.trans.flush()
3627
 
690 chandransh 3628
  def process_resetCart(self, seqid, iprot, oprot):
3629
    args = resetCart_args()
559 chandransh 3630
    args.read(iprot)
3631
    iprot.readMessageEnd()
690 chandransh 3632
    result = resetCart_result()
3633
    try:
3634
      result.success = self._handler.resetCart(args.cartId, args.items)
3635
    except ShoppingCartException, scex:
3636
      result.scex = scex
3637
    oprot.writeMessageBegin("resetCart", TMessageType.REPLY, seqid)
559 chandransh 3638
    result.write(oprot)
3639
    oprot.writeMessageEnd()
3640
    oprot.trans.flush()
3641
 
2981 rajveer 3642
  def process_getUserCount(self, seqid, iprot, oprot):
3643
    args = getUserCount_args()
559 chandransh 3644
    args.read(iprot)
3645
    iprot.readMessageEnd()
2981 rajveer 3646
    result = getUserCount_result()
3647
    result.success = self._handler.getUserCount(args.userType)
3648
    oprot.writeMessageBegin("getUserCount", TMessageType.REPLY, seqid)
559 chandransh 3649
    result.write(oprot)
3650
    oprot.writeMessageEnd()
3651
    oprot.trans.flush()
3652
 
2981 rajveer 3653
  def process_getAllUsers(self, seqid, iprot, oprot):
3654
    args = getAllUsers_args()
559 chandransh 3655
    args.read(iprot)
3656
    iprot.readMessageEnd()
2981 rajveer 3657
    result = getAllUsers_result()
3658
    result.success = self._handler.getAllUsers(args.userType, args.startDate, args.endDate)
3659
    oprot.writeMessageBegin("getAllUsers", TMessageType.REPLY, seqid)
559 chandransh 3660
    result.write(oprot)
3661
    oprot.writeMessageEnd()
3662
    oprot.trans.flush()
3663
 
2981 rajveer 3664
  def process_putUserNote(self, seqid, iprot, oprot):
3665
    args = putUserNote_args()
559 chandransh 3666
    args.read(iprot)
3667
    iprot.readMessageEnd()
2981 rajveer 3668
    result = putUserNote_result()
3669
    self._handler.putUserNote(args.user_id, args.entity_id, args.slide, args.note)
3670
    oprot.writeMessageBegin("putUserNote", TMessageType.REPLY, seqid)
559 chandransh 3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
3674
 
2981 rajveer 3675
  def process_getUserNotes(self, seqid, iprot, oprot):
3676
    args = getUserNotes_args()
559 chandransh 3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
2981 rajveer 3679
    result = getUserNotes_result()
3680
    result.success = self._handler.getUserNotes(args.user_id, args.entity_id)
3681
    oprot.writeMessageBegin("getUserNotes", TMessageType.REPLY, seqid)
559 chandransh 3682
    result.write(oprot)
3683
    oprot.writeMessageEnd()
3684
    oprot.trans.flush()
3685
 
2981 rajveer 3686
  def process_getMyResearchItems(self, seqid, iprot, oprot):
3687
    args = getMyResearchItems_args()
559 chandransh 3688
    args.read(iprot)
3689
    iprot.readMessageEnd()
2981 rajveer 3690
    result = getMyResearchItems_result()
559 chandransh 3691
    try:
2981 rajveer 3692
      result.success = self._handler.getMyResearchItems(args.userId)
559 chandransh 3693
    except WidgetException, scx:
3694
      result.scx = scx
2981 rajveer 3695
    oprot.writeMessageBegin("getMyResearchItems", TMessageType.REPLY, seqid)
559 chandransh 3696
    result.write(oprot)
3697
    oprot.writeMessageEnd()
3698
    oprot.trans.flush()
3699
 
2981 rajveer 3700
  def process_updateMyResearch(self, seqid, iprot, oprot):
3701
    args = updateMyResearch_args()
772 rajveer 3702
    args.read(iprot)
3703
    iprot.readMessageEnd()
2981 rajveer 3704
    result = updateMyResearch_result()
3705
    try:
3706
      result.success = self._handler.updateMyResearch(args.userId, args.itemId)
3707
    except WidgetException, scx:
3708
      result.scx = scx
3709
    oprot.writeMessageBegin("updateMyResearch", TMessageType.REPLY, seqid)
772 rajveer 3710
    result.write(oprot)
3711
    oprot.writeMessageEnd()
3712
    oprot.trans.flush()
559 chandransh 3713
 
2981 rajveer 3714
  def process_deleteItemFromMyResearch(self, seqid, iprot, oprot):
3715
    args = deleteItemFromMyResearch_args()
1596 ankur.sing 3716
    args.read(iprot)
3717
    iprot.readMessageEnd()
2981 rajveer 3718
    result = deleteItemFromMyResearch_result()
3719
    try:
3720
      self._handler.deleteItemFromMyResearch(args.userId, args.itemId)
3721
    except WidgetException, scx:
3722
      result.scx = scx
3723
    oprot.writeMessageBegin("deleteItemFromMyResearch", TMessageType.REPLY, seqid)
1596 ankur.sing 3724
    result.write(oprot)
3725
    oprot.writeMessageEnd()
3726
    oprot.trans.flush()
772 rajveer 3727
 
2981 rajveer 3728
  def process_getBrowseHistoryItems(self, seqid, iprot, oprot):
3729
    args = getBrowseHistoryItems_args()
1673 ankur.sing 3730
    args.read(iprot)
3731
    iprot.readMessageEnd()
2981 rajveer 3732
    result = getBrowseHistoryItems_result()
3733
    try:
3734
      result.success = self._handler.getBrowseHistoryItems(args.userId)
3735
    except WidgetException, scx:
3736
      result.scx = scx
3737
    oprot.writeMessageBegin("getBrowseHistoryItems", TMessageType.REPLY, seqid)
1673 ankur.sing 3738
    result.write(oprot)
3739
    oprot.writeMessageEnd()
3740
    oprot.trans.flush()
1596 ankur.sing 3741
 
2981 rajveer 3742
  def process_updateBrowseHistory(self, seqid, iprot, oprot):
3743
    args = updateBrowseHistory_args()
2642 varun.gupt 3744
    args.read(iprot)
3745
    iprot.readMessageEnd()
2981 rajveer 3746
    result = updateBrowseHistory_result()
3747
    self._handler.updateBrowseHistory(args.userId, args.itemId)
3748
    oprot.writeMessageBegin("updateBrowseHistory", TMessageType.REPLY, seqid)
2642 varun.gupt 3749
    result.write(oprot)
3750
    oprot.writeMessageEnd()
3751
    oprot.trans.flush()
1673 ankur.sing 3752
 
3385 varun.gupt 3753
  def process_getCartsWithCouponCount(self, seqid, iprot, oprot):
3754
    args = getCartsWithCouponCount_args()
3755
    args.read(iprot)
3756
    iprot.readMessageEnd()
3757
    result = getCartsWithCouponCount_result()
3758
    result.success = self._handler.getCartsWithCouponCount(args.couponCode)
3759
    oprot.writeMessageBegin("getCartsWithCouponCount", TMessageType.REPLY, seqid)
3760
    result.write(oprot)
3761
    oprot.writeMessageEnd()
3762
    oprot.trans.flush()
2642 varun.gupt 3763
 
3499 mandeep.dh 3764
  def process_increaseTrustLevel(self, seqid, iprot, oprot):
3765
    args = increaseTrustLevel_args()
3766
    args.read(iprot)
3767
    iprot.readMessageEnd()
3768
    self._handler.increaseTrustLevel(args.userId, args.trustLevelDelta)
3530 mandeep.dh 3769
    return
3385 varun.gupt 3770
 
4668 varun.gupt 3771
  def process_showCODOption(self, seqid, iprot, oprot):
3772
    args = showCODOption_args()
3773
    args.read(iprot)
3774
    iprot.readMessageEnd()
3775
    result = showCODOption_result()
3776
    result.success = self._handler.showCODOption(args.cartId, args.sourceId, args.pincode)
3777
    oprot.writeMessageBegin("showCODOption", TMessageType.REPLY, seqid)
3778
    result.write(oprot)
3779
    oprot.writeMessageEnd()
3780
    oprot.trans.flush()
3499 mandeep.dh 3781
 
4668 varun.gupt 3782
 
94 ashish 3783
# HELPER FUNCTIONS AND STRUCTURES
3784
 
559 chandransh 3785
class createAnonymousUser_args:
94 ashish 3786
  """
3787
  Attributes:
559 chandransh 3788
   - jsessionId
94 ashish 3789
  """
3790
 
3791
  thrift_spec = (
3792
    None, # 0
559 chandransh 3793
    (1, TType.STRING, 'jsessionId', None, None, ), # 1
94 ashish 3794
  )
3795
 
559 chandransh 3796
  def __init__(self, jsessionId=None,):
3797
    self.jsessionId = jsessionId
94 ashish 3798
 
3799
  def read(self, iprot):
3800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3802
      return
3803
    iprot.readStructBegin()
3804
    while True:
3805
      (fname, ftype, fid) = iprot.readFieldBegin()
3806
      if ftype == TType.STOP:
3807
        break
3808
      if fid == 1:
559 chandransh 3809
        if ftype == TType.STRING:
3810
          self.jsessionId = iprot.readString();
94 ashish 3811
        else:
3812
          iprot.skip(ftype)
3813
      else:
3814
        iprot.skip(ftype)
3815
      iprot.readFieldEnd()
3816
    iprot.readStructEnd()
3817
 
3818
  def write(self, oprot):
3819
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3820
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3821
      return
559 chandransh 3822
    oprot.writeStructBegin('createAnonymousUser_args')
3431 rajveer 3823
    if self.jsessionId is not None:
559 chandransh 3824
      oprot.writeFieldBegin('jsessionId', TType.STRING, 1)
3825
      oprot.writeString(self.jsessionId)
94 ashish 3826
      oprot.writeFieldEnd()
3827
    oprot.writeFieldStop()
3828
    oprot.writeStructEnd()
3829
 
3431 rajveer 3830
  def validate(self):
3831
    return
3832
 
3833
 
94 ashish 3834
  def __repr__(self):
3835
    L = ['%s=%r' % (key, value)
3836
      for key, value in self.__dict__.iteritems()]
3837
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3838
 
3839
  def __eq__(self, other):
3840
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3841
 
3842
  def __ne__(self, other):
3843
    return not (self == other)
3844
 
559 chandransh 3845
class createAnonymousUser_result:
94 ashish 3846
  """
3847
  Attributes:
3848
   - success
559 chandransh 3849
   - ucex
94 ashish 3850
  """
3851
 
3852
  thrift_spec = (
559 chandransh 3853
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3854
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3855
  )
3856
 
559 chandransh 3857
  def __init__(self, success=None, ucex=None,):
94 ashish 3858
    self.success = success
559 chandransh 3859
    self.ucex = ucex
94 ashish 3860
 
3861
  def read(self, iprot):
3862
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3863
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3864
      return
3865
    iprot.readStructBegin()
3866
    while True:
3867
      (fname, ftype, fid) = iprot.readFieldBegin()
3868
      if ftype == TType.STOP:
3869
        break
3870
      if fid == 0:
3871
        if ftype == TType.STRUCT:
559 chandransh 3872
          self.success = User()
94 ashish 3873
          self.success.read(iprot)
3874
        else:
3875
          iprot.skip(ftype)
3876
      elif fid == 1:
3877
        if ftype == TType.STRUCT:
559 chandransh 3878
          self.ucex = UserContextException()
3879
          self.ucex.read(iprot)
94 ashish 3880
        else:
3881
          iprot.skip(ftype)
3882
      else:
3883
        iprot.skip(ftype)
3884
      iprot.readFieldEnd()
3885
    iprot.readStructEnd()
3886
 
3887
  def write(self, oprot):
3888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3890
      return
559 chandransh 3891
    oprot.writeStructBegin('createAnonymousUser_result')
3431 rajveer 3892
    if self.success is not None:
94 ashish 3893
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3894
      self.success.write(oprot)
3895
      oprot.writeFieldEnd()
3431 rajveer 3896
    if self.ucex is not None:
559 chandransh 3897
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
3898
      self.ucex.write(oprot)
94 ashish 3899
      oprot.writeFieldEnd()
3900
    oprot.writeFieldStop()
3901
    oprot.writeStructEnd()
3902
 
3431 rajveer 3903
  def validate(self):
3904
    return
3905
 
3906
 
94 ashish 3907
  def __repr__(self):
3908
    L = ['%s=%r' % (key, value)
3909
      for key, value in self.__dict__.iteritems()]
3910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3911
 
3912
  def __eq__(self, other):
3913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3914
 
3915
  def __ne__(self, other):
3916
    return not (self == other)
3917
 
559 chandransh 3918
class getUserById_args:
94 ashish 3919
  """
3920
  Attributes:
3921
   - userId
3922
  """
3923
 
3924
  thrift_spec = (
3925
    None, # 0
3926
    (1, TType.I64, 'userId', None, None, ), # 1
3927
  )
3928
 
559 chandransh 3929
  def __init__(self, userId=None,):
94 ashish 3930
    self.userId = userId
3931
 
3932
  def read(self, iprot):
3933
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3934
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3935
      return
3936
    iprot.readStructBegin()
3937
    while True:
3938
      (fname, ftype, fid) = iprot.readFieldBegin()
3939
      if ftype == TType.STOP:
3940
        break
3941
      if fid == 1:
3942
        if ftype == TType.I64:
3943
          self.userId = iprot.readI64();
3944
        else:
3945
          iprot.skip(ftype)
3946
      else:
3947
        iprot.skip(ftype)
3948
      iprot.readFieldEnd()
3949
    iprot.readStructEnd()
3950
 
3951
  def write(self, oprot):
3952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3954
      return
559 chandransh 3955
    oprot.writeStructBegin('getUserById_args')
3431 rajveer 3956
    if self.userId is not None:
94 ashish 3957
      oprot.writeFieldBegin('userId', TType.I64, 1)
3958
      oprot.writeI64(self.userId)
3959
      oprot.writeFieldEnd()
3960
    oprot.writeFieldStop()
3961
    oprot.writeStructEnd()
3962
 
3431 rajveer 3963
  def validate(self):
3964
    return
3965
 
3966
 
94 ashish 3967
  def __repr__(self):
3968
    L = ['%s=%r' % (key, value)
3969
      for key, value in self.__dict__.iteritems()]
3970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3971
 
3972
  def __eq__(self, other):
3973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3974
 
3975
  def __ne__(self, other):
3976
    return not (self == other)
3977
 
559 chandransh 3978
class getUserById_result:
94 ashish 3979
  """
3980
  Attributes:
3981
   - success
559 chandransh 3982
   - ucex
94 ashish 3983
  """
3984
 
3985
  thrift_spec = (
559 chandransh 3986
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
3987
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 3988
  )
3989
 
559 chandransh 3990
  def __init__(self, success=None, ucex=None,):
94 ashish 3991
    self.success = success
559 chandransh 3992
    self.ucex = ucex
94 ashish 3993
 
3994
  def read(self, iprot):
3995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3997
      return
3998
    iprot.readStructBegin()
3999
    while True:
4000
      (fname, ftype, fid) = iprot.readFieldBegin()
4001
      if ftype == TType.STOP:
4002
        break
4003
      if fid == 0:
4004
        if ftype == TType.STRUCT:
559 chandransh 4005
          self.success = User()
94 ashish 4006
          self.success.read(iprot)
4007
        else:
4008
          iprot.skip(ftype)
4009
      elif fid == 1:
4010
        if ftype == TType.STRUCT:
559 chandransh 4011
          self.ucex = UserContextException()
4012
          self.ucex.read(iprot)
94 ashish 4013
        else:
4014
          iprot.skip(ftype)
4015
      else:
4016
        iprot.skip(ftype)
4017
      iprot.readFieldEnd()
4018
    iprot.readStructEnd()
4019
 
4020
  def write(self, oprot):
4021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4023
      return
559 chandransh 4024
    oprot.writeStructBegin('getUserById_result')
3431 rajveer 4025
    if self.success is not None:
94 ashish 4026
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4027
      self.success.write(oprot)
4028
      oprot.writeFieldEnd()
3431 rajveer 4029
    if self.ucex is not None:
559 chandransh 4030
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4031
      self.ucex.write(oprot)
94 ashish 4032
      oprot.writeFieldEnd()
4033
    oprot.writeFieldStop()
4034
    oprot.writeStructEnd()
4035
 
3431 rajveer 4036
  def validate(self):
4037
    return
4038
 
4039
 
94 ashish 4040
  def __repr__(self):
4041
    L = ['%s=%r' % (key, value)
4042
      for key, value in self.__dict__.iteritems()]
4043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4044
 
4045
  def __eq__(self, other):
4046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4047
 
4048
  def __ne__(self, other):
4049
    return not (self == other)
4050
 
5326 rajveer 4051
class getUserByCartId_args:
1491 vikas 4052
  """
4053
  Attributes:
5326 rajveer 4054
   - cartId
1491 vikas 4055
  """
4056
 
4057
  thrift_spec = (
4058
    None, # 0
5326 rajveer 4059
    (1, TType.I64, 'cartId', None, None, ), # 1
1491 vikas 4060
  )
4061
 
5326 rajveer 4062
  def __init__(self, cartId=None,):
4063
    self.cartId = cartId
1491 vikas 4064
 
4065
  def read(self, iprot):
4066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4068
      return
4069
    iprot.readStructBegin()
4070
    while True:
4071
      (fname, ftype, fid) = iprot.readFieldBegin()
4072
      if ftype == TType.STOP:
4073
        break
4074
      if fid == 1:
5326 rajveer 4075
        if ftype == TType.I64:
4076
          self.cartId = iprot.readI64();
1491 vikas 4077
        else:
4078
          iprot.skip(ftype)
4079
      else:
4080
        iprot.skip(ftype)
4081
      iprot.readFieldEnd()
4082
    iprot.readStructEnd()
4083
 
4084
  def write(self, oprot):
4085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4087
      return
5326 rajveer 4088
    oprot.writeStructBegin('getUserByCartId_args')
4089
    if self.cartId is not None:
4090
      oprot.writeFieldBegin('cartId', TType.I64, 1)
4091
      oprot.writeI64(self.cartId)
1491 vikas 4092
      oprot.writeFieldEnd()
4093
    oprot.writeFieldStop()
4094
    oprot.writeStructEnd()
4095
 
3431 rajveer 4096
  def validate(self):
4097
    return
4098
 
4099
 
1491 vikas 4100
  def __repr__(self):
4101
    L = ['%s=%r' % (key, value)
4102
      for key, value in self.__dict__.iteritems()]
4103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4104
 
4105
  def __eq__(self, other):
4106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4107
 
4108
  def __ne__(self, other):
4109
    return not (self == other)
4110
 
5326 rajveer 4111
class getUserByCartId_result:
1491 vikas 4112
  """
4113
  Attributes:
4114
   - success
4115
   - ucex
4116
  """
4117
 
4118
  thrift_spec = (
4119
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4120
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4121
  )
4122
 
4123
  def __init__(self, success=None, ucex=None,):
4124
    self.success = success
4125
    self.ucex = ucex
4126
 
4127
  def read(self, iprot):
4128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4130
      return
4131
    iprot.readStructBegin()
4132
    while True:
4133
      (fname, ftype, fid) = iprot.readFieldBegin()
4134
      if ftype == TType.STOP:
4135
        break
4136
      if fid == 0:
4137
        if ftype == TType.STRUCT:
4138
          self.success = User()
4139
          self.success.read(iprot)
4140
        else:
4141
          iprot.skip(ftype)
4142
      elif fid == 1:
4143
        if ftype == TType.STRUCT:
4144
          self.ucex = UserContextException()
4145
          self.ucex.read(iprot)
4146
        else:
4147
          iprot.skip(ftype)
4148
      else:
4149
        iprot.skip(ftype)
4150
      iprot.readFieldEnd()
4151
    iprot.readStructEnd()
4152
 
4153
  def write(self, oprot):
4154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4156
      return
5326 rajveer 4157
    oprot.writeStructBegin('getUserByCartId_result')
3431 rajveer 4158
    if self.success is not None:
1491 vikas 4159
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4160
      self.success.write(oprot)
4161
      oprot.writeFieldEnd()
3431 rajveer 4162
    if self.ucex is not None:
1491 vikas 4163
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4164
      self.ucex.write(oprot)
4165
      oprot.writeFieldEnd()
4166
    oprot.writeFieldStop()
4167
    oprot.writeStructEnd()
4168
 
3431 rajveer 4169
  def validate(self):
4170
    return
4171
 
4172
 
1491 vikas 4173
  def __repr__(self):
4174
    L = ['%s=%r' % (key, value)
4175
      for key, value in self.__dict__.iteritems()]
4176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4177
 
4178
  def __eq__(self, other):
4179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4180
 
4181
  def __ne__(self, other):
4182
    return not (self == other)
4183
 
5326 rajveer 4184
class getUserByEmail_args:
3032 mandeep.dh 4185
  """
4186
  Attributes:
5326 rajveer 4187
   - email
3032 mandeep.dh 4188
  """
4189
 
4190
  thrift_spec = (
4191
    None, # 0
5326 rajveer 4192
    (1, TType.STRING, 'email', None, None, ), # 1
3032 mandeep.dh 4193
  )
4194
 
5326 rajveer 4195
  def __init__(self, email=None,):
4196
    self.email = email
3032 mandeep.dh 4197
 
4198
  def read(self, iprot):
4199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4201
      return
4202
    iprot.readStructBegin()
4203
    while True:
4204
      (fname, ftype, fid) = iprot.readFieldBegin()
4205
      if ftype == TType.STOP:
4206
        break
4207
      if fid == 1:
5326 rajveer 4208
        if ftype == TType.STRING:
4209
          self.email = iprot.readString();
3032 mandeep.dh 4210
        else:
4211
          iprot.skip(ftype)
4212
      else:
4213
        iprot.skip(ftype)
4214
      iprot.readFieldEnd()
4215
    iprot.readStructEnd()
4216
 
4217
  def write(self, oprot):
4218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4220
      return
5326 rajveer 4221
    oprot.writeStructBegin('getUserByEmail_args')
4222
    if self.email is not None:
4223
      oprot.writeFieldBegin('email', TType.STRING, 1)
4224
      oprot.writeString(self.email)
3032 mandeep.dh 4225
      oprot.writeFieldEnd()
4226
    oprot.writeFieldStop()
4227
    oprot.writeStructEnd()
4228
 
3431 rajveer 4229
  def validate(self):
4230
    return
4231
 
4232
 
3032 mandeep.dh 4233
  def __repr__(self):
4234
    L = ['%s=%r' % (key, value)
4235
      for key, value in self.__dict__.iteritems()]
4236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4237
 
4238
  def __eq__(self, other):
4239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4240
 
4241
  def __ne__(self, other):
4242
    return not (self == other)
4243
 
5326 rajveer 4244
class getUserByEmail_result:
3032 mandeep.dh 4245
  """
4246
  Attributes:
4247
   - success
4248
   - ucex
4249
  """
4250
 
4251
  thrift_spec = (
4252
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4253
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4254
  )
4255
 
4256
  def __init__(self, success=None, ucex=None,):
4257
    self.success = success
4258
    self.ucex = ucex
4259
 
4260
  def read(self, iprot):
4261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4263
      return
4264
    iprot.readStructBegin()
4265
    while True:
4266
      (fname, ftype, fid) = iprot.readFieldBegin()
4267
      if ftype == TType.STOP:
4268
        break
4269
      if fid == 0:
4270
        if ftype == TType.STRUCT:
4271
          self.success = User()
4272
          self.success.read(iprot)
4273
        else:
4274
          iprot.skip(ftype)
4275
      elif fid == 1:
4276
        if ftype == TType.STRUCT:
4277
          self.ucex = UserContextException()
4278
          self.ucex.read(iprot)
4279
        else:
4280
          iprot.skip(ftype)
4281
      else:
4282
        iprot.skip(ftype)
4283
      iprot.readFieldEnd()
4284
    iprot.readStructEnd()
4285
 
4286
  def write(self, oprot):
4287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4289
      return
5326 rajveer 4290
    oprot.writeStructBegin('getUserByEmail_result')
3431 rajveer 4291
    if self.success is not None:
3032 mandeep.dh 4292
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4293
      self.success.write(oprot)
4294
      oprot.writeFieldEnd()
3431 rajveer 4295
    if self.ucex is not None:
3032 mandeep.dh 4296
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4297
      self.ucex.write(oprot)
4298
      oprot.writeFieldEnd()
4299
    oprot.writeFieldStop()
4300
    oprot.writeStructEnd()
4301
 
3431 rajveer 4302
  def validate(self):
4303
    return
4304
 
4305
 
3032 mandeep.dh 4306
  def __repr__(self):
4307
    L = ['%s=%r' % (key, value)
4308
      for key, value in self.__dict__.iteritems()]
4309
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4310
 
4311
  def __eq__(self, other):
4312
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4313
 
4314
  def __ne__(self, other):
4315
    return not (self == other)
4316
 
5326 rajveer 4317
class getUserByMobileNumber_args:
94 ashish 4318
  """
4319
  Attributes:
5326 rajveer 4320
   - mobileNumber
94 ashish 4321
  """
4322
 
4323
  thrift_spec = (
4324
    None, # 0
5326 rajveer 4325
    (1, TType.I64, 'mobileNumber', None, None, ), # 1
94 ashish 4326
  )
4327
 
5326 rajveer 4328
  def __init__(self, mobileNumber=None,):
4329
    self.mobileNumber = mobileNumber
94 ashish 4330
 
4331
  def read(self, iprot):
4332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4334
      return
4335
    iprot.readStructBegin()
4336
    while True:
4337
      (fname, ftype, fid) = iprot.readFieldBegin()
4338
      if ftype == TType.STOP:
4339
        break
4340
      if fid == 1:
5326 rajveer 4341
        if ftype == TType.I64:
4342
          self.mobileNumber = iprot.readI64();
94 ashish 4343
        else:
4344
          iprot.skip(ftype)
4345
      else:
4346
        iprot.skip(ftype)
4347
      iprot.readFieldEnd()
4348
    iprot.readStructEnd()
4349
 
4350
  def write(self, oprot):
4351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4353
      return
5326 rajveer 4354
    oprot.writeStructBegin('getUserByMobileNumber_args')
4355
    if self.mobileNumber is not None:
4356
      oprot.writeFieldBegin('mobileNumber', TType.I64, 1)
4357
      oprot.writeI64(self.mobileNumber)
94 ashish 4358
      oprot.writeFieldEnd()
4359
    oprot.writeFieldStop()
4360
    oprot.writeStructEnd()
4361
 
3431 rajveer 4362
  def validate(self):
4363
    return
4364
 
4365
 
94 ashish 4366
  def __repr__(self):
4367
    L = ['%s=%r' % (key, value)
4368
      for key, value in self.__dict__.iteritems()]
4369
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4370
 
4371
  def __eq__(self, other):
4372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4373
 
4374
  def __ne__(self, other):
4375
    return not (self == other)
4376
 
5326 rajveer 4377
class getUserByMobileNumber_result:
94 ashish 4378
  """
4379
  Attributes:
4380
   - success
559 chandransh 4381
   - ucex
94 ashish 4382
  """
4383
 
4384
  thrift_spec = (
559 chandransh 4385
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4386
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4387
  )
4388
 
559 chandransh 4389
  def __init__(self, success=None, ucex=None,):
94 ashish 4390
    self.success = success
559 chandransh 4391
    self.ucex = ucex
94 ashish 4392
 
4393
  def read(self, iprot):
4394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4396
      return
4397
    iprot.readStructBegin()
4398
    while True:
4399
      (fname, ftype, fid) = iprot.readFieldBegin()
4400
      if ftype == TType.STOP:
4401
        break
4402
      if fid == 0:
4403
        if ftype == TType.STRUCT:
559 chandransh 4404
          self.success = User()
94 ashish 4405
          self.success.read(iprot)
4406
        else:
4407
          iprot.skip(ftype)
4408
      elif fid == 1:
4409
        if ftype == TType.STRUCT:
559 chandransh 4410
          self.ucex = UserContextException()
4411
          self.ucex.read(iprot)
94 ashish 4412
        else:
4413
          iprot.skip(ftype)
4414
      else:
4415
        iprot.skip(ftype)
4416
      iprot.readFieldEnd()
4417
    iprot.readStructEnd()
4418
 
4419
  def write(self, oprot):
4420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4422
      return
5326 rajveer 4423
    oprot.writeStructBegin('getUserByMobileNumber_result')
3431 rajveer 4424
    if self.success is not None:
94 ashish 4425
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4426
      self.success.write(oprot)
4427
      oprot.writeFieldEnd()
3431 rajveer 4428
    if self.ucex is not None:
559 chandransh 4429
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4430
      self.ucex.write(oprot)
94 ashish 4431
      oprot.writeFieldEnd()
4432
    oprot.writeFieldStop()
4433
    oprot.writeStructEnd()
4434
 
3431 rajveer 4435
  def validate(self):
4436
    return
4437
 
4438
 
94 ashish 4439
  def __repr__(self):
4440
    L = ['%s=%r' % (key, value)
4441
      for key, value in self.__dict__.iteritems()]
4442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4443
 
4444
  def __eq__(self, other):
4445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4446
 
4447
  def __ne__(self, other):
4448
    return not (self == other)
4449
 
5326 rajveer 4450
class createUser_args:
94 ashish 4451
  """
4452
  Attributes:
559 chandransh 4453
   - user
94 ashish 4454
  """
4455
 
4456
  thrift_spec = (
4457
    None, # 0
559 chandransh 4458
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4459
  )
4460
 
559 chandransh 4461
  def __init__(self, user=None,):
4462
    self.user = user
94 ashish 4463
 
4464
  def read(self, iprot):
4465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4467
      return
4468
    iprot.readStructBegin()
4469
    while True:
4470
      (fname, ftype, fid) = iprot.readFieldBegin()
4471
      if ftype == TType.STOP:
4472
        break
4473
      if fid == 1:
559 chandransh 4474
        if ftype == TType.STRUCT:
4475
          self.user = User()
4476
          self.user.read(iprot)
94 ashish 4477
        else:
4478
          iprot.skip(ftype)
4479
      else:
4480
        iprot.skip(ftype)
4481
      iprot.readFieldEnd()
4482
    iprot.readStructEnd()
4483
 
4484
  def write(self, oprot):
4485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4487
      return
5326 rajveer 4488
    oprot.writeStructBegin('createUser_args')
3431 rajveer 4489
    if self.user is not None:
559 chandransh 4490
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4491
      self.user.write(oprot)
94 ashish 4492
      oprot.writeFieldEnd()
4493
    oprot.writeFieldStop()
4494
    oprot.writeStructEnd()
4495
 
3431 rajveer 4496
  def validate(self):
4497
    return
4498
 
4499
 
94 ashish 4500
  def __repr__(self):
4501
    L = ['%s=%r' % (key, value)
4502
      for key, value in self.__dict__.iteritems()]
4503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4504
 
4505
  def __eq__(self, other):
4506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4507
 
4508
  def __ne__(self, other):
4509
    return not (self == other)
4510
 
5326 rajveer 4511
class createUser_result:
94 ashish 4512
  """
4513
  Attributes:
4514
   - success
559 chandransh 4515
   - ucex
94 ashish 4516
  """
4517
 
4518
  thrift_spec = (
559 chandransh 4519
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4520
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4521
  )
4522
 
559 chandransh 4523
  def __init__(self, success=None, ucex=None,):
94 ashish 4524
    self.success = success
559 chandransh 4525
    self.ucex = ucex
94 ashish 4526
 
4527
  def read(self, iprot):
4528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4530
      return
4531
    iprot.readStructBegin()
4532
    while True:
4533
      (fname, ftype, fid) = iprot.readFieldBegin()
4534
      if ftype == TType.STOP:
4535
        break
4536
      if fid == 0:
4537
        if ftype == TType.STRUCT:
559 chandransh 4538
          self.success = User()
94 ashish 4539
          self.success.read(iprot)
4540
        else:
4541
          iprot.skip(ftype)
4542
      elif fid == 1:
4543
        if ftype == TType.STRUCT:
559 chandransh 4544
          self.ucex = UserContextException()
4545
          self.ucex.read(iprot)
94 ashish 4546
        else:
4547
          iprot.skip(ftype)
4548
      else:
4549
        iprot.skip(ftype)
4550
      iprot.readFieldEnd()
4551
    iprot.readStructEnd()
4552
 
4553
  def write(self, oprot):
4554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4556
      return
5326 rajveer 4557
    oprot.writeStructBegin('createUser_result')
3431 rajveer 4558
    if self.success is not None:
94 ashish 4559
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4560
      self.success.write(oprot)
4561
      oprot.writeFieldEnd()
3431 rajveer 4562
    if self.ucex is not None:
559 chandransh 4563
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4564
      self.ucex.write(oprot)
94 ashish 4565
      oprot.writeFieldEnd()
4566
    oprot.writeFieldStop()
4567
    oprot.writeStructEnd()
4568
 
3431 rajveer 4569
  def validate(self):
4570
    return
4571
 
4572
 
94 ashish 4573
  def __repr__(self):
4574
    L = ['%s=%r' % (key, value)
4575
      for key, value in self.__dict__.iteritems()]
4576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4577
 
4578
  def __eq__(self, other):
4579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4580
 
4581
  def __ne__(self, other):
4582
    return not (self == other)
4583
 
5326 rajveer 4584
class updateUser_args:
94 ashish 4585
  """
4586
  Attributes:
5326 rajveer 4587
   - user
94 ashish 4588
  """
4589
 
4590
  thrift_spec = (
4591
    None, # 0
5326 rajveer 4592
    (1, TType.STRUCT, 'user', (User, User.thrift_spec), None, ), # 1
94 ashish 4593
  )
4594
 
5326 rajveer 4595
  def __init__(self, user=None,):
4596
    self.user = user
94 ashish 4597
 
4598
  def read(self, iprot):
4599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4601
      return
4602
    iprot.readStructBegin()
4603
    while True:
4604
      (fname, ftype, fid) = iprot.readFieldBegin()
4605
      if ftype == TType.STOP:
4606
        break
4607
      if fid == 1:
5326 rajveer 4608
        if ftype == TType.STRUCT:
4609
          self.user = User()
4610
          self.user.read(iprot)
94 ashish 4611
        else:
4612
          iprot.skip(ftype)
4613
      else:
4614
        iprot.skip(ftype)
4615
      iprot.readFieldEnd()
4616
    iprot.readStructEnd()
4617
 
4618
  def write(self, oprot):
4619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4621
      return
5326 rajveer 4622
    oprot.writeStructBegin('updateUser_args')
4623
    if self.user is not None:
4624
      oprot.writeFieldBegin('user', TType.STRUCT, 1)
4625
      self.user.write(oprot)
94 ashish 4626
      oprot.writeFieldEnd()
4627
    oprot.writeFieldStop()
4628
    oprot.writeStructEnd()
4629
 
3431 rajveer 4630
  def validate(self):
4631
    return
4632
 
4633
 
94 ashish 4634
  def __repr__(self):
4635
    L = ['%s=%r' % (key, value)
4636
      for key, value in self.__dict__.iteritems()]
4637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4638
 
4639
  def __eq__(self, other):
4640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4641
 
4642
  def __ne__(self, other):
4643
    return not (self == other)
4644
 
5326 rajveer 4645
class updateUser_result:
94 ashish 4646
  """
4647
  Attributes:
4648
   - success
559 chandransh 4649
   - ucex
94 ashish 4650
  """
4651
 
4652
  thrift_spec = (
5326 rajveer 4653
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
559 chandransh 4654
    (1, TType.STRUCT, 'ucex', (UserContextException, UserContextException.thrift_spec), None, ), # 1
94 ashish 4655
  )
4656
 
559 chandransh 4657
  def __init__(self, success=None, ucex=None,):
94 ashish 4658
    self.success = success
559 chandransh 4659
    self.ucex = ucex
94 ashish 4660
 
4661
  def read(self, iprot):
4662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4664
      return
4665
    iprot.readStructBegin()
4666
    while True:
4667
      (fname, ftype, fid) = iprot.readFieldBegin()
4668
      if ftype == TType.STOP:
4669
        break
4670
      if fid == 0:
5326 rajveer 4671
        if ftype == TType.STRUCT:
4672
          self.success = User()
4673
          self.success.read(iprot)
94 ashish 4674
        else:
4675
          iprot.skip(ftype)
4676
      elif fid == 1:
4677
        if ftype == TType.STRUCT:
559 chandransh 4678
          self.ucex = UserContextException()
4679
          self.ucex.read(iprot)
94 ashish 4680
        else:
4681
          iprot.skip(ftype)
4682
      else:
4683
        iprot.skip(ftype)
4684
      iprot.readFieldEnd()
4685
    iprot.readStructEnd()
4686
 
4687
  def write(self, oprot):
4688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4690
      return
5326 rajveer 4691
    oprot.writeStructBegin('updateUser_result')
3431 rajveer 4692
    if self.success is not None:
5326 rajveer 4693
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4694
      self.success.write(oprot)
94 ashish 4695
      oprot.writeFieldEnd()
3431 rajveer 4696
    if self.ucex is not None:
559 chandransh 4697
      oprot.writeFieldBegin('ucex', TType.STRUCT, 1)
4698
      self.ucex.write(oprot)
94 ashish 4699
      oprot.writeFieldEnd()
4700
    oprot.writeFieldStop()
4701
    oprot.writeStructEnd()
4702
 
3431 rajveer 4703
  def validate(self):
4704
    return
4705
 
4706
 
94 ashish 4707
  def __repr__(self):
4708
    L = ['%s=%r' % (key, value)
4709
      for key, value in self.__dict__.iteritems()]
4710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4711
 
4712
  def __eq__(self, other):
4713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4714
 
4715
  def __ne__(self, other):
4716
    return not (self == other)
4717
 
559 chandransh 4718
class authenticateUser_args:
94 ashish 4719
  """
4720
  Attributes:
4721
   - email
4722
   - password
4723
  """
4724
 
4725
  thrift_spec = (
4726
    None, # 0
4727
    (1, TType.STRING, 'email', None, None, ), # 1
4728
    (2, TType.STRING, 'password', None, None, ), # 2
4729
  )
4730
 
4731
  def __init__(self, email=None, password=None,):
4732
    self.email = email
4733
    self.password = password
4734
 
4735
  def read(self, iprot):
4736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4738
      return
4739
    iprot.readStructBegin()
4740
    while True:
4741
      (fname, ftype, fid) = iprot.readFieldBegin()
4742
      if ftype == TType.STOP:
4743
        break
4744
      if fid == 1:
4745
        if ftype == TType.STRING:
4746
          self.email = iprot.readString();
4747
        else:
4748
          iprot.skip(ftype)
4749
      elif fid == 2:
4750
        if ftype == TType.STRING:
4751
          self.password = iprot.readString();
4752
        else:
4753
          iprot.skip(ftype)
4754
      else:
4755
        iprot.skip(ftype)
4756
      iprot.readFieldEnd()
4757
    iprot.readStructEnd()
4758
 
4759
  def write(self, oprot):
4760
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4761
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4762
      return
559 chandransh 4763
    oprot.writeStructBegin('authenticateUser_args')
3431 rajveer 4764
    if self.email is not None:
94 ashish 4765
      oprot.writeFieldBegin('email', TType.STRING, 1)
4766
      oprot.writeString(self.email)
4767
      oprot.writeFieldEnd()
3431 rajveer 4768
    if self.password is not None:
94 ashish 4769
      oprot.writeFieldBegin('password', TType.STRING, 2)
4770
      oprot.writeString(self.password)
4771
      oprot.writeFieldEnd()
4772
    oprot.writeFieldStop()
4773
    oprot.writeStructEnd()
4774
 
3431 rajveer 4775
  def validate(self):
4776
    return
4777
 
4778
 
94 ashish 4779
  def __repr__(self):
4780
    L = ['%s=%r' % (key, value)
4781
      for key, value in self.__dict__.iteritems()]
4782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4783
 
4784
  def __eq__(self, other):
4785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4786
 
4787
  def __ne__(self, other):
4788
    return not (self == other)
4789
 
559 chandransh 4790
class authenticateUser_result:
94 ashish 4791
  """
4792
  Attributes:
4793
   - success
559 chandransh 4794
   - auex
94 ashish 4795
  """
4796
 
4797
  thrift_spec = (
559 chandransh 4798
    (0, TType.STRUCT, 'success', (User, User.thrift_spec), None, ), # 0
4799
    (1, TType.STRUCT, 'auex', (AuthenticationException, AuthenticationException.thrift_spec), None, ), # 1
94 ashish 4800
  )
4801
 
559 chandransh 4802
  def __init__(self, success=None, auex=None,):
94 ashish 4803
    self.success = success
559 chandransh 4804
    self.auex = auex
94 ashish 4805
 
4806
  def read(self, iprot):
4807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4809
      return
4810
    iprot.readStructBegin()
4811
    while True:
4812
      (fname, ftype, fid) = iprot.readFieldBegin()
4813
      if ftype == TType.STOP:
4814
        break
4815
      if fid == 0:
4816
        if ftype == TType.STRUCT:
559 chandransh 4817
          self.success = User()
94 ashish 4818
          self.success.read(iprot)
4819
        else:
4820
          iprot.skip(ftype)
4821
      elif fid == 1:
4822
        if ftype == TType.STRUCT:
559 chandransh 4823
          self.auex = AuthenticationException()
4824
          self.auex.read(iprot)
94 ashish 4825
        else:
4826
          iprot.skip(ftype)
4827
      else:
4828
        iprot.skip(ftype)
4829
      iprot.readFieldEnd()
4830
    iprot.readStructEnd()
4831
 
4832
  def write(self, oprot):
4833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4835
      return
559 chandransh 4836
    oprot.writeStructBegin('authenticateUser_result')
3431 rajveer 4837
    if self.success is not None:
94 ashish 4838
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4839
      self.success.write(oprot)
4840
      oprot.writeFieldEnd()
3431 rajveer 4841
    if self.auex is not None:
559 chandransh 4842
      oprot.writeFieldBegin('auex', TType.STRUCT, 1)
4843
      self.auex.write(oprot)
94 ashish 4844
      oprot.writeFieldEnd()
4845
    oprot.writeFieldStop()
4846
    oprot.writeStructEnd()
4847
 
3431 rajveer 4848
  def validate(self):
4849
    return
4850
 
4851
 
94 ashish 4852
  def __repr__(self):
4853
    L = ['%s=%r' % (key, value)
4854
      for key, value in self.__dict__.iteritems()]
4855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4856
 
4857
  def __eq__(self, other):
4858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4859
 
4860
  def __ne__(self, other):
4861
    return not (self == other)
4862
 
559 chandransh 4863
class userExists_args:
122 ashish 4864
  """
4865
  Attributes:
559 chandransh 4866
   - email
122 ashish 4867
  """
4868
 
4869
  thrift_spec = (
4870
    None, # 0
559 chandransh 4871
    (1, TType.STRING, 'email', None, None, ), # 1
122 ashish 4872
  )
4873
 
559 chandransh 4874
  def __init__(self, email=None,):
4875
    self.email = email
122 ashish 4876
 
4877
  def read(self, iprot):
4878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4880
      return
4881
    iprot.readStructBegin()
4882
    while True:
4883
      (fname, ftype, fid) = iprot.readFieldBegin()
4884
      if ftype == TType.STOP:
4885
        break
4886
      if fid == 1:
4887
        if ftype == TType.STRING:
559 chandransh 4888
          self.email = iprot.readString();
122 ashish 4889
        else:
4890
          iprot.skip(ftype)
559 chandransh 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
4900
    oprot.writeStructBegin('userExists_args')
3431 rajveer 4901
    if self.email is not None:
559 chandransh 4902
      oprot.writeFieldBegin('email', TType.STRING, 1)
4903
      oprot.writeString(self.email)
4904
      oprot.writeFieldEnd()
4905
    oprot.writeFieldStop()
4906
    oprot.writeStructEnd()
4907
 
3431 rajveer 4908
  def validate(self):
4909
    return
4910
 
4911
 
559 chandransh 4912
  def __repr__(self):
4913
    L = ['%s=%r' % (key, value)
4914
      for key, value in self.__dict__.iteritems()]
4915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4916
 
4917
  def __eq__(self, other):
4918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4919
 
4920
  def __ne__(self, other):
4921
    return not (self == other)
4922
 
4923
class userExists_result:
4924
  """
4925
  Attributes:
4926
   - success
4927
   - ucx
4928
  """
4929
 
4930
  thrift_spec = (
4931
    (0, TType.BOOL, 'success', None, None, ), # 0
4932
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
4933
  )
4934
 
4935
  def __init__(self, success=None, ucx=None,):
4936
    self.success = success
4937
    self.ucx = ucx
4938
 
4939
  def read(self, iprot):
4940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4942
      return
4943
    iprot.readStructBegin()
4944
    while True:
4945
      (fname, ftype, fid) = iprot.readFieldBegin()
4946
      if ftype == TType.STOP:
4947
        break
4948
      if fid == 0:
4949
        if ftype == TType.BOOL:
4950
          self.success = iprot.readBool();
4951
        else:
4952
          iprot.skip(ftype)
4953
      elif fid == 1:
4954
        if ftype == TType.STRUCT:
4955
          self.ucx = UserContextException()
4956
          self.ucx.read(iprot)
4957
        else:
4958
          iprot.skip(ftype)
4959
      else:
4960
        iprot.skip(ftype)
4961
      iprot.readFieldEnd()
4962
    iprot.readStructEnd()
4963
 
4964
  def write(self, oprot):
4965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4967
      return
4968
    oprot.writeStructBegin('userExists_result')
3431 rajveer 4969
    if self.success is not None:
559 chandransh 4970
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4971
      oprot.writeBool(self.success)
4972
      oprot.writeFieldEnd()
3431 rajveer 4973
    if self.ucx is not None:
559 chandransh 4974
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
4975
      self.ucx.write(oprot)
4976
      oprot.writeFieldEnd()
4977
    oprot.writeFieldStop()
4978
    oprot.writeStructEnd()
4979
 
3431 rajveer 4980
  def validate(self):
4981
    return
4982
 
4983
 
559 chandransh 4984
  def __repr__(self):
4985
    L = ['%s=%r' % (key, value)
4986
      for key, value in self.__dict__.iteritems()]
4987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4988
 
4989
  def __eq__(self, other):
4990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4991
 
4992
  def __ne__(self, other):
4993
    return not (self == other)
4994
 
4995
class addAddressForUser_args:
4996
  """
4997
  Attributes:
4998
   - userId
4999
   - address
5000
   - setDefault
5001
  """
5002
 
5003
  thrift_spec = (
5004
    None, # 0
5005
    (1, TType.I64, 'userId', None, None, ), # 1
5006
    (2, TType.STRUCT, 'address', (Address, Address.thrift_spec), None, ), # 2
567 rajveer 5007
    (3, TType.BOOL, 'setDefault', None, None, ), # 3
559 chandransh 5008
  )
5009
 
567 rajveer 5010
  def __init__(self, userId=None, address=None, setDefault=None,):
559 chandransh 5011
    self.userId = userId
5012
    self.address = address
5013
    self.setDefault = setDefault
5014
 
5015
  def read(self, iprot):
5016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5018
      return
5019
    iprot.readStructBegin()
5020
    while True:
5021
      (fname, ftype, fid) = iprot.readFieldBegin()
5022
      if ftype == TType.STOP:
5023
        break
5024
      if fid == 1:
5025
        if ftype == TType.I64:
5026
          self.userId = iprot.readI64();
5027
        else:
5028
          iprot.skip(ftype)
122 ashish 5029
      elif fid == 2:
559 chandransh 5030
        if ftype == TType.STRUCT:
5031
          self.address = Address()
5032
          self.address.read(iprot)
122 ashish 5033
        else:
5034
          iprot.skip(ftype)
5035
      elif fid == 3:
5036
        if ftype == TType.BOOL:
559 chandransh 5037
          self.setDefault = iprot.readBool();
122 ashish 5038
        else:
5039
          iprot.skip(ftype)
5040
      else:
5041
        iprot.skip(ftype)
5042
      iprot.readFieldEnd()
5043
    iprot.readStructEnd()
5044
 
5045
  def write(self, oprot):
5046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5048
      return
559 chandransh 5049
    oprot.writeStructBegin('addAddressForUser_args')
3431 rajveer 5050
    if self.userId is not None:
559 chandransh 5051
      oprot.writeFieldBegin('userId', TType.I64, 1)
5052
      oprot.writeI64(self.userId)
122 ashish 5053
      oprot.writeFieldEnd()
3431 rajveer 5054
    if self.address is not None:
559 chandransh 5055
      oprot.writeFieldBegin('address', TType.STRUCT, 2)
5056
      self.address.write(oprot)
122 ashish 5057
      oprot.writeFieldEnd()
3431 rajveer 5058
    if self.setDefault is not None:
567 rajveer 5059
      oprot.writeFieldBegin('setDefault', TType.BOOL, 3)
559 chandransh 5060
      oprot.writeBool(self.setDefault)
5061
      oprot.writeFieldEnd()
122 ashish 5062
    oprot.writeFieldStop()
5063
    oprot.writeStructEnd()
5064
 
3431 rajveer 5065
  def validate(self):
5066
    return
5067
 
5068
 
122 ashish 5069
  def __repr__(self):
5070
    L = ['%s=%r' % (key, value)
5071
      for key, value in self.__dict__.iteritems()]
5072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5073
 
5074
  def __eq__(self, other):
5075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5076
 
5077
  def __ne__(self, other):
5078
    return not (self == other)
5079
 
559 chandransh 5080
class addAddressForUser_result:
122 ashish 5081
  """
5082
  Attributes:
5083
   - success
559 chandransh 5084
   - ucx
122 ashish 5085
  """
5086
 
5087
  thrift_spec = (
567 rajveer 5088
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 5089
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
122 ashish 5090
  )
5091
 
559 chandransh 5092
  def __init__(self, success=None, ucx=None,):
122 ashish 5093
    self.success = success
559 chandransh 5094
    self.ucx = ucx
122 ashish 5095
 
5096
  def read(self, iprot):
5097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5099
      return
5100
    iprot.readStructBegin()
5101
    while True:
5102
      (fname, ftype, fid) = iprot.readFieldBegin()
5103
      if ftype == TType.STOP:
5104
        break
5105
      if fid == 0:
567 rajveer 5106
        if ftype == TType.I64:
5107
          self.success = iprot.readI64();
122 ashish 5108
        else:
5109
          iprot.skip(ftype)
5110
      elif fid == 1:
5111
        if ftype == TType.STRUCT:
559 chandransh 5112
          self.ucx = UserContextException()
5113
          self.ucx.read(iprot)
122 ashish 5114
        else:
5115
          iprot.skip(ftype)
5116
      else:
5117
        iprot.skip(ftype)
5118
      iprot.readFieldEnd()
5119
    iprot.readStructEnd()
5120
 
5121
  def write(self, oprot):
5122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5124
      return
559 chandransh 5125
    oprot.writeStructBegin('addAddressForUser_result')
3431 rajveer 5126
    if self.success is not None:
567 rajveer 5127
      oprot.writeFieldBegin('success', TType.I64, 0)
5128
      oprot.writeI64(self.success)
122 ashish 5129
      oprot.writeFieldEnd()
3431 rajveer 5130
    if self.ucx is not None:
559 chandransh 5131
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5132
      self.ucx.write(oprot)
122 ashish 5133
      oprot.writeFieldEnd()
5134
    oprot.writeFieldStop()
5135
    oprot.writeStructEnd()
5136
 
3431 rajveer 5137
  def validate(self):
5138
    return
5139
 
5140
 
122 ashish 5141
  def __repr__(self):
5142
    L = ['%s=%r' % (key, value)
5143
      for key, value in self.__dict__.iteritems()]
5144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5145
 
5146
  def __eq__(self, other):
5147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5148
 
5149
  def __ne__(self, other):
5150
    return not (self == other)
5151
 
559 chandransh 5152
class removeAddressForUser_args:
94 ashish 5153
  """
5154
  Attributes:
559 chandransh 5155
   - userid
5156
   - addressId
94 ashish 5157
  """
5158
 
5159
  thrift_spec = (
5160
    None, # 0
559 chandransh 5161
    (1, TType.I64, 'userid', None, None, ), # 1
5162
    (2, TType.I64, 'addressId', None, None, ), # 2
94 ashish 5163
  )
5164
 
559 chandransh 5165
  def __init__(self, userid=None, addressId=None,):
5166
    self.userid = userid
5167
    self.addressId = addressId
94 ashish 5168
 
5169
  def read(self, iprot):
5170
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5171
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5172
      return
5173
    iprot.readStructBegin()
5174
    while True:
5175
      (fname, ftype, fid) = iprot.readFieldBegin()
5176
      if ftype == TType.STOP:
5177
        break
5178
      if fid == 1:
559 chandransh 5179
        if ftype == TType.I64:
5180
          self.userid = iprot.readI64();
94 ashish 5181
        else:
5182
          iprot.skip(ftype)
559 chandransh 5183
      elif fid == 2:
5184
        if ftype == TType.I64:
5185
          self.addressId = iprot.readI64();
5186
        else:
5187
          iprot.skip(ftype)
94 ashish 5188
      else:
5189
        iprot.skip(ftype)
5190
      iprot.readFieldEnd()
5191
    iprot.readStructEnd()
5192
 
5193
  def write(self, oprot):
5194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5196
      return
559 chandransh 5197
    oprot.writeStructBegin('removeAddressForUser_args')
3431 rajveer 5198
    if self.userid is not None:
559 chandransh 5199
      oprot.writeFieldBegin('userid', TType.I64, 1)
5200
      oprot.writeI64(self.userid)
94 ashish 5201
      oprot.writeFieldEnd()
3431 rajveer 5202
    if self.addressId is not None:
559 chandransh 5203
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5204
      oprot.writeI64(self.addressId)
5205
      oprot.writeFieldEnd()
94 ashish 5206
    oprot.writeFieldStop()
5207
    oprot.writeStructEnd()
5208
 
3431 rajveer 5209
  def validate(self):
5210
    return
5211
 
5212
 
94 ashish 5213
  def __repr__(self):
5214
    L = ['%s=%r' % (key, value)
5215
      for key, value in self.__dict__.iteritems()]
5216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5217
 
5218
  def __eq__(self, other):
5219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5220
 
5221
  def __ne__(self, other):
5222
    return not (self == other)
5223
 
559 chandransh 5224
class removeAddressForUser_result:
94 ashish 5225
  """
5226
  Attributes:
5227
   - success
5228
   - ucx
5229
  """
5230
 
5231
  thrift_spec = (
5232
    (0, TType.BOOL, 'success', None, None, ), # 0
5233
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5234
  )
5235
 
5236
  def __init__(self, success=None, ucx=None,):
5237
    self.success = success
5238
    self.ucx = ucx
5239
 
5240
  def read(self, iprot):
5241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5243
      return
5244
    iprot.readStructBegin()
5245
    while True:
5246
      (fname, ftype, fid) = iprot.readFieldBegin()
5247
      if ftype == TType.STOP:
5248
        break
5249
      if fid == 0:
5250
        if ftype == TType.BOOL:
5251
          self.success = iprot.readBool();
5252
        else:
5253
          iprot.skip(ftype)
5254
      elif fid == 1:
5255
        if ftype == TType.STRUCT:
5256
          self.ucx = UserContextException()
5257
          self.ucx.read(iprot)
5258
        else:
5259
          iprot.skip(ftype)
5260
      else:
5261
        iprot.skip(ftype)
5262
      iprot.readFieldEnd()
5263
    iprot.readStructEnd()
5264
 
5265
  def write(self, oprot):
5266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5268
      return
559 chandransh 5269
    oprot.writeStructBegin('removeAddressForUser_result')
3431 rajveer 5270
    if self.success is not None:
94 ashish 5271
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5272
      oprot.writeBool(self.success)
5273
      oprot.writeFieldEnd()
3431 rajveer 5274
    if self.ucx is not None:
94 ashish 5275
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5276
      self.ucx.write(oprot)
5277
      oprot.writeFieldEnd()
5278
    oprot.writeFieldStop()
5279
    oprot.writeStructEnd()
5280
 
3431 rajveer 5281
  def validate(self):
5282
    return
5283
 
5284
 
94 ashish 5285
  def __repr__(self):
5286
    L = ['%s=%r' % (key, value)
5287
      for key, value in self.__dict__.iteritems()]
5288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5289
 
5290
  def __eq__(self, other):
5291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5292
 
5293
  def __ne__(self, other):
5294
    return not (self == other)
5295
 
559 chandransh 5296
class setUserAsLoggedIn_args:
94 ashish 5297
  """
5298
  Attributes:
559 chandransh 5299
   - userId
94 ashish 5300
   - timestamp
5301
  """
5302
 
5303
  thrift_spec = (
5304
    None, # 0
559 chandransh 5305
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 5306
    (2, TType.I64, 'timestamp', None, None, ), # 2
5307
  )
5308
 
559 chandransh 5309
  def __init__(self, userId=None, timestamp=None,):
5310
    self.userId = userId
94 ashish 5311
    self.timestamp = timestamp
5312
 
5313
  def read(self, iprot):
5314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5316
      return
5317
    iprot.readStructBegin()
5318
    while True:
5319
      (fname, ftype, fid) = iprot.readFieldBegin()
5320
      if ftype == TType.STOP:
5321
        break
5322
      if fid == 1:
559 chandransh 5323
        if ftype == TType.I64:
5324
          self.userId = iprot.readI64();
94 ashish 5325
        else:
5326
          iprot.skip(ftype)
5327
      elif fid == 2:
5328
        if ftype == TType.I64:
5329
          self.timestamp = iprot.readI64();
5330
        else:
5331
          iprot.skip(ftype)
5332
      else:
5333
        iprot.skip(ftype)
5334
      iprot.readFieldEnd()
5335
    iprot.readStructEnd()
5336
 
5337
  def write(self, oprot):
5338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5340
      return
559 chandransh 5341
    oprot.writeStructBegin('setUserAsLoggedIn_args')
3431 rajveer 5342
    if self.userId is not None:
559 chandransh 5343
      oprot.writeFieldBegin('userId', TType.I64, 1)
5344
      oprot.writeI64(self.userId)
94 ashish 5345
      oprot.writeFieldEnd()
3431 rajveer 5346
    if self.timestamp is not None:
94 ashish 5347
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
5348
      oprot.writeI64(self.timestamp)
5349
      oprot.writeFieldEnd()
5350
    oprot.writeFieldStop()
5351
    oprot.writeStructEnd()
5352
 
3431 rajveer 5353
  def validate(self):
5354
    return
5355
 
5356
 
94 ashish 5357
  def __repr__(self):
5358
    L = ['%s=%r' % (key, value)
5359
      for key, value in self.__dict__.iteritems()]
5360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5361
 
5362
  def __eq__(self, other):
5363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5364
 
5365
  def __ne__(self, other):
5366
    return not (self == other)
5367
 
559 chandransh 5368
class setUserAsLoggedIn_result:
94 ashish 5369
  """
5370
  Attributes:
5371
   - success
5372
   - ucx
5373
  """
5374
 
5375
  thrift_spec = (
5376
    (0, TType.BOOL, 'success', None, None, ), # 0
5377
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5378
  )
5379
 
5380
  def __init__(self, success=None, ucx=None,):
5381
    self.success = success
5382
    self.ucx = ucx
5383
 
5384
  def read(self, iprot):
5385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5387
      return
5388
    iprot.readStructBegin()
5389
    while True:
5390
      (fname, ftype, fid) = iprot.readFieldBegin()
5391
      if ftype == TType.STOP:
5392
        break
5393
      if fid == 0:
5394
        if ftype == TType.BOOL:
5395
          self.success = iprot.readBool();
5396
        else:
5397
          iprot.skip(ftype)
5398
      elif fid == 1:
5399
        if ftype == TType.STRUCT:
5400
          self.ucx = UserContextException()
5401
          self.ucx.read(iprot)
5402
        else:
5403
          iprot.skip(ftype)
5404
      else:
5405
        iprot.skip(ftype)
5406
      iprot.readFieldEnd()
5407
    iprot.readStructEnd()
5408
 
5409
  def write(self, oprot):
5410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5412
      return
559 chandransh 5413
    oprot.writeStructBegin('setUserAsLoggedIn_result')
3431 rajveer 5414
    if self.success is not None:
94 ashish 5415
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5416
      oprot.writeBool(self.success)
5417
      oprot.writeFieldEnd()
3431 rajveer 5418
    if self.ucx is not None:
94 ashish 5419
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5420
      self.ucx.write(oprot)
5421
      oprot.writeFieldEnd()
5422
    oprot.writeFieldStop()
5423
    oprot.writeStructEnd()
5424
 
3431 rajveer 5425
  def validate(self):
5426
    return
5427
 
5428
 
94 ashish 5429
  def __repr__(self):
5430
    L = ['%s=%r' % (key, value)
5431
      for key, value in self.__dict__.iteritems()]
5432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5433
 
5434
  def __eq__(self, other):
5435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5436
 
5437
  def __ne__(self, other):
5438
    return not (self == other)
5439
 
559 chandransh 5440
class setUserAsLoggedOut_args:
94 ashish 5441
  """
5442
  Attributes:
5443
   - userid
5444
   - timestamp
5445
  """
5446
 
5447
  thrift_spec = (
5448
    None, # 0
559 chandransh 5449
    (1, TType.I64, 'userid', None, None, ), # 1
5450
    (2, TType.I64, 'timestamp', None, None, ), # 2
94 ashish 5451
  )
5452
 
559 chandransh 5453
  def __init__(self, userid=None, timestamp=None,):
94 ashish 5454
    self.userid = userid
5455
    self.timestamp = timestamp
5456
 
5457
  def read(self, iprot):
5458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5460
      return
5461
    iprot.readStructBegin()
5462
    while True:
5463
      (fname, ftype, fid) = iprot.readFieldBegin()
5464
      if ftype == TType.STOP:
5465
        break
5466
      if fid == 1:
5467
        if ftype == TType.I64:
5468
          self.userid = iprot.readI64();
5469
        else:
5470
          iprot.skip(ftype)
559 chandransh 5471
      elif fid == 2:
94 ashish 5472
        if ftype == TType.I64:
5473
          self.timestamp = iprot.readI64();
5474
        else:
5475
          iprot.skip(ftype)
5476
      else:
5477
        iprot.skip(ftype)
5478
      iprot.readFieldEnd()
5479
    iprot.readStructEnd()
5480
 
5481
  def write(self, oprot):
5482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5484
      return
559 chandransh 5485
    oprot.writeStructBegin('setUserAsLoggedOut_args')
3431 rajveer 5486
    if self.userid is not None:
559 chandransh 5487
      oprot.writeFieldBegin('userid', TType.I64, 1)
94 ashish 5488
      oprot.writeI64(self.userid)
5489
      oprot.writeFieldEnd()
3431 rajveer 5490
    if self.timestamp is not None:
559 chandransh 5491
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
94 ashish 5492
      oprot.writeI64(self.timestamp)
5493
      oprot.writeFieldEnd()
5494
    oprot.writeFieldStop()
5495
    oprot.writeStructEnd()
5496
 
3431 rajveer 5497
  def validate(self):
5498
    return
5499
 
5500
 
94 ashish 5501
  def __repr__(self):
5502
    L = ['%s=%r' % (key, value)
5503
      for key, value in self.__dict__.iteritems()]
5504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5505
 
5506
  def __eq__(self, other):
5507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5508
 
5509
  def __ne__(self, other):
5510
    return not (self == other)
5511
 
559 chandransh 5512
class setUserAsLoggedOut_result:
94 ashish 5513
  """
5514
  Attributes:
5515
   - success
5516
   - ucx
5517
  """
5518
 
5519
  thrift_spec = (
5520
    (0, TType.BOOL, 'success', None, None, ), # 0
5521
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5522
  )
5523
 
5524
  def __init__(self, success=None, ucx=None,):
5525
    self.success = success
5526
    self.ucx = ucx
5527
 
5528
  def read(self, iprot):
5529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5531
      return
5532
    iprot.readStructBegin()
5533
    while True:
5534
      (fname, ftype, fid) = iprot.readFieldBegin()
5535
      if ftype == TType.STOP:
5536
        break
5537
      if fid == 0:
5538
        if ftype == TType.BOOL:
5539
          self.success = iprot.readBool();
5540
        else:
5541
          iprot.skip(ftype)
5542
      elif fid == 1:
5543
        if ftype == TType.STRUCT:
5544
          self.ucx = UserContextException()
5545
          self.ucx.read(iprot)
5546
        else:
5547
          iprot.skip(ftype)
5548
      else:
5549
        iprot.skip(ftype)
5550
      iprot.readFieldEnd()
5551
    iprot.readStructEnd()
5552
 
5553
  def write(self, oprot):
5554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5556
      return
559 chandransh 5557
    oprot.writeStructBegin('setUserAsLoggedOut_result')
3431 rajveer 5558
    if self.success is not None:
94 ashish 5559
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5560
      oprot.writeBool(self.success)
5561
      oprot.writeFieldEnd()
3431 rajveer 5562
    if self.ucx is not None:
94 ashish 5563
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5564
      self.ucx.write(oprot)
5565
      oprot.writeFieldEnd()
5566
    oprot.writeFieldStop()
5567
    oprot.writeStructEnd()
5568
 
3431 rajveer 5569
  def validate(self):
5570
    return
5571
 
5572
 
94 ashish 5573
  def __repr__(self):
5574
    L = ['%s=%r' % (key, value)
5575
      for key, value in self.__dict__.iteritems()]
5576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5577
 
5578
  def __eq__(self, other):
5579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5580
 
5581
  def __ne__(self, other):
5582
    return not (self == other)
5583
 
559 chandransh 5584
class setDefaultAddress_args:
94 ashish 5585
  """
5586
  Attributes:
5587
   - userid
5588
   - addressId
5589
  """
5590
 
5591
  thrift_spec = (
5592
    None, # 0
5593
    (1, TType.I64, 'userid', None, None, ), # 1
5594
    (2, TType.I64, 'addressId', None, None, ), # 2
5595
  )
5596
 
5597
  def __init__(self, userid=None, addressId=None,):
5598
    self.userid = userid
5599
    self.addressId = addressId
5600
 
5601
  def read(self, iprot):
5602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5604
      return
5605
    iprot.readStructBegin()
5606
    while True:
5607
      (fname, ftype, fid) = iprot.readFieldBegin()
5608
      if ftype == TType.STOP:
5609
        break
5610
      if fid == 1:
5611
        if ftype == TType.I64:
5612
          self.userid = iprot.readI64();
5613
        else:
5614
          iprot.skip(ftype)
5615
      elif fid == 2:
5616
        if ftype == TType.I64:
5617
          self.addressId = iprot.readI64();
5618
        else:
5619
          iprot.skip(ftype)
5620
      else:
5621
        iprot.skip(ftype)
5622
      iprot.readFieldEnd()
5623
    iprot.readStructEnd()
5624
 
5625
  def write(self, oprot):
5626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5628
      return
559 chandransh 5629
    oprot.writeStructBegin('setDefaultAddress_args')
3431 rajveer 5630
    if self.userid is not None:
94 ashish 5631
      oprot.writeFieldBegin('userid', TType.I64, 1)
5632
      oprot.writeI64(self.userid)
5633
      oprot.writeFieldEnd()
3431 rajveer 5634
    if self.addressId is not None:
94 ashish 5635
      oprot.writeFieldBegin('addressId', TType.I64, 2)
5636
      oprot.writeI64(self.addressId)
5637
      oprot.writeFieldEnd()
5638
    oprot.writeFieldStop()
5639
    oprot.writeStructEnd()
5640
 
3431 rajveer 5641
  def validate(self):
5642
    return
5643
 
5644
 
94 ashish 5645
  def __repr__(self):
5646
    L = ['%s=%r' % (key, value)
5647
      for key, value in self.__dict__.iteritems()]
5648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5649
 
5650
  def __eq__(self, other):
5651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5652
 
5653
  def __ne__(self, other):
5654
    return not (self == other)
5655
 
559 chandransh 5656
class setDefaultAddress_result:
94 ashish 5657
  """
5658
  Attributes:
5659
   - success
5660
   - ucx
5661
  """
5662
 
5663
  thrift_spec = (
5664
    (0, TType.BOOL, 'success', None, None, ), # 0
5665
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5666
  )
5667
 
5668
  def __init__(self, success=None, ucx=None,):
5669
    self.success = success
5670
    self.ucx = ucx
5671
 
5672
  def read(self, iprot):
5673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5675
      return
5676
    iprot.readStructBegin()
5677
    while True:
5678
      (fname, ftype, fid) = iprot.readFieldBegin()
5679
      if ftype == TType.STOP:
5680
        break
5681
      if fid == 0:
5682
        if ftype == TType.BOOL:
5683
          self.success = iprot.readBool();
5684
        else:
5685
          iprot.skip(ftype)
5686
      elif fid == 1:
5687
        if ftype == TType.STRUCT:
5688
          self.ucx = UserContextException()
5689
          self.ucx.read(iprot)
5690
        else:
5691
          iprot.skip(ftype)
5692
      else:
5693
        iprot.skip(ftype)
5694
      iprot.readFieldEnd()
5695
    iprot.readStructEnd()
5696
 
5697
  def write(self, oprot):
5698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5700
      return
559 chandransh 5701
    oprot.writeStructBegin('setDefaultAddress_result')
3431 rajveer 5702
    if self.success is not None:
94 ashish 5703
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5704
      oprot.writeBool(self.success)
5705
      oprot.writeFieldEnd()
3431 rajveer 5706
    if self.ucx is not None:
94 ashish 5707
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5708
      self.ucx.write(oprot)
5709
      oprot.writeFieldEnd()
5710
    oprot.writeFieldStop()
5711
    oprot.writeStructEnd()
5712
 
3431 rajveer 5713
  def validate(self):
5714
    return
5715
 
5716
 
94 ashish 5717
  def __repr__(self):
5718
    L = ['%s=%r' % (key, value)
5719
      for key, value in self.__dict__.iteritems()]
5720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5721
 
5722
  def __eq__(self, other):
5723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5724
 
5725
  def __ne__(self, other):
5726
    return not (self == other)
5727
 
559 chandransh 5728
class updatePassword_args:
94 ashish 5729
  """
5730
  Attributes:
559 chandransh 5731
   - userid
594 rajveer 5732
   - oldPassword
5733
   - newPassword
94 ashish 5734
  """
5735
 
5736
  thrift_spec = (
5737
    None, # 0
559 chandransh 5738
    (1, TType.I64, 'userid', None, None, ), # 1
594 rajveer 5739
    (2, TType.STRING, 'oldPassword', None, None, ), # 2
5740
    (3, TType.STRING, 'newPassword', None, None, ), # 3
94 ashish 5741
  )
5742
 
594 rajveer 5743
  def __init__(self, userid=None, oldPassword=None, newPassword=None,):
559 chandransh 5744
    self.userid = userid
594 rajveer 5745
    self.oldPassword = oldPassword
5746
    self.newPassword = newPassword
94 ashish 5747
 
5748
  def read(self, iprot):
5749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5751
      return
5752
    iprot.readStructBegin()
5753
    while True:
5754
      (fname, ftype, fid) = iprot.readFieldBegin()
5755
      if ftype == TType.STOP:
5756
        break
5757
      if fid == 1:
5758
        if ftype == TType.I64:
559 chandransh 5759
          self.userid = iprot.readI64();
94 ashish 5760
        else:
5761
          iprot.skip(ftype)
5762
      elif fid == 2:
559 chandransh 5763
        if ftype == TType.STRING:
594 rajveer 5764
          self.oldPassword = iprot.readString();
94 ashish 5765
        else:
5766
          iprot.skip(ftype)
594 rajveer 5767
      elif fid == 3:
5768
        if ftype == TType.STRING:
5769
          self.newPassword = iprot.readString();
5770
        else:
5771
          iprot.skip(ftype)
94 ashish 5772
      else:
5773
        iprot.skip(ftype)
5774
      iprot.readFieldEnd()
5775
    iprot.readStructEnd()
5776
 
5777
  def write(self, oprot):
5778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5780
      return
559 chandransh 5781
    oprot.writeStructBegin('updatePassword_args')
3431 rajveer 5782
    if self.userid is not None:
559 chandransh 5783
      oprot.writeFieldBegin('userid', TType.I64, 1)
5784
      oprot.writeI64(self.userid)
94 ashish 5785
      oprot.writeFieldEnd()
3431 rajveer 5786
    if self.oldPassword is not None:
594 rajveer 5787
      oprot.writeFieldBegin('oldPassword', TType.STRING, 2)
5788
      oprot.writeString(self.oldPassword)
94 ashish 5789
      oprot.writeFieldEnd()
3431 rajveer 5790
    if self.newPassword is not None:
594 rajveer 5791
      oprot.writeFieldBegin('newPassword', TType.STRING, 3)
5792
      oprot.writeString(self.newPassword)
5793
      oprot.writeFieldEnd()
94 ashish 5794
    oprot.writeFieldStop()
5795
    oprot.writeStructEnd()
5796
 
3431 rajveer 5797
  def validate(self):
5798
    return
5799
 
5800
 
94 ashish 5801
  def __repr__(self):
5802
    L = ['%s=%r' % (key, value)
5803
      for key, value in self.__dict__.iteritems()]
5804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5805
 
5806
  def __eq__(self, other):
5807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5808
 
5809
  def __ne__(self, other):
5810
    return not (self == other)
5811
 
559 chandransh 5812
class updatePassword_result:
94 ashish 5813
  """
5814
  Attributes:
5815
   - success
5816
   - ucx
5817
  """
5818
 
5819
  thrift_spec = (
5820
    (0, TType.BOOL, 'success', None, None, ), # 0
5821
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5822
  )
5823
 
5824
  def __init__(self, success=None, ucx=None,):
5825
    self.success = success
5826
    self.ucx = ucx
5827
 
5828
  def read(self, iprot):
5829
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5830
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5831
      return
5832
    iprot.readStructBegin()
5833
    while True:
5834
      (fname, ftype, fid) = iprot.readFieldBegin()
5835
      if ftype == TType.STOP:
5836
        break
5837
      if fid == 0:
5838
        if ftype == TType.BOOL:
5839
          self.success = iprot.readBool();
5840
        else:
5841
          iprot.skip(ftype)
5842
      elif fid == 1:
5843
        if ftype == TType.STRUCT:
5844
          self.ucx = UserContextException()
5845
          self.ucx.read(iprot)
5846
        else:
5847
          iprot.skip(ftype)
5848
      else:
5849
        iprot.skip(ftype)
5850
      iprot.readFieldEnd()
5851
    iprot.readStructEnd()
5852
 
5853
  def write(self, oprot):
5854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5856
      return
559 chandransh 5857
    oprot.writeStructBegin('updatePassword_result')
3431 rajveer 5858
    if self.success is not None:
94 ashish 5859
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5860
      oprot.writeBool(self.success)
5861
      oprot.writeFieldEnd()
3431 rajveer 5862
    if self.ucx is not None:
94 ashish 5863
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
5864
      self.ucx.write(oprot)
5865
      oprot.writeFieldEnd()
5866
    oprot.writeFieldStop()
5867
    oprot.writeStructEnd()
5868
 
3431 rajveer 5869
  def validate(self):
5870
    return
5871
 
5872
 
94 ashish 5873
  def __repr__(self):
5874
    L = ['%s=%r' % (key, value)
5875
      for key, value in self.__dict__.iteritems()]
5876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5877
 
5878
  def __eq__(self, other):
5879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5880
 
5881
  def __ne__(self, other):
5882
    return not (self == other)
5883
 
581 rajveer 5884
class forgotPassword_args:
5885
  """
5886
  Attributes:
5887
   - email
884 rajveer 5888
   - newPassword
581 rajveer 5889
  """
5890
 
5891
  thrift_spec = (
5892
    None, # 0
5893
    (1, TType.STRING, 'email', None, None, ), # 1
884 rajveer 5894
    (2, TType.STRING, 'newPassword', None, None, ), # 2
581 rajveer 5895
  )
5896
 
884 rajveer 5897
  def __init__(self, email=None, newPassword=None,):
581 rajveer 5898
    self.email = email
884 rajveer 5899
    self.newPassword = newPassword
581 rajveer 5900
 
5901
  def read(self, iprot):
5902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5904
      return
5905
    iprot.readStructBegin()
5906
    while True:
5907
      (fname, ftype, fid) = iprot.readFieldBegin()
5908
      if ftype == TType.STOP:
5909
        break
5910
      if fid == 1:
5911
        if ftype == TType.STRING:
5912
          self.email = iprot.readString();
5913
        else:
5914
          iprot.skip(ftype)
884 rajveer 5915
      elif fid == 2:
5916
        if ftype == TType.STRING:
5917
          self.newPassword = iprot.readString();
5918
        else:
5919
          iprot.skip(ftype)
581 rajveer 5920
      else:
5921
        iprot.skip(ftype)
5922
      iprot.readFieldEnd()
5923
    iprot.readStructEnd()
5924
 
5925
  def write(self, oprot):
5926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5928
      return
5929
    oprot.writeStructBegin('forgotPassword_args')
3431 rajveer 5930
    if self.email is not None:
581 rajveer 5931
      oprot.writeFieldBegin('email', TType.STRING, 1)
5932
      oprot.writeString(self.email)
5933
      oprot.writeFieldEnd()
3431 rajveer 5934
    if self.newPassword is not None:
884 rajveer 5935
      oprot.writeFieldBegin('newPassword', TType.STRING, 2)
5936
      oprot.writeString(self.newPassword)
5937
      oprot.writeFieldEnd()
581 rajveer 5938
    oprot.writeFieldStop()
5939
    oprot.writeStructEnd()
5940
 
3431 rajveer 5941
  def validate(self):
5942
    return
5943
 
5944
 
581 rajveer 5945
  def __repr__(self):
5946
    L = ['%s=%r' % (key, value)
5947
      for key, value in self.__dict__.iteritems()]
5948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5949
 
5950
  def __eq__(self, other):
5951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5952
 
5953
  def __ne__(self, other):
5954
    return not (self == other)
5955
 
5956
class forgotPassword_result:
5957
  """
5958
  Attributes:
5959
   - success
5960
   - ucx
5961
  """
5962
 
5963
  thrift_spec = (
5964
    (0, TType.BOOL, 'success', None, None, ), # 0
5965
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
5966
  )
5967
 
5968
  def __init__(self, success=None, ucx=None,):
5969
    self.success = success
5970
    self.ucx = ucx
5971
 
5972
  def read(self, iprot):
5973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5975
      return
5976
    iprot.readStructBegin()
5977
    while True:
5978
      (fname, ftype, fid) = iprot.readFieldBegin()
5979
      if ftype == TType.STOP:
5980
        break
5981
      if fid == 0:
5982
        if ftype == TType.BOOL:
5983
          self.success = iprot.readBool();
5984
        else:
5985
          iprot.skip(ftype)
5986
      elif fid == 1:
5987
        if ftype == TType.STRUCT:
5988
          self.ucx = UserContextException()
5989
          self.ucx.read(iprot)
5990
        else:
5991
          iprot.skip(ftype)
5992
      else:
5993
        iprot.skip(ftype)
5994
      iprot.readFieldEnd()
5995
    iprot.readStructEnd()
5996
 
5997
  def write(self, oprot):
5998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6000
      return
6001
    oprot.writeStructBegin('forgotPassword_result')
3431 rajveer 6002
    if self.success is not None:
581 rajveer 6003
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6004
      oprot.writeBool(self.success)
6005
      oprot.writeFieldEnd()
3431 rajveer 6006
    if self.ucx is not None:
581 rajveer 6007
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6008
      self.ucx.write(oprot)
6009
      oprot.writeFieldEnd()
6010
    oprot.writeFieldStop()
6011
    oprot.writeStructEnd()
6012
 
3431 rajveer 6013
  def validate(self):
6014
    return
6015
 
6016
 
581 rajveer 6017
  def __repr__(self):
6018
    L = ['%s=%r' % (key, value)
6019
      for key, value in self.__dict__.iteritems()]
6020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6021
 
6022
  def __eq__(self, other):
6023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6024
 
6025
  def __ne__(self, other):
6026
    return not (self == other)
6027
 
594 rajveer 6028
class getAllAddressesForUser_args:
6029
  """
6030
  Attributes:
6031
   - userId
6032
  """
6033
 
6034
  thrift_spec = (
6035
    None, # 0
6036
    (1, TType.I64, 'userId', None, None, ), # 1
6037
  )
6038
 
6039
  def __init__(self, userId=None,):
6040
    self.userId = userId
6041
 
6042
  def read(self, iprot):
6043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6045
      return
6046
    iprot.readStructBegin()
6047
    while True:
6048
      (fname, ftype, fid) = iprot.readFieldBegin()
6049
      if ftype == TType.STOP:
6050
        break
6051
      if fid == 1:
6052
        if ftype == TType.I64:
6053
          self.userId = iprot.readI64();
6054
        else:
6055
          iprot.skip(ftype)
6056
      else:
6057
        iprot.skip(ftype)
6058
      iprot.readFieldEnd()
6059
    iprot.readStructEnd()
6060
 
6061
  def write(self, oprot):
6062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6064
      return
6065
    oprot.writeStructBegin('getAllAddressesForUser_args')
3431 rajveer 6066
    if self.userId is not None:
594 rajveer 6067
      oprot.writeFieldBegin('userId', TType.I64, 1)
6068
      oprot.writeI64(self.userId)
6069
      oprot.writeFieldEnd()
6070
    oprot.writeFieldStop()
6071
    oprot.writeStructEnd()
6072
 
3431 rajveer 6073
  def validate(self):
6074
    return
6075
 
6076
 
594 rajveer 6077
  def __repr__(self):
6078
    L = ['%s=%r' % (key, value)
6079
      for key, value in self.__dict__.iteritems()]
6080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6081
 
6082
  def __eq__(self, other):
6083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6084
 
6085
  def __ne__(self, other):
6086
    return not (self == other)
6087
 
6088
class getAllAddressesForUser_result:
6089
  """
6090
  Attributes:
6091
   - success
6092
   - ucx
6093
  """
6094
 
6095
  thrift_spec = (
6096
    (0, TType.LIST, 'success', (TType.STRUCT,(Address, Address.thrift_spec)), None, ), # 0
6097
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6098
  )
6099
 
6100
  def __init__(self, success=None, ucx=None,):
6101
    self.success = success
6102
    self.ucx = ucx
6103
 
6104
  def read(self, iprot):
6105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6107
      return
6108
    iprot.readStructBegin()
6109
    while True:
6110
      (fname, ftype, fid) = iprot.readFieldBegin()
6111
      if ftype == TType.STOP:
6112
        break
6113
      if fid == 0:
6114
        if ftype == TType.LIST:
6115
          self.success = []
5326 rajveer 6116
          (_etype61, _size58) = iprot.readListBegin()
6117
          for _i62 in xrange(_size58):
6118
            _elem63 = Address()
6119
            _elem63.read(iprot)
6120
            self.success.append(_elem63)
594 rajveer 6121
          iprot.readListEnd()
6122
        else:
6123
          iprot.skip(ftype)
6124
      elif fid == 1:
6125
        if ftype == TType.STRUCT:
6126
          self.ucx = UserContextException()
6127
          self.ucx.read(iprot)
6128
        else:
6129
          iprot.skip(ftype)
6130
      else:
6131
        iprot.skip(ftype)
6132
      iprot.readFieldEnd()
6133
    iprot.readStructEnd()
6134
 
6135
  def write(self, oprot):
6136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6138
      return
6139
    oprot.writeStructBegin('getAllAddressesForUser_result')
3431 rajveer 6140
    if self.success is not None:
594 rajveer 6141
      oprot.writeFieldBegin('success', TType.LIST, 0)
6142
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 6143
      for iter64 in self.success:
6144
        iter64.write(oprot)
594 rajveer 6145
      oprot.writeListEnd()
6146
      oprot.writeFieldEnd()
3431 rajveer 6147
    if self.ucx is not None:
594 rajveer 6148
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6149
      self.ucx.write(oprot)
6150
      oprot.writeFieldEnd()
6151
    oprot.writeFieldStop()
6152
    oprot.writeStructEnd()
6153
 
3431 rajveer 6154
  def validate(self):
6155
    return
6156
 
6157
 
594 rajveer 6158
  def __repr__(self):
6159
    L = ['%s=%r' % (key, value)
6160
      for key, value in self.__dict__.iteritems()]
6161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6162
 
6163
  def __eq__(self, other):
6164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6165
 
6166
  def __ne__(self, other):
6167
    return not (self == other)
6168
 
1894 vikas 6169
class getAddressById_args:
6170
  """
6171
  Attributes:
6172
   - addressId
6173
  """
6174
 
6175
  thrift_spec = (
6176
    None, # 0
6177
    (1, TType.I64, 'addressId', None, None, ), # 1
6178
  )
6179
 
6180
  def __init__(self, addressId=None,):
6181
    self.addressId = addressId
6182
 
6183
  def read(self, iprot):
6184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6186
      return
6187
    iprot.readStructBegin()
6188
    while True:
6189
      (fname, ftype, fid) = iprot.readFieldBegin()
6190
      if ftype == TType.STOP:
6191
        break
6192
      if fid == 1:
6193
        if ftype == TType.I64:
6194
          self.addressId = iprot.readI64();
6195
        else:
6196
          iprot.skip(ftype)
6197
      else:
6198
        iprot.skip(ftype)
6199
      iprot.readFieldEnd()
6200
    iprot.readStructEnd()
6201
 
6202
  def write(self, oprot):
6203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6205
      return
6206
    oprot.writeStructBegin('getAddressById_args')
3431 rajveer 6207
    if self.addressId is not None:
1894 vikas 6208
      oprot.writeFieldBegin('addressId', TType.I64, 1)
6209
      oprot.writeI64(self.addressId)
6210
      oprot.writeFieldEnd()
6211
    oprot.writeFieldStop()
6212
    oprot.writeStructEnd()
6213
 
3431 rajveer 6214
  def validate(self):
6215
    return
6216
 
6217
 
1894 vikas 6218
  def __repr__(self):
6219
    L = ['%s=%r' % (key, value)
6220
      for key, value in self.__dict__.iteritems()]
6221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6222
 
6223
  def __eq__(self, other):
6224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6225
 
6226
  def __ne__(self, other):
6227
    return not (self == other)
6228
 
6229
class getAddressById_result:
6230
  """
6231
  Attributes:
6232
   - success
6233
   - ucx
6234
  """
6235
 
6236
  thrift_spec = (
6237
    (0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
6238
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6239
  )
6240
 
6241
  def __init__(self, success=None, ucx=None,):
6242
    self.success = success
6243
    self.ucx = ucx
6244
 
6245
  def read(self, iprot):
6246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6248
      return
6249
    iprot.readStructBegin()
6250
    while True:
6251
      (fname, ftype, fid) = iprot.readFieldBegin()
6252
      if ftype == TType.STOP:
6253
        break
6254
      if fid == 0:
6255
        if ftype == TType.STRUCT:
6256
          self.success = Address()
6257
          self.success.read(iprot)
6258
        else:
6259
          iprot.skip(ftype)
6260
      elif fid == 1:
6261
        if ftype == TType.STRUCT:
6262
          self.ucx = UserContextException()
6263
          self.ucx.read(iprot)
6264
        else:
6265
          iprot.skip(ftype)
6266
      else:
6267
        iprot.skip(ftype)
6268
      iprot.readFieldEnd()
6269
    iprot.readStructEnd()
6270
 
6271
  def write(self, oprot):
6272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6274
      return
6275
    oprot.writeStructBegin('getAddressById_result')
3431 rajveer 6276
    if self.success is not None:
1894 vikas 6277
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6278
      self.success.write(oprot)
6279
      oprot.writeFieldEnd()
3431 rajveer 6280
    if self.ucx is not None:
1894 vikas 6281
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6282
      self.ucx.write(oprot)
6283
      oprot.writeFieldEnd()
6284
    oprot.writeFieldStop()
6285
    oprot.writeStructEnd()
6286
 
3431 rajveer 6287
  def validate(self):
6288
    return
6289
 
6290
 
1894 vikas 6291
  def __repr__(self):
6292
    L = ['%s=%r' % (key, value)
6293
      for key, value in self.__dict__.iteritems()]
6294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6295
 
6296
  def __eq__(self, other):
6297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6298
 
6299
  def __ne__(self, other):
6300
    return not (self == other)
6301
 
594 rajveer 6302
class getDefaultAddressId_args:
6303
  """
6304
  Attributes:
6305
   - userId
6306
  """
6307
 
6308
  thrift_spec = (
6309
    None, # 0
6310
    (1, TType.I64, 'userId', None, None, ), # 1
6311
  )
6312
 
6313
  def __init__(self, userId=None,):
6314
    self.userId = userId
6315
 
6316
  def read(self, iprot):
6317
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6318
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6319
      return
6320
    iprot.readStructBegin()
6321
    while True:
6322
      (fname, ftype, fid) = iprot.readFieldBegin()
6323
      if ftype == TType.STOP:
6324
        break
6325
      if fid == 1:
6326
        if ftype == TType.I64:
6327
          self.userId = iprot.readI64();
6328
        else:
6329
          iprot.skip(ftype)
6330
      else:
6331
        iprot.skip(ftype)
6332
      iprot.readFieldEnd()
6333
    iprot.readStructEnd()
6334
 
6335
  def write(self, oprot):
6336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6338
      return
6339
    oprot.writeStructBegin('getDefaultAddressId_args')
3431 rajveer 6340
    if self.userId is not None:
594 rajveer 6341
      oprot.writeFieldBegin('userId', TType.I64, 1)
6342
      oprot.writeI64(self.userId)
6343
      oprot.writeFieldEnd()
6344
    oprot.writeFieldStop()
6345
    oprot.writeStructEnd()
6346
 
3431 rajveer 6347
  def validate(self):
6348
    return
6349
 
6350
 
594 rajveer 6351
  def __repr__(self):
6352
    L = ['%s=%r' % (key, value)
6353
      for key, value in self.__dict__.iteritems()]
6354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6355
 
6356
  def __eq__(self, other):
6357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6358
 
6359
  def __ne__(self, other):
6360
    return not (self == other)
6361
 
6362
class getDefaultAddressId_result:
6363
  """
6364
  Attributes:
6365
   - success
6366
   - ucx
6367
  """
6368
 
6369
  thrift_spec = (
6370
    (0, TType.I64, 'success', None, None, ), # 0
6371
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6372
  )
6373
 
6374
  def __init__(self, success=None, ucx=None,):
6375
    self.success = success
6376
    self.ucx = ucx
6377
 
6378
  def read(self, iprot):
6379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6381
      return
6382
    iprot.readStructBegin()
6383
    while True:
6384
      (fname, ftype, fid) = iprot.readFieldBegin()
6385
      if ftype == TType.STOP:
6386
        break
6387
      if fid == 0:
6388
        if ftype == TType.I64:
6389
          self.success = iprot.readI64();
6390
        else:
6391
          iprot.skip(ftype)
6392
      elif fid == 1:
6393
        if ftype == TType.STRUCT:
6394
          self.ucx = UserContextException()
6395
          self.ucx.read(iprot)
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('getDefaultAddressId_result')
3431 rajveer 6408
    if self.success is not None:
594 rajveer 6409
      oprot.writeFieldBegin('success', TType.I64, 0)
6410
      oprot.writeI64(self.success)
6411
      oprot.writeFieldEnd()
3431 rajveer 6412
    if self.ucx is not None:
594 rajveer 6413
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6414
      self.ucx.write(oprot)
6415
      oprot.writeFieldEnd()
6416
    oprot.writeFieldStop()
6417
    oprot.writeStructEnd()
6418
 
3431 rajveer 6419
  def validate(self):
6420
    return
6421
 
6422
 
594 rajveer 6423
  def __repr__(self):
6424
    L = ['%s=%r' % (key, value)
6425
      for key, value in self.__dict__.iteritems()]
6426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6427
 
6428
  def __eq__(self, other):
6429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6430
 
6431
  def __ne__(self, other):
6432
    return not (self == other)
6433
 
785 rajveer 6434
class getDefaultPincode_args:
6435
  """
6436
  Attributes:
6437
   - userId
6438
  """
6439
 
6440
  thrift_spec = (
6441
    None, # 0
6442
    (1, TType.I64, 'userId', None, None, ), # 1
6443
  )
6444
 
6445
  def __init__(self, userId=None,):
6446
    self.userId = userId
6447
 
6448
  def read(self, iprot):
6449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6451
      return
6452
    iprot.readStructBegin()
6453
    while True:
6454
      (fname, ftype, fid) = iprot.readFieldBegin()
6455
      if ftype == TType.STOP:
6456
        break
6457
      if fid == 1:
6458
        if ftype == TType.I64:
6459
          self.userId = iprot.readI64();
6460
        else:
6461
          iprot.skip(ftype)
6462
      else:
6463
        iprot.skip(ftype)
6464
      iprot.readFieldEnd()
6465
    iprot.readStructEnd()
6466
 
6467
  def write(self, oprot):
6468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6470
      return
6471
    oprot.writeStructBegin('getDefaultPincode_args')
3431 rajveer 6472
    if self.userId is not None:
785 rajveer 6473
      oprot.writeFieldBegin('userId', TType.I64, 1)
6474
      oprot.writeI64(self.userId)
6475
      oprot.writeFieldEnd()
6476
    oprot.writeFieldStop()
6477
    oprot.writeStructEnd()
6478
 
3431 rajveer 6479
  def validate(self):
6480
    return
6481
 
6482
 
785 rajveer 6483
  def __repr__(self):
6484
    L = ['%s=%r' % (key, value)
6485
      for key, value in self.__dict__.iteritems()]
6486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6487
 
6488
  def __eq__(self, other):
6489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6490
 
6491
  def __ne__(self, other):
6492
    return not (self == other)
6493
 
6494
class getDefaultPincode_result:
6495
  """
6496
  Attributes:
6497
   - success
6498
   - ucx
6499
  """
6500
 
6501
  thrift_spec = (
6502
    (0, TType.STRING, 'success', None, None, ), # 0
6503
    (1, TType.STRUCT, 'ucx', (UserContextException, UserContextException.thrift_spec), None, ), # 1
6504
  )
6505
 
6506
  def __init__(self, success=None, ucx=None,):
6507
    self.success = success
6508
    self.ucx = ucx
6509
 
6510
  def read(self, iprot):
6511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6513
      return
6514
    iprot.readStructBegin()
6515
    while True:
6516
      (fname, ftype, fid) = iprot.readFieldBegin()
6517
      if ftype == TType.STOP:
6518
        break
6519
      if fid == 0:
6520
        if ftype == TType.STRING:
6521
          self.success = iprot.readString();
6522
        else:
6523
          iprot.skip(ftype)
6524
      elif fid == 1:
6525
        if ftype == TType.STRUCT:
6526
          self.ucx = UserContextException()
6527
          self.ucx.read(iprot)
6528
        else:
6529
          iprot.skip(ftype)
6530
      else:
6531
        iprot.skip(ftype)
6532
      iprot.readFieldEnd()
6533
    iprot.readStructEnd()
6534
 
6535
  def write(self, oprot):
6536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6538
      return
6539
    oprot.writeStructBegin('getDefaultPincode_result')
3431 rajveer 6540
    if self.success is not None:
785 rajveer 6541
      oprot.writeFieldBegin('success', TType.STRING, 0)
6542
      oprot.writeString(self.success)
6543
      oprot.writeFieldEnd()
3431 rajveer 6544
    if self.ucx is not None:
785 rajveer 6545
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6546
      self.ucx.write(oprot)
6547
      oprot.writeFieldEnd()
6548
    oprot.writeFieldStop()
6549
    oprot.writeStructEnd()
6550
 
3431 rajveer 6551
  def validate(self):
6552
    return
6553
 
6554
 
785 rajveer 6555
  def __repr__(self):
6556
    L = ['%s=%r' % (key, value)
6557
      for key, value in self.__dict__.iteritems()]
6558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6559
 
6560
  def __eq__(self, other):
6561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6562
 
6563
  def __ne__(self, other):
6564
    return not (self == other)
6565
 
1274 varun.gupt 6566
class saveUserCommunication_args:
6567
  """
6568
  Attributes:
6569
   - userId
6570
   - replyTo
6571
   - communicationType
6572
   - orderId
6573
   - airwaybillNo
6574
   - productName
6575
   - subject
6576
   - message
6577
  """
6578
 
6579
  thrift_spec = (
6580
    None, # 0
6581
    (1, TType.I64, 'userId', None, None, ), # 1
6582
    (2, TType.STRING, 'replyTo', None, None, ), # 2
6583
    (3, TType.I64, 'communicationType', None, None, ), # 3
6584
    (4, TType.I64, 'orderId', None, None, ), # 4
6585
    (5, TType.STRING, 'airwaybillNo', None, None, ), # 5
6586
    (6, TType.STRING, 'productName', None, None, ), # 6
6587
    (7, TType.STRING, 'subject', None, None, ), # 7
6588
    (8, TType.STRING, 'message', None, None, ), # 8
6589
  )
6590
 
6591
  def __init__(self, userId=None, replyTo=None, communicationType=None, orderId=None, airwaybillNo=None, productName=None, subject=None, message=None,):
6592
    self.userId = userId
6593
    self.replyTo = replyTo
6594
    self.communicationType = communicationType
6595
    self.orderId = orderId
6596
    self.airwaybillNo = airwaybillNo
6597
    self.productName = productName
6598
    self.subject = subject
6599
    self.message = message
6600
 
6601
  def read(self, iprot):
6602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6604
      return
6605
    iprot.readStructBegin()
6606
    while True:
6607
      (fname, ftype, fid) = iprot.readFieldBegin()
6608
      if ftype == TType.STOP:
6609
        break
6610
      if fid == 1:
6611
        if ftype == TType.I64:
6612
          self.userId = iprot.readI64();
6613
        else:
6614
          iprot.skip(ftype)
6615
      elif fid == 2:
6616
        if ftype == TType.STRING:
6617
          self.replyTo = iprot.readString();
6618
        else:
6619
          iprot.skip(ftype)
6620
      elif fid == 3:
6621
        if ftype == TType.I64:
6622
          self.communicationType = iprot.readI64();
6623
        else:
6624
          iprot.skip(ftype)
6625
      elif fid == 4:
6626
        if ftype == TType.I64:
6627
          self.orderId = iprot.readI64();
6628
        else:
6629
          iprot.skip(ftype)
6630
      elif fid == 5:
6631
        if ftype == TType.STRING:
6632
          self.airwaybillNo = iprot.readString();
6633
        else:
6634
          iprot.skip(ftype)
6635
      elif fid == 6:
6636
        if ftype == TType.STRING:
6637
          self.productName = iprot.readString();
6638
        else:
6639
          iprot.skip(ftype)
6640
      elif fid == 7:
6641
        if ftype == TType.STRING:
6642
          self.subject = iprot.readString();
6643
        else:
6644
          iprot.skip(ftype)
6645
      elif fid == 8:
6646
        if ftype == TType.STRING:
6647
          self.message = iprot.readString();
6648
        else:
6649
          iprot.skip(ftype)
6650
      else:
6651
        iprot.skip(ftype)
6652
      iprot.readFieldEnd()
6653
    iprot.readStructEnd()
6654
 
6655
  def write(self, oprot):
6656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6658
      return
6659
    oprot.writeStructBegin('saveUserCommunication_args')
3431 rajveer 6660
    if self.userId is not None:
1274 varun.gupt 6661
      oprot.writeFieldBegin('userId', TType.I64, 1)
6662
      oprot.writeI64(self.userId)
6663
      oprot.writeFieldEnd()
3431 rajveer 6664
    if self.replyTo is not None:
1274 varun.gupt 6665
      oprot.writeFieldBegin('replyTo', TType.STRING, 2)
6666
      oprot.writeString(self.replyTo)
6667
      oprot.writeFieldEnd()
3431 rajveer 6668
    if self.communicationType is not None:
1274 varun.gupt 6669
      oprot.writeFieldBegin('communicationType', TType.I64, 3)
6670
      oprot.writeI64(self.communicationType)
6671
      oprot.writeFieldEnd()
3431 rajveer 6672
    if self.orderId is not None:
1274 varun.gupt 6673
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6674
      oprot.writeI64(self.orderId)
6675
      oprot.writeFieldEnd()
3431 rajveer 6676
    if self.airwaybillNo is not None:
1274 varun.gupt 6677
      oprot.writeFieldBegin('airwaybillNo', TType.STRING, 5)
6678
      oprot.writeString(self.airwaybillNo)
6679
      oprot.writeFieldEnd()
3431 rajveer 6680
    if self.productName is not None:
1274 varun.gupt 6681
      oprot.writeFieldBegin('productName', TType.STRING, 6)
6682
      oprot.writeString(self.productName)
6683
      oprot.writeFieldEnd()
3431 rajveer 6684
    if self.subject is not None:
1274 varun.gupt 6685
      oprot.writeFieldBegin('subject', TType.STRING, 7)
6686
      oprot.writeString(self.subject)
6687
      oprot.writeFieldEnd()
3431 rajveer 6688
    if self.message is not None:
1274 varun.gupt 6689
      oprot.writeFieldBegin('message', TType.STRING, 8)
6690
      oprot.writeString(self.message)
6691
      oprot.writeFieldEnd()
6692
    oprot.writeFieldStop()
6693
    oprot.writeStructEnd()
6694
 
3431 rajveer 6695
  def validate(self):
6696
    return
6697
 
6698
 
1274 varun.gupt 6699
  def __repr__(self):
6700
    L = ['%s=%r' % (key, value)
6701
      for key, value in self.__dict__.iteritems()]
6702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6703
 
6704
  def __eq__(self, other):
6705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6706
 
6707
  def __ne__(self, other):
6708
    return not (self == other)
6709
 
6710
class saveUserCommunication_result:
6711
  """
6712
  Attributes:
6713
   - success
6714
   - ucx
6715
  """
6716
 
6717
  thrift_spec = (
6718
    (0, TType.BOOL, 'success', None, None, ), # 0
6719
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6720
  )
6721
 
6722
  def __init__(self, success=None, ucx=None,):
6723
    self.success = success
6724
    self.ucx = ucx
6725
 
6726
  def read(self, iprot):
6727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6729
      return
6730
    iprot.readStructBegin()
6731
    while True:
6732
      (fname, ftype, fid) = iprot.readFieldBegin()
6733
      if ftype == TType.STOP:
6734
        break
6735
      if fid == 0:
6736
        if ftype == TType.BOOL:
6737
          self.success = iprot.readBool();
6738
        else:
6739
          iprot.skip(ftype)
6740
      elif fid == 1:
6741
        if ftype == TType.STRUCT:
6742
          self.ucx = UserCommunicationException()
6743
          self.ucx.read(iprot)
6744
        else:
6745
          iprot.skip(ftype)
6746
      else:
6747
        iprot.skip(ftype)
6748
      iprot.readFieldEnd()
6749
    iprot.readStructEnd()
6750
 
6751
  def write(self, oprot):
6752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6754
      return
6755
    oprot.writeStructBegin('saveUserCommunication_result')
3431 rajveer 6756
    if self.success is not None:
1274 varun.gupt 6757
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6758
      oprot.writeBool(self.success)
6759
      oprot.writeFieldEnd()
3431 rajveer 6760
    if self.ucx is not None:
1274 varun.gupt 6761
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6762
      self.ucx.write(oprot)
6763
      oprot.writeFieldEnd()
6764
    oprot.writeFieldStop()
6765
    oprot.writeStructEnd()
6766
 
3431 rajveer 6767
  def validate(self):
6768
    return
6769
 
6770
 
1274 varun.gupt 6771
  def __repr__(self):
6772
    L = ['%s=%r' % (key, value)
6773
      for key, value in self.__dict__.iteritems()]
6774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6775
 
6776
  def __eq__(self, other):
6777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6778
 
6779
  def __ne__(self, other):
6780
    return not (self == other)
6781
 
1590 varun.gupt 6782
class getUserCommunicationById_args:
6783
  """
6784
  Attributes:
6785
   - id
6786
  """
6787
 
6788
  thrift_spec = (
6789
    None, # 0
6790
    (1, TType.I64, 'id', None, None, ), # 1
6791
  )
6792
 
6793
  def __init__(self, id=None,):
6794
    self.id = id
6795
 
6796
  def read(self, iprot):
6797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6799
      return
6800
    iprot.readStructBegin()
6801
    while True:
6802
      (fname, ftype, fid) = iprot.readFieldBegin()
6803
      if ftype == TType.STOP:
6804
        break
6805
      if fid == 1:
6806
        if ftype == TType.I64:
6807
          self.id = iprot.readI64();
6808
        else:
6809
          iprot.skip(ftype)
6810
      else:
6811
        iprot.skip(ftype)
6812
      iprot.readFieldEnd()
6813
    iprot.readStructEnd()
6814
 
6815
  def write(self, oprot):
6816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6818
      return
6819
    oprot.writeStructBegin('getUserCommunicationById_args')
3431 rajveer 6820
    if self.id is not None:
1590 varun.gupt 6821
      oprot.writeFieldBegin('id', TType.I64, 1)
6822
      oprot.writeI64(self.id)
6823
      oprot.writeFieldEnd()
6824
    oprot.writeFieldStop()
6825
    oprot.writeStructEnd()
6826
 
3431 rajveer 6827
  def validate(self):
6828
    return
6829
 
6830
 
1590 varun.gupt 6831
  def __repr__(self):
6832
    L = ['%s=%r' % (key, value)
6833
      for key, value in self.__dict__.iteritems()]
6834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6835
 
6836
  def __eq__(self, other):
6837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6838
 
6839
  def __ne__(self, other):
6840
    return not (self == other)
6841
 
6842
class getUserCommunicationById_result:
6843
  """
6844
  Attributes:
6845
   - success
6846
   - ucx
6847
  """
6848
 
6849
  thrift_spec = (
6850
    (0, TType.STRUCT, 'success', (UserCommunication, UserCommunication.thrift_spec), None, ), # 0
6851
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6852
  )
6853
 
6854
  def __init__(self, success=None, ucx=None,):
6855
    self.success = success
6856
    self.ucx = ucx
6857
 
6858
  def read(self, iprot):
6859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6861
      return
6862
    iprot.readStructBegin()
6863
    while True:
6864
      (fname, ftype, fid) = iprot.readFieldBegin()
6865
      if ftype == TType.STOP:
6866
        break
6867
      if fid == 0:
6868
        if ftype == TType.STRUCT:
6869
          self.success = UserCommunication()
6870
          self.success.read(iprot)
6871
        else:
6872
          iprot.skip(ftype)
6873
      elif fid == 1:
6874
        if ftype == TType.STRUCT:
6875
          self.ucx = UserCommunicationException()
6876
          self.ucx.read(iprot)
6877
        else:
6878
          iprot.skip(ftype)
6879
      else:
6880
        iprot.skip(ftype)
6881
      iprot.readFieldEnd()
6882
    iprot.readStructEnd()
6883
 
6884
  def write(self, oprot):
6885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6887
      return
6888
    oprot.writeStructBegin('getUserCommunicationById_result')
3431 rajveer 6889
    if self.success is not None:
1590 varun.gupt 6890
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6891
      self.success.write(oprot)
6892
      oprot.writeFieldEnd()
3431 rajveer 6893
    if self.ucx is not None:
1590 varun.gupt 6894
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
6895
      self.ucx.write(oprot)
6896
      oprot.writeFieldEnd()
6897
    oprot.writeFieldStop()
6898
    oprot.writeStructEnd()
6899
 
3431 rajveer 6900
  def validate(self):
6901
    return
6902
 
6903
 
1590 varun.gupt 6904
  def __repr__(self):
6905
    L = ['%s=%r' % (key, value)
6906
      for key, value in self.__dict__.iteritems()]
6907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6908
 
6909
  def __eq__(self, other):
6910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6911
 
6912
  def __ne__(self, other):
6913
    return not (self == other)
6914
 
6915
class getUserCommunicationByUser_args:
6916
  """
6917
  Attributes:
6918
   - userId
6919
  """
6920
 
6921
  thrift_spec = (
6922
    None, # 0
6923
    (1, TType.I64, 'userId', None, None, ), # 1
6924
  )
6925
 
6926
  def __init__(self, userId=None,):
6927
    self.userId = userId
6928
 
6929
  def read(self, iprot):
6930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6932
      return
6933
    iprot.readStructBegin()
6934
    while True:
6935
      (fname, ftype, fid) = iprot.readFieldBegin()
6936
      if ftype == TType.STOP:
6937
        break
6938
      if fid == 1:
6939
        if ftype == TType.I64:
6940
          self.userId = iprot.readI64();
6941
        else:
6942
          iprot.skip(ftype)
6943
      else:
6944
        iprot.skip(ftype)
6945
      iprot.readFieldEnd()
6946
    iprot.readStructEnd()
6947
 
6948
  def write(self, oprot):
6949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6951
      return
6952
    oprot.writeStructBegin('getUserCommunicationByUser_args')
3431 rajveer 6953
    if self.userId is not None:
1590 varun.gupt 6954
      oprot.writeFieldBegin('userId', TType.I64, 1)
6955
      oprot.writeI64(self.userId)
6956
      oprot.writeFieldEnd()
6957
    oprot.writeFieldStop()
6958
    oprot.writeStructEnd()
6959
 
3431 rajveer 6960
  def validate(self):
6961
    return
6962
 
6963
 
1590 varun.gupt 6964
  def __repr__(self):
6965
    L = ['%s=%r' % (key, value)
6966
      for key, value in self.__dict__.iteritems()]
6967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6968
 
6969
  def __eq__(self, other):
6970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6971
 
6972
  def __ne__(self, other):
6973
    return not (self == other)
6974
 
6975
class getUserCommunicationByUser_result:
6976
  """
6977
  Attributes:
6978
   - success
6979
   - ucx
6980
  """
6981
 
6982
  thrift_spec = (
6983
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
6984
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
6985
  )
6986
 
6987
  def __init__(self, success=None, ucx=None,):
6988
    self.success = success
6989
    self.ucx = ucx
6990
 
6991
  def read(self, iprot):
6992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6994
      return
6995
    iprot.readStructBegin()
6996
    while True:
6997
      (fname, ftype, fid) = iprot.readFieldBegin()
6998
      if ftype == TType.STOP:
6999
        break
7000
      if fid == 0:
7001
        if ftype == TType.LIST:
7002
          self.success = []
5326 rajveer 7003
          (_etype68, _size65) = iprot.readListBegin()
7004
          for _i69 in xrange(_size65):
7005
            _elem70 = UserCommunication()
7006
            _elem70.read(iprot)
7007
            self.success.append(_elem70)
1590 varun.gupt 7008
          iprot.readListEnd()
7009
        else:
7010
          iprot.skip(ftype)
7011
      elif fid == 1:
7012
        if ftype == TType.STRUCT:
7013
          self.ucx = UserCommunicationException()
7014
          self.ucx.read(iprot)
7015
        else:
7016
          iprot.skip(ftype)
7017
      else:
7018
        iprot.skip(ftype)
7019
      iprot.readFieldEnd()
7020
    iprot.readStructEnd()
7021
 
7022
  def write(self, oprot):
7023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7025
      return
7026
    oprot.writeStructBegin('getUserCommunicationByUser_result')
3431 rajveer 7027
    if self.success is not None:
1590 varun.gupt 7028
      oprot.writeFieldBegin('success', TType.LIST, 0)
7029
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7030
      for iter71 in self.success:
7031
        iter71.write(oprot)
1590 varun.gupt 7032
      oprot.writeListEnd()
7033
      oprot.writeFieldEnd()
3431 rajveer 7034
    if self.ucx is not None:
1590 varun.gupt 7035
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7036
      self.ucx.write(oprot)
7037
      oprot.writeFieldEnd()
7038
    oprot.writeFieldStop()
7039
    oprot.writeStructEnd()
7040
 
3431 rajveer 7041
  def validate(self):
7042
    return
7043
 
7044
 
1590 varun.gupt 7045
  def __repr__(self):
7046
    L = ['%s=%r' % (key, value)
7047
      for key, value in self.__dict__.iteritems()]
7048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7049
 
7050
  def __eq__(self, other):
7051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7052
 
7053
  def __ne__(self, other):
7054
    return not (self == other)
7055
 
7056
class getAllUserCommunications_args:
7057
 
7058
  thrift_spec = (
7059
  )
7060
 
7061
  def read(self, iprot):
7062
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7063
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7064
      return
7065
    iprot.readStructBegin()
7066
    while True:
7067
      (fname, ftype, fid) = iprot.readFieldBegin()
7068
      if ftype == TType.STOP:
7069
        break
7070
      else:
7071
        iprot.skip(ftype)
7072
      iprot.readFieldEnd()
7073
    iprot.readStructEnd()
7074
 
7075
  def write(self, oprot):
7076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7078
      return
7079
    oprot.writeStructBegin('getAllUserCommunications_args')
7080
    oprot.writeFieldStop()
7081
    oprot.writeStructEnd()
7082
 
3431 rajveer 7083
  def validate(self):
7084
    return
7085
 
7086
 
1590 varun.gupt 7087
  def __repr__(self):
7088
    L = ['%s=%r' % (key, value)
7089
      for key, value in self.__dict__.iteritems()]
7090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7091
 
7092
  def __eq__(self, other):
7093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7094
 
7095
  def __ne__(self, other):
7096
    return not (self == other)
7097
 
7098
class getAllUserCommunications_result:
7099
  """
7100
  Attributes:
7101
   - success
7102
   - ucx
7103
  """
7104
 
7105
  thrift_spec = (
7106
    (0, TType.LIST, 'success', (TType.STRUCT,(UserCommunication, UserCommunication.thrift_spec)), None, ), # 0
7107
    (1, TType.STRUCT, 'ucx', (UserCommunicationException, UserCommunicationException.thrift_spec), None, ), # 1
7108
  )
7109
 
7110
  def __init__(self, success=None, ucx=None,):
7111
    self.success = success
7112
    self.ucx = ucx
7113
 
7114
  def read(self, iprot):
7115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7117
      return
7118
    iprot.readStructBegin()
7119
    while True:
7120
      (fname, ftype, fid) = iprot.readFieldBegin()
7121
      if ftype == TType.STOP:
7122
        break
7123
      if fid == 0:
7124
        if ftype == TType.LIST:
7125
          self.success = []
5326 rajveer 7126
          (_etype75, _size72) = iprot.readListBegin()
7127
          for _i76 in xrange(_size72):
7128
            _elem77 = UserCommunication()
7129
            _elem77.read(iprot)
7130
            self.success.append(_elem77)
1590 varun.gupt 7131
          iprot.readListEnd()
7132
        else:
7133
          iprot.skip(ftype)
7134
      elif fid == 1:
7135
        if ftype == TType.STRUCT:
7136
          self.ucx = UserCommunicationException()
7137
          self.ucx.read(iprot)
7138
        else:
7139
          iprot.skip(ftype)
7140
      else:
7141
        iprot.skip(ftype)
7142
      iprot.readFieldEnd()
7143
    iprot.readStructEnd()
7144
 
7145
  def write(self, oprot):
7146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7148
      return
7149
    oprot.writeStructBegin('getAllUserCommunications_result')
3431 rajveer 7150
    if self.success is not None:
1590 varun.gupt 7151
      oprot.writeFieldBegin('success', TType.LIST, 0)
7152
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7153
      for iter78 in self.success:
7154
        iter78.write(oprot)
1590 varun.gupt 7155
      oprot.writeListEnd()
7156
      oprot.writeFieldEnd()
3431 rajveer 7157
    if self.ucx is not None:
1590 varun.gupt 7158
      oprot.writeFieldBegin('ucx', TType.STRUCT, 1)
7159
      self.ucx.write(oprot)
7160
      oprot.writeFieldEnd()
7161
    oprot.writeFieldStop()
7162
    oprot.writeStructEnd()
7163
 
3431 rajveer 7164
  def validate(self):
7165
    return
7166
 
7167
 
1590 varun.gupt 7168
  def __repr__(self):
7169
    L = ['%s=%r' % (key, value)
7170
      for key, value in self.__dict__.iteritems()]
7171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7172
 
7173
  def __eq__(self, other):
7174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7175
 
7176
  def __ne__(self, other):
7177
    return not (self == other)
7178
 
1845 vikas 7179
class createMasterAffiliate_args:
7180
  """
7181
  Attributes:
7182
   - name
1859 vikas 7183
   - addedOn
1845 vikas 7184
  """
7185
 
7186
  thrift_spec = (
7187
    None, # 0
7188
    (1, TType.STRING, 'name', None, None, ), # 1
1859 vikas 7189
    (2, TType.I64, 'addedOn', None, None, ), # 2
1845 vikas 7190
  )
7191
 
1859 vikas 7192
  def __init__(self, name=None, addedOn=None,):
1845 vikas 7193
    self.name = name
1859 vikas 7194
    self.addedOn = addedOn
1845 vikas 7195
 
7196
  def read(self, iprot):
7197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7199
      return
7200
    iprot.readStructBegin()
7201
    while True:
7202
      (fname, ftype, fid) = iprot.readFieldBegin()
7203
      if ftype == TType.STOP:
7204
        break
7205
      if fid == 1:
7206
        if ftype == TType.STRING:
7207
          self.name = iprot.readString();
7208
        else:
7209
          iprot.skip(ftype)
1859 vikas 7210
      elif fid == 2:
7211
        if ftype == TType.I64:
7212
          self.addedOn = iprot.readI64();
7213
        else:
7214
          iprot.skip(ftype)
1845 vikas 7215
      else:
7216
        iprot.skip(ftype)
7217
      iprot.readFieldEnd()
7218
    iprot.readStructEnd()
7219
 
7220
  def write(self, oprot):
7221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7223
      return
7224
    oprot.writeStructBegin('createMasterAffiliate_args')
3431 rajveer 7225
    if self.name is not None:
1845 vikas 7226
      oprot.writeFieldBegin('name', TType.STRING, 1)
7227
      oprot.writeString(self.name)
7228
      oprot.writeFieldEnd()
3431 rajveer 7229
    if self.addedOn is not None:
1859 vikas 7230
      oprot.writeFieldBegin('addedOn', TType.I64, 2)
7231
      oprot.writeI64(self.addedOn)
7232
      oprot.writeFieldEnd()
1845 vikas 7233
    oprot.writeFieldStop()
7234
    oprot.writeStructEnd()
7235
 
3431 rajveer 7236
  def validate(self):
7237
    return
7238
 
7239
 
1845 vikas 7240
  def __repr__(self):
7241
    L = ['%s=%r' % (key, value)
7242
      for key, value in self.__dict__.iteritems()]
7243
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7244
 
7245
  def __eq__(self, other):
7246
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7247
 
7248
  def __ne__(self, other):
7249
    return not (self == other)
7250
 
7251
class createMasterAffiliate_result:
7252
  """
7253
  Attributes:
7254
   - success
7255
   - utx
7256
  """
7257
 
7258
  thrift_spec = (
7259
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7260
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7261
  )
7262
 
7263
  def __init__(self, success=None, utx=None,):
7264
    self.success = success
7265
    self.utx = utx
7266
 
7267
  def read(self, iprot):
7268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7270
      return
7271
    iprot.readStructBegin()
7272
    while True:
7273
      (fname, ftype, fid) = iprot.readFieldBegin()
7274
      if ftype == TType.STOP:
7275
        break
7276
      if fid == 0:
7277
        if ftype == TType.STRUCT:
7278
          self.success = MasterAffiliate()
7279
          self.success.read(iprot)
7280
        else:
7281
          iprot.skip(ftype)
7282
      elif fid == 1:
7283
        if ftype == TType.STRUCT:
1996 vikas 7284
          self.utx = UserAffiliateException()
1845 vikas 7285
          self.utx.read(iprot)
7286
        else:
7287
          iprot.skip(ftype)
7288
      else:
7289
        iprot.skip(ftype)
7290
      iprot.readFieldEnd()
7291
    iprot.readStructEnd()
7292
 
7293
  def write(self, oprot):
7294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7296
      return
7297
    oprot.writeStructBegin('createMasterAffiliate_result')
3431 rajveer 7298
    if self.success is not None:
1845 vikas 7299
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7300
      self.success.write(oprot)
7301
      oprot.writeFieldEnd()
3431 rajveer 7302
    if self.utx is not None:
1845 vikas 7303
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7304
      self.utx.write(oprot)
7305
      oprot.writeFieldEnd()
7306
    oprot.writeFieldStop()
7307
    oprot.writeStructEnd()
7308
 
3431 rajveer 7309
  def validate(self):
7310
    return
7311
 
7312
 
1845 vikas 7313
  def __repr__(self):
7314
    L = ['%s=%r' % (key, value)
7315
      for key, value in self.__dict__.iteritems()]
7316
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7317
 
7318
  def __eq__(self, other):
7319
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7320
 
7321
  def __ne__(self, other):
7322
    return not (self == other)
7323
 
1899 vikas 7324
class getAllMasterAffiliates_args:
7325
 
7326
  thrift_spec = (
7327
  )
7328
 
7329
  def read(self, iprot):
7330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7332
      return
7333
    iprot.readStructBegin()
7334
    while True:
7335
      (fname, ftype, fid) = iprot.readFieldBegin()
7336
      if ftype == TType.STOP:
7337
        break
7338
      else:
7339
        iprot.skip(ftype)
7340
      iprot.readFieldEnd()
7341
    iprot.readStructEnd()
7342
 
7343
  def write(self, oprot):
7344
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7345
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7346
      return
7347
    oprot.writeStructBegin('getAllMasterAffiliates_args')
7348
    oprot.writeFieldStop()
7349
    oprot.writeStructEnd()
7350
 
3431 rajveer 7351
  def validate(self):
7352
    return
7353
 
7354
 
1899 vikas 7355
  def __repr__(self):
7356
    L = ['%s=%r' % (key, value)
7357
      for key, value in self.__dict__.iteritems()]
7358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7359
 
7360
  def __eq__(self, other):
7361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7362
 
7363
  def __ne__(self, other):
7364
    return not (self == other)
7365
 
7366
class getAllMasterAffiliates_result:
7367
  """
7368
  Attributes:
7369
   - success
7370
   - utx
7371
  """
7372
 
7373
  thrift_spec = (
7374
    (0, TType.LIST, 'success', (TType.STRUCT,(MasterAffiliate, MasterAffiliate.thrift_spec)), None, ), # 0
1996 vikas 7375
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1899 vikas 7376
  )
7377
 
7378
  def __init__(self, success=None, utx=None,):
7379
    self.success = success
7380
    self.utx = utx
7381
 
7382
  def read(self, iprot):
7383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7385
      return
7386
    iprot.readStructBegin()
7387
    while True:
7388
      (fname, ftype, fid) = iprot.readFieldBegin()
7389
      if ftype == TType.STOP:
7390
        break
7391
      if fid == 0:
7392
        if ftype == TType.LIST:
7393
          self.success = []
5326 rajveer 7394
          (_etype82, _size79) = iprot.readListBegin()
7395
          for _i83 in xrange(_size79):
7396
            _elem84 = MasterAffiliate()
7397
            _elem84.read(iprot)
7398
            self.success.append(_elem84)
1899 vikas 7399
          iprot.readListEnd()
7400
        else:
7401
          iprot.skip(ftype)
7402
      elif fid == 1:
7403
        if ftype == TType.STRUCT:
1996 vikas 7404
          self.utx = UserAffiliateException()
1899 vikas 7405
          self.utx.read(iprot)
7406
        else:
7407
          iprot.skip(ftype)
7408
      else:
7409
        iprot.skip(ftype)
7410
      iprot.readFieldEnd()
7411
    iprot.readStructEnd()
7412
 
7413
  def write(self, oprot):
7414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7416
      return
7417
    oprot.writeStructBegin('getAllMasterAffiliates_result')
3431 rajveer 7418
    if self.success is not None:
1899 vikas 7419
      oprot.writeFieldBegin('success', TType.LIST, 0)
7420
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 7421
      for iter85 in self.success:
7422
        iter85.write(oprot)
1899 vikas 7423
      oprot.writeListEnd()
7424
      oprot.writeFieldEnd()
3431 rajveer 7425
    if self.utx is not None:
1899 vikas 7426
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7427
      self.utx.write(oprot)
7428
      oprot.writeFieldEnd()
7429
    oprot.writeFieldStop()
7430
    oprot.writeStructEnd()
7431
 
3431 rajveer 7432
  def validate(self):
7433
    return
7434
 
7435
 
1899 vikas 7436
  def __repr__(self):
7437
    L = ['%s=%r' % (key, value)
7438
      for key, value in self.__dict__.iteritems()]
7439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7440
 
7441
  def __eq__(self, other):
7442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7443
 
7444
  def __ne__(self, other):
7445
    return not (self == other)
7446
 
1845 vikas 7447
class getMasterAffiliateById_args:
7448
  """
7449
  Attributes:
7450
   - id
7451
  """
7452
 
7453
  thrift_spec = (
7454
    None, # 0
7455
    (1, TType.I64, 'id', None, None, ), # 1
7456
  )
7457
 
7458
  def __init__(self, id=None,):
7459
    self.id = id
7460
 
7461
  def read(self, iprot):
7462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7464
      return
7465
    iprot.readStructBegin()
7466
    while True:
7467
      (fname, ftype, fid) = iprot.readFieldBegin()
7468
      if ftype == TType.STOP:
7469
        break
7470
      if fid == 1:
7471
        if ftype == TType.I64:
7472
          self.id = iprot.readI64();
7473
        else:
7474
          iprot.skip(ftype)
7475
      else:
7476
        iprot.skip(ftype)
7477
      iprot.readFieldEnd()
7478
    iprot.readStructEnd()
7479
 
7480
  def write(self, oprot):
7481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7483
      return
7484
    oprot.writeStructBegin('getMasterAffiliateById_args')
3431 rajveer 7485
    if self.id is not None:
1845 vikas 7486
      oprot.writeFieldBegin('id', TType.I64, 1)
7487
      oprot.writeI64(self.id)
7488
      oprot.writeFieldEnd()
7489
    oprot.writeFieldStop()
7490
    oprot.writeStructEnd()
7491
 
3431 rajveer 7492
  def validate(self):
7493
    return
7494
 
7495
 
1845 vikas 7496
  def __repr__(self):
7497
    L = ['%s=%r' % (key, value)
7498
      for key, value in self.__dict__.iteritems()]
7499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7500
 
7501
  def __eq__(self, other):
7502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7503
 
7504
  def __ne__(self, other):
7505
    return not (self == other)
7506
 
7507
class getMasterAffiliateById_result:
7508
  """
7509
  Attributes:
7510
   - success
7511
   - utx
7512
  """
7513
 
7514
  thrift_spec = (
7515
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7516
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7517
  )
7518
 
7519
  def __init__(self, success=None, utx=None,):
7520
    self.success = success
7521
    self.utx = utx
7522
 
7523
  def read(self, iprot):
7524
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7525
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7526
      return
7527
    iprot.readStructBegin()
7528
    while True:
7529
      (fname, ftype, fid) = iprot.readFieldBegin()
7530
      if ftype == TType.STOP:
7531
        break
7532
      if fid == 0:
7533
        if ftype == TType.STRUCT:
7534
          self.success = MasterAffiliate()
7535
          self.success.read(iprot)
7536
        else:
7537
          iprot.skip(ftype)
7538
      elif fid == 1:
7539
        if ftype == TType.STRUCT:
1996 vikas 7540
          self.utx = UserAffiliateException()
1845 vikas 7541
          self.utx.read(iprot)
7542
        else:
7543
          iprot.skip(ftype)
7544
      else:
7545
        iprot.skip(ftype)
7546
      iprot.readFieldEnd()
7547
    iprot.readStructEnd()
7548
 
7549
  def write(self, oprot):
7550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7552
      return
7553
    oprot.writeStructBegin('getMasterAffiliateById_result')
3431 rajveer 7554
    if self.success is not None:
1845 vikas 7555
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7556
      self.success.write(oprot)
7557
      oprot.writeFieldEnd()
3431 rajveer 7558
    if self.utx is not None:
1845 vikas 7559
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7560
      self.utx.write(oprot)
7561
      oprot.writeFieldEnd()
7562
    oprot.writeFieldStop()
7563
    oprot.writeStructEnd()
7564
 
3431 rajveer 7565
  def validate(self):
7566
    return
7567
 
7568
 
1845 vikas 7569
  def __repr__(self):
7570
    L = ['%s=%r' % (key, value)
7571
      for key, value in self.__dict__.iteritems()]
7572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7573
 
7574
  def __eq__(self, other):
7575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7576
 
7577
  def __ne__(self, other):
7578
    return not (self == other)
7579
 
7580
class getMasterAffiliateByName_args:
7581
  """
7582
  Attributes:
7583
   - name
7584
  """
7585
 
7586
  thrift_spec = (
7587
    None, # 0
7588
    (1, TType.STRING, 'name', None, None, ), # 1
7589
  )
7590
 
7591
  def __init__(self, name=None,):
7592
    self.name = name
7593
 
7594
  def read(self, iprot):
7595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7597
      return
7598
    iprot.readStructBegin()
7599
    while True:
7600
      (fname, ftype, fid) = iprot.readFieldBegin()
7601
      if ftype == TType.STOP:
7602
        break
7603
      if fid == 1:
7604
        if ftype == TType.STRING:
7605
          self.name = iprot.readString();
7606
        else:
7607
          iprot.skip(ftype)
7608
      else:
7609
        iprot.skip(ftype)
7610
      iprot.readFieldEnd()
7611
    iprot.readStructEnd()
7612
 
7613
  def write(self, oprot):
7614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7616
      return
7617
    oprot.writeStructBegin('getMasterAffiliateByName_args')
3431 rajveer 7618
    if self.name is not None:
1845 vikas 7619
      oprot.writeFieldBegin('name', TType.STRING, 1)
7620
      oprot.writeString(self.name)
7621
      oprot.writeFieldEnd()
7622
    oprot.writeFieldStop()
7623
    oprot.writeStructEnd()
7624
 
3431 rajveer 7625
  def validate(self):
7626
    return
7627
 
7628
 
1845 vikas 7629
  def __repr__(self):
7630
    L = ['%s=%r' % (key, value)
7631
      for key, value in self.__dict__.iteritems()]
7632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7633
 
7634
  def __eq__(self, other):
7635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7636
 
7637
  def __ne__(self, other):
7638
    return not (self == other)
7639
 
7640
class getMasterAffiliateByName_result:
7641
  """
7642
  Attributes:
7643
   - success
7644
   - utx
7645
  """
7646
 
7647
  thrift_spec = (
7648
    (0, TType.STRUCT, 'success', (MasterAffiliate, MasterAffiliate.thrift_spec), None, ), # 0
1996 vikas 7649
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7650
  )
7651
 
7652
  def __init__(self, success=None, utx=None,):
7653
    self.success = success
7654
    self.utx = utx
7655
 
7656
  def read(self, iprot):
7657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7659
      return
7660
    iprot.readStructBegin()
7661
    while True:
7662
      (fname, ftype, fid) = iprot.readFieldBegin()
7663
      if ftype == TType.STOP:
7664
        break
7665
      if fid == 0:
7666
        if ftype == TType.STRUCT:
7667
          self.success = MasterAffiliate()
7668
          self.success.read(iprot)
7669
        else:
7670
          iprot.skip(ftype)
7671
      elif fid == 1:
7672
        if ftype == TType.STRUCT:
1996 vikas 7673
          self.utx = UserAffiliateException()
1845 vikas 7674
          self.utx.read(iprot)
7675
        else:
7676
          iprot.skip(ftype)
7677
      else:
7678
        iprot.skip(ftype)
7679
      iprot.readFieldEnd()
7680
    iprot.readStructEnd()
7681
 
7682
  def write(self, oprot):
7683
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7684
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7685
      return
7686
    oprot.writeStructBegin('getMasterAffiliateByName_result')
3431 rajveer 7687
    if self.success is not None:
1845 vikas 7688
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7689
      self.success.write(oprot)
7690
      oprot.writeFieldEnd()
3431 rajveer 7691
    if self.utx is not None:
1845 vikas 7692
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7693
      self.utx.write(oprot)
7694
      oprot.writeFieldEnd()
7695
    oprot.writeFieldStop()
7696
    oprot.writeStructEnd()
7697
 
3431 rajveer 7698
  def validate(self):
7699
    return
7700
 
7701
 
1845 vikas 7702
  def __repr__(self):
7703
    L = ['%s=%r' % (key, value)
7704
      for key, value in self.__dict__.iteritems()]
7705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7706
 
7707
  def __eq__(self, other):
7708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7709
 
7710
  def __ne__(self, other):
7711
    return not (self == other)
7712
 
7713
class createAffiliate_args:
7714
  """
7715
  Attributes:
7716
   - name
7717
   - url
7718
   - masterAffiliateId
1859 vikas 7719
   - addedOn
1845 vikas 7720
  """
7721
 
7722
  thrift_spec = (
7723
    None, # 0
7724
    (1, TType.STRING, 'name', None, None, ), # 1
7725
    (2, TType.STRING, 'url', None, None, ), # 2
7726
    (3, TType.I64, 'masterAffiliateId', None, None, ), # 3
1859 vikas 7727
    (4, TType.I64, 'addedOn', None, None, ), # 4
1845 vikas 7728
  )
7729
 
1859 vikas 7730
  def __init__(self, name=None, url=None, masterAffiliateId=None, addedOn=None,):
1845 vikas 7731
    self.name = name
7732
    self.url = url
7733
    self.masterAffiliateId = masterAffiliateId
1859 vikas 7734
    self.addedOn = addedOn
1845 vikas 7735
 
7736
  def read(self, iprot):
7737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7739
      return
7740
    iprot.readStructBegin()
7741
    while True:
7742
      (fname, ftype, fid) = iprot.readFieldBegin()
7743
      if ftype == TType.STOP:
7744
        break
7745
      if fid == 1:
7746
        if ftype == TType.STRING:
7747
          self.name = iprot.readString();
7748
        else:
7749
          iprot.skip(ftype)
7750
      elif fid == 2:
7751
        if ftype == TType.STRING:
7752
          self.url = iprot.readString();
7753
        else:
7754
          iprot.skip(ftype)
7755
      elif fid == 3:
7756
        if ftype == TType.I64:
7757
          self.masterAffiliateId = iprot.readI64();
7758
        else:
7759
          iprot.skip(ftype)
1859 vikas 7760
      elif fid == 4:
7761
        if ftype == TType.I64:
7762
          self.addedOn = iprot.readI64();
7763
        else:
7764
          iprot.skip(ftype)
1845 vikas 7765
      else:
7766
        iprot.skip(ftype)
7767
      iprot.readFieldEnd()
7768
    iprot.readStructEnd()
7769
 
7770
  def write(self, oprot):
7771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7773
      return
7774
    oprot.writeStructBegin('createAffiliate_args')
3431 rajveer 7775
    if self.name is not None:
1845 vikas 7776
      oprot.writeFieldBegin('name', TType.STRING, 1)
7777
      oprot.writeString(self.name)
7778
      oprot.writeFieldEnd()
3431 rajveer 7779
    if self.url is not None:
1845 vikas 7780
      oprot.writeFieldBegin('url', TType.STRING, 2)
7781
      oprot.writeString(self.url)
7782
      oprot.writeFieldEnd()
3431 rajveer 7783
    if self.masterAffiliateId is not None:
1845 vikas 7784
      oprot.writeFieldBegin('masterAffiliateId', TType.I64, 3)
7785
      oprot.writeI64(self.masterAffiliateId)
7786
      oprot.writeFieldEnd()
3431 rajveer 7787
    if self.addedOn is not None:
1859 vikas 7788
      oprot.writeFieldBegin('addedOn', TType.I64, 4)
7789
      oprot.writeI64(self.addedOn)
7790
      oprot.writeFieldEnd()
1845 vikas 7791
    oprot.writeFieldStop()
7792
    oprot.writeStructEnd()
7793
 
3431 rajveer 7794
  def validate(self):
7795
    return
7796
 
7797
 
1845 vikas 7798
  def __repr__(self):
7799
    L = ['%s=%r' % (key, value)
7800
      for key, value in self.__dict__.iteritems()]
7801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7802
 
7803
  def __eq__(self, other):
7804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7805
 
7806
  def __ne__(self, other):
7807
    return not (self == other)
7808
 
7809
class createAffiliate_result:
7810
  """
7811
  Attributes:
7812
   - success
7813
   - utx
7814
  """
7815
 
7816
  thrift_spec = (
7817
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 7818
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7819
  )
7820
 
7821
  def __init__(self, success=None, utx=None,):
7822
    self.success = success
7823
    self.utx = utx
7824
 
7825
  def read(self, iprot):
7826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7828
      return
7829
    iprot.readStructBegin()
7830
    while True:
7831
      (fname, ftype, fid) = iprot.readFieldBegin()
7832
      if ftype == TType.STOP:
7833
        break
7834
      if fid == 0:
7835
        if ftype == TType.STRUCT:
7836
          self.success = Affiliate()
7837
          self.success.read(iprot)
7838
        else:
7839
          iprot.skip(ftype)
7840
      elif fid == 1:
7841
        if ftype == TType.STRUCT:
1996 vikas 7842
          self.utx = UserAffiliateException()
1845 vikas 7843
          self.utx.read(iprot)
7844
        else:
7845
          iprot.skip(ftype)
7846
      else:
7847
        iprot.skip(ftype)
7848
      iprot.readFieldEnd()
7849
    iprot.readStructEnd()
7850
 
7851
  def write(self, oprot):
7852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7854
      return
7855
    oprot.writeStructBegin('createAffiliate_result')
3431 rajveer 7856
    if self.success is not None:
1845 vikas 7857
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7858
      self.success.write(oprot)
7859
      oprot.writeFieldEnd()
3431 rajveer 7860
    if self.utx is not None:
1845 vikas 7861
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7862
      self.utx.write(oprot)
7863
      oprot.writeFieldEnd()
7864
    oprot.writeFieldStop()
7865
    oprot.writeStructEnd()
7866
 
3431 rajveer 7867
  def validate(self):
7868
    return
7869
 
7870
 
1845 vikas 7871
  def __repr__(self):
7872
    L = ['%s=%r' % (key, value)
7873
      for key, value in self.__dict__.iteritems()]
7874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7875
 
7876
  def __eq__(self, other):
7877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7878
 
7879
  def __ne__(self, other):
7880
    return not (self == other)
7881
 
7882
class getAffiliateById_args:
7883
  """
7884
  Attributes:
7885
   - id
7886
  """
7887
 
7888
  thrift_spec = (
7889
    None, # 0
7890
    (1, TType.I64, 'id', None, None, ), # 1
7891
  )
7892
 
7893
  def __init__(self, id=None,):
7894
    self.id = id
7895
 
7896
  def read(self, iprot):
7897
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7898
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7899
      return
7900
    iprot.readStructBegin()
7901
    while True:
7902
      (fname, ftype, fid) = iprot.readFieldBegin()
7903
      if ftype == TType.STOP:
7904
        break
7905
      if fid == 1:
7906
        if ftype == TType.I64:
7907
          self.id = iprot.readI64();
7908
        else:
7909
          iprot.skip(ftype)
7910
      else:
7911
        iprot.skip(ftype)
7912
      iprot.readFieldEnd()
7913
    iprot.readStructEnd()
7914
 
7915
  def write(self, oprot):
7916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7918
      return
7919
    oprot.writeStructBegin('getAffiliateById_args')
3431 rajveer 7920
    if self.id is not None:
1845 vikas 7921
      oprot.writeFieldBegin('id', TType.I64, 1)
7922
      oprot.writeI64(self.id)
7923
      oprot.writeFieldEnd()
7924
    oprot.writeFieldStop()
7925
    oprot.writeStructEnd()
7926
 
3431 rajveer 7927
  def validate(self):
7928
    return
7929
 
7930
 
1845 vikas 7931
  def __repr__(self):
7932
    L = ['%s=%r' % (key, value)
7933
      for key, value in self.__dict__.iteritems()]
7934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7935
 
7936
  def __eq__(self, other):
7937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7938
 
7939
  def __ne__(self, other):
7940
    return not (self == other)
7941
 
7942
class getAffiliateById_result:
7943
  """
7944
  Attributes:
7945
   - success
7946
   - utx
7947
  """
7948
 
7949
  thrift_spec = (
7950
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 7951
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 7952
  )
7953
 
7954
  def __init__(self, success=None, utx=None,):
7955
    self.success = success
7956
    self.utx = utx
7957
 
7958
  def read(self, iprot):
7959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7961
      return
7962
    iprot.readStructBegin()
7963
    while True:
7964
      (fname, ftype, fid) = iprot.readFieldBegin()
7965
      if ftype == TType.STOP:
7966
        break
7967
      if fid == 0:
7968
        if ftype == TType.STRUCT:
7969
          self.success = Affiliate()
7970
          self.success.read(iprot)
7971
        else:
7972
          iprot.skip(ftype)
7973
      elif fid == 1:
7974
        if ftype == TType.STRUCT:
1996 vikas 7975
          self.utx = UserAffiliateException()
1845 vikas 7976
          self.utx.read(iprot)
7977
        else:
7978
          iprot.skip(ftype)
7979
      else:
7980
        iprot.skip(ftype)
7981
      iprot.readFieldEnd()
7982
    iprot.readStructEnd()
7983
 
7984
  def write(self, oprot):
7985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7987
      return
7988
    oprot.writeStructBegin('getAffiliateById_result')
3431 rajveer 7989
    if self.success is not None:
1845 vikas 7990
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7991
      self.success.write(oprot)
7992
      oprot.writeFieldEnd()
3431 rajveer 7993
    if self.utx is not None:
1845 vikas 7994
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
7995
      self.utx.write(oprot)
7996
      oprot.writeFieldEnd()
7997
    oprot.writeFieldStop()
7998
    oprot.writeStructEnd()
7999
 
3431 rajveer 8000
  def validate(self):
8001
    return
8002
 
8003
 
1845 vikas 8004
  def __repr__(self):
8005
    L = ['%s=%r' % (key, value)
8006
      for key, value in self.__dict__.iteritems()]
8007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8008
 
8009
  def __eq__(self, other):
8010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8011
 
8012
  def __ne__(self, other):
8013
    return not (self == other)
8014
 
8015
class getAffiliateByName_args:
8016
  """
8017
  Attributes:
8018
   - name
8019
  """
8020
 
8021
  thrift_spec = (
8022
    None, # 0
8023
    (1, TType.STRING, 'name', None, None, ), # 1
8024
  )
8025
 
8026
  def __init__(self, name=None,):
8027
    self.name = name
8028
 
8029
  def read(self, iprot):
8030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8032
      return
8033
    iprot.readStructBegin()
8034
    while True:
8035
      (fname, ftype, fid) = iprot.readFieldBegin()
8036
      if ftype == TType.STOP:
8037
        break
8038
      if fid == 1:
8039
        if ftype == TType.STRING:
8040
          self.name = iprot.readString();
8041
        else:
8042
          iprot.skip(ftype)
8043
      else:
8044
        iprot.skip(ftype)
8045
      iprot.readFieldEnd()
8046
    iprot.readStructEnd()
8047
 
8048
  def write(self, oprot):
8049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8051
      return
8052
    oprot.writeStructBegin('getAffiliateByName_args')
3431 rajveer 8053
    if self.name is not None:
1845 vikas 8054
      oprot.writeFieldBegin('name', TType.STRING, 1)
8055
      oprot.writeString(self.name)
8056
      oprot.writeFieldEnd()
8057
    oprot.writeFieldStop()
8058
    oprot.writeStructEnd()
8059
 
3431 rajveer 8060
  def validate(self):
8061
    return
8062
 
8063
 
1845 vikas 8064
  def __repr__(self):
8065
    L = ['%s=%r' % (key, value)
8066
      for key, value in self.__dict__.iteritems()]
8067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8068
 
8069
  def __eq__(self, other):
8070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8071
 
8072
  def __ne__(self, other):
8073
    return not (self == other)
8074
 
8075
class getAffiliateByName_result:
8076
  """
8077
  Attributes:
8078
   - success
8079
   - utx
8080
  """
8081
 
8082
  thrift_spec = (
8083
    (0, TType.STRUCT, 'success', (Affiliate, Affiliate.thrift_spec), None, ), # 0
1996 vikas 8084
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8085
  )
8086
 
8087
  def __init__(self, success=None, utx=None,):
8088
    self.success = success
8089
    self.utx = utx
8090
 
8091
  def read(self, iprot):
8092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8094
      return
8095
    iprot.readStructBegin()
8096
    while True:
8097
      (fname, ftype, fid) = iprot.readFieldBegin()
8098
      if ftype == TType.STOP:
8099
        break
8100
      if fid == 0:
8101
        if ftype == TType.STRUCT:
8102
          self.success = Affiliate()
8103
          self.success.read(iprot)
8104
        else:
8105
          iprot.skip(ftype)
8106
      elif fid == 1:
8107
        if ftype == TType.STRUCT:
1996 vikas 8108
          self.utx = UserAffiliateException()
1845 vikas 8109
          self.utx.read(iprot)
8110
        else:
8111
          iprot.skip(ftype)
8112
      else:
8113
        iprot.skip(ftype)
8114
      iprot.readFieldEnd()
8115
    iprot.readStructEnd()
8116
 
8117
  def write(self, oprot):
8118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8120
      return
8121
    oprot.writeStructBegin('getAffiliateByName_result')
3431 rajveer 8122
    if self.success is not None:
1845 vikas 8123
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8124
      self.success.write(oprot)
8125
      oprot.writeFieldEnd()
3431 rajveer 8126
    if self.utx is not None:
1845 vikas 8127
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8128
      self.utx.write(oprot)
8129
      oprot.writeFieldEnd()
8130
    oprot.writeFieldStop()
8131
    oprot.writeStructEnd()
8132
 
3431 rajveer 8133
  def validate(self):
8134
    return
8135
 
8136
 
1845 vikas 8137
  def __repr__(self):
8138
    L = ['%s=%r' % (key, value)
8139
      for key, value in self.__dict__.iteritems()]
8140
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8141
 
8142
  def __eq__(self, other):
8143
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8144
 
8145
  def __ne__(self, other):
8146
    return not (self == other)
8147
 
1996 vikas 8148
class getTrackerById_args:
1845 vikas 8149
  """
8150
  Attributes:
8151
   - id
8152
  """
8153
 
8154
  thrift_spec = (
8155
    None, # 0
8156
    (1, TType.I64, 'id', None, None, ), # 1
8157
  )
8158
 
8159
  def __init__(self, id=None,):
8160
    self.id = id
8161
 
8162
  def read(self, iprot):
8163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8165
      return
8166
    iprot.readStructBegin()
8167
    while True:
8168
      (fname, ftype, fid) = iprot.readFieldBegin()
8169
      if ftype == TType.STOP:
8170
        break
8171
      if fid == 1:
8172
        if ftype == TType.I64:
8173
          self.id = iprot.readI64();
8174
        else:
8175
          iprot.skip(ftype)
8176
      else:
8177
        iprot.skip(ftype)
8178
      iprot.readFieldEnd()
8179
    iprot.readStructEnd()
8180
 
8181
  def write(self, oprot):
8182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8184
      return
1996 vikas 8185
    oprot.writeStructBegin('getTrackerById_args')
3431 rajveer 8186
    if self.id is not None:
1845 vikas 8187
      oprot.writeFieldBegin('id', TType.I64, 1)
8188
      oprot.writeI64(self.id)
8189
      oprot.writeFieldEnd()
8190
    oprot.writeFieldStop()
8191
    oprot.writeStructEnd()
8192
 
3431 rajveer 8193
  def validate(self):
8194
    return
8195
 
8196
 
1845 vikas 8197
  def __repr__(self):
8198
    L = ['%s=%r' % (key, value)
8199
      for key, value in self.__dict__.iteritems()]
8200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8201
 
8202
  def __eq__(self, other):
8203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8204
 
8205
  def __ne__(self, other):
8206
    return not (self == other)
8207
 
8208
class getTrackerById_result:
8209
  """
8210
  Attributes:
8211
   - success
8212
   - utx
8213
  """
8214
 
8215
  thrift_spec = (
8216
    (0, TType.STRUCT, 'success', (Tracker, Tracker.thrift_spec), None, ), # 0
1996 vikas 8217
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8218
  )
8219
 
8220
  def __init__(self, success=None, utx=None,):
8221
    self.success = success
8222
    self.utx = utx
8223
 
8224
  def read(self, iprot):
8225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8227
      return
8228
    iprot.readStructBegin()
8229
    while True:
8230
      (fname, ftype, fid) = iprot.readFieldBegin()
8231
      if ftype == TType.STOP:
8232
        break
8233
      if fid == 0:
8234
        if ftype == TType.STRUCT:
8235
          self.success = Tracker()
8236
          self.success.read(iprot)
8237
        else:
8238
          iprot.skip(ftype)
8239
      elif fid == 1:
8240
        if ftype == TType.STRUCT:
1996 vikas 8241
          self.utx = UserAffiliateException()
1845 vikas 8242
          self.utx.read(iprot)
8243
        else:
8244
          iprot.skip(ftype)
8245
      else:
8246
        iprot.skip(ftype)
8247
      iprot.readFieldEnd()
8248
    iprot.readStructEnd()
8249
 
8250
  def write(self, oprot):
8251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8253
      return
8254
    oprot.writeStructBegin('getTrackerById_result')
3431 rajveer 8255
    if self.success is not None:
1845 vikas 8256
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8257
      self.success.write(oprot)
8258
      oprot.writeFieldEnd()
3431 rajveer 8259
    if self.utx is not None:
1845 vikas 8260
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8261
      self.utx.write(oprot)
8262
      oprot.writeFieldEnd()
8263
    oprot.writeFieldStop()
8264
    oprot.writeStructEnd()
8265
 
3431 rajveer 8266
  def validate(self):
8267
    return
8268
 
8269
 
1845 vikas 8270
  def __repr__(self):
8271
    L = ['%s=%r' % (key, value)
8272
      for key, value in self.__dict__.iteritems()]
8273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8274
 
8275
  def __eq__(self, other):
8276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8277
 
8278
  def __ne__(self, other):
8279
    return not (self == other)
8280
 
1996 vikas 8281
class getAffiliatesByMasterAffiliate_args:
1845 vikas 8282
  """
8283
  Attributes:
1996 vikas 8284
   - id
1845 vikas 8285
  """
8286
 
8287
  thrift_spec = (
8288
    None, # 0
1996 vikas 8289
    (1, TType.I64, 'id', None, None, ), # 1
1845 vikas 8290
  )
8291
 
1996 vikas 8292
  def __init__(self, id=None,):
8293
    self.id = id
1845 vikas 8294
 
8295
  def read(self, iprot):
8296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8298
      return
8299
    iprot.readStructBegin()
8300
    while True:
8301
      (fname, ftype, fid) = iprot.readFieldBegin()
8302
      if ftype == TType.STOP:
8303
        break
8304
      if fid == 1:
8305
        if ftype == TType.I64:
1996 vikas 8306
          self.id = iprot.readI64();
1845 vikas 8307
        else:
8308
          iprot.skip(ftype)
8309
      else:
8310
        iprot.skip(ftype)
8311
      iprot.readFieldEnd()
8312
    iprot.readStructEnd()
8313
 
8314
  def write(self, oprot):
8315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8317
      return
1996 vikas 8318
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_args')
3431 rajveer 8319
    if self.id is not None:
1996 vikas 8320
      oprot.writeFieldBegin('id', TType.I64, 1)
8321
      oprot.writeI64(self.id)
1845 vikas 8322
      oprot.writeFieldEnd()
8323
    oprot.writeFieldStop()
8324
    oprot.writeStructEnd()
8325
 
3431 rajveer 8326
  def validate(self):
8327
    return
8328
 
8329
 
1845 vikas 8330
  def __repr__(self):
8331
    L = ['%s=%r' % (key, value)
8332
      for key, value in self.__dict__.iteritems()]
8333
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8334
 
8335
  def __eq__(self, other):
8336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8337
 
8338
  def __ne__(self, other):
8339
    return not (self == other)
8340
 
1996 vikas 8341
class getAffiliatesByMasterAffiliate_result:
1845 vikas 8342
  """
8343
  Attributes:
8344
   - success
8345
   - utx
8346
  """
8347
 
8348
  thrift_spec = (
1996 vikas 8349
    (0, TType.LIST, 'success', (TType.STRUCT,(Affiliate, Affiliate.thrift_spec)), None, ), # 0
8350
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8351
  )
8352
 
8353
  def __init__(self, success=None, utx=None,):
8354
    self.success = success
8355
    self.utx = utx
8356
 
8357
  def read(self, iprot):
8358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8360
      return
8361
    iprot.readStructBegin()
8362
    while True:
8363
      (fname, ftype, fid) = iprot.readFieldBegin()
8364
      if ftype == TType.STOP:
8365
        break
8366
      if fid == 0:
8367
        if ftype == TType.LIST:
8368
          self.success = []
5326 rajveer 8369
          (_etype89, _size86) = iprot.readListBegin()
8370
          for _i90 in xrange(_size86):
8371
            _elem91 = Affiliate()
8372
            _elem91.read(iprot)
8373
            self.success.append(_elem91)
1845 vikas 8374
          iprot.readListEnd()
8375
        else:
8376
          iprot.skip(ftype)
8377
      elif fid == 1:
8378
        if ftype == TType.STRUCT:
1996 vikas 8379
          self.utx = UserAffiliateException()
1845 vikas 8380
          self.utx.read(iprot)
8381
        else:
8382
          iprot.skip(ftype)
8383
      else:
8384
        iprot.skip(ftype)
8385
      iprot.readFieldEnd()
8386
    iprot.readStructEnd()
8387
 
8388
  def write(self, oprot):
8389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8391
      return
1996 vikas 8392
    oprot.writeStructBegin('getAffiliatesByMasterAffiliate_result')
3431 rajveer 8393
    if self.success is not None:
1845 vikas 8394
      oprot.writeFieldBegin('success', TType.LIST, 0)
8395
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8396
      for iter92 in self.success:
8397
        iter92.write(oprot)
1845 vikas 8398
      oprot.writeListEnd()
8399
      oprot.writeFieldEnd()
3431 rajveer 8400
    if self.utx is not None:
1845 vikas 8401
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8402
      self.utx.write(oprot)
8403
      oprot.writeFieldEnd()
8404
    oprot.writeFieldStop()
8405
    oprot.writeStructEnd()
8406
 
3431 rajveer 8407
  def validate(self):
8408
    return
8409
 
8410
 
1845 vikas 8411
  def __repr__(self):
8412
    L = ['%s=%r' % (key, value)
8413
      for key, value in self.__dict__.iteritems()]
8414
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8415
 
8416
  def __eq__(self, other):
8417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8418
 
8419
  def __ne__(self, other):
8420
    return not (self == other)
8421
 
8422
class addTrackLog_args:
8423
  """
8424
  Attributes:
1996 vikas 8425
   - affiliateId
1845 vikas 8426
   - userId
8427
   - event
8428
   - url
8429
   - data
1859 vikas 8430
   - addedOn
1845 vikas 8431
  """
8432
 
8433
  thrift_spec = (
8434
    None, # 0
1996 vikas 8435
    (1, TType.I64, 'affiliateId', None, None, ), # 1
1845 vikas 8436
    (2, TType.I64, 'userId', None, None, ), # 2
3378 vikas 8437
    (3, TType.I32, 'event', None, None, ), # 3
1845 vikas 8438
    (4, TType.STRING, 'url', None, None, ), # 4
8439
    (5, TType.STRING, 'data', None, None, ), # 5
1859 vikas 8440
    (6, TType.I64, 'addedOn', None, None, ), # 6
1845 vikas 8441
  )
8442
 
1996 vikas 8443
  def __init__(self, affiliateId=None, userId=None, event=None, url=None, data=None, addedOn=None,):
8444
    self.affiliateId = affiliateId
1845 vikas 8445
    self.userId = userId
8446
    self.event = event
8447
    self.url = url
8448
    self.data = data
1859 vikas 8449
    self.addedOn = addedOn
1845 vikas 8450
 
8451
  def read(self, iprot):
8452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8454
      return
8455
    iprot.readStructBegin()
8456
    while True:
8457
      (fname, ftype, fid) = iprot.readFieldBegin()
8458
      if ftype == TType.STOP:
8459
        break
8460
      if fid == 1:
8461
        if ftype == TType.I64:
1996 vikas 8462
          self.affiliateId = iprot.readI64();
1845 vikas 8463
        else:
8464
          iprot.skip(ftype)
8465
      elif fid == 2:
8466
        if ftype == TType.I64:
8467
          self.userId = iprot.readI64();
8468
        else:
8469
          iprot.skip(ftype)
8470
      elif fid == 3:
3378 vikas 8471
        if ftype == TType.I32:
8472
          self.event = iprot.readI32();
1845 vikas 8473
        else:
8474
          iprot.skip(ftype)
8475
      elif fid == 4:
8476
        if ftype == TType.STRING:
8477
          self.url = iprot.readString();
8478
        else:
8479
          iprot.skip(ftype)
8480
      elif fid == 5:
8481
        if ftype == TType.STRING:
8482
          self.data = iprot.readString();
8483
        else:
8484
          iprot.skip(ftype)
1859 vikas 8485
      elif fid == 6:
8486
        if ftype == TType.I64:
8487
          self.addedOn = iprot.readI64();
8488
        else:
8489
          iprot.skip(ftype)
1845 vikas 8490
      else:
8491
        iprot.skip(ftype)
8492
      iprot.readFieldEnd()
8493
    iprot.readStructEnd()
8494
 
8495
  def write(self, oprot):
8496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8498
      return
8499
    oprot.writeStructBegin('addTrackLog_args')
3431 rajveer 8500
    if self.affiliateId is not None:
1996 vikas 8501
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8502
      oprot.writeI64(self.affiliateId)
1845 vikas 8503
      oprot.writeFieldEnd()
3431 rajveer 8504
    if self.userId is not None:
1845 vikas 8505
      oprot.writeFieldBegin('userId', TType.I64, 2)
8506
      oprot.writeI64(self.userId)
8507
      oprot.writeFieldEnd()
3431 rajveer 8508
    if self.event is not None:
3378 vikas 8509
      oprot.writeFieldBegin('event', TType.I32, 3)
8510
      oprot.writeI32(self.event)
1845 vikas 8511
      oprot.writeFieldEnd()
3431 rajveer 8512
    if self.url is not None:
1845 vikas 8513
      oprot.writeFieldBegin('url', TType.STRING, 4)
8514
      oprot.writeString(self.url)
8515
      oprot.writeFieldEnd()
3431 rajveer 8516
    if self.data is not None:
1845 vikas 8517
      oprot.writeFieldBegin('data', TType.STRING, 5)
8518
      oprot.writeString(self.data)
8519
      oprot.writeFieldEnd()
3431 rajveer 8520
    if self.addedOn is not None:
1859 vikas 8521
      oprot.writeFieldBegin('addedOn', TType.I64, 6)
8522
      oprot.writeI64(self.addedOn)
8523
      oprot.writeFieldEnd()
1845 vikas 8524
    oprot.writeFieldStop()
8525
    oprot.writeStructEnd()
8526
 
3431 rajveer 8527
  def validate(self):
8528
    return
8529
 
8530
 
1845 vikas 8531
  def __repr__(self):
8532
    L = ['%s=%r' % (key, value)
8533
      for key, value in self.__dict__.iteritems()]
8534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8535
 
8536
  def __eq__(self, other):
8537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8538
 
8539
  def __ne__(self, other):
8540
    return not (self == other)
8541
 
8542
class addTrackLog_result:
8543
  """
8544
  Attributes:
8545
   - success
8546
   - utx
8547
  """
8548
 
8549
  thrift_spec = (
8550
    (0, TType.I64, 'success', None, None, ), # 0
1996 vikas 8551
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8552
  )
8553
 
8554
  def __init__(self, success=None, utx=None,):
8555
    self.success = success
8556
    self.utx = utx
8557
 
8558
  def read(self, iprot):
8559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8561
      return
8562
    iprot.readStructBegin()
8563
    while True:
8564
      (fname, ftype, fid) = iprot.readFieldBegin()
8565
      if ftype == TType.STOP:
8566
        break
8567
      if fid == 0:
8568
        if ftype == TType.I64:
8569
          self.success = iprot.readI64();
8570
        else:
8571
          iprot.skip(ftype)
8572
      elif fid == 1:
8573
        if ftype == TType.STRUCT:
1996 vikas 8574
          self.utx = UserAffiliateException()
1845 vikas 8575
          self.utx.read(iprot)
8576
        else:
8577
          iprot.skip(ftype)
8578
      else:
8579
        iprot.skip(ftype)
8580
      iprot.readFieldEnd()
8581
    iprot.readStructEnd()
8582
 
8583
  def write(self, oprot):
8584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8586
      return
8587
    oprot.writeStructBegin('addTrackLog_result')
3431 rajveer 8588
    if self.success is not None:
1845 vikas 8589
      oprot.writeFieldBegin('success', TType.I64, 0)
8590
      oprot.writeI64(self.success)
8591
      oprot.writeFieldEnd()
3431 rajveer 8592
    if self.utx is not None:
1845 vikas 8593
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8594
      self.utx.write(oprot)
8595
      oprot.writeFieldEnd()
8596
    oprot.writeFieldStop()
8597
    oprot.writeStructEnd()
8598
 
3431 rajveer 8599
  def validate(self):
8600
    return
8601
 
8602
 
1845 vikas 8603
  def __repr__(self):
8604
    L = ['%s=%r' % (key, value)
8605
      for key, value in self.__dict__.iteritems()]
8606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8607
 
8608
  def __eq__(self, other):
8609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8610
 
8611
  def __ne__(self, other):
8612
    return not (self == other)
8613
 
8614
class getTrackLogById_args:
8615
  """
8616
  Attributes:
8617
   - id
8618
  """
8619
 
8620
  thrift_spec = (
8621
    None, # 0
8622
    (1, TType.I64, 'id', None, None, ), # 1
8623
  )
8624
 
8625
  def __init__(self, id=None,):
8626
    self.id = id
8627
 
8628
  def read(self, iprot):
8629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8631
      return
8632
    iprot.readStructBegin()
8633
    while True:
8634
      (fname, ftype, fid) = iprot.readFieldBegin()
8635
      if ftype == TType.STOP:
8636
        break
8637
      if fid == 1:
8638
        if ftype == TType.I64:
8639
          self.id = iprot.readI64();
8640
        else:
8641
          iprot.skip(ftype)
8642
      else:
8643
        iprot.skip(ftype)
8644
      iprot.readFieldEnd()
8645
    iprot.readStructEnd()
8646
 
8647
  def write(self, oprot):
8648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8650
      return
8651
    oprot.writeStructBegin('getTrackLogById_args')
3431 rajveer 8652
    if self.id is not None:
1845 vikas 8653
      oprot.writeFieldBegin('id', TType.I64, 1)
8654
      oprot.writeI64(self.id)
8655
      oprot.writeFieldEnd()
8656
    oprot.writeFieldStop()
8657
    oprot.writeStructEnd()
8658
 
3431 rajveer 8659
  def validate(self):
8660
    return
8661
 
8662
 
1845 vikas 8663
  def __repr__(self):
8664
    L = ['%s=%r' % (key, value)
8665
      for key, value in self.__dict__.iteritems()]
8666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8667
 
8668
  def __eq__(self, other):
8669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8670
 
8671
  def __ne__(self, other):
8672
    return not (self == other)
8673
 
8674
class getTrackLogById_result:
8675
  """
8676
  Attributes:
8677
   - success
8678
   - utx
8679
  """
8680
 
8681
  thrift_spec = (
8682
    (0, TType.STRUCT, 'success', (TrackLog, TrackLog.thrift_spec), None, ), # 0
1996 vikas 8683
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8684
  )
8685
 
8686
  def __init__(self, success=None, utx=None,):
8687
    self.success = success
8688
    self.utx = utx
8689
 
8690
  def read(self, iprot):
8691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8693
      return
8694
    iprot.readStructBegin()
8695
    while True:
8696
      (fname, ftype, fid) = iprot.readFieldBegin()
8697
      if ftype == TType.STOP:
8698
        break
8699
      if fid == 0:
8700
        if ftype == TType.STRUCT:
8701
          self.success = TrackLog()
8702
          self.success.read(iprot)
8703
        else:
8704
          iprot.skip(ftype)
8705
      elif fid == 1:
8706
        if ftype == TType.STRUCT:
1996 vikas 8707
          self.utx = UserAffiliateException()
1845 vikas 8708
          self.utx.read(iprot)
8709
        else:
8710
          iprot.skip(ftype)
8711
      else:
8712
        iprot.skip(ftype)
8713
      iprot.readFieldEnd()
8714
    iprot.readStructEnd()
8715
 
8716
  def write(self, oprot):
8717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8719
      return
8720
    oprot.writeStructBegin('getTrackLogById_result')
3431 rajveer 8721
    if self.success is not None:
1845 vikas 8722
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8723
      self.success.write(oprot)
8724
      oprot.writeFieldEnd()
3431 rajveer 8725
    if self.utx is not None:
1845 vikas 8726
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8727
      self.utx.write(oprot)
8728
      oprot.writeFieldEnd()
8729
    oprot.writeFieldStop()
8730
    oprot.writeStructEnd()
8731
 
3431 rajveer 8732
  def validate(self):
8733
    return
8734
 
8735
 
1845 vikas 8736
  def __repr__(self):
8737
    L = ['%s=%r' % (key, value)
8738
      for key, value in self.__dict__.iteritems()]
8739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8740
 
8741
  def __eq__(self, other):
8742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8743
 
8744
  def __ne__(self, other):
8745
    return not (self == other)
8746
 
1996 vikas 8747
class getTrackLogsByAffiliate_args:
1845 vikas 8748
  """
8749
  Attributes:
1996 vikas 8750
   - affiliateId
3293 vikas 8751
   - startDate
8752
   - endDate
1845 vikas 8753
  """
8754
 
8755
  thrift_spec = (
8756
    None, # 0
1996 vikas 8757
    (1, TType.I64, 'affiliateId', None, None, ), # 1
3293 vikas 8758
    (2, TType.I64, 'startDate', None, None, ), # 2
8759
    (3, TType.I64, 'endDate', None, None, ), # 3
1845 vikas 8760
  )
8761
 
3293 vikas 8762
  def __init__(self, affiliateId=None, startDate=None, endDate=None,):
1996 vikas 8763
    self.affiliateId = affiliateId
3293 vikas 8764
    self.startDate = startDate
8765
    self.endDate = endDate
1845 vikas 8766
 
8767
  def read(self, iprot):
8768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8770
      return
8771
    iprot.readStructBegin()
8772
    while True:
8773
      (fname, ftype, fid) = iprot.readFieldBegin()
8774
      if ftype == TType.STOP:
8775
        break
8776
      if fid == 1:
8777
        if ftype == TType.I64:
1996 vikas 8778
          self.affiliateId = iprot.readI64();
1845 vikas 8779
        else:
8780
          iprot.skip(ftype)
3293 vikas 8781
      elif fid == 2:
8782
        if ftype == TType.I64:
8783
          self.startDate = iprot.readI64();
8784
        else:
8785
          iprot.skip(ftype)
8786
      elif fid == 3:
8787
        if ftype == TType.I64:
8788
          self.endDate = iprot.readI64();
8789
        else:
8790
          iprot.skip(ftype)
1845 vikas 8791
      else:
8792
        iprot.skip(ftype)
8793
      iprot.readFieldEnd()
8794
    iprot.readStructEnd()
8795
 
8796
  def write(self, oprot):
8797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8799
      return
1996 vikas 8800
    oprot.writeStructBegin('getTrackLogsByAffiliate_args')
3431 rajveer 8801
    if self.affiliateId is not None:
1996 vikas 8802
      oprot.writeFieldBegin('affiliateId', TType.I64, 1)
8803
      oprot.writeI64(self.affiliateId)
1845 vikas 8804
      oprot.writeFieldEnd()
3431 rajveer 8805
    if self.startDate is not None:
3293 vikas 8806
      oprot.writeFieldBegin('startDate', TType.I64, 2)
8807
      oprot.writeI64(self.startDate)
8808
      oprot.writeFieldEnd()
3431 rajveer 8809
    if self.endDate is not None:
3293 vikas 8810
      oprot.writeFieldBegin('endDate', TType.I64, 3)
8811
      oprot.writeI64(self.endDate)
8812
      oprot.writeFieldEnd()
1845 vikas 8813
    oprot.writeFieldStop()
8814
    oprot.writeStructEnd()
8815
 
3431 rajveer 8816
  def validate(self):
8817
    return
8818
 
8819
 
1845 vikas 8820
  def __repr__(self):
8821
    L = ['%s=%r' % (key, value)
8822
      for key, value in self.__dict__.iteritems()]
8823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8824
 
8825
  def __eq__(self, other):
8826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8827
 
8828
  def __ne__(self, other):
8829
    return not (self == other)
8830
 
1996 vikas 8831
class getTrackLogsByAffiliate_result:
1845 vikas 8832
  """
8833
  Attributes:
8834
   - success
8835
   - utx
8836
  """
8837
 
8838
  thrift_spec = (
8839
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 8840
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8841
  )
8842
 
8843
  def __init__(self, success=None, utx=None,):
8844
    self.success = success
8845
    self.utx = utx
8846
 
8847
  def read(self, iprot):
8848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8850
      return
8851
    iprot.readStructBegin()
8852
    while True:
8853
      (fname, ftype, fid) = iprot.readFieldBegin()
8854
      if ftype == TType.STOP:
8855
        break
8856
      if fid == 0:
8857
        if ftype == TType.LIST:
8858
          self.success = []
5326 rajveer 8859
          (_etype96, _size93) = iprot.readListBegin()
8860
          for _i97 in xrange(_size93):
8861
            _elem98 = TrackLog()
8862
            _elem98.read(iprot)
8863
            self.success.append(_elem98)
1845 vikas 8864
          iprot.readListEnd()
8865
        else:
8866
          iprot.skip(ftype)
8867
      elif fid == 1:
8868
        if ftype == TType.STRUCT:
1996 vikas 8869
          self.utx = UserAffiliateException()
1845 vikas 8870
          self.utx.read(iprot)
8871
        else:
8872
          iprot.skip(ftype)
8873
      else:
8874
        iprot.skip(ftype)
8875
      iprot.readFieldEnd()
8876
    iprot.readStructEnd()
8877
 
8878
  def write(self, oprot):
8879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8881
      return
1996 vikas 8882
    oprot.writeStructBegin('getTrackLogsByAffiliate_result')
3431 rajveer 8883
    if self.success is not None:
1845 vikas 8884
      oprot.writeFieldBegin('success', TType.LIST, 0)
8885
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 8886
      for iter99 in self.success:
8887
        iter99.write(oprot)
1845 vikas 8888
      oprot.writeListEnd()
8889
      oprot.writeFieldEnd()
3431 rajveer 8890
    if self.utx is not None:
1845 vikas 8891
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
8892
      self.utx.write(oprot)
8893
      oprot.writeFieldEnd()
8894
    oprot.writeFieldStop()
8895
    oprot.writeStructEnd()
8896
 
3431 rajveer 8897
  def validate(self):
8898
    return
8899
 
8900
 
1845 vikas 8901
  def __repr__(self):
8902
    L = ['%s=%r' % (key, value)
8903
      for key, value in self.__dict__.iteritems()]
8904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8905
 
8906
  def __eq__(self, other):
8907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8908
 
8909
  def __ne__(self, other):
8910
    return not (self == other)
8911
 
8912
class getTrackLogsByUser_args:
8913
  """
8914
  Attributes:
8915
   - userId
8916
  """
8917
 
8918
  thrift_spec = (
8919
    None, # 0
8920
    (1, TType.I64, 'userId', None, None, ), # 1
8921
  )
8922
 
8923
  def __init__(self, userId=None,):
8924
    self.userId = userId
8925
 
8926
  def read(self, iprot):
8927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8929
      return
8930
    iprot.readStructBegin()
8931
    while True:
8932
      (fname, ftype, fid) = iprot.readFieldBegin()
8933
      if ftype == TType.STOP:
8934
        break
8935
      if fid == 1:
8936
        if ftype == TType.I64:
8937
          self.userId = iprot.readI64();
8938
        else:
8939
          iprot.skip(ftype)
8940
      else:
8941
        iprot.skip(ftype)
8942
      iprot.readFieldEnd()
8943
    iprot.readStructEnd()
8944
 
8945
  def write(self, oprot):
8946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8948
      return
8949
    oprot.writeStructBegin('getTrackLogsByUser_args')
3431 rajveer 8950
    if self.userId is not None:
1845 vikas 8951
      oprot.writeFieldBegin('userId', TType.I64, 1)
8952
      oprot.writeI64(self.userId)
8953
      oprot.writeFieldEnd()
8954
    oprot.writeFieldStop()
8955
    oprot.writeStructEnd()
8956
 
3431 rajveer 8957
  def validate(self):
8958
    return
8959
 
8960
 
1845 vikas 8961
  def __repr__(self):
8962
    L = ['%s=%r' % (key, value)
8963
      for key, value in self.__dict__.iteritems()]
8964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8965
 
8966
  def __eq__(self, other):
8967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8968
 
8969
  def __ne__(self, other):
8970
    return not (self == other)
8971
 
8972
class getTrackLogsByUser_result:
8973
  """
8974
  Attributes:
8975
   - success
8976
   - utx
8977
  """
8978
 
8979
  thrift_spec = (
8980
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 8981
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 8982
  )
8983
 
8984
  def __init__(self, success=None, utx=None,):
8985
    self.success = success
8986
    self.utx = utx
8987
 
8988
  def read(self, iprot):
8989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8991
      return
8992
    iprot.readStructBegin()
8993
    while True:
8994
      (fname, ftype, fid) = iprot.readFieldBegin()
8995
      if ftype == TType.STOP:
8996
        break
8997
      if fid == 0:
8998
        if ftype == TType.LIST:
8999
          self.success = []
5326 rajveer 9000
          (_etype103, _size100) = iprot.readListBegin()
9001
          for _i104 in xrange(_size100):
9002
            _elem105 = TrackLog()
9003
            _elem105.read(iprot)
9004
            self.success.append(_elem105)
1845 vikas 9005
          iprot.readListEnd()
9006
        else:
9007
          iprot.skip(ftype)
9008
      elif fid == 1:
9009
        if ftype == TType.STRUCT:
1996 vikas 9010
          self.utx = UserAffiliateException()
1845 vikas 9011
          self.utx.read(iprot)
9012
        else:
9013
          iprot.skip(ftype)
9014
      else:
9015
        iprot.skip(ftype)
9016
      iprot.readFieldEnd()
9017
    iprot.readStructEnd()
9018
 
9019
  def write(self, oprot):
9020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9022
      return
9023
    oprot.writeStructBegin('getTrackLogsByUser_result')
3431 rajveer 9024
    if self.success is not None:
1845 vikas 9025
      oprot.writeFieldBegin('success', TType.LIST, 0)
9026
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9027
      for iter106 in self.success:
9028
        iter106.write(oprot)
1845 vikas 9029
      oprot.writeListEnd()
9030
      oprot.writeFieldEnd()
3431 rajveer 9031
    if self.utx is not None:
1845 vikas 9032
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9033
      self.utx.write(oprot)
9034
      oprot.writeFieldEnd()
9035
    oprot.writeFieldStop()
9036
    oprot.writeStructEnd()
9037
 
3431 rajveer 9038
  def validate(self):
9039
    return
9040
 
9041
 
1845 vikas 9042
  def __repr__(self):
9043
    L = ['%s=%r' % (key, value)
9044
      for key, value in self.__dict__.iteritems()]
9045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9046
 
9047
  def __eq__(self, other):
9048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9049
 
9050
  def __ne__(self, other):
9051
    return not (self == other)
9052
 
9053
class getTrackLogs_args:
9054
  """
9055
  Attributes:
9056
   - userId
9057
   - event
9058
   - url
9059
  """
9060
 
9061
  thrift_spec = (
9062
    None, # 0
1996 vikas 9063
    (1, TType.I64, 'userId', None, None, ), # 1
9064
    (2, TType.STRING, 'event', None, None, ), # 2
9065
    (3, TType.STRING, 'url', None, None, ), # 3
1845 vikas 9066
  )
9067
 
1996 vikas 9068
  def __init__(self, userId=None, event=None, url=None,):
1845 vikas 9069
    self.userId = userId
9070
    self.event = event
9071
    self.url = url
9072
 
9073
  def read(self, iprot):
9074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9076
      return
9077
    iprot.readStructBegin()
9078
    while True:
9079
      (fname, ftype, fid) = iprot.readFieldBegin()
9080
      if ftype == TType.STOP:
9081
        break
9082
      if fid == 1:
9083
        if ftype == TType.I64:
1996 vikas 9084
          self.userId = iprot.readI64();
1845 vikas 9085
        else:
9086
          iprot.skip(ftype)
9087
      elif fid == 2:
9088
        if ftype == TType.STRING:
9089
          self.event = iprot.readString();
9090
        else:
9091
          iprot.skip(ftype)
1996 vikas 9092
      elif fid == 3:
1845 vikas 9093
        if ftype == TType.STRING:
9094
          self.url = iprot.readString();
9095
        else:
9096
          iprot.skip(ftype)
9097
      else:
9098
        iprot.skip(ftype)
9099
      iprot.readFieldEnd()
9100
    iprot.readStructEnd()
9101
 
9102
  def write(self, oprot):
9103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9105
      return
9106
    oprot.writeStructBegin('getTrackLogs_args')
3431 rajveer 9107
    if self.userId is not None:
1996 vikas 9108
      oprot.writeFieldBegin('userId', TType.I64, 1)
1845 vikas 9109
      oprot.writeI64(self.userId)
9110
      oprot.writeFieldEnd()
3431 rajveer 9111
    if self.event is not None:
1996 vikas 9112
      oprot.writeFieldBegin('event', TType.STRING, 2)
1845 vikas 9113
      oprot.writeString(self.event)
9114
      oprot.writeFieldEnd()
3431 rajveer 9115
    if self.url is not None:
1996 vikas 9116
      oprot.writeFieldBegin('url', TType.STRING, 3)
1845 vikas 9117
      oprot.writeString(self.url)
9118
      oprot.writeFieldEnd()
9119
    oprot.writeFieldStop()
9120
    oprot.writeStructEnd()
9121
 
3431 rajveer 9122
  def validate(self):
9123
    return
9124
 
9125
 
1845 vikas 9126
  def __repr__(self):
9127
    L = ['%s=%r' % (key, value)
9128
      for key, value in self.__dict__.iteritems()]
9129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9130
 
9131
  def __eq__(self, other):
9132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9133
 
9134
  def __ne__(self, other):
9135
    return not (self == other)
9136
 
9137
class getTrackLogs_result:
9138
  """
9139
  Attributes:
9140
   - success
9141
   - utx
9142
  """
9143
 
9144
  thrift_spec = (
9145
    (0, TType.LIST, 'success', (TType.STRUCT,(TrackLog, TrackLog.thrift_spec)), None, ), # 0
1996 vikas 9146
    (1, TType.STRUCT, 'utx', (UserAffiliateException, UserAffiliateException.thrift_spec), None, ), # 1
1845 vikas 9147
  )
9148
 
9149
  def __init__(self, success=None, utx=None,):
9150
    self.success = success
9151
    self.utx = utx
9152
 
9153
  def read(self, iprot):
9154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9156
      return
9157
    iprot.readStructBegin()
9158
    while True:
9159
      (fname, ftype, fid) = iprot.readFieldBegin()
9160
      if ftype == TType.STOP:
9161
        break
9162
      if fid == 0:
9163
        if ftype == TType.LIST:
9164
          self.success = []
5326 rajveer 9165
          (_etype110, _size107) = iprot.readListBegin()
9166
          for _i111 in xrange(_size107):
9167
            _elem112 = TrackLog()
9168
            _elem112.read(iprot)
9169
            self.success.append(_elem112)
1845 vikas 9170
          iprot.readListEnd()
9171
        else:
9172
          iprot.skip(ftype)
9173
      elif fid == 1:
9174
        if ftype == TType.STRUCT:
1996 vikas 9175
          self.utx = UserAffiliateException()
1845 vikas 9176
          self.utx.read(iprot)
9177
        else:
9178
          iprot.skip(ftype)
9179
      else:
9180
        iprot.skip(ftype)
9181
      iprot.readFieldEnd()
9182
    iprot.readStructEnd()
9183
 
9184
  def write(self, oprot):
9185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9187
      return
9188
    oprot.writeStructBegin('getTrackLogs_result')
3431 rajveer 9189
    if self.success is not None:
1845 vikas 9190
      oprot.writeFieldBegin('success', TType.LIST, 0)
9191
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9192
      for iter113 in self.success:
9193
        iter113.write(oprot)
1845 vikas 9194
      oprot.writeListEnd()
9195
      oprot.writeFieldEnd()
3431 rajveer 9196
    if self.utx is not None:
1845 vikas 9197
      oprot.writeFieldBegin('utx', TType.STRUCT, 1)
9198
      self.utx.write(oprot)
9199
      oprot.writeFieldEnd()
9200
    oprot.writeFieldStop()
9201
    oprot.writeStructEnd()
9202
 
3431 rajveer 9203
  def validate(self):
9204
    return
9205
 
9206
 
1845 vikas 9207
  def __repr__(self):
9208
    L = ['%s=%r' % (key, value)
9209
      for key, value in self.__dict__.iteritems()]
9210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9211
 
9212
  def __eq__(self, other):
9213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9214
 
9215
  def __ne__(self, other):
9216
    return not (self == other)
9217
 
559 chandransh 9218
class createCart_args:
94 ashish 9219
  """
9220
  Attributes:
559 chandransh 9221
   - userId
94 ashish 9222
  """
9223
 
9224
  thrift_spec = (
9225
    None, # 0
559 chandransh 9226
    (1, TType.I64, 'userId', None, None, ), # 1
94 ashish 9227
  )
9228
 
559 chandransh 9229
  def __init__(self, userId=None,):
9230
    self.userId = userId
94 ashish 9231
 
9232
  def read(self, iprot):
9233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9235
      return
9236
    iprot.readStructBegin()
9237
    while True:
9238
      (fname, ftype, fid) = iprot.readFieldBegin()
9239
      if ftype == TType.STOP:
9240
        break
9241
      if fid == 1:
9242
        if ftype == TType.I64:
559 chandransh 9243
          self.userId = iprot.readI64();
94 ashish 9244
        else:
9245
          iprot.skip(ftype)
559 chandransh 9246
      else:
9247
        iprot.skip(ftype)
9248
      iprot.readFieldEnd()
9249
    iprot.readStructEnd()
9250
 
9251
  def write(self, oprot):
9252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9254
      return
9255
    oprot.writeStructBegin('createCart_args')
3431 rajveer 9256
    if self.userId is not None:
559 chandransh 9257
      oprot.writeFieldBegin('userId', TType.I64, 1)
9258
      oprot.writeI64(self.userId)
9259
      oprot.writeFieldEnd()
9260
    oprot.writeFieldStop()
9261
    oprot.writeStructEnd()
9262
 
3431 rajveer 9263
  def validate(self):
9264
    return
9265
 
9266
 
559 chandransh 9267
  def __repr__(self):
9268
    L = ['%s=%r' % (key, value)
9269
      for key, value in self.__dict__.iteritems()]
9270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9271
 
9272
  def __eq__(self, other):
9273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9274
 
9275
  def __ne__(self, other):
9276
    return not (self == other)
9277
 
9278
class createCart_result:
9279
  """
9280
  Attributes:
9281
   - success
9282
   - scx
9283
  """
9284
 
9285
  thrift_spec = (
9286
    (0, TType.I64, 'success', None, None, ), # 0
9287
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9288
  )
9289
 
9290
  def __init__(self, success=None, scx=None,):
9291
    self.success = success
9292
    self.scx = scx
9293
 
9294
  def read(self, iprot):
9295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9297
      return
9298
    iprot.readStructBegin()
9299
    while True:
9300
      (fname, ftype, fid) = iprot.readFieldBegin()
9301
      if ftype == TType.STOP:
9302
        break
9303
      if fid == 0:
94 ashish 9304
        if ftype == TType.I64:
559 chandransh 9305
          self.success = iprot.readI64();
94 ashish 9306
        else:
9307
          iprot.skip(ftype)
559 chandransh 9308
      elif fid == 1:
9309
        if ftype == TType.STRUCT:
9310
          self.scx = ShoppingCartException()
9311
          self.scx.read(iprot)
9312
        else:
9313
          iprot.skip(ftype)
94 ashish 9314
      else:
9315
        iprot.skip(ftype)
9316
      iprot.readFieldEnd()
9317
    iprot.readStructEnd()
9318
 
9319
  def write(self, oprot):
9320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9322
      return
559 chandransh 9323
    oprot.writeStructBegin('createCart_result')
3431 rajveer 9324
    if self.success is not None:
559 chandransh 9325
      oprot.writeFieldBegin('success', TType.I64, 0)
9326
      oprot.writeI64(self.success)
94 ashish 9327
      oprot.writeFieldEnd()
3431 rajveer 9328
    if self.scx is not None:
559 chandransh 9329
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9330
      self.scx.write(oprot)
94 ashish 9331
      oprot.writeFieldEnd()
9332
    oprot.writeFieldStop()
9333
    oprot.writeStructEnd()
9334
 
3431 rajveer 9335
  def validate(self):
9336
    return
9337
 
9338
 
94 ashish 9339
  def __repr__(self):
9340
    L = ['%s=%r' % (key, value)
9341
      for key, value in self.__dict__.iteritems()]
9342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9343
 
9344
  def __eq__(self, other):
9345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9346
 
9347
  def __ne__(self, other):
9348
    return not (self == other)
9349
 
559 chandransh 9350
class getCurrentCart_args:
94 ashish 9351
  """
9352
  Attributes:
559 chandransh 9353
   - userId
9354
  """
9355
 
9356
  thrift_spec = (
9357
    None, # 0
9358
    (1, TType.I64, 'userId', None, None, ), # 1
9359
  )
9360
 
9361
  def __init__(self, userId=None,):
9362
    self.userId = userId
9363
 
9364
  def read(self, iprot):
9365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9367
      return
9368
    iprot.readStructBegin()
9369
    while True:
9370
      (fname, ftype, fid) = iprot.readFieldBegin()
9371
      if ftype == TType.STOP:
9372
        break
9373
      if fid == 1:
9374
        if ftype == TType.I64:
9375
          self.userId = iprot.readI64();
9376
        else:
9377
          iprot.skip(ftype)
9378
      else:
9379
        iprot.skip(ftype)
9380
      iprot.readFieldEnd()
9381
    iprot.readStructEnd()
9382
 
9383
  def write(self, oprot):
9384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9386
      return
9387
    oprot.writeStructBegin('getCurrentCart_args')
3431 rajveer 9388
    if self.userId is not None:
559 chandransh 9389
      oprot.writeFieldBegin('userId', TType.I64, 1)
9390
      oprot.writeI64(self.userId)
9391
      oprot.writeFieldEnd()
9392
    oprot.writeFieldStop()
9393
    oprot.writeStructEnd()
9394
 
3431 rajveer 9395
  def validate(self):
9396
    return
9397
 
9398
 
559 chandransh 9399
  def __repr__(self):
9400
    L = ['%s=%r' % (key, value)
9401
      for key, value in self.__dict__.iteritems()]
9402
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9403
 
9404
  def __eq__(self, other):
9405
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9406
 
9407
  def __ne__(self, other):
9408
    return not (self == other)
9409
 
9410
class getCurrentCart_result:
9411
  """
9412
  Attributes:
94 ashish 9413
   - success
559 chandransh 9414
   - scx
94 ashish 9415
  """
9416
 
9417
  thrift_spec = (
559 chandransh 9418
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9419
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9420
  )
9421
 
559 chandransh 9422
  def __init__(self, success=None, scx=None,):
94 ashish 9423
    self.success = success
559 chandransh 9424
    self.scx = scx
94 ashish 9425
 
9426
  def read(self, iprot):
9427
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9428
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9429
      return
9430
    iprot.readStructBegin()
9431
    while True:
9432
      (fname, ftype, fid) = iprot.readFieldBegin()
9433
      if ftype == TType.STOP:
9434
        break
9435
      if fid == 0:
559 chandransh 9436
        if ftype == TType.STRUCT:
9437
          self.success = Cart()
9438
          self.success.read(iprot)
94 ashish 9439
        else:
9440
          iprot.skip(ftype)
9441
      elif fid == 1:
9442
        if ftype == TType.STRUCT:
559 chandransh 9443
          self.scx = ShoppingCartException()
9444
          self.scx.read(iprot)
94 ashish 9445
        else:
9446
          iprot.skip(ftype)
9447
      else:
9448
        iprot.skip(ftype)
9449
      iprot.readFieldEnd()
9450
    iprot.readStructEnd()
9451
 
9452
  def write(self, oprot):
9453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9455
      return
559 chandransh 9456
    oprot.writeStructBegin('getCurrentCart_result')
3431 rajveer 9457
    if self.success is not None:
559 chandransh 9458
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9459
      self.success.write(oprot)
94 ashish 9460
      oprot.writeFieldEnd()
3431 rajveer 9461
    if self.scx is not None:
559 chandransh 9462
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9463
      self.scx.write(oprot)
94 ashish 9464
      oprot.writeFieldEnd()
9465
    oprot.writeFieldStop()
9466
    oprot.writeStructEnd()
9467
 
3431 rajveer 9468
  def validate(self):
9469
    return
9470
 
9471
 
94 ashish 9472
  def __repr__(self):
9473
    L = ['%s=%r' % (key, value)
9474
      for key, value in self.__dict__.iteritems()]
9475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9476
 
9477
  def __eq__(self, other):
9478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9479
 
9480
  def __ne__(self, other):
9481
    return not (self == other)
9482
 
559 chandransh 9483
class getCart_args:
504 rajveer 9484
  """
9485
  Attributes:
559 chandransh 9486
   - cartId
504 rajveer 9487
  """
9488
 
9489
  thrift_spec = (
9490
    None, # 0
559 chandransh 9491
    (1, TType.I64, 'cartId', None, None, ), # 1
504 rajveer 9492
  )
9493
 
559 chandransh 9494
  def __init__(self, cartId=None,):
9495
    self.cartId = cartId
504 rajveer 9496
 
9497
  def read(self, iprot):
9498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9500
      return
9501
    iprot.readStructBegin()
9502
    while True:
9503
      (fname, ftype, fid) = iprot.readFieldBegin()
9504
      if ftype == TType.STOP:
9505
        break
9506
      if fid == 1:
9507
        if ftype == TType.I64:
559 chandransh 9508
          self.cartId = iprot.readI64();
504 rajveer 9509
        else:
9510
          iprot.skip(ftype)
9511
      else:
9512
        iprot.skip(ftype)
9513
      iprot.readFieldEnd()
9514
    iprot.readStructEnd()
9515
 
9516
  def write(self, oprot):
9517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9519
      return
559 chandransh 9520
    oprot.writeStructBegin('getCart_args')
3431 rajveer 9521
    if self.cartId is not None:
559 chandransh 9522
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9523
      oprot.writeI64(self.cartId)
504 rajveer 9524
      oprot.writeFieldEnd()
9525
    oprot.writeFieldStop()
9526
    oprot.writeStructEnd()
9527
 
3431 rajveer 9528
  def validate(self):
9529
    return
9530
 
9531
 
504 rajveer 9532
  def __repr__(self):
9533
    L = ['%s=%r' % (key, value)
9534
      for key, value in self.__dict__.iteritems()]
9535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9536
 
9537
  def __eq__(self, other):
9538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9539
 
9540
  def __ne__(self, other):
9541
    return not (self == other)
9542
 
559 chandransh 9543
class getCart_result:
504 rajveer 9544
  """
9545
  Attributes:
9546
   - success
559 chandransh 9547
   - scx
504 rajveer 9548
  """
9549
 
9550
  thrift_spec = (
559 chandransh 9551
    (0, TType.STRUCT, 'success', (Cart, Cart.thrift_spec), None, ), # 0
9552
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
504 rajveer 9553
  )
9554
 
559 chandransh 9555
  def __init__(self, success=None, scx=None,):
504 rajveer 9556
    self.success = success
559 chandransh 9557
    self.scx = scx
504 rajveer 9558
 
9559
  def read(self, iprot):
9560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9562
      return
9563
    iprot.readStructBegin()
9564
    while True:
9565
      (fname, ftype, fid) = iprot.readFieldBegin()
9566
      if ftype == TType.STOP:
9567
        break
9568
      if fid == 0:
559 chandransh 9569
        if ftype == TType.STRUCT:
9570
          self.success = Cart()
9571
          self.success.read(iprot)
504 rajveer 9572
        else:
9573
          iprot.skip(ftype)
9574
      elif fid == 1:
9575
        if ftype == TType.STRUCT:
559 chandransh 9576
          self.scx = ShoppingCartException()
9577
          self.scx.read(iprot)
504 rajveer 9578
        else:
9579
          iprot.skip(ftype)
9580
      else:
9581
        iprot.skip(ftype)
9582
      iprot.readFieldEnd()
9583
    iprot.readStructEnd()
9584
 
9585
  def write(self, oprot):
9586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9588
      return
559 chandransh 9589
    oprot.writeStructBegin('getCart_result')
3431 rajveer 9590
    if self.success is not None:
559 chandransh 9591
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9592
      self.success.write(oprot)
504 rajveer 9593
      oprot.writeFieldEnd()
3431 rajveer 9594
    if self.scx is not None:
559 chandransh 9595
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9596
      self.scx.write(oprot)
504 rajveer 9597
      oprot.writeFieldEnd()
9598
    oprot.writeFieldStop()
9599
    oprot.writeStructEnd()
9600
 
3431 rajveer 9601
  def validate(self):
9602
    return
9603
 
9604
 
504 rajveer 9605
  def __repr__(self):
9606
    L = ['%s=%r' % (key, value)
9607
      for key, value in self.__dict__.iteritems()]
9608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9609
 
9610
  def __eq__(self, other):
9611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9612
 
9613
  def __ne__(self, other):
9614
    return not (self == other)
9615
 
559 chandransh 9616
class getCartsByTime_args:
9617
  """
9618
  Attributes:
9619
   - from_time
9620
   - to_time
9621
   - status
9622
  """
9623
 
9624
  thrift_spec = (
9625
    None, # 0
9626
    (1, TType.I64, 'from_time', None, None, ), # 1
9627
    (2, TType.I64, 'to_time', None, None, ), # 2
9628
    (3, TType.I32, 'status', None, None, ), # 3
9629
  )
9630
 
9631
  def __init__(self, from_time=None, to_time=None, status=None,):
9632
    self.from_time = from_time
9633
    self.to_time = to_time
9634
    self.status = status
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 == 1:
94 ashish 9646
        if ftype == TType.I64:
559 chandransh 9647
          self.from_time = iprot.readI64();
94 ashish 9648
        else:
9649
          iprot.skip(ftype)
122 ashish 9650
      elif fid == 2:
559 chandransh 9651
        if ftype == TType.I64:
9652
          self.to_time = iprot.readI64();
122 ashish 9653
        else:
9654
          iprot.skip(ftype)
559 chandransh 9655
      elif fid == 3:
9656
        if ftype == TType.I32:
9657
          self.status = iprot.readI32();
9658
        else:
9659
          iprot.skip(ftype)
94 ashish 9660
      else:
9661
        iprot.skip(ftype)
9662
      iprot.readFieldEnd()
9663
    iprot.readStructEnd()
9664
 
9665
  def write(self, oprot):
9666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9668
      return
559 chandransh 9669
    oprot.writeStructBegin('getCartsByTime_args')
3431 rajveer 9670
    if self.from_time is not None:
559 chandransh 9671
      oprot.writeFieldBegin('from_time', TType.I64, 1)
9672
      oprot.writeI64(self.from_time)
94 ashish 9673
      oprot.writeFieldEnd()
3431 rajveer 9674
    if self.to_time is not None:
559 chandransh 9675
      oprot.writeFieldBegin('to_time', TType.I64, 2)
9676
      oprot.writeI64(self.to_time)
122 ashish 9677
      oprot.writeFieldEnd()
3431 rajveer 9678
    if self.status is not None:
559 chandransh 9679
      oprot.writeFieldBegin('status', TType.I32, 3)
9680
      oprot.writeI32(self.status)
9681
      oprot.writeFieldEnd()
94 ashish 9682
    oprot.writeFieldStop()
9683
    oprot.writeStructEnd()
9684
 
3431 rajveer 9685
  def validate(self):
9686
    return
9687
 
9688
 
94 ashish 9689
  def __repr__(self):
9690
    L = ['%s=%r' % (key, value)
9691
      for key, value in self.__dict__.iteritems()]
9692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9693
 
9694
  def __eq__(self, other):
9695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9696
 
9697
  def __ne__(self, other):
9698
    return not (self == other)
9699
 
559 chandransh 9700
class getCartsByTime_result:
94 ashish 9701
  """
9702
  Attributes:
9703
   - success
559 chandransh 9704
   - scx
94 ashish 9705
  """
9706
 
9707
  thrift_spec = (
559 chandransh 9708
    (0, TType.LIST, 'success', (TType.STRUCT,(Cart, Cart.thrift_spec)), None, ), # 0
9709
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 9710
  )
9711
 
559 chandransh 9712
  def __init__(self, success=None, scx=None,):
94 ashish 9713
    self.success = success
559 chandransh 9714
    self.scx = scx
94 ashish 9715
 
9716
  def read(self, iprot):
9717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9719
      return
9720
    iprot.readStructBegin()
9721
    while True:
9722
      (fname, ftype, fid) = iprot.readFieldBegin()
9723
      if ftype == TType.STOP:
9724
        break
9725
      if fid == 0:
559 chandransh 9726
        if ftype == TType.LIST:
9727
          self.success = []
5326 rajveer 9728
          (_etype117, _size114) = iprot.readListBegin()
9729
          for _i118 in xrange(_size114):
9730
            _elem119 = Cart()
9731
            _elem119.read(iprot)
9732
            self.success.append(_elem119)
559 chandransh 9733
          iprot.readListEnd()
94 ashish 9734
        else:
9735
          iprot.skip(ftype)
9736
      elif fid == 1:
9737
        if ftype == TType.STRUCT:
559 chandransh 9738
          self.scx = ShoppingCartException()
9739
          self.scx.read(iprot)
94 ashish 9740
        else:
9741
          iprot.skip(ftype)
9742
      else:
9743
        iprot.skip(ftype)
9744
      iprot.readFieldEnd()
9745
    iprot.readStructEnd()
9746
 
9747
  def write(self, oprot):
9748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9750
      return
559 chandransh 9751
    oprot.writeStructBegin('getCartsByTime_result')
3431 rajveer 9752
    if self.success is not None:
559 chandransh 9753
      oprot.writeFieldBegin('success', TType.LIST, 0)
9754
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 9755
      for iter120 in self.success:
9756
        iter120.write(oprot)
559 chandransh 9757
      oprot.writeListEnd()
94 ashish 9758
      oprot.writeFieldEnd()
3431 rajveer 9759
    if self.scx is not None:
559 chandransh 9760
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9761
      self.scx.write(oprot)
94 ashish 9762
      oprot.writeFieldEnd()
9763
    oprot.writeFieldStop()
9764
    oprot.writeStructEnd()
9765
 
3431 rajveer 9766
  def validate(self):
9767
    return
9768
 
9769
 
94 ashish 9770
  def __repr__(self):
9771
    L = ['%s=%r' % (key, value)
9772
      for key, value in self.__dict__.iteritems()]
9773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9774
 
9775
  def __eq__(self, other):
9776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9777
 
9778
  def __ne__(self, other):
9779
    return not (self == other)
9780
 
559 chandransh 9781
class addItemToCart_args:
9782
  """
9783
  Attributes:
9784
   - cartId
9785
   - itemId
9786
   - quantity
3557 rajveer 9787
   - sourceId
559 chandransh 9788
  """
9789
 
9790
  thrift_spec = (
9791
    None, # 0
9792
    (1, TType.I64, 'cartId', None, None, ), # 1
9793
    (2, TType.I64, 'itemId', None, None, ), # 2
9794
    (3, TType.I64, 'quantity', None, None, ), # 3
3557 rajveer 9795
    (4, TType.I64, 'sourceId', None, None, ), # 4
559 chandransh 9796
  )
9797
 
3557 rajveer 9798
  def __init__(self, cartId=None, itemId=None, quantity=None, sourceId=None,):
559 chandransh 9799
    self.cartId = cartId
9800
    self.itemId = itemId
9801
    self.quantity = quantity
3557 rajveer 9802
    self.sourceId = sourceId
559 chandransh 9803
 
9804
  def read(self, iprot):
9805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9807
      return
9808
    iprot.readStructBegin()
9809
    while True:
9810
      (fname, ftype, fid) = iprot.readFieldBegin()
9811
      if ftype == TType.STOP:
9812
        break
9813
      if fid == 1:
9814
        if ftype == TType.I64:
9815
          self.cartId = iprot.readI64();
9816
        else:
9817
          iprot.skip(ftype)
9818
      elif fid == 2:
9819
        if ftype == TType.I64:
9820
          self.itemId = iprot.readI64();
9821
        else:
9822
          iprot.skip(ftype)
9823
      elif fid == 3:
9824
        if ftype == TType.I64:
9825
          self.quantity = iprot.readI64();
9826
        else:
9827
          iprot.skip(ftype)
3557 rajveer 9828
      elif fid == 4:
9829
        if ftype == TType.I64:
9830
          self.sourceId = iprot.readI64();
9831
        else:
9832
          iprot.skip(ftype)
559 chandransh 9833
      else:
9834
        iprot.skip(ftype)
9835
      iprot.readFieldEnd()
9836
    iprot.readStructEnd()
9837
 
9838
  def write(self, oprot):
9839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9841
      return
9842
    oprot.writeStructBegin('addItemToCart_args')
3431 rajveer 9843
    if self.cartId is not None:
559 chandransh 9844
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9845
      oprot.writeI64(self.cartId)
9846
      oprot.writeFieldEnd()
3431 rajveer 9847
    if self.itemId is not None:
559 chandransh 9848
      oprot.writeFieldBegin('itemId', TType.I64, 2)
9849
      oprot.writeI64(self.itemId)
9850
      oprot.writeFieldEnd()
3431 rajveer 9851
    if self.quantity is not None:
559 chandransh 9852
      oprot.writeFieldBegin('quantity', TType.I64, 3)
9853
      oprot.writeI64(self.quantity)
9854
      oprot.writeFieldEnd()
3557 rajveer 9855
    if self.sourceId is not None:
9856
      oprot.writeFieldBegin('sourceId', TType.I64, 4)
9857
      oprot.writeI64(self.sourceId)
9858
      oprot.writeFieldEnd()
559 chandransh 9859
    oprot.writeFieldStop()
9860
    oprot.writeStructEnd()
9861
 
3431 rajveer 9862
  def validate(self):
9863
    return
9864
 
9865
 
559 chandransh 9866
  def __repr__(self):
9867
    L = ['%s=%r' % (key, value)
9868
      for key, value in self.__dict__.iteritems()]
9869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9870
 
9871
  def __eq__(self, other):
9872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9873
 
9874
  def __ne__(self, other):
9875
    return not (self == other)
9876
 
9877
class addItemToCart_result:
9878
  """
9879
  Attributes:
2035 rajveer 9880
   - success
559 chandransh 9881
   - scx
9882
  """
9883
 
9884
  thrift_spec = (
2035 rajveer 9885
    (0, TType.STRING, 'success', None, None, ), # 0
559 chandransh 9886
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
9887
  )
9888
 
2035 rajveer 9889
  def __init__(self, success=None, scx=None,):
9890
    self.success = success
559 chandransh 9891
    self.scx = scx
9892
 
9893
  def read(self, iprot):
9894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9896
      return
9897
    iprot.readStructBegin()
9898
    while True:
9899
      (fname, ftype, fid) = iprot.readFieldBegin()
9900
      if ftype == TType.STOP:
9901
        break
2035 rajveer 9902
      if fid == 0:
9903
        if ftype == TType.STRING:
9904
          self.success = iprot.readString();
9905
        else:
9906
          iprot.skip(ftype)
9907
      elif fid == 1:
559 chandransh 9908
        if ftype == TType.STRUCT:
9909
          self.scx = ShoppingCartException()
9910
          self.scx.read(iprot)
9911
        else:
9912
          iprot.skip(ftype)
9913
      else:
9914
        iprot.skip(ftype)
9915
      iprot.readFieldEnd()
9916
    iprot.readStructEnd()
9917
 
9918
  def write(self, oprot):
9919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9921
      return
9922
    oprot.writeStructBegin('addItemToCart_result')
3431 rajveer 9923
    if self.success is not None:
2035 rajveer 9924
      oprot.writeFieldBegin('success', TType.STRING, 0)
9925
      oprot.writeString(self.success)
9926
      oprot.writeFieldEnd()
3431 rajveer 9927
    if self.scx is not None:
559 chandransh 9928
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
9929
      self.scx.write(oprot)
9930
      oprot.writeFieldEnd()
9931
    oprot.writeFieldStop()
9932
    oprot.writeStructEnd()
9933
 
3431 rajveer 9934
  def validate(self):
9935
    return
9936
 
9937
 
559 chandransh 9938
  def __repr__(self):
9939
    L = ['%s=%r' % (key, value)
9940
      for key, value in self.__dict__.iteritems()]
9941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9942
 
9943
  def __eq__(self, other):
9944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9945
 
9946
  def __ne__(self, other):
9947
    return not (self == other)
9948
 
9949
class deleteItemFromCart_args:
9950
  """
9951
  Attributes:
9952
   - cartId
9953
   - itemId
9954
  """
9955
 
9956
  thrift_spec = (
9957
    None, # 0
9958
    (1, TType.I64, 'cartId', None, None, ), # 1
9959
    (2, TType.I64, 'itemId', None, None, ), # 2
9960
  )
9961
 
9962
  def __init__(self, cartId=None, itemId=None,):
9963
    self.cartId = cartId
9964
    self.itemId = itemId
9965
 
9966
  def read(self, iprot):
9967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9969
      return
9970
    iprot.readStructBegin()
9971
    while True:
9972
      (fname, ftype, fid) = iprot.readFieldBegin()
9973
      if ftype == TType.STOP:
9974
        break
9975
      if fid == 1:
9976
        if ftype == TType.I64:
9977
          self.cartId = iprot.readI64();
9978
        else:
9979
          iprot.skip(ftype)
9980
      elif fid == 2:
9981
        if ftype == TType.I64:
9982
          self.itemId = iprot.readI64();
9983
        else:
9984
          iprot.skip(ftype)
9985
      else:
9986
        iprot.skip(ftype)
9987
      iprot.readFieldEnd()
9988
    iprot.readStructEnd()
9989
 
9990
  def write(self, oprot):
9991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9993
      return
9994
    oprot.writeStructBegin('deleteItemFromCart_args')
3431 rajveer 9995
    if self.cartId is not None:
559 chandransh 9996
      oprot.writeFieldBegin('cartId', TType.I64, 1)
9997
      oprot.writeI64(self.cartId)
9998
      oprot.writeFieldEnd()
3431 rajveer 9999
    if self.itemId is not None:
559 chandransh 10000
      oprot.writeFieldBegin('itemId', TType.I64, 2)
10001
      oprot.writeI64(self.itemId)
10002
      oprot.writeFieldEnd()
10003
    oprot.writeFieldStop()
10004
    oprot.writeStructEnd()
10005
 
3431 rajveer 10006
  def validate(self):
10007
    return
10008
 
10009
 
559 chandransh 10010
  def __repr__(self):
10011
    L = ['%s=%r' % (key, value)
10012
      for key, value in self.__dict__.iteritems()]
10013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10014
 
10015
  def __eq__(self, other):
10016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10017
 
10018
  def __ne__(self, other):
10019
    return not (self == other)
10020
 
10021
class deleteItemFromCart_result:
10022
  """
10023
  Attributes:
10024
   - scx
10025
  """
10026
 
10027
  thrift_spec = (
10028
    None, # 0
10029
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10030
  )
10031
 
10032
  def __init__(self, scx=None,):
10033
    self.scx = scx
10034
 
10035
  def read(self, iprot):
10036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10038
      return
10039
    iprot.readStructBegin()
10040
    while True:
10041
      (fname, ftype, fid) = iprot.readFieldBegin()
10042
      if ftype == TType.STOP:
10043
        break
10044
      if fid == 1:
10045
        if ftype == TType.STRUCT:
10046
          self.scx = ShoppingCartException()
10047
          self.scx.read(iprot)
10048
        else:
10049
          iprot.skip(ftype)
10050
      else:
10051
        iprot.skip(ftype)
10052
      iprot.readFieldEnd()
10053
    iprot.readStructEnd()
10054
 
10055
  def write(self, oprot):
10056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10058
      return
10059
    oprot.writeStructBegin('deleteItemFromCart_result')
3431 rajveer 10060
    if self.scx is not None:
559 chandransh 10061
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10062
      self.scx.write(oprot)
10063
      oprot.writeFieldEnd()
10064
    oprot.writeFieldStop()
10065
    oprot.writeStructEnd()
10066
 
3431 rajveer 10067
  def validate(self):
10068
    return
10069
 
10070
 
559 chandransh 10071
  def __repr__(self):
10072
    L = ['%s=%r' % (key, value)
10073
      for key, value in self.__dict__.iteritems()]
10074
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10075
 
10076
  def __eq__(self, other):
10077
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10078
 
10079
  def __ne__(self, other):
10080
    return not (self == other)
10081
 
10082
class addAddressToCart_args:
10083
  """
10084
  Attributes:
10085
   - cartId
10086
   - addressId
10087
  """
10088
 
10089
  thrift_spec = (
10090
    None, # 0
10091
    (1, TType.I64, 'cartId', None, None, ), # 1
10092
    (2, TType.I64, 'addressId', None, None, ), # 2
10093
  )
10094
 
10095
  def __init__(self, cartId=None, addressId=None,):
10096
    self.cartId = cartId
10097
    self.addressId = addressId
10098
 
10099
  def read(self, iprot):
10100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10102
      return
10103
    iprot.readStructBegin()
10104
    while True:
10105
      (fname, ftype, fid) = iprot.readFieldBegin()
10106
      if ftype == TType.STOP:
10107
        break
10108
      if fid == 1:
10109
        if ftype == TType.I64:
10110
          self.cartId = iprot.readI64();
10111
        else:
10112
          iprot.skip(ftype)
10113
      elif fid == 2:
10114
        if ftype == TType.I64:
10115
          self.addressId = iprot.readI64();
10116
        else:
10117
          iprot.skip(ftype)
10118
      else:
10119
        iprot.skip(ftype)
10120
      iprot.readFieldEnd()
10121
    iprot.readStructEnd()
10122
 
10123
  def write(self, oprot):
10124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10126
      return
10127
    oprot.writeStructBegin('addAddressToCart_args')
3431 rajveer 10128
    if self.cartId is not None:
559 chandransh 10129
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10130
      oprot.writeI64(self.cartId)
10131
      oprot.writeFieldEnd()
3431 rajveer 10132
    if self.addressId is not None:
559 chandransh 10133
      oprot.writeFieldBegin('addressId', TType.I64, 2)
10134
      oprot.writeI64(self.addressId)
10135
      oprot.writeFieldEnd()
10136
    oprot.writeFieldStop()
10137
    oprot.writeStructEnd()
10138
 
3431 rajveer 10139
  def validate(self):
10140
    return
10141
 
10142
 
559 chandransh 10143
  def __repr__(self):
10144
    L = ['%s=%r' % (key, value)
10145
      for key, value in self.__dict__.iteritems()]
10146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10147
 
10148
  def __eq__(self, other):
10149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10150
 
10151
  def __ne__(self, other):
10152
    return not (self == other)
10153
 
10154
class addAddressToCart_result:
575 chandransh 10155
  """
10156
  Attributes:
10157
   - scx
10158
  """
559 chandransh 10159
 
10160
  thrift_spec = (
575 chandransh 10161
    None, # 0
10162
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 10163
  )
10164
 
575 chandransh 10165
  def __init__(self, scx=None,):
10166
    self.scx = scx
10167
 
559 chandransh 10168
  def read(self, iprot):
10169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10171
      return
10172
    iprot.readStructBegin()
10173
    while True:
10174
      (fname, ftype, fid) = iprot.readFieldBegin()
10175
      if ftype == TType.STOP:
10176
        break
575 chandransh 10177
      if fid == 1:
10178
        if ftype == TType.STRUCT:
10179
          self.scx = ShoppingCartException()
10180
          self.scx.read(iprot)
10181
        else:
10182
          iprot.skip(ftype)
559 chandransh 10183
      else:
10184
        iprot.skip(ftype)
10185
      iprot.readFieldEnd()
10186
    iprot.readStructEnd()
10187
 
10188
  def write(self, oprot):
10189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10191
      return
10192
    oprot.writeStructBegin('addAddressToCart_result')
3431 rajveer 10193
    if self.scx is not None:
575 chandransh 10194
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10195
      self.scx.write(oprot)
10196
      oprot.writeFieldEnd()
559 chandransh 10197
    oprot.writeFieldStop()
10198
    oprot.writeStructEnd()
10199
 
3431 rajveer 10200
  def validate(self):
10201
    return
10202
 
10203
 
559 chandransh 10204
  def __repr__(self):
10205
    L = ['%s=%r' % (key, value)
10206
      for key, value in self.__dict__.iteritems()]
10207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10208
 
10209
  def __eq__(self, other):
10210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10211
 
10212
  def __ne__(self, other):
10213
    return not (self == other)
10214
 
1976 varun.gupt 10215
class applyCouponToCart_args:
10216
  """
10217
  Attributes:
10218
   - cartId
10219
   - couponCode
10220
   - totalPrice
10221
   - discountedPrice
10222
  """
10223
 
10224
  thrift_spec = (
10225
    None, # 0
10226
    (1, TType.I64, 'cartId', None, None, ), # 1
10227
    (2, TType.STRING, 'couponCode', None, None, ), # 2
10228
    (3, TType.DOUBLE, 'totalPrice', None, None, ), # 3
10229
    (4, TType.DOUBLE, 'discountedPrice', None, None, ), # 4
10230
  )
10231
 
10232
  def __init__(self, cartId=None, couponCode=None, totalPrice=None, discountedPrice=None,):
10233
    self.cartId = cartId
10234
    self.couponCode = couponCode
10235
    self.totalPrice = totalPrice
10236
    self.discountedPrice = discountedPrice
10237
 
10238
  def read(self, iprot):
10239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10241
      return
10242
    iprot.readStructBegin()
10243
    while True:
10244
      (fname, ftype, fid) = iprot.readFieldBegin()
10245
      if ftype == TType.STOP:
10246
        break
10247
      if fid == 1:
10248
        if ftype == TType.I64:
10249
          self.cartId = iprot.readI64();
10250
        else:
10251
          iprot.skip(ftype)
10252
      elif fid == 2:
10253
        if ftype == TType.STRING:
10254
          self.couponCode = iprot.readString();
10255
        else:
10256
          iprot.skip(ftype)
10257
      elif fid == 3:
10258
        if ftype == TType.DOUBLE:
10259
          self.totalPrice = iprot.readDouble();
10260
        else:
10261
          iprot.skip(ftype)
10262
      elif fid == 4:
10263
        if ftype == TType.DOUBLE:
10264
          self.discountedPrice = iprot.readDouble();
10265
        else:
10266
          iprot.skip(ftype)
10267
      else:
10268
        iprot.skip(ftype)
10269
      iprot.readFieldEnd()
10270
    iprot.readStructEnd()
10271
 
10272
  def write(self, oprot):
10273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10275
      return
10276
    oprot.writeStructBegin('applyCouponToCart_args')
3431 rajveer 10277
    if self.cartId is not None:
1976 varun.gupt 10278
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10279
      oprot.writeI64(self.cartId)
10280
      oprot.writeFieldEnd()
3431 rajveer 10281
    if self.couponCode is not None:
1976 varun.gupt 10282
      oprot.writeFieldBegin('couponCode', TType.STRING, 2)
10283
      oprot.writeString(self.couponCode)
10284
      oprot.writeFieldEnd()
3431 rajveer 10285
    if self.totalPrice is not None:
1976 varun.gupt 10286
      oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 3)
10287
      oprot.writeDouble(self.totalPrice)
10288
      oprot.writeFieldEnd()
3431 rajveer 10289
    if self.discountedPrice is not None:
1976 varun.gupt 10290
      oprot.writeFieldBegin('discountedPrice', TType.DOUBLE, 4)
10291
      oprot.writeDouble(self.discountedPrice)
10292
      oprot.writeFieldEnd()
10293
    oprot.writeFieldStop()
10294
    oprot.writeStructEnd()
10295
 
3431 rajveer 10296
  def validate(self):
10297
    return
10298
 
10299
 
1976 varun.gupt 10300
  def __repr__(self):
10301
    L = ['%s=%r' % (key, value)
10302
      for key, value in self.__dict__.iteritems()]
10303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10304
 
10305
  def __eq__(self, other):
10306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10307
 
10308
  def __ne__(self, other):
10309
    return not (self == other)
10310
 
10311
class applyCouponToCart_result:
10312
  """
10313
  Attributes:
10314
   - scx
10315
  """
10316
 
10317
  thrift_spec = (
10318
    None, # 0
10319
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10320
  )
10321
 
10322
  def __init__(self, scx=None,):
10323
    self.scx = scx
10324
 
10325
  def read(self, iprot):
10326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10328
      return
10329
    iprot.readStructBegin()
10330
    while True:
10331
      (fname, ftype, fid) = iprot.readFieldBegin()
10332
      if ftype == TType.STOP:
10333
        break
10334
      if fid == 1:
10335
        if ftype == TType.STRUCT:
10336
          self.scx = ShoppingCartException()
10337
          self.scx.read(iprot)
10338
        else:
10339
          iprot.skip(ftype)
10340
      else:
10341
        iprot.skip(ftype)
10342
      iprot.readFieldEnd()
10343
    iprot.readStructEnd()
10344
 
10345
  def write(self, oprot):
10346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10348
      return
10349
    oprot.writeStructBegin('applyCouponToCart_result')
3431 rajveer 10350
    if self.scx is not None:
1976 varun.gupt 10351
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10352
      self.scx.write(oprot)
10353
      oprot.writeFieldEnd()
10354
    oprot.writeFieldStop()
10355
    oprot.writeStructEnd()
10356
 
3431 rajveer 10357
  def validate(self):
10358
    return
10359
 
10360
 
1976 varun.gupt 10361
  def __repr__(self):
10362
    L = ['%s=%r' % (key, value)
10363
      for key, value in self.__dict__.iteritems()]
10364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10365
 
10366
  def __eq__(self, other):
10367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10368
 
10369
  def __ne__(self, other):
10370
    return not (self == other)
10371
 
10372
class removeCoupon_args:
10373
  """
10374
  Attributes:
10375
   - cartId
10376
  """
10377
 
10378
  thrift_spec = (
10379
    None, # 0
10380
    (1, TType.I64, 'cartId', None, None, ), # 1
10381
  )
10382
 
10383
  def __init__(self, cartId=None,):
10384
    self.cartId = cartId
10385
 
10386
  def read(self, iprot):
10387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10389
      return
10390
    iprot.readStructBegin()
10391
    while True:
10392
      (fname, ftype, fid) = iprot.readFieldBegin()
10393
      if ftype == TType.STOP:
10394
        break
10395
      if fid == 1:
10396
        if ftype == TType.I64:
10397
          self.cartId = iprot.readI64();
10398
        else:
10399
          iprot.skip(ftype)
10400
      else:
10401
        iprot.skip(ftype)
10402
      iprot.readFieldEnd()
10403
    iprot.readStructEnd()
10404
 
10405
  def write(self, oprot):
10406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10408
      return
10409
    oprot.writeStructBegin('removeCoupon_args')
3431 rajveer 10410
    if self.cartId is not None:
1976 varun.gupt 10411
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10412
      oprot.writeI64(self.cartId)
10413
      oprot.writeFieldEnd()
10414
    oprot.writeFieldStop()
10415
    oprot.writeStructEnd()
10416
 
3431 rajveer 10417
  def validate(self):
10418
    return
10419
 
10420
 
1976 varun.gupt 10421
  def __repr__(self):
10422
    L = ['%s=%r' % (key, value)
10423
      for key, value in self.__dict__.iteritems()]
10424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10425
 
10426
  def __eq__(self, other):
10427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10428
 
10429
  def __ne__(self, other):
10430
    return not (self == other)
10431
 
10432
class removeCoupon_result:
10433
  """
10434
  Attributes:
10435
   - scx
10436
  """
10437
 
10438
  thrift_spec = (
10439
    None, # 0
10440
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10441
  )
10442
 
10443
  def __init__(self, scx=None,):
10444
    self.scx = scx
10445
 
10446
  def read(self, iprot):
10447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10449
      return
10450
    iprot.readStructBegin()
10451
    while True:
10452
      (fname, ftype, fid) = iprot.readFieldBegin()
10453
      if ftype == TType.STOP:
10454
        break
10455
      if fid == 1:
10456
        if ftype == TType.STRUCT:
10457
          self.scx = ShoppingCartException()
10458
          self.scx.read(iprot)
10459
        else:
10460
          iprot.skip(ftype)
10461
      else:
10462
        iprot.skip(ftype)
10463
      iprot.readFieldEnd()
10464
    iprot.readStructEnd()
10465
 
10466
  def write(self, oprot):
10467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10469
      return
10470
    oprot.writeStructBegin('removeCoupon_result')
3431 rajveer 10471
    if self.scx is not None:
1976 varun.gupt 10472
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10473
      self.scx.write(oprot)
10474
      oprot.writeFieldEnd()
10475
    oprot.writeFieldStop()
10476
    oprot.writeStructEnd()
10477
 
3431 rajveer 10478
  def validate(self):
10479
    return
10480
 
10481
 
1976 varun.gupt 10482
  def __repr__(self):
10483
    L = ['%s=%r' % (key, value)
10484
      for key, value in self.__dict__.iteritems()]
10485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10486
 
10487
  def __eq__(self, other):
10488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10489
 
10490
  def __ne__(self, other):
10491
    return not (self == other)
10492
 
3554 varun.gupt 10493
class deleteDiscountsFromCart_args:
10494
  """
10495
  Attributes:
10496
   - cartId
10497
  """
10498
 
10499
  thrift_spec = (
10500
    None, # 0
10501
    (1, TType.I64, 'cartId', None, None, ), # 1
10502
  )
10503
 
10504
  def __init__(self, cartId=None,):
10505
    self.cartId = cartId
10506
 
10507
  def read(self, iprot):
10508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10510
      return
10511
    iprot.readStructBegin()
10512
    while True:
10513
      (fname, ftype, fid) = iprot.readFieldBegin()
10514
      if ftype == TType.STOP:
10515
        break
10516
      if fid == 1:
10517
        if ftype == TType.I64:
10518
          self.cartId = iprot.readI64();
10519
        else:
10520
          iprot.skip(ftype)
10521
      else:
10522
        iprot.skip(ftype)
10523
      iprot.readFieldEnd()
10524
    iprot.readStructEnd()
10525
 
10526
  def write(self, oprot):
10527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10529
      return
10530
    oprot.writeStructBegin('deleteDiscountsFromCart_args')
10531
    if self.cartId is not None:
10532
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10533
      oprot.writeI64(self.cartId)
10534
      oprot.writeFieldEnd()
10535
    oprot.writeFieldStop()
10536
    oprot.writeStructEnd()
10537
 
10538
  def validate(self):
10539
    return
10540
 
10541
 
10542
  def __repr__(self):
10543
    L = ['%s=%r' % (key, value)
10544
      for key, value in self.__dict__.iteritems()]
10545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10546
 
10547
  def __eq__(self, other):
10548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10549
 
10550
  def __ne__(self, other):
10551
    return not (self == other)
10552
 
10553
class deleteDiscountsFromCart_result:
10554
  """
10555
  Attributes:
10556
   - scx
10557
  """
10558
 
10559
  thrift_spec = (
10560
    None, # 0
10561
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10562
  )
10563
 
10564
  def __init__(self, scx=None,):
10565
    self.scx = scx
10566
 
10567
  def read(self, iprot):
10568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10570
      return
10571
    iprot.readStructBegin()
10572
    while True:
10573
      (fname, ftype, fid) = iprot.readFieldBegin()
10574
      if ftype == TType.STOP:
10575
        break
10576
      if fid == 1:
10577
        if ftype == TType.STRUCT:
10578
          self.scx = ShoppingCartException()
10579
          self.scx.read(iprot)
10580
        else:
10581
          iprot.skip(ftype)
10582
      else:
10583
        iprot.skip(ftype)
10584
      iprot.readFieldEnd()
10585
    iprot.readStructEnd()
10586
 
10587
  def write(self, oprot):
10588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10590
      return
10591
    oprot.writeStructBegin('deleteDiscountsFromCart_result')
10592
    if self.scx is not None:
10593
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10594
      self.scx.write(oprot)
10595
      oprot.writeFieldEnd()
10596
    oprot.writeFieldStop()
10597
    oprot.writeStructEnd()
10598
 
10599
  def validate(self):
10600
    return
10601
 
10602
 
10603
  def __repr__(self):
10604
    L = ['%s=%r' % (key, value)
10605
      for key, value in self.__dict__.iteritems()]
10606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10607
 
10608
  def __eq__(self, other):
10609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10610
 
10611
  def __ne__(self, other):
10612
    return not (self == other)
10613
 
10614
class saveDiscounts_args:
10615
  """
10616
  Attributes:
10617
   - discounts
10618
  """
10619
 
10620
  thrift_spec = (
10621
    None, # 0
10622
    (1, TType.LIST, 'discounts', (TType.STRUCT,(Discount, Discount.thrift_spec)), None, ), # 1
10623
  )
10624
 
10625
  def __init__(self, discounts=None,):
10626
    self.discounts = discounts
10627
 
10628
  def read(self, iprot):
10629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10631
      return
10632
    iprot.readStructBegin()
10633
    while True:
10634
      (fname, ftype, fid) = iprot.readFieldBegin()
10635
      if ftype == TType.STOP:
10636
        break
10637
      if fid == 1:
10638
        if ftype == TType.LIST:
10639
          self.discounts = []
5326 rajveer 10640
          (_etype124, _size121) = iprot.readListBegin()
10641
          for _i125 in xrange(_size121):
10642
            _elem126 = Discount()
10643
            _elem126.read(iprot)
10644
            self.discounts.append(_elem126)
3554 varun.gupt 10645
          iprot.readListEnd()
10646
        else:
10647
          iprot.skip(ftype)
10648
      else:
10649
        iprot.skip(ftype)
10650
      iprot.readFieldEnd()
10651
    iprot.readStructEnd()
10652
 
10653
  def write(self, oprot):
10654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10656
      return
10657
    oprot.writeStructBegin('saveDiscounts_args')
10658
    if self.discounts is not None:
10659
      oprot.writeFieldBegin('discounts', TType.LIST, 1)
10660
      oprot.writeListBegin(TType.STRUCT, len(self.discounts))
5326 rajveer 10661
      for iter127 in self.discounts:
10662
        iter127.write(oprot)
3554 varun.gupt 10663
      oprot.writeListEnd()
10664
      oprot.writeFieldEnd()
10665
    oprot.writeFieldStop()
10666
    oprot.writeStructEnd()
10667
 
10668
  def validate(self):
10669
    return
10670
 
10671
 
10672
  def __repr__(self):
10673
    L = ['%s=%r' % (key, value)
10674
      for key, value in self.__dict__.iteritems()]
10675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10676
 
10677
  def __eq__(self, other):
10678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10679
 
10680
  def __ne__(self, other):
10681
    return not (self == other)
10682
 
10683
class saveDiscounts_result:
10684
  """
10685
  Attributes:
10686
   - scx
10687
  """
10688
 
10689
  thrift_spec = (
10690
    None, # 0
10691
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
10692
  )
10693
 
10694
  def __init__(self, scx=None,):
10695
    self.scx = scx
10696
 
10697
  def read(self, iprot):
10698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10700
      return
10701
    iprot.readStructBegin()
10702
    while True:
10703
      (fname, ftype, fid) = iprot.readFieldBegin()
10704
      if ftype == TType.STOP:
10705
        break
10706
      if fid == 1:
10707
        if ftype == TType.STRUCT:
10708
          self.scx = ShoppingCartException()
10709
          self.scx.read(iprot)
10710
        else:
10711
          iprot.skip(ftype)
10712
      else:
10713
        iprot.skip(ftype)
10714
      iprot.readFieldEnd()
10715
    iprot.readStructEnd()
10716
 
10717
  def write(self, oprot):
10718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10720
      return
10721
    oprot.writeStructBegin('saveDiscounts_result')
10722
    if self.scx is not None:
10723
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10724
      self.scx.write(oprot)
10725
      oprot.writeFieldEnd()
10726
    oprot.writeFieldStop()
10727
    oprot.writeStructEnd()
10728
 
10729
  def validate(self):
10730
    return
10731
 
10732
 
10733
  def __repr__(self):
10734
    L = ['%s=%r' % (key, value)
10735
      for key, value in self.__dict__.iteritems()]
10736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10737
 
10738
  def __eq__(self, other):
10739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10740
 
10741
  def __ne__(self, other):
10742
    return not (self == other)
10743
 
690 chandransh 10744
class createOrders_args:
559 chandransh 10745
  """
10746
  Attributes:
10747
   - cartId
2815 vikas 10748
   - sessionSource
10749
   - sessionStartTime
3858 vikas 10750
   - firstSource
10751
   - firstSourceTime
5326 rajveer 10752
   - userId
559 chandransh 10753
  """
10754
 
10755
  thrift_spec = (
10756
    None, # 0
10757
    (1, TType.I64, 'cartId', None, None, ), # 1
2815 vikas 10758
    (2, TType.STRING, 'sessionSource', None, None, ), # 2
10759
    (3, TType.I64, 'sessionStartTime', None, None, ), # 3
3858 vikas 10760
    (4, TType.STRING, 'firstSource', None, None, ), # 4
10761
    (5, TType.I64, 'firstSourceTime', None, None, ), # 5
5326 rajveer 10762
    (6, TType.I64, 'userId', None, None, ), # 6
559 chandransh 10763
  )
10764
 
5326 rajveer 10765
  def __init__(self, cartId=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, userId=None,):
559 chandransh 10766
    self.cartId = cartId
2815 vikas 10767
    self.sessionSource = sessionSource
10768
    self.sessionStartTime = sessionStartTime
3858 vikas 10769
    self.firstSource = firstSource
10770
    self.firstSourceTime = firstSourceTime
5326 rajveer 10771
    self.userId = userId
559 chandransh 10772
 
10773
  def read(self, iprot):
10774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10776
      return
10777
    iprot.readStructBegin()
10778
    while True:
10779
      (fname, ftype, fid) = iprot.readFieldBegin()
10780
      if ftype == TType.STOP:
10781
        break
10782
      if fid == 1:
10783
        if ftype == TType.I64:
10784
          self.cartId = iprot.readI64();
10785
        else:
10786
          iprot.skip(ftype)
2815 vikas 10787
      elif fid == 2:
10788
        if ftype == TType.STRING:
10789
          self.sessionSource = iprot.readString();
10790
        else:
10791
          iprot.skip(ftype)
10792
      elif fid == 3:
10793
        if ftype == TType.I64:
10794
          self.sessionStartTime = iprot.readI64();
10795
        else:
10796
          iprot.skip(ftype)
3858 vikas 10797
      elif fid == 4:
10798
        if ftype == TType.STRING:
10799
          self.firstSource = iprot.readString();
10800
        else:
10801
          iprot.skip(ftype)
10802
      elif fid == 5:
10803
        if ftype == TType.I64:
10804
          self.firstSourceTime = iprot.readI64();
10805
        else:
10806
          iprot.skip(ftype)
5326 rajveer 10807
      elif fid == 6:
10808
        if ftype == TType.I64:
10809
          self.userId = iprot.readI64();
10810
        else:
10811
          iprot.skip(ftype)
559 chandransh 10812
      else:
10813
        iprot.skip(ftype)
10814
      iprot.readFieldEnd()
10815
    iprot.readStructEnd()
10816
 
10817
  def write(self, oprot):
10818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10820
      return
690 chandransh 10821
    oprot.writeStructBegin('createOrders_args')
3431 rajveer 10822
    if self.cartId is not None:
559 chandransh 10823
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10824
      oprot.writeI64(self.cartId)
10825
      oprot.writeFieldEnd()
3431 rajveer 10826
    if self.sessionSource is not None:
2815 vikas 10827
      oprot.writeFieldBegin('sessionSource', TType.STRING, 2)
10828
      oprot.writeString(self.sessionSource)
10829
      oprot.writeFieldEnd()
3431 rajveer 10830
    if self.sessionStartTime is not None:
2815 vikas 10831
      oprot.writeFieldBegin('sessionStartTime', TType.I64, 3)
10832
      oprot.writeI64(self.sessionStartTime)
10833
      oprot.writeFieldEnd()
3858 vikas 10834
    if self.firstSource is not None:
10835
      oprot.writeFieldBegin('firstSource', TType.STRING, 4)
10836
      oprot.writeString(self.firstSource)
10837
      oprot.writeFieldEnd()
10838
    if self.firstSourceTime is not None:
10839
      oprot.writeFieldBegin('firstSourceTime', TType.I64, 5)
10840
      oprot.writeI64(self.firstSourceTime)
10841
      oprot.writeFieldEnd()
5326 rajveer 10842
    if self.userId is not None:
10843
      oprot.writeFieldBegin('userId', TType.I64, 6)
10844
      oprot.writeI64(self.userId)
10845
      oprot.writeFieldEnd()
559 chandransh 10846
    oprot.writeFieldStop()
10847
    oprot.writeStructEnd()
10848
 
3431 rajveer 10849
  def validate(self):
10850
    return
10851
 
10852
 
559 chandransh 10853
  def __repr__(self):
10854
    L = ['%s=%r' % (key, value)
10855
      for key, value in self.__dict__.iteritems()]
10856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10857
 
10858
  def __eq__(self, other):
10859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10860
 
10861
  def __ne__(self, other):
10862
    return not (self == other)
10863
 
690 chandransh 10864
class createOrders_result:
559 chandransh 10865
  """
10866
  Attributes:
94 ashish 10867
   - success
559 chandransh 10868
   - scx
94 ashish 10869
  """
10870
 
10871
  thrift_spec = (
575 chandransh 10872
    (0, TType.I64, 'success', None, None, ), # 0
559 chandransh 10873
    (1, TType.STRUCT, 'scx', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 10874
  )
10875
 
559 chandransh 10876
  def __init__(self, success=None, scx=None,):
94 ashish 10877
    self.success = success
559 chandransh 10878
    self.scx = scx
94 ashish 10879
 
10880
  def read(self, iprot):
10881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10883
      return
10884
    iprot.readStructBegin()
10885
    while True:
10886
      (fname, ftype, fid) = iprot.readFieldBegin()
10887
      if ftype == TType.STOP:
10888
        break
10889
      if fid == 0:
575 chandransh 10890
        if ftype == TType.I64:
10891
          self.success = iprot.readI64();
94 ashish 10892
        else:
10893
          iprot.skip(ftype)
10894
      elif fid == 1:
10895
        if ftype == TType.STRUCT:
559 chandransh 10896
          self.scx = ShoppingCartException()
10897
          self.scx.read(iprot)
94 ashish 10898
        else:
10899
          iprot.skip(ftype)
10900
      else:
10901
        iprot.skip(ftype)
10902
      iprot.readFieldEnd()
10903
    iprot.readStructEnd()
10904
 
10905
  def write(self, oprot):
10906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10908
      return
690 chandransh 10909
    oprot.writeStructBegin('createOrders_result')
3431 rajveer 10910
    if self.success is not None:
575 chandransh 10911
      oprot.writeFieldBegin('success', TType.I64, 0)
10912
      oprot.writeI64(self.success)
94 ashish 10913
      oprot.writeFieldEnd()
3431 rajveer 10914
    if self.scx is not None:
559 chandransh 10915
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
10916
      self.scx.write(oprot)
94 ashish 10917
      oprot.writeFieldEnd()
10918
    oprot.writeFieldStop()
10919
    oprot.writeStructEnd()
10920
 
3431 rajveer 10921
  def validate(self):
10922
    return
10923
 
10924
 
94 ashish 10925
  def __repr__(self):
10926
    L = ['%s=%r' % (key, value)
10927
      for key, value in self.__dict__.iteritems()]
10928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10929
 
10930
  def __eq__(self, other):
10931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10932
 
10933
  def __ne__(self, other):
10934
    return not (self == other)
10935
 
559 chandransh 10936
class validateCart_args:
94 ashish 10937
  """
10938
  Attributes:
559 chandransh 10939
   - cartId
3557 rajveer 10940
   - sourceId
94 ashish 10941
  """
10942
 
10943
  thrift_spec = (
10944
    None, # 0
559 chandransh 10945
    (1, TType.I64, 'cartId', None, None, ), # 1
3557 rajveer 10946
    (2, TType.I64, 'sourceId', None, None, ), # 2
94 ashish 10947
  )
10948
 
3557 rajveer 10949
  def __init__(self, cartId=None, sourceId=None,):
559 chandransh 10950
    self.cartId = cartId
3557 rajveer 10951
    self.sourceId = sourceId
94 ashish 10952
 
10953
  def read(self, iprot):
10954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10956
      return
10957
    iprot.readStructBegin()
10958
    while True:
10959
      (fname, ftype, fid) = iprot.readFieldBegin()
10960
      if ftype == TType.STOP:
10961
        break
10962
      if fid == 1:
10963
        if ftype == TType.I64:
559 chandransh 10964
          self.cartId = iprot.readI64();
94 ashish 10965
        else:
10966
          iprot.skip(ftype)
3557 rajveer 10967
      elif fid == 2:
10968
        if ftype == TType.I64:
10969
          self.sourceId = iprot.readI64();
10970
        else:
10971
          iprot.skip(ftype)
94 ashish 10972
      else:
10973
        iprot.skip(ftype)
10974
      iprot.readFieldEnd()
10975
    iprot.readStructEnd()
10976
 
10977
  def write(self, oprot):
10978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10980
      return
559 chandransh 10981
    oprot.writeStructBegin('validateCart_args')
3431 rajveer 10982
    if self.cartId is not None:
559 chandransh 10983
      oprot.writeFieldBegin('cartId', TType.I64, 1)
10984
      oprot.writeI64(self.cartId)
94 ashish 10985
      oprot.writeFieldEnd()
3557 rajveer 10986
    if self.sourceId is not None:
10987
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10988
      oprot.writeI64(self.sourceId)
10989
      oprot.writeFieldEnd()
94 ashish 10990
    oprot.writeFieldStop()
10991
    oprot.writeStructEnd()
10992
 
3431 rajveer 10993
  def validate(self):
10994
    return
10995
 
10996
 
94 ashish 10997
  def __repr__(self):
10998
    L = ['%s=%r' % (key, value)
10999
      for key, value in self.__dict__.iteritems()]
11000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11001
 
11002
  def __eq__(self, other):
11003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11004
 
11005
  def __ne__(self, other):
11006
    return not (self == other)
11007
 
559 chandransh 11008
class validateCart_result:
94 ashish 11009
  """
11010
  Attributes:
11011
   - success
575 chandransh 11012
   - scex
94 ashish 11013
  """
11014
 
11015
  thrift_spec = (
1466 ankur.sing 11016
    (0, TType.STRING, 'success', None, None, ), # 0
575 chandransh 11017
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
94 ashish 11018
  )
11019
 
575 chandransh 11020
  def __init__(self, success=None, scex=None,):
94 ashish 11021
    self.success = success
575 chandransh 11022
    self.scex = scex
94 ashish 11023
 
11024
  def read(self, iprot):
11025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11027
      return
11028
    iprot.readStructBegin()
11029
    while True:
11030
      (fname, ftype, fid) = iprot.readFieldBegin()
11031
      if ftype == TType.STOP:
11032
        break
11033
      if fid == 0:
1466 ankur.sing 11034
        if ftype == TType.STRING:
11035
          self.success = iprot.readString();
94 ashish 11036
        else:
11037
          iprot.skip(ftype)
575 chandransh 11038
      elif fid == 1:
11039
        if ftype == TType.STRUCT:
11040
          self.scex = ShoppingCartException()
11041
          self.scex.read(iprot)
11042
        else:
11043
          iprot.skip(ftype)
94 ashish 11044
      else:
11045
        iprot.skip(ftype)
11046
      iprot.readFieldEnd()
11047
    iprot.readStructEnd()
11048
 
11049
  def write(self, oprot):
11050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11052
      return
559 chandransh 11053
    oprot.writeStructBegin('validateCart_result')
3431 rajveer 11054
    if self.success is not None:
1466 ankur.sing 11055
      oprot.writeFieldBegin('success', TType.STRING, 0)
11056
      oprot.writeString(self.success)
94 ashish 11057
      oprot.writeFieldEnd()
3431 rajveer 11058
    if self.scex is not None:
575 chandransh 11059
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11060
      self.scex.write(oprot)
11061
      oprot.writeFieldEnd()
559 chandransh 11062
    oprot.writeFieldStop()
11063
    oprot.writeStructEnd()
11064
 
3431 rajveer 11065
  def validate(self):
11066
    return
11067
 
11068
 
559 chandransh 11069
  def __repr__(self):
11070
    L = ['%s=%r' % (key, value)
11071
      for key, value in self.__dict__.iteritems()]
11072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11073
 
11074
  def __eq__(self, other):
11075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11076
 
11077
  def __ne__(self, other):
11078
    return not (self == other)
11079
 
690 chandransh 11080
class mergeCart_args:
575 chandransh 11081
  """
11082
  Attributes:
690 chandransh 11083
   - fromCartId
11084
   - toCartId
11085
  """
11086
 
11087
  thrift_spec = (
11088
    None, # 0
11089
    (1, TType.I64, 'fromCartId', None, None, ), # 1
11090
    (2, TType.I64, 'toCartId', None, None, ), # 2
11091
  )
11092
 
11093
  def __init__(self, fromCartId=None, toCartId=None,):
11094
    self.fromCartId = fromCartId
11095
    self.toCartId = toCartId
11096
 
11097
  def read(self, iprot):
11098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11100
      return
11101
    iprot.readStructBegin()
11102
    while True:
11103
      (fname, ftype, fid) = iprot.readFieldBegin()
11104
      if ftype == TType.STOP:
11105
        break
11106
      if fid == 1:
11107
        if ftype == TType.I64:
11108
          self.fromCartId = iprot.readI64();
11109
        else:
11110
          iprot.skip(ftype)
11111
      elif fid == 2:
11112
        if ftype == TType.I64:
11113
          self.toCartId = iprot.readI64();
11114
        else:
11115
          iprot.skip(ftype)
11116
      else:
11117
        iprot.skip(ftype)
11118
      iprot.readFieldEnd()
11119
    iprot.readStructEnd()
11120
 
11121
  def write(self, oprot):
11122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11124
      return
11125
    oprot.writeStructBegin('mergeCart_args')
3431 rajveer 11126
    if self.fromCartId is not None:
690 chandransh 11127
      oprot.writeFieldBegin('fromCartId', TType.I64, 1)
11128
      oprot.writeI64(self.fromCartId)
11129
      oprot.writeFieldEnd()
3431 rajveer 11130
    if self.toCartId is not None:
690 chandransh 11131
      oprot.writeFieldBegin('toCartId', TType.I64, 2)
11132
      oprot.writeI64(self.toCartId)
11133
      oprot.writeFieldEnd()
11134
    oprot.writeFieldStop()
11135
    oprot.writeStructEnd()
11136
 
3431 rajveer 11137
  def validate(self):
11138
    return
11139
 
11140
 
690 chandransh 11141
  def __repr__(self):
11142
    L = ['%s=%r' % (key, value)
11143
      for key, value in self.__dict__.iteritems()]
11144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11145
 
11146
  def __eq__(self, other):
11147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11148
 
11149
  def __ne__(self, other):
11150
    return not (self == other)
11151
 
11152
class mergeCart_result:
11153
 
11154
  thrift_spec = (
11155
  )
11156
 
11157
  def read(self, iprot):
11158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11160
      return
11161
    iprot.readStructBegin()
11162
    while True:
11163
      (fname, ftype, fid) = iprot.readFieldBegin()
11164
      if ftype == TType.STOP:
11165
        break
11166
      else:
11167
        iprot.skip(ftype)
11168
      iprot.readFieldEnd()
11169
    iprot.readStructEnd()
11170
 
11171
  def write(self, oprot):
11172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11174
      return
11175
    oprot.writeStructBegin('mergeCart_result')
11176
    oprot.writeFieldStop()
11177
    oprot.writeStructEnd()
11178
 
3431 rajveer 11179
  def validate(self):
11180
    return
11181
 
11182
 
690 chandransh 11183
  def __repr__(self):
11184
    L = ['%s=%r' % (key, value)
11185
      for key, value in self.__dict__.iteritems()]
11186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11187
 
11188
  def __eq__(self, other):
11189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11190
 
11191
  def __ne__(self, other):
11192
    return not (self == other)
11193
 
11194
class checkOut_args:
11195
  """
11196
  Attributes:
575 chandransh 11197
   - cartId
11198
  """
11199
 
11200
  thrift_spec = (
11201
    None, # 0
11202
    (1, TType.I64, 'cartId', None, None, ), # 1
11203
  )
11204
 
11205
  def __init__(self, cartId=None,):
11206
    self.cartId = cartId
11207
 
11208
  def read(self, iprot):
11209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11211
      return
11212
    iprot.readStructBegin()
11213
    while True:
11214
      (fname, ftype, fid) = iprot.readFieldBegin()
11215
      if ftype == TType.STOP:
11216
        break
11217
      if fid == 1:
11218
        if ftype == TType.I64:
11219
          self.cartId = iprot.readI64();
11220
        else:
11221
          iprot.skip(ftype)
11222
      else:
11223
        iprot.skip(ftype)
11224
      iprot.readFieldEnd()
11225
    iprot.readStructEnd()
11226
 
11227
  def write(self, oprot):
11228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11230
      return
690 chandransh 11231
    oprot.writeStructBegin('checkOut_args')
3431 rajveer 11232
    if self.cartId is not None:
575 chandransh 11233
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11234
      oprot.writeI64(self.cartId)
11235
      oprot.writeFieldEnd()
11236
    oprot.writeFieldStop()
11237
    oprot.writeStructEnd()
11238
 
3431 rajveer 11239
  def validate(self):
11240
    return
11241
 
11242
 
575 chandransh 11243
  def __repr__(self):
11244
    L = ['%s=%r' % (key, value)
11245
      for key, value in self.__dict__.iteritems()]
11246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11247
 
11248
  def __eq__(self, other):
11249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11250
 
11251
  def __ne__(self, other):
11252
    return not (self == other)
11253
 
690 chandransh 11254
class checkOut_result:
575 chandransh 11255
  """
11256
  Attributes:
11257
   - success
11258
   - scex
11259
  """
11260
 
11261
  thrift_spec = (
11262
    (0, TType.BOOL, 'success', None, None, ), # 0
11263
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
11264
  )
11265
 
11266
  def __init__(self, success=None, scex=None,):
11267
    self.success = success
11268
    self.scex = scex
11269
 
11270
  def read(self, iprot):
11271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11273
      return
11274
    iprot.readStructBegin()
11275
    while True:
11276
      (fname, ftype, fid) = iprot.readFieldBegin()
11277
      if ftype == TType.STOP:
11278
        break
11279
      if fid == 0:
11280
        if ftype == TType.BOOL:
11281
          self.success = iprot.readBool();
11282
        else:
11283
          iprot.skip(ftype)
11284
      elif fid == 1:
11285
        if ftype == TType.STRUCT:
11286
          self.scex = ShoppingCartException()
11287
          self.scex.read(iprot)
11288
        else:
11289
          iprot.skip(ftype)
11290
      else:
11291
        iprot.skip(ftype)
11292
      iprot.readFieldEnd()
11293
    iprot.readStructEnd()
11294
 
11295
  def write(self, oprot):
11296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11298
      return
690 chandransh 11299
    oprot.writeStructBegin('checkOut_result')
3431 rajveer 11300
    if self.success is not None:
575 chandransh 11301
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11302
      oprot.writeBool(self.success)
11303
      oprot.writeFieldEnd()
3431 rajveer 11304
    if self.scex is not None:
575 chandransh 11305
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11306
      self.scex.write(oprot)
11307
      oprot.writeFieldEnd()
11308
    oprot.writeFieldStop()
11309
    oprot.writeStructEnd()
11310
 
3431 rajveer 11311
  def validate(self):
11312
    return
11313
 
11314
 
575 chandransh 11315
  def __repr__(self):
11316
    L = ['%s=%r' % (key, value)
11317
      for key, value in self.__dict__.iteritems()]
11318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11319
 
11320
  def __eq__(self, other):
11321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11322
 
11323
  def __ne__(self, other):
11324
    return not (self == other)
11325
 
690 chandransh 11326
class resetCart_args:
559 chandransh 11327
  """
11328
  Attributes:
690 chandransh 11329
   - cartId
11330
   - items
559 chandransh 11331
  """
11332
 
11333
  thrift_spec = (
11334
    None, # 0
690 chandransh 11335
    (1, TType.I64, 'cartId', None, None, ), # 1
707 rajveer 11336
    (2, TType.MAP, 'items', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
559 chandransh 11337
  )
11338
 
690 chandransh 11339
  def __init__(self, cartId=None, items=None,):
11340
    self.cartId = cartId
11341
    self.items = items
559 chandransh 11342
 
11343
  def read(self, iprot):
11344
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11345
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11346
      return
11347
    iprot.readStructBegin()
11348
    while True:
11349
      (fname, ftype, fid) = iprot.readFieldBegin()
11350
      if ftype == TType.STOP:
11351
        break
11352
      if fid == 1:
11353
        if ftype == TType.I64:
690 chandransh 11354
          self.cartId = iprot.readI64();
559 chandransh 11355
        else:
11356
          iprot.skip(ftype)
11357
      elif fid == 2:
690 chandransh 11358
        if ftype == TType.MAP:
11359
          self.items = {}
5326 rajveer 11360
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
11361
          for _i132 in xrange(_size128):
11362
            _key133 = iprot.readI64();
11363
            _val134 = iprot.readDouble();
11364
            self.items[_key133] = _val134
690 chandransh 11365
          iprot.readMapEnd()
559 chandransh 11366
        else:
11367
          iprot.skip(ftype)
11368
      else:
11369
        iprot.skip(ftype)
11370
      iprot.readFieldEnd()
11371
    iprot.readStructEnd()
11372
 
11373
  def write(self, oprot):
11374
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11375
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11376
      return
690 chandransh 11377
    oprot.writeStructBegin('resetCart_args')
3431 rajveer 11378
    if self.cartId is not None:
690 chandransh 11379
      oprot.writeFieldBegin('cartId', TType.I64, 1)
11380
      oprot.writeI64(self.cartId)
94 ashish 11381
      oprot.writeFieldEnd()
3431 rajveer 11382
    if self.items is not None:
690 chandransh 11383
      oprot.writeFieldBegin('items', TType.MAP, 2)
707 rajveer 11384
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.items))
5326 rajveer 11385
      for kiter135,viter136 in self.items.items():
11386
        oprot.writeI64(kiter135)
11387
        oprot.writeDouble(viter136)
690 chandransh 11388
      oprot.writeMapEnd()
559 chandransh 11389
      oprot.writeFieldEnd()
94 ashish 11390
    oprot.writeFieldStop()
11391
    oprot.writeStructEnd()
11392
 
3431 rajveer 11393
  def validate(self):
11394
    return
11395
 
11396
 
94 ashish 11397
  def __repr__(self):
11398
    L = ['%s=%r' % (key, value)
11399
      for key, value in self.__dict__.iteritems()]
11400
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11401
 
11402
  def __eq__(self, other):
11403
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11404
 
11405
  def __ne__(self, other):
11406
    return not (self == other)
11407
 
690 chandransh 11408
class resetCart_result:
11409
  """
11410
  Attributes:
11411
   - success
11412
   - scex
11413
  """
559 chandransh 11414
 
11415
  thrift_spec = (
690 chandransh 11416
    (0, TType.BOOL, 'success', None, None, ), # 0
11417
    (1, TType.STRUCT, 'scex', (ShoppingCartException, ShoppingCartException.thrift_spec), None, ), # 1
559 chandransh 11418
  )
11419
 
690 chandransh 11420
  def __init__(self, success=None, scex=None,):
11421
    self.success = success
11422
    self.scex = scex
11423
 
559 chandransh 11424
  def read(self, iprot):
11425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11427
      return
11428
    iprot.readStructBegin()
11429
    while True:
11430
      (fname, ftype, fid) = iprot.readFieldBegin()
11431
      if ftype == TType.STOP:
11432
        break
690 chandransh 11433
      if fid == 0:
11434
        if ftype == TType.BOOL:
11435
          self.success = iprot.readBool();
11436
        else:
11437
          iprot.skip(ftype)
11438
      elif fid == 1:
11439
        if ftype == TType.STRUCT:
11440
          self.scex = ShoppingCartException()
11441
          self.scex.read(iprot)
11442
        else:
11443
          iprot.skip(ftype)
559 chandransh 11444
      else:
11445
        iprot.skip(ftype)
11446
      iprot.readFieldEnd()
11447
    iprot.readStructEnd()
11448
 
11449
  def write(self, oprot):
11450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11452
      return
690 chandransh 11453
    oprot.writeStructBegin('resetCart_result')
3431 rajveer 11454
    if self.success is not None:
690 chandransh 11455
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11456
      oprot.writeBool(self.success)
11457
      oprot.writeFieldEnd()
3431 rajveer 11458
    if self.scex is not None:
690 chandransh 11459
      oprot.writeFieldBegin('scex', TType.STRUCT, 1)
11460
      self.scex.write(oprot)
11461
      oprot.writeFieldEnd()
559 chandransh 11462
    oprot.writeFieldStop()
11463
    oprot.writeStructEnd()
11464
 
3431 rajveer 11465
  def validate(self):
11466
    return
11467
 
11468
 
559 chandransh 11469
  def __repr__(self):
11470
    L = ['%s=%r' % (key, value)
11471
      for key, value in self.__dict__.iteritems()]
11472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11473
 
11474
  def __eq__(self, other):
11475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11476
 
11477
  def __ne__(self, other):
11478
    return not (self == other)
11479
 
2981 rajveer 11480
class getUserCount_args:
94 ashish 11481
  """
11482
  Attributes:
2981 rajveer 11483
   - userType
559 chandransh 11484
  """
11485
 
11486
  thrift_spec = (
11487
    None, # 0
2981 rajveer 11488
    (1, TType.I32, 'userType', None, None, ), # 1
559 chandransh 11489
  )
11490
 
2981 rajveer 11491
  def __init__(self, userType=None,):
11492
    self.userType = userType
559 chandransh 11493
 
11494
  def read(self, iprot):
11495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11497
      return
11498
    iprot.readStructBegin()
11499
    while True:
11500
      (fname, ftype, fid) = iprot.readFieldBegin()
11501
      if ftype == TType.STOP:
11502
        break
11503
      if fid == 1:
2981 rajveer 11504
        if ftype == TType.I32:
11505
          self.userType = iprot.readI32();
559 chandransh 11506
        else:
11507
          iprot.skip(ftype)
11508
      else:
11509
        iprot.skip(ftype)
11510
      iprot.readFieldEnd()
11511
    iprot.readStructEnd()
11512
 
11513
  def write(self, oprot):
11514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11516
      return
2981 rajveer 11517
    oprot.writeStructBegin('getUserCount_args')
3431 rajveer 11518
    if self.userType is not None:
2981 rajveer 11519
      oprot.writeFieldBegin('userType', TType.I32, 1)
11520
      oprot.writeI32(self.userType)
559 chandransh 11521
      oprot.writeFieldEnd()
11522
    oprot.writeFieldStop()
11523
    oprot.writeStructEnd()
11524
 
3431 rajveer 11525
  def validate(self):
11526
    return
11527
 
11528
 
559 chandransh 11529
  def __repr__(self):
11530
    L = ['%s=%r' % (key, value)
11531
      for key, value in self.__dict__.iteritems()]
11532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11533
 
11534
  def __eq__(self, other):
11535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11536
 
11537
  def __ne__(self, other):
11538
    return not (self == other)
11539
 
2981 rajveer 11540
class getUserCount_result:
94 ashish 11541
  """
11542
  Attributes:
11543
   - success
11544
  """
11545
 
11546
  thrift_spec = (
2981 rajveer 11547
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 11548
  )
11549
 
2981 rajveer 11550
  def __init__(self, success=None,):
94 ashish 11551
    self.success = success
11552
 
11553
  def read(self, iprot):
11554
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11555
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11556
      return
11557
    iprot.readStructBegin()
11558
    while True:
11559
      (fname, ftype, fid) = iprot.readFieldBegin()
11560
      if ftype == TType.STOP:
11561
        break
11562
      if fid == 0:
2981 rajveer 11563
        if ftype == TType.I64:
11564
          self.success = iprot.readI64();
94 ashish 11565
        else:
11566
          iprot.skip(ftype)
11567
      else:
11568
        iprot.skip(ftype)
11569
      iprot.readFieldEnd()
11570
    iprot.readStructEnd()
11571
 
11572
  def write(self, oprot):
11573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11575
      return
2981 rajveer 11576
    oprot.writeStructBegin('getUserCount_result')
3431 rajveer 11577
    if self.success is not None:
2981 rajveer 11578
      oprot.writeFieldBegin('success', TType.I64, 0)
11579
      oprot.writeI64(self.success)
94 ashish 11580
      oprot.writeFieldEnd()
11581
    oprot.writeFieldStop()
11582
    oprot.writeStructEnd()
11583
 
3431 rajveer 11584
  def validate(self):
11585
    return
11586
 
11587
 
94 ashish 11588
  def __repr__(self):
11589
    L = ['%s=%r' % (key, value)
11590
      for key, value in self.__dict__.iteritems()]
11591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11592
 
11593
  def __eq__(self, other):
11594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11595
 
11596
  def __ne__(self, other):
11597
    return not (self == other)
11598
 
2981 rajveer 11599
class getAllUsers_args:
94 ashish 11600
  """
11601
  Attributes:
2981 rajveer 11602
   - userType
11603
   - startDate
11604
   - endDate
94 ashish 11605
  """
11606
 
11607
  thrift_spec = (
11608
    None, # 0
2981 rajveer 11609
    (1, TType.I32, 'userType', None, None, ), # 1
11610
    (2, TType.I64, 'startDate', None, None, ), # 2
11611
    (3, TType.I64, 'endDate', None, None, ), # 3
94 ashish 11612
  )
11613
 
2981 rajveer 11614
  def __init__(self, userType=None, startDate=None, endDate=None,):
11615
    self.userType = userType
11616
    self.startDate = startDate
11617
    self.endDate = endDate
94 ashish 11618
 
11619
  def read(self, iprot):
11620
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11621
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11622
      return
11623
    iprot.readStructBegin()
11624
    while True:
11625
      (fname, ftype, fid) = iprot.readFieldBegin()
11626
      if ftype == TType.STOP:
11627
        break
11628
      if fid == 1:
2981 rajveer 11629
        if ftype == TType.I32:
11630
          self.userType = iprot.readI32();
94 ashish 11631
        else:
11632
          iprot.skip(ftype)
11633
      elif fid == 2:
559 chandransh 11634
        if ftype == TType.I64:
2981 rajveer 11635
          self.startDate = iprot.readI64();
94 ashish 11636
        else:
11637
          iprot.skip(ftype)
2981 rajveer 11638
      elif fid == 3:
11639
        if ftype == TType.I64:
11640
          self.endDate = iprot.readI64();
11641
        else:
11642
          iprot.skip(ftype)
94 ashish 11643
      else:
11644
        iprot.skip(ftype)
11645
      iprot.readFieldEnd()
11646
    iprot.readStructEnd()
11647
 
11648
  def write(self, oprot):
11649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11651
      return
2981 rajveer 11652
    oprot.writeStructBegin('getAllUsers_args')
3431 rajveer 11653
    if self.userType is not None:
2981 rajveer 11654
      oprot.writeFieldBegin('userType', TType.I32, 1)
11655
      oprot.writeI32(self.userType)
94 ashish 11656
      oprot.writeFieldEnd()
3431 rajveer 11657
    if self.startDate is not None:
2981 rajveer 11658
      oprot.writeFieldBegin('startDate', TType.I64, 2)
11659
      oprot.writeI64(self.startDate)
94 ashish 11660
      oprot.writeFieldEnd()
3431 rajveer 11661
    if self.endDate is not None:
2981 rajveer 11662
      oprot.writeFieldBegin('endDate', TType.I64, 3)
11663
      oprot.writeI64(self.endDate)
11664
      oprot.writeFieldEnd()
94 ashish 11665
    oprot.writeFieldStop()
11666
    oprot.writeStructEnd()
11667
 
3431 rajveer 11668
  def validate(self):
11669
    return
11670
 
11671
 
94 ashish 11672
  def __repr__(self):
11673
    L = ['%s=%r' % (key, value)
11674
      for key, value in self.__dict__.iteritems()]
11675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11676
 
11677
  def __eq__(self, other):
11678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11679
 
11680
  def __ne__(self, other):
11681
    return not (self == other)
11682
 
2981 rajveer 11683
class getAllUsers_result:
94 ashish 11684
  """
11685
  Attributes:
11686
   - success
11687
  """
11688
 
11689
  thrift_spec = (
2981 rajveer 11690
    (0, TType.LIST, 'success', (TType.STRUCT,(User, User.thrift_spec)), None, ), # 0
94 ashish 11691
  )
11692
 
2981 rajveer 11693
  def __init__(self, success=None,):
94 ashish 11694
    self.success = success
11695
 
11696
  def read(self, iprot):
11697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11699
      return
11700
    iprot.readStructBegin()
11701
    while True:
11702
      (fname, ftype, fid) = iprot.readFieldBegin()
11703
      if ftype == TType.STOP:
11704
        break
11705
      if fid == 0:
2981 rajveer 11706
        if ftype == TType.LIST:
11707
          self.success = []
5326 rajveer 11708
          (_etype140, _size137) = iprot.readListBegin()
11709
          for _i141 in xrange(_size137):
11710
            _elem142 = User()
11711
            _elem142.read(iprot)
11712
            self.success.append(_elem142)
2981 rajveer 11713
          iprot.readListEnd()
94 ashish 11714
        else:
11715
          iprot.skip(ftype)
11716
      else:
11717
        iprot.skip(ftype)
11718
      iprot.readFieldEnd()
11719
    iprot.readStructEnd()
11720
 
11721
  def write(self, oprot):
11722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11724
      return
2981 rajveer 11725
    oprot.writeStructBegin('getAllUsers_result')
3431 rajveer 11726
    if self.success is not None:
2981 rajveer 11727
      oprot.writeFieldBegin('success', TType.LIST, 0)
11728
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 11729
      for iter143 in self.success:
11730
        iter143.write(oprot)
2981 rajveer 11731
      oprot.writeListEnd()
94 ashish 11732
      oprot.writeFieldEnd()
11733
    oprot.writeFieldStop()
11734
    oprot.writeStructEnd()
11735
 
3431 rajveer 11736
  def validate(self):
11737
    return
11738
 
11739
 
94 ashish 11740
  def __repr__(self):
11741
    L = ['%s=%r' % (key, value)
11742
      for key, value in self.__dict__.iteritems()]
11743
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11744
 
11745
  def __eq__(self, other):
11746
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11747
 
11748
  def __ne__(self, other):
11749
    return not (self == other)
11750
 
2981 rajveer 11751
class putUserNote_args:
130 ashish 11752
  """
11753
  Attributes:
2981 rajveer 11754
   - user_id
11755
   - entity_id
11756
   - slide
11757
   - note
130 ashish 11758
  """
94 ashish 11759
 
130 ashish 11760
  thrift_spec = (
11761
    None, # 0
2981 rajveer 11762
    (1, TType.I64, 'user_id', None, None, ), # 1
11763
    (2, TType.I64, 'entity_id', None, None, ), # 2
11764
    (3, TType.STRING, 'slide', None, None, ), # 3
11765
    (4, TType.STRING, 'note', None, None, ), # 4
130 ashish 11766
  )
11767
 
2981 rajveer 11768
  def __init__(self, user_id=None, entity_id=None, slide=None, note=None,):
11769
    self.user_id = user_id
11770
    self.entity_id = entity_id
11771
    self.slide = slide
11772
    self.note = note
130 ashish 11773
 
11774
  def read(self, iprot):
11775
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11776
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11777
      return
11778
    iprot.readStructBegin()
11779
    while True:
11780
      (fname, ftype, fid) = iprot.readFieldBegin()
11781
      if ftype == TType.STOP:
11782
        break
11783
      if fid == 1:
11784
        if ftype == TType.I64:
2981 rajveer 11785
          self.user_id = iprot.readI64();
130 ashish 11786
        else:
11787
          iprot.skip(ftype)
559 chandransh 11788
      elif fid == 2:
11789
        if ftype == TType.I64:
2981 rajveer 11790
          self.entity_id = iprot.readI64();
559 chandransh 11791
        else:
11792
          iprot.skip(ftype)
2981 rajveer 11793
      elif fid == 3:
11794
        if ftype == TType.STRING:
11795
          self.slide = iprot.readString();
11796
        else:
11797
          iprot.skip(ftype)
11798
      elif fid == 4:
11799
        if ftype == TType.STRING:
11800
          self.note = iprot.readString();
11801
        else:
11802
          iprot.skip(ftype)
130 ashish 11803
      else:
11804
        iprot.skip(ftype)
11805
      iprot.readFieldEnd()
11806
    iprot.readStructEnd()
11807
 
11808
  def write(self, oprot):
11809
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11810
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11811
      return
2981 rajveer 11812
    oprot.writeStructBegin('putUserNote_args')
3431 rajveer 11813
    if self.user_id is not None:
2981 rajveer 11814
      oprot.writeFieldBegin('user_id', TType.I64, 1)
11815
      oprot.writeI64(self.user_id)
130 ashish 11816
      oprot.writeFieldEnd()
3431 rajveer 11817
    if self.entity_id is not None:
2981 rajveer 11818
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
11819
      oprot.writeI64(self.entity_id)
559 chandransh 11820
      oprot.writeFieldEnd()
3431 rajveer 11821
    if self.slide is not None:
2981 rajveer 11822
      oprot.writeFieldBegin('slide', TType.STRING, 3)
11823
      oprot.writeString(self.slide)
11824
      oprot.writeFieldEnd()
3431 rajveer 11825
    if self.note is not None:
2981 rajveer 11826
      oprot.writeFieldBegin('note', TType.STRING, 4)
11827
      oprot.writeString(self.note)
11828
      oprot.writeFieldEnd()
130 ashish 11829
    oprot.writeFieldStop()
11830
    oprot.writeStructEnd()
11831
 
3431 rajveer 11832
  def validate(self):
11833
    return
11834
 
11835
 
130 ashish 11836
  def __repr__(self):
11837
    L = ['%s=%r' % (key, value)
11838
      for key, value in self.__dict__.iteritems()]
11839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11840
 
11841
  def __eq__(self, other):
11842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11843
 
11844
  def __ne__(self, other):
11845
    return not (self == other)
11846
 
2981 rajveer 11847
class putUserNote_result:
559 chandransh 11848
 
11849
  thrift_spec = (
11850
  )
11851
 
11852
  def read(self, iprot):
11853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11855
      return
11856
    iprot.readStructBegin()
11857
    while True:
11858
      (fname, ftype, fid) = iprot.readFieldBegin()
11859
      if ftype == TType.STOP:
11860
        break
11861
      else:
11862
        iprot.skip(ftype)
11863
      iprot.readFieldEnd()
11864
    iprot.readStructEnd()
11865
 
11866
  def write(self, oprot):
11867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11869
      return
2981 rajveer 11870
    oprot.writeStructBegin('putUserNote_result')
559 chandransh 11871
    oprot.writeFieldStop()
11872
    oprot.writeStructEnd()
11873
 
3431 rajveer 11874
  def validate(self):
11875
    return
11876
 
11877
 
559 chandransh 11878
  def __repr__(self):
11879
    L = ['%s=%r' % (key, value)
11880
      for key, value in self.__dict__.iteritems()]
11881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11882
 
11883
  def __eq__(self, other):
11884
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11885
 
11886
  def __ne__(self, other):
11887
    return not (self == other)
11888
 
2981 rajveer 11889
class getUserNotes_args:
559 chandransh 11890
  """
11891
  Attributes:
2981 rajveer 11892
   - user_id
11893
   - entity_id
559 chandransh 11894
  """
11895
 
11896
  thrift_spec = (
11897
    None, # 0
2981 rajveer 11898
    (1, TType.I64, 'user_id', None, None, ), # 1
11899
    (2, TType.I64, 'entity_id', None, None, ), # 2
559 chandransh 11900
  )
11901
 
2981 rajveer 11902
  def __init__(self, user_id=None, entity_id=None,):
11903
    self.user_id = user_id
11904
    self.entity_id = entity_id
559 chandransh 11905
 
11906
  def read(self, iprot):
11907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11909
      return
11910
    iprot.readStructBegin()
11911
    while True:
11912
      (fname, ftype, fid) = iprot.readFieldBegin()
11913
      if ftype == TType.STOP:
11914
        break
11915
      if fid == 1:
11916
        if ftype == TType.I64:
2981 rajveer 11917
          self.user_id = iprot.readI64();
559 chandransh 11918
        else:
11919
          iprot.skip(ftype)
11920
      elif fid == 2:
11921
        if ftype == TType.I64:
2981 rajveer 11922
          self.entity_id = iprot.readI64();
559 chandransh 11923
        else:
11924
          iprot.skip(ftype)
11925
      else:
11926
        iprot.skip(ftype)
11927
      iprot.readFieldEnd()
11928
    iprot.readStructEnd()
11929
 
11930
  def write(self, oprot):
11931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11933
      return
2981 rajveer 11934
    oprot.writeStructBegin('getUserNotes_args')
3431 rajveer 11935
    if self.user_id is not None:
2981 rajveer 11936
      oprot.writeFieldBegin('user_id', TType.I64, 1)
11937
      oprot.writeI64(self.user_id)
559 chandransh 11938
      oprot.writeFieldEnd()
3431 rajveer 11939
    if self.entity_id is not None:
2981 rajveer 11940
      oprot.writeFieldBegin('entity_id', TType.I64, 2)
11941
      oprot.writeI64(self.entity_id)
559 chandransh 11942
      oprot.writeFieldEnd()
11943
    oprot.writeFieldStop()
11944
    oprot.writeStructEnd()
11945
 
3431 rajveer 11946
  def validate(self):
11947
    return
11948
 
11949
 
559 chandransh 11950
  def __repr__(self):
11951
    L = ['%s=%r' % (key, value)
11952
      for key, value in self.__dict__.iteritems()]
11953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11954
 
11955
  def __eq__(self, other):
11956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11957
 
11958
  def __ne__(self, other):
11959
    return not (self == other)
11960
 
2981 rajveer 11961
class getUserNotes_result:
11962
  """
11963
  Attributes:
11964
   - success
11965
  """
559 chandransh 11966
 
11967
  thrift_spec = (
2981 rajveer 11968
    (0, TType.LIST, 'success', (TType.STRUCT,(UserNote, UserNote.thrift_spec)), None, ), # 0
559 chandransh 11969
  )
11970
 
2981 rajveer 11971
  def __init__(self, success=None,):
11972
    self.success = success
11973
 
559 chandransh 11974
  def read(self, iprot):
11975
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11976
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11977
      return
11978
    iprot.readStructBegin()
11979
    while True:
11980
      (fname, ftype, fid) = iprot.readFieldBegin()
11981
      if ftype == TType.STOP:
11982
        break
2981 rajveer 11983
      if fid == 0:
11984
        if ftype == TType.LIST:
11985
          self.success = []
5326 rajveer 11986
          (_etype147, _size144) = iprot.readListBegin()
11987
          for _i148 in xrange(_size144):
11988
            _elem149 = UserNote()
11989
            _elem149.read(iprot)
11990
            self.success.append(_elem149)
2981 rajveer 11991
          iprot.readListEnd()
11992
        else:
11993
          iprot.skip(ftype)
559 chandransh 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
2981 rajveer 12003
    oprot.writeStructBegin('getUserNotes_result')
3431 rajveer 12004
    if self.success is not None:
2981 rajveer 12005
      oprot.writeFieldBegin('success', TType.LIST, 0)
12006
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5326 rajveer 12007
      for iter150 in self.success:
12008
        iter150.write(oprot)
2981 rajveer 12009
      oprot.writeListEnd()
12010
      oprot.writeFieldEnd()
559 chandransh 12011
    oprot.writeFieldStop()
12012
    oprot.writeStructEnd()
12013
 
3431 rajveer 12014
  def validate(self):
12015
    return
12016
 
12017
 
559 chandransh 12018
  def __repr__(self):
12019
    L = ['%s=%r' % (key, value)
12020
      for key, value in self.__dict__.iteritems()]
12021
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12022
 
12023
  def __eq__(self, other):
12024
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12025
 
12026
  def __ne__(self, other):
12027
    return not (self == other)
12028
 
2981 rajveer 12029
class getMyResearchItems_args:
559 chandransh 12030
  """
12031
  Attributes:
772 rajveer 12032
   - userId
559 chandransh 12033
  """
12034
 
12035
  thrift_spec = (
12036
    None, # 0
772 rajveer 12037
    (1, TType.I64, 'userId', None, None, ), # 1
559 chandransh 12038
  )
12039
 
772 rajveer 12040
  def __init__(self, userId=None,):
12041
    self.userId = userId
559 chandransh 12042
 
12043
  def read(self, iprot):
12044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12046
      return
12047
    iprot.readStructBegin()
12048
    while True:
12049
      (fname, ftype, fid) = iprot.readFieldBegin()
12050
      if ftype == TType.STOP:
12051
        break
12052
      if fid == 1:
12053
        if ftype == TType.I64:
772 rajveer 12054
          self.userId = iprot.readI64();
559 chandransh 12055
        else:
12056
          iprot.skip(ftype)
12057
      else:
12058
        iprot.skip(ftype)
12059
      iprot.readFieldEnd()
12060
    iprot.readStructEnd()
12061
 
12062
  def write(self, oprot):
12063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12065
      return
2981 rajveer 12066
    oprot.writeStructBegin('getMyResearchItems_args')
3431 rajveer 12067
    if self.userId is not None:
772 rajveer 12068
      oprot.writeFieldBegin('userId', TType.I64, 1)
12069
      oprot.writeI64(self.userId)
559 chandransh 12070
      oprot.writeFieldEnd()
12071
    oprot.writeFieldStop()
12072
    oprot.writeStructEnd()
12073
 
3431 rajveer 12074
  def validate(self):
12075
    return
12076
 
12077
 
559 chandransh 12078
  def __repr__(self):
12079
    L = ['%s=%r' % (key, value)
12080
      for key, value in self.__dict__.iteritems()]
12081
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12082
 
12083
  def __eq__(self, other):
12084
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12085
 
12086
  def __ne__(self, other):
12087
    return not (self == other)
12088
 
2981 rajveer 12089
class getMyResearchItems_result:
559 chandransh 12090
  """
12091
  Attributes:
130 ashish 12092
   - success
559 chandransh 12093
   - scx
130 ashish 12094
  """
12095
 
12096
  thrift_spec = (
2981 rajveer 12097
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
559 chandransh 12098
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
130 ashish 12099
  )
12100
 
559 chandransh 12101
  def __init__(self, success=None, scx=None,):
130 ashish 12102
    self.success = success
559 chandransh 12103
    self.scx = scx
130 ashish 12104
 
12105
  def read(self, iprot):
12106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12108
      return
12109
    iprot.readStructBegin()
12110
    while True:
12111
      (fname, ftype, fid) = iprot.readFieldBegin()
12112
      if ftype == TType.STOP:
12113
        break
12114
      if fid == 0:
2981 rajveer 12115
        if ftype == TType.LIST:
12116
          self.success = []
5326 rajveer 12117
          (_etype154, _size151) = iprot.readListBegin()
12118
          for _i155 in xrange(_size151):
12119
            _elem156 = iprot.readI64();
12120
            self.success.append(_elem156)
2981 rajveer 12121
          iprot.readListEnd()
130 ashish 12122
        else:
12123
          iprot.skip(ftype)
12124
      elif fid == 1:
12125
        if ftype == TType.STRUCT:
559 chandransh 12126
          self.scx = WidgetException()
12127
          self.scx.read(iprot)
130 ashish 12128
        else:
12129
          iprot.skip(ftype)
12130
      else:
12131
        iprot.skip(ftype)
12132
      iprot.readFieldEnd()
12133
    iprot.readStructEnd()
12134
 
12135
  def write(self, oprot):
12136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12138
      return
2981 rajveer 12139
    oprot.writeStructBegin('getMyResearchItems_result')
3431 rajveer 12140
    if self.success is not None:
2981 rajveer 12141
      oprot.writeFieldBegin('success', TType.LIST, 0)
12142
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12143
      for iter157 in self.success:
12144
        oprot.writeI64(iter157)
2981 rajveer 12145
      oprot.writeListEnd()
130 ashish 12146
      oprot.writeFieldEnd()
3431 rajveer 12147
    if self.scx is not None:
559 chandransh 12148
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12149
      self.scx.write(oprot)
130 ashish 12150
      oprot.writeFieldEnd()
12151
    oprot.writeFieldStop()
12152
    oprot.writeStructEnd()
12153
 
3431 rajveer 12154
  def validate(self):
12155
    return
12156
 
12157
 
130 ashish 12158
  def __repr__(self):
12159
    L = ['%s=%r' % (key, value)
12160
      for key, value in self.__dict__.iteritems()]
12161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12162
 
12163
  def __eq__(self, other):
12164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12165
 
12166
  def __ne__(self, other):
12167
    return not (self == other)
12168
 
2981 rajveer 12169
class updateMyResearch_args:
130 ashish 12170
  """
12171
  Attributes:
2981 rajveer 12172
   - userId
12173
   - itemId
130 ashish 12174
  """
12175
 
12176
  thrift_spec = (
12177
    None, # 0
2981 rajveer 12178
    (1, TType.I64, 'userId', None, None, ), # 1
12179
    (2, TType.I64, 'itemId', None, None, ), # 2
130 ashish 12180
  )
12181
 
2981 rajveer 12182
  def __init__(self, userId=None, itemId=None,):
12183
    self.userId = userId
12184
    self.itemId = itemId
130 ashish 12185
 
12186
  def read(self, iprot):
12187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12189
      return
12190
    iprot.readStructBegin()
12191
    while True:
12192
      (fname, ftype, fid) = iprot.readFieldBegin()
12193
      if ftype == TType.STOP:
12194
        break
12195
      if fid == 1:
559 chandransh 12196
        if ftype == TType.I64:
2981 rajveer 12197
          self.userId = iprot.readI64();
130 ashish 12198
        else:
12199
          iprot.skip(ftype)
12200
      elif fid == 2:
559 chandransh 12201
        if ftype == TType.I64:
2981 rajveer 12202
          self.itemId = iprot.readI64();
559 chandransh 12203
        else:
12204
          iprot.skip(ftype)
130 ashish 12205
      else:
12206
        iprot.skip(ftype)
12207
      iprot.readFieldEnd()
12208
    iprot.readStructEnd()
12209
 
12210
  def write(self, oprot):
12211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12213
      return
2981 rajveer 12214
    oprot.writeStructBegin('updateMyResearch_args')
3431 rajveer 12215
    if self.userId is not None:
2981 rajveer 12216
      oprot.writeFieldBegin('userId', TType.I64, 1)
12217
      oprot.writeI64(self.userId)
130 ashish 12218
      oprot.writeFieldEnd()
3431 rajveer 12219
    if self.itemId is not None:
2981 rajveer 12220
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12221
      oprot.writeI64(self.itemId)
130 ashish 12222
      oprot.writeFieldEnd()
12223
    oprot.writeFieldStop()
12224
    oprot.writeStructEnd()
12225
 
3431 rajveer 12226
  def validate(self):
12227
    return
12228
 
12229
 
130 ashish 12230
  def __repr__(self):
12231
    L = ['%s=%r' % (key, value)
12232
      for key, value in self.__dict__.iteritems()]
12233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12234
 
12235
  def __eq__(self, other):
12236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12237
 
12238
  def __ne__(self, other):
12239
    return not (self == other)
12240
 
2981 rajveer 12241
class updateMyResearch_result:
12242
  """
12243
  Attributes:
12244
   - success
12245
   - scx
12246
  """
559 chandransh 12247
 
12248
  thrift_spec = (
2981 rajveer 12249
    (0, TType.BOOL, 'success', None, None, ), # 0
12250
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
559 chandransh 12251
  )
12252
 
2981 rajveer 12253
  def __init__(self, success=None, scx=None,):
12254
    self.success = success
12255
    self.scx = scx
12256
 
559 chandransh 12257
  def read(self, iprot):
12258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12260
      return
12261
    iprot.readStructBegin()
12262
    while True:
12263
      (fname, ftype, fid) = iprot.readFieldBegin()
12264
      if ftype == TType.STOP:
12265
        break
2981 rajveer 12266
      if fid == 0:
12267
        if ftype == TType.BOOL:
12268
          self.success = iprot.readBool();
12269
        else:
12270
          iprot.skip(ftype)
12271
      elif fid == 1:
12272
        if ftype == TType.STRUCT:
12273
          self.scx = WidgetException()
12274
          self.scx.read(iprot)
12275
        else:
12276
          iprot.skip(ftype)
559 chandransh 12277
      else:
12278
        iprot.skip(ftype)
12279
      iprot.readFieldEnd()
12280
    iprot.readStructEnd()
12281
 
12282
  def write(self, oprot):
12283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12285
      return
2981 rajveer 12286
    oprot.writeStructBegin('updateMyResearch_result')
3431 rajveer 12287
    if self.success is not None:
2981 rajveer 12288
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12289
      oprot.writeBool(self.success)
12290
      oprot.writeFieldEnd()
3431 rajveer 12291
    if self.scx is not None:
2981 rajveer 12292
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12293
      self.scx.write(oprot)
12294
      oprot.writeFieldEnd()
559 chandransh 12295
    oprot.writeFieldStop()
12296
    oprot.writeStructEnd()
12297
 
3431 rajveer 12298
  def validate(self):
12299
    return
12300
 
12301
 
559 chandransh 12302
  def __repr__(self):
12303
    L = ['%s=%r' % (key, value)
12304
      for key, value in self.__dict__.iteritems()]
12305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12306
 
12307
  def __eq__(self, other):
12308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12309
 
12310
  def __ne__(self, other):
12311
    return not (self == other)
12312
 
2981 rajveer 12313
class deleteItemFromMyResearch_args:
1596 ankur.sing 12314
  """
12315
  Attributes:
2981 rajveer 12316
   - userId
12317
   - itemId
1596 ankur.sing 12318
  """
559 chandransh 12319
 
1596 ankur.sing 12320
  thrift_spec = (
12321
    None, # 0
2981 rajveer 12322
    (1, TType.I64, 'userId', None, None, ), # 1
12323
    (2, TType.I64, 'itemId', None, None, ), # 2
1596 ankur.sing 12324
  )
12325
 
2981 rajveer 12326
  def __init__(self, userId=None, itemId=None,):
12327
    self.userId = userId
12328
    self.itemId = itemId
1596 ankur.sing 12329
 
12330
  def read(self, iprot):
12331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12333
      return
12334
    iprot.readStructBegin()
12335
    while True:
12336
      (fname, ftype, fid) = iprot.readFieldBegin()
12337
      if ftype == TType.STOP:
12338
        break
12339
      if fid == 1:
2981 rajveer 12340
        if ftype == TType.I64:
12341
          self.userId = iprot.readI64();
1596 ankur.sing 12342
        else:
12343
          iprot.skip(ftype)
2981 rajveer 12344
      elif fid == 2:
12345
        if ftype == TType.I64:
12346
          self.itemId = iprot.readI64();
12347
        else:
12348
          iprot.skip(ftype)
1596 ankur.sing 12349
      else:
12350
        iprot.skip(ftype)
12351
      iprot.readFieldEnd()
12352
    iprot.readStructEnd()
12353
 
12354
  def write(self, oprot):
12355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12357
      return
2981 rajveer 12358
    oprot.writeStructBegin('deleteItemFromMyResearch_args')
3431 rajveer 12359
    if self.userId is not None:
2981 rajveer 12360
      oprot.writeFieldBegin('userId', TType.I64, 1)
12361
      oprot.writeI64(self.userId)
1596 ankur.sing 12362
      oprot.writeFieldEnd()
3431 rajveer 12363
    if self.itemId is not None:
2981 rajveer 12364
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12365
      oprot.writeI64(self.itemId)
12366
      oprot.writeFieldEnd()
1596 ankur.sing 12367
    oprot.writeFieldStop()
12368
    oprot.writeStructEnd()
12369
 
3431 rajveer 12370
  def validate(self):
12371
    return
12372
 
12373
 
1596 ankur.sing 12374
  def __repr__(self):
12375
    L = ['%s=%r' % (key, value)
12376
      for key, value in self.__dict__.iteritems()]
12377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12378
 
12379
  def __eq__(self, other):
12380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12381
 
12382
  def __ne__(self, other):
12383
    return not (self == other)
12384
 
2981 rajveer 12385
class deleteItemFromMyResearch_result:
1596 ankur.sing 12386
  """
12387
  Attributes:
2981 rajveer 12388
   - scx
1596 ankur.sing 12389
  """
12390
 
12391
  thrift_spec = (
2981 rajveer 12392
    None, # 0
12393
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1596 ankur.sing 12394
  )
12395
 
2981 rajveer 12396
  def __init__(self, scx=None,):
12397
    self.scx = scx
1596 ankur.sing 12398
 
12399
  def read(self, iprot):
12400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12402
      return
12403
    iprot.readStructBegin()
12404
    while True:
12405
      (fname, ftype, fid) = iprot.readFieldBegin()
12406
      if ftype == TType.STOP:
12407
        break
2981 rajveer 12408
      if fid == 1:
12409
        if ftype == TType.STRUCT:
12410
          self.scx = WidgetException()
12411
          self.scx.read(iprot)
1596 ankur.sing 12412
        else:
12413
          iprot.skip(ftype)
12414
      else:
12415
        iprot.skip(ftype)
12416
      iprot.readFieldEnd()
12417
    iprot.readStructEnd()
12418
 
12419
  def write(self, oprot):
12420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12422
      return
2981 rajveer 12423
    oprot.writeStructBegin('deleteItemFromMyResearch_result')
3431 rajveer 12424
    if self.scx is not None:
2981 rajveer 12425
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12426
      self.scx.write(oprot)
1596 ankur.sing 12427
      oprot.writeFieldEnd()
12428
    oprot.writeFieldStop()
12429
    oprot.writeStructEnd()
12430
 
3431 rajveer 12431
  def validate(self):
12432
    return
12433
 
12434
 
1596 ankur.sing 12435
  def __repr__(self):
12436
    L = ['%s=%r' % (key, value)
12437
      for key, value in self.__dict__.iteritems()]
12438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12439
 
12440
  def __eq__(self, other):
12441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12442
 
12443
  def __ne__(self, other):
12444
    return not (self == other)
12445
 
2981 rajveer 12446
class getBrowseHistoryItems_args:
1673 ankur.sing 12447
  """
12448
  Attributes:
2981 rajveer 12449
   - userId
1673 ankur.sing 12450
  """
1596 ankur.sing 12451
 
1673 ankur.sing 12452
  thrift_spec = (
12453
    None, # 0
2981 rajveer 12454
    (1, TType.I64, 'userId', None, None, ), # 1
1673 ankur.sing 12455
  )
12456
 
2981 rajveer 12457
  def __init__(self, userId=None,):
12458
    self.userId = userId
1673 ankur.sing 12459
 
12460
  def read(self, iprot):
12461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12463
      return
12464
    iprot.readStructBegin()
12465
    while True:
12466
      (fname, ftype, fid) = iprot.readFieldBegin()
12467
      if ftype == TType.STOP:
12468
        break
12469
      if fid == 1:
1891 ankur.sing 12470
        if ftype == TType.I64:
2981 rajveer 12471
          self.userId = iprot.readI64();
1891 ankur.sing 12472
        else:
12473
          iprot.skip(ftype)
1673 ankur.sing 12474
      else:
12475
        iprot.skip(ftype)
12476
      iprot.readFieldEnd()
12477
    iprot.readStructEnd()
12478
 
12479
  def write(self, oprot):
12480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12482
      return
2981 rajveer 12483
    oprot.writeStructBegin('getBrowseHistoryItems_args')
3431 rajveer 12484
    if self.userId is not None:
2981 rajveer 12485
      oprot.writeFieldBegin('userId', TType.I64, 1)
12486
      oprot.writeI64(self.userId)
1673 ankur.sing 12487
      oprot.writeFieldEnd()
12488
    oprot.writeFieldStop()
12489
    oprot.writeStructEnd()
12490
 
3431 rajveer 12491
  def validate(self):
12492
    return
12493
 
12494
 
1673 ankur.sing 12495
  def __repr__(self):
12496
    L = ['%s=%r' % (key, value)
12497
      for key, value in self.__dict__.iteritems()]
12498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12499
 
12500
  def __eq__(self, other):
12501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12502
 
12503
  def __ne__(self, other):
12504
    return not (self == other)
12505
 
2981 rajveer 12506
class getBrowseHistoryItems_result:
1673 ankur.sing 12507
  """
12508
  Attributes:
12509
   - success
2981 rajveer 12510
   - scx
1673 ankur.sing 12511
  """
12512
 
12513
  thrift_spec = (
2981 rajveer 12514
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12515
    (1, TType.STRUCT, 'scx', (WidgetException, WidgetException.thrift_spec), None, ), # 1
1673 ankur.sing 12516
  )
12517
 
2981 rajveer 12518
  def __init__(self, success=None, scx=None,):
1673 ankur.sing 12519
    self.success = success
2981 rajveer 12520
    self.scx = scx
1673 ankur.sing 12521
 
12522
  def read(self, iprot):
12523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12525
      return
12526
    iprot.readStructBegin()
12527
    while True:
12528
      (fname, ftype, fid) = iprot.readFieldBegin()
12529
      if ftype == TType.STOP:
12530
        break
12531
      if fid == 0:
12532
        if ftype == TType.LIST:
12533
          self.success = []
5326 rajveer 12534
          (_etype161, _size158) = iprot.readListBegin()
12535
          for _i162 in xrange(_size158):
12536
            _elem163 = iprot.readI64();
12537
            self.success.append(_elem163)
1673 ankur.sing 12538
          iprot.readListEnd()
12539
        else:
12540
          iprot.skip(ftype)
2981 rajveer 12541
      elif fid == 1:
12542
        if ftype == TType.STRUCT:
12543
          self.scx = WidgetException()
12544
          self.scx.read(iprot)
12545
        else:
12546
          iprot.skip(ftype)
1673 ankur.sing 12547
      else:
12548
        iprot.skip(ftype)
12549
      iprot.readFieldEnd()
12550
    iprot.readStructEnd()
12551
 
12552
  def write(self, oprot):
12553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12555
      return
2981 rajveer 12556
    oprot.writeStructBegin('getBrowseHistoryItems_result')
3431 rajveer 12557
    if self.success is not None:
1673 ankur.sing 12558
      oprot.writeFieldBegin('success', TType.LIST, 0)
2981 rajveer 12559
      oprot.writeListBegin(TType.I64, len(self.success))
5326 rajveer 12560
      for iter164 in self.success:
12561
        oprot.writeI64(iter164)
1673 ankur.sing 12562
      oprot.writeListEnd()
12563
      oprot.writeFieldEnd()
3431 rajveer 12564
    if self.scx is not None:
2981 rajveer 12565
      oprot.writeFieldBegin('scx', TType.STRUCT, 1)
12566
      self.scx.write(oprot)
2642 varun.gupt 12567
      oprot.writeFieldEnd()
12568
    oprot.writeFieldStop()
12569
    oprot.writeStructEnd()
12570
 
3431 rajveer 12571
  def validate(self):
12572
    return
12573
 
12574
 
2642 varun.gupt 12575
  def __repr__(self):
12576
    L = ['%s=%r' % (key, value)
12577
      for key, value in self.__dict__.iteritems()]
12578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12579
 
12580
  def __eq__(self, other):
12581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12582
 
12583
  def __ne__(self, other):
12584
    return not (self == other)
12585
 
2981 rajveer 12586
class updateBrowseHistory_args:
2642 varun.gupt 12587
  """
12588
  Attributes:
2981 rajveer 12589
   - userId
12590
   - itemId
2642 varun.gupt 12591
  """
12592
 
12593
  thrift_spec = (
12594
    None, # 0
2981 rajveer 12595
    (1, TType.I64, 'userId', None, None, ), # 1
12596
    (2, TType.I64, 'itemId', None, None, ), # 2
2642 varun.gupt 12597
  )
12598
 
2981 rajveer 12599
  def __init__(self, userId=None, itemId=None,):
12600
    self.userId = userId
12601
    self.itemId = itemId
2642 varun.gupt 12602
 
12603
  def read(self, iprot):
12604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12606
      return
12607
    iprot.readStructBegin()
12608
    while True:
12609
      (fname, ftype, fid) = iprot.readFieldBegin()
12610
      if ftype == TType.STOP:
12611
        break
12612
      if fid == 1:
12613
        if ftype == TType.I64:
2981 rajveer 12614
          self.userId = iprot.readI64();
2642 varun.gupt 12615
        else:
12616
          iprot.skip(ftype)
12617
      elif fid == 2:
12618
        if ftype == TType.I64:
2981 rajveer 12619
          self.itemId = iprot.readI64();
2642 varun.gupt 12620
        else:
12621
          iprot.skip(ftype)
12622
      else:
12623
        iprot.skip(ftype)
12624
      iprot.readFieldEnd()
12625
    iprot.readStructEnd()
12626
 
12627
  def write(self, oprot):
12628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12630
      return
2981 rajveer 12631
    oprot.writeStructBegin('updateBrowseHistory_args')
3431 rajveer 12632
    if self.userId is not None:
2981 rajveer 12633
      oprot.writeFieldBegin('userId', TType.I64, 1)
12634
      oprot.writeI64(self.userId)
2642 varun.gupt 12635
      oprot.writeFieldEnd()
3431 rajveer 12636
    if self.itemId is not None:
2981 rajveer 12637
      oprot.writeFieldBegin('itemId', TType.I64, 2)
12638
      oprot.writeI64(self.itemId)
2642 varun.gupt 12639
      oprot.writeFieldEnd()
12640
    oprot.writeFieldStop()
12641
    oprot.writeStructEnd()
12642
 
3431 rajveer 12643
  def validate(self):
12644
    return
12645
 
12646
 
2642 varun.gupt 12647
  def __repr__(self):
12648
    L = ['%s=%r' % (key, value)
12649
      for key, value in self.__dict__.iteritems()]
12650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12651
 
12652
  def __eq__(self, other):
12653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12654
 
12655
  def __ne__(self, other):
12656
    return not (self == other)
12657
 
2981 rajveer 12658
class updateBrowseHistory_result:
2642 varun.gupt 12659
 
12660
  thrift_spec = (
12661
  )
12662
 
12663
  def read(self, iprot):
12664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12666
      return
12667
    iprot.readStructBegin()
12668
    while True:
12669
      (fname, ftype, fid) = iprot.readFieldBegin()
12670
      if ftype == TType.STOP:
12671
        break
12672
      else:
12673
        iprot.skip(ftype)
12674
      iprot.readFieldEnd()
12675
    iprot.readStructEnd()
12676
 
12677
  def write(self, oprot):
12678
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12679
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12680
      return
2981 rajveer 12681
    oprot.writeStructBegin('updateBrowseHistory_result')
2642 varun.gupt 12682
    oprot.writeFieldStop()
12683
    oprot.writeStructEnd()
12684
 
3431 rajveer 12685
  def validate(self):
12686
    return
12687
 
12688
 
2642 varun.gupt 12689
  def __repr__(self):
12690
    L = ['%s=%r' % (key, value)
12691
      for key, value in self.__dict__.iteritems()]
12692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12693
 
12694
  def __eq__(self, other):
12695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12696
 
12697
  def __ne__(self, other):
12698
    return not (self == other)
12699
 
3385 varun.gupt 12700
class getCartsWithCouponCount_args:
12701
  """
12702
  Attributes:
12703
   - couponCode
12704
  """
2642 varun.gupt 12705
 
3385 varun.gupt 12706
  thrift_spec = (
12707
    None, # 0
12708
    (1, TType.STRING, 'couponCode', None, None, ), # 1
12709
  )
12710
 
12711
  def __init__(self, couponCode=None,):
12712
    self.couponCode = couponCode
12713
 
12714
  def read(self, iprot):
12715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12717
      return
12718
    iprot.readStructBegin()
12719
    while True:
12720
      (fname, ftype, fid) = iprot.readFieldBegin()
12721
      if ftype == TType.STOP:
12722
        break
12723
      if fid == 1:
12724
        if ftype == TType.STRING:
12725
          self.couponCode = iprot.readString();
12726
        else:
12727
          iprot.skip(ftype)
12728
      else:
12729
        iprot.skip(ftype)
12730
      iprot.readFieldEnd()
12731
    iprot.readStructEnd()
12732
 
12733
  def write(self, oprot):
12734
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12735
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12736
      return
12737
    oprot.writeStructBegin('getCartsWithCouponCount_args')
3431 rajveer 12738
    if self.couponCode is not None:
3385 varun.gupt 12739
      oprot.writeFieldBegin('couponCode', TType.STRING, 1)
12740
      oprot.writeString(self.couponCode)
12741
      oprot.writeFieldEnd()
12742
    oprot.writeFieldStop()
12743
    oprot.writeStructEnd()
12744
 
3431 rajveer 12745
  def validate(self):
12746
    return
12747
 
12748
 
3385 varun.gupt 12749
  def __repr__(self):
12750
    L = ['%s=%r' % (key, value)
12751
      for key, value in self.__dict__.iteritems()]
12752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12753
 
12754
  def __eq__(self, other):
12755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12756
 
12757
  def __ne__(self, other):
12758
    return not (self == other)
12759
 
12760
class getCartsWithCouponCount_result:
12761
  """
12762
  Attributes:
12763
   - success
12764
  """
12765
 
12766
  thrift_spec = (
12767
    (0, TType.I64, 'success', None, None, ), # 0
12768
  )
12769
 
12770
  def __init__(self, success=None,):
12771
    self.success = success
12772
 
12773
  def read(self, iprot):
12774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12776
      return
12777
    iprot.readStructBegin()
12778
    while True:
12779
      (fname, ftype, fid) = iprot.readFieldBegin()
12780
      if ftype == TType.STOP:
12781
        break
12782
      if fid == 0:
12783
        if ftype == TType.I64:
12784
          self.success = iprot.readI64();
12785
        else:
12786
          iprot.skip(ftype)
12787
      else:
12788
        iprot.skip(ftype)
12789
      iprot.readFieldEnd()
12790
    iprot.readStructEnd()
12791
 
12792
  def write(self, oprot):
12793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12795
      return
12796
    oprot.writeStructBegin('getCartsWithCouponCount_result')
3431 rajveer 12797
    if self.success is not None:
3385 varun.gupt 12798
      oprot.writeFieldBegin('success', TType.I64, 0)
12799
      oprot.writeI64(self.success)
12800
      oprot.writeFieldEnd()
12801
    oprot.writeFieldStop()
12802
    oprot.writeStructEnd()
12803
 
3431 rajveer 12804
  def validate(self):
12805
    return
12806
 
12807
 
3385 varun.gupt 12808
  def __repr__(self):
12809
    L = ['%s=%r' % (key, value)
12810
      for key, value in self.__dict__.iteritems()]
12811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12812
 
12813
  def __eq__(self, other):
12814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12815
 
12816
  def __ne__(self, other):
12817
    return not (self == other)
3499 mandeep.dh 12818
 
12819
class increaseTrustLevel_args:
12820
  """
12821
  Attributes:
12822
   - userId
12823
   - trustLevelDelta
12824
  """
12825
 
12826
  thrift_spec = (
12827
    None, # 0
12828
    (1, TType.I64, 'userId', None, None, ), # 1
12829
    (2, TType.DOUBLE, 'trustLevelDelta', None, None, ), # 2
12830
  )
12831
 
12832
  def __init__(self, userId=None, trustLevelDelta=None,):
12833
    self.userId = userId
12834
    self.trustLevelDelta = trustLevelDelta
12835
 
12836
  def read(self, iprot):
12837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12839
      return
12840
    iprot.readStructBegin()
12841
    while True:
12842
      (fname, ftype, fid) = iprot.readFieldBegin()
12843
      if ftype == TType.STOP:
12844
        break
12845
      if fid == 1:
12846
        if ftype == TType.I64:
12847
          self.userId = iprot.readI64();
12848
        else:
12849
          iprot.skip(ftype)
12850
      elif fid == 2:
12851
        if ftype == TType.DOUBLE:
12852
          self.trustLevelDelta = iprot.readDouble();
12853
        else:
12854
          iprot.skip(ftype)
12855
      else:
12856
        iprot.skip(ftype)
12857
      iprot.readFieldEnd()
12858
    iprot.readStructEnd()
12859
 
12860
  def write(self, oprot):
12861
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12862
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12863
      return
12864
    oprot.writeStructBegin('increaseTrustLevel_args')
12865
    if self.userId is not None:
12866
      oprot.writeFieldBegin('userId', TType.I64, 1)
12867
      oprot.writeI64(self.userId)
12868
      oprot.writeFieldEnd()
12869
    if self.trustLevelDelta is not None:
12870
      oprot.writeFieldBegin('trustLevelDelta', TType.DOUBLE, 2)
12871
      oprot.writeDouble(self.trustLevelDelta)
12872
      oprot.writeFieldEnd()
12873
    oprot.writeFieldStop()
12874
    oprot.writeStructEnd()
12875
 
12876
  def validate(self):
12877
    return
12878
 
12879
 
12880
  def __repr__(self):
12881
    L = ['%s=%r' % (key, value)
12882
      for key, value in self.__dict__.iteritems()]
12883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12884
 
12885
  def __eq__(self, other):
12886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12887
 
12888
  def __ne__(self, other):
12889
    return not (self == other)
4668 varun.gupt 12890
 
12891
class showCODOption_args:
12892
  """
12893
  Attributes:
12894
   - cartId
12895
   - sourceId
12896
   - pincode
12897
  """
12898
 
12899
  thrift_spec = (
12900
    None, # 0
12901
    (1, TType.I64, 'cartId', None, None, ), # 1
12902
    (2, TType.I64, 'sourceId', None, None, ), # 2
12903
    (3, TType.STRING, 'pincode', None, None, ), # 3
12904
  )
12905
 
12906
  def __init__(self, cartId=None, sourceId=None, pincode=None,):
12907
    self.cartId = cartId
12908
    self.sourceId = sourceId
12909
    self.pincode = pincode
12910
 
12911
  def read(self, iprot):
12912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12914
      return
12915
    iprot.readStructBegin()
12916
    while True:
12917
      (fname, ftype, fid) = iprot.readFieldBegin()
12918
      if ftype == TType.STOP:
12919
        break
12920
      if fid == 1:
12921
        if ftype == TType.I64:
12922
          self.cartId = iprot.readI64();
12923
        else:
12924
          iprot.skip(ftype)
12925
      elif fid == 2:
12926
        if ftype == TType.I64:
12927
          self.sourceId = iprot.readI64();
12928
        else:
12929
          iprot.skip(ftype)
12930
      elif fid == 3:
12931
        if ftype == TType.STRING:
12932
          self.pincode = iprot.readString();
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
12944
    oprot.writeStructBegin('showCODOption_args')
12945
    if self.cartId is not None:
12946
      oprot.writeFieldBegin('cartId', TType.I64, 1)
12947
      oprot.writeI64(self.cartId)
12948
      oprot.writeFieldEnd()
12949
    if self.sourceId is not None:
12950
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
12951
      oprot.writeI64(self.sourceId)
12952
      oprot.writeFieldEnd()
12953
    if self.pincode is not None:
12954
      oprot.writeFieldBegin('pincode', TType.STRING, 3)
12955
      oprot.writeString(self.pincode)
12956
      oprot.writeFieldEnd()
12957
    oprot.writeFieldStop()
12958
    oprot.writeStructEnd()
12959
 
12960
  def validate(self):
12961
    return
12962
 
12963
 
12964
  def __repr__(self):
12965
    L = ['%s=%r' % (key, value)
12966
      for key, value in self.__dict__.iteritems()]
12967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12968
 
12969
  def __eq__(self, other):
12970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12971
 
12972
  def __ne__(self, other):
12973
    return not (self == other)
12974
 
12975
class showCODOption_result:
12976
  """
12977
  Attributes:
12978
   - success
12979
  """
12980
 
12981
  thrift_spec = (
12982
    (0, TType.BOOL, 'success', None, None, ), # 0
12983
  )
12984
 
12985
  def __init__(self, success=None,):
12986
    self.success = success
12987
 
12988
  def read(self, iprot):
12989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12991
      return
12992
    iprot.readStructBegin()
12993
    while True:
12994
      (fname, ftype, fid) = iprot.readFieldBegin()
12995
      if ftype == TType.STOP:
12996
        break
12997
      if fid == 0:
12998
        if ftype == TType.BOOL:
12999
          self.success = iprot.readBool();
13000
        else:
13001
          iprot.skip(ftype)
13002
      else:
13003
        iprot.skip(ftype)
13004
      iprot.readFieldEnd()
13005
    iprot.readStructEnd()
13006
 
13007
  def write(self, oprot):
13008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13010
      return
13011
    oprot.writeStructBegin('showCODOption_result')
13012
    if self.success is not None:
13013
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13014
      oprot.writeBool(self.success)
13015
      oprot.writeFieldEnd()
13016
    oprot.writeFieldStop()
13017
    oprot.writeStructEnd()
13018
 
13019
  def validate(self):
13020
    return
13021
 
13022
 
13023
  def __repr__(self):
13024
    L = ['%s=%r' % (key, value)
13025
      for key, value in self.__dict__.iteritems()]
13026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13027
 
13028
  def __eq__(self, other):
13029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13030
 
13031
  def __ne__(self, other):
13032
    return not (self == other)